Mark privileged tests modules.
[pspp] / ChangeLog
1 2010-03-28  Bruno Haible  <bruno@clisp.org>
2
3         Mark privileged tests modules.
4         * modules/idpriv-drop-tests (Status): New section.
5         * modules/idpriv-droptemp-tests (Status): New section.
6
7 2010-03-28  Bruno Haible  <bruno@clisp.org>
8
9         Split C++ tests into separate tests modules.
10         * modules/dirent-c++-tests: New file, extracted from
11         modules/dirent-tests.
12         * modules/dirent-tests: Depend on it.
13         * modules/fcntl-h-c++-tests: New file, extracted from
14         modules/fcntl-h-tests.
15         * modules/fcntl-h-tests: Depend on it.
16         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17         * modules/glob-tests: Depend on it.
18         * modules/iconv-h-c++-tests: New file, extracted from
19         modules/iconv-h-tests.
20         * modules/iconv-h-tests: Depend on it.
21         * modules/langinfo-c++-tests: New file, extracted from
22         modules/langinfo-tests.
23         * modules/langinfo-tests: Depend on it.
24         * modules/locale-c++-tests: New file, extracted from
25         modules/locale-tests.
26         * modules/locale-tests: Depend on it.
27         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28         * modules/math-tests: Depend on it.
29         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30         * modules/pty-tests: Depend on it.
31         * modules/search-c++-tests: New file, extracted from
32         modules/search-tests.
33         * modules/search-tests: Depend on it.
34         * modules/signal-c++-tests: New file, extracted from
35         modules/signal-tests.
36         * modules/signal-tests: Depend on it.
37         * modules/spawn-c++-tests: New file, extracted from
38         modules/spawn-tests.
39         * modules/spawn-tests: Depend on it.
40         * modules/stdio-c++-tests: New file, extracted from
41         modules/stdio-tests.
42         * modules/stdio-tests: Depend on it.
43         * modules/stdlib-c++-tests: New file, extracted from
44         modules/stdlib-tests.
45         * modules/stdlib-tests: Depend on it.
46         * modules/string-c++-tests: New file, extracted from
47         modules/string-tests.
48         * modules/string-tests: Depend on it.
49         * modules/sys_ioctl-c++-tests: New file, extracted from
50         modules/sys_ioctl-tests.
51         * modules/sys_ioctl-tests: Depend on it.
52         * modules/sys_select-c++-tests: New file, extracted from
53         modules/sys_select-tests.
54         * modules/sys_select-tests: Depend on it.
55         * modules/sys_socket-c++-tests: New file, extracted from
56         modules/sys_socket-tests.
57         * modules/sys_socket-tests: Depend on it.
58         * modules/sys_stat-c++-tests: New file, extracted from
59         modules/sys_stat-tests.
60         * modules/sys_stat-tests: Depend on it.
61         * modules/sys_time-c++-tests: New file, extracted from
62         modules/sys_time-tests.
63         * modules/sys_time-tests: Depend on it.
64         * modules/time-c++-tests: New file, extracted from modules/time-tests.
65         * modules/time-tests: Depend on it.
66         * modules/unistd-c++-tests: New file, extracted from
67         modules/unistd-tests.
68         * modules/unistd-tests: Depend on it.
69         * modules/wchar-c++-tests: New file, extracted from
70         modules/wchar-tests.
71         * modules/wchar-tests: Depend on it.
72         * modules/wctype-c++-tests: New file, extracted from
73         modules/wctype-tests.
74         * modules/wctype-tests: Depend on it.
75         Reported by Simon Josefsson.
76
77 2010-03-28  Bruno Haible  <bruno@clisp.org>
78
79         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
80         * gnulib-tool (func_exists_module): New function, extracted from
81         func_verify_module.
82         (func_verify_module): Use it.
83         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
84         'foo' only if 'foo' exists.
85         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
86         module.
87
88 2010-03-28  Bruno Haible  <bruno@clisp.org>
89
90         gnulib-tool: Add support for special categories of tests.
91         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
92         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
93         (func_usage): Document them.
94         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
95         inc_unportable_tests, inc_all_tests): New variables.
96         (func_acceptable): Consider these variables.
97         (func_modules_transitive_closure): Make it work when the 'Status' field
98         consists of multiple words.
99         (func_import): Store and restore the values of inc_cxx_tests,
100         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
101         inc_all_tests in gnulib-comp.m4.
102         (func_create_testdir): Set inc_all_tests to true.
103         * doc/gnulib.texi (Extra tests modules): New section.
104         Suggested by Jim Meyering.
105
106 2010-03-28  Bruno Haible  <bruno@clisp.org>
107
108         ansi-c++-opt: Allow turning off the C++ build by default.
109         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
110         gl_CXX_CHOICE_DEFAULT_NO is defined.
111         Requested by Eric Blake.
112
113 2010-03-28  Bruno Haible  <bruno@clisp.org>
114
115         unistd: Avoid #define replacements in C++ mode.
116         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
117         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
118         setsockopt, shutdown, select): In C++, attach a warning to the function
119         if possible, rather than #defining the symbol to a dysfunctional alias.
120         Reported by John W. Eaton <jwe@gnu.org>.
121
122 2010-03-28  Bruno Haible  <bruno@clisp.org>
123
124         Fix link errors on mingw.
125         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
126         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
127         $(LIBSOCKET).
128         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
129         $(LIBSOCKET).
130
131 2010-03-28  Bruno Haible  <bruno@clisp.org>
132             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
133
134         lib-ignore: Determine different options for different compilers.
135         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
136         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
137         Add comments.
138         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
139         * NEWS: Mention the change.
140
141 2010-03-27  Bruno Haible  <bruno@clisp.org>
142
143         Remove unused GNULIB_XYZ macro definitions.
144         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
145         * modules/fseek (configure.ac): Likewise.
146         * modules/ioctl (configure.ac): Likewise.
147         * modules/open (configure.ac): Likewise.
148         * modules/stdlib-safer (configure.ac): Likewise.
149
150 2010-03-27  Bruno Haible  <bruno@clisp.org>
151
152         Add a remark about certain modules.
153         * modules/malloc (Comment): New section.
154         * modules/realloc (Comment): Likewise.
155         * modules/sigpipe (Comment): Likewise.
156
157 2010-03-27  Bruno Haible  <bruno@clisp.org>
158
159         Resolve conflict between the two kinds of module indicators.
160         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
161         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
162         * modules/canonicalize (configure.ac): Invoke
163         gl_MODULE_INDICATOR_FOR_TESTS.
164         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
165         GNULIB_XYZ.
166         * tests/test-dirent-c++.cc: Likewise.
167         * tests/test-dirent-safer.c: Likewise.
168         * tests/test-dup2.c: Likewise.
169         * tests/test-fchdir.c: Likewise.
170         * tests/test-fcntl-h-c++.cc: Likewise.
171         * tests/test-getopt.c: Likewise.
172         * tests/test-getopt.h: Likewise.
173         * tests/test-langinfo-c++.cc: Likewise.
174         * tests/test-locale-c++.cc: Likewise.
175         * tests/test-math-c++.cc: Likewise.
176         * tests/test-pty-c++.cc: Likewise.
177         * tests/test-search-c++.cc: Likewise.
178         * tests/test-signal-c++.cc: Likewise.
179         * tests/test-spawn-c++.cc: Likewise.
180         * tests/test-stdio-c++.cc: Likewise.
181         * tests/test-stdlib-c++.cc: Likewise.
182         * tests/test-string-c++.cc: Likewise.
183         * tests/test-sys_ioctl-c++.cc: Likewise.
184         * tests/test-sys_select-c++.cc: Likewise.
185         * tests/test-sys_socket-c++.cc: Likewise.
186         * tests/test-sys_stat-c++.cc: Likewise.
187         * tests/test-sys_time-c++.cc: Likewise.
188         * tests/test-time-c++.cc: Likewise.
189         * tests/test-unistd-c++.cc: Likewise.
190         * tests/test-wchar-c++.cc: Likewise.
191         * tests/uninorm/test-u8-nfc.c: Likewise.
192         * tests/uninorm/test-u8-nfd.c: Likewise.
193         * tests/uninorm/test-u8-nfkc.c: Likewise.
194         * tests/uninorm/test-u8-nfkd.c: Likewise.
195         * tests/uninorm/test-u16-nfc.c: Likewise.
196         * tests/uninorm/test-u16-nfd.c: Likewise.
197         * tests/uninorm/test-u16-nfkc.c: Likewise.
198         * tests/uninorm/test-u16-nfkd.c: Likewise.
199         * tests/uninorm/test-u32-nfc.c: Likewise.
200         * tests/uninorm/test-u32-nfc-big.c: Likewise.
201         * tests/uninorm/test-u32-nfd.c: Likewise.
202         * tests/uninorm/test-u32-nfd-big.c: Likewise.
203         * tests/uninorm/test-u32-nfkc.c: Likewise.
204         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
205         * tests/uninorm/test-u32-nfkd.c: Likewise.
206         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
207         * tests/uninorm/test-u32-normalize-big.c: Likewise.
208
209 2010-03-27  Bruno Haible  <bruno@clisp.org>
210
211         Distinguish two kinds of module indicators.
212         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
213         gl_MODULE_INDICATOR.
214         (gl_MODULE_INDICATOR): New macro.
215         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
216         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
217         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
218         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
219         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
220         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
221         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
222         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
223         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
224         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
225         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
226         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
228         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
229         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
230         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
231         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
232         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
233         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
234         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
235         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
236         * modules/cloexec (configure.ac): Likewise.
237         * modules/getopt-gnu (configure.ac): Likewise.
238         * modules/uninorm/u8-normalize (configure.ac): Likewise.
239         * modules/uninorm/u16-normalize (configure.ac): Likewise.
240         * modules/uninorm/u32-normalize (configure.ac): Likewise.
241         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
242
243 2010-03-27  Bruno Haible  <bruno@clisp.org>
244
245         New module description field 'Comment'.
246         * gnulib-tool: New option --extract-comment.
247         (func_usage): Document it.
248         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
249         (func_get_comment): New function.
250         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
251
252 2010-03-27  Bruno Haible  <bruno@clisp.org>
253
254         Addendum to 2010-02-07 commit.
255         * gnulib-tool (func_usage): Document --extract-applicability option.
256
257 2010-03-27  Bruno Haible  <bruno@clisp.org>
258
259         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
260         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
261         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
262         rather than link errors.
263
264 2010-03-27  Bruno Haible  <bruno@clisp.org>
265
266         Avoid side effects from tests-related modules on the compilation of lib.
267         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
268         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
269         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
270         parameter. Emit into AM_CPPFLAGS a definition of the designated C
271         macro.
272         (func_import): Define a witness macro. Assign it a value that depends
273         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
274         tests-related modules.
275         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
276         Reported by Jim Meyering.
277
278 2010-03-27  Bruno Haible  <bruno@clisp.org>
279
280         Factorize common .m4 code.
281         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
282         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
283         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
284         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
285         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
286         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
287         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
288         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
289         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
290         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
291         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
292         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
293         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
294         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
295         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
296         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
297         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
298         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
300         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
301         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
302         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
303         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
304         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
305         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
306         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
307         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
308         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
309         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
310         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
311         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
312         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
313
314 2010-03-27  Bruno Haible  <bruno@clisp.org>
315
316         Fix a compilation error on Cygwin with g++ >= 4.3.
317         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
318         if it is undefined or if we alias it to chmod.
319         (lstat): Don't warn about the use of this function if it is undefined
320         or if we alias it to stat.
321         Reported by Simon Josefsson.
322
323 2010-03-27  Bruno Haible  <bruno@clisp.org>
324
325         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
326         * modules/getlogin (configure.ac): Update.
327
328         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
329         * modules/getlogin_r (configure.ac): Update.
330
331         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
332         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
333         * modules/inet_ntop (configure.ac): Update.
334
335         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
336         * modules/inet_pton (configure.ac): Update.
337
338         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
339         * modules/mbslen (configure.ac): Update.
340
341         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
342         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
343         * modules/forkpty (configure.ac): Update.
344         * modules/openpty (configure.ac): Update.
345
346 2010-03-26  Simon Josefsson  <simon@josefsson.org>
347
348         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
349         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
350
351 2010-03-25  Eric Blake  <eblake@redhat.com>
352
353         maint: use pragma consistently across replacement headers
354         * lib/ctype.in.h (system_header): Hoist for consistent placement.
355         * lib/dirent.in.h (system_header): Likewise.
356         * lib/errno.in.h (system_header): Likewise.
357         * lib/float.in.h (system_header): Likewise.
358         * lib/getopt.in.h (system_header): Likewise.
359         * lib/iconv.in.h (system_header): Likewise.
360         * lib/inttypes.in.h (system_header): Likewise.
361         * lib/langinfo.in.h (system_header): Likewise.
362         * lib/locale.in.h (system_header): Likewise.
363         * lib/math.in.h (system_header): Likewise.
364         * lib/netdb.in.h (system_header): Likewise.
365         * lib/netinet_in.in.h (system_header): Likewise.
366         * lib/pty.in.h (system_header): Likewise.
367         * lib/sched.in.h (system_header): Likewise.
368         * lib/se-selinux.in.h (system_header): Likewise.
369         * lib/search.in.h (system_header): Likewise.
370         * lib/spawn.in.h (system_header): Likewise.
371         * lib/stdarg.in.h (system_header): Likewise.
372         * lib/stdint.in.h (system_header): Likewise.
373         * lib/string.in.h (system_header): Likewise.
374         * lib/strings.in.h (system_header): Likewise.
375         * lib/sys_file.in.h (system_header): Likewise.
376         * lib/sys_ioctl.in.h (system_header): Likewise.
377         * lib/sys_socket.in.h (system_header): Likewise.
378         * lib/sys_times.in.h (system_header): Likewise.
379         * lib/sys_utsname.in.h (system_header): Likewise.
380         * lib/sys_wait.in.h (system_header): Likewise.
381         * lib/sysexits.in.h (system_header): Likewise.
382         * lib/unistd.in.h (system_header): Likewise.
383         * lib/wctype.in.h (system_header): Likewise.
384
385         arpa/inet: fix mingw compilation warning
386         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
387         Reported by Matthew Bolte.
388
389 2010-03-25  Bruno Haible  <bruno@clisp.org>
390
391         Avoid collision between gnulib wrapper and libintl wrapper.
392         * lib/printf.c (printf): Don't define if a printf wrapper is already
393         defined in intl/printf.c.
394         Reported by Michel Boaventura <michel@michelboaventura.com>.
395
396 2010-03-25  Bruno Haible  <bruno@clisp.org>
397
398         Use ANSI C.
399         * lib/readutmp.h (getutent): Provide ANSI C prototype.
400
401 2010-03-25  Bruno Haible  <bruno@clisp.org>
402
403         Minor formatting changes.
404         * lib/acosl.c: Insert space before function argument list.
405         * lib/argz.c: Likewise.
406         * lib/asinl.c: Likewise.
407         * lib/expl.c: Likewise.
408         * lib/gen-uni-tables.c: Likewise.
409         * lib/gettext.h: Likewise.
410         * lib/glthread/lock.h: Likewise.
411         * lib/tanl.c: Likewise.
412         * lib/uniname/uniname.c: Likewise.
413         * tests/test-idpriv-drop.c: Likewise.
414         * tests/test-idpriv-droptemp.c: Likewise.
415         * tests/test-lock.c: Likewise.
416         * tests/test-tls.c: Likewise.
417         * lib/argp-help.c: Insert space before function-like macro argument
418         list.
419         * lib/memcmp.c: Likewise.
420         * tests/test-base64.c: Likewise.
421         * lib/localename.c: Insert space before sizeof's argument list.
422         * lib/safe-alloc.h: Likewise.
423         * lib/file-set.h: Insert space before macro argument list.
424         * tests/test-argp.c: Likewise.
425         * lib/argp-namefrob.h: Insert space before function parameter list.
426         * lib/getaddrinfo.c: Likewise.
427         * lib/netdb.in.h: Likewise.
428         * lib/parse-duration.h: Likewise.
429         * lib/parse-duration.c: Likewise.
430         * lib/poll.c: Likewise.
431         * lib/select.c: Likewise.
432         * lib/trim.h: Likewise.
433         * tests/test-usleep.c: Likewise.
434         * lib/ldexpl.c: Insert space before function parameter list and before
435         function argument list.
436         * lib/logl.c: Likewise.
437         * lib/sqrtl.c: Likewise.
438         * lib/trim.c: Likewise.
439         * lib/cosl.c: Use GNU style indentation. Insert space before function
440         argument list.
441         * lib/sinl.c: Likewise.
442         * lib/tsearch.c: Insert space after 'for'.
443         Reported by Jim Meyering.
444
445 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
446
447         * maint.mk (sc_Wundef_boolean): Check for the presence of the
448         config header before grepping, as it's not present before
449         autoreconf/configure are run.  Reported by Simon Josefsson.
450
451 2010-03-23  Bruno Haible  <bruno@clisp.org>
452
453         pt_chown: Make it work with automake < 1.11.
454         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
455         Reported by Simon Josefsson.
456
457 2010-03-23  Bruno Haible  <bruno@clisp.org>
458
459         pt_chown: Don't depend on GPLed modules.
460         * lib/pt_chown.c: Don't include idpriv.h.
461         (main): Don't drop privileges.
462         * modules/pt_chown (Depends-on): Remove idpriv-drop.
463         Reported by Simon Josefsson.
464
465 2010-03-24  Simon Josefsson  <simon@josefsson.org>
466
467         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
468         suggestions from karl@freefriends.org (Karl Berry).
469
470 2010-03-22  Eric Blake  <eblake@redhat.com>
471
472         gethostname: further tweaks
473         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
474         are overriding gethostname.
475         Suggested by Bruno Haible.
476
477 2010-03-21  Bruno Haible  <bruno@clisp.org>
478
479         Fix comments.
480         * lib/forkpty.c (rpl_forkpty): Fix comment.
481         * lib/openpty.c (rpl_openpty): Likewise.
482         Reported by Eric Blake.
483
484 2010-03-22  Eric Blake  <eblake@redhat.com>
485
486         gethostname: fix build on mingw
487         * lib/unistd.in.h (includes): Work around fact that mingw
488         <winsock2.h> re-includes <unistd.h>, by avoiding any
489         redeclarations if we are being included by <winsock2.h>.
490         Reported by Matthias Bolte.
491
492 2010-03-21  Bruno Haible  <bruno@clisp.org>
493
494         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
495         * lib/forkpty.c (forkpty): New replacement function, from glibc with
496         modifications.
497         * lib/pty.in.h (forkpty): Update declaration. Add comments.
498         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
499         provide the replacement.
500         * modules/forkpty (Depends-on): Add openpty, login_tty.
501         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
502         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
503         * doc/glibc-functions/forkpty.texi: More supported platforms.
504         * config/srclist.txt: Add forkpty.c (commented).
505
506 2010-03-21  Bruno Haible  <bruno@clisp.org>
507
508         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
509         (Makefile.am): Verify that PTY_LIB is defined.
510
511         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
512
513 2010-03-21  Bruno Haible  <bruno@clisp.org>
514
515         Tests for module 'login_tty'.
516         * modules/login_tty-tests: New file.
517         * tests/test-login_tty.c: New file.
518
519         New module 'login_tty'.
520         * lib/login_tty.c: New file.
521         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
522         * modules/login_tty: New file.
523         * doc/glibc-functions/login_tty.texi: Mention the new module.
524
525 2010-03-21  Bruno Haible  <bruno@clisp.org>
526
527         login_tty: Documentation.
528         * doc/glibc-functions/login_tty.texi: New file.
529         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
530
531 2010-03-21  Bruno Haible  <bruno@clisp.org>
532
533         pty: Consistent macro naming.
534         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
535         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
536         * modules/pty (configure.ac): Update.
537
538 2010-03-21  Bruno Haible  <bruno@clisp.org>
539
540         Tests for openpty: Make stricter.
541         * tests/test-openpty.c (main): Add test of canonical processing and
542         erase.
543         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
544
545         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
546         * lib/openpty.c (openpty): New replacement function.
547         * lib/pty.in.h: Include <termios.h>.
548         (openpty): Update declaration. Add comments.
549         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
550         is not declared, arrange to provide the replacement. Check for _getpty
551         and posix_openpt.
552         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
553         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
554         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
555         * modules/pty-tests (test_pty_c___LDADD): New variable.
556         * doc/glibc-functions/openpty.texi: More supported platforms.
557
558 2010-03-21  Bruno Haible  <bruno@clisp.org>
559
560         setenv: Tweaks.
561         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
562         the test program.
563         * doc/posix-functions/setenv.texi: Update platforms list.
564
565 2010-03-21  Bruno Haible  <bruno@clisp.org>
566
567         New module 'unlockpt'.
568         * lib/unlockpt.c: New file, from glibc with modifications.
569         * m4/unlockpt.m4: New file.
570         * modules/unlockpt: New file.
571         * lib/stdlib.in.h (unlockpt): New declaration.
572         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
573         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
574         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
575         HAVE_UNLOCKPT.
576         * doc/posix-functions/unlockpt.texi: Mention the new module.
577         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
578         * config/srclist.txt: Add unlockpt.c (commented).
579
580 2010-03-21  Jim Meyering  <meyering@redhat.com>
581
582         maint.mk: prohibit inclusion of "intprops.h" without use
583         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
584
585 2010-03-21  Bruno Haible  <bruno@clisp.org>
586
587         New module 'grantpt'.
588         * lib/grantpt.c: New file, from glibc with modifications.
589         * m4/grantpt.m4: New file.
590         * modules/grantpt: New file.
591         * lib/stdlib.in.h (grantpt): New declaration.
592         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
593         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
594         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
595         HAVE_GRANTPT.
596         * doc/posix-functions/grantpt.texi: Mention the new module.
597         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
598         * config/srclist.txt: Add grantpt.c (commented).
599
600 2010-03-21  Bruno Haible  <bruno@clisp.org>
601
602         New module 'pt_chown'.
603         * lib/pt_chown.c: New file, from glibc with modifications.
604         * lib/pty-private.h: New file, from glibc with modifications.
605         * modules/pt_chown: New file.
606         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
607
608 2010-03-21  Bruno Haible  <bruno@clisp.org>
609
610         Tests for module 'ptsname'.
611         * modules/ptsname-tests: New file.
612         * tests/test-ptsname.c: New file.
613
614         New module 'ptsname'.
615         * lib/ptsname.c: New file, from glibc with modifications.
616         * m4/ptsname.m4: New file.
617         * modules/ptsname: New file.
618         * lib/stdlib.in.h (ptsname): New declaration.
619         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
620         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
621         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
622         HAVE_PTSNAME.
623         * doc/posix-functions/ptsname.texi: Mention the new module.
624         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
625         * config/srclist.txt: Add ptsname.c (commented).
626
627 2010-03-21  Bruno Haible  <bruno@clisp.org>
628
629         Tests for module 'ttyname_r'.
630         * modules/ttyname_r-tests: New file.
631         * tests/test-ttyname_r.c: New file.
632
633         New module 'ttyname_r'.
634         * lib/ttyname_r.c: New file.
635         * m4/ttyname_r.m4: New file.
636         * modules/ttyname_r: New file.
637         * lib/unistd.in.h (ttyname_r): New declaration.
638         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
639         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
640         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
641         HAVE_TTYNAME_R.
642         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
643         * doc/posix-functions/ttyname_r.texi: Mention the new module.
644
645 2010-03-20  Bruno Haible  <bruno@clisp.org>
646
647         signal: Undefine macro definitions in C++ mode.
648         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
649         sigfillset): Undefine macro definitions from the system header in C++
650         mode.
651         Reported by John W. Eaton <jwe@gnu.org>.
652
653 2010-03-20  Bruno Haible  <bruno@clisp.org>
654
655         Ensure no #include statements inside extern "C" { ... }.
656         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
657         contain #include statements.
658         * lib/time.in.h: Likewise.
659
660 2010-03-20  Bruno Haible  <bruno@clisp.org>
661
662         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
663         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
664         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
665         Reported by John W. Eaton <jwe@gnu.org>.
666
667 2010-03-20  Bruno Haible  <bruno@clisp.org>
668
669         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
670         Reported by Jim Meyering.
671
672 2010-03-20  Bruno Haible  <bruno@clisp.org>
673
674         pipe: Set errno upon failure.
675         * lib/pipe.h: Specify that when -1 is returned, errno is set.
676         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
677         errno value in error message.
678
679 2010-03-20  Bruno Haible  <bruno@clisp.org>
680             Jim Meyering  <meyering@redhat.com>
681
682         lchown: Avoid "unused variable" warning.
683         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
684
685 2010-03-20  Bruno Haible  <bruno@clisp.org>
686
687         Work around unlink() bug on MacOS X 10.5.6.
688         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
689         attempting to unlink a parent directory.
690         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
691         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
692         activate for the replacement function.
693         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
694
695 2010-03-20  Bruno Haible  <bruno@clisp.org>
696
697         Fix link errors on Solaris 8.
698         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
699         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
700
701 2010-03-19  Jim Meyering  <meyering@redhat.com>
702
703         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
704         The _LIBC implementation of build_range_exp correctly honors the
705         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
706         However, the non-_LIBC implementation would ignore that syntax-bit
707         flag and return REG_ERANGE unconditionally.
708         This change makes it honor that flag.
709         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
710         Make two pointer parameters "const".
711         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
712         (parse_bracket_exp): Update caller.
713
714         regex.m4: correct the reversed range endpoint ([b-a]) test
715         * m4/regex.m4: When requiring that [b-a] evoke failure,
716         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
717         test pass once again for x86-based systems.
718
719 2010-03-19  Bruno Haible  <bruno@clisp.org>
720
721         scandir: Fix link error on Solaris 8.
722         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
723         macros.
724
725 2010-03-19  Bruno Haible  <bruno@clisp.org>
726
727         getusershell: Fix documentation.
728         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
729         module.
730         * doc/glibc-functions/setusershell.texi: Likewise.
731
732         getusershell: Provide declaration, missing on Solaris 9.
733         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
734         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
735         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
736         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
738         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
739         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
740         HAVE_GETUSERSHELL.
741         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
742
743 2010-03-19  Bruno Haible  <bruno@clisp.org>
744
745         wctype: Provide iswblank function.
746         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
747         exists and is fine.
748         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
749         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
750         * tests/test-wctype.c (main): Re-enable the iswblank tests.
751         * doc/posix-functions/iswblank.texi: Update.
752
753 2010-03-19  Bruno Haible  <bruno@clisp.org>
754
755         Tests of module 'pty' in C++ mode.
756         * modules/pty-tests: New file.
757         * tests/test-pty-c++.cc: New file.
758         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
759
760 2010-03-19  Eric Blake  <eblake@redhat.com>
761
762         logb: fix documentation
763         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
764         1.5 declaration bug.
765
766         forkpty, openpty: prefer glibc's const-safe prototype
767         * lib/forkpty.c (rpl_forkpty): New file.
768         * lib/openpty.c (rpl_openpty): Likewise.
769         * modules/forkpty (Files): Distribute it.
770         * modules/openpty (Files): Likewise.
771         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
772         check...
773         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
774         replacement for for non-const BSD signature.
775         * modules/pty (Makefile.am): Substitute witnesses.
776         * lib/pty.in.h (forkpty, openpty): Declare replacements.
777         * tests/test-forkpty.c: Update signature check.
778         * tests/test-openpty.c: Likewise.
779         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
780         * doc/glibc-functions/openpty.texi (openpty): Likewise.
781
782         forkpty, openpty: split functions into new modules
783         * modules/pty (Makefile.am): Substitute new witnesses.
784         (Libraries): Move library detection...
785         * modules/forkpty: ...into new module.
786         * modules/openpty: Another new module.
787         * modules/pty-tests: Rename and split...
788         * modules/forkpty-tests: ...to this...
789         * modules/openpty-tests: ...and this.
790         * tests/test-pty.c: Rename and split...
791         * tests/test-forkpty.c: ...to this...
792         * tests/test-openpty.c: ...and this.
793         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
794         (gl_PTY): Split library searching...
795         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
796         (gl_FORKPTY, gl_OPENPTY): New macros.
797         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
798         * NEWS: Mention the split.
799         * MODULES.html.sh (Misc): Document the modules.
800         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
801         * doc/glibc-functions/openpty.texi (openpty): Likewise.
802
803         pty: improve replacement header
804         * lib/pty.in.h: New file.
805         * modules/pty (Files): Ship it.
806         (Makefile.am): Always build replacement.
807         * m4/pty.m4: Rename...
808         * m4/pty_h.m4: ...to this.
809         (gl_PTY): Modernize setting of witness macros; update check of
810         forkpty to take proper advantage of cache.
811         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
812
813         getopt: avoid compiler warning
814         * lib/getopt.c (attribute_hidden): Remove unused macro.
815
816 2010-03-18  Bruno Haible  <bruno@clisp.org>
817
818         Fix link errors on Solaris 8.
819         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
820         * modules/search-tests (test_search_c___LDADD): Likewise.
821         * modules/signal-tests (test_signal_c___LDADD): Likewise.
822         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
823         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
824         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
825         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
826         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
827         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
828
829 2010-03-18  Bruno Haible  <bruno@clisp.org>
830
831         Fix bug introduced on 2010-03-14.
832         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
833         (gl_SPAWN_H): Require it.
834         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
835         Reported by Simon Josefsson.
836
837 2010-03-18  Bruno Haible  <bruno@clisp.org>
838
839         Fix typo introduced on 2009-12-31.
840         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
841         posix_spawn_file_actions_adddup2.
842
843 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
844         and Eric Blake  <eblake@redhat.com>
845
846         test-vc-list-files-git: make more robust
847         * tests/test-vc-list-files-git.sh: Unset problematic environment
848         variables.  Chain commands together.
849
850 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
851
852         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
853         `AC_CHECK_DECL' invocation.
854
855 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
856
857         * lib/inttostr.c (inttostr): Make sure the invocation of verify
858         appears before executable statements. Suggested by Petr Sumbera
859         <Petr.Sumbera@Sun.COM>.
860
861 2010-03-14  Bruno Haible  <bruno@clisp.org>
862
863         * tests/test-flock.c (test_exclusive): Comment out a test that causes
864         portability problems. Instead use a simpler test.
865         (main): Check that invalid arguments are rejected only on Linux.
866
867 2010-03-14  Bruno Haible  <bruno@clisp.org>
868
869         Fix bug introduced on 2009-12-31.
870         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
871         gl_PREREQ_SYS_H_WINSOCK2 always.
872         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
873         SYS_SOCKET_H variable.
874         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
875         Update comments.
876         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
877         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
878         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
879         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
880         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
881
882 2010-03-14  Bruno Haible  <bruno@clisp.org>
883
884         Fix values returned by sinl, cosl.
885         * lib/trigl.h: Add specification comments.
886         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
887         that combines the values from the precomputed table with the values of
888         the Chebyshev polynomials.
889
890 2010-03-14  Bruno Haible  <bruno@clisp.org>
891
892         Fix compilation error when modules 'posix_spawn[p]' are not used.
893         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
894         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
895
896 2010-03-14  Bruno Haible  <bruno@clisp.org>
897
898         Fix compilation error on mingw when module 'time_r' is not used.
899         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
900         is 1.
901         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
902         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
903         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
904         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
905
906 2010-03-14  Bruno Haible  <bruno@clisp.org>
907
908         Fix compilation error with Sun C.
909         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
910         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
911         instead of GCC specific ULONG_LONG_MAX.
912         * lib/xstrtoll.c: Likewise.
913         * lib/xstrtoull.c: Likewise.
914
915 2010-03-13  Bruno Haible  <bruno@clisp.org>
916
917         Allow the user to disable C++ code and tests.
918         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
919         (gl_PROG_ANSI_CXX): Require it.
920
921 2010-03-13  Bruno Haible  <bruno@clisp.org>
922
923         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
924         cases.
925
926 2010-03-13  Bruno Haible  <bruno@clisp.org>
927
928         Test that gnulib does not break the standard C++ headers.
929         * tests/test-locale-c++2.cc: New file.
930         * modules/locale-tests (Files): Add it.
931         (Makefile.am): Compile it for test-locale-c++.
932         * tests/test-math-c++2.cc: New file.
933         * modules/math-tests (Files): Add it.
934         (Makefile.am): Compile it for test-math-c++.
935         * tests/test-signal-c++2.cc: New file.
936         * modules/signal-tests (Files): Add it.
937         (Makefile.am): Compile it for test-signal-c++.
938         * tests/test-stdio-c++2.cc: New file.
939         * modules/stdio-tests (Files): Add it.
940         (Makefile.am): Compile it for test-stdio-c++.
941         * tests/test-stdlib-c++2.cc: New file.
942         * modules/stdlib-tests (Files): Add it.
943         (Makefile.am): Compile it for test-stdlib-c++.
944         * tests/test-string-c++2.cc: New file.
945         * modules/string-tests (Files): Add it.
946         (Makefile.am): Compile it for test-string-c++.
947         * tests/test-time-c++2.cc: New file.
948         * modules/time-tests (Files): Add it.
949         (Makefile.am): Compile it for test-time-c++.
950         Reported by John W. Eaton <jwe@gnu.org>.
951
952 2010-03-13  Bruno Haible  <bruno@clisp.org>
953
954         * gnulib-tool (func_usage): Clarify which options are available for
955         --create-testdir and --create-megatestdir.
956
957 2010-03-13  Bruno Haible  <bruno@clisp.org>
958
959         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
960         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
961         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
962         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
963         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
964         when appropriate.
965         Reported by Jim Meyering.
966
967 2010-03-12  Simon Josefsson  <simon@josefsson.org>
968
969         * gnulib-tool (func_import): Explain origin of code.
970
971 2010-03-12  Bruno Haible  <bruno@clisp.org>
972
973         Fix problem with automake's definition of CXXLINK.
974         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
975         Reported by Simon Josefsson and Ludovic Courtès.
976
977 2010-03-12  Bruno Haible  <bruno@clisp.org>
978
979         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
980         stable releases.
981
982 2010-03-11  Bruno Haible  <bruno@clisp.org>
983
984         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
985         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
986         whether the system provides one variant or multiple variants of the
987         function.
988         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
989         C++ compilers.
990         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
991         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
992         Reported by Jim Meyering.
993
994 2010-03-09  Simon Josefsson  <simon@josefsson.org>
995
996         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
997
998 2010-03-08  Bruno Haible  <bruno@clisp.org>
999
1000         gnulib-tool: Add support for --libtool in --create-testdir.
1001         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1002         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1003
1004 2010-03-08  Eric Blake  <eblake@redhat.com>
1005
1006         gnulib-tool.texi: mention possibility of git submodule
1007         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1008         submodules.
1009         * doc/.gitignore: Ignore another generated file.
1010
1011 2010-03-08  Karl Berry  <karl@gnu.org>
1012
1013         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1014         of committing gnulib files while skipping others.
1015
1016 2010-03-07  Bruno Haible  <bruno@clisp.org>
1017
1018         Tests of module 'wctype' in C++ mode.
1019         * tests/test-wctype-c++.cc: New file.
1020         * modules/wctype-tests (Files): Add it and tests/signature.h.
1021         (Depends-on): Add ansi-c++-opt.
1022         (Makefile.am): Arrange to compile and run test-wctype-c++.
1023
1024         Tests of module 'wchar' in C++ mode.
1025         * tests/test-wchar-c++.cc: New file.
1026         * modules/wchar-tests (Files): Add it and tests/signature.h.
1027         (Depends-on): Add ansi-c++-opt.
1028         (Makefile.am): Arrange to compile and run test-wchar-c++.
1029         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1030         gl_MODULE_INDICATOR.
1031
1032         Tests of module 'unistd' in C++ mode.
1033         * tests/test-unistd-c++.cc: New file.
1034         * modules/unistd-tests (Files): Add it and tests/signature.h.
1035         (Depends-on): Add ansi-c++-opt.
1036         (Makefile.am): Arrange to compile and run test-unistd-c++.
1037         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1038         gl_MODULE_INDICATOR.
1039
1040         Tests of module 'time' in C++ mode.
1041         * tests/test-time-c++.cc: New file.
1042         * modules/time-tests (Files): Add it and tests/signature.h.
1043         (Depends-on): Add ansi-c++-opt.
1044         (Makefile.am): Arrange to compile and run test-time-c++.
1045         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1046
1047         Tests of module 'sys_time' in C++ mode.
1048         * tests/test-sys_time-c++.cc: New file.
1049         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1050         (Depends-on): Add ansi-c++-opt.
1051         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1052         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1053         gl_MODULE_INDICATOR.
1054
1055         Tests of module 'sys_stat' in C++ mode.
1056         * tests/test-sys_stat-c++.cc: New file.
1057         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1058         (Depends-on): Add ansi-c++-opt.
1059         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1060         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1061         gl_MODULE_INDICATOR.
1062
1063         Tests of module 'sys_socket' in C++ mode.
1064         * tests/test-sys_socket-c++.cc: New file.
1065         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1066         (Depends-on): Add ansi-c++-opt.
1067         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1068         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1069         gl_MODULE_INDICATOR.
1070
1071         Tests of module 'sys_select' in C++ mode.
1072         * tests/test-sys_select-c++.cc: New file.
1073         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1074         (Depends-on): Add ansi-c++-opt.
1075         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1076         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1077         gl_MODULE_INDICATOR.
1078
1079         Tests of module 'sys_ioctl' in C++ mode.
1080         * tests/test-sys_ioctl-c++.cc: New file.
1081         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1082         (Depends-on): Add ansi-c++-opt.
1083         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1084         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1085         gl_MODULE_INDICATOR.
1086
1087         Tests of module 'string' in C++ mode.
1088         * tests/test-string-c++.cc: New file.
1089         * modules/string-tests (Files): Add it and tests/signature.h.
1090         (Depends-on): Add ansi-c++-opt.
1091         (Makefile.am): Arrange to compile and run test-string-c++.
1092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1093         gl_MODULE_INDICATOR.
1094
1095         Tests of module 'stdlib' in C++ mode.
1096         * tests/test-stdlib-c++.cc: New file.
1097         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1098         (Depends-on): Add ansi-c++-opt.
1099         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1100         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1101         gl_MODULE_INDICATOR.
1102
1103         Tests of module 'stdio' in C++ mode.
1104         * tests/test-stdio-c++.cc: New file.
1105         * modules/stdio-tests (Files): Add it and tests/signature.h.
1106         (Depends-on): Add ansi-c++-opt.
1107         (Makefile.am): Arrange to compile and run test-stdio-c++.
1108         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1109         gl_MODULE_INDICATOR.
1110
1111         Tests of module 'spawn' in C++ mode.
1112         * tests/test-spawn-c++.cc: New file.
1113         * modules/spawn-tests (Files): Add it and tests/signature.h.
1114         (Depends-on): Add ansi-c++-opt.
1115         (Makefile.am): Arrange to compile and run test-spawn-c++.
1116         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1117         gl_MODULE_INDICATOR.
1118
1119         Tests of module 'signal' in C++ mode.
1120         * tests/test-signal-c++.cc: New file.
1121         * modules/signal-tests (Files): Add it and tests/signature.h.
1122         (Depends-on): Add ansi-c++-opt.
1123         (Makefile.am): Arrange to compile and run test-signal-c++.
1124         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1125         gl_MODULE_INDICATOR.
1126
1127         Tests of module 'search' in C++ mode.
1128         * tests/test-search-c++.cc: New file.
1129         * modules/search-tests (Files): Add it and tests/signature.h.
1130         (Depends-on): Add ansi-c++-opt.
1131         (Makefile.am): Arrange to compile and run test-search-c++.
1132         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1133         gl_MODULE_INDICATOR.
1134
1135         Tests of module 'math' in C++ mode.
1136         * tests/test-math-c++.cc: New file.
1137         * modules/math-tests (Files): Add it and tests/signature.h.
1138         (Depends-on): Add ansi-c++-opt.
1139         (Makefile.am): Arrange to compile and run test-math-c++.
1140         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1141
1142         Tests of module 'locale' in C++ mode.
1143         * tests/test-locale-c++.cc: New file.
1144         * modules/locale-tests (Files): Add it and tests/signature.h.
1145         (Depends-on): Add ansi-c++-opt.
1146         (Makefile.am): Arrange to compile and run test-locale-c++.
1147         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1148         gl_MODULE_INDICATOR.
1149
1150         Tests of module 'langinfo' in C++ mode.
1151         * tests/test-langinfo-c++.cc: New file.
1152         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1153         (Depends-on): Add ansi-c++-opt.
1154         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1155         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1156         gl_MODULE_INDICATOR.
1157
1158         Tests of module 'iconv-h' in C++ mode.
1159         * tests/test-iconv-h-c++.cc: New file.
1160         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1161         (Depends-on): Add ansi-c++-opt.
1162         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1163
1164         Tests of module 'glob' in C++ mode.
1165         * tests/test-glob-c++.cc: New file.
1166         * modules/glob-tests (Files): Add it.
1167         (Depends-on): Add ansi-c++-opt.
1168         (Makefile.am): Arrange to compile and run test-glob-c++.
1169
1170         Tests of module 'fcntl-h' in C++ mode.
1171         * tests/test-fcntl-h-c++.cc: New file.
1172         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1173         (Depends-on): Add ansi-c++-opt.
1174         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1175         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1176         gl_MODULE_INDICATOR.
1177
1178         Tests of module 'dirent' in C++ mode.
1179         * tests/test-dirent-c++.cc: New file.
1180         * modules/dirent-tests (Files): Add it and tests/signature.h.
1181         (Depends-on): Add ansi-c++-opt.
1182         (Makefile.am): Arrange to compile and run test-dirent-c++.
1183         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1184         gl_MODULE_INDICATOR.
1185
1186         New module 'ansi-c++-opt'.
1187         * modules/ansi-c++-opt: New file.
1188         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1189
1190         Document C++ namespace mode.
1191         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1192
1193         wctype: Avoid #define replacements in C++ mode.
1194         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1195         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1196         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1197         In C++, define a namespaced alias symbol.
1198         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1199         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1200         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1201         rule.
1202
1203         wchar: Avoid #define replacements in C++ mode.
1204         * lib/wchar.in.h: Include c++defs.h.
1205         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1206         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1207         symbol.
1208         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1209         * modules/wchar (Depends-on): Add c++defs.
1210         (Makefile.am): Update wchar.h rule.
1211
1212         unistd: Avoid #define replacements in C++ mode.
1213         * lib/unistd.in.h: Include c++defs.h.
1214         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1215         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1216         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1217         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1218         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1219         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1220         symbol.
1221         (environ): Update.
1222         * modules/unistd (Depends-on): Add c++defs.
1223         (Makefile.am): Update unistd.h rule.
1224
1225         time: Avoid #define replacements in C++ mode.
1226         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1227         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1228         define a namespaced alias symbol.
1229         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1230         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1231         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1232         * modules/time (Depends-on): Add c++defs, warn-on-use.
1233         (Makefile.am): Update time.h rule.
1234         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1235         * modules/nanosleep (configure.ac): Likewise.
1236         * modules/strptime (configure.ac): Likewise.
1237         * modules/timegm (configure.ac): Likewise.
1238
1239         sys_time: Avoid #define replacements in C++ mode.
1240         * lib/sys_time.in.h: Include c++defs.h.
1241         (gettimeofday): In C++, define a namespaced alias symbol.
1242         * modules/sys_time (Depends-on): Add c++defs.
1243         (Makefile.am): Update sys/time.h rule.
1244
1245         sys_stat: Avoid #define replacements in C++ mode.
1246         * lib/sys_stat.in.h: Include c++defs.h.
1247         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1248         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1249         namespaced alias symbol.
1250         In C++, define a namespaced alias symbol.
1251         * modules/sys_stat (Depends-on): Add c++defs.
1252         (Makefile.am): Update sys/stat.h rule.
1253
1254         sys_socket: Avoid #define replacements in C++ mode.
1255         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1256         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1257         definitions also when the system has a <sys/socket.h>.
1258         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1259         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1260         In C++, define a namespaced alias symbol.
1261         * modules/sys_socket (Depends-on): Add c++defs.
1262         (Makefile.am): Update sys/socket.h rule.
1263
1264         sys_select: Avoid #define replacements in C++ mode.
1265         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1266         definitions also when the system has a <sys/select.h>.
1267         (select): In C++, define a namespaced alias symbol.
1268         * modules/sys_select (Depends-on): Add c++defs.
1269         (Makefile.am): Update sys/select.h rule.
1270
1271         sys_ioctl: Avoid #define replacements in C++ mode.
1272         * lib/sys_ioctl.in.h: Include c++defs.h.
1273         (ioctl): In C++, define a namespaced alias symbol.
1274         * modules/sys_ioctl (Depends-on): Add c++defs.
1275         (Makefile.am): Update sys/ioctl.h rule.
1276
1277         string: Avoid #define replacements in C++ mode.
1278         * lib/string.in.h: Include c++defs.h.
1279         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1280         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1281         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1282         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1283         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1284         * modules/string (Depends-on): Add c++defs.
1285         (Makefile.am): Update string.h rule.
1286
1287         stdlib: Avoid #define replacements in C++ mode.
1288         * lib/stdlib.in.h: Include c++defs.h.
1289         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1290         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1291         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1292         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1293         symbol.
1294         * modules/stdlib (Depends-on): Add c++defs.
1295         (Makefile.am): Update stdlib.h rule.
1296
1297         stdio: Avoid #define replacements in C++ mode.
1298         * lib/stdio.in.h: Include c++defs.h.
1299         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1300         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1301         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1302         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1303         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1304         namespaced alias symbol.
1305         * modules/stdio (Depends-on): Add c++defs.
1306         (Makefile.am): Update stdio.h rule.
1307
1308         spawn: Avoid #define replacements in C++ mode.
1309         * lib/spawn.in.h: Include c++defs.h.
1310         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1311         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1312         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1313         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1314         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1315         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1316         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1317         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1318         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1319         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1320         In C++, define a namespaced alias symbol.
1321         * modules/spawn (Depends-on): Add c++defs.
1322         (Makefile.am): Update spawn.h rule.
1323
1324         signal: Avoid #define replacements in C++ mode.
1325         * lib/signal.in.h: Include c++defs.h.
1326         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1327         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1328         namespaced alias symbol.
1329         * modules/signal (Depends-on): Add c++defs.
1330         (Makefile.am): Update signal.h rule.
1331
1332         search: Avoid #define replacements in C++ mode.
1333         * lib/search.in.h: Include c++defs.h.
1334         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1335         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1336         symbol.
1337         * modules/search (Depends-on): Add c++defs.
1338         (Makefile.am): Update search.h rule.
1339
1340         math: Avoid #define replacements in C++ mode.
1341         * lib/math.in.h: Include c++defs.h.
1342         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1343         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1344         trunc, truncl): In C++, define a namespaced alias symbol.
1345         * modules/math (Depends-on): Add c++defs.
1346         (Makefile.am): Update math.h rule.
1347
1348         locale: Avoid #define replacements in C++ mode.
1349         * lib/locale.in.h: Include c++defs.h.
1350         (duplocale): In C++, define a namespaced alias symbol.
1351         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1352         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1353         * modules/locale (Depends-on): Add c++defs.
1354         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1355
1356         langinfo: Avoid #define replacements in C++ mode.
1357         * lib/langinfo.in.h: Include c++defs.h.
1358         (nl_langinfo): In C++, define a namespaced alias symbol.
1359         * modules/langinfo (Depends-on): Add c++defs.
1360         (Makefile.am): Update langinfo.h rule.
1361
1362         iconv-h: Avoid #define replacements in C++ mode.
1363         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1364         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1365         symbol.
1366         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1367         whenever iconv is present.
1368         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1369         (Makefile.am): Update iconv.h rule.
1370
1371         glob: Avoid #define replacements in C++ mode.
1372         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1373         (_gl_glob_errfunc_fn): New type.
1374         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1375         symbol.
1376         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1377         (Makefile.am): Update glob.h rule.
1378
1379         fcntl-h: Avoid #define replacements in C++ mode.
1380         * lib/fcntl.in.h: Include c++defs.h.
1381         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1382         * modules/fcntl-h (Depends-on): Add c++defs.
1383         (Makefile.am): Update fcntl.h rule.
1384
1385         dirent: Avoid #define replacements in C++ mode.
1386         * lib/dirent.in.h: Include c++defs.h.
1387         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1388         namespaced alias symbol.
1389         (dirfd): Update declaration.
1390         * modules/dirent (Depends-on): Add c++defs.
1391         (Makefile.am): Update dirent.h rule.
1392
1393         ctype: Make it usable in C++ code.
1394         * lib/ctype.in.h: Include c++defs.h.
1395         (isblank): Declare as extern "C".
1396         * modules/ctype (Depends-on): Add c++defs.
1397         (Makefile.am): Update ctype.h rule.
1398
1399         New module 'c++defs'.
1400         * modules/c++defs: New file.
1401         * build-aux/c++defs.h: New file.
1402         Reported by John W. Eaton <jwe@gnu.org>.
1403
1404 2010-03-07  Bruno Haible  <bruno@clisp.org>
1405
1406         logb: Provide missing declaration for Cygwin.
1407         * lib/math.in.h (logb): New declaration.
1408         * m4/logb.m4: New file.
1409         * modules/logb (Files): Add m4/logb.m4.
1410         (Depends-on): Add math.
1411         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1412         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1414         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1415         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1416
1417 2010-03-07  Bruno Haible  <bruno@clisp.org>
1418
1419         Fix test-cond link error.
1420         * tests/test-cond.c: Include <stdio.h>.
1421
1422 2010-03-07  Bruno Haible  <bruno@clisp.org>
1423
1424         Fix test-dirent-safer link error.
1425         * modules/dirent-safer-tests (Makefile.am): Define
1426         test_dirent_safer_LDADD.
1427
1428 2010-03-07  Bruno Haible  <bruno@clisp.org>
1429
1430         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1431         among default module list.
1432
1433 2010-03-07  Bruno Haible  <bruno@clisp.org>
1434
1435         Fix link error on platforms with GNU libiconv.
1436         * modules/unistr/u8-strcoll-tests (Makefile): Define
1437         test_u8_strcoll_LDADD.
1438         * modules/unistr/u16-strcoll-tests (Makefile): Define
1439         test_u16_strcoll_LDADD.
1440         * modules/unistr/u32-strcoll-tests (Makefile): Define
1441         test_u32_strcoll_LDADD.
1442
1443 2010-03-07  Bruno Haible  <bruno@clisp.org>
1444
1445         Use POSIX declarations for socket functions.
1446         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1447         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1448         rpl_sendto): Change declaration to match POSIX.
1449         * lib/connect.c (rpl_connect): Likewise.
1450         * lib/accept.c (rpl_accept): Likewise.
1451         * lib/bind.c (rpl_bind): Likewise.
1452         * lib/getpeername.c (rpl_getpeername): Likewise.
1453         * lib/getsockname.c (rpl_getsockname): Likewise.
1454         * lib/recv.c (rpl_recv): Likewise.
1455         * lib/send.c (rpl_send): Likewise.
1456         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1457         * lib/sendto.c (rpl_sendto): Likewise.
1458
1459 2010-03-06  Bruno Haible  <bruno@clisp.org>
1460
1461         Clarify access, euidaccess, faccessat.
1462         * doc/posix-functions/faccessat.texi: Mention security problem under
1463         "Other problems", not "Portability problems".
1464         * doc/posix-functions/access.texi: Likewise. Mention a related security
1465         problem.
1466         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1467         * lib/euidaccess.c: Add comments about platforms.
1468         * lib/unistd.in.h (access, euidaccess): Add warnings.
1469
1470 2010-03-07  Bruno Haible  <bruno@clisp.org>
1471
1472         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1473         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1474         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1475         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1476         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1477         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1478         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1479         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1480         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1481         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1482         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1483         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1484         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1485         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1486         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1487         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1488         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1489         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1490         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1491         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1492         Likewise.
1493         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1494         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1495         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1496         Likewise.
1497         * tests/test-spawn.c (main): Make it work when
1498         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1499
1500 2010-03-07  Bruno Haible  <bruno@clisp.org>
1501
1502         Fix incorrect Makefile.am generation in German locale.
1503         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1504         Execute sed command with character range in C locale.
1505
1506 2010-03-06  Bruno Haible  <bruno@clisp.org>
1507
1508         Tests for module 'iconv-h'.
1509         * modules/iconv-h-tests: New file.
1510         * tests/test-iconv-h.c: New file.
1511
1512         New module 'iconv-h'.
1513         * modules/iconv-h: New file.
1514         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1515         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1516         (configure.ac): Remove gl_ICONV_H.
1517         (Makefile.am): Remove rule for iconv.h.
1518
1519 2010-03-06  Bruno Haible  <bruno@clisp.org>
1520
1521         More consistent naming of *.m4 files.
1522         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1523         * modules/wctype (Files): Update.
1524
1525         More consistent naming of *.m4 files.
1526         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1527         * modules/wchar (Files): Update.
1528
1529 2010-03-06  Jim Meyering  <meyering@redhat.com>
1530
1531         euidaccess: relax license to LGPLv2+
1532         * modules/euidaccess (License): Relax to LGPLv2+.
1533
1534 2010-03-06  Bruno Haible  <bruno@clisp.org>
1535
1536         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1537         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1538         (Makefile.am): Augment lib_SOURCES instead.
1539
1540 2010-03-04  Jim Meyering  <meyering@redhat.com>
1541
1542         utime: remove obsolete module
1543         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1544         unnecessary for years, and has been marked as obsolete for 10 months.
1545         * modules/utime: Remove file.
1546         * lib/utime.c: Remove file.
1547         * m4/utime.m4: Remove file.
1548         * m4/utimes-null.m4: Remove file.
1549         * doc/posix-functions/utime.texi (utime): Remove reference to
1550         the module.  Move the sole "fixed by gnulib" item into the
1551         "problems not fixed by Gnulib" list.
1552         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1553
1554 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1555
1556         * modules/exit (License): Relax license to LGPLv2+.
1557         (Status): Mark as obsolete.
1558         * NEWS: Mention deprecated 'exit' module.
1559         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1560         of now obsolete 'exit'.
1561
1562 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1563
1564         fts-lgpl: remove unused module
1565         * modules/fts-lgpl: Remove.
1566         * MODULES.html.sh (func_all_modules): Adjust.
1567         * check-module (find_included_lib_files): Adjust.
1568         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1569
1570 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1571
1572         copy-acl: enhance Solaris ACL error handling
1573         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1574         * lib/set-mode-acl.c (qset_acl): Likewise.
1575
1576 2010-03-02  Bruno Haible  <bruno@clisp.org>
1577
1578         spawn: Don't override the system defined values on FreeBSD 8.
1579         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1580         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1581         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1582         if HAVE_POSIX_SPAWN is 1.
1583         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1584
1585 2010-03-01  Bruno Haible  <bruno@clisp.org>
1586
1587         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1588         regarding Automake.
1589
1590 2010-02-25  Bruno Haible  <bruno@clisp.org>
1591
1592         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1593         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1594         setting, not afterwards.
1595         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1596
1597 2010-02-24  Eric Blake  <eblake@redhat.com>
1598
1599         bootstrap, git-version-gen: use timestamp
1600         * build-aux/git-version-gen (scriptversion): Force UTC.
1601         * build-aux/bootstrap (scriptversion): New variable.
1602
1603         bootstrap: allow older git
1604         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1605         older than 1.6.4.  Requested by the libvirt project.
1606
1607 2010-02-23  Eric Blake  <eblake@redhat.com>
1608
1609         warn-on-use: work with old autoconf
1610         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1611         AS_VAR semantics of autoconf 2.60.
1612         Reported by Bruno Haible.
1613
1614         bootstrap: improve some comments
1615         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1616         clarification comments.
1617
1618         gettimeofday: provide correct function
1619         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1620         when replacement is declared, otherwise provide gettimeofday.
1621         Reported by Michael Goffioul.
1622
1623 2010-02-23  Jim Meyering  <meyering@redhat.com>
1624
1625         lib-ignore: relax license to "unlimited", not LGPLv2+
1626         * modules/lib-ignore (License): Relax to "unlimited".
1627
1628 2010-02-23  Jim Meyering  <meyering@redhat.com>
1629
1630         lib-ignore: relax license to LGPLv2+
1631         * modules/lib-ignore (License): Relax to LGPLv2+.
1632
1633 2010-02-22  Eric Blake  <eblake@redhat.com>
1634
1635         lseek: avoid bash 3.2 broken pipe bug
1636         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1637         warning from bash 3.2.
1638         Reported by Ben Pfaff, with analysis from Bruno Haible.
1639
1640         bootstrap: support non-FSF copyright holder
1641         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1642         bootstrap.conf override of COPYRIGHT_HOLDER.
1643         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1644
1645         bootstrap: interoperate with gettext 0.14.1
1646         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1647
1648         bootstrap: allow for alternate submodule location
1649         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1650         hardcoding submodule location.
1651         (gnulib_mk): Allow direct use of Makefile.am.
1652
1653         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1654         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1655         rather than reconfiguring where the submodule points.
1656
1657         gettimeofday: restore support for platforms that lack function
1658         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1659         replacement if function is missing.
1660         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1661         * modules/sys_time (Makefile.am): Substitute it.
1662         * lib/sys_time.in.h (gettimeofday): Check it.
1663         Reported by Michael Goffioul.
1664
1665 2010-02-21  Bruno Haible  <bruno@clisp.org>
1666
1667         * lib/stdio.in.h (obstack_printf): Fix typo.
1668
1669 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1670
1671         vc-list-files: use bzr ls's -R option
1672         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1673         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1674
1675 2010-02-21  Jim Meyering  <meyering@redhat.com>
1676
1677         init.sh: fix EXEEXT shims to work also for names like test-prog
1678         * tests/init.sh: Re-exec a better shell, when needed.
1679         If the current shell lacks support for posix $(...), an init.sh-using
1680         test will now try to find a shell that supports that.  If EXEEXT is
1681         nonempty, we also require support for hyphen-in-alias-name and shell
1682         substitutions like ${var#glob}.  Failure to find such a shell results
1683         in a skipped test.
1684
1685 2010-02-21  Bruno Haible  <bruno@clisp.org>
1686
1687         Really work around around "broken pipe" error message from bash 3.2.
1688         * gnulib-tool (func_reset_sigpipe): Remove function.
1689         (echo): In bash 3.2, define to a function that uses printf.
1690         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1691
1692 2010-02-20  Bruno Haible  <bruno@clisp.org>
1693
1694         Restore support for automake 1.9.6 with autoconf 2.61.
1695         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1696         Reported by James Youngman <jay@gnu.org>.
1697
1698 2010-02-20  Bruno Haible  <bruno@clisp.org>
1699
1700         Improve *printf warning condition.
1701         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1702         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1703         and the function is overridden due to SIGPIPE emulation.
1704
1705 2010-02-20  Bruno Haible  <bruno@clisp.org>
1706
1707         * lib/stdio.in.h: Tweak comments.
1708
1709 2010-02-19  Bruno Haible  <bruno@clisp.org>
1710
1711         Make it easier to find modules. New gnulib-tool option '--find'.
1712         * gnulib-tool: New option --find.
1713         (func_usage): Document it.
1714         (func_sanitize_modulelist): New function, extracted from
1715         func_all_modules.
1716         (func_all_modules): Invoke it.
1717         * doc/gnulib-tool.texi (Which modules?): New node.
1718
1719 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1720
1721         * lib/sys_select.in.h: Provide select replacement even if
1722         sys/select.h exists on a system, for Interix.
1723
1724 2010-02-18  Jim Meyering  <meyering@redhat.com>
1725
1726         init.sh: don't use $(...) just yet
1727         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1728         to accommodate e.g., Solaris' /bin/sh.
1729
1730 2010-02-17  Bruno Haible  <bruno@clisp.org>
1731
1732         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1733         Reported by Ludovic Courtès <ludo@gnu.org>.
1734
1735 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1736
1737         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1738         linking with -lintl.
1739
1740 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1741
1742         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1743         if not provided by the system's netdb.h.  Reported by
1744         ludo@gnu.org (Ludovic Courtès).
1745
1746 2010-02-15  Jim Meyering  <meyering@redhat.com>
1747
1748         init.sh: improve portability and efficiency
1749         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1750         "dummy" in a for loop.
1751         Use '!', not '^' to select the complement of a character set used
1752         in a "case" statement.
1753         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1754         Suggestions from Eric Blake.
1755
1756         init.sh: automatically accommodate programs with the .exe suffix
1757         Automatically arrange for an invocation of "prog" to execute the
1758         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1759         may use the simpler "prog", yet still work when built on a system
1760         that requires specifying the added suffix.
1761         Do this by constructing a function named "prog" that invokes
1762         "prog.exe" for each .exe file in selected directories.
1763         * tests/init.sh (find_exe_basenames_): New function.
1764         (create_exe_shim_functions_): New function.
1765         (path_prepend_): Use it.
1766
1767         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1768         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1769         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1770
1771 2010-02-14  Jim Meyering  <meyering@redhat.com>
1772
1773         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1774         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1775         (sc_prohibit_hash_pjw_without_use): New rule.
1776
1777         maint.mk: allow the default upload destination dir to be overridden
1778         * top/maint.mk (upload_dest_dir_): Define with a default that
1779         preserves the status quo.
1780         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1781         Reported by Peter Simons.
1782
1783         maint.mk: prohibit inclusion of "hash.h" without_use
1784         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1785
1786 2010-02-10  Jim Meyering  <meyering@redhat.com>
1787
1788         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1789         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1790
1791 2010-02-09  Eric Blake  <ebb9@byu.net>
1792         and Bruno Haible  <bruno@clisp.org>
1793
1794         obstack-printf-posix: ensure declaration
1795         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1796         extracted from gl_FUNC_OBSTACK_PRINTF.
1797         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1798         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1799         Likewise.
1800         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1801         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1802         0.
1803
1804 2010-02-08  Bruno Haible  <bruno@clisp.org>
1805
1806         gnulib-tool: Fix typo in 2010-02-07 commit.
1807         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1808         Reported by Eric Blake.
1809
1810 2010-02-07  Bruno Haible  <bruno@clisp.org>
1811
1812         gnulib-tool: Fix up caching patches.
1813         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1814         option --no-cache. Use associative arrays when supported by the shell.
1815         (sed_comments): New variable.
1816         (modcache): Renamed from do_cache.
1817         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1818         abbreviate unnecessarily.
1819         (have_associative): New variable.
1820         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1821         way also for ksh and zsh.
1822         (func_init_sed_convert_to_cache_statements): New function, extracted
1823         from func_cache_lookup_module. Add support for associative arrays.
1824         Don't set the c_MODULE_cached variable here. Ignore all lines before
1825         the first field header. Remove only the final newline, not all trailing
1826         newlines. Support empty fields correctly. Limit the use of 'eval' to
1827         assignments.
1828         (func_get_description, func_get_status, func_get_notice,
1829         func_get_applicability, func_get_filelist, func_get_dependencies,
1830         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1831         func_get_automake_snippet, func_get_include_directive,
1832         func_get_link_directive, func_get_license, func_get_maintainer):
1833         Update documentation. List the unoptimized code first. Add support for
1834         associative arrays. Limit the use of 'eval' to assignments.
1835         (func_get_applicability): Undo stylistic pessimisations.
1836         (func_get_automake_snippet, func_get_include_directive): Reduce code
1837         duplication.
1838         (func_modules_transitive_closure, func_modules_add_dummy,
1839         func_modules_notice, func_modules_to_filelist, func_add_file,
1840         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1841         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1842         func_create_testdir, func_create_megatestdir): Update documentation.
1843
1844 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1845
1846         * gnulib-tool (func_cache_lookup_module): Store the module name
1847         belonging to the cache variable; error out if two different
1848         module names map to the same cache variable name.
1849
1850 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1851
1852         gnulib-tool: Make caching optional.
1853         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1854         Update matching short versions of --no-changelog.
1855         (func_usage): Update.
1856         (sed_extract_cache_prog): Renamed from ...
1857         (sed_extract_prog): ... this; revert to old extraction script.
1858         (func_get_description, func_get_status)
1859         (func_get_notice, func_get_applicability, func_get_filelist)
1860         (func_get_dependencies, func_get_autoconf_early_snippet)
1861         (func_get_autoconf_snippet, func_get_automake_snippet)
1862         (func_get_include_directive, func_get_link_directive)
1863         (func_get_license, func_get_maintainer): If $do_cache is false,
1864         use old, non-caching extraction scripts.
1865         Suggestion by Bruno Haible.
1866
1867 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1868
1869         gnulib-tool: cache module metainformation.
1870         * gnulib-tool (sed_extract_prog): Match newline before each
1871         header, and rewrite header to a shell variable suffix.
1872         (func_cache_var, func_cache_lookup_module): New functions,
1873         to turn a module name into a cache variable prefix, and to
1874         look up and cache module metainformation.
1875         (func_get_description, func_get_status)
1876         (func_get_notice, func_get_applicability, func_get_filelist)
1877         (func_get_dependencies, func_get_autoconf_early_snippet)
1878         (func_get_autoconf_snippet, func_get_automake_snippet)
1879         (func_get_include_directive, func_get_link_directive)
1880         (func_get_license, func_get_maintainer): Use
1881         func_cache_lookup_module.
1882
1883 2010-02-07  Bruno Haible  <bruno@clisp.org>
1884
1885         fnctl: Fix missing dependency.
1886         * modules/fcntl (Depends-on): Add getdtablesize.
1887         Reported by John W. Eaton <jwe@gnu.org>.
1888
1889 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1890
1891         Argp: fix recognition of short alias options.
1892
1893         * lib/argp-parse.c (convert_options): Fix improper use of
1894         `|' between character values.
1895         * tests/test-argp.c (group1_option): New alias option
1896         --read (-r).
1897         (group1_parser): Special handling for 'r'.
1898         (test15): New test case.
1899         (test_fun): Add test15.
1900         * tests/test-argp-2.sh: Update expected --help and --usage
1901         outputs.
1902
1903 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1904
1905         * tests/test-argp.c: Fix indentation.
1906
1907 2010-02-04  Eric Blake  <ebb9@byu.net>
1908
1909         gettimeofday: expose type of second argument
1910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1911         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1912         * tests/test-gettimeofday.c: Use it to silence warning.
1913         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1914         the issue.
1915
1916 2010-02-03  Jim Meyering  <meyering@redhat.com>
1917
1918         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1919         * lib/regcomp.c (TYPE_SIGNED): Define.
1920         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1921
1922         regcomp.c: avoid a new -Wshadow warning
1923         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1924
1925 2010-02-01  Jim Meyering  <meyering@redhat.com>
1926
1927         removing useless parentheses in cpp #define directives
1928         For motivation, see commit c0221df4, "define STREQ(a,b)
1929         consistently, removing useless parentheses"
1930         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1931         * lib/mountlist.c (MNT_IGNORE): Likewise.
1932         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1933
1934 2010-02-01  Eric Blake  <ebb9@byu.net>
1935
1936         sys_time: use link-warning
1937         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1938         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1939         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1940         * modules/sys_time (Depends-on): Add warn-on-use.
1941         (Makefile.am): Always build replacement.
1942         (configure.ac): Update substitutions.
1943         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1944         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1945         bother with SYS_TIME_H.
1946         * modules/gettimeofday (configure.ac): Declare indicator.
1947         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1948         in use.
1949
1950         closein-tests: silence compiler warning
1951         * tests/test-closein.c (main): Ignore fread result.
1952         * modules/closein-tests (Depends-on): Add ignore-value.
1953
1954         tests: silence warning about system return
1955         * tests/test-areadlink-with-size.c (main): Ignore system result.
1956         * tests/test-areadlink.c (main): Likewise.
1957         * tests/test-areadlinkat-with-size.c (main): Likewise.
1958         * tests/test-areadlinkat.c (main): Likewise.
1959         * tests/test-canonicalize-lgpl.c (main): Likewise.
1960         * tests/test-canonicalize.c (main): Likewise.
1961         * tests/test-chown.c (main): Likewise.
1962         * tests/test-fchownat.c (main): Likewise.
1963         * tests/test-fdutimensat.c (main): Likewise.
1964         * tests/test-fstatat.c (main): Likewise.
1965         * tests/test-futimens.c (main): Likewise.
1966         * tests/test-lchown.c (main): Likewise.
1967         * tests/test-link.c (main): Likewise.
1968         * tests/test-linkat.c (main): Likewise.
1969         * tests/test-lstat.c (main): Likewise.
1970         * tests/test-mkdir.c (main): Likewise.
1971         * tests/test-mkdirat.c (main): Likewise.
1972         * tests/test-mkfifo.c (main): Likewise.
1973         * tests/test-mkfifoat.c (main): Likewise.
1974         * tests/test-mknod.c (main): Likewise.
1975         * tests/test-readlink.c (main): Likewise.
1976         * tests/test-remove.c (main): Likewise.
1977         * tests/test-rename.c (main): Likewise.
1978         * tests/test-renameat.c (main): Likewise.
1979         * tests/test-rmdir.c (main): Likewise.
1980         * tests/test-symlink.c (main): Likewise.
1981         * tests/test-symlinkat.c (main): Likewise.
1982         * tests/test-unlink.c (main): Likewise.
1983         * tests/test-unlinkat.c (main): Likewise.
1984         * tests/test-utimens.c (main): Likewise.
1985         * tests/test-utimensat.c (main): Likewise.
1986         * modules/areadlink-tests (Depends-on): Add ignore-value.
1987         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1988         * modules/areadlinkat-tests (Depends-on): Likewise.
1989         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1990         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1991         * modules/canonicalize-tests (Depends-on): Likewise.
1992         * modules/chown-tests (Depends-on): Likewise.
1993         * modules/fdutimensat-tests (Depends-on): Likewise.
1994         * modules/futimens-tests (Depends-on): Likewise.
1995         * modules/lchown-tests (Depends-on): Likewise.
1996         * modules/link-tests (Depends-on): Likewise.
1997         * modules/linkat-tests (Depends-on): Likewise.
1998         * modules/lstat-tests (Depends-on): Likewise.
1999         * modules/mkdir-tests (Depends-on): Likewise.
2000         * modules/mkfifo-tests (Depends-on): Likewise.
2001         * modules/mkfifoat-tests (Depends-on): Likewise.
2002         * modules/mknod-tests (Depends-on): Likewise.
2003         * modules/openat-tests (Depends-on): Likewise.
2004         * modules/readlink-tests (Depends-on): Likewise.
2005         * modules/remove-tests (Depends-on): Likewise.
2006         * modules/rename-tests (Depends-on): Likewise.
2007         * modules/renameat-tests (Depends-on): Likewise.
2008         * modules/rmdir-tests (Depends-on): Likewise.
2009         * modules/symlink-tests (Depends-on): Likewise.
2010         * modules/symlinkat-tests (Depends-on): Likewise.
2011         * modules/unlink-tests (Depends-on): Likewise.
2012         * modules/utimens-tests (Depends-on): Likewise.
2013         * modules/utimensat-tests (Depends-on): Likewise.
2014
2015 2010-01-31  Bruno Haible  <bruno@clisp.org>
2016
2017         Perform the same test for many <math.h> functions.
2018         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2019         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2020         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2021         of gl_MATHFUNC.
2022         * modules/acos (configure.ac): Likewise.
2023         * modules/asin (configure.ac): Likewise.
2024         * modules/atan (configure.ac): Likewise.
2025         * modules/atan2 (configure.ac): Likewise.
2026         * modules/cbrt (configure.ac): Likewise.
2027         * modules/copysign (configure.ac): Likewise.
2028         * modules/cos (configure.ac): Likewise.
2029         * modules/cosh (configure.ac): Likewise.
2030         * modules/erf (configure.ac): Likewise.
2031         * modules/erfc (configure.ac): Likewise.
2032         * modules/exp (configure.ac): Likewise.
2033         * modules/fmod (configure.ac): Likewise.
2034         * modules/hypot (configure.ac): Likewise.
2035         * modules/j0 (configure.ac): Likewise.
2036         * modules/j1 (configure.ac): Likewise.
2037         * modules/jn (configure.ac): Likewise.
2038         * modules/lgamma (configure.ac): Likewise.
2039         * modules/log (configure.ac): Likewise.
2040         * modules/log10 (configure.ac): Likewise.
2041         * modules/log1p (configure.ac): Likewise.
2042         * modules/pow (configure.ac): Likewise.
2043         * modules/remainder (configure.ac): Likewise.
2044         * modules/sin (configure.ac): Likewise.
2045         * modules/sinh (configure.ac): Likewise.
2046         * modules/tan (configure.ac): Likewise.
2047         * modules/tanh (configure.ac): Likewise.
2048         * modules/y0 (configure.ac): Likewise.
2049         * modules/y1 (configure.ac): Likewise.
2050         * modules/yn (configure.ac): Likewise.
2051         Suggested by Paolo Bonzini.
2052
2053 2010-01-31  Bruno Haible  <bruno@clisp.org>
2054
2055         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2056
2057 2010-01-31  Bruno Haible  <bruno@clisp.org>
2058
2059         Work around getdelim() bug on FreeBSD 8.0.
2060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2061         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2062         not work.
2063         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2064         is 1.
2065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2066         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2067         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2068         a non-zero size.
2069         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2070
2071 2010-01-31  Bruno Haible  <bruno@clisp.org>
2072
2073         Work around getline() bug on FreeBSD 8.0.
2074         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2075         and a non-zero size.
2076         * tests/test-getline.c (main): Likewise.
2077         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2078         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2079
2080 2010-01-28  Eric Blake  <ebb9@byu.net>
2081
2082         regex: fix build failure
2083         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2084         platforms.
2085
2086 2010-01-28  Jim Meyering  <meyering@redhat.com>
2087
2088         regex: do not ignore memory allocation failure
2089         * lib/regex_internal.c (create_cd_newstate): Detect
2090         re_node_set_init_copy failure.   Extracted from glibc commit
2091         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2092
2093         regex: sync more white-space changes from libc
2094         * lib/regex_internal.c: White-space only changes.
2095         * lib/regexec.c: Likewise.
2096
2097         regex: add many uses of __attribute_warn_unused_result__
2098         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2099         * lib/regexec.c: Likewise.
2100         Extracted from a messy glibc commit.
2101
2102         regcomp.c: spelling and merge-artifact from glibc
2103         * lib/regcomp.c: Merge remainder of glibc's
2104         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2105
2106         regcomp.c: sync white-space changes from glibc
2107         * lib/regcomp.c: Merge to accommodate white space
2108         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2109
2110         regcomp.c: do not ignore internal return values
2111         * lib/regcomp.c: Do not ignore internal return values.
2112         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2113         but without its white-space changes and spelling fixes.
2114
2115         regex_internal.h: define __attribute_warn_unused_result__
2116         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2117
2118         maint: add a syntax-check rule to check for vulnerable Makefile.in
2119         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2120
2121 2010-01-27  Jim Meyering  <meyering@redhat.com>
2122
2123         ncftpput-ftp: clean up spaces
2124         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2125         Remove trailing blanks.
2126
2127 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2128
2129         * build-aux/git-version-gen: Fix copyright statement.
2130         * build-aux/gnupload: Likewise.
2131         * tests/test-arcfour.c: Likewise.
2132         * tests/test-arctwo.c: Likewise.
2133         * tests/test-count-one-bits.c: Likewise.
2134         * tests/test-crc.c: Likewise.
2135         * tests/test-des.c: Likewise.
2136         * tests/test-gc-arcfour.c: Likewise.
2137         * tests/test-gc-arctwo.c: Likewise.
2138         * tests/test-gc-des.c: Likewise.
2139         * tests/test-gc-hmac-md5.c: Likewise.
2140         * tests/test-gc-hmac-sha1.c: Likewise.
2141         * tests/test-gc-md2.c: Likewise.
2142         * tests/test-gc-md4.c: Likewise.
2143         * tests/test-gc-md5.c: Likewise.
2144         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2145         * tests/test-gc-rijndael.c: Likewise.
2146         * tests/test-gc-sha1.c: Likewise.
2147         * tests/test-gc.c: Likewise.
2148         * tests/test-gethostname.c: Likewise.
2149         * tests/test-gettimeofday.c: Likewise.
2150         * tests/test-hash.c: Likewise.
2151         * tests/test-hmac-md5.c: Likewise.
2152         * tests/test-hmac-sha1.c: Likewise.
2153         * tests/test-md2.c: Likewise.
2154         * tests/test-md4.c: Likewise.
2155         * tests/test-md5.c: Likewise.
2156         * tests/test-memchr.c: Likewise.
2157         * tests/test-memchr2.c: Likewise.
2158         * tests/test-memcmp.c: Likewise.
2159         * tests/test-memmem.c: Likewise.
2160         * tests/test-memrchr.c: Likewise.
2161         * tests/test-rawmemchr.c: Likewise.
2162         * tests/test-read-file.c: Likewise.
2163         * tests/test-rijndael.c: Likewise.
2164         * tests/test-sockets.c: Likewise.
2165         * tests/test-strchrnul.c: Likewise.
2166         * tests/test-strstr.c: Likewise.
2167         * tests/test-strtod.c: Likewise.
2168         * build-aux/ncftpput-ftp: Likewise.
2169
2170 2010-01-26  Eric Blake  <ebb9@byu.net>
2171
2172         ignore-value: update recommended header name
2173         * modules/ignore-value (Include): Only use <> for headers that
2174         exist in glibc.
2175
2176 2010-01-26  Jim Meyering  <meyering@redhat.com>
2177
2178         test-userspec.c: avoid compiler warnings
2179         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2180         and "initialization discards qualifiers..." warnings.
2181         Put the first "uid" in its own scope, and make char* members "const".
2182
2183 2010-01-25  Bruno Haible  <bruno@clisp.org>
2184
2185         gnulib-tool: Make warning diagnostics consistent.
2186         * gnulib-tool (func_warning): New function.
2187         Use it everywhere where gnulib-tool produces output to stderr and it is
2188         not a fatal error.
2189
2190 2010-01-25  Bruno Haible  <bruno@clisp.org>
2191
2192         Fix test dependencies.
2193         * modules/xstrtol-tests (Depends-on): Add inttypes.
2194         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2195
2196 2010-01-25 Pádraig Brady <P@draigBrady.com>
2197
2198         syntax-check: detect incorrect boolean macro values in config.h
2199         * modules/maintainer-makefile (configure.ac): Parameterize the location
2200         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2201         The logic is from Eric Blake and the location indicated by Jim Meyering.
2202         Note the more natural CONFIG_HEADER name is prohibited by automake
2203         for backwards compatibility reasons.
2204         * top/maint.mk (sc_Wundef_boolean): New rule.
2205
2206 2010-01-25  Jim Meyering  <meyering@redhat.com>
2207
2208         bootstrap: detect MacOS 10.6's shasum, too
2209         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2210         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2211
2212 2010-01-23  Jim Meyering  <meyering@redhat.com>
2213
2214         xstrtoll: new module
2215         * modules/xstrtoll: New file.
2216         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2217         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2218         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2219         ./configure fails if you use this module and lack "long long".
2220         * modules/xstrtoll-tests: New module.
2221         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2222         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2223         new init.sh-based test framework.
2224
2225 2010-01-24  Bruno Haible  <bruno@clisp.org>
2226
2227         Tests for module 'yn'.
2228         * modules/yn-tests: New file.
2229         * tests/test-yn.c: New file.
2230
2231         Tests for module 'y1'.
2232         * modules/y1-tests: New file.
2233         * tests/test-y1.c: New file.
2234
2235         Tests for module 'y0'.
2236         * modules/y0-tests: New file.
2237         * tests/test-y0.c: New file.
2238
2239         Tests for module 'tanh'.
2240         * modules/tanh-tests: New file.
2241         * tests/test-tanh.c: New file.
2242
2243         Tests for module 'tan'.
2244         * modules/tan-tests: New file.
2245         * tests/test-tan.c: New file.
2246
2247         Tests for module 'sqrt'.
2248         * modules/sqrt-tests: New file.
2249         * tests/test-sqrt.c: New file.
2250
2251         Tests for module 'sinh'.
2252         * modules/sinh-tests: New file.
2253         * tests/test-sinh.c: New file.
2254
2255         Tests for module 'sin'.
2256         * modules/sin-tests: New file.
2257         * tests/test-sin.c: New file.
2258
2259         Tests for module 'rint'.
2260         * modules/rint-tests: New file.
2261         * tests/test-rint.c: New file.
2262
2263         Tests for module 'remainder'.
2264         * modules/remainder-tests: New file.
2265         * tests/test-remainder.c: New file.
2266
2267         Tests for module 'pow'.
2268         * modules/pow-tests: New file.
2269         * tests/test-pow.c: New file.
2270
2271         Tests for module 'nextafter'.
2272         * modules/nextafter-tests: New file.
2273         * tests/test-nextafter.c: New file.
2274
2275         Tests for module 'modf'.
2276         * modules/modf-tests: New file.
2277         * tests/test-modf.c: New file.
2278
2279         Tests for module 'logb'.
2280         * modules/logb-tests: New file.
2281         * tests/test-logb.c: New file.
2282
2283         Tests for module 'log1p'.
2284         * modules/log1p-tests: New file.
2285         * tests/test-log1p.c: New file.
2286
2287         Tests for module 'log10'.
2288         * modules/log10-tests: New file.
2289         * tests/test-log10.c: New file.
2290
2291         Tests for module 'log'.
2292         * modules/log-tests: New file.
2293         * tests/test-log.c: New file.
2294
2295         Tests for module 'lgamma'.
2296         * modules/lgamma-tests: New file.
2297         * tests/test-lgamma.c: New file.
2298
2299         Tests for module 'ldexp'.
2300         * modules/ldexp-tests: New file.
2301         * tests/test-ldexp.c: New file.
2302
2303         Tests for module 'jn'.
2304         * modules/jn-tests: New file.
2305         * tests/test-jn.c: New file.
2306
2307         Tests for module 'j1'.
2308         * modules/j1-tests: New file.
2309         * tests/test-j1.c: New file.
2310
2311         Tests for module 'j0'.
2312         * modules/j0-tests: New file.
2313         * tests/test-j0.c: New file.
2314
2315         Tests for module 'hypot'.
2316         * modules/hypot-tests: New file.
2317         * tests/test-hypot.c: New file.
2318
2319         Tests for module 'fmod'.
2320         * modules/fmod-tests: New file.
2321         * tests/test-fmod.c: New file.
2322
2323         Tests for module 'fabs'.
2324         * modules/fabs-tests: New file.
2325         * tests/test-fabs.c: New file.
2326
2327         Tests for module 'exp'.
2328         * modules/exp-tests: New file.
2329         * tests/test-exp.c: New file.
2330
2331         Tests for module 'erfc'.
2332         * modules/erfc-tests: New file.
2333         * tests/test-erfc.c: New file.
2334
2335         Tests for module 'erf'.
2336         * modules/erf-tests: New file.
2337         * tests/test-erf.c: New file.
2338
2339         Tests for module 'cosh'.
2340         * modules/cosh-tests: New file.
2341         * tests/test-cosh.c: New file.
2342
2343         Tests for module 'cos'.
2344         * modules/cos-tests: New file.
2345         * tests/test-cos.c: New file.
2346
2347         Tests for module 'copysign'.
2348         * modules/copysign-tests: New file.
2349         * tests/test-copysign.c: New file.
2350
2351         Tests for module 'cbrt'.
2352         * modules/cbrt-tests: New file.
2353         * tests/test-cbrt.c: New file.
2354
2355         Tests for module 'atan2'.
2356         * modules/atan2-tests: New file.
2357         * tests/test-atan2.c: New file.
2358
2359         Tests for module 'atan'.
2360         * modules/atan-tests: New file.
2361         * tests/test-atan.c: New file.
2362
2363         Tests for module 'asin'.
2364         * modules/asin-tests: New file.
2365         * tests/test-asin.c: New file.
2366
2367         Tests for module 'acos'.
2368         * modules/acos-tests: New file.
2369         * tests/test-acos.c: New file.
2370
2371 2010-01-24  Bruno Haible  <bruno@clisp.org>
2372
2373         Fix tests for common <math.h> functions.
2374         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2375         code snippet that references the function pointer, rather than merely
2376         calling the function. Substitute the FUNC_LIBM variable.
2377         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2378         * modules/acos (configure.ac): Likewise.
2379         * modules/asin (configure.ac): Likewise.
2380         * modules/atan (configure.ac): Likewise.
2381         * modules/atan2 (configure.ac): Likewise.
2382         * modules/cbrt (configure.ac): Likewise.
2383         * modules/copysign (configure.ac): Likewise.
2384         * modules/cos (configure.ac): Likewise.
2385         * modules/cosh (configure.ac): Likewise.
2386         * modules/erf (configure.ac): Likewise.
2387         * modules/erfc (configure.ac): Likewise.
2388         * modules/exp (configure.ac): Likewise.
2389         * modules/fabs (configure.ac): Likewise.
2390         * modules/fmod (configure.ac): Likewise.
2391         * modules/hypot (configure.ac): Likewise.
2392         * modules/j0 (configure.ac): Likewise.
2393         * modules/j1 (configure.ac): Likewise.
2394         * modules/jn (configure.ac): Likewise.
2395         * modules/ldexp (configure.ac): Likewise.
2396         * modules/lgamma (configure.ac): Likewise.
2397         * modules/log (configure.ac): Likewise.
2398         * modules/log10 (configure.ac): Likewise.
2399         * modules/log1p (configure.ac): Likewise.
2400         * modules/logb (configure.ac): Likewise.
2401         * modules/modf (configure.ac): Likewise.
2402         * modules/nextafter (configure.ac): Likewise.
2403         * modules/pow (configure.ac): Likewise.
2404         * modules/remainder (configure.ac): Likewise.
2405         * modules/rint (configure.ac): Likewise.
2406         * modules/sin (configure.ac): Likewise.
2407         * modules/sinh (configure.ac): Likewise.
2408         * modules/tan (configure.ac): Likewise.
2409         * modules/tanh (configure.ac): Likewise.
2410         * modules/y0 (configure.ac): Likewise.
2411         * modules/y1 (configure.ac): Likewise.
2412         * modules/yn (configure.ac): Likewise.
2413
2414 2010-01-24  Bruno Haible  <bruno@clisp.org>
2415
2416         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2417         * tests/test-acosl.c (x): New variable.
2418         (main): Store argument in x and fetch it from x.
2419         * tests/test-asinl.c (x): New variable.
2420         (main): Store argument in x and fetch it from x.
2421         * tests/test-atanl.c (x): New variable.
2422         (main): Store argument in x and fetch it from x.
2423         * tests/test-cosl.c (x): New variable.
2424         (main): Store argument in x and fetch it from x.
2425         * tests/test-expl.c (x): New variable.
2426         (main): Store argument in x and fetch it from x.
2427         * tests/test-logl.c (x): New variable.
2428         (main): Store argument in x and fetch it from x.
2429         * tests/test-sinl.c (x): New variable.
2430         (main): Store argument in x and fetch it from x.
2431         * tests/test-sqrtl.c (x): New variable.
2432         (main): Store argument in x and fetch it from x.
2433         * tests/test-tanl.c (x): New variable.
2434         (main): Store argument in x and fetch it from x.
2435
2436 2010-01-24  Bruno Haible  <bruno@clisp.org>
2437
2438         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2439         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2440         assignments to the initial TESTS_ENVIRONMENT.
2441         * doc/gnulib.texi (Unit test modules): Document it.
2442         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2443         TESTS_ENVIRONMENT.
2444         * modules/btowc-tests (Makefile.am): Likewise.
2445         * modules/c-stack-tests (Makefile.am): Likewise.
2446         * modules/c-strcase-tests (Makefile.am): Likewise.
2447         * modules/copy-file-tests (Makefile.am): Likewise.
2448         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2449         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2450         * modules/mbrtowc-tests (Makefile.am): Likewise.
2451         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2452         * modules/mbscasestr-tests (Makefile.am): Likewise.
2453         * modules/mbschr-tests (Makefile.am): Likewise.
2454         * modules/mbscspn-tests (Makefile.am): Likewise.
2455         * modules/mbsinit-tests (Makefile.am): Likewise.
2456         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2457         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2458         * modules/mbspbrk-tests (Makefile.am): Likewise.
2459         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2460         * modules/mbsrchr-tests (Makefile.am): Likewise.
2461         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2462         * modules/mbsspn-tests (Makefile.am): Likewise.
2463         * modules/mbsstr-tests (Makefile.am): Likewise.
2464         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2465         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2466         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2467         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2468         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2469         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2470         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2471         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2472         * modules/wcrtomb-tests (Makefile.am): Likewise.
2473         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2474         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2475         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2476         assignments from TESTS_ENVIRONMENT.
2477         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2478         augmentation.
2479         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2480         * modules/atexit-tests (Makefile.am): Likewise.
2481         * modules/binary-io-tests (Makefile.am): Likewise.
2482         * modules/closein-tests (Makefile.am): Likewise.
2483         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2484         * modules/exclude-tests (Makefile.am): Likewise.
2485         * modules/fflush-tests (Makefile.am): Likewise.
2486         * modules/fpending-tests (Makefile.am): Likewise.
2487         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2488         * modules/freadahead-tests (Makefile.am): Likewise.
2489         * modules/freadptr-tests (Makefile.am): Likewise.
2490         * modules/freadseek-tests (Makefile.am): Likewise.
2491         * modules/fseek-tests (Makefile.am): Likewise.
2492         * modules/fseeko-tests (Makefile.am): Likewise.
2493         * modules/ftell-tests (Makefile.am): Likewise.
2494         * modules/ftello-tests (Makefile.am): Likewise.
2495         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2496         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2497         * modules/lseek-tests (Makefile.am): Likewise.
2498         * modules/parse-duration-tests (Makefile.am): Likewise.
2499         * modules/perror-tests (Makefile.am): Likewise.
2500         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2501         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2502         * modules/pipe-tests (Makefile.am): Likewise.
2503         * modules/pread-tests (Makefile.am): Likewise.
2504         * modules/printf-posix-tests (Makefile.am): Likewise.
2505         * modules/select-tests (Makefile.am): Likewise.
2506         * modules/sigpipe-tests (Makefile.am): Likewise.
2507         * modules/tsearch-tests (Makefile.am): Likewise.
2508         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2509         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2510         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2511         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2512         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2513         * modules/version-etc-tests (Makefile.am): Likewise.
2514         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2515         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2516         * modules/xalloc-die-tests (Makefile.am): Likewise.
2517         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2518         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2519         * modules/xstrtol-tests (Makefile.am): Likewise.
2520         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2521         * modules/yesno-tests (Makefile.am): Likewise.
2522         Suggested by Jim Meyering.
2523
2524 2010-01-24  Bruno Haible  <bruno@clisp.org>
2525
2526         More documentation.
2527         * doc/gnulib.texi (Writing modules): New chapter.
2528         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2529         the new chapter.
2530
2531 2010-01-24  Jim Meyering  <meyering@redhat.com>
2532
2533         maint.mk: do not prepend "./" after filtering
2534         * top/maint.mk (_prepend_srcdir_prefix): New variable
2535         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2536         "./" when $(srcdir) is ".".
2537
2538         define STREQ(a,b) consistently, removing useless parentheses
2539         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2540         since the only risk is that "a" or "b" contains an unparenthesized
2541         comma, but if either did that, STREQ would have 3 or more arguments.
2542         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2543         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2544         * lib/hash-triple.c (STREQ): Likewise.
2545         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2546         * lib/getugroups.c (STREQ): Likewise.
2547
2548 2010-01-23  Jim Meyering  <meyering@redhat.com>
2549
2550         maint.mk: fix syntax-check in a non-srcdir build directory
2551         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2552         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2553
2554 2010-01-22  Jim Meyering  <meyering@redhat.com>
2555
2556         userspec: add unit tests
2557         * tests/test-userspec.c: New file.
2558         * modules/userspec-tests: Likewise.
2559
2560 2010-01-21  Jim Meyering  <meyering@redhat.com>
2561
2562         maint.mk: handle source file names containing "." robustly
2563         * top/maint.mk (_dot_escaped_srcdir): Define.
2564         (VC_LIST): Use it in LHS of sed substitution.
2565
2566 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2567
2568         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2569         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2570         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2571         from a non-srcdir build.
2572
2573 2010-01-20  Eric Blake  <ebb9@byu.net>
2574
2575         warn-on-use: use instead of link-warning
2576         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2577         * modules/unistd (Depends-on, Makefile.am): Likewise.
2578         * modules/arpa_inet (Depends-on): Replace link-warning with
2579         warn-on-use.
2580         (Makefile.am): Update rules accordingly.
2581         * modules/ctype (Depends-on, Makefile.am): Likewise.
2582         * modules/dirent (Depends-on, Makefile.am): Likewise.
2583         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2584         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2585         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2586         * modules/locale (Depends-on, Makefile.am): Likewise.
2587         * modules/math (Depends-on, Makefile.am): Likewise.
2588         * modules/search (Depends-on, Makefile.am): Likewise.
2589         * modules/signal (Depends-on, Makefile.am): Likewise.
2590         * modules/spawn (Depends-on, Makefile.am): Likewise.
2591         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2592         * modules/string (Depends-on, Makefile.am): Likewise.
2593         * modules/strings (Depends-on, Makefile.am): Likewise.
2594         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2595         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2596         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2597         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2598         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2599         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2600         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2601         * modules/wchar (Depends-on, Makefile.am): Likewise.
2602         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2603         should be poisoned.
2604         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2605         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2606         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2607         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2608         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2609         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2610         * m4/math_h.m4 (gl_MATH_H): Likewise.
2611         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2612         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2613         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2614         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2615         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2616         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2617         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2621         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2623         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2624         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2625         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2626         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2627         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2628         GL_LINK_WARNING.
2629         * lib/ctype.in.h: Likewise.
2630         * lib/dirent.in.h: Likewise.
2631         * lib/fcntl.in.h: Likewise.
2632         * lib/inttypes.in.h: Likewise.
2633         * lib/langinfo.in.h: Likewise.
2634         * lib/locale.in.h: Likewise.
2635         * lib/math.in.h: Likewise.
2636         * lib/search.in.h: Likewise.
2637         * lib/signal.in.h: Likewise.
2638         * lib/spawn.in.h: Likewise.
2639         * lib/stdio.in.h: Likewise.
2640         * lib/stdlib.in.h: Likewise.
2641         * lib/string.in.h: Likewise.
2642         * lib/strings.in.h: Likewise.
2643         * lib/sys_file.in.h: Likewise.
2644         * lib/sys_ioctl.in.h: Likewise.
2645         * lib/sys_select.in.h: Likewise.
2646         * lib/sys_socket.in.h: Likewise.
2647         * lib/sys_stat.in.h: Likewise.
2648         * lib/sys_times.in.h: Likewise.
2649         * lib/sys_utsname.in.h: Likewise.
2650         * lib/unistd.in.h: Likewise.
2651         * lib/wchar.in.h: Likewise.
2652
2653 2010-01-20  Bruno Haible  <bruno@clisp.org>
2654
2655         Avoid duplicate -lm.
2656         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2657         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2658         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2659         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2660         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2661         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2662         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2663         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2664         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2665         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2666         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2667         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2668         Reported by Paolo Bonzini.
2669
2670 2010-01-19  Bruno Haible  <bruno@clisp.org>
2671
2672         langinfo, nl_langinfo: Relicense under LGPLv2+.
2673         * modules/langinfo (License): Change to LGPLv2+.
2674         * modules/nl_langinfo (License): Likewise.
2675         Patch by David Lutterkort <lutter@redhat.com>.
2676
2677 2010-01-19  Bruno Haible  <bruno@clisp.org>
2678
2679         Avoid compilation error with cc on OSF/1 5.1.
2680         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2681         statement, not before.
2682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2683
2684 2010-01-18  Bruno Haible  <bruno@clisp.org>
2685
2686         Avoid a link error due to the __printf__ symbol.
2687         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2688         and 2.6.x.
2689         (__format__, __printf__): Remove definitions.
2690         * lib/argp-fmtstream.h: Likewise.
2691         * lib/argp.h: Likewise.
2692         * lib/error.h: Likewise.
2693         * lib/vasnprintf.h: Likewise.
2694         * lib/xprintf.h: Likewise.
2695         * lib/xvasprintf.h: Likewise.
2696         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2697
2698 2010-01-18  Bruno Haible  <bruno@clisp.org>
2699
2700         Tests for module 'tanl'.
2701         * modules/tanl-tests: New file.
2702         * tests/test-tanl.c: New file.
2703
2704         Tests for module 'sqrtl'.
2705         * modules/sqrtl-tests: New file.
2706         * tests/test-sqrtl.c: New file.
2707
2708         Tests for module 'sinl'.
2709         * modules/sinl-tests: New file.
2710         * tests/test-sinl.c: New file.
2711
2712         Tests for module 'logl'.
2713         * modules/logl-tests: New file.
2714         * tests/test-logl.c: New file.
2715
2716         Tests for module 'expl'.
2717         * modules/expl-tests: New file.
2718         * tests/test-expl.c: New file.
2719
2720         Tests for module 'cosl'.
2721         * modules/cosl-tests: New file.
2722         * tests/test-cosl.c: New file.
2723
2724         Tests for module 'atanl'.
2725         * modules/atanl-tests: New file.
2726         * tests/test-atanl.c: New file.
2727
2728         Tests for module 'asinl'.
2729         * modules/asinl-tests: New file.
2730         * tests/test-asinl.c: New file.
2731
2732         Tests for module 'acosl'.
2733         * modules/acosl-tests: New file.
2734         * tests/test-acosl.c: New file.
2735
2736         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2737         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2738         tanl): Use the standard gnulib idiom.
2739         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2740         * lib/sinl.c: Likewise.
2741         * lib/tanl.c: Don't include trigl.c.
2742         (kernel_tanl): Make static.
2743         * lib/sincosl.c: Include trigl.h first.
2744         * lib/trigl.c: Likewise.
2745         * m4/acosl.m4: New file.
2746         * m4/asinl.m4: New file.
2747         * m4/atanl.m4: New file.
2748         * m4/cosl.m4: New file.
2749         * m4/expl.m4: New file.
2750         * m4/logl.m4: New file.
2751         * m4/sinl.m4: New file.
2752         * m4/sqrtl.m4: New file.
2753         * m4/tanl.m4: New file.
2754         * m4/mathl.m4: Remove file.
2755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2756         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2757         Don't initialize GNULIB_MATHL.
2758         * modules/acosl: New file.
2759         * modules/asinl: New file.
2760         * modules/atanl: New file.
2761         * modules/cosl: New file.
2762         * modules/expl: New file.
2763         * modules/logl: New file.
2764         * modules/sinl: New file.
2765         * modules/sqrtl: New file.
2766         * modules/tanl: New file.
2767         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2768         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2769         substitute GNULIB_MATHL.
2770         * modules/mathl: Rewritten.
2771         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2772         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2773         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2774         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2775         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2776         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2777         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2778         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2779         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2780
2781 2010-01-18  Bruno Haible  <bruno@clisp.org>
2782
2783         sqrt: Make gl_FUNC_SQRT requirable.
2784         * m4/sqrt.m4: New file.
2785         * modules/sqrt (Files): Add it.
2786         (configure.ac): Invoke gl_FUNC_SQRT.
2787
2788 2010-01-18  Bruno Haible  <bruno@clisp.org>
2789
2790         New modules for common <math.h> functions.
2791         * m4/mathfunc.m4: New file.
2792         * modules/acos: New file.
2793         * modules/asin: New file.
2794         * modules/atan: New file.
2795         * modules/atan2: New file.
2796         * modules/cbrt: New file.
2797         * modules/copysign: New file.
2798         * modules/cos: New file.
2799         * modules/cosh: New file.
2800         * modules/erf: New file.
2801         * modules/erfc: New file.
2802         * modules/exp: New file.
2803         * modules/fabs: New file.
2804         * modules/fmod: New file.
2805         * modules/hypot: New file.
2806         * modules/j0: New file.
2807         * modules/j1: New file.
2808         * modules/jn: New file.
2809         * modules/ldexp: New file.
2810         * modules/lgamma: New file.
2811         * modules/log: New file.
2812         * modules/log10: New file.
2813         * modules/log1p: New file.
2814         * modules/logb: New file.
2815         * modules/modf: New file.
2816         * modules/nextafter: New file.
2817         * modules/pow: New file.
2818         * modules/remainder: New file.
2819         * modules/rint: New file.
2820         * modules/sin: New file.
2821         * modules/sinh: New file.
2822         * modules/sqrt: New file.
2823         * modules/tan: New file.
2824         * modules/tanh: New file.
2825         * modules/y0: New file.
2826         * modules/y1: New file.
2827         * modules/yn: New file.
2828         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2829         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2830         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2831         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2832         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2833         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2834         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2835         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2836         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2837         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2838         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2839         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2840         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2841         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2842         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2843         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2844         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2845         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2846         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2847         * doc/posix-functions/log.texi: Mention the 'log' module.
2848         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2849         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2850         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2851         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2852         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2853         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2854         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2855         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2856         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2857         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2858         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2859         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2860         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2861         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2862         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2863         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2864
2865 2010-01-18  Jim Meyering  <meyering@redhat.com>
2866
2867         ignore-value: relax license to LGPLv2+
2868         * modules/ignore-value (License): Relax to LGPLv2+.
2869
2870         getdate: don't leak when TZ contains two or more '"'s
2871         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2872         double quote in TZ after the first one.
2873
2874         readtokens: do not leak internal token_lengths buffer
2875         * lib/readtokens.c (readtokens): Free the local, lengths,
2876         when the supplied "token_lengths" parameter is NULL.
2877
2878 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2879
2880         Fix a couple of missing LIBTHREAD link failures on AIX.
2881         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2882         $(LIBTHREAD).
2883         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2884
2885         Link test-poll against INET_PTON_LIB.
2886         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2887         for inet_pton on Solaris 10.
2888
2889 2010-01-17  Bruno Haible  <bruno@clisp.org>
2890
2891         unistdio/*-sprintf: Fix typo in module description.
2892         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2893         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2894         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2895         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2896         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2897         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2898         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2899         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2900
2901 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2902
2903         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2904         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2905         variables in shell case patterns, for AIX and HP-UX ksh.
2906
2907         Split large sed scripts, for HP-UX sed.
2908         * modules/stdio: Split sed scripts around 50 sed commands,
2909         to avoid HP-UX limit of 99 commands, in the near future.
2910         * modules/string: Likewise.
2911         * modules/unistd: Likewise.
2912
2913         gnulib-tool: avoid writing in the current directory.
2914         * gnulib-tool (func_emit_lib_Makefile_am)
2915         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2916         not in the current directory, so concurrent gnulib-tool
2917         instances do not interfere.
2918
2919 2010-01-16  Jim Meyering  <meyering@redhat.com>
2920
2921         doc: update users.txt
2922         * users.txt: Add grep.
2923         (diffutils, gzip): Update URLs.
2924
2925 2010-01-12  Bruno Haible  <bruno@clisp.org>
2926
2927         posix_spawn: Avoid test failure on Cygwin.
2928         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2929         characters.
2930         Reported by Simon Josefsson.
2931
2932 2010-01-12  Bruno Haible  <bruno@clisp.org>
2933
2934         * tests/test-cond.c (main): When skipping the test, show the reason.
2935
2936 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2937
2938         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2939
2940 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2941
2942         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2943         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2944
2945 2010-01-12  Eric Blake  <ebb9@byu.net>
2946
2947         build: guarantee AS_VAR_IF
2948         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2949         (gl_AS_VAR_IF): Move...
2950         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2951         Reported by Simon Josefsson.
2952
2953 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2954
2955         * lib/stdio.in.h: Fix typo.
2956
2957 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2958
2959         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2960         libgpg-error.
2961
2962 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2963
2964         * tests/test-xalloc-die.sh: Use $EXEEXT.
2965
2966 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2967             Bruno Haible  <bruno@clisp.org>
2968
2969         getlogin, getlogin_r: Avoid test failure.
2970         * tests/test-getlogin.c: Include <stdio.h>.
2971         (main): Skip the test when the function fails because stdin is not a
2972         tty.
2973         * tests/test-getlogin_r.c: Include <stdio.h>.
2974         (main): Skip the test when the function fails because stdin is not a
2975         tty.
2976
2977 2010-01-11  Eric Blake  <ebb9@byu.net>
2978
2979         tests: avoid more large file warnings
2980         * tests/test-fflush.c: Avoid warning about ftell use.
2981         * tests/test-fseek.c: Avoid warning about fseek use.
2982
2983 2010-01-10  Bruno Haible  <bruno@clisp.org>
2984
2985         nproc: Work better on Linux when /proc and /sys are not mounted.
2986         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2987         as lower bound when, on glibc/Linux systems,
2988         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2989         Suggested by Pádraig Brady <P@draigbrady.com>.
2990         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2991
2992         nproc: Refactor.
2993         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2994         extracted from num_processors.
2995         (num_processors): Call it.
2996
2997 2010-01-11  Jim Meyering  <meyering@redhat.com>
2998
2999         utimecmp: avoid new warning from upcoming gcc-4.5.0
3000         * lib/utimecmp.c (BILLION): Define using #define rather than an
3001         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3002
3003 2010-01-11  Eric Blake  <ebb9@byu.net>
3004
3005         math: add portability warnings for classification macros
3006         * modules/math (Depends-on): Add warn-on-use.
3007         (Makefile.am): Provide new substitutions.
3008         * m4/math_h.m4 (gl_MATH_H): Require inline.
3009         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3010         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3011         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3012         implement warnings.
3013
3014         unistd: warn on use of environ without module
3015         * modules/unistd (Depends-on): Add warn-on-use.
3016         (Makefile.am): Provide new substitutions.
3017         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3018         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3019
3020         stdio: warn on suspicious uses
3021         * modules/stdio (Depends-on): Add warn-on-use.
3022         (Makefile.am): Provide new substitutions.
3023         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3024         fseeko.
3025         * lib/stdio.in.h (gets): Always warn on use.
3026         (fseek, ftell): Adjust when warnings are issued, and honor
3027         _GL_NO_LARGE_FILES as a way to silence the warning.
3028         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3029         any warning about large file offsets.
3030         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3031         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3032         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3033         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3034         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3035         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3036         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3037         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3038
3039         warn-on-use: new module
3040         * modules/warn-on-use: New file.
3041         * build-aux/warn-on-use.h: Likewise.
3042         * m4/warn-on-use.m4: Likewise.
3043         * MODULES.html.sh (Support for building): Mention it.
3044
3045 2010-01-10  Bruno Haible  <bruno@clisp.org>
3046
3047         Tests for module 'unistr/u32-strdup'.
3048         * modules/unistr/u32-strdup-tests: New file.
3049         * tests/unistr/test-u32-strdup.c: New file.
3050
3051         Tests for module 'unistr/u16-strdup'.
3052         * modules/unistr/u16-strdup-tests: New file.
3053         * tests/unistr/test-u16-strdup.c: New file.
3054
3055         Tests for module 'unistr/u8-strdup'.
3056         * modules/unistr/u8-strdup-tests: New file.
3057         * tests/unistr/test-u8-strdup.c: New file.
3058         * tests/unistr/test-strdup.h: New file.
3059
3060         Tests for module 'unistr/u32-strncmp'.
3061         * modules/unistr/u32-strncmp-tests: New file.
3062         * tests/unistr/test-u32-strncmp.c: New file.
3063
3064         Tests for module 'unistr/u16-strncmp'.
3065         * modules/unistr/u16-strncmp-tests: New file.
3066         * tests/unistr/test-u16-strncmp.c: New file.
3067
3068         Tests for module 'unistr/u8-strncmp'.
3069         * modules/unistr/u8-strncmp-tests: New file.
3070         * tests/unistr/test-u8-strncmp.c: New file.
3071         * tests/unistr/test-strncmp.h: New file.
3072
3073         Tests for module 'unistr/u32-strcoll'.
3074         * modules/unistr/u32-strcoll-tests: New file.
3075         * tests/unistr/test-u32-strcoll.c: New file.
3076
3077         Tests for module 'unistr/u16-strcoll'.
3078         * modules/unistr/u16-strcoll-tests: New file.
3079         * tests/unistr/test-u16-strcoll.c: New file.
3080
3081         Tests for module 'unistr/u8-strcoll'.
3082         * modules/unistr/u8-strcoll-tests: New file.
3083         * tests/unistr/test-u8-strcoll.c: New file.
3084
3085         Tests for module 'unistr/u32-strcmp'.
3086         * modules/unistr/u32-strcmp-tests: New file.
3087         * tests/unistr/test-u32-strcmp.c: New file.
3088         * tests/unistr/test-u32-strcmp.h: New file.
3089
3090         Tests for module 'unistr/u16-strcmp'.
3091         * modules/unistr/u16-strcmp-tests: New file.
3092         * tests/unistr/test-u16-strcmp.c: New file.
3093         * tests/unistr/test-u16-strcmp.h: New file.
3094
3095         Tests for module 'unistr/u8-strcmp'.
3096         * modules/unistr/u8-strcmp-tests: New file.
3097         * tests/unistr/test-u8-strcmp.c: New file.
3098         * tests/unistr/test-u8-strcmp.h: New file.
3099         * tests/unistr/test-strcmp.h: New file.
3100
3101         Tests for module 'unistr/u32-strncat'.
3102         * modules/unistr/u32-strncat-tests: New file.
3103         * tests/unistr/test-u32-strncat.c: New file.
3104
3105         Tests for module 'unistr/u16-strncat'.
3106         * modules/unistr/u16-strncat-tests: New file.
3107         * tests/unistr/test-u16-strncat.c: New file.
3108
3109         Tests for module 'unistr/u8-strncat'.
3110         * modules/unistr/u8-strncat-tests: New file.
3111         * tests/unistr/test-u8-strncat.c: New file.
3112         * tests/unistr/test-strncat.h: New file.
3113
3114         Tests for module 'unistr/u32-strcat'.
3115         * modules/unistr/u32-strcat-tests: New file.
3116         * tests/unistr/test-u32-strcat.c: New file.
3117
3118         Tests for module 'unistr/u16-strcat'.
3119         * modules/unistr/u16-strcat-tests: New file.
3120         * tests/unistr/test-u16-strcat.c: New file.
3121
3122         Tests for module 'unistr/u8-strcat'.
3123         * modules/unistr/u8-strcat-tests: New file.
3124         * tests/unistr/test-u8-strcat.c: New file.
3125         * tests/unistr/test-strcat.h: New file.
3126
3127         Tests for module 'unistr/u32-stpncpy'.
3128         * modules/unistr/u32-stpncpy-tests: New file.
3129         * tests/unistr/test-u32-stpncpy.c: New file.
3130
3131         Tests for module 'unistr/u16-stpncpy'.
3132         * modules/unistr/u16-stpncpy-tests: New file.
3133         * tests/unistr/test-u16-stpncpy.c: New file.
3134
3135         Tests for module 'unistr/u8-stpncpy'.
3136         * modules/unistr/u8-stpncpy-tests: New file.
3137         * tests/unistr/test-u8-stpncpy.c: New file.
3138         * tests/unistr/test-stpncpy.h: New file.
3139
3140         Tests for module 'unistr/u32-strncpy'.
3141         * modules/unistr/u32-strncpy-tests: New file.
3142         * tests/unistr/test-u32-strncpy.c: New file.
3143
3144         Tests for module 'unistr/u16-strncpy'.
3145         * modules/unistr/u16-strncpy-tests: New file.
3146         * tests/unistr/test-u16-strncpy.c: New file.
3147
3148         Tests for module 'unistr/u8-strncpy'.
3149         * modules/unistr/u8-strncpy-tests: New file.
3150         * tests/unistr/test-u8-strncpy.c: New file.
3151         * tests/unistr/test-strncpy.h: New file.
3152
3153         Tests for module 'unistr/u32-stpcpy'.
3154         * modules/unistr/u32-stpcpy-tests: New file.
3155         * tests/unistr/test-u32-stpcpy.c: New file.
3156
3157         Tests for module 'unistr/u16-stpcpy'.
3158         * modules/unistr/u16-stpcpy-tests: New file.
3159         * tests/unistr/test-u16-stpcpy.c: New file.
3160
3161         Tests for module 'unistr/u8-stpcpy'.
3162         * modules/unistr/u8-stpcpy-tests: New file.
3163         * tests/unistr/test-u8-stpcpy.c: New file.
3164         * tests/unistr/test-stpcpy.h: New file.
3165
3166         Tests for module 'unistr/u32-strcpy'.
3167         * modules/unistr/u32-strcpy-tests: New file.
3168         * tests/unistr/test-u32-strcpy.c: New file.
3169
3170         Tests for module 'unistr/u16-strcpy'.
3171         * modules/unistr/u16-strcpy-tests: New file.
3172         * tests/unistr/test-u16-strcpy.c: New file.
3173
3174         Tests for module 'unistr/u8-strcpy'.
3175         * modules/unistr/u8-strcpy-tests: New file.
3176         * tests/unistr/test-u8-strcpy.c: New file.
3177         * tests/unistr/test-strcpy.h: New file.
3178
3179         Tests for module 'unistr/u32-strnlen'.
3180         * modules/unistr/u32-strnlen-tests: New file.
3181         * tests/unistr/test-u32-strnlen.c: New file.
3182
3183         Tests for module 'unistr/u16-strnlen'.
3184         * modules/unistr/u16-strnlen-tests: New file.
3185         * tests/unistr/test-u16-strnlen.c: New file.
3186
3187         Tests for module 'unistr/u8-strnlen'.
3188         * modules/unistr/u8-strnlen-tests: New file.
3189         * tests/unistr/test-u8-strnlen.c: New file.
3190         * tests/unistr/test-strnlen.h: New file.
3191
3192         Tests for module 'unistr/u32-strlen'.
3193         * modules/unistr/u32-strlen-tests: New file.
3194         * tests/unistr/test-u32-strlen.c: New file.
3195
3196         Tests for module 'unistr/u16-strlen'.
3197         * modules/unistr/u16-strlen-tests: New file.
3198         * tests/unistr/test-u16-strlen.c: New file.
3199
3200         Tests for module 'unistr/u8-strlen'.
3201         * modules/unistr/u8-strlen-tests: New file.
3202         * tests/unistr/test-u8-strlen.c: New file.
3203
3204         Tests for module 'unistr/u32-prev'.
3205         * modules/unistr/u32-prev-tests: New file.
3206         * tests/unistr/test-u32-prev.c: New file.
3207
3208         Tests for module 'unistr/u16-prev'.
3209         * modules/unistr/u16-prev-tests: New file.
3210         * tests/unistr/test-u16-prev.c: New file.
3211
3212         Tests for module 'unistr/u8-prev'.
3213         * modules/unistr/u8-prev-tests: New file.
3214         * tests/unistr/test-u8-prev.c: New file.
3215
3216         Tests for module 'unistr/u32-next'.
3217         * modules/unistr/u32-next-tests: New file.
3218         * tests/unistr/test-u32-next.c: New file.
3219
3220         Tests for module 'unistr/u16-next'.
3221         * modules/unistr/u16-next-tests: New file.
3222         * tests/unistr/test-u16-next.c: New file.
3223
3224         Tests for module 'unistr/u8-next'.
3225         * modules/unistr/u8-next-tests: New file.
3226         * tests/unistr/test-u8-next.c: New file.
3227
3228         Tests for module 'unistr/u32-strmbtouc'.
3229         * modules/unistr/u32-strmbtouc-tests: New file.
3230         * tests/unistr/test-u32-strmbtouc.c: New file.
3231
3232         Tests for module 'unistr/u16-strmbtouc'.
3233         * modules/unistr/u16-strmbtouc-tests: New file.
3234         * tests/unistr/test-u16-strmbtouc.c: New file.
3235
3236         Tests for module 'unistr/u8-strmbtouc'.
3237         * modules/unistr/u8-strmbtouc-tests: New file.
3238         * tests/unistr/test-u8-strmbtouc.c: New file.
3239
3240         Tests for module 'unistr/u32-strmblen'.
3241         * modules/unistr/u32-strmblen-tests: New file.
3242         * tests/unistr/test-u32-strmblen.c: New file.
3243
3244         Tests for module 'unistr/u16-strmblen'.
3245         * modules/unistr/u16-strmblen-tests: New file.
3246         * tests/unistr/test-u16-strmblen.c: New file.
3247
3248         Tests for module 'unistr/u8-strmblen'.
3249         * modules/unistr/u8-strmblen-tests: New file.
3250         * tests/unistr/test-u8-strmblen.c: New file.
3251
3252         Tests for module 'unistr/u32-cpy-alloc'.
3253         * modules/unistr/u32-cpy-alloc-tests: New file.
3254         * tests/unistr/test-u32-cpy-alloc.c: New file.
3255
3256         Tests for module 'unistr/u16-cpy-alloc'.
3257         * modules/unistr/u16-cpy-alloc-tests: New file.
3258         * tests/unistr/test-u16-cpy-alloc.c: New file.
3259
3260         Tests for module 'unistr/u8-cpy-alloc'.
3261         * modules/unistr/u8-cpy-alloc-tests: New file.
3262         * tests/unistr/test-u8-cpy-alloc.c: New file.
3263         * tests/unistr/test-cpy-alloc.h: New file.
3264
3265         Tests for module 'unistr/u32-mbsnlen'.
3266         * modules/unistr/u32-mbsnlen-tests: New file.
3267         * tests/unistr/test-u32-mbsnlen.c: New file.
3268
3269         Tests for module 'unistr/u16-mbsnlen'.
3270         * modules/unistr/u16-mbsnlen-tests: New file.
3271         * tests/unistr/test-u16-mbsnlen.c: New file.
3272
3273         Tests for module 'unistr/u8-mbsnlen'.
3274         * modules/unistr/u8-mbsnlen-tests: New file.
3275         * tests/unistr/test-u8-mbsnlen.c: New file.
3276
3277         Tests for module 'unistr/u32-chr'.
3278         * modules/unistr/u32-chr-tests: New file.
3279         * tests/unistr/test-u32-chr.c: New file.
3280
3281         Tests for module 'unistr/u16-chr'.
3282         * modules/unistr/u16-chr-tests: New file.
3283         * tests/unistr/test-u16-chr.c: New file.
3284
3285         Tests for module 'unistr/u8-chr'.
3286         * modules/unistr/u8-chr-tests: New file.
3287         * tests/unistr/test-u8-chr.c: New file.
3288         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3289
3290         Tests for module 'unistr/u32-cmp2'.
3291         * modules/unistr/u32-cmp2-tests: New file.
3292         * tests/unistr/test-u32-cmp2.c: New file.
3293
3294         Tests for module 'unistr/u16-cmp2'.
3295         * modules/unistr/u16-cmp2-tests: New file.
3296         * tests/unistr/test-u16-cmp2.c: New file.
3297
3298         Tests for module 'unistr/u8-cmp2'.
3299         * modules/unistr/u8-cmp2-tests: New file.
3300         * tests/unistr/test-u8-cmp2.c: New file.
3301         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3302
3303         Tests for module 'unistr/u32-cmp'.
3304         * modules/unistr/u32-cmp-tests: New file.
3305         * tests/unistr/test-u32-cmp.c: New file.
3306
3307         Tests for module 'unistr/u16-cmp'.
3308         * modules/unistr/u16-cmp-tests: New file.
3309         * tests/unistr/test-u16-cmp.c: New file.
3310
3311         Tests for module 'unistr/u8-cmp'.
3312         * modules/unistr/u8-cmp-tests: New file.
3313         * tests/unistr/test-u8-cmp.c: New file.
3314         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3315
3316         Tests for module 'unistr/u32-set'.
3317         * modules/unistr/u32-set-tests: New file.
3318         * tests/unistr/test-u32-set.c: New file.
3319
3320         Tests for module 'unistr/u16-set'.
3321         * modules/unistr/u16-set-tests: New file.
3322         * tests/unistr/test-u16-set.c: New file.
3323
3324         Tests for module 'unistr/u8-set'.
3325         * modules/unistr/u8-set-tests: New file.
3326         * tests/unistr/test-u8-set.c: New file.
3327         * tests/unistr/test-set.h: New file.
3328
3329         Tests for module 'unistr/u32-move'.
3330         * modules/unistr/u32-move-tests: New file.
3331         * tests/unistr/test-u32-move.c: New file.
3332
3333         Tests for module 'unistr/u16-move'.
3334         * modules/unistr/u16-move-tests: New file.
3335         * tests/unistr/test-u16-move.c: New file.
3336
3337         Tests for module 'unistr/u8-move'.
3338         * modules/unistr/u8-move-tests: New file.
3339         * tests/unistr/test-u8-move.c: New file.
3340         * tests/unistr/test-move.h: New file.
3341
3342         Tests for module 'unistr/u32-cpy'.
3343         * modules/unistr/u32-cpy-tests: New file.
3344         * tests/unistr/test-u32-cpy.c: New file.
3345
3346         Tests for module 'unistr/u16-cpy'.
3347         * modules/unistr/u16-cpy-tests: New file.
3348         * tests/unistr/test-u16-cpy.c: New file.
3349
3350         Tests for module 'unistr/u8-cpy'.
3351         * modules/unistr/u8-cpy-tests: New file.
3352         * tests/unistr/test-u8-cpy.c: New file.
3353         * tests/unistr/test-cpy.h: New file.
3354
3355 2010-01-09  Bruno Haible  <bruno@clisp.org>
3356
3357         Tests for module 'unistr/u32-uctomb'.
3358         * modules/unistr/u32-uctomb-tests: New file.
3359         * tests/unistr/test-u32-uctomb.c: New file.
3360
3361         Tests for module 'unistr/u16-uctomb'.
3362         * modules/unistr/u16-uctomb-tests: New file.
3363         * tests/unistr/test-u16-uctomb.c: New file.
3364
3365         Tests for module 'unistr/u8-uctomb'.
3366         * modules/unistr/u8-uctomb-tests: New file.
3367         * tests/unistr/test-u8-uctomb.c: New file.
3368
3369         Tests for module 'unistr/u32-mbtoucr'.
3370         * modules/unistr/u32-mbtoucr-tests: New file.
3371         * tests/unistr/test-u32-mbtoucr.c: New file.
3372
3373         Tests for module 'unistr/u16-mbtoucr'.
3374         * modules/unistr/u16-mbtoucr-tests: New file.
3375         * tests/unistr/test-u16-mbtoucr.c: New file.
3376
3377         Tests for module 'unistr/u8-mbtoucr'.
3378         * modules/unistr/u8-mbtoucr-tests: New file.
3379         * tests/unistr/test-u8-mbtoucr.c: New file.
3380
3381         Tests for module 'unistr/u32-mbtouc'.
3382         * modules/unistr/u32-mbtouc-tests: New file.
3383         * tests/unistr/test-u32-mbtouc.c: New file.
3384
3385         Tests for module 'unistr/u16-mbtouc'.
3386         * modules/unistr/u16-mbtouc-tests: New file.
3387         * tests/unistr/test-u16-mbtouc.c: New file.
3388
3389         Tests for module 'unistr/u8-mbtouc'.
3390         * modules/unistr/u8-mbtouc-tests: New file.
3391         * tests/unistr/test-u8-mbtouc.c: New file.
3392
3393         Tests for module 'unistr/u32-mbtouc-unsafe'.
3394         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3395         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3396         * tests/unistr/test-u32-mbtouc.h: New file.
3397
3398         Tests for module 'unistr/u16-mbtouc-unsafe'.
3399         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3400         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3401         * tests/unistr/test-u16-mbtouc.h: New file.
3402
3403         Tests for module 'unistr/u8-mbtouc-unsafe'.
3404         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3405         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3406         * tests/unistr/test-u8-mbtouc.h: New file.
3407
3408         Tests for module 'unistr/u32-mblen'.
3409         * modules/unistr/u32-mblen-tests: New file.
3410         * tests/unistr/test-u32-mblen.c: New file.
3411
3412         Tests for module 'unistr/u16-mblen'.
3413         * modules/unistr/u16-mblen-tests: New file.
3414         * tests/unistr/test-u16-mblen.c: New file.
3415
3416         Tests for module 'unistr/u8-mblen'.
3417         * modules/unistr/u8-mblen-tests: New file.
3418         * tests/unistr/test-u8-mblen.c: New file.
3419
3420         Tests for module 'unistr/u32-to-u16'.
3421         * modules/unistr/u32-to-u16-tests: New file.
3422         * tests/unistr/test-u32-to-u16.c: New file.
3423
3424         Tests for module 'unistr/u32-to-u8'.
3425         * modules/unistr/u32-to-u8-tests: New file.
3426         * tests/unistr/test-u32-to-u8.c: New file.
3427
3428         Tests for module 'unistr/u16-to-u32'.
3429         * modules/unistr/u16-to-u32-tests: New file.
3430         * tests/unistr/test-u16-to-u32.c: New file.
3431
3432         Tests for module 'unistr/u16-to-u8'.
3433         * modules/unistr/u16-to-u8-tests: New file.
3434         * tests/unistr/test-u16-to-u8.c: New file.
3435
3436         Tests for module 'unistr/u8-to-u32'.
3437         * modules/unistr/u8-to-u32-tests: New file.
3438         * tests/unistr/test-u8-to-u32.c: New file.
3439
3440         Tests for module 'unistr/u8-to-u16'.
3441         * modules/unistr/u8-to-u16-tests: New file.
3442         * tests/unistr/test-u8-to-u16.c: New file.
3443
3444         Tests for module 'unistr/u32-check'.
3445         * modules/unistr/u32-check-tests: New file.
3446         * tests/unistr/test-u32-check.c: New file.
3447
3448         Tests for module 'unistr/u16-check'.
3449         * modules/unistr/u16-check-tests: New file.
3450         * tests/unistr/test-u16-check.c: New file.
3451
3452         Tests for module 'unistr/u8-check'.
3453         * modules/unistr/u8-check-tests: New file.
3454         * tests/unistr/test-u8-check.c: New file.
3455
3456         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3457         (category_equals): New function.
3458         (main): Add more tests.
3459         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3460
3461         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3462
3463 2010-01-10  Bruno Haible  <bruno@clisp.org>
3464
3465         unistr/u*-strcoll: Try harder to distinguish different strings.
3466         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3467         compare s1 and s2 to see if they are different.
3468
3469 2010-01-10  Bruno Haible  <bruno@clisp.org>
3470
3471         unistr/u*-stpncpy: Fix the return value.
3472         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3473         description of the return value consistent with stpncpy in glibc.
3474         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3475         written non-NUL unit.
3476
3477 2010-01-10  Bruno Haible  <bruno@clisp.org>
3478
3479         unistr/u*-next: Add missing dependencies.
3480         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3481         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3482         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3483
3484 2010-01-10  Bruno Haible  <bruno@clisp.org>
3485
3486         unistr/u8-mbsnlen: Fix return value for incomplete character.
3487         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3488         u8_mblen.
3489         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3490         Remove unistr/u8-mblen.
3491         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3492         u16_mblen.
3493         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3494         Remove unistr/u16-mblen.
3495
3496 2010-01-10  Bruno Haible  <bruno@clisp.org>
3497
3498         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3499         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3500         Reported by Brian Gough <bjg@gnu.org> and
3501         Chris Clayton <chris2553@googlemail.com> via
3502         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3503
3504 2010-01-09  Bruno Haible  <bruno@clisp.org>
3505
3506         unistr/u16-to-u32: Reject invalid input.
3507         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3508         u16_mbtouc.
3509         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3510         Remove unistr/u16-mbtouc.
3511
3512         unistr/u16-to-u8: Reject invalid input.
3513         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3514         u16_mbtouc.
3515         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3516         Remove unistr/u16-mbtouc.
3517
3518         unistr/u8-to-u32: Reject invalid input.
3519         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3520         u8_mbtouc.
3521         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3522         Remove unistr/u8-mbtouc.
3523
3524         unistr/u8-to-u16: Reject invalid input.
3525         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3526         u8_mbtouc.
3527         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3528         Remove unistr/u8-mbtouc.
3529
3530 2010-01-09  Bruno Haible  <bruno@clisp.org>
3531
3532         Tests for module 'getlogin'.
3533         * modules/getlogin-tests: New file.
3534         * tests/test-getlogin.c: New file.
3535
3536         New module 'getlogin'.
3537         * lib/unistd.in.h (getlogin): New declaration.
3538         * lib/getlogin.c: New file.
3539         * m4/getlogin.m4: New file.
3540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3541         HAVE_GETLOGIN.
3542         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3543         HAVE_GETLOGIN.
3544         * modules/getlogin: New file.
3545         * doc/posix-functions/getlogin.texi: Mention the new module.
3546         Reported by John W. Eaton <jwe@gnu.org>.
3547
3548 2010-01-09  Bruno Haible  <bruno@clisp.org>
3549
3550         getlogin_r: Support for native Windows.
3551         * lib/getlogin_r.c: Include <windows.h>
3552         (getlogin_r): Implement for native Windows.
3553         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3554         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3555         via John W. Eaton <jwe@gnu.org>.
3556
3557 2010-01-09  Bruno Haible  <bruno@clisp.org>
3558
3559         getlogin_r: Small fixes.
3560         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3561         succeeds.
3562         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3563         before testing whether getlogin_r is declared. No need to set
3564         HAVE_DECL_GETLOGIN_R to 1.
3565         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3566
3567 2010-01-09  Bruno Haible  <bruno@clisp.org>
3568
3569         * lib/unistd.in.h (getlogin_r): Add comment.
3570
3571 2010-01-09  Bruno Haible  <bruno@clisp.org>
3572
3573         Tests for module 'getlogin_r'.
3574         * modules/getlogin_r-tests: New file.
3575         * tests/test-getlogin_r.c: New file.
3576
3577 2010-01-09  Jim Meyering  <meyering@redhat.com>
3578
3579         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3580         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3581         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3582
3583 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3584
3585         * lib/dup2.c (rpl_dup2): Improve comment.
3586
3587 2010-01-08  Eric Blake  <ebb9@byu.net>
3588
3589         maint.mk: allow packages to add makefile @@ exceptions
3590         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3591         (sc_makefile_check): Rename...
3592         (sc_makefile_at_at_check): ...to this, and use hook.
3593
3594         dup2: work around mingw bug
3595         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3596         Reported by Simon Josefsson.
3597
3598 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3599
3600         glob: Fix C++ compilation.
3601         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3602         C++.
3603
3604 2010-01-07  Bruno Haible  <bruno@clisp.org>
3605
3606         Fix indentation of wctype.in.h, broken since 2007-01-06.
3607         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3608
3609 2010-01-07  Bruno Haible  <bruno@clisp.org>
3610
3611         mbslen: Avoid collision with system function.
3612         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3613         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3614         * m4/mbslen.m4: New file.
3615         * modules/mbslen (Files): Add it.
3616         (configure.ac): Invoke gl_MBSLEN.
3617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3618         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3619         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3620         via Ian Beckwith <ianb@erislabs.net>.
3621
3622 2010-01-07  Bruno Haible  <bruno@clisp.org>
3623
3624         dirent: Document the last fix.
3625         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3626
3627 2010-01-07  Bruno Haible  <bruno@clisp.org>
3628
3629         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3630         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3631         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3632         va_list are defined.
3633         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3634         Reported by Eric Blake.
3635
3636 2010-01-07  Bruno Haible  <bruno@clisp.org>
3637
3638         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3639         * modules/xlist (Depends-on): Add 'list',
3640         * modules/xoset (Depends-on): Add 'oset'.
3641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3642
3643 2010-01-07  Bruno Haible  <bruno@clisp.org>
3644
3645         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3646         * doc/posix-functions/strncasecmp.texi: Likewise.
3647
3648 2010-01-07  Bruno Haible  <bruno@clisp.org>
3649
3650         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3651
3652 2010-01-07  John W. Eaton  <jwe@octave.org>
3653
3654         wctype: allow C++ use
3655         * lib/wctype.in.h: Add extern "C" block for C++.
3656
3657 2010-01-06  Eric Blake  <ebb9@byu.net>
3658
3659         maint.mk: detect incorrect GFDL usage
3660         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3661
3662 2010-01-06  Jim Meyering  <meyering@redhat.com>
3663         and Eric Blake  <ebb9@byu.net>
3664
3665         maint.mk: ignore multi-line copyright in NEWS
3666         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3667
3668 2010-01-06  Eric Blake  <ebb9@byu.net>
3669
3670         select: add missing dependency
3671         * modules/select-tests (Depends-on): Move sockets dependency...
3672         * modules/select (Depends-on): ...here.
3673         Reported by Ian Beckwith.
3674
3675         doc: regenerate INSTALL
3676         * doc/INSTALL: Reflect recent autoconf update.
3677         * doc/INSTALL.ISO: Likewise.
3678         * doc/INSTALL.UTF-8: Likewise.
3679
3680         pread: fix compilation on glibc
3681         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3682         Reported by Ralf Wildenhues.
3683
3684         dirent: fix test failure
3685         * lib/dirent.in.h (includes): Guarantee ino_t.
3686         Reported by Ralf Wildenhues.
3687
3688 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3689
3690         linkat, renameat: avoid bad free
3691         * lib/at-func2.c (at_func2): Fix typo.
3692         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3693
3694 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3695
3696         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3697         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3698         to avoid failure of symlink test later.
3699
3700 2010-01-06  Eric Blake  <ebb9@byu.net>
3701
3702         stdio, unistd: guarantee ssize_t
3703         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3704         2008 are exposed when needed.
3705         * lib/stdio.in.h (includes): Likewise.
3706         Reported by Ralf Wildenhues.
3707
3708 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3709
3710         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3711         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3712         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3713
3714 2010-01-06  Jim Meyering  <meyering@redhat.com>
3715
3716         readtokens: this module *does* require xalloc.h
3717         It uses only functions that were omitted by the old syntax-check rule.
3718         * lib/readtokens.c: Include "xalloc.h" once again.
3719         * modules/readtokens (Depends-on): Add xalloc.
3720         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3721
3722 2010-01-05  Eric Blake  <ebb9@byu.net>
3723
3724         maint: support 'make announcement' from a VPATH build
3725         * top/maint.mk (announcement): Look for correct NEWS file.
3726
3727 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3728
3729         utimens (fdutimens): ignore a negative FD, per contract
3730         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3731         when we have a valid file descriptor.  Otherwise, using a brand
3732         new glibc (with just-patched futimens that now fails with EBADF)
3733         would cause this function to fail with ENOSYS.
3734         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3735         See also http://bugzilla.redhat.com/552320.
3736
3737 2010-01-05  Eric Blake  <ebb9@byu.net>
3738
3739         strcase: document what it provides
3740         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3741         gnulib module.
3742         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3743         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3744
3745 2010-01-05  Jim Meyering  <meyering@redhat.com>
3746
3747         maint: remove useless inclusions of "xalloc.h"
3748         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3749         * lib/readtokens.c: Likewise.
3750         * lib/same.c: Likewise.
3751         * modules/getloadavg (Depends-on): Remove xalloc.
3752         * modules/readtokens: Likewise.
3753         * modules/same: Likewise.
3754
3755         maint.mk: include 4 more function names in alloca.h-checking regexp
3756         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3757         regexp.  Before, we would give a false-positive (saying alloca.h
3758         is included unnecessarily) when the only uses involved omitted symbols.
3759
3760         xalloc.h: use consistent formatting
3761         * lib/xalloc.h: Move declarations to start in the first column.
3762
3763 2010-01-05  Eric Blake  <ebb9@byu.net>
3764
3765         mkdir: avoid xalloc
3766         * lib/mkdir.c (includes): Drop unused header.
3767         Reported by John W. Eaton.
3768
3769 2010-01-04  Jim Meyering  <meyering@redhat.com>
3770
3771         nl_langinfo: avoid configure-time syntax error
3772         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3773         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3774         the empty string.  Don't let that provoke a shell syntax error.
3775
3776         regcomp, regexec, fnmatch: avoid array bounds read error
3777         * lib/regcomp.c (build_equiv_class): From glibc:
3778         Use only the low 24 bits of a findidx return value as an index
3779         into the weights array.  Patch by Ulrich Drepper:
3780         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3781         * lib/regexec.c (check_node_accept_bytes): Likewise.
3782         * lib/fnmatch_loop.c (FCT): Likewise.
3783
3784         regcomp: skip collseq lookup when there are no rules
3785         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3786         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3787
3788         regcomp: recognize ill-formed { } expressions
3789         * lib/regcomp.c (parse_dup_op): From glibc:
3790         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3791
3792         regcomp: fix typo in comment
3793         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3794         s/satisfy/satisfies/.
3795
3796         regcomp: sync from glibc: remove dead store
3797         * lib/regcomp.c (duplicate_node_closure): Remove useless
3798         search_duplicated_node call and dead store.
3799
3800         regcomp: sync from glibc; always use nl_langinfo
3801         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3802         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3803         * modules/regex (Depends-on): Add nl_langinfo.
3804
3805 2010-01-04  Eric Blake  <ebb9@byu.net>
3806
3807         fdopendir: fix configure test
3808         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3809
3810 2010-01-01  Bruno Haible  <bruno@clisp.org>
3811
3812         wchar: Remove unused configure check.
3813         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3814
3815 2010-01-01  Eric Blake  <ebb9@byu.net>
3816
3817         headers: make check of system header explicit
3818         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3819         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3820         ourselves.
3821         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3823         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3824         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3825         internals.
3826         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3827         missing.
3828         Suggested by Bruno Haible.
3829
3830 2010-01-01  Jim Meyering  <meyering@redhat.com>
3831
3832         ChangeLog: tweak to eliminate unnecessary copyright line
3833         * ChangeLog: Remove a copyright line that was mistakenly updated
3834         by today's update-copyright run.  Reported by Eric Blake.
3835
3836         test-update-copyright: don't let envvar setting cause test failure
3837         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3838
3839 2010-01-01  Bruno Haible  <bruno@clisp.org>
3840
3841         localename: Avoid gcc warning.
3842         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3843         function if it is not used.
3844
3845 2010-01-01  Jim Meyering  <meyering@redhat.com>
3846
3847         update nearly all FSF copyright year lists to include 2010
3848         Use the same procedure as for 2009, outlined in
3849         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3850
3851         version-etc: set COPYRIGHT_YEAR to 2010
3852         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3853
3854 2009-12-31  Eric Blake  <ebb9@byu.net>
3855
3856         doc: correct availability of cygwin 1.5.x getopt
3857         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3858         variables.
3859         * doc/posix-functions/opterr.texi (opterr): Likewise.
3860         * doc/posix-functions/optind.texi (optind): Likewise.
3861         * doc/posix-functions/optopt.texi (optopt): Likewise.
3862         * doc/posix-functions/tzname.texi (tzname): Likewise.
3863
3864         openat: update maintainer
3865         * modules/openat (Maintainer): Add myself.
3866
3867         utimens: avoid shadowing warning
3868         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3869         buffers into one, to avoid shadowing, as well as avoiding a
3870         redundant stat.
3871         Reported by Jim Meyering.
3872
3873         test-dup2: avoid compiler warning
3874         * tests/test-dup2.c (is_inheritable): Only define if used.
3875
3876 2010-01-01  Bruno Haible  <bruno@clisp.org>
3877
3878         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3879         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3880         defined, use wctomb instead of wcrtomb.
3881
3882 2010-01-01  Bruno Haible  <bruno@clisp.org>
3883
3884         iconv: Reject native Solaris iconv.
3885         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3886         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3887
3888 2009-12-31  Bruno Haible  <bruno@clisp.org>
3889
3890         * tests/test-signal.c (main): Remove test of 'SIG'.
3891
3892 2009-12-31  Bruno Haible  <bruno@clisp.org>
3893
3894         spawn: Fix incomplete fix.
3895         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3896         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3897         warnings for GNULIB_POSIXCHECK again.
3898         Reported by Eric Blake.
3899
3900 2009-12-31  Bruno Haible  <bruno@clisp.org>
3901
3902         Avoid namespace pollution on glibc systems.
3903         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3904         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3905         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3906         glibc systems.
3907
3908 2009-12-31  Bruno Haible  <bruno@clisp.org>
3909
3910         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3911         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3912         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3913         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3914         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3915         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3916         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3917
3918 2009-12-31  Bruno Haible  <bruno@clisp.org>
3919
3920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3921         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3922         afterwards.
3923
3924 2009-12-31  Bruno Haible  <bruno@clisp.org>
3925
3926         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3927         SYS_UTSNAME_H.
3928
3929 2009-12-31  Bruno Haible  <bruno@clisp.org>
3930
3931         spawn: Fix misapplied patch.
3932         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3933         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3934         warnings for GNULIB_POSIXCHECK.
3935
3936 2009-12-31  Bruno Haible  <bruno@clisp.org>
3937
3938         times: Update after sys_times changed.
3939         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3940         * modules/times (Files): Add it.
3941         (configure.ac): Invoke gl_FUNC_TIMES.
3942
3943 2009-12-31  Bruno Haible  <bruno@clisp.org>
3944
3945         Use AC_C_INLINE where necessary.
3946         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3947         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3949         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3950         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3951         * m4/mbiter.m4 (gl_MBITER): Likewise.
3952         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3953         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3954         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3955         * modules/u64 (configure.ac): Likewise.
3956
3957 2009-12-31  Bruno Haible  <bruno@clisp.org>
3958
3959         Use AC_C_INLINE instead of module 'inline' where possible.
3960         * modules/inline (Description): Clarify purpose.
3961         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3962         * modules/count-one-bits (Depends-on): Remove inline.
3963         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3964         * modules/openat (Depends-on): Remove inline.
3965         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3966         instead of depending on module 'inline'.
3967         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3968         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3969         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3970         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3971         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3972         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3973         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3974         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3975         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3976         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3977         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3978         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3979         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3980         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3981         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3982         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3983         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3984         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3985         Likewise.
3986         * modules/unictype/property-ascii-hex-digit (Depends-on,
3987         configure.ac): Likewise.
3988         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3989         configure.ac): Likewise.
3990         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3991         configure.ac): Likewise.
3992         * modules/unictype/property-bidi-block-separator (Depends-on,
3993         configure.ac): Likewise.
3994         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3995         configure.ac): Likewise.
3996         * modules/unictype/property-bidi-common-separator (Depends-on,
3997         configure.ac): Likewise.
3998         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3999         Likewise.
4000         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4001         configure.ac): Likewise.
4002         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4003         configure.ac): Likewise.
4004         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4005         configure.ac): Likewise.
4006         * modules/unictype/property-bidi-european-digit (Depends-on,
4007         configure.ac): Likewise.
4008         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4009         configure.ac): Likewise.
4010         * modules/unictype/property-bidi-left-to-right (Depends-on,
4011         configure.ac): Likewise.
4012         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4013         configure.ac): Likewise.
4014         * modules/unictype/property-bidi-other-neutral (Depends-on,
4015         configure.ac): Likewise.
4016         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4017         Likewise.
4018         * modules/unictype/property-bidi-segment-separator (Depends-on,
4019         configure.ac): Likewise.
4020         * modules/unictype/property-bidi-whitespace (Depends-on,
4021         configure.ac): Likewise.
4022         * modules/unictype/property-combining (Depends-on, configure.ac):
4023         Likewise.
4024         * modules/unictype/property-composite (Depends-on, configure.ac):
4025         Likewise.
4026         * modules/unictype/property-currency-symbol (Depends-on,
4027         configure.ac): Likewise.
4028         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4029         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4030         Likewise.
4031         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4032         configure.ac): Likewise.
4033         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4034         Likewise.
4035         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4036         Likewise.
4037         * modules/unictype/property-extender (Depends-on, configure.ac):
4038         Likewise.
4039         * modules/unictype/property-format-control (Depends-on, configure.ac):
4040         Likewise.
4041         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4042         Likewise.
4043         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4044         Likewise.
4045         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4046         Likewise.
4047         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4048         Likewise.
4049         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4050         Likewise.
4051         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4052         Likewise.
4053         * modules/unictype/property-id-start (Depends-on, configure.ac):
4054         Likewise.
4055         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4056         Likewise.
4057         * modules/unictype/property-ids-binary-operator (Depends-on,
4058         configure.ac): Likewise.
4059         * modules/unictype/property-ids-trinary-operator (Depends-on,
4060         configure.ac): Likewise.
4061         * modules/unictype/property-ignorable-control (Depends-on,
4062         configure.ac): Likewise.
4063         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4064         Likewise.
4065         * modules/unictype/property-join-control (Depends-on, configure.ac):
4066         Likewise.
4067         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4068         Likewise.
4069         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4070         Likewise.
4071         * modules/unictype/property-logical-order-exception (Depends-on,
4072         configure.ac): Likewise.
4073         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4074         Likewise.
4075         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4076         * modules/unictype/property-non-break (Depends-on, configure.ac):
4077         Likewise.
4078         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4079         Likewise.
4080         * modules/unictype/property-numeric (Depends-on, configure.ac):
4081         Likewise.
4082         * modules/unictype/property-other-alphabetic (Depends-on,
4083         configure.ac): Likewise.
4084         * modules/unictype/property-other-default-ignorable-code-point
4085         (Depends-on, configure.ac): Likewise.
4086         * modules/unictype/property-other-grapheme-extend (Depends-on,
4087         configure.ac): Likewise.
4088         * modules/unictype/property-other-id-continue (Depends-on,
4089         configure.ac): Likewise.
4090         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4091         Likewise.
4092         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4093         Likewise.
4094         * modules/unictype/property-other-math (Depends-on, configure.ac):
4095         Likewise.
4096         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4097         Likewise.
4098         * modules/unictype/property-paired-punctuation (Depends-on,
4099         configure.ac): Likewise.
4100         * modules/unictype/property-paragraph-separator (Depends-on,
4101         configure.ac): Likewise.
4102         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4103         Likewise.
4104         * modules/unictype/property-pattern-white-space (Depends-on,
4105         configure.ac): Likewise.
4106         * modules/unictype/property-private-use (Depends-on, configure.ac):
4107         Likewise.
4108         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4109         Likewise.
4110         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4111         Likewise.
4112         * modules/unictype/property-radical (Depends-on, configure.ac):
4113         Likewise.
4114         * modules/unictype/property-sentence-terminal (Depends-on,
4115         configure.ac): Likewise.
4116         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4117         Likewise.
4118         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4119         * modules/unictype/property-terminal-punctuation (Depends-on,
4120         configure.ac): Likewise.
4121         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4122         Likewise.
4123         * modules/unictype/property-unassigned-code-value (Depends-on,
4124         configure.ac): Likewise.
4125         * modules/unictype/property-unified-ideograph (Depends-on,
4126         configure.ac): Likewise.
4127         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4128         Likewise.
4129         * modules/unictype/property-variation-selector (Depends-on,
4130         configure.ac): Likewise.
4131         * modules/unictype/property-white-space (Depends-on, configure.ac):
4132         Likewise.
4133         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4134         Likewise.
4135         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4136         Likewise.
4137         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4138         Likewise.
4139         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4140         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4141         Likewise.
4142
4143 2009-12-31  Bruno Haible  <bruno@clisp.org>
4144
4145         Remove unnecessary AC_C_INLINE invocation.
4146         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4147         since 2009-08-21.
4148
4149 2009-12-31  Jim Meyering  <meyering@redhat.com>
4150
4151         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4152         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4153         With this change, we can all remove the gpg_key_ID = ... definition
4154         from our respective cfg.mk files.
4155
4156         maint.mk: create announcement template in ~/, not in /tmp
4157         * top/maint.mk (emit_upload_commands): Adjust.
4158         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4159         Remove temporary file, .ci-msg.
4160
4161 2009-12-31  Eric Blake  <ebb9@byu.net>
4162
4163         link-warning: always build headers with link warnings
4164         * modules/arpa_inet (Makefile.am): Always build replacement
4165         header.
4166         * modules/ctype (Makefile.am): Likewise.
4167         * modules/dirent (Makefile.am): Likewise.
4168         * modules/inttypes (Makefile.am): Likewise.
4169         * modules/langinfo (Makefile.am): Likewise.
4170         * modules/locale (Makefile.am): Likewise.
4171         * modules/spawn (Makefile.am): Likewise.
4172         * modules/sys_file (Makefile.am): Likewise.
4173         * modules/sys_ioctl (Makefile.am): Likewise.
4174         * modules/sys_select (Makefile.am): Likewise.
4175         * modules/sys_socket (Makefile.am): Likewise.
4176         * modules/sys_times (Makefile.am): Likewise.
4177         * modules/sys_utsname (Makefile.am): Likewise.
4178         * modules/sys_wait (Makefile.am): Likewise.
4179         * modules/wchar (Makefile.am): Likewise.
4180         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4181         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4182         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4183         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4184         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4185         Likewise.
4186         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4188         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4189         Likewise.
4190         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4191         Likewise.
4192         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4193         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4194         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4196         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4197         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4198         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4199         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4200         (gl_WCHAR_H_DEFAULTS): Likewise.
4201
4202 2009-12-31  Eric Blake  <ebb9@byu.net>
4203
4204         signal, spawn: use link warnings
4205         * lib/signal.in.h (sigset_t): Make unconditional.
4206         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4207         (sigpending, sigprocmask, sigaction): Add link warnings.
4208         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4209         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4210         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4211         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4212         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4213         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4214         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4215         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4216         (posix_spawn_file_actions_destroy)
4217         (posix_spawn_file_actions_addopen)
4218         (posix_spawn_file_actions_addclose)
4219         (posix_spawn_file_actions_adddup2): Likewise.
4220         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4221         * tests/test-signal.c (main): Enhance test.
4222
4223         spawn: improve wrapper support
4224         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4225         (gl_SPAWN_H_DEFAULTS): New defaults.
4226         * modules/spawn (Makefile.am): Substitute them.
4227         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4228         Only declare if missing or broken.
4229
4230         sys_times, sys_utsname: use include_next
4231         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4232         header.
4233         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4234         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4235         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4236         * modules/sys_times (Depends-on): Add include_next.
4237         (Makefile.am): Substitute additional values.
4238         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4239         * lib/sys_times.in.h (includes): Include native header, if
4240         available.
4241         * lib/sys_utsname.in.h (includes): Likewise.
4242         * tests/test-sys_times.c (main): Enhance test.
4243
4244         fdutimensat: revert prior patch
4245         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4246         utimens.h.
4247         Reported by Bruno Haible.
4248
4249 2009-12-30  Eric Blake  <ebb9@byu.net>
4250
4251         sys_wait: drop link-warning dependency
4252         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4253         link-warning efforts.
4254         * lib/sys_wait.in.h: Likewise.
4255
4256         fdutimensat: remove bogus dependency
4257         * modules/fdutimensat (Depends-on): Drop inline.
4258
4259         unistd: fix typo
4260         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4261
4262 2009-12-30  Bruno Haible  <bruno@clisp.org>
4263
4264         Fix compilation error with Solaris cc.
4265         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4266         * lib/unicase/u16-is-invariant.c: Likewise.
4267         * lib/unicase/u32-is-invariant.c: Likewise.
4268         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4269
4270 2009-12-30  Bruno Haible  <bruno@clisp.org>
4271
4272         Fix test crash.
4273         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4274         locales.
4275         Reported by Simon Josefsson <simon@josefsson.org>.
4276
4277 2009-12-30  Bruno Haible  <bruno@clisp.org>
4278
4279         Fix compilation error on most platforms.
4280         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4281         Reported by Simon Josefsson <simon@josefsson.org>
4282         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4283
4284 2009-12-30  Eric Blake  <ebb9@byu.net>
4285
4286         futimens, utimensat: work around ntfs-3g bug
4287         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4288         a ctime bug is present, and expand workaround to cover ntfs-3g.
4289         * lib/utimens.c (fdutimens, lutimens): Likewise.
4290         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4291         (validate_timespec): Adjust return value.
4292         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4293         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4294         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4295
4296 2009-12-29  Eric Blake  <ebb9@byu.net>
4297
4298         link-warning: make usage consistent
4299         * modules/ctype (Depends-on): Add link-warning.
4300         (Makefile.am): Update rules accordingly.
4301         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4302         * modules/locale (Depends-on, Makefile.am): Likewise.
4303         * modules/sys_file (Makefile.am): Likewise.
4304         * modules/getopt-posix (Makefile.am): Delete unused link warning
4305         efforts.
4306         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4307         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4308         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4309         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4310
4311         stdio: remove unused variables
4312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4313         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4314         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4315
4316         tests: test more substitute headers
4317         * modules/ctype-tests: New file.
4318         * modules/dirent-tests: Likewise.
4319         * modules/spawn-tests: Likewise.
4320         * modules/sys_file-tests: Likewise.
4321         * modules/sys_ioctl-tests: Likewise.
4322         * modules/sys_wait-tests: Likewise.
4323         * tests/test-ctype.c: Likewise.
4324         * tests/test-dirent.c: Likewise.
4325         * tests/test-spawn.c: Likewise.
4326         * tests/test-sys_file.c: Likewise.
4327         * tests/test-sys_ioctl.c: Likewise.
4328         * tests/test-sys_wait.c: Likewise.
4329         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4330         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4331         whether or not flock is in use.
4332
4333         tests: remove License section from module
4334         * modules/arpa_inet-tests: Remove unneeded section.
4335         * modules/byteswap-tests: Likewise.
4336         * modules/ceilf-tests: Likewise.
4337         * modules/ceill-tests: Likewise.
4338         * modules/crypto/des-tests: Likewise.
4339         * modules/crypto/gc-arcfour-tests: Likewise.
4340         * modules/crypto/gc-arctwo-tests: Likewise.
4341         * modules/crypto/gc-des-tests: Likewise.
4342         * modules/crypto/gc-hmac-md5-tests: Likewise.
4343         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4344         * modules/crypto/gc-md2-tests: Likewise.
4345         * modules/crypto/gc-md4-tests: Likewise.
4346         * modules/crypto/gc-md5-tests: Likewise.
4347         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4348         * modules/crypto/gc-rijndael-tests: Likewise.
4349         * modules/crypto/gc-sha1-tests: Likewise.
4350         * modules/crypto/gc-tests: Likewise.
4351         * modules/crypto/md2-tests: Likewise.
4352         * modules/crypto/md4-tests: Likewise.
4353         * modules/fcntl-h-tests: Likewise.
4354         * modules/floorf-tests: Likewise.
4355         * modules/floorl-tests: Likewise.
4356         * modules/frexp-nolibm-tests: Likewise.
4357         * modules/frexp-tests: Likewise.
4358         * modules/frexpl-nolibm-tests: Likewise.
4359         * modules/frexpl-tests: Likewise.
4360         * modules/getaddrinfo-tests: Likewise.
4361         * modules/inttypes-tests: Likewise.
4362         * modules/isfinite-tests: Likewise.
4363         * modules/isinf-tests: Likewise.
4364         * modules/ldexpl-tests: Likewise.
4365         * modules/locale-tests: Likewise.
4366         * modules/math-tests: Likewise.
4367         * modules/netdb-tests: Likewise.
4368         * modules/netinet_in-tests: Likewise.
4369         * modules/printf-frexp-tests: Likewise.
4370         * modules/printf-frexpl-tests: Likewise.
4371         * modules/priv-set-tests: Likewise.
4372         * modules/random_r-tests: Likewise.
4373         * modules/round-tests: Likewise.
4374         * modules/roundf-tests: Likewise.
4375         * modules/roundl-tests: Likewise.
4376         * modules/search-tests: Likewise.
4377         * modules/select-tests: Likewise.
4378         * modules/signal-tests: Likewise.
4379         * modules/stdbool-tests: Likewise.
4380         * modules/stddef-tests: Likewise.
4381         * modules/stdint-tests: Likewise.
4382         * modules/stdio-tests: Likewise.
4383         * modules/stdlib-tests: Likewise.
4384         * modules/string-tests: Likewise.
4385         * modules/strings-tests: Likewise.
4386         * modules/sys_select-tests: Likewise.
4387         * modules/sys_socket-tests: Likewise.
4388         * modules/sys_stat-tests: Likewise.
4389         * modules/sys_time-tests: Likewise.
4390         * modules/sys_utsname-tests: Likewise.
4391         * modules/sysexits-tests: Likewise.
4392         * modules/time-tests: Likewise.
4393         * modules/trunc-tests: Likewise.
4394         * modules/truncf-tests: Likewise.
4395         * modules/truncl-tests: Likewise.
4396         * modules/tsearch-tests: Likewise.
4397         * modules/unistd-tests: Likewise.
4398         * modules/wchar-tests: Likewise.
4399         * modules/wctype-tests: Likewise.
4400
4401         tests: fix license on several tests
4402         * tests/test-des.c: Update to GPLv3+.
4403         * tests/test-flock.c: Likewise.
4404         * tests/test-fsync.c: Likewise.
4405         * tests/test-futimens.h: Likewise.
4406         * tests/test-gc-arcfour.c: Likewise.
4407         * tests/test-gc-arctwo.c: Likewise.
4408         * tests/test-gc-des.c: Likewise.
4409         * tests/test-gc-hmac-md5.c: Likewise.
4410         * tests/test-gc-hmac-sha1.c: Likewise.
4411         * tests/test-gc-md2.c: Likewise.
4412         * tests/test-gc-md4.c: Likewise.
4413         * tests/test-gc-md5.c: Likewise.
4414         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4415         * tests/test-gc-rijndael.c: Likewise.
4416         * tests/test-gc-sha1.c: Likewise.
4417         * tests/test-gc.c: Likewise.
4418         * tests/test-getcwd.c: Likewise.
4419         * tests/test-link.c: Likewise.
4420         * tests/test-link.h: Likewise.
4421         * tests/test-lutimens.h: Likewise.
4422         * tests/test-md2.c: Likewise.
4423         * tests/test-md4.c: Likewise.
4424         * tests/test-mkdir.h: Likewise.
4425         * tests/test-rename.c: Likewise.
4426         * tests/test-rename.h: Likewise.
4427         * tests/test-safe-alloc.c: Likewise.
4428         * tests/test-utimens-common.h: Likewise.
4429         * tests/test-utimens.h: Likewise.
4430
4431         maint: sync license texts
4432         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4433         * doc/gpl-3.0.texi: Revert copyright year update.
4434         * doc/lgpl-3.0.texi: Likewise.
4435
4436 2009-12-29  Jim Meyering  <meyering@redhat.com>
4437
4438         update nearly all FSF copyright year lists to include 2009
4439         The files named by the following are exempted:
4440             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4441               test -f "$dst" && { echo "$dst"; continue; }
4442               test -d "$dst" || continue
4443               echo "$dst"/$(basename "$src")
4444             done > exempt
4445             git ls-files tests/unictype >> exempt
4446         In the remaining files, convert to all-interval notation if
4447         - there is already at least one year interval like 2000-2003
4448         - the file is maintained by me
4449         - the file is in lib/uni*/, where that style already prevails
4450         Otherwise, use update-copyright's default.
4451
4452 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4453         and Eric Blake  <ebb9@byu.net>
4454
4455         tests: don't require debug system() to pass
4456         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4457         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4458         * tests/test-unlink.h (test_unlink_func): Likewise.
4459         * tests/test-fstatat.c (main): ...into callers.
4460         * tests/test-lstat.c (main): Likewise.
4461         * tests/test-rmdir.c (main): Likewise.
4462         * tests/test-unlink.c (main): Likewise.
4463         * tests/test-unlinkat.c (main): Likewise.
4464         * tests/test-areadlink-with-size.c (main): Don't require a
4465         debug-only system call to pass, aiding cross-testing to mingw.
4466         * tests/test-areadlink.c (main): Likewise.
4467         * tests/test-areadlinkat-with-size.c (main): Likewise.
4468         * tests/test-areadlinkat.c (main): Likewise.
4469         * tests/test-canonicalize-lgpl.c (main): Likewise.
4470         * tests/test-canonicalize.c (main): Likewise.
4471         * tests/test-chown.c (main): Likewise.
4472         * tests/test-fchownat.c (main): Likewise.
4473         * tests/test-lchown.c (main): Likewise.
4474         * tests/test-fdutimensat.c (main): Likewise.
4475         * tests/test-futimens.c (main): Likewise.
4476         * tests/test-link.c (main): Likewise.
4477         * tests/test-linkat.c (main): Likewise.
4478         * tests/test-mkdir.c (main): Likewise.
4479         * tests/test-mkdirat.c (main): Likewise.
4480         * tests/test-mkfifo.c (main): Likewise.
4481         * tests/test-mkfifoat.c (main): Likewise.
4482         * tests/test-mknod.c (main): Likewise.
4483         * tests/test-readlink.c (main): Likewise.
4484         * tests/test-remove.c (main): Likewise.
4485         * tests/test-rename.c (main): Likewise.
4486         * tests/test-renameat.c (main): Likewise.
4487         * tests/test-symlink.c (main): Likewise.
4488         * tests/test-symlinkat.c (main): Likewise.
4489         * tests/test-utimens.c (main): Likewise.
4490         * tests/test-utimensat.c (main): Likewise.
4491
4492 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4493
4494         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4495         on $(UNUSED_PARAMETER_H) to avoid build failure.
4496
4497 2009-12-28  Jim Meyering  <meyering@redhat.com>
4498
4499         update-copyright: you may specify a max. line length other than 72
4500         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4501
4502         maint: use consistent FSF copyright line syntax
4503         * lib/posixtm.c: Add missing comma in FSF copyright line.
4504         * lib/posixtm.h: Likewise.
4505         * lib/getugroups.c: Add missing ", Inc.".
4506
4507         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4508         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4509         FSF copyright line.  Remove trailing blanks.
4510
4511 2009-12-28  Eric Blake  <ebb9@byu.net>
4512
4513         test-dup2: reduce dependencies
4514         * modules/cloexec (Configure.ac): Set witness.
4515         * modules/dup2-tests (Depends-on): Drop cloexec.
4516         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4517         not present.
4518         Suggested by Bruno Haible.
4519
4520 2009-12-26  Bruno Haible  <bruno@clisp.org>
4521
4522         Remove an unneeded dependency.
4523         * modules/fseterr (Depends-on): Remove dup2.
4524
4525 2009-12-26  Eric Blake  <ebb9@byu.net>
4526
4527         tests: use macros.h in more places
4528         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4529         (ASSERT_STREAM): Provide default of stderr.
4530         * tests/test-dirent-safer.c: Include macros.h, using alternate
4531         stream for assertions.
4532         * tests/test-dup-safer.c: Likewise.
4533         * tests/test-freopen-safer.c: Likewise.
4534         * tests/test-getopt.c: Likewise.
4535         * tests/test-openat-safer.c: Likewise.
4536         * tests/test-pipe.c: Likewise.
4537         * tests/test-popen-safer.c: Likewise.
4538         * modules/dirent-safer-tests (Files): Include macros.h.
4539         * modules/unistd-safer-tests (Files): Likewise.
4540         * modules/freopen-safer-tests (Files): Likewise.
4541         * modules/getopt-posix-tests (Files): Likewise.
4542         * modules/openat-safer-tests (Files): Likewise.
4543         * modules/pipe-tests (Files): Likewise.
4544
4545 2009-12-26  Bruno Haible  <bruno@clisp.org>
4546
4547         javacomp: Portability fix.
4548         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4549         that it also works on Solaris.
4550
4551 2009-12-26  Bruno Haible  <bruno@clisp.org>
4552
4553         localename: Fix storage allocation of gl_locale_name_thread's result.
4554         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4555         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4556         all platforms that have 'uselocale'.
4557         (gl_locale_name_thread_unsafe): New function, extracted from
4558         gl_locale_name_thread.
4559         (gl_locale_name_thread): Call struniq on all platforms that have
4560         'uselocale'.
4561         * tests/test-localename.c (test_locale_name_thread): Check that the
4562         resulting strings are permanently allocated.
4563         * modules/localename-tests (Depends-on): Add strdup.
4564
4565 2009-12-26  Bruno Haible  <bruno@clisp.org>
4566
4567         * tests/test-localename.c (categories): Fill in the strings.
4568
4569 2009-12-26  Jim Meyering  <meyering@redhat.com>
4570
4571         isdir: complete the removal of m4/isdir.m4
4572         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4573
4574         isdir: clean up, since at least grep still uses it
4575         * lib/isdir.c: Include "isdir.h".
4576         (S_ISDIR): Remove now-unneeded definition.
4577         * modules/isdir (Files): Add lib/isdir.h.
4578         * lib/isdir.h: New file, with declaration.
4579         * m4/isdir.m4: Remove file -- unneeded.
4580
4581 2009-12-25  Bruno Haible  <bruno@clisp.org>
4582
4583         selinux-h: Make generated .h files standalone.
4584         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4585         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4586         * lib/se-selinux.in.h: Likewise.
4587         * modules/selinux-h (Depends-on): Add unused-parameter.
4588         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4589         selinux/selinux.h and selinux/context.h.
4590         Suggested by Eric Blake.
4591
4592 2009-12-25  Bruno Haible  <bruno@clisp.org>
4593
4594         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4595         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4596         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4597         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4598         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4599
4600 2009-12-24  Bruno Haible  <bruno@clisp.org>
4601
4602         openat: Fix warning.
4603         * lib/openat-proc.c: Include <unistd.h>.
4604
4605 2009-12-24  Bruno Haible  <bruno@clisp.org>
4606
4607         New module 'unused-parameter'.
4608         * build-aux/unused-parameter.h: New file, extracted from earlier
4609         gnulib-common.m4.
4610         * modules/unused-parameter: New file.
4611         * lib/unistr.h: Include unused-parameter.h.
4612         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4613         _GL_UNUSED.
4614         * modules/unistr/base (Depends-on): Add unused-parameter.
4615
4616 2009-12-24  Bruno Haible  <bruno@clisp.org>
4617
4618         Add missing dependencies to 'extensions' module.
4619         * m4/extensions.m4: Add comment.
4620         * modules/accept4 (Depends-on): Add extensions.
4621         * modules/dup3 (Depends-on): Likewise.
4622         * modules/fcntl (Depends-on): Likewise.
4623         * modules/futimens (Depends-on): Likewise.
4624         * modules/mknod (Depends-on): Likewise.
4625         * modules/pipe2 (Depends-on): Likewise.
4626         * modules/stat-time (Depends-on): Likewise.
4627         * modules/strcasestr-simple (Depends-on): Likewise.
4628         * modules/strsignal (Depends-on): Likewise.
4629         * modules/utimensat (Depends-on): Likewise.
4630         * modules/localcharset (Depends-on): Likewise. Needed because of
4631         gl_FCNTL_O_FLAGS.
4632         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4633         AC_TYPE_MBSTATE_T.
4634         * modules/wcsnrtombs (Depends-on): Likewise.
4635         * modules/wcsrtombs (Depends-on): Likewise.
4636
4637 2009-12-24  Bruno Haible  <bruno@clisp.org>
4638
4639         binary-io: Avoid gcc warning due to SET_BINARY.
4640         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4641         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4642
4643 2009-12-24  Bruno Haible  <bruno@clisp.org>
4644
4645         Avoid future namespace pollution on glibc systems.
4646         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4647         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4648         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4649         glibc systems.
4650
4651 2009-12-24  Bruno Haible  <bruno@clisp.org>
4652
4653         Refactor common macros used in tests.
4654         * tests/macros.h: New file.
4655         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4656         and/or <stdlib.h>, if appropriate.
4657         (ASSERT, SIZEOF): Remove macros.
4658         * tests/test-areadlink-with-size.c: Likewise.
4659         * tests/test-areadlinkat.c: Likewise.
4660         * tests/test-areadlinkat-with-size.c: Likewise.
4661         * tests/test-argmatch.c: Likewise.
4662         * tests/test-argv-iter.c: Likewise.
4663         * tests/test-array-mergesort.c: Likewise.
4664         * tests/test-array_list.c: Likewise.
4665         * tests/test-array_oset.c: Likewise.
4666         * tests/test-avltree_list.c: Likewise.
4667         * tests/test-avltree_oset.c: Likewise.
4668         * tests/test-avltreehash_list.c: Likewise.
4669         * tests/test-base64.c: Likewise.
4670         * tests/test-binary-io.c: Likewise.
4671         * tests/test-bitrotate.c: Likewise.
4672         * tests/test-btowc.c: Likewise.
4673         * tests/test-byteswap.c: Likewise.
4674         * tests/test-c-ctype.c: Likewise.
4675         * tests/test-c-stack.c: Likewise.
4676         * tests/test-c-strcasecmp.c: Likewise.
4677         * tests/test-c-strcasestr.c: Likewise.
4678         * tests/test-c-strncasecmp.c: Likewise.
4679         * tests/test-c-strstr.c: Likewise.
4680         * tests/test-canonicalize-lgpl.c: Likewise.
4681         * tests/test-canonicalize.c: Likewise.
4682         * tests/test-carray_list.c: Likewise.
4683         * tests/test-ceilf1.c: Likewise.
4684         * tests/test-ceilf2.c: Likewise.
4685         * tests/test-ceill.c: Likewise.
4686         * tests/test-chown.c: Likewise.
4687         * tests/test-cloexec.c: Likewise.
4688         * tests/test-copy-acl.c: Likewise.
4689         * tests/test-copy-file.c: Likewise.
4690         * tests/test-count-one-bits.c: Likewise.
4691         * tests/test-dprintf-posix.c: Likewise.
4692         * tests/test-dup2.c: Likewise.
4693         * tests/test-dup3.c: Likewise.
4694         * tests/test-duplocale.c: Likewise.
4695         * tests/test-fbufmode.c: Likewise.
4696         * tests/test-fchdir.c: Likewise.
4697         * tests/test-fchownat.c: Likewise.
4698         * tests/test-fcntl-safer.c: Likewise.
4699         * tests/test-fcntl.c: Likewise.
4700         * tests/test-fdopendir.c: Likewise.
4701         * tests/test-fdutimensat.c: Likewise.
4702         * tests/test-fflush2.c: Likewise.
4703         * tests/test-file-has-acl.c: Likewise.
4704         * tests/test-filevercmp.c: Likewise.
4705         * tests/test-flock.c: Likewise.
4706         * tests/test-floorf1.c: Likewise.
4707         * tests/test-floorf2.c: Likewise.
4708         * tests/test-floorl.c: Likewise.
4709         * tests/test-fnmatch.c: Likewise.
4710         * tests/test-fopen.h: Likewise.
4711         * tests/test-fpending.c: Likewise.
4712         * tests/test-fprintf-posix.c: Likewise.
4713         * tests/test-fpurge.c: Likewise.
4714         * tests/test-freadable.c: Likewise.
4715         * tests/test-freadahead.c: Likewise.
4716         * tests/test-freading.c: Likewise.
4717         * tests/test-freadptr.c: Likewise.
4718         * tests/test-freadptr2.c: Likewise.
4719         * tests/test-freadseek.c: Likewise.
4720         * tests/test-freopen.c: Likewise.
4721         * tests/test-frexp.c: Likewise.
4722         * tests/test-frexpl.c: Likewise.
4723         * tests/test-fseek.c: Likewise.
4724         * tests/test-fseeko.c: Likewise.
4725         * tests/test-fstatat.c: Likewise.
4726         * tests/test-fstrcmp.c: Likewise.
4727         * tests/test-fsync.c: Likewise.
4728         * tests/test-ftell.c: Likewise.
4729         * tests/test-ftello.c: Likewise.
4730         * tests/test-func.c: Likewise.
4731         * tests/test-futimens.c: Likewise.
4732         * tests/test-fwritable.c: Likewise.
4733         * tests/test-fwriting.c: Likewise.
4734         * tests/test-getcwd.c: Likewise.
4735         * tests/test-getdate.c: Likewise.
4736         * tests/test-getdelim.c: Likewise.
4737         * tests/test-getdtablesize.c: Likewise.
4738         * tests/test-getgroups.c: Likewise.
4739         * tests/test-getline.c: Likewise.
4740         * tests/test-getndelim2.c: Likewise.
4741         * tests/test-glob.c: Likewise.
4742         * tests/test-hash.c: Likewise.
4743         * tests/test-i-ring.c: Likewise.
4744         * tests/test-iconv-utf.c: Likewise.
4745         * tests/test-iconv.c: Likewise.
4746         * tests/test-idpriv-drop.c: Likewise.
4747         * tests/test-idpriv-droptemp.c: Likewise.
4748         * tests/test-inet_ntop.c: Likewise.
4749         * tests/test-inet_pton.c: Likewise.
4750         * tests/test-isblank.c: Likewise.
4751         * tests/test-isfinite.c: Likewise.
4752         * tests/test-isinf.c: Likewise.
4753         * tests/test-isnan.c: Likewise.
4754         * tests/test-isnand.h: Likewise.
4755         * tests/test-isnanf.h: Likewise.
4756         * tests/test-isnanl.h: Likewise.
4757         * tests/test-lchown.c: Likewise.
4758         * tests/test-ldexpl.c: Likewise.
4759         * tests/test-link.c: Likewise.
4760         * tests/test-linkat.c: Likewise.
4761         * tests/test-linked_list.c: Likewise.
4762         * tests/test-linkedhash_list.c: Likewise.
4763         * tests/test-localename.c: Likewise.
4764         * tests/test-lseek.c: Likewise.
4765         * tests/test-lstat.c: Likewise.
4766         * tests/test-mbmemcasecmp.c: Likewise.
4767         * tests/test-mbmemcasecoll.c: Likewise.
4768         * tests/test-mbrtowc.c: Likewise.
4769         * tests/test-mbscasecmp.c: Likewise.
4770         * tests/test-mbscasestr1.c: Likewise.
4771         * tests/test-mbscasestr2.c: Likewise.
4772         * tests/test-mbscasestr3.c: Likewise.
4773         * tests/test-mbscasestr4.c: Likewise.
4774         * tests/test-mbschr.c: Likewise.
4775         * tests/test-mbscspn.c: Likewise.
4776         * tests/test-mbsinit.c: Likewise.
4777         * tests/test-mbsncasecmp.c: Likewise.
4778         * tests/test-mbsnrtowcs.c: Likewise.
4779         * tests/test-mbspbrk.c: Likewise.
4780         * tests/test-mbspcasecmp.c: Likewise.
4781         * tests/test-mbsrchr.c: Likewise.
4782         * tests/test-mbsrtowcs.c: Likewise.
4783         * tests/test-mbsspn.c: Likewise.
4784         * tests/test-mbsstr1.c: Likewise.
4785         * tests/test-mbsstr2.c: Likewise.
4786         * tests/test-mbsstr3.c: Likewise.
4787         * tests/test-memchr.c: Likewise.
4788         * tests/test-memchr2.c: Likewise.
4789         * tests/test-memcmp.c: Likewise.
4790         * tests/test-memmem.c: Likewise.
4791         * tests/test-memrchr.c: Likewise.
4792         * tests/test-mkdir.c: Likewise.
4793         * tests/test-mkdirat.c: Likewise.
4794         * tests/test-mkfifo.c: Likewise.
4795         * tests/test-mkfifoat.c: Likewise.
4796         * tests/test-mknod.c: Likewise.
4797         * tests/test-nanosleep.c: Likewise.
4798         * tests/test-nl_langinfo.c: Likewise.
4799         * tests/test-obstack-printf.c: Likewise.
4800         * tests/test-open.c: Likewise.
4801         * tests/test-openat.c: Likewise.
4802         * tests/test-pipe-filter-gi1.c: Likewise.
4803         * tests/test-pipe-filter-gi2-main.c: Likewise.
4804         * tests/test-pipe-filter-ii1.c: Likewise.
4805         * tests/test-pipe-filter-ii2-main.c: Likewise.
4806         * tests/test-pipe2.c: Likewise.
4807         * tests/test-popen.h: Likewise.
4808         * tests/test-posixtm.c: Likewise.
4809         * tests/test-pread.c: Likewise.
4810         * tests/test-printf-frexp.c: Likewise.
4811         * tests/test-printf-frexpl.c: Likewise.
4812         * tests/test-printf-posix.c: Likewise.
4813         * tests/test-priv-set.c: Likewise.
4814         * tests/test-quotearg.c: Likewise.
4815         * tests/test-random_r.c: Likewise.
4816         * tests/test-rawmemchr.c: Likewise.
4817         * tests/test-rbtree_list.c: Likewise.
4818         * tests/test-rbtree_oset.c: Likewise.
4819         * tests/test-rbtreehash_list.c: Likewise.
4820         * tests/test-readlink.c: Likewise.
4821         * tests/test-remove.c: Likewise.
4822         * tests/test-rename.c: Likewise.
4823         * tests/test-renameat.c: Likewise.
4824         * tests/test-rmdir.c: Likewise.
4825         * tests/test-round1.c: Likewise.
4826         * tests/test-roundf1.c: Likewise.
4827         * tests/test-roundl.c: Likewise.
4828         * tests/test-safe-alloc.c: Likewise.
4829         * tests/test-sameacls.c: Likewise.
4830         * tests/test-set-mode-acl.c: Likewise.
4831         * tests/test-setenv.c: Likewise.
4832         * tests/test-sigaction.c: Likewise.
4833         * tests/test-signbit.c: Likewise.
4834         * tests/test-sleep.c: Likewise.
4835         * tests/test-snprintf-posix.c: Likewise.
4836         * tests/test-snprintf.c: Likewise.
4837         * tests/test-sprintf-posix.c: Likewise.
4838         * tests/test-stat-time.c: Likewise.
4839         * tests/test-stat.c: Likewise.
4840         * tests/test-strcasestr.c: Likewise.
4841         * tests/test-strchrnul.c: Likewise.
4842         * tests/test-strerror.c: Likewise.
4843         * tests/test-striconv.c: Likewise.
4844         * tests/test-striconveh.c: Likewise.
4845         * tests/test-striconveha.c: Likewise.
4846         * tests/test-strsignal.c: Likewise.
4847         * tests/test-strstr.c: Likewise.
4848         * tests/test-strtod.c: Likewise.
4849         * tests/test-strverscmp.c: Likewise.
4850         * tests/test-symlink.c: Likewise.
4851         * tests/test-symlinkat.c: Likewise.
4852         * tests/test-trunc1.c: Likewise.
4853         * tests/test-trunc2.c: Likewise.
4854         * tests/test-truncf1.c: Likewise.
4855         * tests/test-truncf2.c: Likewise.
4856         * tests/test-truncl.c: Likewise.
4857         * tests/test-uname.c: Likewise.
4858         * tests/test-unlink.c: Likewise.
4859         * tests/test-unlinkat.c: Likewise.
4860         * tests/test-unsetenv.c: Likewise.
4861         * tests/test-usleep.c: Likewise.
4862         * tests/test-utimens.c: Likewise.
4863         * tests/test-utimensat.c: Likewise.
4864         * tests/test-vasnprintf-posix.c: Likewise.
4865         * tests/test-vasnprintf-posix2.c: Likewise.
4866         * tests/test-vasnprintf.c: Likewise.
4867         * tests/test-vasprintf-posix.c: Likewise.
4868         * tests/test-vasprintf.c: Likewise.
4869         * tests/test-vdprintf-posix.c: Likewise.
4870         * tests/test-vfprintf-posix.c: Likewise.
4871         * tests/test-vprintf-posix.c: Likewise.
4872         * tests/test-vsnprintf-posix.c: Likewise.
4873         * tests/test-vsnprintf.c: Likewise.
4874         * tests/test-vsprintf-posix.c: Likewise.
4875         * tests/test-wcrtomb.c: Likewise.
4876         * tests/test-wcsnrtombs.c: Likewise.
4877         * tests/test-wcsrtombs.c: Likewise.
4878         * tests/test-wctype.c: Likewise.
4879         * tests/test-wcwidth.c: Likewise.
4880         * tests/test-xfprintf-posix.c: Likewise.
4881         * tests/test-xmemdup0.c: Likewise.
4882         * tests/test-xprintf-posix.c: Likewise.
4883         * tests/test-xvasprintf.c: Likewise.
4884         * tests/unicase/test-locale-language.c: Likewise.
4885         * tests/unicase/test-mapping-part1.h: Likewise.
4886         * tests/unicase/test-predicate-part1.h: Likewise.
4887         * tests/unicase/test-u8-casecmp.c: Likewise.
4888         * tests/unicase/test-u8-casecoll.c: Likewise.
4889         * tests/unicase/test-u8-casefold.c: Likewise.
4890         * tests/unicase/test-u8-is-cased.c: Likewise.
4891         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4892         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4893         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4894         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4895         * tests/unicase/test-u8-tolower.c: Likewise.
4896         * tests/unicase/test-u8-totitle.c: Likewise.
4897         * tests/unicase/test-u8-toupper.c: Likewise.
4898         * tests/unicase/test-u16-casecmp.c: Likewise.
4899         * tests/unicase/test-u16-casecoll.c: Likewise.
4900         * tests/unicase/test-u16-casefold.c: Likewise.
4901         * tests/unicase/test-u16-is-cased.c: Likewise.
4902         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4903         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4904         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4905         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4906         * tests/unicase/test-u16-tolower.c: Likewise.
4907         * tests/unicase/test-u16-totitle.c: Likewise.
4908         * tests/unicase/test-u16-toupper.c: Likewise.
4909         * tests/unicase/test-u32-casecmp.c: Likewise.
4910         * tests/unicase/test-u32-casecoll.c: Likewise.
4911         * tests/unicase/test-u32-casefold.c: Likewise.
4912         * tests/unicase/test-u32-is-cased.c: Likewise.
4913         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4914         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4915         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4916         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4917         * tests/unicase/test-u32-tolower.c: Likewise.
4918         * tests/unicase/test-u32-totitle.c: Likewise.
4919         * tests/unicase/test-u32-toupper.c: Likewise.
4920         * tests/unicase/test-ulc-casecmp.c: Likewise.
4921         * tests/unicase/test-ulc-casecoll.c: Likewise.
4922         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4923         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4924         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4925         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4926         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4927         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4928         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4929         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4930         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4931         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4932         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4933         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4934         * tests/unictype/test-bidi_byname.c: Likewise.
4935         * tests/unictype/test-bidi_name.c: Likewise.
4936         * tests/unictype/test-bidi_of.c: Likewise.
4937         * tests/unictype/test-bidi_test.c: Likewise.
4938         * tests/unictype/test-block_list.c: Likewise.
4939         * tests/unictype/test-block_of.c: Likewise.
4940         * tests/unictype/test-block_test.c: Likewise.
4941         * tests/unictype/test-categ_and.c: Likewise.
4942         * tests/unictype/test-categ_and_not.c: Likewise.
4943         * tests/unictype/test-categ_byname.c: Likewise.
4944         * tests/unictype/test-categ_name.c: Likewise.
4945         * tests/unictype/test-categ_none.c: Likewise.
4946         * tests/unictype/test-categ_of.c: Likewise.
4947         * tests/unictype/test-categ_or.c: Likewise.
4948         * tests/unictype/test-categ_test_withtable.c: Likewise.
4949         * tests/unictype/test-combining.c: Likewise.
4950         * tests/unictype/test-decdigit.c: Likewise.
4951         * tests/unictype/test-digit.c: Likewise.
4952         * tests/unictype/test-mirror.c: Likewise.
4953         * tests/unictype/test-numeric.c: Likewise.
4954         * tests/unictype/test-pr_byname.c: Likewise.
4955         * tests/unictype/test-pr_test.c: Likewise.
4956         * tests/unictype/test-predicate-part1.h: Likewise.
4957         * tests/unictype/test-scripts.c: Likewise.
4958         * tests/unictype/test-sy_c_ident.c: Likewise.
4959         * tests/unictype/test-sy_java_ident.c: Likewise.
4960         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4961         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4962         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4963         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4964         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4965         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4966         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4967         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4968         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4969         * tests/uninorm/test-compat-decomposition.c: Likewise.
4970         * tests/uninorm/test-composition.c: Likewise.
4971         * tests/uninorm/test-decomposing-form.c: Likewise.
4972         * tests/uninorm/test-decomposition.c: Likewise.
4973         * tests/uninorm/test-u8-nfc.c: Likewise.
4974         * tests/uninorm/test-u8-nfd.c: Likewise.
4975         * tests/uninorm/test-u8-nfkc.c: Likewise.
4976         * tests/uninorm/test-u8-nfkd.c: Likewise.
4977         * tests/uninorm/test-u8-normcmp.c: Likewise.
4978         * tests/uninorm/test-u8-normcoll.c: Likewise.
4979         * tests/uninorm/test-u16-nfc.c: Likewise.
4980         * tests/uninorm/test-u16-nfd.c: Likewise.
4981         * tests/uninorm/test-u16-nfkc.c: Likewise.
4982         * tests/uninorm/test-u16-nfkd.c: Likewise.
4983         * tests/uninorm/test-u16-normcmp.c: Likewise.
4984         * tests/uninorm/test-u16-normcoll.c: Likewise.
4985         * tests/uninorm/test-u32-nfc.c: Likewise.
4986         * tests/uninorm/test-u32-nfd.c: Likewise.
4987         * tests/uninorm/test-u32-nfkc.c: Likewise.
4988         * tests/uninorm/test-u32-nfkd.c: Likewise.
4989         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4990         * tests/uninorm/test-u32-normcmp.c: Likewise.
4991         * tests/uninorm/test-u32-normcoll.c: Likewise.
4992         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4993         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4994         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4995         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4996         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4997         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4998         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4999         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5000         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5001         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5002         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5003         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5004         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5005         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5006         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5007         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5008         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5009         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5010         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5011         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5012         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5013         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5014         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5015         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5016         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5017         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5018         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5019         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5020         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5021         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5022         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5023         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5024         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5025         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5026         * tests/uniwidth/test-u8-width.c: Likewise.
5027         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5028         * tests/uniwidth/test-u16-width.c: Likewise.
5029         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5030         * tests/uniwidth/test-u32-width.c: Likewise.
5031         * tests/uniwidth/test-uc_width.c: Likewise.
5032         * tests/uniwidth/test-uc_width2.c: Likewise.
5033         * modules/acl-tests (Files): Add tests/macros.h.
5034         * modules/areadlink-tests (Files): Likewise.
5035         * modules/areadlink-with-size-tests (Files): Likewise.
5036         * modules/areadlinkat-tests (Files): Likewise.
5037         * modules/areadlinkat-with-size-tests (Files): Likewise.
5038         * modules/argmatch-tests (Files): Likewise.
5039         * modules/argv-iter-tests (Files): Likewise.
5040         * modules/array-list-tests (Files): Likewise.
5041         * modules/array-mergesort-tests (Files): Likewise.
5042         * modules/array-oset-tests (Files): Likewise.
5043         * modules/avltree-list-tests (Files): Likewise.
5044         * modules/avltree-oset-tests (Files): Likewise.
5045         * modules/avltreehash-list-tests (Files): Likewise.
5046         * modules/base64-tests (Files): Likewise.
5047         * modules/binary-io-tests (Files): Likewise.
5048         * modules/bitrotate-tests (Files): Likewise.
5049         * modules/btowc-tests (Files): Likewise.
5050         * modules/byteswap-tests (Files): Likewise.
5051         * modules/c-ctype-tests (Files): Likewise.
5052         * modules/c-stack-tests (Files): Likewise.
5053         * modules/c-strcase-tests (Files): Likewise.
5054         * modules/c-strcasestr-tests (Files): Likewise.
5055         * modules/c-strstr-tests (Files): Likewise.
5056         * modules/canonicalize-lgpl-tests (Files): Likewise.
5057         * modules/canonicalize-tests (Files): Likewise.
5058         * modules/carray-list-tests (Files): Likewise.
5059         * modules/ceilf-tests (Files): Likewise.
5060         * modules/ceill-tests (Files): Likewise.
5061         * modules/chown-tests (Files): Likewise.
5062         * modules/cloexec-tests (Files): Likewise.
5063         * modules/copy-file-tests (Files): Likewise.
5064         * modules/count-one-bits-tests (Files): Likewise.
5065         * modules/dprintf-posix-tests (Files): Likewise.
5066         * modules/dup2-tests (Files): Likewise.
5067         * modules/dup3-tests (Files): Likewise.
5068         * modules/duplocale-tests (Files): Likewise.
5069         * modules/fbufmode-tests (Files): Likewise.
5070         * modules/fchdir-tests (Files): Likewise.
5071         * modules/fcntl-safer-tests (Files): Likewise.
5072         * modules/fcntl-tests (Files): Likewise.
5073         * modules/fdopendir-tests (Files): Likewise.
5074         * modules/fdutimensat-tests (Files): Likewise.
5075         * modules/fflush-tests (Files): Likewise.
5076         * modules/filevercmp-tests (Files): Likewise.
5077         * modules/flock-tests (Files): Likewise.
5078         * modules/floorf-tests (Files): Likewise.
5079         * modules/floorl-tests (Files): Likewise.
5080         * modules/fnmatch-tests (Files): Likewise.
5081         * modules/fopen-safer-tests (Files): Likewise.
5082         * modules/fopen-tests (Files): Likewise.
5083         * modules/fpending-tests (Files): Likewise.
5084         * modules/fprintf-posix-tests (Files): Likewise.
5085         * modules/fpurge-tests (Files): Likewise.
5086         * modules/freadable-tests (Files): Likewise.
5087         * modules/freadahead-tests (Files): Likewise.
5088         * modules/freading-tests (Files): Likewise.
5089         * modules/freadptr-tests (Files): Likewise.
5090         * modules/freadseek-tests (Files): Likewise.
5091         * modules/freopen-tests (Files): Likewise.
5092         * modules/frexp-nolibm-tests (Files): Likewise.
5093         * modules/frexp-tests (Files): Likewise.
5094         * modules/frexpl-nolibm-tests (Files): Likewise.
5095         * modules/frexpl-tests (Files): Likewise.
5096         * modules/fseek-tests (Files): Likewise.
5097         * modules/fseeko-tests (Files): Likewise.
5098         * modules/fstrcmp-tests (Files): Likewise.
5099         * modules/fsync-tests (Files): Likewise.
5100         * modules/ftell-tests (Files): Likewise.
5101         * modules/ftello-tests (Files): Likewise.
5102         * modules/func-tests (Files): Likewise.
5103         * modules/futimens-tests (Files): Likewise.
5104         * modules/fwritable-tests (Files): Likewise.
5105         * modules/fwriting-tests (Files): Likewise.
5106         * modules/getcwd-tests (Files): Likewise.
5107         * modules/getdate-tests (Files): Likewise.
5108         * modules/getdelim-tests (Files): Likewise.
5109         * modules/getdtablesize-tests (Files): Likewise.
5110         * modules/getgroups-tests (Files): Likewise.
5111         * modules/getline-tests (Files): Likewise.
5112         * modules/getndelim2-tests (Files): Likewise.
5113         * modules/glob-tests (Files): Likewise.
5114         * modules/hash-tests (Files): Likewise.
5115         * modules/i-ring-tests (Files): Likewise.
5116         * modules/iconv-tests (Files): Likewise.
5117         * modules/iconv_open-utf-tests (Files): Likewise.
5118         * modules/idpriv-drop-tests (Files): Likewise.
5119         * modules/idpriv-droptemp-tests (Files): Likewise.
5120         * modules/inet_ntop-tests (Files): Likewise.
5121         * modules/inet_pton-tests (Files): Likewise.
5122         * modules/isblank-tests (Files): Likewise.
5123         * modules/isfinite-tests (Files): Likewise.
5124         * modules/isinf-tests (Files): Likewise.
5125         * modules/isnan-tests (Files): Likewise.
5126         * modules/isnand-nolibm-tests (Files): Likewise.
5127         * modules/isnand-tests (Files): Likewise.
5128         * modules/isnanf-nolibm-tests (Files): Likewise.
5129         * modules/isnanf-tests (Files): Likewise.
5130         * modules/isnanl-nolibm-tests (Files): Likewise.
5131         * modules/isnanl-tests (Files): Likewise.
5132         * modules/lchown-tests (Files): Likewise.
5133         * modules/ldexpl-tests (Files): Likewise.
5134         * modules/link-tests (Files): Likewise.
5135         * modules/linkat-tests (Files): Likewise.
5136         * modules/linked-list-tests (Files): Likewise.
5137         * modules/linkedhash-list-tests (Files): Likewise.
5138         * modules/localename-tests (Files): Likewise.
5139         * modules/lseek-tests (Files): Likewise.
5140         * modules/lstat-tests (Files): Likewise.
5141         * modules/mbmemcasecmp-tests (Files): Likewise.
5142         * modules/mbmemcasecoll-tests (Files): Likewise.
5143         * modules/mbrtowc-tests (Files): Likewise.
5144         * modules/mbscasecmp-tests (Files): Likewise.
5145         * modules/mbscasestr-tests (Files): Likewise.
5146         * modules/mbschr-tests (Files): Likewise.
5147         * modules/mbscspn-tests (Files): Likewise.
5148         * modules/mbsinit-tests (Files): Likewise.
5149         * modules/mbsncasecmp-tests (Files): Likewise.
5150         * modules/mbsnrtowcs-tests (Files): Likewise.
5151         * modules/mbspbrk-tests (Files): Likewise.
5152         * modules/mbspcasecmp-tests (Files): Likewise.
5153         * modules/mbsrchr-tests (Files): Likewise.
5154         * modules/mbsrtowcs-tests (Files): Likewise.
5155         * modules/mbsspn-tests (Files): Likewise.
5156         * modules/mbsstr-tests (Files): Likewise.
5157         * modules/memchr-tests (Files): Likewise.
5158         * modules/memchr2-tests (Files): Likewise.
5159         * modules/memcmp-tests (Files): Likewise.
5160         * modules/memmem-tests (Files): Likewise.
5161         * modules/memrchr-tests (Files): Likewise.
5162         * modules/mkdir-tests (Files): Likewise.
5163         * modules/mkfifo-tests (Files): Likewise.
5164         * modules/mkfifoat-tests (Files): Likewise.
5165         * modules/mknod-tests (Files): Likewise.
5166         * modules/nanosleep-tests (Files): Likewise.
5167         * modules/nl_langinfo-tests (Files): Likewise.
5168         * modules/obstack-printf-tests (Files): Likewise.
5169         * modules/open-tests (Files): Likewise.
5170         * modules/openat-tests (Files): Likewise.
5171         * modules/pipe-filter-gi-tests (Files): Likewise.
5172         * modules/pipe-filter-ii-tests (Files): Likewise.
5173         * modules/pipe2-tests (Files): Likewise.
5174         * modules/popen-safer-tests (Files): Likewise.
5175         * modules/popen-tests (Files): Likewise.
5176         * modules/posixtm-tests (Files): Likewise.
5177         * modules/pread-tests (Files): Likewise.
5178         * modules/printf-frexp-tests (Files): Likewise.
5179         * modules/printf-frexpl-tests (Files): Likewise.
5180         * modules/printf-posix-tests (Files): Likewise.
5181         * modules/priv-set-tests (Files): Likewise.
5182         * modules/quotearg-tests (Files): Likewise.
5183         * modules/random_r-tests (Files): Likewise.
5184         * modules/rawmemchr-tests (Files): Likewise.
5185         * modules/rbtree-list-tests (Files): Likewise.
5186         * modules/rbtree-oset-tests (Files): Likewise.
5187         * modules/rbtreehash-list-tests (Files): Likewise.
5188         * modules/readlink-tests (Files): Likewise.
5189         * modules/remove-tests (Files): Likewise.
5190         * modules/rename-tests (Files): Likewise.
5191         * modules/renameat-tests (Files): Likewise.
5192         * modules/rmdir-tests (Files): Likewise.
5193         * modules/round-tests (Files): Likewise.
5194         * modules/roundf-tests (Files): Likewise.
5195         * modules/roundl-tests (Files): Likewise.
5196         * modules/safe-alloc-tests (Files): Likewise.
5197         * modules/setenv-tests (Files): Likewise.
5198         * modules/sigaction-tests (Files): Likewise.
5199         * modules/signbit-tests (Files): Likewise.
5200         * modules/sleep-tests (Files): Likewise.
5201         * modules/snprintf-posix-tests (Files): Likewise.
5202         * modules/snprintf-tests (Files): Likewise.
5203         * modules/sprintf-posix-tests (Files): Likewise.
5204         * modules/stat-tests (Files): Likewise.
5205         * modules/stat-time-tests (Files): Likewise.
5206         * modules/strcasestr-tests (Files): Likewise.
5207         * modules/strchrnul-tests (Files): Likewise.
5208         * modules/strerror-tests (Files): Likewise.
5209         * modules/striconv-tests (Files): Likewise.
5210         * modules/striconveh-tests (Files): Likewise.
5211         * modules/striconveha-tests (Files): Likewise.
5212         * modules/strsignal-tests (Files): Likewise.
5213         * modules/strstr-tests (Files): Likewise.
5214         * modules/strtod-tests (Files): Likewise.
5215         * modules/strverscmp-tests (Files): Likewise.
5216         * modules/symlink-tests (Files): Likewise.
5217         * modules/symlinkat-tests (Files): Likewise.
5218         * modules/trunc-tests (Files): Likewise.
5219         * modules/truncf-tests (Files): Likewise.
5220         * modules/truncl-tests (Files): Likewise.
5221         * modules/uname-tests (Files): Likewise.
5222         * modules/unicase/cased-tests (Files): Likewise.
5223         * modules/unicase/ignorable-tests (Files): Likewise.
5224         * modules/unicase/locale-language-tests (Files): Likewise.
5225         * modules/unicase/tolower-tests (Files): Likewise.
5226         * modules/unicase/totitle-tests (Files): Likewise.
5227         * modules/unicase/toupper-tests (Files): Likewise.
5228         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5229         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5230         * modules/unicase/u8-casefold-tests (Files): Likewise.
5231         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5232         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5233         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5234         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5235         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5236         * modules/unicase/u8-tolower-tests (Files): Likewise.
5237         * modules/unicase/u8-totitle-tests (Files): Likewise.
5238         * modules/unicase/u8-toupper-tests (Files): Likewise.
5239         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5240         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5241         * modules/unicase/u16-casefold-tests (Files): Likewise.
5242         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5243         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5244         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5245         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5246         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5247         * modules/unicase/u16-tolower-tests (Files): Likewise.
5248         * modules/unicase/u16-totitle-tests (Files): Likewise.
5249         * modules/unicase/u16-toupper-tests (Files): Likewise.
5250         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5251         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5252         * modules/unicase/u32-casefold-tests (Files): Likewise.
5253         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5254         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5255         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5256         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5257         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5258         * modules/unicase/u32-tolower-tests (Files): Likewise.
5259         * modules/unicase/u32-totitle-tests (Files): Likewise.
5260         * modules/unicase/u32-toupper-tests (Files): Likewise.
5261         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5262         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5263         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5264         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5265         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5266         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5267         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5268         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5269         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5270         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5271         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5272         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5273         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5274         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5275         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5276         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5277         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5278         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5279         * modules/unictype/block-list-tests (Files): Likewise.
5280         * modules/unictype/block-of-tests (Files): Likewise.
5281         * modules/unictype/block-test-tests (Files): Likewise.
5282         * modules/unictype/category-C-tests (Files): Likewise.
5283         * modules/unictype/category-Cc-tests (Files): Likewise.
5284         * modules/unictype/category-Cf-tests (Files): Likewise.
5285         * modules/unictype/category-Cn-tests (Files): Likewise.
5286         * modules/unictype/category-Co-tests (Files): Likewise.
5287         * modules/unictype/category-Cs-tests (Files): Likewise.
5288         * modules/unictype/category-L-tests (Files): Likewise.
5289         * modules/unictype/category-Ll-tests (Files): Likewise.
5290         * modules/unictype/category-Lm-tests (Files): Likewise.
5291         * modules/unictype/category-Lo-tests (Files): Likewise.
5292         * modules/unictype/category-Lt-tests (Files): Likewise.
5293         * modules/unictype/category-Lu-tests (Files): Likewise.
5294         * modules/unictype/category-M-tests (Files): Likewise.
5295         * modules/unictype/category-Mc-tests (Files): Likewise.
5296         * modules/unictype/category-Me-tests (Files): Likewise.
5297         * modules/unictype/category-Mn-tests (Files): Likewise.
5298         * modules/unictype/category-N-tests (Files): Likewise.
5299         * modules/unictype/category-Nd-tests (Files): Likewise.
5300         * modules/unictype/category-Nl-tests (Files): Likewise.
5301         * modules/unictype/category-No-tests (Files): Likewise.
5302         * modules/unictype/category-P-tests (Files): Likewise.
5303         * modules/unictype/category-Pc-tests (Files): Likewise.
5304         * modules/unictype/category-Pd-tests (Files): Likewise.
5305         * modules/unictype/category-Pe-tests (Files): Likewise.
5306         * modules/unictype/category-Pf-tests (Files): Likewise.
5307         * modules/unictype/category-Pi-tests (Files): Likewise.
5308         * modules/unictype/category-Po-tests (Files): Likewise.
5309         * modules/unictype/category-Ps-tests (Files): Likewise.
5310         * modules/unictype/category-S-tests (Files): Likewise.
5311         * modules/unictype/category-Sc-tests (Files): Likewise.
5312         * modules/unictype/category-Sk-tests (Files): Likewise.
5313         * modules/unictype/category-Sm-tests (Files): Likewise.
5314         * modules/unictype/category-So-tests (Files): Likewise.
5315         * modules/unictype/category-Z-tests (Files): Likewise.
5316         * modules/unictype/category-Zl-tests (Files): Likewise.
5317         * modules/unictype/category-Zp-tests (Files): Likewise.
5318         * modules/unictype/category-Zs-tests (Files): Likewise.
5319         * modules/unictype/category-and-not-tests (Files): Likewise.
5320         * modules/unictype/category-and-tests (Files): Likewise.
5321         * modules/unictype/category-byname-tests (Files): Likewise.
5322         * modules/unictype/category-name-tests (Files): Likewise.
5323         * modules/unictype/category-none-tests (Files): Likewise.
5324         * modules/unictype/category-of-tests (Files): Likewise.
5325         * modules/unictype/category-or-tests (Files): Likewise.
5326         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5327         * modules/unictype/combining-class-tests (Files): Likewise.
5328         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5329         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5330         * modules/unictype/ctype-blank-tests (Files): Likewise.
5331         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5332         * modules/unictype/ctype-digit-tests (Files): Likewise.
5333         * modules/unictype/ctype-graph-tests (Files): Likewise.
5334         * modules/unictype/ctype-lower-tests (Files): Likewise.
5335         * modules/unictype/ctype-print-tests (Files): Likewise.
5336         * modules/unictype/ctype-punct-tests (Files): Likewise.
5337         * modules/unictype/ctype-space-tests (Files): Likewise.
5338         * modules/unictype/ctype-upper-tests (Files): Likewise.
5339         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5340         * modules/unictype/decimal-digit-tests (Files): Likewise.
5341         * modules/unictype/digit-tests (Files): Likewise.
5342         * modules/unictype/mirror-tests (Files): Likewise.
5343         * modules/unictype/numeric-tests (Files): Likewise.
5344         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5345         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5346         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5347         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5348         Likewise.
5349         * modules/unictype/property-bidi-block-separator-tests (Files):
5350         Likewise.
5351         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5352         Likewise.
5353         * modules/unictype/property-bidi-common-separator-tests (Files):
5354         Likewise.
5355         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5356         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5357         Likewise.
5358         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5359         Likewise.
5360         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5361         Likewise.
5362         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5363         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5364         Likewise.
5365         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5366         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5367         Likewise.
5368         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5369         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5370         * modules/unictype/property-bidi-segment-separator-tests (Files):
5371         Likewise.
5372         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5373         * modules/unictype/property-byname-tests (Files): Likewise.
5374         * modules/unictype/property-combining-tests (Files): Likewise.
5375         * modules/unictype/property-composite-tests (Files): Likewise.
5376         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5377         * modules/unictype/property-dash-tests (Files): Likewise.
5378         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5379         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5380         Likewise.
5381         * modules/unictype/property-deprecated-tests (Files): Likewise.
5382         * modules/unictype/property-diacritic-tests (Files): Likewise.
5383         * modules/unictype/property-extender-tests (Files): Likewise.
5384         * modules/unictype/property-format-control-tests (Files): Likewise.
5385         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5386         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5387         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5388         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5389         * modules/unictype/property-hyphen-tests (Files): Likewise.
5390         * modules/unictype/property-id-continue-tests (Files): Likewise.
5391         * modules/unictype/property-id-start-tests (Files): Likewise.
5392         * modules/unictype/property-ideographic-tests (Files): Likewise.
5393         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5394         * modules/unictype/property-ids-trinary-operator-tests (Files):
5395         Likewise.
5396         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5397         * modules/unictype/property-iso-control-tests (Files): Likewise.
5398         * modules/unictype/property-join-control-tests (Files): Likewise.
5399         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5400         * modules/unictype/property-line-separator-tests (Files): Likewise.
5401         * modules/unictype/property-logical-order-exception-tests (Files):
5402         Likewise.
5403         * modules/unictype/property-lowercase-tests (Files): Likewise.
5404         * modules/unictype/property-math-tests (Files): Likewise.
5405         * modules/unictype/property-non-break-tests (Files): Likewise.
5406         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5407         * modules/unictype/property-numeric-tests (Files): Likewise.
5408         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5409         * modules/unictype/property-other-default-ignorable-code-point-tests
5410         (Files): Likewise.
5411         * modules/unictype/property-other-grapheme-extend-tests (Files):
5412         Likewise.
5413         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5414         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5415         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5416         * modules/unictype/property-other-math-tests (Files): Likewise.
5417         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5418         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5419         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5420         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5421         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5422         * modules/unictype/property-private-use-tests (Files): Likewise.
5423         * modules/unictype/property-punctuation-tests (Files): Likewise.
5424         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5425         * modules/unictype/property-radical-tests (Files): Likewise.
5426         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5427         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5428         * modules/unictype/property-space-tests (Files): Likewise.
5429         * modules/unictype/property-terminal-punctuation-tests (Files):
5430         Likewise.
5431         * modules/unictype/property-test-tests (Files): Likewise.
5432         * modules/unictype/property-titlecase-tests (Files): Likewise.
5433         * modules/unictype/property-unassigned-code-value-tests (Files):
5434         Likewise.
5435         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5436         * modules/unictype/property-uppercase-tests (Files): Likewise.
5437         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5438         * modules/unictype/property-white-space-tests (Files): Likewise.
5439         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5440         * modules/unictype/property-xid-start-tests (Files): Likewise.
5441         * modules/unictype/property-zero-width-tests (Files): Likewise.
5442         * modules/unictype/scripts-tests (Files): Likewise.
5443         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5444         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5445         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5446         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5447         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5448         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5449         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5450         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5451         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5452         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5453         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5454         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5455         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5456         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5457         * modules/uninorm/composition-tests (Files): Likewise.
5458         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5459         * modules/uninorm/decomposition-tests (Files): Likewise.
5460         * modules/uninorm/filter-tests (Files): Likewise.
5461         * modules/uninorm/nfc-tests (Files): Likewise.
5462         * modules/uninorm/nfd-tests (Files): Likewise.
5463         * modules/uninorm/nfkc-tests (Files): Likewise.
5464         * modules/uninorm/nfkd-tests (Files): Likewise.
5465         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5466         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5467         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5468         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5469         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5470         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5471         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5472         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5473         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5474         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5475         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5476         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5477         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5478         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5479         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5480         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5481         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5482         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5483         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5484         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5485         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5486         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5487         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5488         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5489         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5490         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5491         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5492         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5493         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5494         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5495         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5496         * modules/uniwidth/u8-width-tests (Files): Likewise.
5497         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5498         * modules/uniwidth/u16-width-tests (Files): Likewise.
5499         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5500         * modules/uniwidth/u32-width-tests (Files): Likewise.
5501         * modules/uniwidth/width-tests (Files): Likewise.
5502         * modules/unlink-tests (Files): Likewise.
5503         * modules/unsetenv-tests (Files): Likewise.
5504         * modules/usleep-tests (Files): Likewise.
5505         * modules/utimens-tests (Files): Likewise.
5506         * modules/utimensat-tests (Files): Likewise.
5507         * modules/vasnprintf-posix-tests (Files): Likewise.
5508         * modules/vasnprintf-tests (Files): Likewise.
5509         * modules/vasprintf-posix-tests (Files): Likewise.
5510         * modules/vasprintf-tests (Files): Likewise.
5511         * modules/vdprintf-posix-tests (Files): Likewise.
5512         * modules/vfprintf-posix-tests (Files): Likewise.
5513         * modules/vprintf-posix-tests (Files): Likewise.
5514         * modules/vsnprintf-posix-tests (Files): Likewise.
5515         * modules/vsnprintf-tests (Files): Likewise.
5516         * modules/vsprintf-posix-tests (Files): Likewise.
5517         * modules/wcrtomb-tests (Files): Likewise.
5518         * modules/wcsnrtombs-tests (Files): Likewise.
5519         * modules/wcsrtombs-tests (Files): Likewise.
5520         * modules/wctype-tests (Files): Likewise.
5521         * modules/wcwidth-tests (Files): Likewise.
5522         * modules/xmemdup0-tests (Files): Likewise.
5523         * modules/xprintf-posix-tests (Files): Likewise.
5524         * modules/xvasprintf-tests (Files): Likewise.
5525
5526 2009-12-24  Eric Blake  <ebb9@byu.net>
5527
5528         test-nanosleep: fix typo
5529         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5530         patch.
5531         Reported by Bruno Haible.
5532
5533 2009-12-24  Bruno Haible  <bruno@clisp.org>
5534
5535         Reduce namespace pollution on glibc systems.
5536         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5537         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5538         systems.
5539         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5540         <getopt.h> on glibc systems.
5541         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5542         systems.
5543         * lib/fcntl.c: Include <unistd.h> here instead.
5544
5545 2009-12-24  Bruno Haible  <bruno@clisp.org>
5546
5547         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5548
5549 2009-12-24  Eric Blake  <ebb9@byu.net>
5550
5551         tests: add signature checks
5552         * tests/signature.h (SIGNATURE_CHECK): New file.
5553         * modules/atexit-tests (Files): Use it.
5554         * modules/btowc-tests (Files): Likewise.
5555         * modules/canonicalize-lgpl-tests (Files): Likewise.
5556         * modules/ceilf-tests (Files): Likewise.
5557         * modules/ceill-tests (Files): Likewise.
5558         * modules/chown-tests (Files): Likewise.
5559         * modules/dprintf-posix-tests (Files): Likewise.
5560         * modules/dup2-tests (Files): Likewise.
5561         * modules/dup3-tests (Files): Likewise.
5562         * modules/duplocale-tests (Files): Likewise.
5563         * modules/fchdir-tests (Files): Likewise.
5564         * modules/fcntl-tests (Files): Likewise.
5565         * modules/fdopendir-tests (Files): Likewise.
5566         * modules/fflush-tests (Files): Likewise.
5567         * modules/flock-tests (Files): Likewise.
5568         * modules/floorf-tests (Files): Likewise.
5569         * modules/floorl-tests (Files): Likewise.
5570         * modules/fnmatch-tests (Files): Likewise.
5571         * modules/fopen-tests (Files): Likewise.
5572         * modules/fprintf-posix-tests (Files): Likewise.
5573         * modules/freopen-tests (Files): Likewise.
5574         * modules/frexp-nolibm-tests (Files): Likewise.
5575         * modules/frexp-tests (Files): Likewise.
5576         * modules/frexpl-nolibm-tests (Files): Likewise.
5577         * modules/frexpl-tests (Files): Likewise.
5578         * modules/fseek-tests (Files): Likewise.
5579         * modules/fseeko-tests (Files): Likewise.
5580         * modules/fsync-tests (Files): Likewise.
5581         * modules/ftell-tests (Files): Likewise.
5582         * modules/ftello-tests (Files): Likewise.
5583         * modules/futimens-tests (Files): Likewise.
5584         * modules/getaddrinfo-tests (Files): Likewise.
5585         * modules/getcwd-tests (Files): Likewise.
5586         * modules/getdelim-tests (Files): Likewise.
5587         * modules/getdtablesize-tests (Files): Likewise.
5588         * modules/getgroups-tests (Files): Likewise.
5589         * modules/gethostname-tests (Files): Likewise.
5590         * modules/getline-tests (Files): Likewise.
5591         * modules/getopt-posix-tests (Files): Likewise.
5592         * modules/gettimeofday-tests (Files): Likewise.
5593         * modules/glob-tests (Files): Likewise.
5594         * modules/iconv-tests (Files): Likewise.
5595         * modules/inet_ntop-tests (Files): Likewise.
5596         * modules/inet_pton-tests (Files): Likewise.
5597         * modules/isblank-tests (Files): Likewise.
5598         * modules/lchown-tests (Files): Likewise.
5599         * modules/ldexpl-tests (Files): Likewise.
5600         * modules/link-tests (Files): Likewise.
5601         * modules/linkat-tests (Files): Likewise.
5602         * modules/lseek-tests (Files): Likewise.
5603         * modules/lstat-tests (Files): Likewise.
5604         * modules/mbrtowc-tests (Files): Likewise.
5605         * modules/mbsinit-tests (Files): Likewise.
5606         * modules/mbsnrtowcs-tests (Files): Likewise.
5607         * modules/mbsrtowcs-tests (Files): Likewise.
5608         * modules/memchr-tests (Files): Likewise.
5609         * modules/memcmp-tests (Files): Likewise.
5610         * modules/memmem-tests (Files): Likewise.
5611         * modules/memrchr-tests (Files): Likewise.
5612         * modules/mkdir-tests (Files): Likewise.
5613         * modules/mkfifo-tests (Files): Likewise.
5614         * modules/mkfifoat-tests (Files): Likewise.
5615         * modules/mknod-tests (Files): Likewise.
5616         * modules/nanosleep-tests (Files): Likewise.
5617         * modules/nl_langinfo-tests (Files): Likewise.
5618         * modules/obstack-printf-tests (Files): Likewise.
5619         * modules/open-tests (Files): Likewise.
5620         * modules/openat-tests (Files): Likewise.
5621         * modules/perror-tests (Files): Likewise.
5622         * modules/pipe2-tests (Files): Likewise.
5623         * modules/poll-tests (Files): Likewise.
5624         * modules/popen-tests (Files): Likewise.
5625         * modules/posix_spawn-tests (Files): Likewise.
5626         * modules/posix_spawnp-tests (Files): Likewise.
5627         * modules/pread-tests (Files): Likewise.
5628         * modules/printf-posix-tests (Files): Likewise.
5629         * modules/pty-tests (Files): Likewise.
5630         * modules/random_r-tests (Files): Likewise.
5631         * modules/rawmemchr-tests (Files): Likewise.
5632         * modules/readlink-tests (Files): Likewise.
5633         * modules/remove-tests (Files): Likewise.
5634         * modules/rename-tests (Files): Likewise.
5635         * modules/renameat-tests (Files): Likewise.
5636         * modules/rmdir-tests (Files): Likewise.
5637         * modules/round-tests (Files): Likewise.
5638         * modules/roundf-tests (Files): Likewise.
5639         * modules/roundl-tests (Files): Likewise.
5640         * modules/select-tests (Files): Likewise.
5641         * modules/setenv-tests (Files): Likewise.
5642         * modules/sigaction-tests (Files): Likewise.
5643         * modules/sleep-tests (Files): Likewise.
5644         * modules/snprintf-posix-tests (Files): Likewise.
5645         * modules/snprintf-tests (Files): Likewise.
5646         * modules/sprintf-posix-tests (Files): Likewise.
5647         * modules/stat-tests (Files): Likewise.
5648         * modules/strcasestr-tests (Files): Likewise.
5649         * modules/strchrnul-tests (Files): Likewise.
5650         * modules/strerror-tests (Files): Likewise.
5651         * modules/strsignal-tests (Files): Likewise.
5652         * modules/strstr-tests (Files): Likewise.
5653         * modules/strtod-tests (Files): Likewise.
5654         * modules/strverscmp-tests (Files): Likewise.
5655         * modules/symlink-tests (Files): Likewise.
5656         * modules/symlinkat-tests (Files): Likewise.
5657         * modules/times-tests (Files): Likewise.
5658         * modules/trunc-tests (Files): Likewise.
5659         * modules/truncf-tests (Files): Likewise.
5660         * modules/truncl-tests (Files): Likewise.
5661         * modules/tsearch-tests (Files): Likewise.
5662         * modules/uname-tests (Files): Likewise.
5663         * modules/unlink-tests (Files): Likewise.
5664         * modules/unsetenv-tests (Files): Likewise.
5665         * modules/usleep-tests (Files): Likewise.
5666         * modules/utimensat-tests (Files): Likewise.
5667         * modules/vasprintf-tests (Files): Likewise.
5668         * modules/vdprintf-posix-tests (Files): Likewise.
5669         * modules/vfprintf-posix-tests (Files): Likewise.
5670         * modules/vprintf-posix-tests (Files): Likewise.
5671         * modules/vsnprintf-posix-tests (Files): Likewise.
5672         * modules/vsnprintf-tests (Files): Likewise.
5673         * modules/vsprintf-posix-tests (Files): Likewise.
5674         * modules/wcrtomb-tests (Files): Likewise.
5675         * modules/wcsnrtombs-tests (Files): Likewise.
5676         * modules/wcsrtombs-tests (Files): Likewise.
5677         * modules/wcwidth-tests (Files): Likewise.
5678         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5679         * tests/test-isinf.c (isinf): Likewise.
5680         * tests/test-isnan.c (isnan): Likewise.
5681         * tests/test-signbit.c (signbit): Likewise.
5682         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5683         declaration, either as macro or with correct signature.
5684         (select): Ensure function under test is declared with correct
5685         signature in correct header.
5686         * tests/test-atexit.c (atexit): Likewise.
5687         * tests/test-btowc.c (btowc): Likewise.
5688         * tests/test-canonicalize-lgpl.c (realpath)
5689         (canonicalize_file_name): Likewise.
5690         * tests/test-ceilf1.c (ceilf): Likewise.
5691         * tests/test-ceill.c (ceill): Likewise.
5692         * tests/test-chown.c (chown): Likewise.
5693         * tests/test-dprintf-posix.c (dprintf): Likewise.
5694         * tests/test-dup2.c (dup2): Likewise.
5695         * tests/test-dup3.c (dup3): Likewise.
5696         * tests/test-duplocale.c (duplocale): Likewise.
5697         * tests/test-fchdir.c (fchdir): Likewise.
5698         * tests/test-fchownat.c (fchownat): Likewise.
5699         * tests/test-fcntl.c (fcntl): Likewise.
5700         * tests/test-fdopendir.c (fdopendir): Likewise.
5701         * tests/test-fflush.c (fflush): Likewise.
5702         * tests/test-flock.c (flock): Likewise.
5703         * tests/test-floorf1.c (floorf): Likewise.
5704         * tests/test-floorl.c (floorl): Likewise.
5705         * tests/test-fnmatch.c (fnmatch): Likewise.
5706         * tests/test-fopen.c (fopen): Likewise.
5707         * tests/test-fprintf-posix.c (fprintf): Likewise.
5708         * tests/test-freopen.c (freopen): Likewise.
5709         * tests/test-frexp.c (frexp): Likewise.
5710         * tests/test-frexpl.c (frexpl): Likewise.
5711         * tests/test-fseek.c (fseek): Likewise.
5712         * tests/test-fseeko.c (fseeko): Likewise.
5713         * tests/test-fstatat.c (fstatat): Likewise.
5714         * tests/test-fsync.c (fsync): Likewise.
5715         * tests/test-ftell.c (ftell): Likewise.
5716         * tests/test-ftello.c (ftello): Likewise.
5717         * tests/test-futimens.c (futimens): Likewise.
5718         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5719         (gai_strerror): Likewise.
5720         * tests/test-getcwd.c (getcwd): Likewise.
5721         * tests/test-getdelim.c (getdelim): Likewise.
5722         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5723         * tests/test-getgroups.c (getgroups): Likewise.
5724         * tests/test-gethostname.c (gethostname): Likewise.
5725         * tests/test-getline.c (getline): Likewise.
5726         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5727         Likewise.
5728         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5729         * tests/test-glob.c (glob, globfree): Likewise.
5730         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5731         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5732         * tests/test-inet_pton.c (inet_pton): Likewise.
5733         * tests/test-isblank.c (isblank): Likewise.
5734         * tests/test-lchown.c (lchown): Likewise.
5735         * tests/test-ldexpl.c (ldexpl): Likewise.
5736         * tests/test-link.c (link): Likewise.
5737         * tests/test-linkat.c (linkat): Likewise.
5738         * tests/test-lseek.c (lseek): Likewise.
5739         * tests/test-lstat.c (lstat): Likewise.
5740         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5741         * tests/test-mbsinit.c (mbsinit): Likewise.
5742         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5743         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5744         * tests/test-memchr.c (memchr): Likewise.
5745         * tests/test-memcmp.c (memcmp): Likewise.
5746         * tests/test-memmem.c (memmem): Likewise.
5747         * tests/test-memrchr.c (memrchr): Likewise.
5748         * tests/test-mkdir.c (mkdir): Likewise.
5749         * tests/test-mkdirat.c (mkdirat): Likewise.
5750         * tests/test-mkfifo.c (mkfifo): Likewise.
5751         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5752         * tests/test-mknod.c (mknod): Likewise.
5753         * tests/test-nanosleep.c (nanosleep): Likewise.
5754         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5755         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5756         Likewise.
5757         * tests/test-open.c (open): Likewise.
5758         * tests/test-openat.c (openat): Likewise.
5759         * tests/test-perror.c (perror): Likewise.
5760         * tests/test-pipe2.c (pipe2): Likewise.
5761         * tests/test-poll.c (poll): Likewise.
5762         * tests/test-popen.c (popen, pclose): Likewise.
5763         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5764         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5765         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5766         (posix_spawn_file_actions_destroy)
5767         (posix_spawn_file_actions_addclose)
5768         (posix_spawn_file_actions_addopen)
5769         (posix_spawn_file_actions_adddup2): Likewise.
5770         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5771         * tests/test-pread.c (pread): Likewise.
5772         * tests/test-printf-posix.c (printf): Likewise.
5773         * tests/test-pty.c (openpty, forkpty): Likewise.
5774         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5775         (random_r): Likewise.
5776         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5777         * tests/test-readlink.c (readlink): Likewise.
5778         * tests/test-remove.c (remove): Likewise.
5779         * tests/test-rename.c (rename): Likewise.
5780         * tests/test-renameat.c (renameat): Likewise.
5781         * tests/test-rmdir.c (rmdir): Likewise.
5782         * tests/test-round1.c (round): Likewise.
5783         * tests/test-roundf1.c (roundf): Likewise.
5784         * tests/test-roundl.c (roundl): Likewise.
5785         * tests/test-setenv.c (setenv): Likewise.
5786         * tests/test-sigaction.c (sigaction): Likewise.
5787         * tests/test-sleep.c (sleep): Likewise.
5788         * tests/test-snprintf.c (snprintf): Likewise.
5789         * tests/test-sprintf-posix.c (sprintf): Likewise.
5790         * tests/test-stat.c (stat): Likewise.
5791         * tests/test-stpncpy.c (stpncpy): Likewise.
5792         * tests/test-strcasestr.c (strcasestr): Likewise.
5793         * tests/test-strchrnul.c (strchrnul): Likewise.
5794         * tests/test-strerror.c (strerror): Likewise.
5795         * tests/test-strsignal.c (strsignal): Likewise.
5796         * tests/test-strstr.c (strstr): Likewise.
5797         * tests/test-strtod.c (strtod): Likewise.
5798         * tests/test-strverscmp.c (strverscmp): Likewise.
5799         * tests/test-symlink.c (symlink): Likewise.
5800         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5801         * tests/test-times.c (times): Likewise.
5802         * tests/test-trunc1.c (trunc): Likewise.
5803         * tests/test-truncf1.c (truncf): Likewise.
5804         * tests/test-truncl.c (truncl): Likewise.
5805         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5806         Likewise.
5807         * tests/test-uname.c (uname): Likewise.
5808         * tests/test-unlink.c (unlink): Likewise.
5809         * tests/test-unlinkat.c (unlinkat): Likewise.
5810         * tests/test-unsetenv.c (unsetenv): Likewise.
5811         * tests/test-usleep.c (usleep): Likewise.
5812         * tests/test-utimensat.c (utimensat): Likewise.
5813         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5814         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5815         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5816         * tests/test-vprintf-posix.c (vprintf): Likewise.
5817         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5818         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5819         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5820         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5821         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5822         * tests/test-wcwidth.c (wcwidth): Likewise.
5823
5824         build: pull in conditional headers during GNULIB_POSIXCHECK
5825         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5826         definitions from any conditionally-included headers.
5827         * lib/stdlib.in.h (includes): Likewise.
5828         * lib/unistd.in.h (includes): Likewise.
5829
5830 2009-12-24  Bruno Haible  <bruno@clisp.org>
5831
5832         * tests/test-argv-iter.c: Include header file being tested immediately
5833         after config.h.
5834         * tests/test-base64.c: Likewise.
5835         * tests/test-flock.c: Likewise.
5836         * tests/test-fsync.c: Likewise.
5837         * tests/test-getdate.c: Likewise.
5838         * tests/test-getndelim2.c: Likewise.
5839         * tests/test-isfinite.c: Likewise.
5840         * tests/test-isinf.c: Likewise.
5841         * tests/test-strerror.c: Likewise.
5842         * tests/test-strsignal.c: Likewise.
5843
5844 2009-12-23  Eric Blake  <ebb9@byu.net>
5845
5846         unistd: work around cygwin bug
5847         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5848         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5849         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5850
5851 2009-12-23  Bruno Haible  <bruno@clisp.org>
5852
5853         localename: More tests.
5854         * tests/test-localename.c (SIZEOF): New macro.
5855         (categories): New variable.
5856         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5857         test_locale_name_default): Add test w.r.t. thread locale.
5858         (test_locale_name_thread): New function.
5859         (main): Invoke it.
5860
5861         localename: Make aware of thread locale.
5862         * lib/localename.h (gl_locale_name_thread): New declaration.
5863         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5864         behaviour with respect to thread locale.
5865         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5866         <langinfo.h>, glthread/lock.h.
5867         (SIZE_BITS): New macro.
5868         (string_hash): New function.
5869         (struct hash_node): New type.
5870         (HASH_TABLE_SIZE): New macro.
5871         (struniq_hash_table, struniq_lock): New variables.
5872         (struniq): New function.
5873         (gl_locale_name_thread): New function.
5874         (gl_locale_name): Invoke it.
5875         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5876         * modules/localename (Depends-on): Add lock.
5877         Reported by Mike Gran <spk121@yahoo.com>.
5878
5879 2009-12-23  Eric Blake  <ebb9@byu.net>
5880
5881         va-args: new module
5882         * modules/va-args: New file.
5883         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5884         * MODULES.html.sh (Core language properties): Mention it.
5885
5886         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5887         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5888         named alias for __attribute__((__unused__)).
5889         * lib/chown.c: Update client.
5890         * lib/fchmodat.c: Likewise.
5891         * lib/fts.c: Likewise.
5892         * lib/getdate.y: Likewise.
5893         * lib/getgroups.c: Likewise.
5894         * lib/getopt.c: Likewise.
5895         * lib/getugroups.c: Likewise.
5896         * lib/mkdir.c: Likewise.
5897         * lib/mkfifo.c: Likewise.
5898         * lib/mkfifoat.c: Likewise.
5899         * lib/mknod.c: Likewise.
5900         * lib/mknodat.c: Likewise.
5901         * lib/readlink.c: Likewise.
5902         * lib/se-context.in.h: Likewise.
5903         * lib/se-selinux.in.h: Likewise.
5904         * lib/sockets.c: Likewise.
5905         * lib/symlink.c: Likewise.
5906         * lib/symlinkat.c: Likewise.
5907         * lib/unicodeio.c: Likewise.
5908         * lib/unistr.h: Likewise.
5909         * tests/test-areadlink.c: Likewise.
5910         * tests/test-areadlinkat.c: Likewise.
5911         * tests/test-filenamecat.c: Likewise.
5912         * tests/test-fseeko.c: Likewise.
5913         * tests/test-ftello.c: Likewise.
5914         * tests/test-getdate.c: Likewise.
5915         * tests/test-getgroups.c: Likewise.
5916         * tests/test-gethostname.c: Likewise.
5917         * tests/test-quotearg.c: Likewise.
5918         * tests/test-version-etc.c: Likewise.
5919         * tests/test-xalloc-die.c: Likewise.
5920         * tests/test-xfprintf-posix.c: Likewise.
5921         * tests/test-xprintf-posix.c: Likewise.
5922         * tests/test-xvasprintf.c: Likewise.
5923
5924         tests: avoid compiler warnings
5925         * tests/test-fcntl.c (main): Delete unused parameters.
5926         * tests/test-freopen-safer.c (main): Likewise.
5927         * tests/test-xalloc-die.c (main): Mark unused parameters.
5928         * tests/test-fseeko.c (main): Likewise.
5929         * tests/test-ftello.c (main): Likewise.
5930         * tests/test-nanosleep.c (main): Avoid declaration warning.
5931         * tests/test-sleep.c (main): Likewise.
5932         * tests/test-unsetenv.c (main): Silence warning about string
5933         literal.
5934         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5935
5936 2009-12-23  Bruno Haible  <bruno@clisp.org>
5937
5938         * tests/test-localename.c (test_locale_name): New function, extracted
5939         from main. Also test mixed situations.
5940         (test_locale_name_posix, test_locale_name_environ,
5941         test_locale_name_default): New functions.
5942         (main): Invoke them all.
5943         * modules/localename-tests (configure.ac): Test for newlocale.
5944
5945 2009-12-23  Bruno Haible  <bruno@clisp.org>
5946
5947         unistd: Ensure getcwd gets declared before being overridden.
5948         * lib/unistd.in.h: Conditionally include <io.h>.
5949
5950 2009-12-22  Bruno Haible  <bruno@clisp.org>
5951
5952         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5953         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5954         (gl_WCHAR_H): Invoke it.
5955         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5956         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5957         Reported by Karl Berry <karl@freefriends.org>.
5958
5959 2009-12-22  Eric Blake  <ebb9@byu.net>
5960
5961         math, unistd: avoid redundant includes
5962         * lib/math.in.h (isnan): No need to re-include <math.h>.
5963         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5964
5965         getsubopt: work around cygwin bug
5966         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5967         avoid conflicting with system getsubopt.
5968         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5969         bug.
5970
5971         getopt: synchronize from glibc
5972         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5973         parameter order.  Adjust all callers.
5974         (_getopt_internal_r, main): Adjust quoting in error messages.
5975         Drop considerations for outdated POSIX 1003.2 error message.
5976         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5977         callers.
5978         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5979
5980         test-getopt: test stderr behavior
5981         * modules/getopt-posix-tests (Depends-on): Add dup2.
5982         * tests/test-getopt.c (ASSERT): Avoid stderr.
5983         (main): Move stderr to a temporary file.
5984         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5985         Instead, add parameter to inform caller if output occurred.
5986         (test_getopt): Adjust all existing tests to expect silence, and
5987         add new tests of leading ":".
5988         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5989         glibc shortcomings with leading "-:" or "+:" in optstring.
5990         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5991         Likewise.
5992         * doc/posix-functions/getopt.texi (getopt): Likewise.
5993
5994         test-getopt: enhance test
5995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5996         supports optind=0.
5997         * tests/test-getopt.c (OPTIND_MIN): Move...
5998         * tests/test-getopt.h (OPTIND_MIN): ...here.
5999         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6000         Require that optind=0 works, since modern BSD supports it in
6001         addition to optreset, and since coreutils expects it.
6002         (test_getopt_long_only): New test.
6003         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6004         glibc shortcomings with 'W;', and enforcement of optind=0.
6005         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6006         Likewise.
6007
6008 2009-12-21  Bruno Haible  <bruno@clisp.org>
6009
6010         localename: Improvements for MacOS X and Cygwin.
6011         * lib/localename.h (gl_locale_name_environ): New declaration.
6012         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6013         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6014         (gl_locale_name_posix): Invoke it.
6015         (gl_locale_name_default): Add comments. Use Windows native API also on
6016         Cygwin.
6017
6018 2009-12-21  Bruno Haible  <bruno@clisp.org>
6019
6020         Update list of Win32 locale ids.
6021         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6022         (LANG_SAMI): Renamed from LANG_SAAMI.
6023         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6024         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6025         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6026         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6027         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6028         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6029         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6030         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6031         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6032         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6033         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6034         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6035         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6036         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6037         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6038         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6039         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6040         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6041         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6042         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6043         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6044         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6045         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6046         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6047         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6048         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6049         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6050         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6051         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6052         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6053         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6054         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6055         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6056         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6057         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6058         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6059         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6060         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6061         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6062         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6063         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6064         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6065         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6066         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6067         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6068         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6069         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6070         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6071         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6072         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6073         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6074         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6075         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6076         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6077         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6078         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6079         Add more languages and countries for Sami, Sorbian. Add more countries
6080         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6081         for Pashto. Change country for Syriac, Tswana.
6082
6083 2009-12-21  Eric Blake  <ebb9@byu.net>
6084
6085         test-utimens: avoid spurious failure
6086         * tests/test-chown.h (nap): Factor...
6087         * tests/nap.h: ...into new file.
6088         * tests/test-lchown.h (nap): Avoid duplication.
6089         * tests/test-utimens-common.h (nap): Use shared implementation,
6090         necessary on file systems with 1-second resolution.
6091         * modules/chown-tests (Files): Include new file.
6092         * modules/fdutimensat-tests (Files): Likewise.
6093         * modules/futimens-tests (Files): Likewise.
6094         * modules/lchown-tests (Files): Likewise.
6095         * modules/openat-tests (Files): Likewise.
6096         * modules/utimens-tests (Files): Likewise.
6097         * modules/utimensat-tests (Files): Likewise.
6098
6099 2009-12-19  Eric Blake  <ebb9@byu.net>
6100
6101         futimens, utimensat: work around Linux bug
6102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6103         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6104         * lib/utimensat.c (rpl_utimensat): Work around it.
6105         * lib/futimens.c (rpl_futimens): Adjust comment.
6106
6107         utimens: work around Linux ctime bug
6108         * lib/utimens.c (detect_ctime_bug): New helper function.
6109         (update_timespec): Differentiate between workaround needed for
6110         this bug vs. what is needed for systems that lack utimensat.
6111         (fdutimens, lutimens): Work around bug.
6112
6113         utimens: check for ctime update
6114         * tests/test-utimens-common.h (check_ctime): Define.
6115         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6116         * tests/test-futimens.h (test_futimens): Likewise.
6117         * tests/test-lutimens.h (test_lutimens): Likewise.
6118         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6119         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6120
6121 2009-12-19  Bruno Haible  <bruno@clisp.org>
6122
6123         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6124         * tests/test-dprintf-posix2.sh: New file.
6125         * tests/test-dprintf-posix2.c: New file.
6126         * modules/dprintf-posix-tests (Files): Add them.
6127         (configure.ac): Check for getrlimit and setrlimit.
6128         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6129
6130 2009-12-19  Bruno Haible  <bruno@clisp.org>
6131
6132         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6133         * tests/test-fprintf-posix3.sh: New file.
6134         * tests/test-fprintf-posix3.c: New file.
6135         * modules/fprintf-posix-tests (Files): Add them.
6136         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6137
6138 2009-12-19  Eric Blake  <ebb9@byu.net>
6139
6140         dirfd: fix prototype
6141         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6142         * lib/dirfd.c (dirfd): Likewise.
6143
6144         canonicalize: reduce memory usage
6145         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6146         allocation to size.
6147         Reported by Solar Designer <solar@openwall.com>.
6148
6149 2009-12-19  Bruno Haible  <bruno@clisp.org>
6150
6151         New module attribute 'Applicability'.
6152         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6153         * gnulib-tool: New option --extract-applicability.
6154         (func_usage): Document it.
6155         (sed_extract_prog): Recognize it.
6156         (func_get_applicability): New function.
6157         (func_import): Generalize handling of 'link-warning' module.
6158         * modules/link-warning (Applicability): New section.
6159         * modules/arg-nonnull (Applicability): New section.
6160         Repoted by Simon Josefsson <simon@josefsson.org>.
6161
6162 2009-12-19  Bruno Haible  <bruno@clisp.org>
6163
6164         fflush: tweak
6165         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6166         * lib/fseeko.c (rpl_fseeko): Likewise.
6167
6168 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6169
6170         * lib/gl_list.h: Fix typo in comment.
6171
6172 2009-12-16  Eric Blake  <ebb9@byu.net>
6173
6174         fcntl: use to simplify other modules
6175         * modules/cloexec (Depends-on): Add fcntl.
6176         * modules/fchdir (Depends-on): Likewise.
6177         * modules/fd-safer-flag (Depends-on): Likewise.
6178         * modules/unistd-safer (Depends-on): Likewise.
6179         * modules/dup3 (configure.ac): Set module indicator.
6180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6181         missing.
6182         * lib/fchdir.c (_gl_register_dup): Fix comment.
6183         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6184         * lib/dup-safer.c (dup_safer): Likewise.
6185         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6186         * lib/dup3.c (dup3): Likewise.
6187         * tests/test-fchdir.c (main): Enhance test.
6188         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6189
6190         fcntl: port portions of fcntl to mingw
6191         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6192         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6193         replacement for mingw.
6194         * modules/fcntl (Description): Update.
6195         (Depends-on): Add dup2.
6196         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6197         * modules/fcntl-h (Makefile.am): Substitute it.
6198         * lib/fcntl.in.h (fcntl): Update declaration.
6199         (F_DUPFD, F_GETFD): New macros, when needed.
6200         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6201         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6202         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6203         we now guarantee.
6204
6205         fcntl: work around cygwin bug in F_DUPFD
6206         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6207         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6208         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6209         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6210         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6211
6212         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6213         * modules/fcntl (Files): List new files.
6214         (configure.ac): Run a test.
6215         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6216         * lib/fcntl.c (rpl_fcntl): Likewise.
6217         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6218         (gl_FCNTL_H): Always replace fcntl.h.
6219         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6220         * lib/fcntl.in.h (fcntl): Declare replacement.
6221         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6222         needed, plus a witness.
6223         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6224         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6225         * tests/test-fcntl.c: New file.
6226         * modules/fcntl-tests: Likewise.
6227
6228         binary-io: avoid potential compilation warning
6229         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6230         directives.
6231
6232         fflush: avoid compilation error on NetBSD
6233         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6234         between off_t and fpos_t, since the latter is sometimes a struct.
6235         * lib/fseeko.c (rpl_fseeko): Likewise.
6236         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6237
6238 2009-12-15  Eric Blake  <ebb9@byu.net>
6239
6240         fcntl-h, stdio, sys_ioctl: fix declarations
6241         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6242         function must not take arguments.
6243         * lib/sys_ioctl.in.h (ioctl): Likewise.
6244         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6245         (open): Add a link warning.
6246
6247 2009-12-15  Jim Meyering  <meyering@redhat.com>
6248
6249         areadlink, areadlink-with-size: relax license to LGPLv2+
6250         * modules/areadlink (License): Relax to LGPLv2+.
6251         * modules/areadlink-with-size (License): Likewise.
6252
6253 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6254             Bruno Haible  <bruno@clisp.org>
6255
6256         *printf: Fix memory leak.
6257         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6258         * lib/vfprintf.c (vfprintf): Likewise.
6259         * lib/dprintf.c (dprintf): Likewise.
6260         * lib/vdprintf.c (vdprintf): Likewise.
6261
6262 2009-12-14  Eric Blake  <ebb9@byu.net>
6263
6264         accept4: adjust module dependencies
6265         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6266
6267         utimens: one more try at avoiding compiler warning
6268         * lib/utimens.c (lutimens): Lower scope of result.
6269
6270 2009-12-13  Bruno Haible  <bruno@clisp.org>
6271
6272         Move the malloc checking from module 'list' to new module 'xlist'.
6273         * modules/xlist: New file.
6274         * lib/gl_xlist.h: New file.
6275         * lib/gl_xlist.c: New file.
6276         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6277         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6278         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6279         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6280         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6281         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6282         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6283         gl_sortedlist_nx_add): New declarations.
6284         (struct gl_list_implementation): Rename and change methods accordingly.
6285         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6286         (gl_list_nx_create): Renamed from gl_list_create.
6287         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6288         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6289         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6290         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6291         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6292         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6293         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6294         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6295         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6296         gl_list_create_empty.
6297         (gl_list_nx_create): Renamed from gl_list_create.
6298         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6299         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6300         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6301         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6302         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6303         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6304         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6305         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6306         * lib/gl_array_list.c: Don't include xalloc.h.
6307         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6308         NULL upon out-of-memory.
6309         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6310         out-of-memory.
6311         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6312         Change return type to 'int'.
6313         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6314         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6315         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6316         upon out-of-memory.
6317         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6318         upon out-of-memory.
6319         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6320         upon out-of-memory.
6321         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6322         upon out-of-memory.
6323         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6324         out-of-memory.
6325         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6326         Update.
6327         (gl_array_list_implementation): Update.
6328         * lib/gl_carray_list.c: Don't include xalloc.h.
6329         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6330         Return NULL upon out-of-memory.
6331         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6332         out-of-memory.
6333         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6334         Change return type to 'int'.
6335         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6336         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6337         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6338         upon out-of-memory.
6339         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6340         upon out-of-memory.
6341         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6342         out-of-memory.
6343         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6344         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6345         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6346         Update.
6347         (gl_carray_list_implementation): Update.
6348         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6349         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6350         gl_linked_create_empty. Return NULL upon out-of-memory.
6351         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6352         out-of-memory.
6353         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6354         Change return type to 'int'. Return -1 upon out-of-memory.
6355         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6356         out-of-memory.
6357         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6358         upon out-of-memory.
6359         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6360         upon out-of-memory.
6361         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6362         NULL upon out-of-memory.
6363         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6364         upon out-of-memory.
6365         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6366         out-of-memory.
6367         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6368         Update.
6369         * lib/gl_linked_list.c: Don't include xalloc.h.
6370         (gl_linked_list_implementation): Update.
6371         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6372         (add_to_bucket): Change return type to 'int'.
6373         (gl_linkedhash_list_implementation): Update.
6374         * lib/gl_anytree_list1.h (free_subtree): New function.
6375         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6376         gl_tree_create_empty. Return NULL upon out-of-memory.
6377         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6378         Change return type to 'int'. Return -1 upon out-of-memory.
6379         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6380         out-of-memory.
6381         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6382         (gl_tree_remove_node): New function, moved here from
6383         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6384         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6385         Update.
6386         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6387         malloc, not xmalloc. Return NULL upon out-of-memory.
6388         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6389         out-of-memory.
6390         (gl_tree_remove_node_from_tree): New function, extracted from
6391         gl_tree_remove_node.
6392         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6393         upon out-of-memory.
6394         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6395         out-of-memory.
6396         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6397         upon out-of-memory.
6398         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6399         upon out-of-memory.
6400         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6401         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6402         not xmalloc. Return NULL upon out-of-memory.
6403         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6404         out-of-memory.
6405         (gl_tree_remove_node_from_tree): New function, extracted from
6406         gl_tree_remove_node.
6407         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6408         upon out-of-memory.
6409         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6410         out-of-memory.
6411         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6412         upon out-of-memory.
6413         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6414         upon out-of-memory.
6415         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6416         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6417         gl_anytree_list1.h before gl_anyavltree_list2.h.
6418         (gl_avltree_list_implementation): Update.
6419         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6420         gl_anytree_list1.h before gl_anyavltree_list2.h.
6421         (gl_rbtree_list_implementation): Update.
6422         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6423         Change return type to 'int'. Return -1 upon out-of-memory. Use
6424         __builtin_expect.
6425         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6426         (gl_avltreehash_list_implementation): Update.
6427         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6428         (gl_rbtreehash_list_implementation): Update.
6429         * modules/array-list (Depends-on): Remove xalloc.
6430         * modules/carray-list (Depends-on): Likewise.
6431         * modules/linked-list (Depends-on): Likewise.
6432         * modules/linkedhash-list (Depends-on): Likewise.
6433         * modules/avltree-list (Depends-on): Likewise.
6434         * modules/rbtree-list (Depends-on): Likewise.
6435         * modules/avltreehash-list (Depends-on): Likewise.
6436         * modules/rbtreehash-list (Depends-on): Likewise.
6437
6438         * modules/xsublist: New file.
6439         * lib/gl_xsublist.h: New file.
6440         * lib/gl_xsublist.c: New file.
6441         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6442         (gl_sublist_nx_create): New declaration.
6443         * lib/gl_sublist.c: Don't include xalloc.h.
6444         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6445         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6446         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6447         Change return type to 'int'. Return -1 upon out-of-memory.
6448         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6449         upon out-of-memory.
6450         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6451         NULL upon out-of-memory.
6452         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6453         upon out-of-memory.
6454         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6455         NULL upon out-of-memory.
6456         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6457         NULL upon out-of-memory.
6458         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6459         upon out-of-memory.
6460         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6461         (gl_sublist_list_implementation): Update.
6462         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6463         upon out-of-memory.
6464         * modules/sublist (Depends-on): Remove xalloc.
6465
6466         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6467         * tests/test-carray_list.c: Likewise.
6468         * tests/test-linked_list.c: Likewise.
6469         * tests/test-linkedhash_list.c: Likewise.
6470         * tests/test-avltree_list.c: Likewise.
6471         * tests/test-rbtree_list.c: Likewise.
6472         * tests/test-avltreehash_list.c: Likewise.
6473         * tests/test-rbtreehash_list.c: Likewise.
6474         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6475         * modules/carray-list-tests (Makefile.am): Likewise.
6476         * modules/linked-list-tests (Makefile.am): Likewise.
6477         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6478         * modules/avltree-list-tests (Makefile.am): Likewise.
6479         * modules/rbtree-list-tests (Makefile.am): Likewise.
6480         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6481         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6482
6483         * NEWS: Mention the changes.
6484
6485         * lib/clean-temp.c: Include gl_xlist.h.
6486         * modules/clean-temp (Depends-on): Add xlist.
6487
6488         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6489         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6490
6491         * tests/test-array_oset.c: Include gl_xlist.h.
6492         * modules/array-oset-tests (Depends-on): Add xlist.
6493
6494         Reported by José E. Marchesi <jemarch@gnu.org>.
6495
6496 2009-12-13  Bruno Haible  <bruno@clisp.org>
6497
6498         Move the malloc checking from module 'oset' to new module 'xoset'.
6499         * modules/xoset: New file.
6500         * lib/gl_xoset.h: New file.
6501         * lib/gl_xoset.c: New file.
6502         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6503         declarations.
6504         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6505         (struct gl_oset_implementation): Rename and change methods accordingly.
6506         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6507         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6508         'int'. Mark as __warn_unused_result__.
6509         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6510         gl_oset_create_empty.
6511         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6512         'int'.
6513         * lib/gl_array_oset.c: Don't include xalloc.h.
6514         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6515         malloc, not xmalloc.
6516         (grow): Change return type to 'int'. Don't call xalloc_die.
6517         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6518         to 'int'.
6519         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6520         'int'.
6521         (gl_array_oset_implementation): Update.
6522         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6523         gl_tree_create_empty.
6524         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6525         'int'.
6526         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6527         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6528         xmalloc.
6529         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6530         not xmalloc.
6531         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6532         xmalloc.
6533         (gl_avltree_oset_implementation): Update.
6534         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6535         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6536         xmalloc.
6537         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6538         not xmalloc.
6539         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6540         xmalloc.
6541         (gl_rbtree_oset_implementation): Update.
6542         * modules/array-oset (Depends-on): Remove xalloc.
6543         * modules/avltree-oset (Depends-on): Likewise.
6544         * modules/rbtree-oset (Depends-on): Likewise.
6545         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6546         * tests/test-avltree_oset.c: Likewise.
6547         * tests/test-rbtree_oset.c: Likewise.
6548         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6549         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6550         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6551         * NEWS: Mention the change.
6552
6553 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6554
6555         maint.mk: allow a project to override release-prep commands
6556         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6557         commands into a new rule.
6558         (release-prep): New rule.
6559         (release-prep-hook): New overridable variable.
6560
6561 2009-12-13  Bruno Haible  <bruno@clisp.org>
6562
6563         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6564
6565 2009-12-13  Jim Meyering  <meyering@redhat.com>
6566
6567         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6568         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6569
6570 2009-12-12  Bruno Haible  <bruno@clisp.org>
6571
6572         duplocale: Tweak.
6573         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6574
6575 2009-12-12  Karl Berry  <karl@gnu.org>
6576
6577         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6578
6579 2009-12-12  Bruno Haible  <bruno@clisp.org>
6580
6581         * m4/po.m4: Undo incorrect untabification.
6582
6583 2009-12-12  Bruno Haible  <bruno@clisp.org>
6584
6585         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6586         * modules/c-strtod (Depends-on): Add locale.
6587         * modules/c-strtold (Depends-on): Likewise.
6588
6589 2009-12-12  Bruno Haible  <bruno@clisp.org>
6590
6591         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6592
6593 2009-12-11  Eric Blake  <ebb9@byu.net>
6594
6595         setenv: relax requirement in light of POSIX ruling
6596         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6597         not NULL.
6598         * tests/test-setenv.c (main): Relax test.
6599         * tests/test-unsetenv.c (main): Likewise.
6600         * doc/posix-functions/setenv.texi (setenv): Document this.
6601         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6602
6603 2009-12-11  Bruno Haible  <bruno@clisp.org>
6604
6605         New module 'fd-safer-flag'.
6606         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6607         * lib/dup-safer.c (dup_safer_flag): Remove function.
6608         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6609         * lib/fd-safer.c (fd_safer_flag): Remove function.
6610         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6611         * modules/cloexec (configure.ac): Drop indicator macro.
6612         * modules/fd-safer-flag: New file.
6613         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6614         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6615         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6616
6617 2009-12-11  Bruno Haible  <bruno@clisp.org>
6618
6619         Tests for module 'nl_langinfo'.
6620         * modules/nl_langinfo-tests: New file.
6621         * tests/test-nl_langinfo.sh: New file.
6622         * tests/test-nl_langinfo.c: New file.
6623
6624         New module 'nl_langinfo'.
6625         * lib/nl_langinfo.c: New file.
6626         * m4/nl_langinfo.m4: New file.
6627         * modules/nl_langinfo: New file.
6628         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6629
6630 2009-12-11  Bruno Haible  <bruno@clisp.org>
6631
6632         Tests for module 'langinfo'.
6633         * modules/langinfo-tests: New file.
6634         * tests/test-langinfo.c: New file.
6635
6636         New module 'langinfo'.
6637         * lib/langinfo.in.h: New file.
6638         * m4/langinfo_h.m4: New file.
6639         * modules/langinfo: New file.
6640         * doc/posix-headers/langinfo.texi: Mention the new module.
6641
6642 2009-12-11  Bruno Haible  <bruno@clisp.org>
6643
6644         * lib/config.charset: Untabify.
6645
6646 2009-12-11  Bruno Haible  <bruno@clisp.org>
6647
6648         * modules/unistd-safer (configure.ac): Drop indicator macro.
6649
6650 2009-12-11  Bruno Haible  <bruno@clisp.org>
6651
6652         Move pipe2-safer code to its own file.
6653         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6654         * lib/pipe-safer.c (pipe2_safer): Remove function.
6655         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6656         (Makefile.am): Add it to lib_SOURCES.
6657
6658 2009-12-10  Bruno Haible  <bruno@clisp.org>
6659
6660         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6661
6662 2009-12-10  Bruno Haible  <bruno@clisp.org>
6663
6664         Declare which arguments expect non-NULL values, for GCC and clang.
6665         * build-aux/arg-nonnull.h: New file.
6666         * modules/arg-nonnull: New file.
6667         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6668         (inet_ntop, inet_pton): Use it.
6669         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6670         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6671         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6672         (open, openat): Use it.
6673         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6674         (fnmatch): Use it.
6675         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6676         (getopt, getopt_long, getopt_long_only): Use it.
6677         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6678         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6679         Use it.
6680         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6681         (iconv_open): Use it.
6682         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6683         (strtoimax, strtoumax): Use it.
6684         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6685         (duplocale): Use it.
6686         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6687         (frexp, frexpl): Use it.
6688         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6689         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6690         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6691         (tsearch, tfind, tdelete, twalk): Use it.
6692         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6693         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6694         sigpending): Use it.
6695         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6696         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6697         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6698         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6699         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6700         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6701         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6702         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6703         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6704         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6705         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6706         Use it.
6707         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6708         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6709         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6710         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6711         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6712         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6713         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6714         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6715         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6716         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6717         strtoull, unsetenv): Use it.
6718         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6719         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6720         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6721         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6722         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6723         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6724         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6725         (strcasecmp, strncasecmp): Use it.
6726         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6727         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6728         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6729         rpl_setsockopt): Use it.
6730         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6731         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6732         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6733         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6734         (gettimeofday): Use it.
6735         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6736         (times): Use it.
6737         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6738         (uname): Use it.
6739         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6740         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6741         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6742         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6743         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6744         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6745         unlinkat, write): Use it.
6746         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6747         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6748         * lib/argv-iter.h: Include arg-nonnull.h.
6749         (_ATTRIBUTE_NONNULL_): Remove macro.
6750         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6751         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6752         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6753         optimization.
6754         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6755         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6756         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6757         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6758         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6759         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6760         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6761         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6762         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6763         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6764         * modules/dirent (Depends-on): Add arg-nonnull.
6765         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6766         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6767         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6768         * modules/fnmatch (Depends-on): Add arg-nonnull.
6769         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6770         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6771         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6772         * modules/glob (Depends-on): Add arg-nonnull.
6773         (Makefile.am): Insert arg-nonnull.h into glob.h.
6774         * modules/iconv_open (Depends-on): Add arg-nonnull.
6775         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6776         * modules/inttypes (Depends-on): Add arg-nonnull.
6777         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6778         * modules/locale (Depends-on): Add arg-nonnull.
6779         (Makefile.am): Insert arg-nonnull.h into locale.h.
6780         * modules/math (Depends-on): Add arg-nonnull.
6781         (Makefile.am): Insert arg-nonnull.h into math.h.
6782         * modules/netdb (Depends-on): Add arg-nonnull.
6783         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6784         * modules/search (Depends-on): Add arg-nonnull.
6785         (Makefile.am): Insert arg-nonnull.h into search.h.
6786         * modules/signal (Depends-on): Add arg-nonnull.
6787         (Makefile.am): Insert arg-nonnull.h into signal.h.
6788         * modules/spawn (Depends-on): Add arg-nonnull.
6789         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6790         * modules/stdio (Depends-on): Add arg-nonnull.
6791         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6792         * modules/stdlib (Depends-on): Add arg-nonnull.
6793         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6794         * modules/string (Depends-on): Add arg-nonnull.
6795         (Makefile.am): Insert arg-nonnull.h into string.h.
6796         * modules/strings (Depends-on): Add arg-nonnull.
6797         (Makefile.am): Insert arg-nonnull.h into strings.h.
6798         * modules/sys_socket (Depends-on): Add arg-nonnull.
6799         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6800         * modules/sys_stat (Depends-on): Add arg-nonnull.
6801         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6802         * modules/sys_time (Depends-on): Add arg-nonnull.
6803         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6804         * modules/sys_times (Depends-on): Add arg-nonnull.
6805         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6806         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6807         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6808         * modules/time (Depends-on): Add arg-nonnull.
6809         (Makefile.am): Insert arg-nonnull.h into time.h.
6810         * modules/unistd (Depends-on): Add arg-nonnull.
6811         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6812         * modules/wchar (Depends-on): Add arg-nonnull.
6813         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6814         * modules/argv-iter (Depends-on): Add arg-nonnull.
6815         * tests/test-canonicalize.c (null_ptr): New function.
6816         (main): Use it.
6817         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6818         (main): Use it.
6819         * tests/test-memmem.c (null_ptr): New function.
6820         (main): Use it.
6821         Reported by Jim Meyering.
6822
6823 2009-12-10  Bruno Haible  <bruno@clisp.org>
6824
6825         Use spaces for indentation, not tabs.
6826         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6827         * m4/*.m4: Untabify.
6828         * build-aux/*.h: Untabify.
6829         * tests/**/*.[hc]: Untabify.
6830         * README: New section "Indent with spaces, not TABs", based on
6831         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6832         * NEWS: Mention the change.
6833
6834 2009-12-10  Bruno Haible  <bruno@clisp.org>
6835
6836         pty test: Fix link error.
6837         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6838         test_pty_LDADD.
6839
6840 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6841
6842         * modules/pty: New file.
6843         * modules/pty-tests: New file.
6844         * m4/pty.m4: New file.
6845         * tests/test-pty.c: New file.
6846         * doc/glibc-headers/pty.texi: Modified.
6847         * doc/glibc-functions/forkpty.texi: Modified.
6848         * doc/glibc-functions/openpty.texi: Modified.
6849
6850 2009-12-10  Bruno Haible  <bruno@clisp.org>
6851
6852         Avoid syntax error in C++ mode.
6853         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6854
6855 2009-12-10  Bruno Haible  <bruno@clisp.org>
6856
6857         Use sed with option -e.
6858         * gnulib-tool (func_version, func_emit_copyright_notice,
6859         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6860         option -e to sed.
6861         * modules/link-warning (Makefile.am): Likewise.
6862
6863 2009-12-10  Jim Meyering  <meyering@redhat.com>
6864
6865         mgetgroups: do not write bytes beyond end of malloc'd buffer
6866         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6867         username, we call getgroups with a one-element-shorter buffer,
6868         but still told it the length was original, max_n_groups.
6869
6870 2009-12-09  Eric Blake  <ebb9@byu.net>
6871
6872         cloexec: relax license
6873         * modules/cloexec (Maintainer): Add myself.
6874         (License): Use LGPL, not GPL.
6875
6876         link-warning: optimize generation
6877         * modules/link-warning (Makefile.am): Reduce process usage.
6878
6879 2009-12-09  Bruno Haible  <bruno@clisp.org>
6880
6881         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6882         workaround was added on 2009-11-17.
6883
6884 2009-12-09  Jim Meyering  <meyering@redhat.com>
6885             Bruno Haible  <bruno@clisp.org>
6886
6887         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6888         * modules/link-warning (Makefile.am): Make the comment-removing sed
6889         command more robust in the face of bootstrap-prepended comment lines.
6890
6891 2009-12-09  Bruno Haible  <bruno@clisp.org>
6892
6893         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6894         most one group.
6895
6896 2009-12-09  Simon Josefsson <simon@josefsson.org>
6897             Bruno Haible  <bruno@clisp.org>
6898
6899         * build-aux/link-warning.h: Add copyright notice.
6900         * modules/link-warning (Makefile.am): Generate link-warning.h from
6901         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6902         * NEWS: Mention change in link-warning module.
6903         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6904         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6905         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6906         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6907         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6908         * modules/math (Makefile.am): Add dependency to math.h.
6909         * modules/search (Makefile.am): Add dependency to search.h.
6910         * modules/signal (Makefile.am): Add dependency to signal.h.
6911         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6912         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6913         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6914         * modules/string (Makefile.am): Add dependency to string.h.
6915         * modules/strings (Makefile.am): Add dependency to strings.h.
6916         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6917         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6918         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6919         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6920         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6921         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6922         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6923         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6924         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6925
6926 2009-12-09  Bruno Haible  <bruno@clisp.org>
6927
6928         fchdir: Optimize away rpl_fstat when possible.
6929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6930         REPLACE_OPEN_DIRECTORY.
6931         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6932
6933 2009-12-09  Bruno Haible  <bruno@clisp.org>
6934
6935         * lib/fchdir.c: Update comment.
6936
6937 2009-12-09  Bruno Haible  <bruno@clisp.org>
6938
6939         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6940
6941 2009-12-08  Eric Blake  <ebb9@byu.net>
6942
6943         fchdir: avoid memory leak on re-registration.
6944         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6945
6946 2009-12-08  Jim Meyering  <meyering@redhat.com>
6947
6948         init.sh: avoid Solaris 10 /bin/sh portability problem
6949         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6950         sourced script:
6951           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6952           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6953           bar
6954         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6955         and two tests used that idiom.
6956         * tests/init.sh: Update suggested usage comments.
6957         (path_prepend_): New function, to be used in place
6958         of the --src-path=DIR option.
6959         (setup_): Move PATH-prepending code into path_prepend_.
6960         * tests/test-pread.sh: Adapt to new usage.
6961         * tests/test-xalloc-die.sh: Likewise.
6962
6963 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6964
6965         * doc/gnulib.texi (Glibc pty.h): Add.
6966         * doc/glibc-functions/forkpty.texi: Add.
6967         * doc/glibc-functions/openpty.texi: Add.
6968         Suggested by Bruno Haible.
6969
6970 2009-12-08  Eric Blake  <ebb9@byu.net>
6971
6972         fchdir: fix logic bugs
6973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6974         * tests/test-fchdir.c (main): Enhance test.
6975         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6976         is in use.
6977
6978         dup2: fix logic bugs
6979         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6980         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6981         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6982         exists.
6983         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6984
6985 2009-12-07  Eric Blake  <ebb9@byu.net>
6986
6987         unlink: fix m4 detection
6988         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6989
6990         unistd-safer: add unit test
6991         * modules/unistd-safer-tests: New file.
6992         * tests/test-dup-safer.c: Likewise.
6993         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6994         * tests/test-dup2.c (setmode): Likewise.
6995         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6996
6997         cloexec: preserve text vs. binary across dup_cloexec
6998         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6999         mode.
7000         * modules/dup2-tests (Depends-on): Add binary-io.
7001         * modules/cloexec-tests (Depends-on): Likewise.
7002         * tests/test-dup2.c (setmode, is_mode): New helpers.
7003         (main): Add tests that translation mode is preserved.
7004         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7005         Reported by Bruno Haible.
7006
7007         mgetgroups: reduce duplicate listings
7008         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7009         resulting array.
7010         * tests/test-chown.h (test_chown): Simplify client.
7011         * tests/test-lchown.h (test_lchown): Likewise.
7012
7013 2009-12-06  Bruno Haible  <bruno@clisp.org>
7014
7015         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7016         value.
7017
7018 2009-12-06  Bruno Haible  <bruno@clisp.org>
7019
7020         * lib/progname.c: Include stdio.h, stdlib.h.
7021         (set_program_name): Reject a NULL argument.
7022
7023 2009-12-05  Eric Blake  <ebb9@byu.net>
7024
7025         pipe2-safer: new module
7026         * modules/pipe2-safer: New file.
7027         * lib/unistd-safer.h (pipe2_safer): New prototype.
7028         * lib/unistd--.h (pipe2): New wrapper.
7029         * lib/pipe-safer.c (pipe2_safer): New function.
7030         * modules/pipe (Depends-on): Add pipe2-safer.
7031         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7032
7033         stdlib-safer: preserve cloexec flag for mkostemp[s]
7034         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7035         fd_safer_flag.
7036
7037         unistd-safer: allow preservation of cloexec status via flag
7038         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7039         prototypes.
7040         * lib/dup-safer.c (dup_safer_flag): New function.
7041         * lib/fd-safer.c (fd_safer_flag): Likewise.
7042         * modules/cloexec (configure.ac): Set witness.
7043
7044         test-dup2: enhance test
7045         * modules/dup2-tests (Depends-on): Add cloexec.
7046         * tests/test-dup2.c (main): Enhance test.
7047
7048         cloexec: add dup_cloexec
7049         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7050         header and comments.
7051         * lib/cloexec.c (set_cloexec_flag): Add comments.
7052         (dup_cloexec): New function, with mingw implementation borrowed
7053         from...
7054         * lib/w32spawn.h (dup_noinherit): ...here.
7055         * modules/execute (Depends-on): Add cloexec.
7056         * modules/pipe (Depends-on): Likewise.
7057         * modules/cloexec (Depends-on): Add dup2.
7058         * modules/cloexec-tests (Files): New file.
7059         * tests/test-cloexec.c: Likewise.
7060
7061         test-xalloc-die: fix test for mingw
7062         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7063         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7064         directory and .exe suffix off argv[0] output.
7065
7066         test-fseeko: fix test for mingw
7067         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7068         than undefining fseek, so test will pass on mingw.
7069
7070 2009-12-05  Bruno Haible  <bruno@clisp.org>
7071
7072         * lib/progname.h (set_program_name): Clarify specification.
7073         * lib/progname.c (set_program_name): Likewise.
7074         Reported by Jim Meyering.
7075
7076 2009-12-05  Jim Meyering  <meyering@redhat.com>
7077
7078         maint.mk: backslash-escape parens in default regexp
7079         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7080         backslash-escape the literal parentheses.
7081
7082         maint.mk: news-date-check: use grep -E
7083         * top/maint.mk (today): Define a Make variable, not a...
7084         (news-date-check): ...shell variable.
7085         (news-date-regexp): Use the Make variable.
7086         Use grep's -E option.  Change the failing diagnostic to mention
7087         the variable, $(news-date-regexp).
7088
7089 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7090
7091         maintainer-makefile: allow customization of NEWS entry format
7092         * top/maint.mk (news-date-regexp): New overridable variable.
7093         (news-date-check): Use it.
7094
7095 2009-12-04  Eric Blake  <ebb9@byu.net>
7096
7097         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7098         * lib/mgetgroups.h (xgetgroups): New prototype.
7099         * lib/mgetgroups.c (xgetgroups): New wrapper.
7100         (mgetgroups): Handle ENOSYS.
7101         * modules/mgetgroups (Depends-on): Add realloc.
7102         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7103
7104         mgetgroups: avoid argument promotion issues with -1
7105         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7106         for invalid gid_t.
7107         * tests/test-chown.h (getegid, test_chown): Likewise.
7108         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7109
7110 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7111
7112         exclude: Fix header file problems.
7113         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7114
7115 2009-12-01  Jim Meyering  <meyering@redhat.com>
7116
7117         fts: fts_open: do not let an empty string cause immediate failure
7118         This is required in support of GNU rm, for which the command
7119         "rm A '' B" must process and remove both A and B, in spite of
7120         the empty string argument.
7121         * lib/fts.c (fts_open): Do not let the presence of an empty string
7122         cause fts_open to fail immediately.  Most fts-using tools must be
7123         able to process all arguments, in order, and can be expected to
7124         diagnose such arguments themselves.
7125
7126 2009-11-30  Eric Blake  <ebb9@byu.net>
7127
7128         utimens: fix compilation error
7129         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7130         Declare variable at right scope.
7131
7132 2009-11-29  Jim Meyering  <meyering@redhat.com>
7133
7134         bootstrap: handle perl-5.11's changed --version output
7135         * build-aux/bootstrap (get_version): Handle perl separately,
7136         since perl-5.11's --version output is different.
7137
7138 2009-11-28  Jim Meyering  <meyering@redhat.com>
7139
7140         userspec: depend on the inttostr module, too
7141         * modules/userspec (Depends-on): Add inttostr.
7142
7143         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7144         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7145         number of MAXUID when it evaluates to (uid_t) -1.
7146         Likewise for group ID.  Reported by Matt McCutchen in
7147         <http://savannah.gnu.org/bugs/?28113>
7148
7149         userspec: reformat to use spaces, not TABs
7150         * lib/userspec.c: Expand TABs to spaces.
7151         Add Emacs' "indent-tabs-mode: nil" hint.
7152
7153 2009-11-27  Eric Blake  <ebb9@byu.net>
7154
7155         getopt-gnu: flush out another BSD bug
7156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7157         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7158         flush out BSD bug.
7159         * tests/test-getopt.h (test_getopt): End lists with NULL.
7160         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7161         (test_getopt_long_posix): Enhance test.
7162         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7163         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7164         getopt-gnu.
7165         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7166         Likewise.
7167
7168 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7169
7170         * modules/idpriv-droptemp-tests (Notice): Fix text.
7171
7172 2009-11-27  Jim Meyering  <meyering@redhat.com>
7173
7174         test-xalloc-die: avoid spurious failure due to libtool argv difference
7175         In a libtool-enabled project, this test would fail due to a difference
7176         in the emitted program name, e.g.,
7177         -test-xalloc-die: memory exhausted
7178         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7179         Use program to avoid that.
7180         * modules/xalloc-die-tests (Depends-on): Add progname.
7181         * tests/test-xalloc-die.c: Include progname.h".
7182         (program_name): Remove decl.
7183         (main): Call set_program_name.
7184         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7185
7186 2009-11-26  Richard Jones  <rjones@redhat.com>
7187
7188         w32sock: leave win32 error in place.
7189         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7190
7191 2009-11-26  Eric Blake  <ebb9@byu.net>
7192
7193         init.sh: suggest to use skip_ and fail_ functions in comments
7194         * tests/init.sh: Add a sentence.
7195
7196 2009-11-25  Bruno Haible  <bruno@clisp.org>
7197
7198         init.sh: add documentation in comments
7199         * tests/init.sh: Add some developer and user documentation.
7200
7201 2009-11-26  Jim Meyering  <meyering@redhat.com>
7202
7203         init.sh: accommodate even those who specify bogus srcdir manually
7204         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7205         configure-time tests to be sanitized, so that there is no need to
7206         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7207         (with no double quotes) suffices.  However, since tests may be
7208         invoked manually, and since you may explicitly set srcdir to the
7209         name of a directory containing spaces, do quote its uses here.
7210         * tests/test-pread.sh: Likewise.
7211         Suggested by Bruno Haible.
7212
7213         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7214         * tests/test-pread.sh: Write no data into the pipe, because
7215         test-pread actually reads none.  This avoids a diagnostic,
7216         "bash: echo: write error: Broken pipe", that arises in the unusual
7217         event something is ignoring SIGPIPE, and might be interpreted
7218         as some sort of failure.  Reported by Bruno Haible.
7219
7220 2009-11-25  Jim Meyering  <meyering@redhat.com>
7221
7222         test-pread: cover failure with ESPIPE and EINVAL
7223         * tests/test-pread.c (main): Test for failure, too.
7224         * tests/test-pread.sh: Invoke with stdin on a pipe.
7225         Suggested by Eric Blake.
7226
7227         pread: improvement and fix
7228         * modules/pread (Depends-on): Depend on lseek, for portability to
7229         e.g., mingw.  Suggested by Eric Blake.
7230         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7231
7232         unistd.in.h: correct declaration of pread
7233         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7234         Reported by Richard W.M. Jones.
7235
7236         test-pread.sh: distribute the test script
7237         * modules/pread-tests (Files): Include test-pread.sh.
7238
7239         test-pread.sh: clean up
7240         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7241         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7242         That is unnecessary, since it's always ".".
7243         Suggestion from Eric Blake.
7244
7245         test-pread.sh: make executable
7246         * tests/test-pread.sh: Set executable bit.
7247         Reported by Eric Blake.
7248
7249         correct typo in test-pread.sh
7250         * tests/test-pread.sh: Add #! line.
7251
7252         test pread
7253         * tests/test-pread.c: New file.
7254         * tests/test-pread.sh: Likewise.
7255         * modules/pread-tests: Likewise.
7256
7257         pread: new module
7258         * modules/pread: New file.
7259         * lib/unistd.in.h (pread): Define/declare.
7260         * lib/pread.c (pread): New file.
7261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7262         * modules/unistd (Makefile.am): Substitute witnesses.
7263         * doc/posix-functions/pread.texi (pread): Update.
7264         * MODULES.html.sh: Add pread.
7265
7266 2009-11-25  Jim Meyering  <meyering@redhat.com>
7267
7268         tests/init.sh: new file to be used via most *.sh tests
7269         * tests/init.sh: New file.
7270
7271 2009-11-25  Eric Blake  <ebb9@byu.net>
7272
7273         utimens: work around older Linux failure with symlinks
7274         * lib/utimens.c (lutimensat_works_really): New variable.
7275         (fdutimens, lutimens): Use it to manage kernels that support
7276         nanosecond times on files, but not on symlinks.
7277         Reported by OndÅ™ej Vašík.
7278
7279         utimes: fix configure grammar
7280         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7281
7282 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7283
7284         regex: Fix fastmap for multibyte character ranges.
7285         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7286         characters when a multibyte character range is included.
7287
7288 2009-11-22  Andy Wingo  <wingo@pobox.com>
7289
7290         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7291         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7292
7293 2009-11-24  Bruno Haible  <bruno@clisp.org>
7294
7295         doc: Most *_l functions exist in MacOS X 10.5.
7296         * doc/posix-functions/duplocale.texi: Update platforms list.
7297         * doc/posix-functions/freelocale.texi: Likewise.
7298         * doc/posix-functions/newlocale.texi: Likewise.
7299         * doc/posix-functions/uselocale.texi: Likewise.
7300         * doc/posix-functions/isalnum_l.texi: Likewise.
7301         * doc/posix-functions/isalpha_l.texi: Likewise.
7302         * doc/posix-functions/isblank_l.texi: Likewise.
7303         * doc/posix-functions/iscntrl_l.texi: Likewise.
7304         * doc/posix-functions/isdigit_l.texi: Likewise.
7305         * doc/posix-functions/isgraph_l.texi: Likewise.
7306         * doc/posix-functions/islower_l.texi: Likewise.
7307         * doc/posix-functions/isprint_l.texi: Likewise.
7308         * doc/posix-functions/ispunct_l.texi: Likewise.
7309         * doc/posix-functions/isspace_l.texi: Likewise.
7310         * doc/posix-functions/isupper_l.texi: Likewise.
7311         * doc/posix-functions/iswalnum_l.texi: Likewise.
7312         * doc/posix-functions/iswalpha_l.texi: Likewise.
7313         * doc/posix-functions/iswblank_l.texi: Likewise.
7314         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7315         * doc/posix-functions/iswctype_l.texi: Likewise.
7316         * doc/posix-functions/iswdigit_l.texi: Likewise.
7317         * doc/posix-functions/iswgraph_l.texi: Likewise.
7318         * doc/posix-functions/iswlower_l.texi: Likewise.
7319         * doc/posix-functions/iswprint_l.texi: Likewise.
7320         * doc/posix-functions/iswpunct_l.texi: Likewise.
7321         * doc/posix-functions/iswspace_l.texi: Likewise.
7322         * doc/posix-functions/iswupper_l.texi: Likewise.
7323         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7324         * doc/posix-functions/isxdigit_l.texi: Likewise.
7325         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7326         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7327         * doc/posix-functions/strcoll_l.texi: Likewise.
7328         * doc/posix-functions/strfmon_l.texi: Likewise.
7329         * doc/posix-functions/strftime_l.texi: Likewise.
7330         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7331         * doc/posix-functions/strxfrm_l.texi: Likewise.
7332         * doc/posix-functions/tolower_l.texi: Likewise.
7333         * doc/posix-functions/toupper_l.texi: Likewise.
7334         * doc/posix-functions/towctrans_l.texi: Likewise.
7335         * doc/posix-functions/towlower_l.texi: Likewise.
7336         * doc/posix-functions/towupper_l.texi: Likewise.
7337         * doc/posix-functions/wcscoll_l.texi: Likewise.
7338         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7339         * doc/posix-functions/wctrans_l.texi: Likewise.
7340         * doc/posix-functions/wctype_l.texi: Likewise.
7341         * doc/glibc-functions/strptime_l.texi: Likewise.
7342         * doc/glibc-functions/strtod_l.texi: Likewise.
7343         * doc/glibc-functions/strtof_l.texi: Likewise.
7344         * doc/glibc-functions/strtol_l.texi: Likewise.
7345         * doc/glibc-functions/strtold_l.texi: Likewise.
7346         * doc/glibc-functions/strtoll_l.texi: Likewise.
7347         * doc/glibc-functions/strtoul_l.texi: Likewise.
7348         * doc/glibc-functions/strtoull_l.texi: Likewise.
7349         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7350         * doc/glibc-functions/wcstod_l.texi: Likewise.
7351         * doc/glibc-functions/wcstof_l.texi: Likewise.
7352         * doc/glibc-functions/wcstol_l.texi: Likewise.
7353         * doc/glibc-functions/wcstold_l.texi: Likewise.
7354         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7355         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7356         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7357
7358 2009-11-24  Bruno Haible  <bruno@clisp.org>
7359
7360         duplocale: Fix logic bug.
7361         * lib/duplocale.c: Don't include <langinfo.h>.
7362         (_NL_LOCALE_NAME): Remove macro.
7363         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7364         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7365
7366 2009-11-23  Jim Meyering  <meyering@redhat.com>
7367
7368         test-update-copyright: don't hard-code /usr/bin/perl
7369         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7370         perl to print the current year.  Gilles Espinasse reported that
7371         the replaced use of perl was hard-coded as /usr/bin/perl.
7372
7373 2009-11-23  Bruno Haible  <bruno@clisp.org>
7374
7375         duplocale: Add support for glibc 2.3.x.
7376         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7377
7378 2009-11-22  Bruno Haible  <bruno@clisp.org>
7379
7380         vasnprintf: Tiny optimization.
7381         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7382         MacOS X.
7383
7384 2009-11-22  Bruno Haible  <bruno@clisp.org>
7385
7386         Tests for module 'duplocale'.
7387         * modules/duplocale-tests: New file.
7388         * tests/test-duplocale.c: New file.
7389
7390         New module 'duplocale'.
7391         * m4/duplocale.m4: New file.
7392         * lib/locale.in.h (duplocale): New declaration.
7393         * lib/duplocale.c: New file.
7394         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7395         gl_LOCALE_H_DEFAULTS): New macros.
7396         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7397         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7398         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7399         REPLACE_DUPLOCALE.
7400         * modules/duplocale: New file.
7401         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7402
7403 2009-11-22  Bruno Haible  <bruno@clisp.org>
7404
7405         * modules/locale-tests (configure.ac): Test for newlocale function.
7406         * tests/test-locale.c: When the system has extended locale functions,
7407         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7408
7409         locale: Make locale_t available when possible.
7410         * lib/locale.in.h: Include <xlocale.h> when it exists.
7411         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7412         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7413         * modules/locale (Depends-on): Add extensions.
7414         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7415         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7416
7417 2009-11-22  Bruno Haible  <bruno@clisp.org>
7418
7419         Add comments.
7420         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7421         invocation.
7422         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7423         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7424         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7425
7426 2009-11-22  Bruno Haible  <bruno@clisp.org>
7427
7428         error: account for the possibility of freopen (stdout).
7429         * lib/error.c: Include <unistd.h>.
7430         (flush_stdout): New function, extracted from error and error_at_line.
7431         Determine stdout's fd dynamically.
7432         (error, error_at_line): Invoke flush_stdout.
7433         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7434         * modules/error (Depends-on): Add unistd.
7435
7436 2009-11-22  Bruno Haible  <bruno@clisp.org>
7437
7438         diffseq: Add comment.
7439         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7440
7441 2009-11-22  Jim Meyering  <meyering@redhat.com>
7442
7443         c-stack: avoid defining an unused static function
7444         * lib/c-stack.c (find_stack_direction): Do not define this function
7445         when it will not be used.
7446
7447         diffseq: avoid spurious gcc warnings
7448         * lib/diffseq.h (IF_LINT2): Define.
7449         (compareseq): Use it to initialize two members of "part".
7450         This avoids two used-uninitialized warnings.
7451
7452 2009-11-21  Jim Meyering  <meyering@redhat.com>
7453
7454         c-stack: avoid "ignoring return value of `write'" warning
7455         * lib/c-stack.c: Include "ignore-value.h".
7456         (die): Explicitly ignore each write return value.
7457         * modules/c-stack (Depends-on): Add ignore-value.
7458
7459 2009-11-21  Bruno Haible  <bruno@clisp.org>
7460
7461         diffseq: reduce scope of variable 'best'.
7462         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7463         variable, earlier used for two different purposes.
7464
7465 2009-11-21  Jim Meyering  <meyering@redhat.com>
7466
7467         diffseq: remove useless assignment to "best"
7468         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7469         assignment.  At that point "best" is already guaranteed to be zero.
7470
7471 2009-11-20  Eric Blake  <ebb9@byu.net>
7472
7473         build: mention ftp redirector in release announcements
7474         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7475         values that used to come from cfg.mk; mention FTP redirect URL.
7476         * build-aux/announce-gen: Mention the mirror list.
7477         Suggested by Karl Berry.
7478
7479         nanosleep: improve port to mingw
7480         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7482         LIB_NANOSLEEP, but only when needed.
7483         * modules/select (Link): Document LIBSOCKET.
7484         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7485         enough.
7486
7487         nanosleep: work around cygwin bug
7488         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7489         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7490         bug.
7491         (getnow): Delete, not needed.
7492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7493         LIB_CLOCK_GETTIME.
7494         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7495         clock-time, gettime.
7496         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7497         bug.
7498         * modules/nanosleep-tests: New test.
7499         * tests/test-nanosleep.c: New file.
7500
7501         sleep: work around cygwin bug
7502         * lib/sleep.c (rpl_sleep): Work around the bug.
7503         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7504         (gl_PREREQ_SLEEP): Delete unused macro.
7505         * modules/sleep (Depends-on): Add verify.
7506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7507         * modules/unistd (Makefile.am): Substitute witness.
7508         * lib/unistd.in.h (sleep): Update prototype.
7509         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7510         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7511         * modules/sleep-tests (Depends-on): Check for alarm.
7512
7513 2009-11-20  Jim Meyering  <meyering@redhat.com>
7514
7515         maint.mk: improve sc_prohibit_magic_number_exit
7516         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7517         so it does not match uses like System.exit(1).
7518         Add comments showing how to correct all offenders.
7519
7520 2009-11-19  Eric Blake  <ebb9@byu.net>
7521
7522         xalloc-die-tests: add missing library
7523         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7524
7525         test-xvasprintf: silence compiler warnings
7526         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7527         empty string from gcc.
7528
7529 2009-11-19  Jim Meyering  <meyering@redhat.com>
7530
7531         xfreopen: new module, from coreutils
7532         * modules/xfreopen: New module.
7533         * lib/xfreopen.c: New file.
7534         * lib/xfreopen.h: New file.
7535         * MODULES.html.sh (File stream based Input/Output"): Add it.
7536
7537 2009-11-19  Eric Blake  <ebb9@byu.net>
7538
7539         manywarnings: depend on warnings
7540         * modules/manywarnings (Depends-on): Add warnings.
7541
7542         build: avoid compiler warnings
7543         * lib/select.c (rpl_select): Delete unused variable.
7544         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7545
7546 2009-11-18  Eric Blake  <ebb9@byu.net>
7547
7548         tests: avoid false negative with --with-packager
7549         * tests/test-version-etc.sh: Discard packager information.
7550         * tests/test-argp-version-etc-1.sh: Likewise.
7551         Reported by Mike Frysinger.
7552
7553         utimens: fix regression on Solaris
7554         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7555         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7556         can only change fd timestamps via futimesat.  Instead, use an
7557         additional witness macro to avoid BSD bug.
7558         Reported by Jim Meyering.
7559
7560 2009-11-17  Eric Blake  <ebb9@byu.net>
7561
7562         usleep: use it to simplify tests
7563         * modules/stat-time-tests (Depends-on): Add usleep.
7564         (configure.ac): Drop usleep check.
7565         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7566         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7567         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7568         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7569         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7570         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7571         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7572         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7573         Likewise.
7574         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7575         * tests/test-lchown.h (nap): Likewise.
7576         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7577         * tests/test-stat-time.c (nap): Likewise.
7578         * tests/test-utimens-common.h (nap): Update comments.
7579
7580         usleep: new module
7581         * modules/usleep: New file.
7582         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7583         * lib/usleep.c (usleep): Likewise.
7584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7585         * modules/unistd (Makefile.am): Substitute witnesses.
7586         * lib/unistd.in.h (usleep): Add declaration.
7587         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7588         * MODULES.html.sh (Date and time): Likewise.
7589         * modules/usleep-tests (Depends-on): New test.
7590         * tests/test-usleep.c: New file.
7591
7592         chown: work around OpenBSD bug
7593         * lib/chown.c (rpl_chown): Work around the bug.
7594         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7595         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7596         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7597         * modules/chown (Depends-on): Add stdbool.
7598         * modules/lchown (Depends-on): Likewise.
7599         * doc/posix-functions/chown.texi (chown): Document the bug.
7600         * doc/posix-functions/lchown.texi (lchown): Likewise.
7601         * tests/test-lchown.h (test_chown): Relax test.
7602
7603         mkstemp: avoid conflict with C++ keyword template
7604         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7605         * lib/mkostemp.c (mkostemp): Likewise.
7606         * lib/mkostemps.c (mkostemps): Likewise.
7607         * lib/mkstemp.c (mkstemp): Likewise.
7608         * lib/mkstemps.c (mkstemps): Likewise.
7609
7610         xalloc-die-tests: optimize
7611         * tests/test-xalloc-die.sh: Reduce number of processes.
7612
7613 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7614
7615         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7616         patch from ludo@gnu.org (Ludovic Courtès).
7617
7618 2009-11-17  Jim Meyering  <meyering@redhat.com>
7619
7620         version-etc: use proper license string
7621         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7622         * modules/version-etc-fsf: Likewise.
7623
7624 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7625
7626         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7627         printed to stdout.  Deal with EOL differences.
7628
7629 2009-11-17  Eric Blake  <ebb9@byu.net>
7630
7631         unsetenv: work around Solaris bug
7632         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7633         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7634         Reported by Jim Meyering.
7635
7636         vasnprintf: avoid compiler warnings
7637         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7638         variables.
7639         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7640
7641 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7642
7643         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7644         settings since xalloc-die is no longer the self test,
7645         xalloc-die.sh is.
7646
7647 2009-11-17  Jim Meyering  <meyering@redhat.com>
7648
7649         test-xalloc-die.sh: make the code agree with the commit log
7650         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7651         at the end, just in case you happen to have a test-xalloc-die
7652         program in some other PATH directory.
7653
7654         test-xalloc-die.sh: fix a portability bug
7655         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7656         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7657         Otherwise, argv[0] (as often seen in diagnostics) would be too
7658         system-dependent, sometimes with, and sometimes without the leading "./".
7659
7660         version-etc-fsf: relax license to LGPLv3+
7661         * modules/version-etc-fsf (License): Relax license.
7662
7663 2009-11-16  Eric Blake  <ebb9@byu.net>
7664
7665         xalloc-die-tests: avoid printing null pointer
7666         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7667         shell script.
7668         * tests/test-xalloc-die.c (program_name): Declare.
7669         * tests/test-xalloc-die.sh (tmpfiles): New file.
7670
7671         setenv, unsetenv: work around various bugs
7672         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7673         (setenv) [HAVE_SETENV]: Work around bugs.
7674         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7675         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7676         for bugs.
7677         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7678         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7680         * modules/stdlib (Makefile.am): Update substitutions.
7681         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7682         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7683         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7684         * modules/setenv-tests: New test.
7685         * modules/unsetenv-tests: Likewise.
7686         * tests/test-setenv.c: New file.
7687         * tests/test-unsetenv.c: Likewise.
7688
7689 2009-11-16  Jim Meyering  <meyering@redhat.com>
7690
7691         version-etc: relax license to LGPLv3+
7692         * modules/version-etc (License): Relax license.
7693
7694         better AC_REQUIRE expanded-before-required-warning avoidance
7695         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7696         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7697         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7698         which is no longer needed.
7699
7700 2009-11-16  Eric Blake  <ebb9@byu.net>
7701
7702         test-freading: clean up temporary file
7703         * tests/test-freading.c (main): Remove file on success, and use
7704         ASSERT more liberally.
7705         Reported by Jim Meyering.
7706
7707 2009-11-16  Jim Meyering  <meyering@redhat.com>
7708
7709         avoid new AC_REQUIRE expanded-before-required warnings
7710         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7711         merely using it.
7712         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7713         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7714
7715 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7716
7717         * tests/test-xalloc-die.c: New file.
7718         * modules/xalloc-die-tests: New file.
7719         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7720         XFAIL_TESTS so it can be appended by modules.
7721
7722 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7723
7724         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7725         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7726
7727 2009-11-14  Eric Blake  <ebb9@byu.net>
7728
7729         fnmatch: avoid compiler warning
7730         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7731         to silence compiler warning about mismatch signedness in ?:.
7732         Reported by Robert Millan.
7733
7734         intprops: add double-inclusion guard
7735         * lib/intprops.h: Allow idempotent includes.
7736         Suggested by Bruce Korb.
7737
7738         openat: detect Solaris fchownat bug
7739         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7740         penalizing glibc chownat when only lchownat is broken.
7741         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7742         trailing slash bugs.
7743         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7744         * modules/openat-tests (Files): Include more files.
7745         (Depends-on): Add mgetgroups, sleep, stat-time.
7746         (configure.ac): Add additional checks.
7747         (Makefile.am): Build new test.
7748         * tests/test-fchownat.c: New file.
7749
7750         lchown: detect Solaris and FreeBSD bug
7751         * lib/lchown.c (rpl_lchown): Work around bug.
7752         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7754         * modules/unistd (Makefile.am): Populate it.
7755         * lib/unistd.in.h (lchown): Update declaration.
7756         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7757         * modules/lchown-tests: New file.
7758         * tests/test-lchown.h (test_lchown): Likewise.
7759         * tests/test-lchown.c (main): Likewise.
7760
7761         chown: detect Solaris and FreeBSD bug
7762         * lib/chown.c (rpl_chown): Work around bug.
7763         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7764         (gl_PREREQ_CHOWN): Delete.
7765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7766         * modules/unistd (Makefile.am): Populate it.
7767         * lib/unistd.in.h (chown): Update declaration.
7768         * lib/lchown.c (chown): Update client.
7769         * modules/lchown (Depends-on): Add lstat.
7770         * doc/posix-functions/chown.texi (chown): Document the bug.
7771         * doc/posix-functions/getgroups.texi (getgroups): Document
7772         getgroups pitfall.
7773         * modules/chown-tests: New file.
7774         * tests/test-chown.h (test_chown): Likewise.
7775         * tests/test-chown.c (main): Likewise.
7776
7777 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7778
7779         gnulib-tool: correctly detect absence of m4 directories
7780         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7781
7782 2009-11-14  Jim Meyering  <meyering@redhat.com>
7783
7784         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7785         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7786
7787 2009-11-14  John W. Eaton  <jwe@gnu.org>
7788
7789         strftime.h: wrap funtion declaration in extern "C" block
7790         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7791
7792 2009-11-13  Eric Blake  <ebb9@byu.net>
7793
7794         getgroups: avoid compiler warning
7795         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7796
7797         getgroups: work around FreeBSD bug
7798         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7799         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7800         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7801         * tests/test-getgroups.c (main): Fix buffer overrun.
7802
7803         getgroups: avoid compilation failure
7804         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7805         * modules/getgroups (Depends-on): Add stdint.
7806
7807 2009-11-13  Jim Meyering  <meyering@redhat.com>
7808
7809         test-getgroups: avoid compilation failure
7810         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7811
7812 2009-11-13  Eric Blake  <ebb9@byu.net>
7813
7814         mgetgroups: new module, taken from coreutils
7815         * modules/mgetgroups: New file.
7816         * lib/mgetgroups.h: Likewise.
7817         * lib/mgetgroups.c (mgetgroups): Likewise.
7818         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7819         * MODULES.html.sh (Users and groups): Mention it.
7820
7821         getgroups: don't expose GETGROUPS_T to user
7822         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7823         an element at a time if GETGROUPS_T is wrong size.
7824         * lib/getugroups.h (getugroups): Change signature.
7825         * lib/unistd.in.h (getgroups): Likewise.
7826         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7827         signature needs fixing.
7828         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7829         AC_TYPE_GETGROUPS.
7830         * modules/group-member (Depends-on): Add getgroups.
7831         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7832         (group_member): Rely on getgroups replacement.
7833         * lib/getugroups.c (getugroups): Use gid_t.
7834         * tests/test-getgroups.c (main): Likewise.
7835         * NEWS: Mention the signature change.
7836         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7837         problem with signature.
7838         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7839         GETGROUPS_T is still useful for setgroups.
7840
7841         getgroups, getugroups: provide stubs for mingw
7842         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7843         * lib/getugroups.c (getugroups): Likewise.
7844         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7845         function.  Modernize replacement scheme.
7846         (gl_PREREQ_GETGROUPS): Delete.
7847         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7848         * modules/getgroups (configure.ac): Declare witness.
7849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7850         * modules/unistd (Depends-on): Substitute witness.
7851         * lib/unistd.in.h (getgroups): Declare replacement.
7852
7853         getgroups: avoid calling exit
7854         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7855         drop xalloc.
7856         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7857         dependencies.
7858         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7859         exiting, in the rare case of malloc failure.
7860
7861         getgroups: fix logic error
7862         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7863         has more than 20 groups.
7864         * modules/getgroups-tests: New test.
7865         * tests/test-getgroups.c: New file.
7866
7867 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7868
7869         * tests/test-base64.c: Improve.
7870
7871 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7872
7873         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7874         Blake <ebb9@byu.net>.
7875
7876 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7877
7878         * tests/test-xvasprintf.c: Add %s%s related checks.
7879
7880 2009-11-12  Eric Blake  <ebb9@byu.net>
7881
7882         version-etc: match standards.texi style
7883         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7884         and use <> only for URLs.
7885
7886 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7887
7888         fts: do not fail on a submount during traversal
7889         * lib/fts.c (fts_build): Read the stat info again after opening
7890         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7891         Original report at http://bugzilla.redhat.com/501848.
7892
7893 2009-11-12  Jim Meyering  <meyering@redhat.com>
7894
7895         bootstrap: sync from coreutils
7896         * build-aux/bootstrap (bootstrap_epilogue): New function.
7897         Use git_modules_config in one more place.  This make bootstrap's
7898         --gnulib-srcdir option more useful for testing.
7899
7900         bootstrap: generalize autoheader check
7901         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7902         AC_CONFIG_HEADERS.
7903
7904 2009-11-11  Eric Blake  <ebb9@byu.net>
7905
7906         mkfifoat: use new modules for Solaris and BSD bugs
7907         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7908         * lib/mkfifoat.c (mknodat): Split...
7909         * lib/mknodat.c (mknodat): ...into new file.
7910         * modules/mkfifoat (Files): Ship new file.
7911         (Depends-on): Add mkfifo, mknod.
7912         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7913         (Depends-on): Add symlink.
7914         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7915         redundant with test_mkfifo.h.
7916         (do_mkfifoat, do_mknodat): New helpers.
7917
7918         mknod: new module
7919         * modules/mknod: New file.
7920         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7921         * lib/mknod.c (mknod): Likewise.
7922         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7923         defaults.
7924         * modules/sys_stat (Makefile.am): Substitute them.
7925         * lib/sys_stat.in.h (mknod): Declare replacement.
7926         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7927         Document it.
7928         * doc/posix-functions/mknod.texi (mknod): Likewise.
7929         * modules/mknod-tests: New test.
7930         * tests/test-mknod.c: Likewise.
7931
7932         mkfifo: new module
7933         * modules/mkfifo: New file.
7934         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7935         * lib/mkfifo.c (mkfifo): Likewise.
7936         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7937         defaults.
7938         * modules/sys_stat (Makefile.am): Substitute them.
7939         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7940         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7941         Document it.
7942         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7943         * modules/mkfifo-tests: New test.
7944         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7945         from test-mkfifoat.c.
7946         * tests/test-mkfifo.c: New file.
7947
7948         readlink: detect FreeBSD bug
7949         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7950         slash on symlink.
7951         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7952         * tests/test-readlink.h (test_readlink): Enhance test.
7953
7954         symlink: detect FreeBSD bug
7955         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7956         slash on symlink.
7957         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7958         * tests/test-symlink.h (test_symlink): Enhance test.
7959
7960 2009-11-10  Eric Blake  <ebb9@byu.net>
7961
7962         link: detect FreeBSD bug
7963         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7964         symlink.
7965         * doc/posix-functions/link.texi (link): Document the bug.
7966         * tests/test-link.h (test_link): Enhance test.
7967         * tests/test-linkat.c (main): Update caller.
7968
7969         unlink, remove: detect FreeBSD bug
7970         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7971         slash on symlink.
7972         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7973         * doc/posix-functions/remove.texi (remove): Likewise.
7974         * tests/test-unlink.h (test_unlink): Enhance test.
7975         * tests/test-remove.c (main): Likewise.
7976
7977 2009-11-09  Eric Blake  <ebb9@byu.net>
7978
7979         rename: detect FreeBSD bug
7980         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7981         slash on symlink.
7982         * modules/renameat-tests (Depends-on): Add filenamecat.
7983         * tests/test-rename.h (test_rename): Allow one more errno.
7984         * tests/test-renameat.c (main): Likewise.
7985         * doc/posix-functions/rename.texi (rename): Document the bug.
7986
7987         open: detect FreeBSD bug
7988         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7989         symlink.
7990         * doc/posix-functions/open.texi (open): Document the bug.
7991         * doc/posix-functions/utimes.texi (utimes): Likewise.
7992         * tests/test-open.h (test_open): Add parameters, and test symlink
7993         handling.
7994         * tests/test-open.c (main): Adjust caller.
7995         * tests/test-fcntl-safer.c (main): Likewise.
7996         * modules/open-tests (Depends-on): Add stdbool, symlink.
7997         * modules/fcntl-safer-tests (Depends-on): Likewise.
7998         * tests/test-openat.c (main): Add test-open tests.
7999
8000         stat: detect FreeBSD bug
8001         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8002         symlink.
8003         * doc/posix-functions/stat.texi (stat): Document the bug.
8004         * tests/test-stat.h (test_stat_func): Add argument.
8005         * tests/test-stat.c (main): Adjust caller.
8006         * tests/test-fstatat.c (main): Likewise.
8007         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8008         Reported by Jim Meyering.
8009
8010 2009-11-09  James Youngman  <jay@gnu.org>
8011
8012         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8013         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8014
8015 2009-11-08  Jim Meyering  <meyering@redhat.com>
8016
8017         utimens: remove invalid futimesat call
8018         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8019         It used the file descriptor of the target file as the DIR_FD
8020         parameter and NULL as the file name.  That caused failure with
8021         errno == EFAULT on FreeBSD-8.0-rc2
8022
8023 2009-11-07  Eric Blake  <ebb9@byu.net>
8024
8025         fflush, freadseek: use fseeko, not fseek
8026         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8027         (clear_ungetc_buffer): Avoid potential problems on large files.
8028         * lib/freadseek.c (freadseek): Likewise.
8029         * modules/freadseek (Depends-on): Add fseeko.
8030         * modules/fseek (configure.ac): Set a witness.
8031         * tests/test-fflush.c (main): Use fseeko.
8032         * tests/test-fpurge.c (fseek): Disable link warning.
8033         * tests/test-freadable.c (fseek): Likewise.
8034         * tests/test-freading.c (fseek): Likewise.
8035         * tests/test-fseeko.c (fseek): Likewise.
8036         * tests/test-ftell.c (fseek): Likewise.
8037         * tests/test-ftello.c (fseek): Likewise.
8038         * tests/test-fwritable.c (fseek): Likewise.
8039         * tests/test-fwriting.c (fseek): Likewise.
8040
8041 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8042
8043         * modules/memchr (Depends-on): Drop getpagesize dependency.
8044
8045 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8046
8047         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8048         Reported by Ludovic Courtès.
8049         * build-aux/pmccabe2html: Improve example usage.
8050         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8051
8052 2009-11-06  Jim Meyering  <meyering@redhat.com>
8053
8054         do-release-commit-and-tag: New module.
8055         Automate the release-commit and tag process.
8056         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8057         * modules/do-release-commit-and-tag: New file.
8058         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8059
8060 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8061
8062         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8063         because test-select.c uses inet_pton.
8064
8065 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8066
8067         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8068         GETADDRINFO_LIB.  Bump serial number.
8069         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8070         Suggested by Eric Blake <ebb9@byu.net>.
8071
8072 2009-11-05  Eric Blake  <ebb9@byu.net>
8073
8074         strtod: detect darwin bug
8075         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8076         Reported by Leo Davis.
8077
8078         freopen-safer: new module
8079         * modules/freopen-safer: New module.
8080         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8081         * lib/freopen-safer.c (freopen_safer): New file.
8082         * lib/stdio-safer.h (freopen_safer): New declaration.
8083         * lib/stdio--.h (freopen): New override.
8084         * MODULES.html.sh (File stream based Input/Output): Mention it.
8085         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8086         freopen-safer module.
8087         * doc/posix-functions/stderr.texi (stderr): Likewise.
8088         * doc/posix-functions/stdin.texi (stdin): Likewise.
8089         * doc/posix-functions/stdout.texi (stdout): Likewise.
8090         * modules/freopen-safer-tests: New test.
8091         * tests/test-reopen-safer.c: New file.
8092
8093 2009-11-05  Jim Meyering  <meyering@redhat.com>
8094
8095         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8096         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8097
8098 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8099
8100         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8101
8102 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8103
8104         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8105
8106 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8107
8108         Fix link error.
8109         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8110         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8111
8112 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8113
8114         * tests/test-func.c: Also test value of __func__.
8115
8116 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8117
8118         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8119         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8120
8121 2009-11-05  Bruno Haible  <bruno@clisp.org>
8122
8123         Fix link error.
8124         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8125         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8126         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8127
8128 2009-11-05  Bruno Haible  <bruno@clisp.org>
8129
8130         Tests for module 'inet_pton'.
8131         * modules/inet_pton-tests: New file.
8132         * tests/test-inet_pton.c: New file.
8133
8134 2009-11-05  Bruno Haible  <bruno@clisp.org>
8135
8136         Tests for module 'inet_ntop'.
8137         * modules/inet_ntop-tests: New file.
8138         * tests/test-inet_ntop.c: New file.
8139
8140 2009-11-04  Eric Blake  <ebb9@byu.net>
8141
8142         stdlib-safer: wrap all mkstemp variants
8143         * modules/mkostemp (configure.ac): Set witness.
8144         * modules/mkostemps (configure.ac): Likewise.
8145         * modules/mkstemps (configure.ac): Likewise.
8146         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8147         (mkstemps_safer): Wrap more functions.
8148         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8149         wrapping.
8150         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8151         (mkstemps_safer): Implement the wrappers.
8152
8153         mkstemps, mkostemps: new modules
8154         * modules/mkostemps: New module.
8155         * modules/mkstemps: Likewise.
8156         * lib/mkostemps.c (mkostemps): New file.
8157         * lib/mkstemps.c (mkstemps): Likewise.
8158         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8159         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8161         * modules/stdlib (Makefile.am): Substitute them.
8162         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8163         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8164         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8165         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8166         * MODULES.html.sh (File system functions): Mention them.
8167
8168         tempname: resync from glibc
8169         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8170         same values for __GT_FILE as glibc.  Abort even when assertions
8171         are disabled.
8172         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8173         match its value otherwise.  Allow idempotent inclusion.
8174         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8175         * lib/mkostemp.c (mkostemp): Likewise.
8176         * lib/mkstemp.c (mkstemp): Likewise.
8177         * lib/tmpfile.c (tmpfile): Likewise.
8178         * NEWS: Document this.
8179
8180         utimens: fix use of futimens on older Linux
8181         * lib/utimens.c (fdutimens): Use updated, rather than original,
8182         timespec to avoid bug in older Linux kernel.
8183         Reported by Simon Josefsson.
8184
8185 2009-11-04  Bruno Haible  <bruno@clisp.org>
8186
8187         Make num_processors more flexible and consistent.
8188         * lib/nproc.h (enum nproc_query): New type.
8189         (num_processors): Add a 'query' argument.
8190         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8191         (num_processors): Add a 'query' argument. Test the value of the
8192         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8193         mingw, count the number of CPUs available for the current process.
8194         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8195         Check for sched_getaffinity and sched_getaffinity_np.
8196         * modules/nproc (Depends-on): Add c-ctype, extensions.
8197         * NEWS: Mention the change.
8198
8199 2009-11-03  Bruno Haible  <bruno@clisp.org>
8200
8201         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8202
8203 2009-11-03  Jim Meyering  <meyering@redhat.com>
8204
8205         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8206         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8207         if it is defined.
8208
8209 2009-11-02  Eric Blake  <ebb9@byu.net>
8210
8211         mktime, timegm: share common declaration
8212         * lib/mktime-internal.h: New file.
8213         * lib/mktime.c: Use it rather than open-coding a declaration.
8214         * lib/timegm.c: Likewise.
8215         * modules/mktime (Files): Ship it.
8216         * modules/timegm (Files): Likewise.
8217         Suggested by Bruno Haible.
8218
8219         test-update-copyright: update test to match script changes
8220         * tests/test-update-copyright.sh: Avoid hard-coding perl
8221         location.  Don't update *.bak created by earlier runs.
8222
8223 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8224             Simon Josefsson  <simon@josefsson.org>
8225             Bruno Haible  <bruno@clisp.org>
8226
8227         Fix link error on Solaris 8.
8228         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8229         also in libnsl. Define also INET_PTON_LIB.
8230         * modules/inet_pton (Link): New section.
8231
8232 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8233             Bruno Haible  <bruno@clisp.org>
8234
8235         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8236         * modules/inet_ntop (Link): New section.
8237         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8238
8239 2009-11-02  Eric Blake  <ebb9@byu.net>
8240
8241         maint: avoid compiler warnings in m4 macros
8242         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8243         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8244
8245 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8246
8247         * m4/pmccabe2html.m4: Remove file.
8248         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8249         function.  Change maintainer.
8250         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8251         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8252         Courtès).
8253
8254 2009-10-31  Eric Blake  <ebb9@byu.net>
8255
8256         fseeko: fix m4 regression
8257         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8258         regression from 2009-10-27.
8259         Reported by Ralf Wildenhues.
8260
8261 2009-10-31  Jim Meyering  <meyering@redhat.com>
8262
8263         inttostr: aesthetics and improved (compile-time) safety
8264         Define inttype_is_signed rather than inttype_is_unsigned,
8265         since the sole use is via "#if inttype_is_signed".
8266         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8267         inttype_is_unsigned.
8268         * lib/offtostr.c (inttype_is_signed): Likewise.
8269         * lib/uinttostr.c (inttype_is_signed): Likewise.
8270         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8271         * lib/inttostr.c (inttostr): Use verify to cross-check the
8272         inttype_is_signed value and the signedness of the actual type.
8273         * modules/inttostr (Depends-on): Add verify.
8274
8275 2009-10-30  Eric Blake  <ebb9@byu.net>
8276
8277         build: avoid compiler warnings
8278         * lib/fchmodat.c (lchmod): Mark unused variables.
8279         * lib/getopt.c (_getopt_initialize): Likewise.
8280         * lib/mktime.c (__mktime_internal): Provide prototype.
8281         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8282         older gcc that do not understand #pragma GCC diagnostic.
8283         * lib/uinttostr.c (inttype_is_unsigned): Define.
8284         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8285
8286 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8287
8288         stat: fix compilation on AIX
8289         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8290         only see struct stat64.
8291
8292 2009-10-30  Eric Blake  <ebb9@byu.net>
8293
8294         exclude: make more robust
8295         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8296         rather than masking a coding bug.
8297         Suggested by Bruno Haible.
8298
8299 2009-10-30  Jim Meyering  <meyering@redhat.com>
8300
8301         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8302         Rather than putting #!/usr/bin/perl on the first line,
8303         start with a variant of what's recommended by "man perlrun" that
8304         invokes the first "perl" program from your shell's search path.
8305         * build-aux/gitlog-to-changelog: Replace #!... as above.
8306         Add a "Local Variables" perl mode setting.
8307         Prompted by a patch from Ludovic Courtès.
8308         Improved by Eric Blake.
8309         * build-aux/useless-if-before-free: Likewise.
8310         * build-aux/announce-gen: Likewise.
8311         * build-aux/update-copyright: Likewise.
8312
8313 2009-10-29  Eric Blake  <ebb9@byu.net>
8314
8315         filenamecat-lgpl: adjust clients
8316         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8317         filenamecat.
8318         * modules/renameat (Depends-on): Likewise.
8319
8320         filenamecat: split into filenamecat-lgpl
8321         * modules/filenamecat-lgpl: New module.
8322         * modules/filenamecat (Files): Move library-safe files into
8323         filenamecat-lgpl.
8324         (Depends-on): Add filenamecat-lgpl.
8325         (configure.ac): Declare witness.
8326         * lib/filenamecat.h (file_name_concat): Only declare when using
8327         GPL module.
8328         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8329         Move...
8330         * lib/filenamecat-lgpl.c: ...into new file.
8331         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8332         (gl_FILE_NAME_CONCAT): Use it.
8333         * MODULES.html.sh (File system functions): Mention new module.
8334
8335         argp: avoid memory leak
8336         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8337         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8338         base_name, since the latter malloc()s and can call exit().
8339         Leak introduced 2006-07-03.
8340
8341         dirname-lgpl: adjust clients that don't need full dirname
8342         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8343         * modules/filenamecat (Depends-on): Likewise.
8344         * modules/linkat (Depends-on): Likewise.
8345         * modules/mkancesdirs (Depends-on): Likewise.
8346         * modules/mkdir (Depends-on): Likewise.
8347         * modules/openat (Depends-on): Likewise.
8348         * modules/savewd (Depends-on): Likewise.
8349         * modules/rename (Depends-on): Likewise.
8350         (License): Relax license.
8351         * modules/mkdir-tests (Depends-on): Drop progname.
8352         (Makefile.am): Delete unneeded LDADD.
8353         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8354
8355         dirname: split into dirname-lgpl
8356         * modules/dirname-lgpl: New module.
8357         * modules/dirname (Files): Move library-safe files into
8358         dirname-lgpl.
8359         (Depends-on): Add dirname-lgpl.
8360         (configure.ac): Declare witness.
8361         * modules/double-slash-root (License): Relax license.
8362         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8363         module.
8364         * lib/dirname.c (dir_len, mdir_name): Move...
8365         * lib/dirname-lgpl.c: ...into new file.
8366         * lib/basename.c (last_component, base_len): Move...
8367         * lib/basename-lgpl.c: ...into new file.
8368         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8369         (gl_DIRNAME): Use it.
8370         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8371         Mention new module.
8372         * modules/dirname-tests (Depends-on): Add progname.
8373         * tests/test-dirname.c (program_name): Delete.
8374
8375         mkdir: make safe for libraries
8376         * modules/mkdir (Depends-on): Drop xalloc.
8377         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8378         exit.
8379
8380         tests: avoid some compiler warnings
8381         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8382         literals.
8383         * tests/test-memchr.c (main): Avoid type mismatch.
8384         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8385         * tests/test-base64.c (main): Likewise.
8386         * tests/test-getdelim.c (main): Likewise.
8387         * tests/test-gethostname.c (main): Likewise.
8388         * tests/test-getline.c (main): Likewise.
8389         * tests/test-netinet_in.c (main): Likewise.
8390         * tests/test-select.c (open_server_socket, main): Likewise.
8391         * tests/test-select-stdin.c (main): Likewise.
8392         * tests/test-sockets.c (main): Likewise.
8393         * tests/test-strsignal.c (main): Likewise.
8394         * tests/test-sys_select.c (main): Likewise.
8395         * tests/test-sys_socket.c (main): Likewise.
8396         * tests/test-u64.c (main): Likewise.
8397         * tests/test-xfprintf-posix.c (main): Likewise.
8398         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8399
8400         sockets: avoid compiler warning
8401         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8402
8403         maint: detect usage(1) and other suspicious exits
8404         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8405
8406 2009-10-29  Jim Meyering  <meyering@redhat.com>
8407
8408         timespec: long-to-int truncation could make timespec_cmp malfunction
8409         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8410         a multiple of 2^32 nanoseconds as no difference.
8411
8412 2009-10-28  Jim Meyering  <meyering@redhat.com>
8413
8414         fprintftime: wrap macro code argument in "do {...} while(0)"
8415         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8416         cpy macro must be a statement that can be followed by a semicolon.
8417         Now that the else clause contains a comment and is hence longer
8418         than one line, I require curly braces.  That in turn requires
8419         that we wrap this code block in the standard do...while(0).
8420
8421         fprintftime: remove stray semicolon from previous change
8422         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8423
8424         fprintftime: avoid a warning about ignored fwrite return value
8425         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8426         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8427         that is unsafe.
8428         * modules/fprintftime (Depends-on): Add ignore-value.
8429
8430         exclude: avoid an unwarranted warning
8431         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8432
8433 2009-10-27  Eric Blake  <ebb9@byu.net>
8434
8435         fseek: avoid compilation failure when fflush is replaced
8436         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8437         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8438         module is in use.
8439         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8440         module is not in use; since REPLACE_FSEEK worked otherwise.
8441         (GNULIB_FTELLO): Likewise for ftell.
8442         Reported by Ian Beckwith and others.
8443
8444 2009-10-27  Bruno Haible  <bruno@clisp.org>
8445
8446         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8447         Reported by Jim Meyering.
8448
8449 2009-10-27  Jim Meyering  <jim@meyering.net>
8450             Bruno Haible  <bruno@clisp.org>
8451
8452         Avoid warning despite dropping the return value of fwrite.
8453         * lib/unicodeio.c: Include ignore-value.h.
8454         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8455         * modules/unicodeio (Depends-on): Add ignore-value.
8456
8457 2009-10-26  Eric Blake  <ebb9@byu.net>
8458
8459         areadlinkat: fix fallback path
8460         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8461         pointer and zero.
8462
8463 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8464
8465         Use a better IO block size for modern systems
8466         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8467         * lib/md2.c: Likewise.
8468         * lib/md4.c: Likewise.
8469         * lib/md5.c: Likewise.
8470         * lib/sha1.c: Likewise.
8471         * lib/sha256.c: Likewise.
8472         * lib/sha512.c: Likewise.
8473
8474 2009-10-22  Eric Blake  <ebb9@byu.net>
8475
8476         tests: avoid several compiler warnings
8477         * tests/test-getcwd.c (main): Avoid buffer underflow.
8478         * tests/test-getdate.c (main): String literals are not safe with
8479         putenv, so use setenv.  Declare unused argument.
8480         * modules/getdate-tests (Depends-on): Add setenv.
8481         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8482         problems with string literals in char *.
8483         * tests/test-hash.c (main): Avoid shadowing declaration.
8484         (insert_new): Treat string literals as char const *.
8485         * tests/test-getopt.h (test_getopt): Likewise.
8486         (getopt_loop): Alter types to minimize casting elsewhere.
8487         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8488         (test_getopt_long_posix): Likewise.
8489         (do_getopt_long): Add wrapper to minimize casting.
8490         * tests/test-atexit.c (clear_temp_file): Use void.
8491         * tests/test-areadlink-with-size.c (main): Declare unused
8492         arguments.
8493         * tests/test-areadlink.c (main): Likewise.
8494         * tests/test-areadlinkat-with-size.c (main): Likewise.
8495         * tests/test-areadlinkat.c (main): Likewise.
8496         * tests/test-canonicalize-lgpl.c (main): Likewise.
8497         * tests/test-canonicalize.c (main): Likewise.
8498         * tests/test-dirent-safer.c (main): Likewise.
8499         * tests/test-dirname.c (main): Likewise.
8500         * tests/test-dup2.c (main): Likewise.
8501         * tests/test-fchdir.c (main): Likewise.
8502         * tests/test-fcntl-h.c (main): Likewise.
8503         * tests/test-fcntl-safer.c (main): Likewise.
8504         * tests/test-fdopendir.c (main): Likewise.
8505         * tests/test-fdutimensat.c (main): Likewise.
8506         * tests/test-fflush.c (main): Likewise.
8507         * tests/test-filenamecat.c (main): Likewise.
8508         * tests/test-filevercmp.c (main): Likewise.
8509         * tests/test-fopen-safer.c (main): Likewise.
8510         * tests/test-fopen.c (main): Likewise.
8511         * tests/test-fpending.c (main): Likewise.
8512         * tests/test-fpurge.c (main): Likewise.
8513         * tests/test-freading.c (main): Likewise.
8514         * tests/test-fstatat.c (main): Likewise.
8515         * tests/test-fsync.c (main): Likewise.
8516         * tests/test-futimens.c (main): Likewise.
8517         * tests/test-getndelim2.c (main): Likewise.
8518         * tests/test-gettimeofday.c (main): Likewise.
8519         * tests/test-getopt.c (main): Likewise.
8520         * tests/test-i-ring.c (main): Likewise.
8521         * tests/test-inttypes.c (main): Likewise.
8522         * tests/test-link.c (main): Likewise.
8523         * tests/test-lstat.c (main): Likewise.
8524         * tests/test-math.c (main): Likewise.
8525         * tests/test-md5.c (main): Likewise.
8526         * tests/test-memchr2.c (main): Likewise.
8527         * tests/test-memrchr.c (main): Likewise.
8528         * tests/test-mkdir.c (main): Likewise.
8529         * tests/test-mkdirat.c (main): Likewise.
8530         * tests/test-mkfifoat.c (main): Likewise.
8531         * tests/test-open.c (main): Likewise.
8532         * tests/test-openat-safer.c (main): Likewise.
8533         * tests/test-openat.c (main): Likewise.
8534         * tests/test-quotearg.c (main): Likewise.
8535         * tests/test-rawmemchr.c (main): Likewise.
8536         * tests/test-readlink.c (main): Likewise.
8537         * tests/test-remove.c (main): Likewise.
8538         * tests/test-rename.c (main): Likewise.
8539         * tests/test-renameat.c (main): Likewise.
8540         * tests/test-rmdir.c (main): Likewise.
8541         * tests/test-sha1.c (main): Likewise.
8542         * tests/test-signal.c (main): Likewise.
8543         * tests/test-sigaction.c (main): Likewise.
8544         * tests/test-stat.c (main): Likewise.
8545         * tests/test-stat-time.c (main): Likewise.
8546         * tests/test-stddef.c (main): Likewise.
8547         * tests/test-stdint.c (main): Likewise.
8548         * tests/test-stdio.c (main): Likewise.
8549         * tests/test-stdlib.c (main): Likewise.
8550         * tests/test-strchrnul.c (main): Likewise.
8551         * tests/test-strerror.c (main): Likewise.
8552         * tests/test-string.c (main): Likewise.
8553         * tests/test-strtod.c (main): Likewise.
8554         * tests/test-strverscmp.c (main): Likewise.
8555         * tests/test-symlink.c (main): Likewise.
8556         * tests/test-symlinkat.c (main): Likewise.
8557         * tests/test-sys_stat.c (main): Likewise.
8558         * tests/test-sys_time.c (main): Likewise.
8559         * tests/test-time.c (main): Likewise.
8560         * tests/test-unistd.c (main): Likewise.
8561         * tests/test-unlink.c (main): Likewise.
8562         * tests/test-unlinkat.c (main): Likewise.
8563         * tests/test-utimens.c (main): Likewise.
8564         * tests/test-utimensat.c (main): Likewise.
8565         * tests/test-version-etc.c (main): Likewise.
8566         * tests/test-wchar.c (main): Likewise.
8567         * tests/test-wctype.c (main): Likewise.
8568         * tests/test-xprintf-posix.c (main): Likewise.
8569         * tests/test-posixtm.c (main): Likewise.
8570         (STREQ): Delete unused macro.
8571         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8572         shadowed variables.
8573         * tests/test-memchr.c (main): Likewise.
8574
8575 2009-10-21  Eric Blake  <ebb9@byu.net>
8576
8577         areadlinkat: avoid failure on older glibc
8578         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8579         rather than mis-comparing 0 against FUNC_RESULT of char*.
8580
8581 2009-10-21  Bruno Haible  <bruno@clisp.org>
8582
8583         * modules/stpncpy (License): Relicense under LGPLv2+.
8584         Reported by David Lutterkort <lutter@redhat.com>.
8585
8586 2009-10-20  Eric Blake  <ebb9@byu.net>
8587
8588         utimensat: work around Solaris 9 bug
8589         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8590         has trailing slash bugs.
8591         * tests/test-lutimens.h (test_lutimens): Enhance test.
8592         * tests/test-utimens.h (test_utimens): Likewise.
8593         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8594         * doc/posix-functions/utimes.texi (utimes): Likewise.
8595         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8596         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8597         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8598         * doc/posix-functions/futimens.texi (futimens): Likewise.
8599
8600         fdutimensat: new module
8601         * modules/fdutimensat: New file.
8602         * lib/fdutimensat.c (fdutimensat): Likewise.
8603         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8604         * MODULES.html.sh (File system functions): Mention module.
8605         * modules/fdutimensat-tests: New test.
8606         * tests/test-fdutimensat.c: Likewise.
8607
8608         doc: regenerate INSTALL
8609         * doc/INSTALL: Reflect recent autoconf update.
8610         * doc/INSTALL.ISO: Likewise.
8611         * doc/INSTALL.UTF-8: Likewise.
8612
8613 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8614
8615         acl: warn if ACL support is not detected
8616         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8617
8618 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8619
8620         * lib/nproc.h: Add extern "C" block for C++.
8621
8622 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8623             Bruno Haible  <bruno@clisp.org>
8624
8625         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8626         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8627         * doc/posix-functions/isalpha.texi: Likewise.
8628         * doc/posix-functions/isblank.texi: Likewise.
8629         * doc/posix-functions/iscntrl.texi: Likewise.
8630         * doc/posix-functions/isdigit.texi: Likewise.
8631         * doc/posix-functions/isgraph.texi: Likewise.
8632         * doc/posix-functions/islower.texi: Likewise.
8633         * doc/posix-functions/isprint.texi: Likewise.
8634         * doc/posix-functions/ispunct.texi: Likewise.
8635         * doc/posix-functions/isspace.texi: Likewise.
8636         * doc/posix-functions/isupper.texi: Likewise.
8637         * doc/posix-functions/isxdigit.texi: Likewise.
8638
8639 2009-10-18  Bruno Haible  <bruno@clisp.org>
8640
8641         Tests for module 'isblank'.
8642         * modules/isblank-tests: New file.
8643         * tests/test-isblank.c: New file.
8644
8645         New module 'isblank'.
8646         * lib/isblank.c: New file.
8647         * m4/isblank.m4: New file.
8648         * modules/isblank: New file.
8649         * doc/posix-functions/isblank.texi: Mention the new module.
8650
8651 2009-10-18  Bruno Haible  <bruno@clisp.org>
8652
8653         New module 'ctype'.
8654         * lib/ctype.in.h: New file.
8655         * m4/ctype.m4: New file.
8656         * modules/ctype: New file.
8657         * doc/posix-headers/ctype.texi: Mention the new module.
8658
8659 2009-10-18  Jim Meyering  <meyering@redhat.com>
8660
8661         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8662         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8663         right after its initialization, rather than farther down.
8664         Keeping these in close proximity makes it easier to ensure
8665         that each such variable is initialized.  E.g.,
8666
8667             LIB_CLOCK_GETTIME=
8668             AC_SUBST([LIB_CLOCK_GETTIME])
8669
8670         This change also increments these serial numbers.
8671         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8672         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8674
8675 2009-10-18  Bruno Haible  <bruno@clisp.org>
8676
8677         Don't let environment variables perturb build.
8678         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8679         (gl_PREREQ_GETHRXTIME): ... not here.
8680
8681 2009-10-18  Bruno Haible  <bruno@clisp.org>
8682
8683         Avoid symlink attack in localcharset module.
8684         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8685         (O_NOFOLLOW): Define fallback.
8686         (get_charset_aliases): Don't open the file if it is a symbolic link.
8687         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8688         gl_FCNTL_H.
8689         (gl_FCNTL_H): Require it.
8690         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8691         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8692         Reported by Fergal Glynn <fglynn@veracode.com>.
8693
8694 2009-10-18  Bruno Haible  <bruno@clisp.org>
8695
8696         Implement nproc for mingw.
8697         * lib/nproc.c: Include <windows.h>
8698         (num_processors): On native Windows platforms, try GetSystemInfo.
8699
8700 2009-10-18  Bruno Haible  <bruno@clisp.org>
8701
8702         Implement nproc for IRIX.
8703         * lib/nproc.c: Include <sys/sysmp.h>.
8704         (num_processors): On IRIX systems, try sysmp.
8705         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8706
8707 2009-10-18  Bruno Haible  <bruno@clisp.org>
8708
8709         Implement nproc for HP-UX.
8710         * lib/nproc.c: Include <sys/pstat.h>
8711         (num_processors): On HP-UX systems, try pstat_getdynamic.
8712         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8713         pstat_getdynamic.
8714
8715 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8716             Bruno Haible  <bruno@clisp.org>
8717
8718         Implement nproc for NetBSD, OpenBSD.
8719         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8720         (ARRAY_SIZE): New macro.
8721         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8722         * m4/nproc.m4: New file.
8723         * modules/nproc (Files): Add m4/nproc.m4.
8724         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8725         (Makefile.am): Instead, augment lib_SOURCES.
8726
8727 2009-10-18  Bruno Haible  <bruno@clisp.org>
8728
8729         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8730         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8731         sys/param.h.
8732
8733 2009-10-16  Eric Blake  <ebb9@byu.net>
8734
8735         utimensat: new module
8736         * modules/utimensat: New file.
8737         * lib/utimensat.c (utimensat): Likewise.
8738         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8739         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8740         so we can work around Linux bugs.
8741         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8742         * modules/sys_stat (Makefile.am): Substitute them.
8743         * lib/sys_stat.in.h (utimensat): Declare it.
8744         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8745         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8746         * modules/utimensat-tests: New test.
8747         * tests/test-utimensat.c: Likewise.
8748
8749         utimens: let lutimens work on non-symlinks
8750         * lib/utimens.c (lutimens): Fall back to utimens rather than
8751         failing with ENOSYS, when file is not a symlink.
8752         (utimens): Reduce redirection.
8753         * tests/test-lutimens.h (test_lutimens): Update test to cover
8754         non-symlinks.
8755         * tests/test-utimens.h (test_utimens): Update test to cover
8756         symlinks.
8757         * tests/test-utimens.c (main): Update caller.
8758
8759         utimens: cache whether utimensat syscall works
8760         * lib/utimens.c (utimensat_works_really): New cache variable.
8761         (fdutimens, lutimens): Use it to avoid failing syscall.
8762
8763         test-stat-time, test-utimens: improve portability
8764         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8765         ext4 on alpha, and for cygwin.
8766         * tests/test-utimens-common.h: New file.
8767         (nap): Factor delays into single function.
8768         * tests/test-lutimens.h (test_lutimens): Use new header.
8769         * tests/test-futimens.h (test_futimens): Likewise.
8770         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8771         timestamps to occur from same machine, as was done previously for
8772         test_utimens.
8773         * modules/utimens-tests (Files): Ship new file.
8774         * modules/futimens-tests (Files): Likewise.
8775         Reported in part by Jim Meyering.
8776
8777         sys_stat: sort replacement declarations
8778         * lib/sys_stat.in.h: Sort declarations.
8779         * lib/futimens.c (futimens): Fix typo.
8780
8781 2009-10-15  Jim Meyering  <meyering@redhat.com>
8782
8783         don't let environment settings perturb build
8784         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8785         could cause a configure-time and/or build-time malfunction.
8786         Typically, a configure-time function-in-library test is performed
8787         via code like this:
8788
8789           LIB_VAR=
8790           AC_SUBST([LIB_VAR])
8791           prefix_saved_LIBS=$LIBS
8792             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8793                        [test "$ac_cv_search_FUNC" = "none required" ||
8794                         LIB_VAR=$ac_cv_search_FUNC])
8795           LIBS=$prefix_saved_LIBS
8796
8797         However, in each of the files affected by this change, the LIB_VAR=
8798         initialization was omitted.  Thus, when set in the environment, its
8799         value would propagate into generated Makefiles when FUNC is not found
8800         in LIB_NAME.
8801         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8802         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8804
8805 2009-10-14  Eric Blake  <ebb9@byu.net>
8806
8807         fchdir: avoid infinite recursion in mingw
8808         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8809         recursing.
8810
8811         test-stat-time: port to mingw
8812         * tests/test-stat-time.c (force_unlink): Return a value.
8813         (test_ctime) [W32]: Fix compilation error.
8814         (nap): Don't call usleep with too large an argument.  Use
8815         force_unlink.
8816         * doc/pastposix-functions/usleep.texi (usleep): Document the
8817         portability issue.
8818
8819 2009-10-13  Jim Meyering  <meyering@redhat.com>
8820
8821         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8822         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8823         * modules/pipe-filter-ii: Likewise.
8824         * modules/sys_socket-tests: Likewise.
8825         * modules/tsearch-tests: Likewise.
8826         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8827         (check): Depend on it.
8828
8829 2009-10-12  Eric Blake  <ebb9@byu.net>
8830
8831         utimens-tests: port to NFS file systems
8832         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8833         comparisons to avoid spurious failures from timestamp drift
8834         between NFS machines.
8835
8836 2009-10-12  Eric Blake  <ebb9@byu.net>
8837
8838         stat-time-tests: minor cleanups
8839         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8840         * tests/test-stat-time.c (nap): Separate assignment from call.
8841         Suggested by Paolo Bonzini and Bruno Haible.
8842
8843         sys_stat: guarantee struct timespec
8844         * lib/sys_stat.in.h (includes): Always include <time.h>
8845         * modules/sys_stat (Depends-on): Add time.
8846         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8847         mode_t permission values.
8848         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8849         get at subsecond timestamps.
8850
8851 2009-10-10  Eric Blake  <ebb9@byu.net>
8852
8853         futimens: new module
8854         * modules/futimens: New file.
8855         * lib/futimens.c (futimens): Likewise.
8856         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8857         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8858         we can work around Linux bugs.
8859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8860         * modules/sys_stat (Makefile.am): Substitute them.
8861         * lib/sys_stat.in.h (futimens): Declare it.
8862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8863         * doc/posix-functions/futimens.texi (futimens): Likewise.
8864         * modules/futimens-tests: New test.
8865         * tests/test-futimens.c: Likewise.
8866
8867         utimens: introduce fdutimens
8868         * lib/utimens.h (fdutimens): New prototype.
8869         * lib/utimens.c (gl_futimens): Move guts...
8870         (fdutimens): ...to new interface.
8871         * tests/test-utimens.c (do_fdutimens): Use it.
8872
8873         utimens: add UTIME_NOW and UTIME_OMIT support
8874         * lib/utimens.c (validate_timespec, update_timespec): New helper
8875         functions.
8876         (gl_futimens, lutimens): Use them.
8877         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8878         stdbool, sys_stat.
8879         (Link): Mention resulting library dependency.
8880         * modules/utimecmp (Link): Likewise.
8881         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8882         (Makefile.am): Pick up library dependency.
8883         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8884         definition.
8885         * tests/test-sys_stat.c: Test the definitions.
8886         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8887         * NEWS: Document library dependency.
8888
8889         utimecmp: support symlink timestamps
8890         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8891         hashing when possible.  Use pathconf when available.
8892         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8893         * modules/utimecmp (Depends-on): Add lstat.
8894
8895         utimens: add lutimens interface
8896         * lib/utimens.c (lutimens): New function.
8897         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8898         * lib/utimens.h (lutimens): Declare new interface.
8899         * tests/test-utimens.c (main): Enhance test.
8900         * tests/test-lutimens.h (test_lutimens): New file.
8901         * modules/utimens-tests (Files): Distribute it.
8902         (Depends-on): Add symlink.
8903         (configure.ac): Check for usleep.
8904
8905         utimens: validate futimens usage
8906         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8907         fewer syscalls on failure later on.  Avoid compiler warning on
8908         mingw.
8909         * modules/utimens (Depends-on): Add dup2.
8910
8911         utimens: add test
8912         * modules/utimens-tests: New test.
8913         * tests/test-utimens.h: New file.
8914         * tests/test-futimens.h: Likewise.
8915         * tests/test-utimens.c: Likewise.
8916
8917         doc: mention timestamp portability issues
8918         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8919         instead.
8920         * doc/posix-functions/utime.texi (utime): Likewise.
8921         * doc/posix-functions/utimes.texi (utimes): Likewise.
8922         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8923         instead.
8924         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8925         module.
8926         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8927         Mention weakness with symlink timestamps.
8928         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8929         to utimensat/futimens instead.
8930         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8931
8932         test-dup2: enhance test
8933         * tests/test-dup2.c (main): Also check AT_FDCWD.
8934
8935         test-stat-time: avoid more spurious failures
8936         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8937         xfs; and avoid race if the two timestamps cross quantization edge.
8938
8939         relocatable: prefer 'file system' over 'filesystem'
8940         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8941         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8942         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8943         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8944         * lib/relocatable.c (compute_curr_prefix): Likewise.
8945
8946 2009-10-10  Jim Meyering  <meyering@redhat.com>
8947
8948         stat-time-tests: check for the usleep function
8949         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8950
8951 2009-10-10  Bruno Haible  <bruno@clisp.org>
8952
8953         * modules/xnanosleep: Put the Link section after the Include section.
8954
8955 2009-10-09  Eric Blake  <ebb9@byu.net>
8956
8957         dup2: work around FreeBSD 6.1 bug
8958         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8959         * doc/posix-functions/dup2.texi (dup2): Document it.
8960         Reported by Nelson H. F. Beebe and Jim Meyering.
8961
8962         test-stat-time: port to buggy NFS clients
8963         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8964         (test_ctime): Also skip test if mtime and ctime are skewed.
8965
8966         maint: prefer 'file system' over 'filesystem'
8967         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8968         * doc/posix-functions/lstat.texi (lstat): Likewise.
8969         * lib/file-has-acl.c (file_has_acl): Likewise.
8970         * lib/fwriteerror.c [TEST]: Likewise.
8971         * tests/test-areadlink.h (test_areadlink): Likewise.
8972         * tests/test-areadlinkat-with-size.c (main): Likewise.
8973         * tests/test-areadlinkat.c (main): Likewise.
8974         * tests/test-canonicalize-lgpl.c (main): Likewise.
8975         * tests/test-canonicalize.c (main): Likewise.
8976         * tests/test-fstatat.c (main): Likewise.
8977         * tests/test-linkat.c (main): Likewise.
8978         * tests/test-lstat.h (test_lstat_func): Likewise.
8979         * tests/test-mkdir.h (test_mkdir): Likewise.
8980         * tests/test-readlink.h (test_readlink): Likewise.
8981         * tests/test-remove.c (main): Likewise.
8982         * tests/test-rename.h (test_rename): Likewise.
8983         * tests/test-renameat.c (main): Likewise.
8984         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8985         * tests/test-symlink.h (test_symlink): Likewise.
8986         * tests/test-symlinkat.c (main): Likewise.
8987         * tests/test-unlink.h (test_unlink_func): Likewise.
8988         * tests/test-unlinkat.c (main): Likewise.
8989
8990         maint: make realtime library usage explicit
8991         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8992         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8993         * modules/settime (Link): Likewise.
8994         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8995
8996         test-stat-time: speed up execution
8997         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8998         warning on mingw.
8999         (nap): New helper function.
9000         (prepare_test): Use it to reduce sleep time.
9001         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9002         execution.
9003         * modules/stat-time-tests (configure.ac): Check for usleep.
9004
9005 2009-10-09  Jim Meyering  <meyering@redhat.com>
9006
9007         selinux-h: always use getfilecon wrappers
9008         * lib/getfilecon.c: New file.
9009         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9010         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9011         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9012         (fgetfilecon): Provide a stub.
9013         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9014         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9015         file unconditionally.
9016         When <selinux/selinux.h> is found, arrange to use wrappers.
9017         * modules/selinux-h (Files): Add getfilecon.c.
9018         (Makefile.am): Substitute include-next-related bits
9019         into the now-always-generated selinux/selinux.h file.
9020         * doc/glibc-functions/lgetfilecon.texi: New file.
9021         * doc/glibc-functions/fgetfilecon.texi: New file.
9022         * doc/glibc-functions/getfilecon.texi: New file.
9023         * doc/glibc-functions/getfilecon-desc.texi: New file.
9024         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9025         which to pull in the new files.
9026         * MODULES.html.sh (Misc): Add selinux-h.
9027
9028 2009-10-08  Jim Meyering  <meyering@redhat.com>
9029
9030         unistd: fix comment typo
9031         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9032
9033 2009-10-08  Eric Blake  <ebb9@byu.net>
9034
9035         areadlink: use SIZE_MAX consistently
9036         * modules/areadlink (Depends-on): Add stdint.
9037         * modules/areadlink-with-size (Depends-on): Likewise.
9038         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9039         gives NULL; drop sys/types, since unistd gives size_t; and add
9040         stdint for SIZE_MAX.
9041         (SIZE_MAX): Rely on headers.
9042         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9043         and add stdint.
9044         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9045         (SIZE_MAX): Likewise.
9046         (INITIAL_BUF_SIZE): Turn into enum.
9047         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9048
9049 2009-10-08  Jim Meyering  <meyering@redhat.com>
9050
9051         areadlinkat: avoid compilation failure
9052         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9053         Fix typo in comment.
9054
9055 2009-10-07  Eric Blake  <ebb9@byu.net>
9056
9057         areadlinkat-with-size: new module
9058         * modules/areadlinkat-with-size: New module.
9059         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9060         * lib/areadlink.h (areadlinkat): Declare it.
9061         * MODULES.html.sh (File system functions): Mention it.
9062         * modules/areadlinkat-with-size-tests: New test.
9063         * tests/test-areadlinkat-with-size.c: New file.
9064
9065         xreadlinkat: new module
9066         * modules/xreadlinkat: New module.
9067         * lib/xreadlinkat.c (xreadlinkat): New file.
9068         * lib/xreadlink.h (xreadlinkat): Declare it.
9069         * MODULES.html.sh (File system functions): Mention it.
9070
9071         areadlinkat: new module
9072         * lib/at-func.c (FUNC_FAIL): New define.
9073         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9074         * modules/areadlinkat: New module.
9075         * lib/linkat.c (areadlinkat): Move...
9076         * lib/areadlinkat.c (areadlinkat): ...to new file.
9077         * lib/areadlink.h (areadlinkat): Declare it.
9078         * modules/linkat (Depends-on): Add areadlinkat.
9079         * MODULES.html.sh (File system functions): Mention it.
9080         * modules/areadlinkat-tests: New test.
9081         * tests/test-areadlinkat.c: New file.
9082
9083         areadlink, areadlink-with-size: add tests
9084         * modules/areadlink-tests: New test.
9085         * modules/areadlink-with-size-tests: Likewise.
9086         * tests/test-areadlink.h: New file.
9087         * tests/test-areadlink.c: Likewise.
9088         * tests/test-areadlink-with-size.c: Likewise.
9089
9090         maint: minor cleanups
9091         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9092         _UNUSED_PARAMETER_ instead.
9093         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9094         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9095         * modules/linkat-tests (Files): Distribute test-link.h.
9096
9097         openat, utimens: whitespace cleanup
9098         * lib/openat.c: Prefer space throughout, rather than mix of 8
9099         spaces vs. tabs.
9100         * lib/at-func.c: Likewise.
9101         * lib/utimens.c: Likewise.
9102
9103         openat: avoid using wrong fd
9104         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9105         working directory chooses same fd.
9106         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9107
9108         mkdir, mkdirat: fix cygwin 1.5.x bug
9109         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9110         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9111         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9112         bug.
9113         (gl_PREREQ_MKDIR): Delete unused macro.
9114         * modules/mkdir (Files): Track file rename.
9115         (configure.ac): Update macro name.
9116         * modules/openat (Depends-on): Add mkdir.
9117         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9118
9119         mkdir, mkdirat: add tests
9120         * modules/mkdir-tests: New test.
9121         * tests/test-mkdir.h: New file.
9122         * tests/test-mkdir.c: Likewise.
9123         * tests/test-mkdirat.c: Likewise.
9124         * modules/openat-tests (Files): Add new files.
9125         (Makefile.am): Run new test.
9126
9127 2009-10-06  Eric Blake  <ebb9@byu.net>
9128
9129         doc: tweak *at function documentation
9130         * doc/posix-functions/faccessat.texi (faccessat): Mention
9131         known issue with replacement.
9132         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9133         * doc/posix-functions/linkat.texi (linkat): Likewise.
9134         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9135         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9136         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9137         * doc/posix-functions/renameat.texi (renameat): Likewise.
9138         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9139
9140         openat: fix GNU/Hurd bug in unlinkat
9141         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9142         broken.
9143         * doc/posix-functions/unlink.texi (unlink): Document this.
9144         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9145
9146         fdopendir: fix GNU/Hurd bug
9147         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9148         allowing non-directory fds.
9149         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9150         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9151         * modules/dirent (Makefile.am): Substitute it.
9152         * lib/dirent.in.h (fdopendir): Declare replacement.
9153         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9154         * tests/test-fdopendir.c (main): Test something other than
9155         /dev/null, since on Hurd that behaves like a directory.
9156
9157         test-symlink: port to GNU/Hurd
9158         * tests/test-symlink.h (test_symlink): Relax expected errno.
9159
9160         doc: tweak more cygwin information
9161         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9162         now compatible with glibc.
9163         * doc/posix-functions/getopt.texi (getopt): Likewise.
9164
9165         getopt-gnu: add another test
9166         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9167         guarantee behavior relied on by m4.
9168         * tests/test-getopt.c (main): Use it.
9169         * modules/getopt-posix-tests (Depends-on): Add setenv.
9170         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9171
9172         getopt: fix compilation on darwin
9173         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9174         include.
9175         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9176         Reported by Ludovic Courtès.
9177
9178 2009-10-06  Bruno Haible  <bruno@clisp.org>
9179
9180         * modules/size_max (Description): Discourage its use.
9181         Reported by Simon Josefsson.
9182
9183 2009-10-06  Jim Meyering  <meyering@redhat.com>
9184
9185         linkat: avoid compilation failure
9186         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9187
9188 2009-10-05  Eric Blake  <ebb9@byu.net>
9189
9190         linkat: support Linux 2.6.17
9191         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9192         linkat on Linux, but allow cache variable override.
9193         * lib/linkat.c (rpl_linkat): Define override.
9194         * modules/linkat (Depends-on): Add symlinkat.
9195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9196         * modules/unistd (Makefile.am): Substitute it.
9197         * lib/unistd.in.h (linkat): Declare replacement.
9198         Reported by Pádraig Brady.
9199
9200         quotearg: port test to systems with C.UTF-8 locale
9201         * tests/test-quotearg.c (struct result_strings): Add another
9202         member, differentiating between C.ASCII and C.UTF-8 handling.
9203         (compare_strings): Add parameter.
9204         (main): Adjust all callers.
9205
9206         getopt: avoid clash with FreeBSD _getopt_internal
9207         * lib/getopt.in.h (_getopt_internal): Override the name.
9208         * lib/getopt_int.h (includes): Pick up any overrides.
9209         Reported by Reuben Thomas.
9210
9211         hash: allow C89 compilation
9212         * lib/hash.c (check_tuning): Move declaration before statement.
9213         Reported by Reuben Thomas.
9214
9215 2009-10-05  Karl Berry  <karl@gnu.org>
9216
9217         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9218
9219 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9220             Bruno Haible  <bruno@clisp.org>
9221
9222         * lib/uname.c (uname): Use a table-driven algorithm to compute
9223         Windows NT versions.
9224
9225 2009-10-04  Bruno Haible  <bruno@clisp.org>
9226
9227         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9228         program_invocation_short_name.
9229         * modules/progname (configure.ac): Test for presence of
9230         program_invocation_short_name.
9231         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9232
9233 2009-10-04  Bruno Haible  <bruno@clisp.org>
9234
9235         * lib/progname.c (set_program_name): Fix comment.
9236         Reported by Jim Meyering.
9237
9238 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9239             Bruno Haible  <bruno@clisp.org>
9240
9241         * lib/uname.c: Include <string.h>.
9242         (uname): Do only one call to GetVersionEx in the common case.
9243
9244 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9245             Bruno Haible  <bruno@clisp.org>
9246
9247         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9248         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9249         (uname): Add support for Windows CE and various non-x86 CPU types.
9250
9251 2009-10-03  Bruno Haible  <bruno@clisp.org>
9252
9253         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9254         invocation to tests/configure.ac.
9255         Reported by Ian Beckwith <ianb@erislabs.net>.
9256
9257 2009-10-02  Eric Blake  <ebb9@byu.net>
9258
9259         fchdir: avoid compiler warning
9260         * lib/fchdir.c (canonicalize_file_name)
9261         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9262
9263         test-open: support mingw errno values
9264         * tests/test-open.h (test_open): Relax test.
9265         * tests/test-fopen.h (test_fopen): Likewise.
9266         * tests/test-openat-safer.c (main): Likewise.
9267
9268         open: fix opening directory on mingw
9269         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9270
9271         test-open: on GNU/Hurd, /dev/null is a directory
9272         * tests/test-fopen.h (main): Rename...
9273         (test_fopen): ...to this.  Use a guaranteed non-directory when
9274         confirming open behavior on trailing slash.
9275         * tests/test-openat-safer.c (main): Likewise.
9276         * tests/test-open.h (main): Likewise....
9277         (test_open): ...to this.
9278         * tests/test-fopen.c (main): Adjust caller.
9279         * tests/test-fopen-safer.c (main): Likewise.
9280         * tests/test-open.c (main): Likewise.
9281         * tests/test-fcntl-safer.c (main): Likewise.
9282         Reported by Samuel Thibault.
9283
9284         rename, fchdir: don't ignore chdir failure
9285         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9286         * lib/rename.c (rpl_rename) [W32]: Likewise.
9287         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9288         an empty destination directory if source cannot be renamed,
9289         although there is still possibility for failure.
9290         * doc/posix-functions/rename.texi (rename): Document the race.
9291         Reported by Jim Meyering.
9292
9293         maint: cleanup whitespace in recent commits
9294         * lib/rename.c (rpl_rename): Remove tabs.
9295         * tests/test-link.h (test_link): Likewise.
9296         * lib/fchdir.c (get_name): Likewise.
9297         Reported by Jim Meyering.
9298
9299 2009-10-02  Ben Pfaff  <blp@gnu.org>
9300
9301         relocatable-prog-wrapper: Add missing dependency on
9302         double-slash-root.
9303         * modules/relocatable-prog-wrapper: Add dependency.
9304         Reported by Ian Beckwith <ianb@erislabs.net>.
9305
9306 2009-10-02  Eric Blake  <ebb9@byu.net>
9307
9308         renameat: fix Solaris bugs
9309         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9310         needed fixing.
9311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9312         * modules/stdio (Makefile.am): Substitute it.
9313         * lib/stdio.in.h (renameat): Declare replacement.
9314         * lib/renameat.c (rpl_renameat): Implement fix.
9315
9316         renameat: new module
9317         * modules/renameat: New file.
9318         * lib/renameat.c (renameat): Likewise.
9319         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9321         * modules/stdio (Makefile.am): Substitute them.
9322         * lib/stdio.in.h (renameat): Declare it.
9323         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9324         * doc/posix-functions/renameat.texi (renameat): Likewise.
9325         * modules/renameat-tests: New test.
9326         * tests/test-renameat.c: Likewise.
9327
9328         rename: fix mingw bugs
9329         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9330         directory overwrite bugs.
9331
9332         rename: fix another cygwin 1.5 bug
9333         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9334         checks.
9335         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9336         unnecessary cygwin workarounds.  Also work around bug with moving
9337         full directory onto an empty one.
9338         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9339
9340         rename-dest-slash: merge into rename module
9341         * modules/rename-dest-slash (Status): Mark obsolete.
9342         (Depends-on): Add rename.
9343         (Files): Let rename do it all.
9344         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9345         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9346         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9347         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9348         * lib/rename.c (rpl_rename): Update comments.
9349
9350         rename: fix cygwin 1.5.x bugs
9351         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9352         * lib/rename.c (rpl_rename): Work around them.
9353         * modules/rename (Depends-on): Add same-inode.
9354
9355         rename: fix Solaris 10 bug
9356         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9357         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9358         was the only bug.
9359
9360         rename: fix Solaris 9 bug
9361         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9362         on non-directory.  Avoid calling exit.
9363         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9364         strdup.
9365         * modules/rename-tests (Depends-on): Drop lstat.
9366         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9367         (gl_PREREQ_RENAME): Delete unused macro.
9368
9369         rename-dest-slash: fix NetBSD bug
9370         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9371         links.
9372         * modules/rename-dest-slash (Depends-on): Add same-inode.
9373
9374         rename-tests: new test, exposes several platform bugs
9375         * modules/rename-tests: New file.
9376         * tests/test-rename.h: Likewise.
9377         * tests/test-rename.c: Likewise.
9378         * doc/posix-functions/rename.texi (rename): Improve documentation,
9379         including bugs that will eventually be fixed in gnulib.
9380
9381 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9382
9383         * lib/uname.c: Include <stdlib.h>
9384         (uname): Assume version info is available.
9385
9386 2009-10-02  Jim Meyering  <meyering@redhat.com>
9387
9388         gnu-web-doc-update: correct --help output
9389         * build-aux/gnu-web-doc-update: Make --help output relevant.
9390
9391         gnu-web-doc-update: add standard options
9392         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9393
9394         gnu-web-doc-update: New module.
9395         Use this script to automatically update the on-line web documentation
9396         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9397         * modules/gnu-web-doc-update: New file, from coreutils.
9398         * build-aux/gnu-web-doc-update: New script.
9399
9400 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9401
9402         link: LoadLibrary is not needed.
9403         * lib/link.c: Use GetModuleHandle.
9404
9405 2009-10-01  Eric Blake  <ebb9@byu.net>
9406
9407         getopt: bump serial number
9408         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9409         change.
9410
9411         tests: tighten link, rmdir, and remove tests
9412         * tests/test-link.h (includes): No need to use <config.h> here.
9413         Clean up if directory hard link was created, otherwise test for
9414         trailing '.'.
9415         * tests/test-linkat.c (main): Simplify.
9416         * tests/test-remove.c (main): Enhance test for trailing '.'.
9417         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9418
9419 2009-10-01  Jim Meyering  <meyering@redhat.com>
9420
9421         maint.mk: requiring "make major" was annoying, for a "minor" release.
9422         What is intended is "stable", to contrast with alpha and beta,
9423         so require "make stable", not "make major".
9424         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9425         (get_tool_versions): Likewise.
9426         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9427
9428 2009-09-30  Ben Pfaff  <blp@gnu.org>
9429
9430         Fix broken build of replacement for Windows tmpfile().
9431         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9432         flags argument added along with the 'mkostemp' module.
9433
9434 2009-09-28  Bruno Haible  <bruno@clisp.org>
9435
9436         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9437         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9438         to 'remove_elt'.
9439         (gl_list_remove): Update.
9440         * lib/gl_list.c (gl_list_remove): Update.
9441         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9442         to 'remove_elt'.
9443         (gl_oset_remove): Update.
9444         * lib/gl_list.c (gl_oset_remove): Update.
9445         Reported by Eric Blake.
9446
9447 2009-09-28  Eric Blake  <ebb9@byu.net>
9448
9449         doc: mention yet more cygwin 1.7 status
9450         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9451         cygwin.
9452         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9453         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9454
9455         argp: fix test failure
9456         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9457         that are not upper-case.  Pass correct range to tolower.
9458
9459 2009-09-27  Jim Meyering  <meyering@redhat.com>
9460
9461         test-yesno: work around sparc-dash here-document infelicity
9462         Without this change, the literal \177 byte in a here document
9463         would make dash 0.5.5.1-3 access uninitialized memory.
9464         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9465         Instead, use a marker, "@", and filter through tr to create the desired
9466         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9467
9468 2009-09-27  Bruno Haible  <bruno@clisp.org>
9469
9470         Disable untested support for new flavours of ACLs on AIX.
9471         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9472         progress.
9473         * lib/set-mode-acl.c (qset_acl): Likewise.
9474
9475 2008-12-07  Bruno Haible  <bruno@clisp.org>
9476
9477         Add support for new flavours of ACLs on AIX. (Untested.)
9478         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9479         (file_has_acl): Add support for newer AIX.
9480         * lib/set-mode-acl.c (qset_acl): Likewise.
9481         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9482         Rainer Tammer <tammer@tammer.net>.
9483
9484 2009-09-26  Eric Blake  <ebb9@byu.net>
9485
9486         argp: fix compilation of getopt
9487         * lib/getopt.in.h (includes): Use different guard than glibc.
9488         Reported by Sergey Poznyakoff.
9489
9490         doc: mention more cygwin 1.7 status
9491         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9492         bug.
9493         * doc/posix-functions/execl.texi (execl): Likewise.
9494         * doc/posix-functions/execle.texi (execle): Likewise.
9495         * doc/posix-functions/execlp.texi (execlp): Likewise.
9496         * doc/posix-functions/execv.texi (execv): Likewise.
9497         * doc/posix-functions/execve.texi (execve): Likewise.
9498         * doc/posix-functions/execvp.texi (execvp): Likewise.
9499         * doc/glibc-functions/canonicalize_file_name.texi
9500         (canonicalize_file_name): Cygwin 1.7 now provides this.
9501         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9502         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9503         on AT_SYMLINK_NOFOLLOW.
9504
9505 2009-09-24  Eric Blake  <ebb9@byu.net>
9506
9507         test-linkat: make test more robust
9508         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9509
9510         getopt: fix inclusion guards for cygwin
9511         * modules/getopt-posix (Depends-on): Add include-next.
9512         (Makefile.am): Substitute more items in replacement header.
9513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9514         <getopt.h>.
9515         * lib/getopt.in.h (includes): Use split inclusion guard, and
9516         prefer <getopt.h> over include <unistd.h> when one is present.
9517         (option): Also override name of 'struct option'.
9518
9519         same-inode: revert prior change; it is not yet ready
9520         * NEWS: Undo mention of this change.
9521         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9522         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9523         * lib/cycle-check.c (cycle_check): Likewise.
9524         * lib/same.c (same_name): Likewise.
9525         * lib/at-func2.c (at_func2): Likewise.
9526
9527 2009-09-23  Eric Blake  <ebb9@byu.net>
9528
9529         linkat: new module
9530         * modules/linkat: New file.
9531         * lib/at-func2.c (at_func2): Likewise.
9532         * lib/linkat.c (linkat): Likewise.
9533         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9534         * lib/openat-priv.h (at_func2): Add declaration.
9535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9536         * modules/unistd (Makefile.am): Substitute them.
9537         * lib/unistd.in.h (linkat): Declare it.
9538         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9539         * doc/posix-functions/linkat.texi (linkat): Likewise.
9540         * doc/posix-functions/link.texi (link): Tweak wording.
9541         * tests/test-link.c (main): Move guts...
9542         * tests/test-link.h (test_link): ...into new file.
9543         * modules/linkat-tests: New test.
9544         * tests/test-linkat.c: Likewise.
9545         * modules/link-tests (Files): Ship new file.
9546         (Depends-on): Add stdbool.
9547
9548         dirname: add library-safe mdir_name
9549         * lib/dirname.h (mdir_name): New prototype.
9550         * lib/dirname.c (dir_name): Move guts...
9551         (mdir_name): ...to new function that avoids xalloc_die.
9552
9553         fchdir: another mingw fix
9554         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9555         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9556         on mingw (where it has not yet been ported), and make it optional
9557         elsewhere.
9558         (_gl_register_fd): Use it.
9559
9560         same-inode: make SAME_INODE tri-state, to port to mingw
9561         * NEWS: Mention this change.
9562         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9563         st_ino always being 0.
9564         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9565         * lib/cycle-check.c (cycle_check): Likewise.
9566         * lib/same.c (same_name): Likewise.
9567
9568         lstat: avoid mingw compilation error
9569         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9570         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9571         lstat ourselves.
9572         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9573         was adequate.
9574         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9575         the checks for lstat.
9576         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9577
9578         link: fix test failure on Solaris 9
9579         * lib/link.c (rpl_link): Don't assume link will catch bogus
9580         trailing slash on source.
9581
9582         test-symlinkat: enhance test
9583         * tests/test-readlink.c (main): Move guts...
9584         * tests/test-readlink.h (test_readlink): ...into new file.
9585         * tests/test-symlink.c (main): Move guts...
9586         * tests/test-symlink.h (test_symlink): ...into new file.
9587         * tests/test-symlinkat.c (main): Use new files for further
9588         coverage.
9589         (do_symlink, do_readlink): New helper functions.
9590         * modules/symlink-tests (Files): Ship new file.
9591         (Depends-on): Add stdbool.
9592         * modules/readlink-tests (Files): Ship new file.
9593         (Depends-on): Add stdbool.
9594         * modules/symlinkat-tests (Files): Use new files.
9595
9596 2009-09-23  Eric Blake  <ebb9@byu.net>
9597
9598         readlink: document portability issue with symlink length
9599         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9600         systems have bogus st_size on symlinks, and mention the
9601         areadlink-with-size module.
9602         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9603         * doc/posix-functions/readlink.texi (readlink): Mention the
9604         areadlink module, and ERANGE failure.
9605         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9606         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9607
9608         readlink: fix Solaris 9 bug with trailing slash
9609         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9610         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9611         * doc/posix-functions/readlink.texi (readlink): Document this.
9612         * modules/readlink-tests: New test.
9613         * tests/test-readlink.c: Likewise.
9614
9615         readlink: fix cygwin 1.5.x bug with return type
9616         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9617         * lib/unistd.in.h (readlink): Use ssize_t.
9618         * lib/readlink.c (readlink): Likewise.
9619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9620         * modules/unistd (Makefile.am): Substitute it.
9621         * lib/unistd.in.h (readlink): Declare replacement.
9622         * doc/posix-functions/readlink.texi (readlink): Document this.
9623
9624         symlink: use throughout gnulib
9625         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9626         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9627         symlink is not used.
9628         * modules/symlinkat (Depends-on): Add symlink.
9629         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9630         * modules/canonicalize-tests (Depends-on): Likewise.
9631         * modules/lstat-tests (Depends-on): Likewise.
9632         * modules/openat-tests (Depends-on): Likewise.
9633         * modules/remove-tests (Depends-on): Likewise.
9634         * modules/rmdir-tests (Depends-on): Likewise.
9635         * modules/unlink-tests (Depends-on): Likewise.
9636         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9637         * tests/test-canonicalize.c (symlink): Likewise.
9638         * tests/test-fstatat.c (symlink): Likewise.
9639         * tests/test-lstat.c (symlink): Likewise.
9640         * tests/test-remove.c (symlink): Likewise.
9641         * tests/test-rmdir.c (symlink): Likewise.
9642         * tests/test-unlink.c (symlink): Likewise.
9643         * tests/test-unlinkat.c (symlink): Likewise.
9644
9645         symlink: new module, for Solaris 9 bug
9646         * modules/symlink: New file.
9647         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9648         * lib/symlink.c: Likewise.
9649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9650         * modules/unistd (Makefile.am): Substitute them.
9651         * lib/unistd.in.h (symlink): Declare replacement.
9652         * MODULES.html.sh (File system functions): Mention it.
9653         * doc/posix-functions/symlink.texi (symlink): Likewise.
9654         * modules/symlink-tests: New test.
9655         * tests/test-symlink.c: Likewise.
9656
9657 2009-09-23  Bruno Haible  <bruno@clisp.org>
9658
9659         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9660         when needed.
9661         Test case: gnulib-tool --import --with-tests atexit inttypes.
9662         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9663
9664 2009-09-23  Bruno Haible  <bruno@clisp.org>
9665
9666         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9667         subcommand, not in a subshell.
9668
9669 2009-09-22  Eric Blake  <ebb9@byu.net>
9670
9671         unistd: sort replacement declarations
9672         * lib/unistd.in.h: Sort declarations.
9673
9674         open, openat: minor optimization
9675         * lib/open.c (open): If open succeeded, len is non-zero.
9676         * lib/openat.c (rpl_openat): Likewise.
9677
9678         link-follow: ensure correct result
9679         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9680         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9681         distinguish between possible failures.
9682
9683 2009-09-21  Eric Blake  <ebb9@byu.net>
9684
9685         fts: avoid compiler warning
9686         * lib/fts.c (dirent_inode_sort_may_be_useful)
9687         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9688
9689 2009-09-19  Bruno Haible  <bruno@clisp.org>
9690
9691         * lib/progreloc.c (canonicalize_file_name): New declaration.
9692
9693 2009-09-19  Eric Blake  <ebb9@byu.net>
9694
9695         link: fix quoting
9696         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9697
9698         openat: fix openat bugs on Solaris 9
9699         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9700         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9701         * modules/openat (Depends-on): Add open.
9702         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9703         * modules/fcntl-h (Makefile.am): Substitute it.
9704         * lib/fcntl.in.h (openat): Declare replacement.
9705         * doc/posix-functions/openat.texi (openat): Document this.
9706
9707         openat: move fstatat and unlinkat into correct files
9708         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9709         compiled.
9710         * lib/openat.c (fstatat, unlinkat): Move...
9711         * lib/fstatat.c (fstatat): ...into correct files.
9712         * lib/unlinkat.c (unlinkat): Likewise.
9713
9714         openat: fix unlinkat bugs on Solaris 9
9715         * lib/unlinkat.c (unlinkat): New file.
9716         * modules/openat (Depends-on): Add unlink.
9717         (Files): Distribute it.
9718         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9719         trailing slash behavior is broken.
9720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9721         * modules/unistd (Makefile.am): Substitute it.
9722         * lib/unistd.in.h (unlinkat): Declare replacement.
9723         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9724
9725         openat: fix fstatat bugs on Solaris 9
9726         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9727         stat.
9728         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9729
9730         test-unlinkat: enhance test, to expose Solaris 9 bug
9731         * tests/test-unlink.c (main): Factor guts...
9732         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9733         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9734         * tests/test-rmdir.c (main): Adjust caller.
9735         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9736         (unlinker): New helper function.
9737         (rmdirat): Enhance check.
9738         * modules/rmdir-tests (Depends-on): Add stdbool.
9739         * modules/unlink-tests (Depends-on): Likewise.
9740         (Files): Add test-unlink.h.
9741         * modules/openat-tests (Files): Likewise.
9742         (Depends-on): Add unlinkdir.
9743
9744         test-fstatat: new test, to expose Solaris 9 bugs
9745         * tests/test-stat.c (main): Factor guts...
9746         * tests/test-stat.h (test_stat_func): ...into new file.
9747         * tests/test-lstat.c (main): Factor guts...
9748         * tests/test-lstat.h (test_lstat_func): ...into new file.
9749         * tests/test-fstatat.c: New file.
9750         * modules/stat-tests (Files): Add test-stat.h.
9751         * modules/lstat-tests (Files): Add test-lstat.h.
9752         (Depends-on): Add stdbool.
9753         * modules/openat-tests (Depends-on): Add pathmax.
9754         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9755         (Makefile.am): Run new test.
9756
9757         remove: new module, for mingw and Solaris 9 bugs
9758         * modules/remove: New file.
9759         * lib/remove.c: Likewise.
9760         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9762         * modules/stdio (Makefile.am): Use them.
9763         * lib/stdio.in.h (remove): Declare replacement.
9764         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9765         * doc/posix-functions/remove.texi (remove): Likewise.
9766         * modules/remove-tests: New test.
9767         * tests/test-remove.c: Likewise.
9768
9769         unlink: new module, for Solaris 9 bug
9770         * modules/unlink: New file.
9771         * lib/unlink.c: Likewise.
9772         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9774         * modules/unistd (Makefile.am): Use them.
9775         * lib/unistd.in.h (stat): Declare replacement.
9776         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9777         * doc/posix-functions/unlink.texi (unlink): Likewise.
9778         * modules/unlink-tests: New test.
9779         * tests/test-unlink.c: Likewise.
9780
9781         lstat: fix Solaris 9 bug
9782         * lib/lstat.c (lstat): Also check for trailing slash on
9783         non-symlink, non-directories.  Use stat module to simplify logic.
9784         * doc/posix-functions/lstat.texi (lstat): Document it.
9785         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9786         (configure.ac): Check for symlink.
9787         * tests/test-lstat.c (main): Add more tests.
9788
9789         stat: add as dependency to other modules
9790         * modules/chown (Depends-on): Add stat.
9791         * modules/euidaccess (Depends-on): Likewise.
9792         * modules/fchdir (Depends-on): Likewise.
9793         * modules/isdir (Depends-on): Likewise.
9794         * modules/link (Depends-on): Likewise.
9795         * modules/lstat (Depends-on): Likewise.
9796         * modules/mkdir-p (Depends-on): Likewise.
9797         * modules/modechange (Depends-on): Likewise.
9798         * modules/open (Depends-on): Likewise.
9799         * modules/readlink (Depends-on): Likewise.
9800         * modules/same (Depends-on): Likewise.
9801
9802         stat: fix Solaris 9 bug
9803         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9804         slash.
9805         * lib/stat.c (rpl_stat): Work around it.
9806         * doc/posix-functions/stat.texi (stat): Update documentation.
9807
9808         stat: new module, for mingw bug
9809         * modules/stat: New file.
9810         * lib/stat.c: Likewise.
9811         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9813         * modules/sys_stat (Makefile.am): Use them.
9814         * lib/sys_stat.in.h (stat): Declare replacement.
9815         * lib/openat.c (fstatat): Deal with lstat and stat being function
9816         macros.
9817         * modules/openat (Depends-on): Add inline.
9818         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9819         * doc/posix-functions/stat.texi (stat): Likewise.
9820         * modules/stat-tests: New test.
9821         * tests/test-stat.c: Likewise.
9822
9823 2009-09-19  Jim Meyering  <meyering@redhat.com>
9824
9825         syntax-check: detect unnecessary inclusion of canonicalize.h
9826         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9827
9828 2009-09-19  Eric Blake  <ebb9@byu.net>
9829
9830         canonicalize-lgpl: adjust clients to use correct header
9831         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9832         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9833         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9834         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9835         * lib/progreloc.c (includes): Likewise.
9836
9837 2009-09-19  Jim Meyering  <meyering@redhat.com>
9838
9839         test-posixtm.c: correct a comment
9840         * tests/test-posixtm.c: Correct first-line comment.
9841         Spotted by Eric Blake.
9842
9843 2009-09-16  Jim Meyering  <meyering@redhat.com>
9844
9845         posixtm-tests: make T const-correct; add a test case
9846         * tests/test-posixtm.c (T): Declare const.
9847         Add a test for -(2^31+1).
9848         Remove useless can-succeed-only-in-2002 test.
9849
9850         posixtm-tests: adjust the sole failing test
9851         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9852         expected output matches what mktime now produces.  Cross-checked via
9853         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9854
9855         posixtm: move #ifdef'd tests into a new module
9856         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9857         * tests/test-posixtm.c: ... this new file.
9858         * modules/posixtm-tests: New module.
9859
9860 2009-09-19  Eric Blake  <ebb9@byu.net>
9861
9862         openat: simplify use of at-func.c
9863         * lib/at-func.c (includes): Include prerequisites here, to
9864         simplify requirements on client files.
9865         * lib/openat-priv.h: Add double-inclusion guard.
9866         * lib/faccessat.c (includes): Simplify.
9867         * lib/fchmodat.c (includes): Likewise.
9868         * lib/fchownat.c (includes): Likewise.
9869         * lib/mkdirat.c (includes): Likewise.
9870         * lib/mkfifoat.c (includes): Likewise.
9871         * lib/symlinkat.c (includes): Likewise.
9872
9873         openat: allow return of fd 0
9874         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9875         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9876         unistd-safer.
9877         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9878         <fcntl.h>; this module does not leak fds.
9879         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9880         must be allowed to return 0, leaving openat_safer to add the
9881         safety.
9882         (openat_permissive): Avoid writing to just-opened fd 2 if
9883         restoring the current directory fails.
9884         * lib/openat-die.c (openat_restore_fail): Add comment.
9885         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9886         (save_cwd): Guarantee safe fd, but without use of open_safer.
9887         * tests/test-openat.c: New test.
9888         * modules/openat-tests (Files, Makefile.am): Distribute and build
9889         new file.
9890
9891         relocatable-prog-wrapper: fix build
9892         * modules/relocatable-prog-wrapper (Files): Update name of
9893         canonicalize m4 file, broken on 2009-09-17.
9894         Reported by emad hajjar <aleppos@hotmail.com>.
9895
9896 2009-09-19  Bruno Haible  <bruno@clisp.org>
9897
9898         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9899         * lib/safe-alloc.c: Likewise.
9900         Reported by Ian Beckwith <ianb@erislabs.net>.
9901
9902 2009-09-18  Bruno Haible  <bruno@clisp.org>
9903
9904         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9905         Reported by <erobles@sensacd.com.mx>.
9906
9907 2009-09-17  Eric Blake  <ebb9@byu.net>
9908
9909         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9910         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9911         slashes when checking if last component is missing.
9912         * tests/test-canonicalize.c (main): Test this.
9913
9914         canonicalize, canonicalize-lgpl: honor // if distinct from /
9915         * modules/canonicalize (Files): Add double-slash-root.m4.
9916         * modules/canonicalize-lgpl (Files): Likewise.
9917         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9918         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9919         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9920         fallback definition.
9921         (canonicalize_filename_mode): Use it to protect //.
9922         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9923         (__realpath): Likewise.
9924         * tests/test-canonicalize.c (main): Test this.
9925         * tests/test-canonicalize-lgpl.c (main): Likewise.
9926         * modules/canonicalize-tests (Depends-on): Add same-inode.
9927         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9928
9929         canonicalize-lgpl: fix glibc bug with trailing slash
9930         * m4/canonicalize-lgpl.m4: Move contents...
9931         * m4/canonicalize.m4: ...here.
9932         (gl_CANONICALIZE_LGPL): Factor realpath check...
9933         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9934         glibc 2.3.5 bug, fixed 2005-04-27.
9935         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9936         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9937         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9938         * modules/canonicalize-lgpl (Files): Manage file rename.
9939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9940         * modules/stdlib (Makefile.am): Substitute witness.
9941         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9942         is needed.
9943         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9944         replacement is required.
9945         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9946         * doc/glibc-functions/canonicalize_file_name.texi
9947         (canonicalize_file_name): Document this.
9948         * doc/posix-functions/realpath.texi (realpath): Likewise.
9949
9950         canonicalize-lgpl: reject non-directory with trailing slash
9951         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9952         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9953         catches failures in glibc 2.3.5.
9954         * tests/test-canonicalize.c (main): Likewise.
9955
9956         canonicalize-lgpl: use native realpath if it works
9957         * lib/canonicalize-lgpl.c (realpath): Guard with
9958         FUNC_REALPATH_WORKS.
9959         * lib/stdlib.in.h (realpath): Make declaration optional based on
9960         HAVE_REALPATH.
9961         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9962         native realpath works.
9963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9964         * modules/stdlib (Makefile.am): Substitute witness.
9965
9966         canonicalize, canonicalize-lgpl: use <stdlib.h>
9967         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9968         (Include): Mention <stdlib.h>.
9969         (configure.ac): Mention functions we provide.
9970         * modules/canonicalize (configure.ac): Likewise.
9971         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9972         realpath if canonicalize_file_name is missing.
9973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9974         * modules/stdlib (Makefile.am): Substitute witnesses.
9975         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9976         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9977         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9978         * NEWS: Document this.
9979         * doc/glibc-functions/canonicalize_file_name.texi
9980         (canonicalize_file_name): Likewise.
9981         * doc/posix-functions/realpath.texi (realpath): Likewise.
9982         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9983
9984         test-canonicalize: consolidate into single C program
9985         * tests/test-canonicalize.sh: Delete; move setup into...
9986         * tests/test-canonicalize.c (main): ...the program, making it
9987         easier to run in debugger.  Add some tests.
9988         * modules/canonicalize-tests (Files): Remove unused file.
9989         (Depends-on): Add progname.
9990         (configure.ac, Makefile.am): Simplify.
9991
9992         test-canonicalize-lgpl: consolidate into single C program
9993         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9994         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9995         easier to run in debugger.  Add some tests.
9996         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9997         (configure.ac, Makefile.am): Simplify.
9998
9999         canonicalize: avoid resolvepath
10000         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10001         unnecessary checks.
10002         * lib/canonicalize.c (includes): Simplify.
10003         (canonicalize_file_name): Drop resolvepath implementation.
10004         * modules/canonicalize (Depends-on): Drop filenamecat.
10005
10006         canonicalize: don't lose errno
10007         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10008         over calls to free.
10009
10010         canonicalize: simplify errno handling
10011         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10012         assignment.
10013
10014         canonicalize, canonicalize-lgpl: update module dependencies
10015         * modules/canonicalize (Depends-on): Add extensions, lstat,
10016         pathmax, stdlib.
10017         (Files): Drop pathmax.h.
10018         (configure.ac): Adjust macro name.
10019         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10020         lstat, stdlib, sys_stat.
10021         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10022         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10023         extensions.
10024         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10025         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10026         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10027         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10028         declaration, if available.
10029         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10030         we can rely on the readlink module.
10031         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10032         (includes): Use <unistd.h> unconditionally.
10033
10034 2009-09-17  Eric Blake  <ebb9@byu.net>
10035
10036         maint: make Include sections of modules consistent
10037         * modules/alloca: Use only header name; no need to list #include.
10038         * modules/alloca-opt: Likewise.
10039         * modules/arpa_inet: Likewise.
10040         * modules/canon-host: Likewise.
10041         * modules/configmake: Likewise.
10042         * modules/dirent: Likewise.
10043         * modules/eealloc: Likewise.
10044         * modules/environ: Likewise.
10045         * modules/fchdir: Likewise.
10046         * modules/fcntl: Likewise.
10047         * modules/fcntl-h: Likewise.
10048         * modules/gethrxtime: Likewise.
10049         * modules/gettime: Likewise.
10050         * modules/ignore-value: Likewise.
10051         * modules/inet_ntop: Likewise.
10052         * modules/inet_pton: Likewise.
10053         * modules/inttypes: Likewise.
10054         * modules/isnand-nolibm: Likewise.
10055         * modules/isnanf-nolibm: Likewise.
10056         * modules/mbchar: Likewise.
10057         * modules/mbfile: Likewise.
10058         * modules/mbiter: Likewise.
10059         * modules/mbuiter: Likewise.
10060         * modules/netdb: Likewise.
10061         * modules/netinet_in: Likewise.
10062         * modules/nproc: Likewise.
10063         * modules/pagealign_alloc: Likewise.
10064         * modules/poll: Likewise.
10065         * modules/printf-frexp: Likewise.
10066         * modules/pthread: Likewise.
10067         * modules/putenv: Likewise.
10068         * modules/random_r: Likewise.
10069         * modules/relocatable-prog: Likewise.
10070         * modules/search: Likewise.
10071         * modules/select: Likewise.
10072         * modules/selinux-h: Likewise.
10073         * modules/settime: Likewise.
10074         * modules/signal: Likewise.
10075         * modules/size_max: Likewise.
10076         * modules/socklen: Likewise.
10077         * modules/ssize_t: Likewise.
10078         * modules/stdarg: Likewise.
10079         * modules/stdbool: Likewise.
10080         * modules/stddef: Likewise.
10081         * modules/stdint: Likewise.
10082         * modules/stdio: Likewise.
10083         * modules/stdlib: Likewise.
10084         * modules/string: Likewise.
10085         * modules/strings: Likewise.
10086         * modules/sys_file: Likewise.
10087         * modules/sys_ioctl: Likewise.
10088         * modules/sys_select: Likewise.
10089         * modules/sys_socket: Likewise.
10090         * modules/sys_stat: Likewise.
10091         * modules/sys_time: Likewise.
10092         * modules/sys_times: Likewise.
10093         * modules/sys_utsname: Likewise.
10094         * modules/sys_wait: Likewise.
10095         * modules/sysexits: Likewise.
10096         * modules/time: Likewise.
10097         * modules/times: Likewise.
10098         * modules/tmpfile: Likewise.
10099         * modules/trim: Likewise.
10100         * modules/unistd: Likewise.
10101         * modules/wchar: Likewise.
10102         * modules/wctype: Likewise.
10103
10104 2009-09-17  Bruno Haible  <bruno@clisp.org>
10105
10106         Make getdate.y compile on QNX and NetBSD 5 / i386.
10107         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10108         TIME_T_FITS_IN_LONG_INT.
10109         * lib/getdate.y (long_time_t): New type.
10110         (relative_time): Change type of 'seconds' field to long_time_t.
10111         (get_date): Update types of local variables. Check against overflow
10112         during conversion from long_time_t to time_t.
10113         Reported by Matt Kraai <kraai@ftbfs.org>
10114         and Hasso Tepper <hasso@netbsd.org>.
10115
10116 2009-09-17  Bruno Haible  <bruno@clisp.org>
10117
10118         * modules/COPYING: Update copyright years.
10119         * modules/README: Likeiwse.
10120         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10121         Reported by Ian Beckwith <ianb@erislabs.net>.
10122
10123 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10124
10125         * users.txt: Update references for gnuit package.
10126
10127 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10128
10129         * m4/getdelim.m4: Fix typo in copyright line.
10130
10131 2009-09-17  Bruno Haible  <bruno@clisp.org>
10132
10133         * lib/atoll.c: Use the standard header with GPL copyright.
10134         * lib/argz.in.h: Likewise.
10135         * lib/glob.c: Likewise.
10136         * lib/glob-libc.h: Likewise.
10137         * lib/random_r.c: Likewise.
10138         * lib/siglist.h: Likewise.
10139         * lib/strsignal.c: Likewise.
10140         Reported by Ian Beckwith <ianb@erislabs.net>.
10141
10142 2009-09-17  Eric Blake  <ebb9@byu.net>
10143
10144         rmdir: ensure correct dependency order
10145         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10146
10147 2009-09-17  Bruno Haible  <bruno@clisp.org>
10148
10149         Disable assertion that fails on NetBSD 5 / i386.
10150         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10151         Reported by Sam Steingold <sds@gnu.org>
10152         and Hasso Tepper <hasso@netbsd.org>.
10153
10154 2009-09-16  Eric Blake  <ebb9@byu.net>
10155
10156         unlinkdir: port to mingw
10157         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10158         on which no one can unlink a directory.
10159
10160         stdlib: sort witness names
10161         * modules/stdlib (Makefile.am): Sort replacements.
10162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10163         * lib/stdlib.in.h: Likewise.
10164
10165         parse-duration-tests: avoid link failure
10166         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10167         LIBINTL.
10168         Reported by Tom G. Christensen.
10169
10170         openat-tests: ensure unlinkat behaves like rmdir
10171         * tests/test-rmdir.c (main): Factor guts...
10172         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10173         * modules/rmdir-tests (Files): Ship new file.
10174         * modules/openat-tests: New test.
10175         * tests/test-unlinkat.c: Likewise.
10176
10177         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10178         * modules/rmdir-errno (Status, Notice): Now obsolete.
10179
10180         rmdir: work around cygwin 1.5.x and mingw bugs
10181         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10182         * lib/rmdir.c (rmdir): Work around it.
10183         * modules/rmdir (Status, Notice): No longer obsolete.
10184         (Files): Add dos.m4.
10185         (Depends-on): Add unistd.
10186         (configure.ac): Set witnesses.
10187         (License): Relax to LGPLv2+.
10188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10189         * modules/unistd (Makefile.am): Substitute witnesses.
10190         * lib/unistd.in.h (rmdir): Declare replacement.
10191         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10192         * modules/rmdir-tests: New tests.
10193         * tests/test-rmdir.c: Likewise.
10194
10195 2009-09-15  Eric Blake  <ebb9@byu.net>
10196
10197         fchdir: improve use of replacement functions
10198         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10200         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10201         REPLACE_CLOSEDIR.
10202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10203         * modules/sys_stat (Makefile.am): Substitute correct witness.
10204         * modules/dirent (Makefile.am): Likewise.
10205         * modules/unistd (Makefile.am): Likewise.
10206         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10207         * lib/unistd.in.h (dup): Likewise.
10208         * lib/sys_stat.in.h (fstat): Likewise.
10209
10210         maint: ignore gnulib-tool temp files
10211         * .gitignore: Ignore files created during gnulib-tool --test.
10212
10213 2009-09-13  Jim Meyering  <meyering@redhat.com>
10214
10215         posixtm: don't reject a time that specify "60" as the number of seconds
10216         * lib/posixtm.c (posixtime): The code to reject invalid dates
10217         would also reject a time specified with the .60 suffix.
10218         But POSIX allows that, in order to accommodate leap seconds.
10219         So don't reject it.
10220         (main): Adjust tests accordingly.
10221         * modules/posixtm (Depends-on): Add stpcpy.
10222
10223 2009-09-11  Jim Meyering  <meyering@redhat.com>
10224
10225         announce-gen: include [$release_type] in emitted Subject:
10226         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10227         e.g., [stable] in the emitted Subject: line.
10228
10229 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10230
10231         Remove obsolete macros from several modules.
10232         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10233         obsolete Autoconf macros with their modern counterparts.
10234         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10235         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10236         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10237         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10238         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10239         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10241         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10242         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10243         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10244         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10245         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10246         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10247         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10248         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10249         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10250         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10251         * m4/time_r.m4 (gl_TIME_R): Likewise.
10252         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10253         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10254         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10255
10256         Fix copyright header in build-aux scripts.
10257         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10258         recommendation.
10259         * build-aux/ncftpput-ftp: Likewise.
10260         * build-aux/update-copyright: Likewise.
10261
10262 2009-09-09  Eric Blake  <ebb9@byu.net>
10263
10264         test-link: allow Linux choice of errno
10265         * tests/test-link.c (main): Relax test for alternate error.
10266
10267         strndup: fix improper m4 caching
10268         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10269         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10270         (gl_PREREQ_STRNDUP): Delete.
10271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10272         * modules/string (Makefile.am): Substitute it.
10273         * lib/string.in.h (strndup): Modernize prototype.
10274
10275         getcwd: port to mingw
10276         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10277         different from the POSIX assumptions made throughout the getcwd
10278         module; fortunately, the mingw getcwd does not need replacement.
10279         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10280         * modules/getcwd-tests: New test.
10281         * tests/test-getcwd.c: Likewise.
10282
10283         link: fix platform bugs
10284         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10285         * lib/link.c (link): Work around them.  Fix related mingw bug.
10286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10287         * modules/unistd (Makefile.am): Substitute it.
10288         * lib/unistd.in.h (link): Declare replacement.
10289         * doc/posix-functions/link.texi (link): Document this.
10290         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10291
10292         test-link: consolidate into single C program, test more cases
10293         * tests/test-link.sh: Delete.
10294         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10295         at least Cygwin and Solaris.
10296         * modules/link-tests (Files): Remove unused file.
10297         (Depends-on): Add errno, sys_stat.
10298         (Makefile.am): Simplify.
10299
10300 2009-09-08  Bruno Haible  <bruno@clisp.org>
10301
10302         Work around towlower, towupper bug on mingw.
10303         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10304         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10305         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10306         * doc/posix-functions/towupper.texi: Likewise.
10307         Reported by Eric Blake.
10308
10309 2009-09-08  Jim Meyering  <meyering@redhat.com>
10310
10311         build: don't try to run autoheader if we don't use it
10312         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10313         is not used in configure.ac.
10314
10315 2009-09-08  Eric Blake  <ebb9@byu.net>
10316
10317         euidaccess: fix compilation error
10318         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10319
10320         rawmemchr: relax license
10321         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10322         okay.
10323         Reported by Jim Meyering.
10324
10325         mkfifoat: new module
10326         * modules/mkfifoat: New file.
10327         * lib/mkfifoat.c: Likewise.
10328         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10330         * modules/sys_stat (Makefile.am): Use them.
10331         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10332         * MODULES.html.sh (File system functions): Mention module.
10333         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10334         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10335         * modules/mkfifoat-tests: New test.
10336         * tests/test-mkfifoat.c: Likewise.
10337
10338         strchrnul: relax license
10339         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10340         okay.
10341         Reported by Jim Meyering.
10342
10343 2009-09-08  Eric Blake  <ebb9@byu.net>
10344
10345         fstatat: fix compilation on Solaris
10346         * lib/fstatat.c (includes): Add fcntl.h.
10347         Reported by Pádraig Brady.
10348
10349 2009-09-07  Eric Blake  <ebb9@byu.net>
10350
10351         rename: modernize replacement
10352         * modules/rename (Depends-on): Add stdio.
10353         (configure.ac): Declare witness.
10354         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10355         stdio take care of replacement.
10356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10357         * modules/stdio (Makefile.am): Substitute them.
10358         * lib/stdio.in.h (rename): Declare replacement.
10359         * lib/rename.c (includes): Allow cross-compilation to non-windows
10360         machines.
10361         * doc/posix-functions/rename.texi (rename): Improve
10362         documentation.
10363
10364         stdio: sort witness names
10365         * modules/stdio (Makefile.am): Sort replacements.
10366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10367         * lib/stdio.in.h: Likewise.
10368
10369         getcwd: minor cleanups
10370         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10371         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10372
10373         openat: provide more convenience names
10374         * modules/faccessat (configure.ac): Add C witness.
10375         * lib/unistd.in.h (readlinkat): Fix typo.
10376         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10377         convenience wrappers.
10378         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10379         wrappers in syntax checks.
10380
10381 2009-09-06  Eric Blake  <ebb9@byu.net>
10382
10383         doc: fix comments in recent patches
10384         * lib/faccessat.c: Mention correct function.
10385         * lib/fchmodat.c: Likewise.
10386         * lib/fchownat.c: Likewise.
10387         * lib/symlinkat.c: Likewise.
10388         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10389         constants.
10390
10391         faccessat, symlinkat: continue cleanup of previous patch
10392         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10393         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10394         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10396         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10397         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10398         set.
10399
10400 2009-09-06  Bruno Haible  <bruno@clisp.org>
10401
10402         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10403         (fstatat): Declare if GNULIB_FSTATAT is set.
10404         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10405         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10406         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10407         * modules/fcntl-h (Files): Remove m4/openat.m4.
10408         * modules/sys_stat (Files): Remove m4/openat.m4.
10409         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10410         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10411         * modules/unistd (Files): Remove m4/openat.m4.
10412         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10413         GNULIB_OPENAT.
10414         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10415         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10417         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10418         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10419         gl_OPENAT_DEFAULTS.
10420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10421         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10422         Don't require gl_OPENAT_DEFAULTS.
10423         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10424         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10425         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10426         (gl_OPENAT_DEFAULTS): Remove macro.
10427
10428 2009-09-06  Bruno Haible  <bruno@clisp.org>
10429
10430         * modules/openat (configure.ac): Remove unneeded witness.
10431
10432 2009-09-06  Bruno Haible  <bruno@clisp.org>
10433
10434         Set errno to ENOSYS when a function is entirely unsupported.
10435         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10436         EOPNOTSUPP.
10437         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10438         * modules/chown (Depends-on): Remove errno.
10439
10440 2009-09-06  Bruno Haible  <bruno@clisp.org>
10441
10442         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10443
10444 2009-09-06  Bruno Haible  <bruno@clisp.org>
10445
10446         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10447
10448 2009-09-06  Ben Pfaff  <blp@gnu.org>
10449             Bruno Haible  <bruno@clisp.org>
10450
10451         Work around a glibc bug in strtok_r.
10452         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10453         Undefine if UNDEFINE_STRTOK_R is set.
10454         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10456         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10457         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10458         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10459         UNDEFINE_STRTOK_R.
10460         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10461
10462 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10463
10464         exclude: minor fix
10465         * lib/exclude.c: Include wctype.h
10466
10467 2009-09-06  Akim Demaille  <demaille@gostai.com>
10468
10469         bootstrap: improve error message
10470         * build-aux/bootstrap (find_tool): Upon failure, report the list
10471         of candidates.
10472         Honor the initial value of the envvar.
10473
10474 2009-09-05  Eric Blake  <ebb9@byu.net>
10475
10476         symlinkat: new module
10477         * modules/symlinkat: New file.
10478         * lib/symlinkat.c: Likewise.
10479         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10481         * modules/unistd (Makefile.am): Use them.
10482         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10483         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10484         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10485         * MODULES.html.sh (File system functions): Mention module.
10486         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10487         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10488         * modules/symlinkat-tests: New test.
10489         * tests/test-symlinkat.c: Likewise.
10490
10491         test-openat-safer: add more checks
10492         * tests/test-openat-safer.c (main): Check more code paths.
10493
10494 2009-09-05  Jim Meyering  <meyering@redhat.com>
10495
10496         syntax-check: detect unnecessary inclusion of openat.h
10497         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10498
10499 2009-09-05  Bruno Haible  <bruno@clisp.org>
10500
10501         Support towlower, towupper.
10502         * doc/posix-functions/towlower.texi: Mention module wctype.
10503         * doc/posix-functions/towupper.texi: Likewise.
10504         * lib/wctype.in.h (towlower, towupper): New functions.
10505         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10506         (ASSERT): New macro.
10507         (e): New variable.
10508         (main): Test also towlower, towupper. Test WEOF argument.
10509         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10510
10511 2009-09-05  Bruno Haible  <bruno@clisp.org>
10512
10513         Fix conversion behaviour when the input is invalid.
10514         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10515         mark occurring in first pass of indirect conversion.
10516         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10517         input.
10518         Found by clang's static analyzer.
10519
10520 2009-09-05  Bruno Haible  <bruno@clisp.org>
10521
10522         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10523         where direct conversion is possible.
10524
10525 2009-09-04  Eric Blake  <ebb9@byu.net>
10526
10527         openat: fail with ENOENT on empty name
10528         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10529         buffer.
10530
10531         link-follow: fix logic bug in prior patch
10532         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10533         reversed sense of yes and no in prior patch.  Avoid confusing
10534         compilation failure with desired semantics.
10535
10536         link-follow: accomodate mingw and cross-compilation
10537         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10538         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10539         cross-compilation results to -1, to make linkat easier to
10540         implement when cross-compiling.  Trivially support mingw.
10541         * modules/link-follow (configure.ac): Call new name.
10542         * NEWS: Mention this.
10543
10544 2009-09-03  Eric Blake  <ebb9@byu.net>
10545
10546         faccessat: compile replacement
10547         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10548         needed.
10549
10550         fts: fix compilation error
10551         * lib/fts.c (includes): Re-add "openat.h", for
10552         openat_needs_fchdir.
10553
10554         faccessat: new module
10555         * modules/faccessat: New file.
10556         * lib/faccessat.c: Likewise.
10557         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10559         * modules/unistd (Makefile.am): Use it.
10560         * lib/unistd.in.h (faccessat): Declare it.
10561         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10562         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10563         * MODULES.html.sh (File system functions): Mention it.
10564         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10565         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10566
10567         euidaccess: prefer POSIX over non-standard implementation
10568         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10569         * lib/euidaccess.c (euidaccess): Use it if available.
10570
10571         openat: make template easier to use
10572         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10573         AT_FUNC_F2 to be undefined.
10574         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10575         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10576         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10577         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10578         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10579         Likewise.
10580         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10581         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10582         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10583         Likewise.
10584
10585         openat: declare in POSIX headers
10586         * NEWS: Mention this.
10587         * modules/openat (configure.ac): Declare witnesses.
10588         (Depends-on): Add fcntl-h, sys_stat, unistd.
10589         (Include): Mention correct headers.
10590         * modules/fcntl-h (Depends-on): Add link-warning.
10591         (Files): Add openat.m4.
10592         (Makefile.am): Substitute witnesses.
10593         * modules/sys_stat (Files, Makefile.am): Likewise.
10594         * modules/unistd (Files, Makefile.am): Likewise.
10595         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10596         (gl_OPENAT_DEFAULTS): New macro.
10597         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10599         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10600         (SYS_STAT_H): Remove unused variable.
10601         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10602         * lib/fcntl--.h (includes): Remove unneeded header.
10603         * lib/openat-safer.c (includes): Likewise.
10604         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10605         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10606         appropriate headers.
10607         (__OPENAT_PREFIX): Delete.
10608         * lib/fcntl.in.h (openat): Provide declaration.
10609         (AT_FDCWD): Fix Solaris bug.
10610         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10611         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10612         * lib/fchmodat.c (includes):  Adjust to find declaration.
10613         * lib/fchownat.c (includes): Likewise.
10614         * lib/mkdirat.c (includes): Likewise.
10615         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10616         still visible.
10617
10618 2009-09-02  Eric Blake  <ebb9@byu.net>
10619
10620         errno: use consistently
10621         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10622         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10623         * lib/canonicalize.c (ELOOP): Likewise.
10624         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10625         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10626         * lib/lchown.c (EOPNOTSUPP): Likewise.
10627         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10628         * lib/savewd.c (ESTALE): Likewise.
10629         * lib/settime.c (ENOSYS): Likewise.
10630         * lib/utimens.c (ENOSYS): Likewise.
10631         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10632         * lib/chdir-safer.c (ELOOP): Likewise.
10633         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10634         * modules/c-stack (Depends-on): Add errno.
10635         * modules/canonicalize (Depends-on): Likewise.
10636         * modules/chdir-safer (Depends-on): Likewise.
10637         * modules/fdopendir (Depends-on): Likewise.
10638         * modules/inet_ntop (Depends-on): Likewise.
10639         * modules/inet_pton (Depends-on): Likewise.
10640         * modules/lchown (Depends-on): Likewise.
10641         * modules/openat (Depends-on): Likewise.
10642         * modules/savewd (Depends-on): Likewise.
10643         * modules/settime (Depends-on): Likewise.
10644         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10645
10646         fts: avoid leaking fds
10647         * modules/fts (Depends-on): Add cloexec.
10648         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10649         flag.
10650
10651         fts: make directory fds more robust
10652         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10653         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10654
10655         backupfile, chdir-long, fts, savedir: make safer
10656         * lib/backupfile.c (includes): Use "dirent--.h", since
10657         numbered_backup can write to stderr during readdir.
10658         * lib/savedir.c (includes): Likewise.
10659         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10660         emulation can write to stderr on failure.
10661         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10662         * lib/getcwd.c: Document why opendir_safer is unused.
10663         * lib/glob.c: Likewise.
10664         * lib/scandir.c: Likewise.
10665         * lib/openat-proc.c: Likewise, for open_safer.
10666         * modules/backupfile (Depends-on): Add dirent-safer.
10667         * modules/savedir (Depends-on): Likewise.
10668         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10669         * modules/chdir-long (Depends-on): Add openat-safer.
10670
10671         openat-safer: new module
10672         * modules/openat-safer: New file.
10673         * lib/openat-safer.c: Likewise.
10674         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10675         * lib/fcntl-safer.h (openat_safer): Declare.
10676         * lib/fcntl--.h (openat): Override.
10677         * MODULES.html.sh (File descriptor based I/O): Mention it.
10678         * lib/openat.h: Add double-inclusion guards.
10679         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10680         "fcntl--.h", so we can implement openat.
10681         * modules/openat-safer-tests: New test.
10682         * tests/test-openat-safer.c: New file.
10683
10684         dirent-safer: new module
10685         * modules/dirent-safer: New file.
10686         * lib/dirent--.h: Likewise.
10687         * lib/dirent-safer.h: Likewise.
10688         * lib/opendir-safer.c: Likewise.
10689         * m4/dirent-safer.m4: Likewise.
10690         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10691         * modules/dirent-safer-tests: New test.
10692         * tests/test-dirent-safer.c: New file.
10693         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10694
10695         fdopendir: optimize on mingw
10696         * lib/unistd.in.h (_gl_directory_name): New prototype.
10697         * lib/fchdir.c (_gl_directory_name): Implement it.
10698         (fchdir): Use it to simplify implementation.
10699         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10700         fchdir, when available, to avoid calling [f]chdir().
10701
10702         fdopendir: split into its own module
10703         * lib/openat.c (fdopendir): Move...
10704         * lib/fdopendir.c: ...into new file.
10705         * modules/fdopendir: New module.
10706         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10707         * modules/openat (Depends-on): Add fdopendir.
10708         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10709         fdopendir here.
10710         * modules/savedir (Depends-on): Only need fdopendir, not full
10711         openat.
10712         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10713         * lib/openat.h (fdopendir): Drop prototype.
10714         * lib/dirent.in.h (fdopendir): Provide prototype.
10715         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10716         * modules/dirent (Makefile.am): Substitute them.
10717         * MODULES.html.sh (File system functions): Mention it.
10718         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10719         * modules/fdopendir-tests: New file.
10720         * tests/test-fdopendir.c: Likewise.
10721
10722         fchdir: use more consistent macro convention
10723         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10724         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10725         REPLACE_FCHDIR, rather than relying on config.h macros.
10726         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10727         inside a single make-time REPLACE_FCHDIR block, rather than using
10728         the config.h FCHDIR_REPLACEMENT.
10729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10730         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10731         Manage fstat replacement.
10732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10733         REPLACE_FCHDIR.
10734         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10735         (Makefile.am): Substitute REPLACE_FCHDIR.
10736         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10737         FCHDIR_REPLACEMENT.
10738         * lib/dup-safer.c (dup_safer): Likewise.
10739         * lib/dup2.c (rpl_dup2): Likewise.
10740         * lib/dup3.c (rpl_dup3): Likewise.
10741         * lib/open.c (rpl_open): Likewise.
10742
10743         fchdir: simplify error handling, and support dup3
10744         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10745         stdbool, malloc-posix, realloc-posix.
10746         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10747         (ensure_dirs_slot): Return false on allocation failure.
10748         (rpl_dup2): Delete.
10749         (_gl_register_dup): New function.
10750         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10751         (_gl_register_fd): Close fd on allocation failure.
10752         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10753         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10754         prototype.
10755         (rpl_dup2_fchdir): Delete prototype.
10756         * lib/open.c (open): Update caller.
10757         * lib/dup2.c (dup2): Track fchdir metadata.
10758         * lib/dup3.c (dup3): Likewise.
10759         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10761
10762 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10763
10764         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10765         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10766         don't pass arguments to AC_OUTPUT.
10767
10768 2009-09-02  Bruno Haible  <bruno@clisp.org>
10769
10770         * modules/mkdtemp (License): Relicense under LGPLv2+.
10771         Reported by Paolo Bonzini.
10772
10773 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10774
10775         Replace uses of obsolete autoconf macros in Jim's modules.
10776         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10777         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10778         can evoke a warning from autoconf when run with -Wobsolete
10779         enabled.  They were declared obsolete for good reasons (see
10780         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10781         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10782         should not continue using the deprecated macros.
10783         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10784         obsolete Autoconf macros with modern counterparts.
10785         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10786         * m4/dos.m4 (gl_AC_DOS): Likewise.
10787         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10788         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10789         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10790         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10791         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10792         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10793         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10794         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10795         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10796         Likewise.
10797         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10798         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10799         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10800         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10801         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10802         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10803
10804 2009-09-01  Eric Blake  <ebb9@byu.net>
10805
10806         fchdir: fix off-by-one bug in previous patch
10807         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10808         (_gl_unregister_fd): Delete useless if.
10809
10810 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10811
10812         maint.mk: sort the list of syntax-check rules
10813         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10814         easier to get a sense of progress when the rules are run sequentially
10815         and take a long time.
10816
10817 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10818
10819         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10820         * modules/netinet_in: Likewise.
10821         * modules/sys_file: Likewise.
10822         * modules/sys_ioctl: Likewise.
10823         * modules/sys_select: Likewise.
10824         * modules/sys_socket: Likewise.
10825         * modules/sys_stat: Likewise.
10826         * modules/sys_time: Likewise.
10827         * modules/sys_times: Likewise.
10828         * modules/sys_utsname: Likewise.
10829         * modules/sys_wait: Likewise.
10830
10831 2009-09-01  Jim Meyering  <meyering@redhat.com>
10832
10833         fts: help ensure that return values are not ignored
10834         * lib/fts_.h (__GNUC_PREREQ): Define.
10835         (__attribute_warn_unused_result__): Define.
10836         (fts_children, fts_close, fts_open, fts_read): Declare with
10837         __attribute_warn_unused_result__.
10838
10839         fts: fts_close now fails also when closing a dir file descriptor fails
10840         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10841         and propagate to caller, along with errno.
10842
10843         announce-gen: correct formatting in --help output
10844         * build-aux/announce-gen (usage): Move the one-line description in
10845         --help output "up", to where it belongs, just after Usage:.
10846
10847 2009-08-31  Eric Blake  <ebb9@byu.net>
10848
10849         fchdir: port to mingw
10850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10851         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10852         opened, then use a substitute.
10853         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10854         replacement.
10855         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10856         (_gl_register_fd): No need to check stat if open already filters
10857         all directories.
10858         (fchdir): Fix error condition to match POSIX.
10859         * modules/fchdir (Depends-on): Add sys_stat.
10860         * doc/posix-functions/open.texi (open): Document the limitation.
10861         * modules/fchdir-tests: New file.
10862         * tests/test-fchdir.c: Likewise.
10863
10864         canonicalize: allow cross-testing from cygwin to mingw
10865         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10866         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10867         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10868         Likewise.
10869         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10870         target does not support symlinks.
10871         * tests/test-canonicalize-lgpl.sh: Likewise.
10872
10873         chown: avoid compilation warning on mingw
10874         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10875         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10876         mingw.
10877         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10878         * modules/chown (Depends-on): Add errno.
10879
10880 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10881
10882         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10883         command.
10884
10885 2009-08-31  Jim Meyering  <meyering@redhat.com>
10886
10887         canonicalize: remove useless initialization
10888         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10889         initialization of local, "end".
10890
10891 2009-08-30  Bruno Haible  <bruno@clisp.org>
10892
10893         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10894         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10895         ENOSYS.
10896
10897 2009-08-30  Bruno Haible  <bruno@clisp.org>
10898
10899         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10900         /usr/xpg4/bin/tr when it exists.
10901         * tests/test-pipe-filter-gi1.sh: Likewise.
10902
10903 2009-08-30  Bruno Haible  <bruno@clisp.org>
10904
10905         Work around deficient /usr/bin/id program on Solaris.
10906         * tests/test-file-has-acl.sh (ID): New variable.
10907         * tests/test-set-mode-acl.sh (ID): Likewise.
10908         * tests/test-copy-acl.sh (ID): Likewise.
10909         * tests/test-copy-file.sh (ID): Likewise.
10910
10911 2009-08-30  Bruno Haible  <bruno@clisp.org>
10912
10913         New module 'xstriconveh'.
10914         * lib/xstriconveh.h: New file.
10915         * lib/xstriconveh.c: New file.
10916         * modules/xstriconveh: New file.
10917
10918 2009-08-30  Bruno Haible  <bruno@clisp.org>
10919
10920         Make it easier to use mem_cd_iconveh.
10921         * lib/striconveh.h (iconveh_t): New type.
10922         (iconveh_open, iconveh_close): New declarations.
10923         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10924         with a single 'const iconveh_t *' argument.
10925         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10926         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10927         with a single 'const iconveh_t *' argument.
10928         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10929         * tests/test-striconveh.c (main): Update.
10930         * NEWS: Mention the change.
10931
10932 2009-08-30  Bruno Haible  <bruno@clisp.org>
10933
10934         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10935         problem.
10936
10937 2009-08-30  Bruno Haible  <bruno@clisp.org>
10938
10939         Work around iconv_open problem on Solaris.
10940         * lib/iconv_open-solaris.gperf: New file.
10941         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10942         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10943         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10944         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10945         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10946         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10947
10948 2009-08-29  Jim Meyering  <meyering@redhat.com>
10949
10950         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10951         * top/maint.mk (cvs-check): Remove target; it was just an alias
10952         to the better-named vc-diff-check.
10953         (maintainer-distcheck): Remove rule.  It was used only from
10954         the (alpha/beta/major) target, and all of its commands but one
10955         were coreutils-specific.
10956         (vc-dist): Remove rule.
10957         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10958         Run vc-diff-check, not vc-dist.
10959         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10960
10961 2009-08-27  Bruno Haible  <bruno@clisp.org>
10962
10963         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10964         of 0.
10965
10966 2009-08-27  Bruno Haible  <bruno@clisp.org>
10967
10968         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10969         compilers.
10970         * doc/func.texi: Document the SunPRO C bug.
10971
10972 2009-08-27  Bruno Haible  <bruno@clisp.org>
10973
10974         Fix link error on Solaris.
10975         * tests/test-parse-duration.c (xstrdup): Remove function.
10976
10977 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10978
10979         ignore-value: handle pointer types, too
10980         * lib/ignore-value.h (__attribute__): Remove definition.
10981         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10982         of a more concise and more-often effective "(void) i" statement.
10983         (ignore_ptr): New function to suppress warnings from functions that
10984         return pointers, and to make it explicit that one function doesn't
10985         handle all cases.
10986
10987 2009-08-25  Bruno Haible  <bruno@clisp.org>
10988
10989         dup2: work around a Linux bug.
10990         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10991         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10992         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10993         Reported by Simon Josefsson.
10994
10995 2009-08-25  Jim Meyering  <meyering@redhat.com>
10996
10997         libguestfs uses gnulib
10998         * users.txt: Add libguestfs.
10999
11000 2009-08-24  Eric Blake  <ebb9@byu.net>
11001
11002         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11003         * lib/pipe2.c (includes): Add binary-io.h.
11004         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11005
11006 2009-08-24  Bruno Haible  <bruno@clisp.org>
11007
11008         Tolerate declared but missing accept4 syscall.
11009         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11010         available.
11011         * lib/sys_socket.in.h (accept4): If the function is already present,
11012         override it.
11013         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11014         * modules/accept4 (Makefile.am): Compile accept4.c always.
11015         Reported by Paolo Bonzini and Eric Blake.
11016
11017 2009-08-23  Bruno Haible  <bruno@clisp.org>
11018
11019         New module 'accept4'.
11020         * lib/sys_socket.in.h (accept4): New declaration.
11021         * lib/accept4.c: New file.
11022         * m4/accept4.m4: New file.
11023         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11024         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11025         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11026         HAVE_ACCEPT4.
11027         * modules/accept4: New file.
11028         * doc/glibc-functions/accept4.texi: Mention the new module.
11029
11030 2009-08-24  Jim Meyering  <meyering@redhat.com>
11031
11032         progname: also set global program_invocation_name, when possible
11033         Before this change, a libtool-enabled program that calls glibc's
11034         error function would report the program name as
11035         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11036         * modules/progname (configure.ac): Check for a declaration of
11037         program_invocation_name.
11038         * lib/progname.c:  Include <errno.h>.
11039         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11040         Set program_invocation_name.
11041
11042 2009-08-23  Bruno Haible  <bruno@clisp.org>
11043
11044         * lib/dup3.c: Include <string.h>.
11045
11046 2009-08-23  Bruno Haible  <bruno@clisp.org>
11047
11048         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11049         * lib/pipe2.c (pipe2): Likewise.
11050         Suggested by Eric Blake.
11051
11052 2009-08-23  Bruno Haible  <bruno@clisp.org>
11053
11054         Tolerate declared but missing dup3 syscall.
11055         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11056         * lib/unistd.in.h (dup3): If the function is already present,
11057         override it.
11058         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11059         * modules/dup3 (Makefile.am): Compile dup3.c always.
11060         Reported by Paolo Bonzini.
11061
11062 2009-08-23  Bruno Haible  <bruno@clisp.org>
11063
11064         Tolerate declared but missing pipe2 syscall.
11065         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11066         available.
11067         * lib/unistd.in.h (pipe2): If the function is already present,
11068         override it.
11069         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11070         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11071         Reported by Paolo Bonzini.
11072
11073 2009-08-23  Bruno Haible  <bruno@clisp.org>
11074
11075         * lib/pipe2.c (pipe2): Move #ifs inside function.
11076
11077 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11078
11079         quotearg: document limitations of quote_these_too
11080         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11081         those limitations are created.
11082         * lib/quotearg.h (set_char_quoting): Document that digits and
11083         letters that are special after backslash are not permitted.
11084         (quotearg_char): Cross-reference set_char_quoting documentation.
11085
11086 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11087
11088         quotearg: implement custom_quoting_style
11089         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11090         right_quote fields.
11091         (set_custom_quoting): New public function.
11092         (quotearg_buffer_restyled): Add left_quote and right_quote
11093         arguments, handle them very much like locale quoting, and update
11094         all uses.
11095         (quotearg_n_custom): New public function.
11096         (quotearg_n_custom_mem): New public function.
11097         (quotearg_custom): New public function.
11098         (quotearg_custom_mem): New public function.
11099         * lib/quotearg.h: Prototype and document new public functions.
11100         (enum quoting_style): For escape_quoting_style and
11101         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11102         ignored even though they're otherwise like c_quoting_style.
11103         Add custom_quoting_style member and document with comparison to
11104         clocale_quoting_style.
11105         * tests/test-quotearg.c (custom_quotes): New array.
11106         (custom_results): New array.
11107         (main): Extend to test custom quoting.
11108
11109 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11110
11111         quotearg: fix right quote escaping when it's in quote_these_too
11112         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11113         quote, be sure to prepend only one backslash.
11114         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11115         (main): Test it.
11116
11117 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11118
11119         quotearg-tests: test escaping of embedded locale quotes
11120         * tests/test-quotearg.c (struct result_strings): Add member for
11121         new input.
11122         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11123         (inputs): Add new input.
11124         (results_g): Add expected results.
11125         (flag_results): Likewise.
11126         (locale_results): Likewise.
11127         (compare_strings): Check those.
11128
11129 2009-08-23  Bruno Haible  <bruno@clisp.org>
11130
11131         Tests for module 'dup3'.
11132         * modules/dup3-tests: New file.
11133         * tests/test-dup3.c: New file.
11134
11135         New module 'dup3'.
11136         * lib/unistd.in.h (dup3): New declaration.
11137         * lib/dup3.c: New file.
11138         * m4/dup3.m4: New file.
11139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11140         HAVE_DUP3.
11141         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11142         * modules/dup3: New file.
11143         * doc/glibc-functions/dup3.texi: Mention the new module.
11144
11145 2009-08-23  Bruno Haible  <bruno@clisp.org>
11146
11147         Tweak the dup2 test.
11148         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11149         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11150         the test file is still empty. Fix argument order of lseek.
11151
11152 2009-08-23  Bruno Haible  <bruno@clisp.org>
11153
11154         Avoid test link errors when the modules getopt-gnu, gettext are used.
11155         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11157
11158 2009-08-23  Bruno Haible  <bruno@clisp.org>
11159
11160         Fix getdtablesize() on mingw.
11161         * lib/getdtablesize.c (getdtablesize): Implement differently.
11162         * lib/unistd.in.h (getdtablesize): Improve comment.
11163
11164 2009-08-23  Bruno Haible  <bruno@clisp.org>
11165
11166         New module 'mkostemp'.
11167         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11168         * lib/stdlib.in.h (mksotemp): New declaration.
11169         * lib/mkostemp.c: New file, from glibc with modifications.
11170         * lib/tempname.h (GT_FILE): Remove outdated comment.
11171         (gen_tempname): Add flags argument.
11172         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11173         (__GT_FILE): Map to 1.
11174         (small_open, large_open): Remove macros.
11175         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11176         * lib/mkstemp.c (mkstemp): Update.
11177         * lib/mkdtemp.c (mkdtemp): Likewise.
11178         * m4/mkostemp.m4: New file.
11179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11180         HAVE_MKOSTEMP.
11181         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11182         HAVE_MKOSTEMP.
11183         * modules/mkostemp: New file, based on modules/mkstemp.
11184         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11185         * NEWS: Mention the change.
11186
11187 2009-08-23  Bruno Haible  <bruno@clisp.org>
11188
11189         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11190         Reported by Eric Blake.
11191
11192 2009-08-23  Bruno Haible  <bruno@clisp.org>
11193
11194         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11195         Reported by Eric Blake.
11196
11197 2009-08-23  Bruno Haible  <bruno@clisp.org>
11198
11199         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11200         * modules/pipe2 (Depends-on): Likewise.
11201
11202 2009-08-23  Eric Blake  <ebb9@byu.net>
11203
11204         fcntl-h: add O_TTY_INIT support
11205         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11206         * tests/test-fcntl-h.c (o): Test it.
11207         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11208
11209         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11210         * modules/fcntl: Move <fcntl.h> header replacement...
11211         * modules/fcntl-h: ...to new name, so as not to collide with
11212         like-named function.
11213         * tests/test-fcntl.c: Rename...
11214         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11215         * modules/fcntl-tests: Rename...
11216         * modules/fcntl-h-tests: ...to this.  Update test file name.
11217         * modules/chdir-long (Depends-on): Update clients.
11218         * modules/chdir-safer (Depends-on): Likewise.
11219         * modules/fcntl-safer (Depends-on): Likewise.
11220         * modules/fts (Depends-on): Likewise.
11221         * modules/mkancesdirs (Depends-on): Likewise.
11222         * modules/mkdir-p (Depends-on): Likewise.
11223         * modules/open (Depends-on): Likewise.
11224         * modules/savewd (Depends-on): Likewise.
11225         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11226         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11227
11228 2009-08-22  Bruno Haible  <bruno@clisp.org>
11229
11230         * modules/binary-io (License): Relicense under LGPL.
11231         * modules/pipe2 (License): Likewise.
11232
11233 2009-08-22  Bruno Haible  <bruno@clisp.org>
11234
11235         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11236         return value.
11237         * lib/pipe-filter-gi.c (filter_init): Likewise.
11238         Reported by Eric Blake.
11239
11240 2009-08-22  Bruno Haible  <bruno@clisp.org>
11241
11242         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11243         * modules/pipe (Depends-on): Add pipe2.
11244
11245 2009-08-22  Bruno Haible  <bruno@clisp.org>
11246
11247         Tests for module 'pipe2'.
11248         * modules/pipe2-tests: New file.
11249         * tests/test-pipe2.c: New file.
11250
11251         New module 'pipe2'.
11252         * lib/unistd.in.h (pipe2): New declaration.
11253         * lib/pipe2.c: New file.
11254         * m4/pipe2.m4: New file.
11255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11256         HAVE_PIPE2.
11257         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11258         * modules/pipe2: New file.
11259         * doc/glibc-functions/pipe2.texi: Mention the new module.
11260
11261 2009-08-22  Bruno Haible  <bruno@clisp.org>
11262
11263         Reference some new glibc functions.
11264         * doc/glibc-functions/accept4.texi: New file.
11265         * doc/glibc-functions/dup3.texi: New file.
11266         * doc/glibc-functions/mkostemp.texi: New file.
11267         * doc/glibc-functions/pipe2.texi: New file.
11268         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11269         (Glibc sys/socket.h): Refer to accept4.
11270         (Glibc unistd.h): Refer to dup3, pipe2.
11271         Reported by Eric Blake.
11272
11273 2009-08-22  Jim Meyering  <meyering@redhat.com>
11274             Bruno Haible  <bruno@clisp.org>
11275
11276         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11277         This makes it so packages using automake-1.11's silent-rules option
11278         can print e.g., a single "GEN    configmake.h" line, rather than
11279         the 30+ statements that perform the job.  If you want to see the
11280         actual commands, you can still run "make V=1".
11281         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11282         so that make output is abbreviated when those variables are defined
11283         appropriately.
11284         * modules/argz: Likewise.
11285         * modules/arpa_inet: Likewise.
11286         * modules/byteswap: Likewise.
11287         * modules/configmake: Likewise.
11288         * modules/dirent: Likewise.
11289         * modules/errno: Likewise.
11290         * modules/fcntl: Likewise.
11291         * modules/float: Likewise.
11292         * modules/fnmatch: Likewise.
11293         * modules/getopt-posix: Likewise.
11294         * modules/glob: Likewise.
11295         * modules/iconv_open: Likewise.
11296         * modules/inttypes: Likewise.
11297         * modules/localcharset: Likewise.
11298         * modules/locale: Likewise.
11299         * modules/math: Likewise.
11300         * modules/netdb: Likewise.
11301         * modules/netinet_in: Likewise.
11302         * modules/poll: Likewise.
11303         * modules/posix_spawnp-tests: Likewise.
11304         * modules/sched: Likewise.
11305         * modules/search: Likewise.
11306         * modules/selinux-h: Likewise.
11307         * modules/signal: Likewise.
11308         * modules/spawn: Likewise.
11309         * modules/stdarg: Likewise.
11310         * modules/stdbool: Likewise.
11311         * modules/stddef: Likewise.
11312         * modules/stdint: Likewise.
11313         * modules/stdio: Likewise.
11314         * modules/stdlib: Likewise.
11315         * modules/string: Likewise.
11316         * modules/strings: Likewise.
11317         * modules/sys_file: Likewise.
11318         * modules/sys_ioctl: Likewise.
11319         * modules/sys_select: Likewise.
11320         * modules/sys_socket: Likewise.
11321         * modules/sys_stat: Likewise.
11322         * modules/sys_time: Likewise.
11323         * modules/sys_times: Likewise.
11324         * modules/sys_utsname: Likewise.
11325         * modules/sys_wait: Likewise.
11326         * modules/sysexits: Likewise.
11327         * modules/time: Likewise.
11328         * modules/unistd: Likewise.
11329         * modules/wchar: Likewise.
11330         * modules/wctype: Likewise.
11331
11332 2009-08-22  Jim Meyering  <meyering@redhat.com>
11333
11334         announce-gen: detect write failure
11335         * build-aux/announce-gen: Add Coda at end.
11336         Remove equivalent-but-more-verbose block at top.
11337
11338 2009-08-19  Akim Demaille  <demaille@gostai.com>
11339
11340         bootstrap: --help to stdout.
11341         * bootstrap (usage): Don't send --help to stderr.
11342         Use a here doc instead of a long string.
11343
11344 2009-08-21  Eric Blake  <ebb9@byu.net>
11345
11346         test-popen-safer: split from test-popen
11347         * tests/test-popen.c (main): Move...
11348         * tests/test-popen.h: ...into new file.
11349         * tests/test-popen-safer2.c: New file.
11350         * modules/popen-tests (Files): Add test-popen.h.
11351         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11352         Suggested by Bruno Haible.
11353
11354         test-fcntl-safer: split from test-open
11355         * tests/test-open.c (main): Move...
11356         * tests/test-open.h: ...into new file.
11357         * tests/test-fcntl-safer.c: New file.
11358         * modules/open-tests (Files): Add test-open.h.
11359         * modules/fcntl-safer-tests: New file.
11360         Suggested by Bruno Haible.
11361
11362         test-fopen-safer: split from test-fopen
11363         * tests/test-fopen.c (main): Move...
11364         * tests/test-fopen.h: ...into new file.
11365         * tests/test-fopen-safer.c: New file.
11366         * modules/fopen-tests (Files): Add test-fopen.h.
11367         * modules/fopen-safer-tests: New file.
11368         Suggested by Bruno Haible.
11369
11370 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11371
11372         popen-safer: test O_CLOEXEC at run-time.
11373         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11374
11375 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11376
11377         fcntl: move more flags to the header
11378         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11379         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11380         * lib/fcntl.in.h: Do both things here.
11381
11382 2009-08-21  Jim Meyering  <meyering@redhat.com>
11383
11384         consistently remove $@-t before redirecting to it
11385         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11386         * modules/alloca-opt: Likewise.
11387         * modules/byteswap: Likewise.
11388         * modules/fnmatch: Likewise.
11389         * modules/getopt-posix: Likewise.
11390         * modules/glob: Likewise.
11391         * modules/poll: Likewise.
11392         * modules/posix_spawnp-tests: Likewise.
11393         * modules/sys_socket: Likewise.
11394         * modules/sysexits: Likewise.
11395
11396 2009-08-21  Eric Blake  <ebb9@byu.net>
11397
11398         popen: simplify access to original popen
11399         * lib/popen.c (rpl_popen): No need to worry about popen being a
11400         macro.
11401         Reported by Bruno Haible.
11402
11403 2009-08-20  Eric Blake  <ebb9@byu.net>
11404
11405         build: avoid some compiler warnings
11406         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11407         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11408         type.
11409         (new_exclude_segment, excluded_file_pattern_p)
11410         (excluded_file_name_p): Reduce scope.
11411         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11412         old-style declaration.
11413
11414 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11415
11416         * tests/test-exclude1.sh: Handle Windows EOL.
11417         * tests/test-exclude2.sh: Likewise.
11418         * tests/test-exclude3.sh: Likewise.
11419         * tests/test-exclude4.sh: Likewise.
11420         * tests/test-exclude5.sh: Likewise.
11421         * tests/test-exclude6.sh: Likewise.
11422         * tests/test-exclude7.sh: Likewise.
11423
11424 2009-08-19  Akim Demaille  <demaille@gostai.com>
11425
11426         bootstrap: find sha1sum when named gsha1sum.
11427         * bootstrap (find_tool): New.
11428         ($SHA1SUM): New.
11429         Use it.
11430
11431 2009-08-20  Jim Meyering  <meyering@redhat.com>
11432
11433         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11434         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11435         expression that converts "." in a file name to "\." in the resulting
11436         regexp.  Start with a dummy statement, so that prior shell variable
11437         definitions are expanded portably.  Reported by Simon Josefsson.
11438
11439 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11440
11441         Fix polling for writeability of a screen buffer.
11442         * lib/poll.c: Distinguish input and screen buffers for the
11443         Win32 implementation.
11444         * lib/select.c: Likewise.
11445
11446 2009-08-19  Eric Blake  <ebb9@byu.net>
11447
11448         popen-safer: prevent popen from clobbering std descriptors
11449         * modules/popen-safer: New file.
11450         * lib/popen-safer.c: Likewise.
11451         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11452         * lib/stdio--.h (popen): Provide override.
11453         * lib/stdio-safer.h (popen_safer): Provide declaration.
11454         * tests/test-popen.c (includes): Partially test this.
11455         * modules/popen-safer-tests: New file, for more tests.
11456         * tests/test-popen-safer.c: Likewise.
11457         * MODULES.html.sh (file stream based Input/Output): Mention it.
11458
11459         tests: test some of the *-safer modules
11460         * modules/fopen-safer (Depends-on): Add fopen.
11461         * modules/fcntl-safer (Depends-on): Add fcntl.
11462         * modules/stdlib-safer (Depends-on): Add stdlib.
11463         (configure.ac): Set indicator.
11464         * modules/unistd-safer (configure.ac): Likewise.
11465         * modules/tmpfile-safer (configure.ac): Likewise.
11466         (Depends-on): Add tmpfile.
11467         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11468         active.
11469         * tests/test-fopen.c (includes): Test safer versions when they are
11470         in use.
11471         * tests/test-open.c (includes): Likewise.
11472
11473         popen: fix cygwin 1.5 bug when stdin closed
11474         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11475         * modules/popen: New file.
11476         * modules/popen-tests: Likewise.
11477         * tests/test-popen.c: Likewise.
11478         * m4/popen.m4: Likewise.
11479         * lib/popen.c: Likewise.
11480         * lib/stdio.in.h (popen): New declaration.
11481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11482         * modules/stdio (Makefile.am): Likewise.
11483         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11484
11485 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11486
11487         maint.mk: give full control over update-copyright exclusions
11488         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11489         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11490         (update-copyright): Don't force inclusion of top-level
11491         ChangeLog.  Don't force exclusion of all COPYING files, but make
11492         them the default exclusion instead.
11493
11494 2009-08-16  Bruno Haible  <bruno@clisp.org>
11495
11496         Fix test failures on Solaris 10.
11497         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11498         tests when Solaris iconv() is used.
11499         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11500         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11501         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11502         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11503         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11504
11505 2009-08-16  Bruno Haible  <bruno@clisp.org>
11506
11507         Fix test failures on Solaris 10.
11508         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11509         'tr' program and pass it as first argument.
11510         * tests/test-pipe-filter-gi1.sh: Likewise.
11511         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11512         program as first argument.
11513         * tests/test-pipe-filter-gi1.c (main): Likewise.
11514
11515 2009-08-16  Eric Blake  <ebb9@byu.net>
11516
11517         fpurge: fix previous commits
11518         * modules/fpurge (Makefile.am): Make replacement conditional,
11519         partially reverting 2007-04-29 change; missed in previous
11520         attempt.
11521         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11522         is missing.
11523
11524 2009-08-16  Bruno Haible  <bruno@clisp.org>
11525
11526         Clarify fpurge's effect on the file position.
11527         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11528         * tests/test-fpurge.c (main): Make a second pass for checking the file
11529         position.
11530
11531 2009-08-16  Bruno Haible  <bruno@clisp.org>
11532
11533         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11534         declaration of fpurge is missing.
11535         * tests/test-fpurge.c (main): Check that the file has not more contents
11536         than expected. Close the file before removing it.
11537
11538 2009-08-15  Eric Blake  <ebb9@byu.net>
11539
11540         fpurge: don't wrap working cygwin implementation
11541         * lib/fpurge.c (fpurge): Fix comment typo.
11542         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11543         1.7 to avoid replacement.
11544         * tests/test-fpurge.c (main): Enhance test.
11545
11546 2009-08-15  Eric Blake  <ebb9@byu.net>
11547         and Jim Meyering  <meyering@redhat.com>
11548
11549         test-update-copyright: skip if perl is insufficient
11550         * tests/test-update-copyright.sh: Failure to run maintainer tool
11551         should not cause testsuite failure on cygwin 1.5.
11552
11553 2009-08-14  Eric Blake  <ebb9@byu.net>
11554
11555         doc: mention more functions added in cygwin 1.7.0
11556         * doc/posix-headers/limits.texi (limits.h): Update for recent
11557         cygwin additions.
11558         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11559         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11560         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11561         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11562         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11563
11564 2009-08-14  Eric Blake  <ebb9@byu.net>
11565
11566         maint.mk: simplify update-copyright rule
11567         * top/maint.mk (update-copyright-local): Delete, and document how
11568         to do it in cfg.mk instead.
11569         (update-copyright-exclude-regexp): Delete, and document how to do
11570         it in .x-update-copyright instead.
11571         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11572         exclude ChangeLog.
11573
11574 2009-08-14  Bruno Haible  <bruno@clisp.org>
11575
11576         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11577
11578 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11579
11580         maint.mk: support update-copyright-env
11581         * top/maint.mk (update-copyright-env): Define place-holder.
11582         (update-copyright): Expand $(update-copyright-env) before
11583         invoking update-copyright.
11584
11585 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11586
11587         update-copyright: implement forced reformatting
11588         * build-aux/update-copyright: Implement and document
11589         UPDATE_COPYRIGHT_FORCE.
11590         * tests/test-update-copyright.sh: Test it.
11591
11592 2009-08-14  Eric Blake  <ebb9@byu.net>
11593         and Bruno Haible  <bruno@clisp.org>
11594
11595         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11596         * tests/test-locale.c: Revert previous patch related to NULL.
11597         * tests/test-stdio.c: Likewise.
11598         * tests/test-stdlib.c: Likewise.
11599         * tests/test-string.c: Likewise.
11600         * tests/test-unistd.c: Likewise.
11601         * modules/time-tests (Depends-on): Add verify.
11602         * modules/wchar-tests (Depends-on): Likewise.
11603         * tests/test-time.c: Test for NULL compliance.
11604         * tests/test-wchar.c: Likewise.
11605         * modules/locale (Depends-on): Add stddef.
11606         * modules/stdio (Depends-on): Likewise.
11607         * modules/stdlib (Depends-on): Likewise.
11608         * modules/string (Depends-on): Likewise.
11609         * modules/time (Depends-on): Likewise.
11610         * modules/unistd (Depends-on): Likewise.
11611         * modules/wchar (Depends-on): Likewise.
11612         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11613         * lib/stdlib.in.h (includes): Likewise.
11614         * lib/string.in.h (includes): Likewise.
11615         * lib/time.in.h (includes): Likewise.
11616         * lib/unistd.in.h (includes): Likewise.
11617         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11618         replaced.
11619         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11620         * m4/stddef_h.m4: New file.
11621         * modules/stddef: Likewise.
11622         * lib/stddef.in.h: Likewise.
11623         * modules/stddef-tests: Likewise.
11624         * tests/test-stddef.c: Likewise.
11625         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11626         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11627         * doc/posix-headers/locale.texi (locale.h): Likewise.
11628         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11629         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11630         * doc/posix-headers/string.texi (string.h): Likewise.
11631         * doc/posix-headers/time.texi (time.h): Likewise.
11632         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11633         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11634
11635 2009-08-14  Eric Blake  <ebb9@byu.net>
11636
11637         doc: improve git diff of texinfo files
11638         * .gitattributes: Add rule for *.texi files, with hint on how to
11639         use it.
11640         Copied from m4, and based on a report by Bruno Haible.
11641
11642 2009-08-14  Bruno Haible  <bruno@clisp.org>
11643
11644         Disable multithread support by default on Cygwin 1.5.x for real.
11645         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11646
11647 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11648
11649         update-copyright: much ado about intervals
11650         * build-aux/update-copyright: Implement and document
11651         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11652         of copyright year intervals.
11653         Also, document UPDATE_COPYRIGHT_YEAR.
11654         * tests/test-update-copyright.sh: Test it.
11655
11656         update-copyright: convert 2-digit to 4-digit years
11657         * build-aux/update-copyright: Implement and document.
11658         * tests/test-update-copyright.sh: Update.
11659
11660 2009-08-14  Jim Meyering  <meyering@redhat.com>
11661
11662         test-exclude: avoid coreutils "make check" failure
11663         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11664         just as in test-argmatch.c.
11665
11666 2009-08-13  Eric Blake  <ebb9@byu.net>
11667
11668         test-dup2: fix bad assumption
11669         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11670         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11671
11672         test-version-etc: fix CRLF portability issue
11673         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11674         recognize \r.
11675         * tests/test-argp-version-etc-1.sh: Likewise.
11676
11677         getopt: update client modules
11678         * modules/argp (Depends-on): Use getopt-gnu.
11679         * modules/git-merge-changelog (Depends-on): Likewise.
11680         * modules/long-options (Depends-on): Likewise.
11681         * modules/xstrtol (Depends-on): Likewise.
11682
11683 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11684
11685         * tests/test-version-etc.sh: Don't fail on different
11686         project/version.  Don't fail on CRLF differences.  Rewrite to use
11687         multiple -e instead of multiple sed forks, suggested by Eric Blake
11688         <ebb9@byu.net>.
11689         * tests/test-argp-version-etc-1.sh: Likewise.
11690
11691 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11692
11693         * tests/test-version-etc.sh: Don't fail on different
11694         project/version.
11695
11696 2009-08-12  Bruno Haible  <bruno@clisp.org>
11697
11698         Tests for modules 'getopt-posix', 'getopt-gnu'.
11699         * modules/getopt-posix-tests: New file.
11700         * tests/test-getopt.c: New file.
11701         * tests/test-getopt.h: New file.
11702         * tests/test-getopt_long.h: New file.
11703
11704         New modules 'getopt-posix', 'getopt-gnu'.
11705         * modules/getopt-gnu: New file, renamed from modules/getopt.
11706         * modules/getopt-posix: New file.
11707         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11708         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11709         (gl_GETOPT): Remove macro.
11710         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11711         Disable the test against BSD systems that declare optreset. Test
11712         against mingw bug. Test against lack of support of optional arguments
11713         on many platforms.
11714         * doc/glibc-headers/getopt.texi: Update module name and list of
11715         relevant platforms.
11716         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11717         'getopt-gnu' and more portability problems.
11718         * NEWS: Mention the changes.
11719
11720 2009-08-12  Bruno Haible  <bruno@clisp.org>
11721
11722         Ensure that optarg etc. get declared by <unistd.h>.
11723         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11724         AC_USE_SYSTEM_EXTENSIONS.
11725         * modules/getopt (Depends-on): Add 'extensions'.
11726
11727 2009-08-12  Bruno Haible  <bruno@clisp.org>
11728
11729         Avoid test link errors.
11730         * modules/pipe-filter-ii-tests (Makefile.am): Define
11731         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11732         * modules/pipe-filter-gi-tests (Makefile.am): Define
11733         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11735
11736 2009-08-12  Bruno Haible  <bruno@clisp.org>
11737
11738         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11739         gl_GETOPT_SUBSTITUTE before.
11740         (gl_GETOPT): Use it.
11741         * m4/argp.m4 (gl_ARGP): Update.
11742         Reported by Sergey Poznyakoff.
11743
11744         * m4/getopt.m4: Reorder macros.
11745         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11746         (gl_GETOPT_SUBSTITUTE): Remove macro.
11747
11748 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11749
11750         Minor improvement in gitlog-to-changelog
11751
11752         * build-aux/gitlog-to-changelog: New option `--format' makes
11753         output format string configurable.
11754
11755 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11756
11757         Optimize exclude: use hash tables for non-wildcard patterns.
11758
11759         * lib/exclude.c: Include hash.h and mbuiter.h
11760         (struct exclude_pattern, exclude_segment): New data types.
11761         (struct exclude): Rewrite.
11762         (fnmatch_pattern_has_wildcards): New function.
11763         (new_exclude_segment, free_exclude_segment): New functions.
11764         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11765         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11766         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11767         * modules/exclude: Depend on hash and mbuiter.
11768
11769         * modules/exclude-tests: New file.
11770         * tests/test-exclude.c: New file.
11771         * tests/test-exclude1.sh: New file.
11772         * tests/test-exclude2.sh: New file.
11773         * tests/test-exclude3.sh: New file.
11774         * tests/test-exclude4.sh: New file.
11775         * tests/test-exclude5.sh: New file.
11776         * tests/test-exclude6.sh: New file.
11777         * tests/test-exclude7.sh: New file.
11778
11779 2009-08-12  Bruno Haible  <bruno@clisp.org>
11780
11781         Ensure that getopt() gets declared by <unistd.h>.
11782         * lib/unistd.in.h: Conditionally include getopt.h.
11783         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11784         Set GNULIB_UNISTD_H_GETOPT.
11785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11786         GNULIB_UNISTD_H_GETOPT.
11787         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11788
11789 2009-08-12  Bruno Haible  <bruno@clisp.org>
11790
11791         Clarify logic.
11792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11793         gl_replace_getopt instead of GETOPT_H.
11794
11795 2009-08-12  Bruno Haible  <bruno@clisp.org>
11796
11797         * m4/getopt.m4: Add comments.
11798
11799 2009-08-12  Bruno Haible  <bruno@clisp.org>
11800
11801         Disable multithread support by default on Cygwin 1.5.x.
11802         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11803         set gl_use_threads=no if not specified otherwise.
11804
11805 2009-08-11  Bruno Haible  <bruno@clisp.org>
11806
11807         Avoid compilation error on NetBSD 5.0.
11808         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11809         * tests/test-stdio.c: Likewise.
11810         * tests/test-stdlib.c: Likewise.
11811         * tests/test-string.c: Likewise.
11812         * tests/test-unistd.c: Likewise.
11813         Reported by Greg Troxel <gdt@ir.bbn.com>
11814         at <https://savannah.gnu.org/support/?106973>.
11815
11816 2009-08-11  Bruno Haible  <bruno@clisp.org>
11817
11818         * modules/dup2-tests (Depends-on): Remove close.
11819
11820         Undo 2009-07-19 commit.
11821         * modules/acl-tests (Depends-on): Remove close.
11822         * modules/binary-io-tests (Depends-on): Likewise.
11823         * modules/closein-tests (Depends-on): Likewise.
11824         * modules/flock-tests (Depends-on): Likewise.
11825         * modules/fsync-tests (Depends-on): Likewise.
11826         * modules/lseek-tests (Depends-on): Likewise.
11827         * modules/pipe-tests (Depends-on): Likewise.
11828         * modules/posix_spawn-tests (Depends-on): Likewise.
11829         * modules/posix_spawnp-tests (Depends-on): Likewise.
11830         * modules/stat-time-tests (Depends-on): Likewise.
11831         * modules/yesno-tests (Depends-on): Likewise.
11832
11833 2009-08-10  Bruno Haible  <bruno@clisp.org>
11834
11835         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11836
11837 2009-08-10  Bruno Haible  <bruno@clisp.org>
11838
11839         Fix a gcc warning.
11840         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11841
11842 2009-08-10  Bruno Haible  <bruno@clisp.org>
11843
11844         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11845         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11846         not only the first time.
11847         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11848         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11849         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11850         is 1, not only the the first time.
11851
11852 2009-08-10  Bruno Haible  <bruno@clisp.org>
11853
11854         Make it possible to use module 'gethostname' without module 'close'.
11855         * lib/unistd.in.h (close): Evoke a link error only if
11856         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11858         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11859         * modules/unistd (Makefile.am): Substitute
11860         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11861         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11862         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11863         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11864         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11865         * modules/sys_ioctl (Makefile.am): Substitute
11866         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11867         * modules/socket (configure.ac): On native Windows, set
11868         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11869         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11870         Reported by Sam Steingold <sds@gnu.org>.
11871
11872 2009-08-10  Bruno Haible  <bruno@clisp.org>
11873
11874         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11875         * modules/ioctl (configure.ac): Likewise.
11876
11877 2009-08-10  Bruno Haible  <bruno@clisp.org>
11878
11879         Avoid collision between gnulib wrapper and libintl wrapper.
11880         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11881         already defined in intl/printf.c.
11882         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11883         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11884
11885 2009-08-09  Bruno Haible  <bruno@clisp.org>
11886
11887         Make <sys/select.h> really self-contained, also on Solaris 10.
11888         * lib/sys_select.in.h: Include <string.h>.
11889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11890         Solaris 10 problem.
11891         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11892         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11893         Reported by Jim Meyering.
11894
11895 2009-08-09  Bruno Haible  <bruno@clisp.org>
11896
11897         Avoid warnings from 'aclocal' that are due to a use of macro name
11898         AM_XGETTEXT_OPTION that is not defined in automake.
11899         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11900         automake.
11901         * modules/error (configure.ac): Likewise.
11902         * modules/propername (configure.ac): Likewise.
11903         * modules/vasprintf (configure.ac): Likewise.
11904         * modules/verror (configure.ac): Likewise.
11905         * modules/xprintf (configure.ac): Likewise.
11906         * modules/xvasprintf (configure.ac): Likewise.
11907
11908 2009-08-08  Bruno Haible  <bruno@clisp.org>
11909
11910         Avoid compilation error in C++ mode.
11911         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11912         Reported by Sam Steingold <sds@gnu.org>.
11913
11914 2009-08-08  Bruno Haible  <bruno@clisp.org>
11915
11916         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11917         for the various Unix platforms.
11918         * doc/posix-headers/limits.texi: Update platforms list regarding
11919         HOST_NAME_MAX.
11920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11921
11922 2009-08-07  Jim Meyering  <meyering@redhat.com>
11923
11924         selinux-at: fix typo in a comment
11925         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11926         Spotted by Paolo Bonzini.
11927
11928         selinux-at: remove redundant m4 code, add documentation
11929         * modules/selinux-at (configure.ac): Remove redundant code.
11930         LIB_SELINUX is already set via the dependent module, selinux-h.
11931         (Include): Add quotes around selinux-at.h.
11932         * lib/selinux-at.h: Add documentation.
11933         Reported by Bruno Haible in
11934         http://marc.info/?l=gnulib-bug&m=124958988300749
11935
11936 2009-08-07  Bruno Haible  <bruno@clisp.org>
11937
11938         Avoid link error on MacOS X 10.3 and 10.4.
11939         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11940         on non-ELF systems.
11941         * lib/argp-pv.c (argp_program_version): Likewise.
11942         Reported by Simon Josefsson.
11943
11944 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11945
11946         * tests/test-version-etc.sh: Use $EXEEXT.
11947
11948 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11949
11950         update-copyright: update documentation to point to maint.mk
11951         * build-aux/update-copyright: Here.
11952
11953 2009-08-06  Jim Meyering  <meyering@redhat.com>
11954
11955         maint.mk: support update-copyright-local
11956         * top/maint.mk (update-copyright-local): Define place-holder.
11957         (update-copyright): Depend on $(update-copyright-local).
11958
11959 2009-08-06  Jim Meyering  <meyering@redhat.com>
11960
11961         selinux-at: new module
11962         Initially written for coreutils, this module will soon be
11963         used by findutils, too.
11964         * MODULES.html.sh [Misc]: Add selinux-at.
11965         * lib/selinux-at.h: New file, from coreutils.
11966         * lib/selinux-at.c: Likewise.
11967         * modules/selinux-at: Likewise.
11968         (License): Change from LGPL to GPL, since it depends
11969         on the GPL'd openat module.
11970
11971         doc: update README
11972         * README: Remove references to cogito.
11973         Remove cvs-repo-updating instructions from 2007.
11974         Don't imply that CVS is better if you have limited disk space.
11975
11976 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11977
11978         update-copyright: support C-style comments
11979         * build-aux/update-copyright: Implement and document.
11980         * tests/test-update-copyright.sh: Test.
11981
11982 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11983
11984         update-copyright: support omitted "(C)"
11985         * build-aux/update-copyright: Implement and document.  Also,
11986         allow variable whitespace before "(C)".
11987         * tests/test-update-copyright.sh: Test.
11988
11989 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11990
11991         update-copyright: don't trip on non-FSF copyright statements
11992         * build-aux/update-copyright: Fix so that the first correctly
11993         formatted FSF copyright statement is recognized no matter what
11994         appears before it.  Update documentation.
11995         * tests/test-update-copyright.sh: Test that.
11996
11997 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11998
11999         update-copyright: clean up code a little
12000         * build-aux/update-copyright: Append "_re" to the name of any
12001         variable holding a regular expression.
12002         Replace "old" and "new" with "stmt" in variable names.
12003         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12004         handled correctly.
12005         Format code more consistently.
12006
12007 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12008
12009         update-copyright-tests: improve portability
12010         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12011         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12012
12013 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12014
12015         update-copyright: support @copyright{} and &copy;
12016         * build-aux/update-copyright: Implement and document.
12017         * tests/test-update-copyright.sh: Test.
12018
12019 2009-08-04  Jim Meyering  <meyering@redhat.com>
12020
12021         update-copyright-tests: correctly test EOL=\r\n handling
12022         * tests/test-update-copyright.sh: Put \r at the end of some lines
12023         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12024
12025         maint.mk: make update-copyright exclusion list more configurable
12026         * top/maint.mk (update-copyright): Default to excluding COPYING,
12027         but allow an override, in case someone does want to update that file.
12028
12029         maint.mk: don't update copyright date in COPYING
12030         * top/maint.mk (update-copyright): Exclude COPYING.
12031
12032         maint.mk: add a copyright-updating rule
12033         * top/maint.mk (update-copyright): New rule.
12034         Derived from coreutils/Makefile.am.
12035
12036         update-copyright: rename some variables
12037         * build-aux/update-copyright: Rename a few variables for clarity.
12038         Tweak syntax.  List Joel E. Denny as coauthor.
12039
12040 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12041
12042         update-copyright: fix bug for 2-digit last year and add tests
12043         * build-aux/update-copyright: Fix bug.
12044         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12045         specified.
12046         * modules/update-copyright-tests: New
12047         * tests/test-update-copyright.sh: New.
12048
12049 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12050
12051         update-copyright: handle leading tabs in line prefix
12052         * build-aux/update-copyright: Count leading tabs as 8 spaces
12053         when computing margin.  This helps with the formatting of
12054         ChangeLogs, for example.
12055         Fix documentation a little.
12056
12057 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12058
12059         update-copyright: support EOL=\r\n
12060         * build-aux/update-copyright: Implement that.
12061
12062 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12063
12064         update-copyright: automatically format copyright statements
12065         * build-aux/update-copyright: Implement that.
12066         Also, be a little more predictable and safer by always failing
12067         when the full copyright format is not perfectly recognized as an
12068         unbroken whole.  Discussed at
12069         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12070         Rewrite documentation.
12071
12072 2009-08-03  Bruno Haible  <bruno@clisp.org>
12073
12074         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12075
12076 2009-08-02  Bruno Haible  <bruno@clisp.org>
12077
12078         Tests for module 'uname'.
12079         * modules/uname-tests: New file.
12080         * tests/test-uname.c: New file.
12081
12082         New module 'uname'.
12083         * lib/uname.c: New file.
12084         * m4/uname.m4: New file.
12085         * modules/uname: New file.
12086         * doc/posix-functions/uname.texi: Mention the new module.
12087
12088 2009-08-02  Bruno Haible  <bruno@clisp.org>
12089
12090         Tests for module 'sys_utsname'.
12091         * modules/sys_utsname-tests: New file.
12092         * tests/test-sys_utsname.c: New file.
12093
12094         New module 'sys_utsname'.
12095         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12096         * m4/sys_utsname_h.m4: New file.
12097         * modules/sys_utsname: New file.
12098         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12099
12100 2009-08-02  Bruno Haible  <bruno@clisp.org>
12101
12102         Implicitly initialize the sockets library.
12103         * lib/gethostname.c: Include sockets.h.
12104         (rpl_gethostname): Invoke gl_sockets_startup.
12105         * lib/socket.c: Include sockets.h.
12106         (rpl_socket): Invoke gl_sockets_startup.
12107         * modules/gethostname (Depends-on): Add sockets.
12108         * modules/socket (Depends-on): Likewise.
12109         * tests/test-poll.c: Don't include sockets.h.
12110         (main): Don't invoke gl_sockets_startup.
12111         * tests/test-select.c: Don't include sockets.h.
12112         (main): Don't invoke gl_sockets_startup.
12113
12114 2009-08-02  Bruno Haible  <bruno@clisp.org>
12115
12116         Allow multiple calls to gl_sockets_startup.
12117         * lib/sockets.c (initialized_sockets_version): New variable.
12118         (gl_sockets_startup): Do nothing if already called for this or a higher
12119         version.
12120         (gl_sockets_cleanup): Reset initialized_sockets_version.
12121
12122 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12123
12124         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12125         different project/version.
12126
12127 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12128             Bruno Haible  <bruno@clisp.org>
12129
12130         Tests for module 'pipe-filter-gi'.
12131         * modules/pipe-filter-gi-tests: New file.
12132         * tests/test-pipe-filter-gi1.sh: New file.
12133         * tests/test-pipe-filter-gi1.c: New file.
12134         * tests/test-pipe-filter-gi2.sh: New file.
12135         * tests/test-pipe-filter-gi2-main.c: New file.
12136         * tests/test-pipe-filter-gi2-child.c: New file.
12137
12138         New module 'pipe-filter-gi'.
12139         * lib/pipe-filter-gi.c: New file.
12140         * modules/pipe-filter-gi: New file.
12141
12142 2009-08-02  Bruno Haible  <bruno@clisp.org>
12143             Paolo Bonzini  <bonzini@gnu.org>
12144
12145         Tests for module 'pipe-filter-ii'.
12146         * modules/pipe-filter-ii-tests: New file.
12147         * tests/test-pipe-filter-ii1.sh: New file.
12148         * tests/test-pipe-filter-ii1.c: New file.
12149         * tests/test-pipe-filter-ii2.sh: New file.
12150         * tests/test-pipe-filter-ii2-main.c: New file.
12151         * tests/test-pipe-filter-ii2-child.c: New file.
12152
12153         New module 'pipe-filter-ii'.
12154         * lib/pipe-filter.h: New file.
12155         * lib/pipe-filter-ii.c: New file.
12156         * lib/pipe-filter-aux.h: New file.
12157         * modules/pipe-filter-ii: New file.
12158
12159 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12160
12161         * lib/gc-libgcrypt.c: Change copyright to FSF.
12162         * lib/gc-gnulib.c: Likewise.
12163
12164 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12165
12166         * lib/gethostname.c: Include limits.h.
12167
12168 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12169             Bruno Haible  <bruno@clisp.org>
12170
12171         Ensure HOST_NAME_MAX as part of the gethostname module.
12172         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12173         define also HOST_NAME_MAX.
12174         * tests/test-gethostname.c: Include <limits.h>.
12175         (main): Check also HOST_NAME_MAX.
12176         * doc/posix-headers/limits.texi: Document the mingw problem.
12177
12178 2009-08-02  Bruno Haible  <bruno@clisp.org>
12179
12180         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12181         Add comments.
12182
12183 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12184
12185         * lib/gethostname.c: Add Windows wrapper.
12186         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12187         * modules/gethostname: Depend on sys_socket & errno, for also
12188         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12189         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12190
12191 2009-07-31  Jim Meyering  <meyering@redhat.com>
12192
12193         getloadavg: fix symbol name in comment
12194         * lib/getloadavg.c: Correct a typo I introduced when adding
12195         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12196         Matt Kraai spotted the problem.
12197
12198 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12199
12200         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12201         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12202         code also if ! defined N_NAME_POINTER.
12203         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12204         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12205         but the n_name member is a 12-byte array.
12206
12207 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12208
12209         update-copyright: generalize comment handling
12210         * build-aux/update-copyright: Handle copyright statements
12211         within more comment styles.
12212         Document usage.
12213         Report any file with an external copyright holder or parse failure.
12214
12215 2009-07-29  Jim Meyering  <meyering@redhat.com>
12216
12217         mktime: correct setting of REPLACE_MKTIME
12218         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12219
12220         update-copyright: new module
12221         * modules/update-copyright: New file.
12222         * build-aux/update-copyright: New file.
12223         * MODULES.html.sh (maint+release support): Add update-copyright.
12224
12225 2009-07-27  Bruno Haible  <bruno@clisp.org>
12226
12227         Fix compilation error when <ctime> is used and mktime is replaced.
12228         * lib/time.in.h (mktime): New declaration.
12229         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12230         REPLACE_MKTIME instead of defining mktime in config.h.
12231         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12232         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12233         Reported by Ross McFarland <rwmcfa1@neces.com>.
12234
12235 2009-07-27  Bruno Haible  <bruno@clisp.org>
12236
12237         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12238         Reported by Matt Kraai <mkraai@beckman.com>.
12239
12240 2009-07-25  Jim Meyering  <meyering@redhat.com>
12241
12242         maint.mk: avoid warnings about missing files
12243         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12244         diagnostic when .prev-version does not exist.
12245         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12246         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12247         nonexistent cfg.mk.
12248         Suggestions from Simon Josefsson.
12249
12250 2009-07-25  Bruno Haible  <bruno@clisp.org>
12251
12252         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12253         defined as macros. Needed on QNX 6.4.1.
12254         Reported by Matt Kraai <mkraai@beckman.com>.
12255
12256 2009-07-23  Jim Meyering  <meyering@redhat.com>
12257
12258         maint.mk: invoke "make dist" with a working value of XZ_OPT
12259         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12260
12261 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12262
12263         Make fseeko.c compile on QNX.
12264         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12265
12266 2009-07-22  Peter Simons  <simons@cryp.to>
12267
12268         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12269         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12270         * lib/md4.h: Likewise.
12271         * lib/md5.h: Likewise.
12272         * lib/sha1.h: Likewise.
12273         * lib/sha256.h: Likewise.
12274         * lib/sha512.h: Likewise.
12275
12276         tests-sha1: don't assign literal string to 'char *' variable
12277         * tests/test-sha1.c (main): Declare locals with "const" to match
12278         attributes of the right hand side.
12279
12280 2009-07-21  Eric Blake  <ebb9@byu.net>
12281
12282         dup2: fix more mingw problems
12283         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12284         fd to itself.
12285         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12286         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12287         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12288         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12289         care of mingw bugs.
12290
12291 2009-07-21  Jim Meyering  <meyering@redhat.com>
12292
12293         vc-list-files: avoid failure when /bin/sh is dash
12294         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12295         On some Debian based systems, /bin/sh is a symlink to dash, and running
12296         this command would omit the "/" following each 'tests' prefix:
12297           dash -x build-aux/vc-list-files -C . tests
12298         That is because bash and dash work differently:
12299           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12300           bash ok
12301           dash odd
12302
12303 2009-07-21  Eric Blake  <ebb9@byu.net>
12304
12305         dup2-tests: test previous patch
12306         * modules/dup2-tests: New file.
12307         * tests/test-dup2.c: Likewise.
12308         * tests/test-open.c (main): Avoid unspecified behavior.
12309         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12310         test.
12311
12312         dup2: work around mingw and cygwin 1.5 bug
12313         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12315         * modules/unistd (Makefile.am): Substitute it.
12316         * lib/unistd.in.h (dup2): Declare the replacement.
12317         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12318         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12319         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12320         * modules/execute (Depends-on): Add dup2.
12321         * modules/fseterr (Depends-on): Likewise.
12322         * modules/pipe (Depends-on): Likewise.
12323         * modules/posix_spawn-internal (Depends-on): Likewise.
12324
12325 2009-07-21  Bruno Haible  <bruno@clisp.org>
12326
12327         * modules/.gitattributes: New file.
12328
12329 2009-07-20  Bruno Haible  <bruno@clisp.org>
12330
12331         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12332         (main): Use it.
12333
12334 2009-07-20  Eric Blake  <ebb9@byu.net>
12335
12336         test-pipe: make a bit more robust.
12337         * tests/test-pipe.c (myerr): Allow error messages regardless of
12338         what we do to stderr.
12339         (test_pipe): Rearrange to avoid deadlock.
12340         (child_main): Try a larger read, to ensure we avoided deadlock.
12341         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12342         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12343         if misused.
12344
12345 2009-07-19  Jim Meyering  <meyering@redhat.com>
12346
12347         fts: avoid false-positive cycle-detection
12348         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12349         for each new command line argument.
12350
12351 2009-07-19  Bruno Haible  <bruno@clisp.org>
12352
12353         Fix build error on mingw with the modules sys_select and unistd.
12354         * modules/acl-tests (Depends-on): Add close.
12355         * modules/binary-io-tests (Depends-on): Likewise.
12356         * modules/closein-tests (Depends-on): Likewise.
12357         * modules/flock-tests (Depends-on): Likewise.
12358         * modules/fsync-tests (Depends-on): Likewise.
12359         * modules/lseek-tests (Depends-on): Likewise.
12360         * modules/pipe-tests (Depends-on): Likewise.
12361         * modules/posix_spawn-tests (Depends-on): Likewise.
12362         * modules/posix_spawnp-tests (Depends-on): Likewise.
12363         * modules/stat-time-tests (Depends-on): Likewise.
12364         * modules/yesno-tests (Depends-on): Likewise.
12365
12366 2009-07-19  Bruno Haible  <bruno@clisp.org>
12367
12368         Unify conditionals.
12369         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12370         macros, not at the compiler macros.
12371         * lib/pipe.c: Likewise.
12372         * lib/execute.c: Likewise.
12373         * lib/spawni.c: Likewise.
12374
12375 2009-07-19  Bruno Haible  <bruno@clisp.org>
12376
12377         Fix handling of closed stdin/stdout/stderr on mingw.
12378         * lib/w32spawn.h: Include unistd.h.
12379         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12380         file descriptor with O_NOINHERIT flag.
12381         (fd_safer_noinherit): New function, based on fd-safer.c.
12382         (dup_safer_noinherit): New function, based on dup-safer.c.
12383         (undup_safer_noinherit): New function.
12384         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12385         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12386         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12387         instead of fd_safer.
12388         * tests/test-pipe.c: Include <windows.h>.
12389         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12390
12391         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12392         from main.
12393         (test_pipe): Pass an extra argument for disambiguation.
12394         (main): Invoke parent_main or child_main.
12395
12396         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12397         consistently.
12398
12399 2009-07-18  Eric Blake  <ebb9@byu.net>
12400
12401         test-pipe: fix mingw build
12402         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12403
12404 2009-07-18  Bruno Haible  <bruno@clisp.org>
12405
12406         * modules/pipe-tests (Makefile.am): Fix typo.
12407
12408 2009-07-18  Eric Blake  <ebb9@byu.net>
12409
12410         error: fix mingw build
12411         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12412         Reported by Bruno Haible.
12413
12414         error: avoid undefined use of stdout
12415         * lib/error.c (error, error_at_line): Check that fd 1 is open
12416         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12417         is handling faults and the close_stdout module wants to report the
12418         detection of closed stdout as an error.
12419
12420 2009-07-17  Eric Blake  <ebb9@byu.net>
12421
12422         pipe: be robust in face of closed fds
12423         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12424         should cause child to misbehave.
12425         * modules/pipe-tests: New module.
12426         * tests/test-pipe.c: New file.
12427         * tests/test-pipe.sh: New file.
12428         Reported by Akim Demaille.
12429
12430 2009-07-14  Bruno Haible  <bruno@clisp.org>
12431
12432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12433         Reported by anonymous kc.
12434
12435 2009-07-07  Jim Meyering  <meyering@redhat.com>
12436
12437         maint.mk: don't look for translatable strings in *.m4 or *.mk
12438         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12439         when searching for translatable strings.
12440
12441 2009-07-05  Jim Meyering  <meyering@redhat.com>
12442
12443         remove superfluous parentheses in STREQ definition
12444         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12445         * lib/getugroups.c (STREQ): Likewise.
12446         * lib/fnmatch.c (STREQ): Likewise.
12447         Spotted by Bruno Haible.
12448
12449 2009-07-04  Jim Meyering  <meyering@redhat.com>
12450
12451         argv-iter: new module
12452         * MODULES.html.sh: Add argv-iter.
12453         * lib/argv-iter.c, lib/argv-iter.h: New files.
12454         * modules/argv-iter: New file.
12455         * modules/argv-iter-tests: New file.
12456         * tests/test-argv-iter.c: Test it.
12457
12458 2009-07-04  Bruno Haible  <bruno@clisp.org>
12459
12460         Fix assertion.
12461         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12462         contains more exact copies of a given entry than file2, leave the extra
12463         copies unpaired rather than aborting.
12464         Reported by Eric Blake.
12465
12466 2009-07-02  Bruno Haible  <bruno@clisp.org>
12467
12468         Speedup git-merge-changelog for git cherry-pick.
12469         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12470         (entries_mapping_get): New function, extracted from compute_mapping.
12471         (entries_mapping_reverse_get): New function.
12472         (compute_mapping): Add a 'full' argument. Return the result in a
12473         'struct entries_mapping'.
12474         (main): Update. Access the mappings through entries_mapping_get.
12475         Reported by Eric Blake.
12476
12477 2009-07-02  Bruno Haible  <bruno@clisp.org>
12478
12479         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12480         best_i.
12481
12482 2009-07-02  Bruno Haible  <bruno@clisp.org>
12483
12484         Speed up approximate search for matching ChangeLog entries.
12485         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12486         argument. Call fstrcmp_bounded instead of fstrcmp.
12487         (compute_mapping, try_split_merged_entry, main): Update callers.
12488
12489 2009-07-02  Bruno Haible  <bruno@clisp.org>
12490
12491         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12492
12493 2009-06-30  Bruno Haible  <bruno@clisp.org>
12494
12495         Reduce the number of uc_is_cased calls.
12496         * lib/unicase.h (casing_suffix_context_t): Add
12497         'first_char_except_ignorable' field.
12498         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12499         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12500         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12501         Update initializer.
12502         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12503         case-ignorable characters.
12504         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12505         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12506         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12507         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12508         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12509
12510 2009-06-30  Bruno Haible  <bruno@clisp.org>
12511
12512         Tests for module 'unicase/ignorable'.
12513         * modules/unicase/ignorable-tests: New file.
12514         * tests/unicase/test-ignorable.c: New file, generated by
12515         gen-uni-tables.
12516
12517         Tests for module 'unicase/cased'.
12518         * modules/unicase/cased-tests: New file.
12519         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12520         * tests/unicase/test-predicate-part1.h: New file, derived from
12521         tests/unictype/test-predicate-part1.h.
12522         * tests/unicase/test-predicate-part2.h: New file, same as
12523         tests/unictype/test-predicate-part2.h.
12524
12525         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12526         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12527         (output_casing_properties): New function.
12528         (main): Call it.
12529         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12530         * lib/unicase/cased.c: Include unictype/bitmap.h.
12531         (uc_is_cased): Define through a bitmap lookup.
12532         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12533         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12534         (uc_is_case_ignorable): Define through a bitmap lookup.
12535         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12536         lib/unictype/bitmap.h.
12537         (Depends-on): Add inline. Clean up.
12538         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12539         lib/unictype/bitmap.h.
12540         (Depends-on): Add inline. Clean up.
12541         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12542         recognition.
12543         * tests/unicase/test-u16-tolower.c (main): Likewise.
12544         * tests/unicase/test-u32-tolower.c (main): Likewise.
12545
12546 2009-06-30  Bruno Haible  <bruno@clisp.org>
12547
12548         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12549         * lib/unicase/u16-casemap.c: Likewise.
12550         * lib/unicase/u32-casemap.c: Likewise.
12551
12552 2009-06-29  Bruno Haible  <bruno@clisp.org>
12553
12554         Define u32_casefold as a wrapper around u32_ct_casefold.
12555         * lib/unicase/u32-casefold.c: Update.
12556         * modules/unicase/u32-casefold (Depends-on): Add
12557         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12558         unicase/empty-suffix-context. Clean up.
12559
12560         Define u16_casefold as a wrapper around u16_ct_casefold.
12561         * lib/unicase/u16-casefold.c: Update.
12562         * modules/unicase/u16-casefold (Depends-on): Add
12563         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12564         unicase/empty-suffix-context. Clean up.
12565
12566         Define u8_casefold as a wrapper around u8_ct_casefold.
12567         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12568         * lib/unicase/u8-casefold.c: Update.
12569         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12570         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12571
12572         Define u32_totitle as a wrapper around u32_ct_totitle.
12573         * lib/unicase/u32-totitle.c: Update.
12574         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12575         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12576
12577         Define u16_totitle as a wrapper around u16_ct_totitle.
12578         * lib/unicase/u16-totitle.c: Update.
12579         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12580         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12581
12582         Define u8_totitle as a wrapper around u8_ct_totitle.
12583         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12584         functions.
12585         (FUNC): Delegate to U_CT_TOTITLE.
12586         * lib/unicase/u8-totitle.c: Update.
12587         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12588         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12589
12590         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12591         invocation.
12592         * modules/unicase/u32-tolower (Depends-on): Add
12593         unicase/empty-prefix-context, unicase/empty-suffix-context.
12594
12595         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12596         invocation.
12597         * modules/unicase/u16-tolower (Depends-on): Add
12598         unicase/empty-prefix-context, unicase/empty-suffix-context.
12599
12600         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12601         * modules/unicase/u8-tolower (Depends-on): Add
12602         unicase/empty-prefix-context, unicase/empty-suffix-context.
12603
12604         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12605         invocation.
12606         * modules/unicase/u32-toupper (Depends-on): Add
12607         unicase/empty-prefix-context, unicase/empty-suffix-context.
12608
12609         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12610         invocation.
12611         * modules/unicase/u16-toupper (Depends-on): Add
12612         unicase/empty-prefix-context, unicase/empty-suffix-context.
12613
12614         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12615         * modules/unicase/u8-toupper (Depends-on): Add
12616         unicase/empty-prefix-context, unicase/empty-suffix-context.
12617
12618         New module 'unicase/u32-ct-casefold'.
12619         * lib/unicase/u32-ct-casefold.c: New file.
12620         * modules/unicase/u32-ct-casefold: New file.
12621
12622         New module 'unicase/u16-ct-casefold'.
12623         * lib/unicase/u16-ct-casefold.c: New file.
12624         * modules/unicase/u16-ct-casefold: New file.
12625
12626         New module 'unicase/u8-ct-casefold'.
12627         * lib/unicase/u8-ct-casefold.c: New file.
12628         * lib/unicase/u-ct-casefold.h: New file, derived from
12629         lib/unicase/u-casefold.h.
12630         * modules/unicase/u8-ct-casefold: New file.
12631
12632         New module 'unicase/u32-ct-totitle'.
12633         * lib/unicase/u32-ct-totitle.c: New file.
12634         * modules/unicase/u32-ct-totitle: New file.
12635
12636         New module 'unicase/u16-ct-totitle'.
12637         * lib/unicase/u16-ct-totitle.c: New file.
12638         * modules/unicase/u16-ct-totitle: New file.
12639
12640         New module 'unicase/u8-ct-totitle'.
12641         * lib/unicase/u8-ct-totitle.c: New file.
12642         * lib/unicase/u-ct-totitle.h: New file, derived from
12643         lib/unicase/u-totitle.h.
12644         * modules/unicase/u8-ct-totitle: New file.
12645
12646         New module 'unicase/u32-ct-tolower'.
12647         * lib/unicase/u32-ct-tolower.c: New file.
12648         * modules/unicase/u32-ct-tolower: New file.
12649
12650         New module 'unicase/u16-ct-tolower'.
12651         * lib/unicase/u16-ct-tolower.c: New file.
12652         * modules/unicase/u16-ct-tolower: New file.
12653
12654         New module 'unicase/u8-ct-tolower'.
12655         * lib/unicase/u8-ct-tolower.c: New file.
12656         * modules/unicase/u8-ct-tolower: New file.
12657
12658         New module 'unicase/u32-ct-toupper'.
12659         * lib/unicase/u32-ct-toupper.c: New file.
12660         * modules/unicase/u32-ct-toupper: New file.
12661
12662         New module 'unicase/u16-ct-toupper'.
12663         * lib/unicase/u16-ct-toupper.c: New file.
12664         * modules/unicase/u16-ct-toupper: New file.
12665
12666         New module 'unicase/u8-ct-toupper'.
12667         * lib/unicase/u8-ct-toupper.c: New file.
12668         * modules/unicase/u8-ct-toupper: New file.
12669
12670         Add context arguments to u*_casemap functions.
12671         * lib/unicase/unicasemap.h: Include unicase.h.
12672         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12673         suffix_context arguments.
12674         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12675         functions.
12676         (FUNC): Add prefix_context and suffix_context arguments. Use
12677         uc_is_cased and uc_is_case_ignorable.
12678         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12679         * lib/unicase/u16-casemap.c: Likewise.
12680         * lib/unicase/u32-casemap.c: Likewise.
12681         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12682         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12683         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12684         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12685         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12686         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12687
12688         New module 'unicase/u32-suffix-context'.
12689         * lib/unicase/u32-suffix-context.c: New file.
12690         * modules/unicase/u32-suffix-context: New file.
12691
12692         New module 'unicase/u16-suffix-context'.
12693         * lib/unicase/u16-suffix-context.c: New file.
12694         * modules/unicase/u16-suffix-context: New file.
12695
12696         New module 'unicase/u8-suffix-context'.
12697         * lib/unicase/u8-suffix-context.c: New file.
12698         * lib/unicase/u-suffix-context.h: New file.
12699         * modules/unicase/u8-suffix-context: New file.
12700
12701         New module 'unicase/empty-suffix-context'.
12702         * lib/unicase/empty-suffix-context.c: New file.
12703         * modules/unicase/empty-suffix-context: New file.
12704
12705         New module 'unicase/u32-prefix-context'.
12706         * lib/unicase/u32-prefix-context.c: New file.
12707         * modules/unicase/u32-prefix-context: New file.
12708
12709         New module 'unicase/u16-prefix-context'.
12710         * lib/unicase/u16-prefix-context.c: New file.
12711         * modules/unicase/u16-prefix-context: New file.
12712
12713         New module 'unicase/u8-prefix-context'.
12714         * lib/unicase/u8-prefix-context.c: New file.
12715         * lib/unicase/u-prefix-context.h: New file.
12716         * lib/unicase/context.h: New file.
12717         * modules/unicase/u8-prefix-context: New file.
12718
12719         New module 'unicase/empty-prefix-context'.
12720         * lib/unicase/empty-prefix-context.c: New file.
12721         * modules/unicase/empty-prefix-context: New file.
12722
12723         New module 'unicase/ignorable'.
12724         * lib/unicase/ignorable.c: New file.
12725         * modules/unicase/ignorable: New file.
12726
12727         New module 'unicase/cased'.
12728         * lib/unicase/caseprop.h: New file.
12729         * lib/unicase/cased.c: New file.
12730         * modules/unicase/cased: New file.
12731
12732         New functions for case mapping of substrings.
12733         * lib/unicase.h (casing_prefix_context_t): New type.
12734         (unicase_empty_prefix_context): New variable.
12735         (u8_casing_prefix_context, u16_casing_prefix_context,
12736         u32_casing_prefix_context, u8_casing_prefixes_context,
12737         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12738         declarations.
12739         (casing_suffix_context_t): New type.
12740         (unicase_empty_suffix_context): New variable.
12741         (u8_casing_suffix_context, u16_casing_suffix_context,
12742         u32_casing_suffix_context, u8_casing_suffixes_context,
12743         u16_casing_suffixes_context, u32_casing_suffixes_context,
12744         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12745         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12746         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12747         declarations.
12748
12749 2009-06-28  Jim Meyering  <meyering@redhat.com>
12750
12751         boostrap: indent only with spaces
12752         * build-aux/bootstrap: Indent only with spaces, never TABs.
12753
12754         bootstrap: split long lines
12755         * build-aux/bootstrap: Keep line length < 80.
12756
12757         bootstrap: sync from coreutils
12758         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12759         just as autoreconf does.  Verify a list of prerequisite
12760         package-name,version-number pairs if defined in bootstrap.conf.
12761         Refer to README-prereq, if prerequisites are not satisfied.
12762
12763 2009-06-27  Eric Blake  <ebb9@byu.net>
12764
12765         tests: add test for bogus NULL definition
12766         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12767         * tests/test-stdlib.c: Likewise.
12768         * tests/test-string.c: Likewise.
12769         * tests/test-locale.c: Likewise.
12770         * tests/test-unistd.c: Likewise.
12771         * modules/stdio-tests (Depends-on): Add verify.
12772         * modules/stdlib-tests (Depends-on): Likewise.
12773         * modules/string-tests (Depends-on): Likewise.
12774         * modules/locale-tests (Depends-on): Likewise.
12775         * modules/unistd-tests (Depends-on): Likewise.
12776
12777 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12778
12779         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12780         self-explaining comment.
12781         * m4/selinux-selinux-h: Update serial.
12782         (gl_LIBSELINUX): New macro, adding a warning for missing development
12783         packages to code extracted from...
12784         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12785         Add warning for missing development packages here, too.
12786
12787 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12788
12789         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12790
12791 2009-06-25  Eric Blake  <ebb9@byu.net>
12792
12793         version-etc: fix regression
12794         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12795         gcc.
12796         (version_etc): Use it, to catch bugs with trailing NULL.
12797         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12798         (version_etc_va): Fix logic bug.
12799         * modules/version-etc-tests: Add test.
12800         * tests/test-version-etc.c: New file.
12801         * tests/test-version-etc.sh: Likewise.
12802
12803 2009-06-25  Sam Steingold  <sds@gnu.org>
12804
12805         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12806         mbtowc declaration.
12807
12808 2009-06-25  Eric Blake  <ebb9@byu.net>
12809
12810         fpurge: migrate into <stdio.h>
12811         * lib/fpurge.h: Delete...
12812         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12813         * lib/fpurge.c (fpurge): Change declaring header.
12814         * modules/fpurge (Files): Drop deleted file.
12815         (Depends-on): Add stdio.
12816         (configure.ac): Set witness.
12817         * modules/stdio (Makefile.am): Support fpurge macros.
12818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12819         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12820         * lib/fflush.c: Update client.
12821         * tests/test-fpurge.c: Likewise.
12822         * NEWS: Mention the change.
12823
12824 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12825
12826         * lib/argp-version-etc.c (program_authors): Add const
12827         qualifier.
12828         * lib/version-etc.c: Fix typos in the comments.
12829         * modules/argp-version-etc: Depends on version-etc.
12830
12831 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12832
12833         argp-version-etc: new module.
12834
12835         * lib/argp-version-etc.c: New file.
12836         * lib/argp-version-etc.h: New file.
12837         * modules/argp-version-etc: New file.
12838         * modules/argp-version-etc-tests: New file.
12839         * tests/test-argp-version-etc.c: New test.
12840         * tests/test-argp-version-etc-1.sh: New test.
12841
12842 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12843
12844         Provide additional interfaces and documentation for version-etc
12845         module.
12846
12847         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12848         interfaces.
12849         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12850         prototypes.
12851
12852 2009-06-24  Bruno Haible  <bruno@clisp.org>
12853
12854         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12855         HAVE_LIB${NAME} macro.
12856         Reported by Sam Steingold <sds@gnu.org>.
12857
12858 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12859
12860         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12861         needed.
12862
12863 2009-06-21  Bruno Haible  <bruno@clisp.org>
12864
12865         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12866         work.
12867         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12868         together with LIB${NAME}, LTLIB${NAME}.
12869         Reported by Sam Steingold <sds@gnu.org>.
12870
12871 2009-06-20  Jim Meyering  <meyering@redhat.com>
12872
12873         tests: make sc_require_test_exit_idiom more generic
12874         * top/maint.mk (Exit_witness_file): New overridable variable.
12875         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12876         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12877
12878 2009-06-19  Jim Meyering  <meyering@redhat.com>
12879
12880         hash: reverse order of src/dst parameters in an internal interface
12881         * lib/hash.c (transfer_entries): Reverse order of parameters to
12882         put DST before SRC.  Adjust callers.
12883
12884         tests: test-hash: avoid wholesale duplication
12885         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12886         Instead, use a loop and add a single conditional.
12887
12888         tests: test-hash: allow seed selection via a command line argument
12889         * tests/test-hash.c (get_seed): New function.
12890         (main): Use it.
12891
12892 2009-06-19  Eric Blake  <ebb9@byu.net>
12893
12894         hash: avoid memory leak on allocation failure
12895         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12896         failure.  Factor repeated algorithm...
12897         (transfer_entries): ...into new helper routine.
12898         (hash_delete): React to hash_rehash return value.
12899
12900         hash: reduce memory pressure in hash_rehash no-op case
12901         * lib/hash.c (next_prime): Avoid overflow.
12902         (hash_initialize): Factor bucket size computation...
12903         (compute_bucket_size): ...into new helper function.
12904         (hash_rehash): Use new function and open coding to reduce memory
12905         pressure, and avoid a memory leak in USE_OBSTACK code.
12906         Reported by Jim Meyering.
12907
12908 2009-06-18  Eric Blake  <ebb9@byu.net>
12909
12910         hash: make rotation more obvious
12911         * modules/hash (Depends-on): Add bitrotate and stdint.
12912         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12913         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12914         (SIZE_MAX): Rely on headers for definition.
12915         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12916         (raw_hasher): Use rotr_sz.
12917         Suggested by Jim Meyering.
12918
12919         hash: fix memory leak in last patch
12920         * lib/hash.c (hash_rehash): Avoid memory leak.
12921
12922         hash: avoid no-op rehashing
12923         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12924
12925         hash: provide default callback functions
12926         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12927         (hash_initialize): Use them as defaults.
12928         * tests/test-hash.c (main): Test this.
12929
12930         hash: minor optimization
12931         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12932         when possible.
12933         (hash_initialize): Document this promise.
12934         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12935         * tests/test-hash.c (hash_compare_strings): Test this.
12936
12937 2009-06-18  Bruno Haible  <bruno@clisp.org>
12938
12939         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12940         going to be replaced anyway.
12941
12942 2009-06-18  Bruno Haible  <bruno@clisp.org>
12943
12944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12945         in one place.
12946         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12947         be replaced anyway.
12948
12949 2009-06-18  Eric Blake  <ebb9@byu.net>
12950
12951         hash: check for resize before insertion
12952         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12953         threshold before insertion, so that a pathological hash_rehash
12954         that fills every bucket can still trigger another rehash.
12955
12956 2009-06-18  Jim Meyering  <meyering@redhat.com>
12957
12958         hash-tests: add a loop around the small tests
12959         * tests/test-hash.c (main): Repeat small tests with selected
12960         small initial table sizes.
12961
12962 2009-06-17  Eric Blake  <ebb9@byu.net>
12963
12964         hash: minor cleanups
12965         * lib/hash.h (hash_entry): Make opaque, by moving...
12966         * lib/hash.c (hash_entry): ...here.
12967         (hash_insert): Clarify restrictions on what can be inserted.
12968         (hash_get_next): Clarify when it is safe to remove an element
12969         during traversal.
12970         (check_tuning): Skip verification when tuning is known safe.
12971         (hash_initialize): Clarify restrictions on tuning.
12972
12973 2009-06-17  Jim Meyering  <jim@meyering.net>
12974         and Eric Blake  <ebb9@byu.net>
12975
12976         hash-tests: new module
12977         * modules/hash-tests: New file.
12978         * tests/test-hash.c: New file.
12979
12980 2009-06-17  Eric Blake  <ebb9@byu.net>
12981
12982         strstr-simple: document new module
12983         * MODULES.html.sh: Document new module.
12984
12985         strstr, strcasestr: replace on platforms with broken memchr
12986         * modules/strstr: Split into...
12987         * modules/strstr-simple: ...new module that does not care about
12988         performance, but does care about glibc bug.
12989         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12990         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12991         if platform memchr is broken, per Debian bug 521737.
12992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12993         memchr.
12994         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12995         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12996         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12997         * modules/mountlist (Depends-on): Add strstr-simple.
12998         * modules/gen-uni-tables (Depends-on): Likewise.
12999         * modules/argz (Depends-on): Add strstr.
13000
13001 2009-06-17  Bruno Haible  <bruno@clisp.org>
13002
13003         * modules/posix_spawn-internal (Depends-on): Add errno.
13004
13005 2009-06-17  Bruno Haible  <bruno@clisp.org>
13006
13007         Define missing ESTALE on Interix 3.5.
13008         * lib/errno.in.h (ESTALE): Assign a value if missing.
13009         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13011         missing.
13012         * doc/posix-headers/errno.texi: Mention the Interix bug.
13013         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13014
13015 2009-06-15  Eric Blake  <ebb9@byu.net>
13016
13017         memchr, memchr2: add valgrind exception
13018         * lib/memchr.valgrind: New file.
13019         * lib/memchr2.valgrind: New file.
13020         * modules/memchr (Files): Distribute valgrind file.
13021         * modules/memchr2 (Files): Likewise.
13022
13023         docs: memchr is no longer obsolete
13024         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13025         * lib/string.in.h (memchr): Simplify logic.
13026
13027 2009-06-14  Jim Meyering  <meyering@redhat.com>
13028
13029         link-follow: fix the "checking..." message to not mention trailing slash
13030         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13031         never considered trailing slashes.
13032
13033 2009-06-14  Bruno Haible  <bruno@clisp.org>
13034
13035         * m4/memchr.m4: Mention also the bug on IA-64.
13036         * doc/posix-functions/memchr.texi: Likewise.
13037
13038 2009-06-12  Eric Blake  <ebb9@byu.net>
13039
13040         memchr: detect broken x86_64 and alpha implementations
13041         * modules/memchr-tests (Depends-on): Move mmap detection...
13042         * modules/memchr (Depends-on): ...here.
13043         (configure.ac): Set indicator.
13044         * lib/string.in.h (memchr): Declare replacement.
13045         * modules/string (Makefile.am): Trigger replacement.
13046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13047         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13048         bugs.
13049         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13050         * modules/getpagesize (License): Relax license.
13051
13052 2009-06-11  Bruno Haible  <bruno@clisp.org>
13053
13054         * lib/idpriv.h: Add more references.
13055
13056 2009-06-08  Bruno Haible  <bruno@clisp.org>
13057
13058         Tests for module 'idpriv-droptemp'.
13059         * modules/idpriv-droptemp-tests: New file.
13060         * tests/test-idpriv-droptemp.sh: New file.
13061         * tests/test-idpriv-droptemp.su.sh: New file.
13062         * tests/test-idpriv-droptemp.c: New file.
13063
13064         New module 'idpriv-droptemp'.
13065         * lib/idpriv-droptemp.c: New file.
13066         * modules/idpriv-droptemp: New file.
13067
13068 2009-06-08  Bruno Haible  <bruno@clisp.org>
13069
13070         Tests for module 'idpriv-drop'.
13071         * modules/idpriv-drop-tests: New file.
13072         * tests/test-idpriv-drop.sh: New file.
13073         * tests/test-idpriv-drop.su.sh: New file.
13074         * tests/test-idpriv-drop.c: New file.
13075
13076         New module 'idpriv-drop'.
13077         * lib/idpriv.h: New file.
13078         * lib-idpriv-drop.c: New file.
13079         * m4/idpriv.m4: New file.
13080         * modules/idpriv-drop: New file.
13081
13082 2009-06-08  Bruno Haible  <bruno@clisp.org>
13083
13084         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13085         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13086         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13087         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13088         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13089         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13090         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13091
13092 2009-06-08  Eric Blake  <ebb9@byu.net>
13093
13094         test-strstr: use memory fence, when possible
13095         * tests/test-strstr.c (main): Use memory fence, in order to be
13096         more likely to trigger Debian bug 521737.
13097         * modules/strstr-tests (Files): Pull in additional files.
13098
13099         memchr: no longer obsolete, for wider field testing
13100         * modules/memchr (Status, Notice): Delete, this module is no
13101         longer obsolete.
13102         * modules/vasnprintf (Depends-on): Add memchr.
13103
13104 2009-06-07  Jim Meyering  <meyering@redhat.com>
13105
13106         hash: declare some functions with the warn_unused_result attribute
13107         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13108
13109 2009-06-07  Bruno Haible  <bruno@clisp.org>
13110
13111         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13112         Reported by Eric Blake.
13113
13114 2009-06-06  Eric Blake  <ebb9@byu.net>
13115
13116         test-alignof: fix typo with long double
13117         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13118         compiler error.
13119
13120 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13121
13122         Escape non-texinfo { and }s.
13123         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13124         markup error.
13125
13126 2009-06-04  Jim Meyering  <meyering@redhat.com>
13127
13128         gitlog-to-changelog: don't infloop on an empty commit log
13129         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13130         Reported by Boris Petersen <transacid@centerim.org>.
13131
13132 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13133
13134         version-etc: extend for packagers
13135         Add three new configure options, intended for packagers:
13136           --with-packager="packager name"
13137           --with-packager-version="packager-specific version"
13138           --with-packager-bug-reports="packager bug reporting"
13139         An example with coreutils:
13140           $ ./configure \
13141             --with-packager=Gentoo \
13142             --with-packager-bug-report=http://bugs.gentoo.org/ \
13143             --with-packager-version="patchset 1.6"
13144           $ ./src/ls --version | head -n2
13145           ls (GNU coreutils) 7.1-dirty
13146           Packaged by Gentoo (patchset 1.6)
13147         Note that the bug reporting info via --help doesn't show up because
13148         coreutils uses its own custom emit_bug_reporting_address() implementation
13149         in src/system.h.  If it didn't, it'd look like:
13150           $ ./src/ls --help | tail -n4
13151           Report bugs to <bug-coreutils@gnu.org>.
13152           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13153           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13154           General help using GNU software: <http://www.gnu.org/gethelp/>.
13155         * lib/version-etc.c: Print new information, if provided.
13156         * m4/version-etc.m4: New file.
13157         * modules/version-etc (Files): Add m4/version-etc.m4.
13158         (configure.ac): Add gl_VERSION_ETC.
13159
13160 2009-05-31  Bruno Haible  <bruno@clisp.org>
13161
13162         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13163         and 'int64_t'.
13164         * modules/alignof-tests (Dependencies): Add stdint.
13165         Reported by Eric Blake.
13166
13167 2009-05-31  Bruno Haible  <bruno@clisp.org>
13168
13169         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13170         restriction due to compiler bugs.
13171         Reported by Eric Blake.
13172
13173 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13174             Bruno Haible  <bruno@clisp.org>
13175
13176         Fix test-alignof failure.
13177         * lib/alignof.h (alignof_slot): New macro.
13178         (alignof_type): New macro, with the same semantics as the previous
13179         'alignof'.
13180         (alignof): Alias to alignof_slot.
13181         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13182         check that the results are usable as constant expressions.
13183
13184 2009-05-31  Bruno Haible  <bruno@clisp.org>
13185
13186         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13187         * tests/test-memchr.c (main): Check that memchr does not read past the
13188         first occurrence of the byte.
13189         * tests/test-strstr.c (main): Update comment.
13190         Suggested by Eric Blake.
13191
13192 2009-05-30  Bruno Haible  <bruno@clisp.org>
13193
13194         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13195         detail how to use dumpbin.
13196         Reported by David Byron <dbyron@dbyron.com>.
13197
13198 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13199
13200         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13201
13202 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13203
13204         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13205
13206 2009-05-28  Bruno Haible  <bruno@clisp.org>
13207
13208         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13209         build-aux/ files.
13210
13211 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13212
13213         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13214
13215 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13216
13217         * gnulib-tool (sed_transform_main_lib_file)
13218         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13219         regexps.
13220
13221 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13222
13223         * tests/test-strstr.c: Add another self-test.
13224         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13225         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13226
13227 2009-05-23  Bruno Haible  <bruno@clisp.org>
13228
13229         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13230         change.
13231
13232 2009-05-21  Bruno Haible  <bruno@clisp.org>
13233
13234         Simplify use of mode_t varargs.
13235         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13236         uses 'mode_t' or 'int'.
13237         * lib/openat.c (openat): Likewise.
13238         * lib/open-safer.c (open_safer): Likewise.
13239         * m4/mode_t.m4: New file.
13240         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13241         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13242         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13243         * modules/open (Files): Add m4/mode_t.m4.
13244         * modules/openat (Files): Likewise.
13245         * modules/fcntl-safer (Files): Likewise.
13246         Suggested by Eric Blake.
13247
13248 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13249
13250         * doc/glibc-functions/fallocate.texi: New file.
13251         * doc/gnulib.texi: Include it.
13252
13253 2009-05-21  Eric Blake  <ebb9@byu.net>
13254             Bruno Haible  <bruno@clisp.org>
13255
13256         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13257         invocations.
13258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13259
13260 2009-05-21  Eric Blake  <ebb9@byu.net>
13261             Bruno Haible  <bruno@clisp.org>
13262
13263         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13264         include_next. Fix of 2008-11-20 commit.
13265         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13266         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13267         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13268         NEXT_MATH_H.
13269         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13270         instead of NEXT_MATH_H.
13271
13272 2009-05-21  Bruno Haible  <bruno@clisp.org>
13273
13274         Avoid redefinition warnings for SIZE_MAX.
13275         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13276         Reported by Simon Josefsson.
13277
13278 2009-05-21  Bruno Haible  <bruno@clisp.org>
13279
13280         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13281         AC_CACHE_VAL.
13282
13283 2009-05-20  Bruno Haible  <bruno@clisp.org>
13284
13285         Make zeroptr.h work on mingw.
13286         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13287         mprotect.
13288         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13289         * modules/memchr2-tests (configure.ac): Likewise.
13290         * modules/memcmp-tests (configure.ac): Likewise.
13291         * modules/memmem-tests (configure.ac): Likewise.
13292         * modules/memrchr-tests (configure.ac): Likewise.
13293         Reported by Simon Josefsson.
13294
13295 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13296
13297         * tests/test-glob.c: Include string.h for strcmp prototype.
13298
13299 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13300
13301         * modules/getdelim (Depends-on): Add explicit stdint, although it
13302         was implicitly already pulled in via realloc-posix.
13303         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13304
13305 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13306
13307         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13308         G. Christensen" <tgc@jupiterrise.com>.
13309         * m4/sys_socket_h.m4: Check for sa_family_t.
13310         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13311         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13312         * tests/test-sys_socket.c: Check that sa_family_t works.
13313
13314 2009-05-18  Eric Blake  <ebb9@byu.net>
13315
13316         maint.mk: allow gnulib_dir in VPATH build
13317         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13318
13319 2009-05-15  Jim Meyering  <meyering@redhat.com>
13320
13321         maint.mk: Give gnulib_dir a default definition.
13322         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13323         Thus, most packages no longer need to specify this variable in cfg.mk
13324
13325 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13326
13327         rename.m4: fix typos that would make non-mingw cross-configure fail
13328         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13329
13330 2009-05-13  Eric Blake  <ebb9@byu.net>
13331
13332         mmap-anon: avoid out-of-order autoconf expansion
13333         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13334         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13335         * modules/memchr-tests (Depends-on): Add extensions.
13336         * modules/memchr2-tests (Depends-on): Add extensions.
13337         * modules/memcmp-tests (Depends-on): Add extensions.
13338         * modules/memmem-tests (Depends-on): Add extensions.
13339         * modules/memrchr-tests (Depends-on): Add extensions.
13340
13341 2009-05-13  Bruno Haible  <bruno@clisp.org>
13342
13343         Make some tests ISO C 99 compliant.
13344         * tests/zerosize-ptr.h: New file.
13345         * tests/test-memchr.c: Include zerosize-ptr.h.
13346         (main): Use a zero-size object pointer instead of NULL.
13347         * tests/test-memchr2.c: Include zerosize-ptr.h.
13348         (main): Use a zero-size object pointer instead of NULL.
13349         * tests/test-memcmp.c: Include zerosize-ptr.h.
13350         (main): Use a zero-size object pointer instead of NULL.
13351         * tests/test-memmem.c: Include zerosize-ptr.h.
13352         (main): Use a zero-size object pointer instead of NULL.
13353         * tests/test-memrchr.c: Include zerosize-ptr.h.
13354         (main): Use a zero-size object pointer instead of NULL.
13355         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13356         m4/mmap-anon.m4.
13357         (Depends-on): Add getpagesize.
13358         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13359         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13360         m4/mmap-anon.m4.
13361         (Depends-on): Add getpagesize.
13362         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13363         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13364         m4/mmap-anon.m4.
13365         (Depends-on): Add getpagesize.
13366         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13367         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13368         m4/mmap-anon.m4.
13369         (Depends-on): Add getpagesize.
13370         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13371         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13372         m4/mmap-anon.m4.
13373         (Depends-on): Add getpagesize.
13374         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13375
13376 2009-05-12  Bruno Haible  <bruno@clisp.org>
13377
13378         Tests for module 'alignof'.
13379         * modules/alignof-tests: New file.
13380         * tests/test-alignof.c: New file.
13381
13382 2009-05-12  Bruno Haible  <bruno@clisp.org>
13383
13384         Fix alignof macro.
13385         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13386         vendor compilers that are always correct.
13387
13388 2009-05-12  Bruno Haible  <bruno@clisp.org>
13389
13390         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13391         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13392         not whether its fully works.
13393
13394 2009-05-12  Bruno Haible  <bruno@clisp.org>
13395
13396         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13397
13398 2009-05-12  Jim Meyering  <meyering@redhat.com>
13399
13400         * top/maint.mk: Adjust backslash alignment.
13401
13402 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13403
13404         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13405
13406 2009-05-11  Eric Blake  <ebb9@byu.net>
13407
13408         argp: avoid undefined behavior
13409         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13410         macros.
13411
13412 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13413
13414         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13415         user.name to prevent git commit from complaining.
13416
13417 2009-05-10  Bruno Haible  <bruno@clisp.org>
13418
13419         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13420         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13421         it rewrites every file name only once.
13422         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13423
13424 2009-05-08  Bruno Haible  <bruno@clisp.org>
13425
13426         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13427         instead of 'max'.
13428
13429 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13430
13431         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13432         sockaddr_storage test.
13433
13434 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13435
13436         * modules/sys_socket (Makefile.am): Substitute
13437         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13438         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13439         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13440         * tests/test-sys_socket.c: Check sockaddr_storage.
13441
13442 2009-05-08  Bruno Haible  <bruno@clisp.org>
13443
13444         New module 'alignof'.
13445         * lib/alignof.h: New file.
13446         * modules/alignof: New file.
13447
13448 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13449             Bruno Haible  <bruno@clisp.org>
13450
13451         Fix test-file-has-acl on FreeBSD.
13452         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13453         mask is implicitly added.
13454         * tests/test-file-has-acl.c: Include <signal.h>.
13455         (main): Terminate the test after 5 seconds.
13456         * modules/acl-tests (configure.ac): Check for alarm function.
13457
13458 2009-05-04  Bruno Haible  <bruno@clisp.org>
13459
13460         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13462         * modules/errno (configure.ac): Drop AC_REQUIRE.
13463         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13464         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13465
13466 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13467
13468         * modules/glob-tests: New module.
13469         * tests/test-glob.c: Add.
13470
13471 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13472
13473         * modules/fnmatch-tests: New module.
13474         * tests/test-fnmatch.c: Add.
13475
13476 2009-05-04  Eric Blake  <ebb9@byu.net>
13477
13478         maint: make the new no-submodule-changes rule VPATH-safe
13479         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13480
13481 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13482             Bruno Haible  <bruno@clisp.org>
13483
13484         acl: Fix infinite loop on FreeBSD.
13485         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13486         of return value from acl_get_entry.
13487         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13488         Likewise.
13489
13490 2009-05-03  Bruno Haible  <bruno@clisp.org>
13491
13492         * lib/acl-internal.h (acl_entries): Clarify return value.
13493         * lib/acl_entries.c (acl_entries): Likewise.
13494
13495 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13496
13497         Bug fix in acl module.
13498         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13499
13500 2009-05-03  Bruno Haible  <bruno@clisp.org>
13501
13502         Create gperf-generated file in the source dir, not in the build dir.
13503         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13504         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13505         * modules/unicase/locale-language (unicase/locale-languages.h):
13506         Likewise.
13507         * modules/unicase/special-casing (unicase/special-casing-table.h):
13508         Likewise.
13509         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13510         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13511         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13512         Reported by Ralf Wildenhues.
13513
13514 2009-05-03  Bruno Haible  <bruno@clisp.org>
13515
13516         * modules/fnmatch (Description, configure.ac): Taken from
13517         fnmatch-posix.
13518         * modules/fnmatch-posix: Turn into a symbolic reference to the
13519         'fnmatch' module, and deprecate.
13520         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13521
13522 2009-05-03  Bruno Haible  <bruno@clisp.org>
13523
13524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13525         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13526         Reported by Ralf Wildenhues.
13527
13528 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13529
13530         * m4/fnmatch.m4: Fix fnmatch re-define.
13531
13532 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13533
13534         priv-set: new module and tests; adapt write-any-file
13535         * lib/priv-set.c: New file.
13536         * lib/priv-set.h: New file.
13537         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13538         * lib/write-any-file.c: Simplify by using priv-set module.
13539         * m4/priv-set.m4: New file.
13540         * modules/priv-set: New file.
13541         * modules/unlinkdir: Add dependency on priv-set module.
13542         * modules/write-any-file: Likewise.
13543
13544         Tests for module 'priv-set'.
13545         * modules/priv-set-tests: New file.
13546         * tests/test-priv-set.c: New file.
13547
13548 2009-05-03  Jim Meyering  <meyering@redhat.com>
13549             Bruno Haible  <bruno@clisp.org>
13550
13551         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13552         use the converted UTF-8 variant of the name instead.
13553
13554 2009-05-03  Jim Meyering  <meyering@redhat.com>
13555
13556         tests: tighten some getdate tests
13557         * tests/test-getdate.c (main): Tighten tests: require equality,
13558         not just greater than.  Set TZ envvar to UTC0.
13559
13560 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13561
13562         getdate: correctly interpret "next monday" when run on a Monday
13563         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13564         that e.g., "next tues" (when run on a tuesday) results in a date
13565         that is one week in the future, and not today's date.
13566         I.e., add a week when the wday is the same as the current one.
13567         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13568         and earlier by Martin Bernreuther and Jan Minář.
13569         * tests/test-getdate.c (main): Check that "next DAY" is always in
13570         the future and that "last DAY" is always in the past.
13571
13572 2009-05-02  Jim Meyering  <meyering@redhat.com>
13573
13574         build: ensure that a release build fails when a submodule is unclean
13575         * top/maint.mk (no-submodule-changes): New rule.
13576         (alpha beta major): Depend on it.
13577
13578 2009-05-02  Bruno Haible  <bruno@clisp.org>
13579
13580         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13581         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13582         shell variable gl_fnmatch_required to detect which variant is
13583         requested.
13584         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13585         gl_FUNC_FNMATCH_POSIX.
13586         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13587         exclude fnmatch-posix.
13588
13589 2009-05-02  Bruno Haible  <bruno@clisp.org>
13590
13591         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13592         * modules/mbsrtowcs (License): Change to LGPLv2+.
13593         * modules/strnlen1 (License): Likewise.
13594         Reported by Simon Josefsson.
13595
13596 2009-05-02  Bruno Haible  <bruno@clisp.org>
13597
13598         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13599         "cross".
13600         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13601         gnulib-tool was called with option --source-base=lib.
13602
13603 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13604
13605         Use automake *-local hooks without commands, for extensibility.
13606         * modules/localcharset (Makefile.am): Rename install-exec-local
13607         rule to install-exec-localcharset, and make it a prerequisite of
13608         install-exec-local.  Likewise, rename the uninstall-local rule to
13609         uninstall-localcharset, and make it a prerequisite of the former.
13610
13611 2009-05-01  Bruno Haible  <bruno@clisp.org>
13612
13613         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13614         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13615         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13617         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13618         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13619         m4/locale-zh.m4, m4/codeset.m4.
13620
13621         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13622         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13623         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13624         m4/locale-zh.m4.
13625
13626         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13627         REPLACE_WCRTOMB if mbstate_t must be replaced.
13628         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13629         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13630
13631 2009-05-01  Bruno Haible  <bruno@clisp.org>
13632
13633         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13634         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13635         dngettext, dcngettext, textdomain, bindtextdomain,
13636         bind_textdomain_codeset): Undefine before redefining.
13637
13638 2009-04-30  Bruno Haible  <bruno@clisp.org>
13639
13640         Fix bug introduced on 2009-04-25.
13641         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13642         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13643         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13644         is defined.
13645         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13646         is defined.
13647         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13648         is defined.
13649         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13650
13651 2009-04-28  Bruno Haible  <bruno@clisp.org>
13652
13653         Comment tweaks.
13654         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13655         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13656         * lib/unicase.h (u*_casexfrm): Likewise.
13657         Reported by Paolo Bonzini.
13658
13659 2009-04-28  Bruno Haible  <bruno@clisp.org>
13660
13661         Fix a compilation error.
13662         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13663         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13664         Reported by Jim Meyering.
13665
13666 2009-04-27  Bruno Haible  <bruno@clisp.org>
13667
13668         New module 'libunistring'.
13669         * modules/libunistring: New file.
13670         * m4/libunistring.m4: New file.
13671         * MODULES.html.sh (Unicode string functions): Add it.
13672
13673 2009-04-27  Eric Blake  <ebb9@byu.net>
13674
13675         maint.mk: allow package-specific header to provide <config.h>
13676         * top/maint.mk (sc_require_config_h): New variable.
13677         (sc_require_config_h, sc_require_config_h_first): Use it.
13678
13679 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13680
13681         * top/maint.mk (sc_avoid_if_before_free): Except
13682         useless-if-before-free script.
13683
13684 2009-04-27  Eric Blake  <ebb9@byu.net>
13685
13686         maintainer-makefile: depend on all required helper scripts
13687         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13688         useless-if-before-free.
13689         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13690         version, rather than assuming gnulib checkout is available.
13691         Reported by Simen Josefsson.
13692
13693 2009-04-26  Bruno Haible  <bruno@clisp.org>
13694
13695         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13696         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13697         "../" or "..".
13698
13699 2009-04-26  Bruno Haible  <bruno@clisp.org>
13700
13701         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13702         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13703         AC_LIB_HAVE_LINKFLAGS.
13704
13705 2009-04-26  Bruno Haible  <bruno@clisp.org>
13706
13707         Simplify calling convention of u*_conv_from_encoding.
13708         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13709         u32_conv_from_encoding): Expect a resultbuf argument and return the
13710         result directly as a pointer.
13711         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13712         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13713         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13714         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13715         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13716         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13717         Update.
13718         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13719         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13720         * lib/vasnprintf.c (VASNPRINTF): Update.
13721         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13722         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13723         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13724         * NEWS: Mention the change.
13725
13726 2009-04-26  Bruno Haible  <bruno@clisp.org>
13727
13728         Simplify calling convention of u*_conv_to_encoding.
13729         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13730         u32_conv_to_encoding): Expect a resultbuf argument and return the
13731         result directly as a pointer.
13732         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13733         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13734         freeing scaled_offsets if mem_iconveha failed.
13735         * lib/unicase/u-casexfrm.h (FUNC): Update.
13736         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13737         * lib/vasnprintf.c (VASNPRINTF): Update.
13738         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13739         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13740         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13741         * NEWS: Mention the change.
13742
13743 2009-04-26  Bruno Haible  <bruno@clisp.org>
13744
13745         Avoid test failures on AIX and OSF/1.
13746         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13747         malloc(0).
13748         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13749         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13750         Likewise.
13751         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13752         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13753         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13754         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13755         * doc/posix-functions/malloc.texi: Document the portability problem
13756         related to malloc(0).
13757
13758 2009-04-26  Bruno Haible  <bruno@clisp.org>
13759
13760         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13761         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13762         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13763
13764 2009-04-25  Bruno Haible  <bruno@clisp.org>
13765
13766         Avoid link error when creating a namespace clean library.
13767         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13768         as macro with arguments if already defined as an alias.
13769         * lib/signbitf.c (gl_signbitf): Don't undefine.
13770         * lib/signbitd.c (gl_signbitd): Don't undefine.
13771         * lib/signbitl.c (gl_signbitl): Don't undefine.
13772
13773 2009-04-25  Jim Meyering  <meyering@redhat.com>
13774
13775         vc-list-files: fix another quoting bug
13776         * build-aux/vc-list-files: Avoid sed backslash expansion
13777         of pathological directory names.
13778
13779 2009-04-25  Eric Blake  <ebb9@byu.net>
13780
13781         vc-list-files: fix shell quoting error
13782         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13783         timestamp.
13784
13785 2009-04-25  Jim Meyering  <meyering@redhat.com>
13786
13787         vc-list-files: restore lost functionality with subdir argument
13788         * build-aux/vc-list-files: When given a non-"." sub-directory
13789         argument, substitute the $dir/ prefix back onto each resulting name.
13790         Otherwise, coreutils' root_tests check would fail.
13791
13792 2009-04-24  Eric Blake  <ebb9@byu.net>
13793
13794         vc-list-files: ignore git symlinks
13795         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13796         than ls-files, to ignore git symlinks.
13797
13798         maint.mk: import improvements from m4
13799         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13800         (move_if_change): Delete unused macro.
13801         (news-date-check, vc-diff-check): Support VPATH builds.
13802         (announcement): Likewise.  Split --bootstrap-tools list...
13803         (boostrap-tools): ...into separate list, which can be overridden
13804         in cfg.mk.
13805         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13806         requiring dependency on useless-if-before-free module.
13807         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13808         Support VPATH builds.
13809
13810 2009-04-24  Jim Meyering  <meyering@redhat.com>
13811
13812         maint.mk: remove coreutils-specific rules and variables
13813         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13814         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13815         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13816
13817         maint.mk: remove obsolete rule
13818         * top/maint.mk (rel-check): Remove rule.
13819         (WGET, WGETFLAGS): Remove now-unused variables.
13820
13821 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13822
13823         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13824         consistency.
13825
13826         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13827         '$(PATH_SEPARATOR)' instead of ':'.
13828
13829 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13830
13831         * lib/getopt1.c (main): Use 'const' for static array.
13832
13833 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13834
13835         * top/maint.mk: Sync with coreutils.
13836         * NEWS: Explain incompatibilities.
13837
13838 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13839             Bruno Haible  <bruno@clisp.org>
13840
13841         Fix cross-compilation results.
13842         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13843         statement, as third argument of AC_TRY_RUN.
13844         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13845         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13846         Likewise.
13847         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13848         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13849         Likewise.
13850         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13851         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13852         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13853
13854 2009-04-20  Bruno Haible  <bruno@clisp.org>
13855
13856         Avoid test failure on mingw.
13857         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13858
13859 2009-04-20  Bruno Haible  <bruno@clisp.org>
13860
13861         Avoid compilation error on mingw.
13862         * modules/localename-tests (Depends-on): Add locale.
13863
13864 2009-04-19  Bruno Haible  <bruno@clisp.org>
13865
13866         Support for building a shared library on Windows platforms.
13867         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13868         (main): Test the presence of UNINORM_NFC here.
13869         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13870         (main): Test the presence of UNINORM_NFD here.
13871         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13872         (main): Test the presence of UNINORM_NFKC here.
13873         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13874         (main): Test the presence of UNINORM_NFKD here.
13875
13876 2009-04-19  Bruno Haible  <bruno@clisp.org>
13877
13878         Avoid a compiler warning.
13879         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13880         Change type of variable 'sequence'.
13881
13882 2009-04-19  Bruno Haible  <bruno@clisp.org>
13883
13884         * modules/configmake (Makefile.am): When the contents of configmake.h
13885         does not change, arrange to preserve its modification time.
13886
13887 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13888
13889         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13890         gettext domain.
13891
13892 2009-04-16  Jim Meyering  <meyering@redhat.com>
13893
13894         useless-if-before-free: improve conversion code
13895         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13896         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13897
13898 2009-04-14  Bruno Haible  <bruno@clisp.org>
13899
13900         * modules/fcntl (Depends-on): Add extensions.
13901         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13902
13903 2009-04-12  Ben Pfaff  <blp@gnu.org>
13904
13905         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13906         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13907
13908 2009-03-20  Ben Pfaff  <blp@gnu.org>
13909
13910         Make rename replace existing destinations on Windows.
13911         * m4/rename.m4: Add test for Mingw.
13912         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13913         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13914         * doc/posix-functions/rename.texi: Document.
13915
13916 2009-04-10  Bruno Haible  <bruno@clisp.org>
13917
13918         New include file "iconveh.h".
13919         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13920         * lib/striconveh.h: Include it.
13921         (enum iconv_ilseq_handler): Remove definition.
13922         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13923         striconveh.h.
13924         * lib/striconveha.c: Include striconveh.h.
13925         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13926         * modules/striconveh (Files): Add lib/iconveh.h.
13927         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13928         lib/striconveh.h.
13929
13930 2009-04-10  Bruno Haible  <bruno@clisp.org>
13931
13932         * lib/uniconv.h: Update comment.
13933
13934 2009-04-10  Bruno Haible  <bruno@clisp.org>
13935
13936         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13937         always.
13938         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13939         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13940         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13941         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13942         "unistring-notinline.h", so that the function gets defined always.
13943         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13944         * lib/unistr/u8-uctomb.c: Likewise.
13945         * lib/unistr/u16-mbtouc.c: Likewise.
13946         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13947         * lib/unistr/u16-uctomb.c: Likewise.
13948         * lib/unistr/u32-mbtouc.c: Likewise.
13949         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13950         * lib/unistr/u32-uctomb.c: Likewise.
13951
13952 2009-04-10  Bruno Haible  <bruno@clisp.org>
13953
13954         Mark 'utime' obsolete.
13955         * modules/utime (Status, Notice): New sections.
13956         Suggested by Jim Meyering.
13957
13958         Fix cross-compile guess for utime test.
13959         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13960         autoconf.
13961         * doc/posix-functions/utime.texi: Give more precisions.
13962         Reported by Jan <ipif@ymail.com>.
13963
13964 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13965
13966         filevercmp: correct today's change
13967         * lib/filevercmp.c: Also handle coreutils' test inputs.
13968         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13969
13970         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13971         for reporting it.
13972         * lib/filevercmp.c: Special handle for "", "." and "..".
13973         * tests/test-filevercmp.c: Enlarge the set suite.
13974
13975 2009-04-07  Jim Meyering  <meyering@redhat.com>
13976
13977         useless-if-before-free: show how to remove braced useless free, too
13978         * build-aux/useless-if-before-free: still only in a comment, though.
13979
13980 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13981
13982         maint.mk: import changes to syntax-check macros from coreutils
13983         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13984         Use them in the relevant macros.
13985
13986 2009-04-06  Bruno Haible  <bruno@clisp.org>
13987
13988         Fix unportable use of bit-fields.
13989         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13990         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13991         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13992
13993 2009-04-06  Bruno Haible  <bruno@clisp.org>
13994
13995         Avoid test failures on AIX and OSF/1.
13996         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13997         that malloc(0) = NULL.
13998         * tests/unicase/test-u8-tolower.c (check): Likewise.
13999         * tests/unicase/test-u8-totitle.c (check): Likewise.
14000         * tests/unicase/test-u8-toupper.c (check): Likewise.
14001         * tests/unicase/test-u16-casefold.c (check): Likewise.
14002         * tests/unicase/test-u16-tolower.c (check): Likewise.
14003         * tests/unicase/test-u16-totitle.c (check): Likewise.
14004         * tests/unicase/test-u16-toupper.c (check): Likewise.
14005         * tests/unicase/test-u32-casefold.c (check): Likewise.
14006         * tests/unicase/test-u32-tolower.c (check): Likewise.
14007         * tests/unicase/test-u32-totitle.c (check): Likewise.
14008         * tests/unicase/test-u32-toupper.c (check): Likewise.
14009         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14010         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14011         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14012         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14013         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14014         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14015         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14016         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14017         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14018         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14019         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14020         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14021
14022 2009-04-05  Bruno Haible  <bruno@clisp.org>
14023
14024         Work around an autoconf limitation.
14025         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14026         comment line if it would be longer than 3 KB.
14027
14028 2009-04-05  Bruno Haible  <bruno@clisp.org>
14029
14030         Avoid test failure with libiconv-1.13.
14031         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14032         of the expected test results.
14033
14034 2009-04-05  Bruno Haible  <bruno@clisp.org>
14035
14036         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14037         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14038         that it should be installed.
14039
14040 2009-04-05  Bruno Haible  <bruno@clisp.org>
14041
14042         * gnulib-tool: New option --copy-file.
14043         (func_usage): Document it.
14044         (func_dest_tmpfilename): Moved out of func_import.
14045         (func_add_file, func_update_file): New functions, extracted from
14046         func_import.
14047         (func_import): Update.
14048
14049 2009-04-05  Karl Berry  <karl@gnu.org>
14050
14051         * README: prominently mention gnulib-tool.
14052         Rearrange sections so getting the code is near the top.
14053
14054 2009-04-05  Bruno Haible  <bruno@clisp.org>
14055
14056         * lib/unicase.h: Mention u*_cmp2.
14057         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14058         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14059         * lib/unicase/ulc-casecmp.c: Likewise.
14060         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14061         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14062         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14063         unistr/u8-cmp.
14064         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14065         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14066         unistr/u16-cmp.
14067         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14068         unistr/u32-cmp.
14069
14070         * lib/uninorm.h: Mention u*_cmp2.
14071         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14072         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14073         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14074         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14075         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14076         unistr/u8-cmp.
14077         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14078         unistr/u16-cmp.
14079         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14080         unistr/u32-cmp.
14081
14082         New module 'unistr/u32-cmp2'.
14083         * lib/unistr/u32-cmp2.c: New file.
14084         * modules/unistr/u32-cmp2: New file.
14085
14086         New module 'unistr/u16-cmp2'.
14087         * lib/unistr/u16-cmp2.c: New file.
14088         * modules/unistr/u16-cmp2: New file.
14089
14090         New module 'unistr/u8-cmp2'.
14091         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14092         * lib/unistr/u8-cmp2.c: New file.
14093         * lib/unistr/u-cmp2.h: New file.
14094         * modules/unistr/u8-cmp2: New file.
14095
14096 2009-04-05  Bruno Haible  <bruno@clisp.org>
14097
14098         * lib/unictype.h (uc_property_is_valid): New macro.
14099         * tests/unictype/test-pr_byname.c (main): Use it.
14100
14101         * lib/unistr.h: Doc fixes.
14102         * lib/uniconv.h: Doc fixes.
14103         * lib/unictype.h: Doc fixes.
14104
14105 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14106
14107         Port coreutils 7.2 to Solaris 8.
14108
14109         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14110         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14111         for Solaris 8.  This is a bit of a hack, as it means it's the
14112         caller's responsibility to add -lnsl if needed, but most likely it
14113         won't be needed since only getaddrinfo uses this and getaddrinfo
14114         isn't needed on Solaris 8.
14115
14116         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14117         problem to Solaris 8 encountered with coreutils 7.2, which
14118         resulted in a message "fnmatch.c:292: warning: passing argument 4
14119         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14120         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14121
14122 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14123
14124         * m4/ld-version-script.m4: Add FIXME comment.
14125
14126 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14127
14128         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14129         SOVERSION variable.
14130
14131 2009-04-02  Bruno Haible  <bruno@clisp.org>
14132
14133         * Makefile (info, html, dvi, pdf): Combine the rules.
14134         Suggested by Jim Meyering.
14135
14136 2009-04-01  Bruno Haible  <bruno@clisp.org>
14137
14138         * Makefile (info, html, dvi, pdf): New targets.
14139         Reported by Reuben Thomas <rrt@sc3d.org>.
14140
14141 2009-04-01  Bruno Haible  <bruno@clisp.org>
14142
14143         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14144         can be put into PATH.
14145         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14146
14147 2009-04-01  Bruno Haible  <bruno@clisp.org>
14148
14149         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14150
14151 2009-04-01  Bruno Haible  <bruno@clisp.org>
14152
14153         Rename module 'visibility'.
14154         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14155         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14156         * doc/gnulib.texi: Update.
14157         * MODULES.html.sh (Misc): Update.
14158         * NEWS: Mention the change.
14159
14160 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14161
14162         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14163         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14164         Eric Blake <ebb9@byu.net> for review.
14165         * MODULES.html.sh: Add lib-msvc-compat.
14166         * doc/gnulib.texi: Link to new section.
14167         * m4/ld-output-def.m4: New file.
14168         * doc/ld-output-def.texi: New file.
14169
14170 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14171
14172         Rename ld-version-script to lib-symbol-versions.  Suggested by
14173         Bruno Haible <bruno@clisp.org>.
14174         * modules/ld-version-script: Renamed to lib-symbol-versions.
14175         * doc/ld-version-script.texi: Fix module name.
14176         * MODULES.html.sh: Add lib-symbol-versions.
14177
14178 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14179
14180         * modules/u64-tests: New file.
14181         * tests/test-u64.c: New file.
14182
14183 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14184
14185         * MODULES.html.sh: Mention u64.
14186         * modules/u64: New module.
14187         * modules/crypto/sha512: Depend on u64 module instead of providing
14188         u64.h.
14189
14190 2009-03-27  Eric Blake  <ebb9@byu.net>
14191
14192         test-strerror: make debugging EAI_SYSTEM easier
14193         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14194         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14195         failure was EAI_SYSTEM.
14196
14197 2009-03-25  Bruno Haible  <bruno@clisp.org>
14198
14199         Fix a problem with --enable-relocatable on Solaris 7.
14200         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14201         since 2008-02-24.
14202
14203 2009-03-25  Eric Blake  <ebb9@byu.net>
14204
14205         test-sockets: avoid gcc warning
14206         * tests/test-sockets.c (main): Silence compiler warning.
14207
14208 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14209
14210         New modules nproc, pthread, contributed by Glen Lenker.
14211
14212         * MODULES.html.sh: Add pthread, nproc.
14213         * lib/nproc.c: New file.
14214         * lib/nproc.h: New file.
14215         * lib/pthread.in.h: New file.
14216         * m4/pthread.m4: New file.
14217         * modules/nproc: New file.
14218         * modules/pthread: New file.
14219
14220 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14221
14222         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14223         New variable.
14224
14225 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14226
14227         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14228         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14229         * tests/test-filevercmp.c: Add tests for backup suffixes.
14230
14231 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14232
14233         * modules/stdlib (Depends-on): Add stdint, needed when defining
14234         struct random_data on, for example, HP-UX 10.20.  Reported by
14235         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14236
14237 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14238
14239         * lib/readline.c (readline): Call fflush on stdout after printing
14240         prompt.
14241
14242 2009-03-20  Bruno Haible  <bruno@clisp.org>
14243
14244         Remove dependency from 'close' module to -lws2_32 on native Windows.
14245         * lib/close-hook.h: New file.
14246         * lib/close-hook.c: New file.
14247         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14248         w32sock.h.
14249         (_gl_close_fd_maybe_socket): Remove function.
14250         (rpl_close): Invoke execute_all_close_hooks instead of
14251         _gl_close_fd_maybe_socket.
14252         * lib/sockets.c: Include close-hook.h, w32sock.h.
14253         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14254         (close_sockets_hook): New variable.
14255         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14256         (gl_sockets_cleanup): Unregister it.
14257         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14258         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14259         * modules/close-hook: New file.
14260         * modules/close (Files): Remove lib/w32sock.h.
14261         (Depends-on): Add close-hook.
14262         (Link): Remove section.
14263         * modules/sockets (Files): Add lib/w32sock.h.
14264         (Depends-on): Add close-hook.
14265         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14266         invocation.
14267         * NEWS: Mention that LIB_CLOSE is gone.
14268
14269 2009-03-23  Eric Blake  <ebb9@byu.net>
14270
14271         signal-tests: test previous patch
14272         * tests/test-signal.c: New file.
14273         * modules/signal-tests: Likewise.
14274
14275         signal.h: always support 'volatile sig_atomic_t'
14276         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14277         (gl_SIGNAL_H_DEFAULTS): Add a default.
14278         * modules/signal (Makefile.am): Substitute if needed.
14279         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14280         users can blindly add volatile.
14281         * doc/posix-headers/signal.texi (signal.h): Document it.
14282         Reported by Matthew Woehlke.
14283
14284 2009-03-23  Jim Meyering  <meyering@redhat.com>
14285
14286         pathmax: PATH_MAX: use pathconf only when available
14287         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14288         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14289         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14290         This avoids a link failure in a PSP cross-compilation environment
14291         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14292
14293         * lib/vasnprintf.c (divide): Fix typo in comment.
14294
14295 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14296
14297         * gnulib-tool (func_filter_filelist): Fix comment.
14298
14299 2009-03-20  Bruno Haible  <bruno@clisp.org>
14300
14301         Make sockets.h self-contained.
14302         * lib/sockets.c: Include sockets.h first.
14303         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14304
14305 2009-03-19  Eric Blake  <ebb9@byu.net>
14306
14307         doc: mention more functions added in cygwin 1.7.0
14308         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14309         addition.
14310         * doc/posix-functions/log2f.texi: Likewise.
14311
14312 2009-03-19  Jim Meyering  <meyering@redhat.com>
14313
14314         fsusage: avoid syntax error due to statement-before-declaration
14315         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14316         after all declarations.  Reported by Matthew Woehlke in
14317         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14318
14319 2009-03-18  Eric Blake  <ebb9@byu.net>
14320
14321         build-aux/compile: sync from automake
14322         * build-aux/compile: New file, from automake.
14323         * config/srclist.txt: Mention build-aux/compile.
14324
14325 2009-03-17  Bruno Haible  <bruno@clisp.org>
14326
14327         * lib/git-merge-changelog.c: Fix typo in comment.
14328         Reported by Reuben Thomas <rrt@sc3d.org>.
14329
14330 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14331
14332         * m4/regex.m4: update and improve help for
14333         --without-included-regex.
14334
14335 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14336
14337         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14338         failure on missing include files.
14339
14340 2009-03-17  Eric Blake  <ebb9@byu.net>
14341
14342         doc: mention more functions added in cygwin 1.7.0
14343         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14344         addition.
14345         * doc/posix-functions/fwscanf.texi: Likewise.
14346         * doc/posix-functions/swprintf.texi: Likewise.
14347         * doc/posix-functions/swscanf.texi: Likewise.
14348         * doc/posix-functions/vfwprintf.texi: Likewise.
14349         * doc/posix-functions/vfwscanf.texi: Likewise.
14350         * doc/posix-functions/vswprintf.texi: Likewise.
14351         * doc/posix-functions/vswscanf.texi: Likewise.
14352         * doc/posix-functions/vwprintf.texi: Likewise.
14353         * doc/posix-functions/vwscanf.texi: Likewise.
14354         * doc/posix-functions/wcscasecmp.texi: Likewise.
14355         * doc/posix-functions/wcsdup.texi: Likewise.
14356         * doc/posix-functions/wcsftime.texi: Likewise.
14357         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14358         * doc/posix-functions/wprintf.texi: Likewise.
14359         * doc/posix-functions/wscanf.texi: Likewise.
14360         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14361
14362 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14363
14364         maint.mk: really add $(AM_MAKEFLAGS)
14365         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14366         was inadvertently omitted in the last commit.
14367         Spotted by Bruno Haible.
14368
14369         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14370         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14371         $(AM_MAKEFLAGS)' rather than plain `make'.
14372
14373         gnulib-tool: execute $MAKE not make
14374         * gnulib-tool: Default $MAKE to 'make'.
14375         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14376         than make.  Initialize $MAKE in the do-autobuild script.
14377
14378         gnulib-tool: use $MAKE not make in generated files
14379         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14380         make, in generated files.  Initialize $MAKE in the do-autobuild
14381         script.
14382
14383         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14384
14385         GNUmakefile: disable parallelism only for multiple, recursive targets
14386         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14387         additions in the Makefile.
14388         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14389         by Automake.
14390         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14391         are listed on the command line and at least one of them is
14392         listed in $(ALL_RECURSIVE_TARGETS).
14393
14394 2009-03-14  Bruno Haible  <bruno@clisp.org>
14395
14396         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14397         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14398         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14399         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14400         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14401         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14402         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14403         unistr/u8-uctomb.
14404         * modules/unistr/u8-strchr (Depends-on): Likewise.
14405         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14406         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14407         unistr/u16-uctomb.
14408         * modules/unistr/u16-strchr (Depends-on): Likewise.
14409         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14410
14411 2009-03-12  Bruno Haible  <bruno@clisp.org>
14412
14413         Work around select() bug on Interix 3.5.
14414         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14415         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14416         * m4/select.m4: New file.
14417         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14418         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14419         * modules/select (Files): Add m4/select.m4.
14420         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14421         * modules/nanosleep (Depends-on): Add select.
14422         * modules/poll (Depends-on): Likewise.
14423         * doc/posix-functions/select.texi: Mention the Interix bug.
14424         Reported by Markus Duft <mduft@gentoo.org>.
14425
14426         * lib/select.c: Renamed from lib/winsock-select.c.
14427         * modules/select (Files): Add lib/select.c, remove
14428         lib/winsock-select.c.
14429         (configure.ac): Update.
14430
14431 2009-03-12  Jim Meyering  <meyering@redhat.com>
14432
14433         avoid gcc warnings about unused macro definitions
14434         * lib/readtokens.c (STREQ): Remove unused definition.
14435         * lib/xmalloc.c (SIZE_MAX): Likewise.
14436         * lib/openat-die.c (N_): Likewise.
14437         * lib/mountlist.c (SIZE_MAX): Remove definition.
14438         Instead, include <stdint.h>.
14439         * lib/readutmp.c: Likewise.
14440         * modules/readutmp (Depends-on): Add stdint.
14441         * modules/mountlist (Depends-on): Add stdint.
14442         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14443
14444 2009-03-10  Bruno Haible  <bruno@clisp.org>
14445
14446         Tests for module 'mbmemcasecoll'.
14447         * modules/mbmemcasecoll-tests: New file.
14448         * tests/test-mbmemcasecoll1.sh: New file.
14449         * tests/test-mbmemcasecoll2.sh: New file.
14450         * tests/test-mbmemcasecoll3.sh: New file.
14451         * tests/test-mbmemcasecoll.c: New file.
14452
14453         New module 'mbmemcasecoll'.
14454         * lib/mbmemcasecoll.h: New file.
14455         * lib/mbmemcasecoll.c: New file.
14456         * modules/mbmemcasecoll: New file.
14457
14458         * tests/test-mbmemcasecmp.h: New file, extracted from
14459         tests/test-mbmemcasecmp.c.
14460         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14461         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14462         (main): Update.
14463         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14464
14465 2009-03-09  Bruno Haible  <bruno@clisp.org>
14466
14467         Tests for module 'mbmemcasecmp'.
14468         * modules/mbmemcasecmp-tests: New file.
14469         * tests/test-mbmemcasecmp1.sh: New file.
14470         * tests/test-mbmemcasecmp2.sh: New file.
14471         * tests/test-mbmemcasecmp3.sh: New file.
14472         * tests/test-mbmemcasecmp.c: New file.
14473
14474         New module 'mbmemcasecmp'.
14475         * lib/mbmemcasecmp.h: New file.
14476         * lib/mbmemcasecmp.c: New file.
14477         * modules/mbmemcasecmp: New file.
14478
14479 2009-03-09  Bruno Haible  <bruno@clisp.org>
14480
14481         Tests for module 'unicase/ulc-casecoll'.
14482         * modules/unicase/ulc-casecoll-tests: New file.
14483         * tests/unicase/test-ulc-casecoll1.sh: New file.
14484         * tests/unicase/test-ulc-casecoll2.sh: New file.
14485         * tests/unicase/test-ulc-casecoll.c: New file.
14486
14487         New module 'unicase/ulc-casecoll'.
14488         * lib/unicase.h (ulc_casecoll): New declaration.
14489         * lib/unicase/ulc-casecoll.c: New file.
14490         * modules/unicase/ulc-casecoll: New file.
14491
14492         New module 'unicase/ulc-casexfrm'.
14493         * lib/unicase.h (ulc_casexfrm): New declaration.
14494         * lib/unicase/ulc-casexfrm.c: New file.
14495         * modules/unicase/ulc-casexfrm: New file.
14496
14497 2009-03-09  Bruno Haible  <bruno@clisp.org>
14498
14499         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14500         invocations.
14501
14502         * m4/mbscasecmp.m4: Remove file.
14503         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14504         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14505
14506         * m4/mbscasestr.m4: Remove file.
14507         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14508         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14509
14510         * m4/mbschr.m4: Remove file.
14511         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14512         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14513
14514         * m4/mbscspn.m4: Remove file.
14515         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14516         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14517
14518         * m4/mbslen.m4: Remove file.
14519         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14520         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14521
14522         * m4/mbsncasecmp.m4: Remove file.
14523         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14524         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14525
14526         * m4/mbsnlen.m4: Remove file.
14527         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14528         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14529
14530         * m4/mbspbrk.m4: Remove file.
14531         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14532         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14533
14534         * m4/mbspcasecmp.m4: Remove file.
14535         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14536         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14537
14538         * m4/mbsrchr.m4: Remove file.
14539         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14540         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14541
14542         * m4/mbssep.m4: Remove file.
14543         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14544         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14545
14546         * m4/mbsspn.m4: Remove file.
14547         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14548         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14549
14550         * m4/mbsstr.m4: Remove file.
14551         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14552         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14553
14554         * m4/mbstok_r.m4: Remove file.
14555         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14556         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14557
14558         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14559
14560         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14561         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14562
14563         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14564
14565 2009-03-08  Bruno Haible  <bruno@clisp.org>
14566
14567         Tests for module 'unicase/ulc-casecmp'.
14568         * modules/unicase/ulc-casecmp-tests: New file.
14569         * tests/unicase/test-ulc-casecmp1.sh: New file.
14570         * tests/unicase/test-ulc-casecmp2.sh: New file.
14571         * tests/unicase/test-ulc-casecmp.c: New file.
14572
14573         New module 'unicase/ulc-casecmp'.
14574         * lib/unicase.h (ulc_casecmp): New declaration.
14575         * lib/unicase/ulc-casecmp.c: New file.
14576         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14577         'const SRC_UNIT *'.
14578         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14579         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14580         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14581         * modules/unicase/ulc-casecmp: New file.
14582
14583         Tests for module 'unicase/u32-is-cased'.
14584         * modules/unicase/u32-is-cased-tests: New file.
14585         * tests/unicase/test-u32-is-cased.c: New file.
14586
14587         Tests for module 'unicase/u16-is-cased'.
14588         * modules/unicase/u16-is-cased-tests: New file.
14589         * tests/unicase/test-u16-is-cased.c: New file.
14590
14591         Tests for module 'unicase/u8-is-cased'.
14592         * modules/unicase/u8-is-cased-tests: New file.
14593         * tests/unicase/test-u8-is-cased.c: New file.
14594         * tests/unicase/test-is-cased.h: New file.
14595
14596         New module 'unicase/u32-is-cased'.
14597         * lib/unicase/u32-is-cased.c: New file.
14598         * modules/unicase/u32-is-cased: New file.
14599
14600         New module 'unicase/u16-is-cased'.
14601         * lib/unicase/u16-is-cased.c: New file.
14602         * modules/unicase/u16-is-cased: New file.
14603
14604         New module 'unicase/u8-is-cased'.
14605         * lib/unicase/u8-is-cased.c: New file.
14606         * lib/unicase/u-is-cased.h: New file.
14607         * modules/unicase/u8-is-cased: New file.
14608
14609         Tests for module 'unicase/u32-is-casefolded'.
14610         * modules/unicase/u32-is-casefolded-tests: New file.
14611         * tests/unicase/test-u32-is-casefolded.c: New file.
14612
14613         Tests for module 'unicase/u16-is-casefolded'.
14614         * modules/unicase/u16-is-casefolded-tests: New file.
14615         * tests/unicase/test-u16-is-casefolded.c: New file.
14616
14617         Tests for module 'unicase/u8-is-casefolded'.
14618         * modules/unicase/u8-is-casefolded-tests: New file.
14619         * tests/unicase/test-u8-is-casefolded.c: New file.
14620         * tests/unicase/test-is-casefolded.h: New file.
14621
14622         New module 'unicase/u32-is-casefolded'.
14623         * lib/unicase/u32-is-casefolded.c: New file.
14624         * modules/unicase/u32-is-casefolded: New file.
14625
14626         New module 'unicase/u16-is-casefolded'.
14627         * lib/unicase/u16-is-casefolded.c: New file.
14628         * modules/unicase/u16-is-casefolded: New file.
14629
14630         New module 'unicase/u8-is-casefolded'.
14631         * lib/unicase/u8-is-casefolded.c: New file.
14632         * modules/unicase/u8-is-casefolded: New file.
14633
14634         Tests for module 'unicase/u32-is-titlecase'.
14635         * modules/unicase/u32-is-titlecase-tests: New file.
14636         * tests/unicase/test-u32-is-titlecase.c: New file.
14637
14638         Tests for module 'unicase/u16-is-titlecase'.
14639         * modules/unicase/u16-is-titlecase-tests: New file.
14640         * tests/unicase/test-u16-is-titlecase.c: New file.
14641
14642         Tests for module 'unicase/u8-is-titlecase'.
14643         * modules/unicase/u8-is-titlecase-tests: New file.
14644         * tests/unicase/test-u8-is-titlecase.c: New file.
14645         * tests/unicase/test-is-titlecase.h: New file.
14646
14647         New module 'unicase/u32-is-titlecase'.
14648         * lib/unicase/u32-is-titlecase.c: New file.
14649         * modules/unicase/u32-is-titlecase: New file.
14650
14651         New module 'unicase/u16-is-titlecase'.
14652         * lib/unicase/u16-is-titlecase.c: New file.
14653         * modules/unicase/u16-is-titlecase: New file.
14654
14655         New module 'unicase/u8-is-titlecase'.
14656         * lib/unicase/u8-is-titlecase.c: New file.
14657         * modules/unicase/u8-is-titlecase: New file.
14658
14659         Tests for module 'unicase/u32-is-lowercase'.
14660         * modules/unicase/u32-is-lowercase-tests: New file.
14661         * tests/unicase/test-u32-is-lowercase.c: New file.
14662
14663         Tests for module 'unicase/u16-is-lowercase'.
14664         * modules/unicase/u16-is-lowercase-tests: New file.
14665         * tests/unicase/test-u16-is-lowercase.c: New file.
14666
14667         Tests for module 'unicase/u8-is-lowercase'.
14668         * modules/unicase/u8-is-lowercase-tests: New file.
14669         * tests/unicase/test-u8-is-lowercase.c: New file.
14670         * tests/unicase/test-is-lowercase.h: New file.
14671
14672         New module 'unicase/u32-is-lowercase'.
14673         * lib/unicase/u32-is-lowercase.c: New file.
14674         * modules/unicase/u32-is-lowercase: New file.
14675
14676         New module 'unicase/u16-is-lowercase'.
14677         * lib/unicase/u16-is-lowercase.c: New file.
14678         * modules/unicase/u16-is-lowercase: New file.
14679
14680         New module 'unicase/u8-is-lowercase'.
14681         * lib/unicase/u8-is-lowercase.c: New file.
14682         * modules/unicase/u8-is-lowercase: New file.
14683
14684         Tests for module 'unicase/u32-is-uppercase'.
14685         * modules/unicase/u32-is-uppercase-tests: New file.
14686         * tests/unicase/test-u32-is-uppercase.c: New file.
14687
14688         Tests for module 'unicase/u16-is-uppercase'.
14689         * modules/unicase/u16-is-uppercase-tests: New file.
14690         * tests/unicase/test-u16-is-uppercase.c: New file.
14691
14692         Tests for module 'unicase/u8-is-uppercase'.
14693         * modules/unicase/u8-is-uppercase-tests: New file.
14694         * tests/unicase/test-u8-is-uppercase.c: New file.
14695         * tests/unicase/test-is-uppercase.h: New file.
14696
14697         New module 'unicase/u32-is-uppercase'.
14698         * lib/unicase/u32-is-uppercase.c: New file.
14699         * modules/unicase/u32-is-uppercase: New file.
14700
14701         New module 'unicase/u16-is-uppercase'.
14702         * lib/unicase/u16-is-uppercase.c: New file.
14703         * modules/unicase/u16-is-uppercase: New file.
14704
14705         New module 'unicase/u8-is-uppercase'.
14706         * lib/unicase/u8-is-uppercase.c: New file.
14707         * modules/unicase/u8-is-uppercase: New file.
14708
14709         New module 'unicase/u32-is-invariant'.
14710         * lib/unicase/u32-is-invariant.c: New file.
14711         * modules/unicase/u32-is-invariant: New file.
14712
14713         New module 'unicase/u16-is-invariant'.
14714         * lib/unicase/u16-is-invariant.c: New file.
14715         * modules/unicase/u16-is-invariant: New file.
14716
14717         New module 'unicase/u8-is-invariant'.
14718         * lib/unicase/u8-is-invariant.c: New file.
14719         * lib/unicase/invariant.h: New file.
14720         * lib/unicase/u-is-invariant.h: New file.
14721         * modules/unicase/u8-is-invariant: New file.
14722
14723         Tests for module 'unicase/u32-casecoll'.
14724         * modules/unicase/u32-casecoll-tests: New file.
14725         * tests/unicase/test-u32-casecoll.c: New file.
14726
14727         Tests for module 'unicase/u16-casecoll'.
14728         * modules/unicase/u16-casecoll-tests: New file.
14729         * tests/unicase/test-u16-casecoll.c: New file.
14730
14731         Tests for module 'unicase/u8-casecoll'.
14732         * modules/unicase/u8-casecoll-tests: New file.
14733         * tests/unicase/test-u8-casecoll.c: New file.
14734
14735         New module 'unicase/u32-casecoll'.
14736         * lib/unicase/u32-casecoll.c: New file.
14737         * modules/unicase/u32-casecoll: New file.
14738
14739         New module 'unicase/u16-casecoll'.
14740         * lib/unicase/u16-casecoll.c: New file.
14741         * modules/unicase/u16-casecoll: New file.
14742
14743         New module 'unicase/u8-casecoll'.
14744         * lib/unicase/u8-casecoll.c: New file.
14745         * lib/unicase/u-casecoll.h: New file.
14746         * modules/unicase/u8-casecoll: New file.
14747
14748         New module 'unicase/u32-casexfrm'.
14749         * lib/unicase/u32-casexfrm.c: New file.
14750         * modules/unicase/u32-casexfrm: New file.
14751
14752         New module 'unicase/u16-casexfrm'.
14753         * lib/unicase/u16-casexfrm.c: New file.
14754         * modules/unicase/u16-casexfrm: New file.
14755
14756         New module 'unicase/u8-casexfrm'.
14757         * lib/unicase/u8-casexfrm.c: New file.
14758         * lib/unicase/u-casexfrm.h: New file.
14759         * modules/unicase/u8-casexfrm: New file.
14760
14761         Tests for module 'unicase/u32-casecmp'.
14762         * modules/unicase/u32-casecmp-tests: New file.
14763         * tests/unicase/test-u32-casecmp.c: New file.
14764
14765         Tests for module 'unicase/u16-casecmp'.
14766         * modules/unicase/u16-casecmp-tests: New file.
14767         * tests/unicase/test-u16-casecmp.c: New file.
14768
14769         Tests for module 'unicase/u8-casecmp'.
14770         * modules/unicase/u8-casecmp-tests: New file.
14771         * tests/unicase/test-u8-casecmp.c: New file.
14772         * tests/unicase/test-casecmp.h: New file.
14773
14774         New module 'unicase/u32-casecmp'.
14775         * lib/unicase/u32-casecmp.c: New file.
14776         * modules/unicase/u32-casecmp: New file.
14777
14778         New module 'unicase/u16-casecmp'.
14779         * lib/unicase/u16-casecmp.c: New file.
14780         * modules/unicase/u16-casecmp: New file.
14781
14782         New module 'unicase/u8-casecmp'.
14783         * lib/unicase/u8-casecmp.c: New file.
14784         * lib/unicase/u-casecmp.h: New file.
14785         * modules/unicase/u8-casecmp: New file.
14786
14787         Tests for module 'unicase/u32-casefold'.
14788         * modules/unicase/u32-casefold-tests: New file.
14789         * tests/unicase/test-u32-casefold.c: New file.
14790
14791         Tests for module 'unicase/u16-casefold'.
14792         * modules/unicase/u16-casefold-tests: New file.
14793         * tests/unicase/test-u16-casefold.c: New file.
14794
14795         Tests for module 'unicase/u8-casefold'.
14796         * modules/unicase/u8-casefold-tests: New file.
14797         * tests/unicase/test-u8-casefold.c: New file.
14798
14799         New module 'unicase/u32-casefold'.
14800         * lib/unicase/u32-casefold.c: New file.
14801         * modules/unicase/u32-casefold: New file.
14802
14803         New module 'unicase/u16-casefold'.
14804         * lib/unicase/u16-casefold.c: New file.
14805         * modules/unicase/u16-casefold: New file.
14806
14807         New module 'unicase/u8-casefold'.
14808         * lib/unicase/u8-casefold.c: New file.
14809         * lib/unicase/u-casefold.h: New file.
14810         * modules/unicase/u8-casefold: New file.
14811
14812         New module 'unicase/tocasefold'.
14813         * lib/unicase/casefold.h: New file.
14814         * lib/unicase/tocasefold.c: New file.
14815         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14816         * modules/unicase/tocasefold: New file.
14817
14818         Tests for module 'unicase/u32-totitle'.
14819         * modules/unicase/u32-totitle-tests: New file.
14820         * tests/unicase/test-u32-totitle.c: New file.
14821
14822         Tests for module 'unicase/u16-totitle'.
14823         * modules/unicase/u16-totitle-tests: New file.
14824         * tests/unicase/test-u16-totitle.c: New file.
14825
14826         Tests for module 'unicase/u8-totitle'.
14827         * modules/unicase/u8-totitle-tests: New file.
14828         * tests/unicase/test-u8-totitle.c: New file.
14829
14830         New module 'unicase/u32-totitle'.
14831         * lib/unicase/u32-totitle.c: New file.
14832         * modules/unicase/u32-totitle: New file.
14833
14834         New module 'unicase/u16-totitle'.
14835         * lib/unicase/u16-totitle.c: New file.
14836         * modules/unicase/u16-totitle: New file.
14837
14838         New module 'unicase/u8-totitle'.
14839         * lib/unicase/u8-totitle.c: New file.
14840         * lib/unicase/u-totitle.h: New file.
14841         * modules/unicase/u8-totitle: New file.
14842
14843         Tests for module 'unicase/u32-tolower'.
14844         * modules/unicase/u32-tolower-tests: New file.
14845         * tests/unicase/test-u32-tolower.c: New file.
14846
14847         Tests for module 'unicase/u16-tolower'.
14848         * modules/unicase/u16-tolower-tests: New file.
14849         * tests/unicase/test-u16-tolower.c: New file.
14850
14851         Tests for module 'unicase/u8-tolower'.
14852         * modules/unicase/u8-tolower-tests: New file.
14853         * tests/unicase/test-u8-tolower.c: New file.
14854
14855         New module 'unicase/u32-tolower'.
14856         * lib/unicase/u32-tolower.c: New file.
14857         * modules/unicase/u32-tolower: New file.
14858
14859         New module 'unicase/u16-tolower'.
14860         * lib/unicase/u16-tolower.c: New file.
14861         * modules/unicase/u16-tolower: New file.
14862
14863         New module 'unicase/u8-tolower'.
14864         * lib/unicase/u8-tolower.c: New file.
14865         * modules/unicase/u8-tolower: New file.
14866
14867         Tests for module 'unicase/u32-toupper'.
14868         * modules/unicase/u32-toupper-tests: New file.
14869         * tests/unicase/test-u32-toupper.c: New file.
14870
14871         Tests for module 'unicase/u16-toupper'.
14872         * modules/unicase/u16-toupper-tests: New file.
14873         * tests/unicase/test-u16-toupper.c: New file.
14874
14875         Tests for module 'unicase/u8-toupper'.
14876         * modules/unicase/u8-toupper-tests: New file.
14877         * tests/unicase/test-u8-toupper.c: New file.
14878
14879         New module 'unicase/u32-toupper'.
14880         * lib/unicase/u32-toupper.c: New file.
14881         * modules/unicase/u32-toupper: New file.
14882
14883         New module 'unicase/u16-toupper'.
14884         * lib/unicase/u16-toupper.c: New file.
14885         * modules/unicase/u16-toupper: New file.
14886
14887         New module 'unicase/u8-toupper'.
14888         * lib/unicase/u8-toupper.c: New file.
14889         * modules/unicase/u8-toupper: New file.
14890
14891         New module 'unicase/u32-casemap'.
14892         * lib/unicase/u32-casemap.c: New file.
14893         * modules/unicase/u32-casemap: New file.
14894
14895         New module 'unicase/u16-casemap'.
14896         * lib/unicase/u16-casemap.c: New file.
14897         * modules/unicase/u16-casemap: New file.
14898
14899         New module 'unicase/u8-casemap'.
14900         * lib/unicase/unicasemap.h: New file.
14901         * lib/unicase/u8-casemap.c: New file.
14902         * lib/unicase/u-casemap.h: New file.
14903         * modules/unicase/u8-casemap: New file.
14904
14905         New module 'unicase/special-casing'.
14906         * lib/unicase/special-casing.h: New file.
14907         * lib/unicase/special-casing.c: New file.
14908         * lib/unicase/special-casing-table.gperf: New file, generated by
14909         gen-uni-tables.c.
14910         * modules/unicase/special-casing: New file.
14911
14912         Tests for module 'unicase/locale-language'.
14913         * modules/unicase/locale-language-tests: New file.
14914         * tests/unicase/test-locale-language.sh: New file.
14915         * tests/unicase/test-locale-language.c: New file.
14916
14917         New module 'unicase/locale-language'.
14918         * lib/unicase/locale-language.c: New file.
14919         * lib/unicase/locale-languages.gperf: New file.
14920         * modules/unicase/locale-language: New file.
14921
14922         Generate more tables for case conversion and case folding.
14923         * lib/gen-uni-tables.c (SCC_*): New enum items.
14924         (struct special_casing_rule): New type.
14925         (casing_rules, num_casing_rules, allocated_casing_rules): New
14926         variables.
14927         (add_casing_rule, fill_casing_rules): New functions.
14928         (struct casefold_rule): New type.
14929         (casefolding_rules, num_casefolding_rules,
14930         allocated_casefolding_rules): New variables.
14931         (fill_casefolding_rules): New function.
14932         (unicode_casefold): New variable.
14933         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14934         sort_casing_rules, output_casing_rules): New functions.
14935         (main): Accept to more arguments: SpecialCasing.txt and
14936         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14937         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14938         Output mapping for casefolding.
14939
14940         * lib/unicase.h: Include stdbool.h, uninorm.h.
14941         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14942         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14943         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14944         arguments.
14945         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14946         resultp arguments.
14947         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14948         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14949         resultp arguments.
14950         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14951         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14952         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14953         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14954         declarations.
14955         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14956
14957 2009-03-08  Bruno Haible  <bruno@clisp.org>
14958
14959         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14960         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14961         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14962         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14963
14964 2009-03-07  Bruno Haible  <bruno@clisp.org>
14965
14966         Adjust u*_normcmp, u*_normcoll API.
14967         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14968         u16_normcoll, u32_normcoll): Change failure conventions.
14969         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14970         errno and return -1.
14971         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14972
14973 2009-03-07  Bruno Haible  <bruno@clisp.org>
14974
14975         Tests for module 'uninorm/u32-normcoll'.
14976         * modules/uninorm/u32-normcoll-tests: New file.
14977         * tests/uninorm/test-u32-normcoll.c: New file.
14978
14979         Tests for module 'uninorm/u16-normcoll'.
14980         * modules/uninorm/u16-normcoll-tests: New file.
14981         * tests/uninorm/test-u16-normcoll.c: New file.
14982
14983         Tests for module 'uninorm/u8-normcoll'.
14984         * modules/uninorm/u8-normcoll-tests: New file.
14985         * tests/uninorm/test-u8-normcoll.c: New file.
14986
14987 2009-03-07  Bruno Haible  <bruno@clisp.org>
14988
14989         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14990         tests/uninorm/test-u32-normcmp.c.
14991         * tests/uninorm/test-u32-normcmp.c: Include it.
14992         (test_nonascii): New function, extracted from main. Add some more
14993         tests.
14994         (main): Invoke test_ascii and test_nonascii.
14995         * modules/uninorm/u32-normcmp-tests (Files): Add
14996         tests/uninorm/test-u32-normcmp.h.
14997         (Depends-on): Remove uninorm/u32-normcmp.
14998
14999         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15000         tests/uninorm/test-u16-normcmp.c.
15001         * tests/uninorm/test-u16-normcmp.c: Include it.
15002         (test_nonascii): New function, extracted from main. Add some more
15003         tests.
15004         (main): Invoke test_ascii and test_nonascii.
15005         * modules/uninorm/u16-normcmp-tests (Files): Add
15006         tests/uninorm/test-u16-normcmp.h.
15007         (Depends-on): Remove uninorm/u16-normcmp.
15008
15009         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15010         tests/uninorm/test-u8-normcmp.c.
15011         * tests/uninorm/test-u8-normcmp.c: Include it.
15012         (test_nonascii): New function, extracted from main. Add some more
15013         tests.
15014         (main): Invoke test_ascii and test_nonascii.
15015         * modules/uninorm/u8-normcmp-tests (Files): Add
15016         tests/uninorm/test-u8-normcmp.h.
15017         (Depends-on): Remove uninorm/u8-normcmp.
15018
15019 2009-03-07  Bruno Haible  <bruno@clisp.org>
15020
15021         New module 'uninorm/u32-normcoll'.
15022         * lib/uninorm/u32-normcoll.c: New file.
15023         * modules/uninorm/u32-normcoll: New file.
15024
15025         New module 'uninorm/u16-normcoll'.
15026         * lib/uninorm/u16-normcoll.c: New file.
15027         * modules/uninorm/u16-normcoll: New file.
15028
15029         New module 'uninorm/u8-normcoll'.
15030         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15031         declarations.
15032         * lib/uninorm/u8-normcoll.c: New file.
15033         * lib/uninorm/u-normcoll.h: New file.
15034         * modules/uninorm/u8-normcoll: New file.
15035
15036         New module 'uninorm/u32-normxfrm'.
15037         * lib/uninorm/u32-normxfrm.c: New file.
15038         * modules/uninorm/u32-normxfrm: New file.
15039
15040         New module 'uninorm/u16-normxfrm'.
15041         * lib/uninorm/u16-normxfrm.c: New file.
15042         * modules/uninorm/u16-normxfrm: New file.
15043
15044         New module 'uninorm/u8-normxfrm'.
15045         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15046         declarations.
15047         * lib/uninorm/u8-normxfrm.c: New file.
15048         * lib/uninorm/u-normxfrm.h: New file.
15049         * modules/uninorm/u8-normxfrm: New file.
15050
15051 2009-03-07  Bruno Haible  <bruno@clisp.org>
15052
15053         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15054         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15055         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15056
15057 2009-03-07  Bruno Haible  <bruno@clisp.org>
15058
15059         New module 'memxfrm'.
15060         * lib/memxfrm.h: New file.
15061         * lib/memxfrm.c: New file.
15062         * modules/memxfrm: New file.
15063
15064 2009-03-07  Bruno Haible  <bruno@clisp.org>
15065
15066         New module 'memcmp2'.
15067         * lib/memcmp2.h: New file.
15068         * lib/memcmp2.c: New file.
15069         * modules/memcmp2: New file.
15070
15071 2009-03-07  Bruno Haible  <bruno@clisp.org>
15072
15073         Tests for module 'uninorm/decomposing-form'.
15074         * modules/uninorm/decomposing-form-tests: New file.
15075         * tests/uninorm/test-decomposing-form.c: New file.
15076
15077         New module 'uninorm/decomposing-form'.
15078         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15079         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15080         Add 'decomposing_variant' field.
15081         * lib/uninorm/decomposing-form.c: New file.
15082         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15083         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15084         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15085         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15086         * modules/uninorm/decomposing-form: New file.
15087         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15088         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15089
15090 2009-03-07  Bruno Haible  <bruno@clisp.org>
15091
15092         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15093         strings.
15094
15095 2009-03-06  Bruno Haible  <bruno@clisp.org>
15096
15097         Tests for module 'uninorm/u32-normcmp'.
15098         * tests/uninorm/test-u32-normcmp.c: New file.
15099         * modules/uninorm/u32-normcmp-tests: New file.
15100
15101         Tests for module 'uninorm/u16-normcmp'.
15102         * tests/uninorm/test-u16-normcmp.c: New file.
15103         * modules/uninorm/u16-normcmp-tests: New file.
15104
15105         Tests for module 'uninorm/u8-normcmp'.
15106         * tests/uninorm/test-u8-normcmp.c: New file.
15107         * modules/uninorm/u8-normcmp-tests: New file.
15108
15109         New module 'uninorm/u32-normcmp'.
15110         * lib/uninorm/u32-normcmp.c: New file.
15111         * modules/uninorm/u32-normcmp: New file.
15112
15113         New module 'uninorm/u16-normcmp'.
15114         * lib/uninorm/u16-normcmp.c: New file.
15115         * modules/uninorm/u16-normcmp: New file.
15116
15117         New module 'uninorm/u8-normcmp'.
15118         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15119         declarations.
15120         * lib/uninorm/u8-normcmp.c: New file.
15121         * lib/uninorm/u-normcmp.h: New file.
15122         * modules/uninorm/u8-normcmp: New file.
15123
15124 2009-03-06  Bruno Haible  <bruno@clisp.org>
15125
15126         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15127         Reported by Eric Blake.
15128
15129 2009-03-06  Eric Blake  <ebb9@byu.net>
15130             Bruno Haible  <bruno@clisp.org>
15131
15132         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15133         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15134         condition.
15135         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15136         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15137         condition.
15138         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15139
15140 2009-03-06  Eric Blake  <ebb9@byu.net>
15141
15142         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15143         to avoid compiler warnings.
15144         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15145
15146 2009-03-05  Bruno Haible  <bruno@clisp.org>
15147
15148         * tests/test-ftell.c (main): Disable test beyond end of file on
15149         FreeMiNT.
15150         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15151
15152 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15153
15154         * lib/filevercmp.c: Move hidden files up in ordering.
15155         * tests/test-filevercmp.c: Add tests for hidden files.
15156
15157 2009-03-04  Bruno Haible  <bruno@clisp.org>
15158
15159         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15160         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15161         AM_CFLAGS.
15162         Reported by Simon Josefsson.
15163
15164 2009-03-03  Bruno Haible  <bruno@clisp.org>
15165
15166         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15167         Reported by Simon Josefsson.
15168
15169         * doc/ld-version-script.texi: Update node reference.
15170
15171 2009-03-03  Bruno Haible  <bruno@clisp.org>
15172
15173         * modules/visibility (License): Change to 'unlimited'.
15174         Suggested by Simon Josefsson.
15175
15176 2009-03-03  Jim Meyering  <meyering@redhat.com>
15177
15178         unlinkdir: cannot_unlink_dir may modify process state
15179         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15180         it's neither thread-safe nor appropriate for use in a library.
15181
15182 2009-03-03  Eric Blake  <ebb9@byu.net>
15183
15184         test-closein: silence test under Darwin
15185         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15186         care if it dies from EPIPE or EBADF.
15187
15188 2009-03-03  Bruno Haible  <bruno@clisp.org>
15189
15190         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15191         earlier.
15192         * doc/visibility.texi: Fix @node and @section.
15193
15194 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15195
15196         * doc/gnulib.texi: Link to sections for ld version script and
15197         visibility.
15198         * doc/visibility.texi: Add @node and @section.
15199         * modules/ld-version-script: New module.
15200         * m4/ld-version-script.m4: New file.
15201         * doc/ld-version-script.texi: New file.
15202
15203 2009-03-02  David Lutterkort  <lutter@redhat.com>
15204
15205         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15207
15208 2009-03-02  Bruno Haible  <bruno@clisp.org>
15209
15210         * doc/visibility.texi: Mention libtool's -export-symbols option.
15211
15212 2009-03-02  Jim Meyering  <meyering@redhat.com>
15213
15214         announce-gen: new option: --no-print-checksums
15215         * build-aux/announce-gen (usage): Describe it.
15216         (print_checksums): Print a newline here, not in the [*] footnote.
15217         (main): Honor it.
15218
15219 2009-03-01  Bruno Haible  <bruno@clisp.org>
15220
15221         Use socklen_t in the native Windows replacements prototypes.
15222         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15223         instead of 'int'.
15224         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15225         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15226         * modules/getsockopt (Depends-on): Add socklen.
15227         * modules/setsockopt (Depends-on): Add socklen.
15228
15229 2009-03-01  Bruno Haible  <bruno@clisp.org>
15230
15231         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15232         least 4.2.
15233
15234 2009-03-01  Eric Blake  <ebb9@byu.net>
15235             Bruno Haible  <bruno@clisp.org>
15236
15237         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15238         error messages.
15239         * lib/wait-process.c (wait_subprocess): Omit error message about
15240         deadly signal sent to the child of termsigp != NULL.
15241
15242 2009-03-01  Eric Blake  <ebb9@byu.net>
15243
15244         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15245
15246 2009-03-01  Bruno Haible  <bruno@clisp.org>
15247
15248         Avoid a gcc warning.
15249         * tests/test-sched.c (b): Make global.
15250         Reported by Eric Blake.
15251
15252 2009-01-19  Martin Lambers  <marlam@marlam.de>
15253
15254         Provide POSIX semantics for socket timeout options on W32.
15255         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15256         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15257         * modules/setsockopt: Depend on sys_time module for struct timeval.
15258         * modules/getsockopt: Depend on sys_time module for struct timeval.
15259
15260 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15261
15262         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15263         __USE_GNU, for consistency with netdb.in.h.
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/fseeko.c (rpl_fseeko): Complete last commit.
15270         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15271
15272 2009-03-01  Bruno Haible  <bruno@clisp.org>
15273
15274         More support for FreeMiNT.
15275         * lib/fpurge.c (fpurge): Correct last commit.
15276         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15277
15278 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15279
15280         Fix unportable awk script in vc-list-files.
15281         * build-aux/vc-list-files: In the replacement awk script, use
15282         substr with a second argument of 1, not zero.
15283         Report by Simon Josefsson.
15284
15285 2009-02-28  Bruno Haible  <bruno@clisp.org>
15286
15287         More support for FreeMiNT.
15288         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15289         to FreeMiNT today.
15290         * lib/fwriting.c (fwriting): Likewise.
15291         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15292
15293 2009-02-28  Bruno Haible  <bruno@clisp.org>
15294
15295         * tests/test-freadseek.c (main): Disable test beyond end of file on
15296         FreeMiNT.
15297         * tests/test-ftello.c (main): Likewise.
15298         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15299
15300 2009-02-28  Bruno Haible  <bruno@clisp.org>
15301
15302         Add tentative support for FreeMiNT.
15303         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15304         * lib/fpurge.c (fpurge): Likewise.
15305         * lib/freadable.c (freadable): Likewise.
15306         * lib/freading.c (freading): Likewise.
15307         * lib/freadptr.c (freadptr): Likewise.
15308         * lib/freadseek.c (freadptrinc): Likewise.
15309         * lib/fseeko.c (rpl_fseeko): Likewise.
15310         * lib/fseterr.c (fseterr): Likewise.
15311         * lib/fwritable.c (fwritable): Likewise.
15312         * lib/fwriting.c (fwriting): Likewise.
15313         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15314         Hourihane.
15315         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15316
15317 2009-02-28  Bruno Haible  <bruno@clisp.org>
15318
15319         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15320         SIGCHLD.
15321         Reported by Jim Meyering.
15322
15323 2009-02-28  Bruno Haible  <bruno@clisp.org>
15324
15325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15326         Mention the results of these tests on various platforms.
15327         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15328         order.
15329         * doc/posix-functions/printf.texi: Likewise.
15330         * doc/posix-functions/snprintf.texi: Likewise.
15331         * doc/posix-functions/sprintf.texi: Likewise.
15332         * doc/posix-functions/vfprintf.texi: Likewise.
15333         * doc/posix-functions/vprintf.texi: Likewise.
15334         * doc/posix-functions/vsnprintf.texi: Likewise.
15335         * doc/posix-functions/vsprintf.texi: Likewise.
15336         * doc/glibc-functions/obstack_printf.texi: Likewise.
15337         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15338
15339 2009-02-28  Bruno Haible  <bruno@clisp.org>
15340
15341         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15342         Reported by Loïc Minier <lool@dooz.org>.
15343
15344 2009-02-27  Bruno Haible  <bruno@clisp.org>
15345
15346         * gnulib-tool (func_import): Make the sed expression used to create the
15347         sed script for updating the .gitignore file POSIX compliant.
15348         Reported by Eric Blake.
15349
15350 2009-02-27  Bruno Haible  <bruno@clisp.org>
15351
15352         * gnulib-tool (sed): Don't alias as "sed --posix".
15353         Reported by Eric Blake.
15354
15355 2009-02-27  Bruno Haible  <bruno@clisp.org>
15356
15357         Avoid test link errors.
15358         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15359         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15360         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15361         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15363
15364 2009-02-27  Bruno Haible  <bruno@clisp.org>
15365
15366         Avoid spurious "(cached)" in configure output.
15367         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15368         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15369         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15370         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15371         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15372         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15373         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15374         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15375         Reported by Eric Blake.
15376
15377 2009-02-27  Eric Blake  <ebb9@byu.net>
15378
15379         printf: fix regression in previous patch
15380         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15381
15382 2009-02-27  Bruno Haible  <bruno@clisp.org>
15383
15384         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15385         value.
15386         * lib/stdint.in.h: Likewise.
15387         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15388
15389 2009-02-27  Eric Blake  <ebb9@byu.net>
15390
15391         doc: mention more functions added in cygwin 1.7.0
15392         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15393         addition.
15394         * doc/posix-functions/open_wmemstream.texi: Likewise.
15395         * doc/posix-functions/wcsnlen.texi: Likewise.
15396         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15397         * doc/posix-functions/wcstod.texi: Likewise.
15398         * doc/posix-functions/wcstof.texi: Likewise.
15399         * doc/posix-functions/wcstoimax.texi: Likewise.
15400         * doc/posix-functions/wcstok.texi: Likewise.
15401         * doc/posix-functions/wcstoumax.texi: Likewise.
15402
15403         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15404         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15405         * doc/posix-functions/fprintf.texi: Update.
15406         * doc/posix-functions/printf.texi: Update.
15407         * doc/posix-functions/snprintf.texi: Update.
15408         * doc/posix-functions/sprintf.texi: Update.
15409         * doc/posix-functions/vfprintf.texi: Update.
15410         * doc/posix-functions/vprintf.texi: Update.
15411         * doc/posix-functions/vsnprintf.texi: Update.
15412         * doc/posix-functions/vsprintf.texi: Update.
15413         * doc/glibc-functions/obstack_printf.texi: Update.
15414         * doc/glibc-functions/obstack_vprintf.texi: Update.
15415
15416 2009-02-26  Eric Blake  <ebb9@byu.net>
15417
15418         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15419         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15420         compilation bug by using runtime conversion.
15421         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15422         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15423         * modules/ceill-tests (Files): Use nan.h.
15424         * modules/floorl-tests (Files): Likewise.
15425         * modules/frexpl-tests (Files): Likewise.
15426         * modules/isnanl-tests (Files): Likewise.
15427         * modules/ldexpl-tests (Files): Likewise.
15428         * modules/roundl-tests (Files): Likewise.
15429         * modules/truncl-tests (Files): Likewise.
15430         * tests/test-ceill.c (main): Use a working NaN.
15431         * tests/test-floorl.c (main): Likewise.
15432         * tests/test-frexpl.c (main): Likewise.
15433         * tests/test-isnan.c (test_long_double): Likewise.
15434         * tests/test-isnanl.h (main): Likewise.
15435         * tests/test-ldexpl.h (main): Likewise.
15436         * tests/test-roundl.h (main): Likewise.
15437         * tests/test-truncl.h (main): Likewise.
15438         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15439
15440 2009-02-26  Eric Blake  <ebb9@byu.net>
15441             Bruno Haible  <bruno@clisp.org>
15442
15443         Work around a *printf bug with %ls on Solaris.
15444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15445         precision is specified, sprintf stops converting the wide string
15446         argument when the number of bytes that have been produced by this
15447         conversion equals or exceeds the precision.
15448         * doc/posix-functions/fprintf.texi: Update.
15449         * doc/posix-functions/printf.texi: Update.
15450         * doc/posix-functions/snprintf.texi: Update.
15451         * doc/posix-functions/sprintf.texi: Update.
15452         * doc/posix-functions/vfprintf.texi: Update.
15453         * doc/posix-functions/vprintf.texi: Update.
15454         * doc/posix-functions/vsnprintf.texi: Update.
15455         * doc/posix-functions/vsprintf.texi: Update.
15456         * doc/glibc-functions/obstack_printf.texi: Update.
15457         * doc/glibc-functions/obstack_vprintf.texi: Update.
15458
15459 2009-02-26  Eric Blake  <ebb9@byu.net>
15460
15461         stdlib: favor compiler check of random.h
15462         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15463         to avoid an ObjC random.h installed by Swarm.
15464
15465 2009-02-26  Bruno Haible  <bruno@clisp.org>
15466
15467         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15468         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15469         Reported by Gary V. Vaughan <gary@gnu.org>.
15470
15471 2009-02-26  Bruno Haible  <bruno@clisp.org>
15472
15473         Fix *printf behaviour regarding the %ls directive.
15474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15475         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15476         NEED_PRINTF_DIRECTIVE_LS.
15477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15478         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15480         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15481         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15482         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15483         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15488         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15492         * doc/posix-functions/fprintf.texi: Update.
15493         * doc/posix-functions/printf.texi: Update.
15494         * doc/posix-functions/snprintf.texi: Update.
15495         * doc/posix-functions/sprintf.texi: Update.
15496         * doc/posix-functions/vfprintf.texi: Update.
15497         * doc/posix-functions/vprintf.texi: Update.
15498         * doc/posix-functions/vsnprintf.texi: Update.
15499         * doc/posix-functions/vsprintf.texi: Update.
15500         * doc/glibc-functions/obstack_printf.texi: Update.
15501         * doc/glibc-functions/obstack_vprintf.texi: Update.
15502         Reported by Eric Blake.
15503
15504 2009-02-25  Bruno Haible  <bruno@clisp.org>
15505
15506         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15507         with known value.
15508         Reported by Gary V. Vaughan <gary@gnu.org>.
15509
15510 2009-02-25  Bruno Haible  <bruno@clisp.org>
15511
15512         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15513         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15514         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15515         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15516         Reported by Gary V. Vaughan <gary@gnu.org>.
15517
15518 2009-02-25  Bruno Haible  <bruno@clisp.org>
15519
15520         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15521         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15522         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15523         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15524         Reported by Gary V. Vaughan <gary@gnu.org>.
15525
15526 2009-02-25  Eric Blake  <ebb9@byu.net>
15527
15528         tests: skip fseek/ftell tests if ungetc is broken
15529         * m4/ungetc.m4: New file.
15530         * modules/fseek-tests: Split test, so ungetc dependency is
15531         separate from rest of test.
15532         * modules/fseeko-tests: Likewise.
15533         * modules/ftell-tests: Likewise.
15534         * modules/ftello-tests: Likewise.
15535         * tests/test-fseek.c (main): Isolate ungetc dependency.
15536         * tests/test-fseeko.c (main): Likewise.
15537         * tests/test-ftell.c (main): Likewise.
15538         * tests/test-ftello.c (main): Likewise.
15539         * tests/test-fseek2.sh: New file.
15540         * tests/test-fseeko2.sh: Likewise.
15541         * tests/test-ftell2.sh: Likewise.
15542         * tests/test-ftello2.sh: Likewise.
15543
15544 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
15545
15546         test-getaddrinfo: fix usage of skip return code 77
15547         * tests/test-gettaddrinfo.c: Return skip code 77 only
15548         for first occurance of skip (4x77 is not 77)
15549
15550 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15551
15552         strtod: avoid C99 decl-after-statement
15553         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15554
15555 2009-02-24  Eric Blake  <ebb9@byu.net>
15556
15557         strtod: detect HP-UX 11.31 bug
15558         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15559         Reported by Gary V. Vaughan.
15560
15561 2009-02-23  Bruno Haible  <bruno@clisp.org>
15562
15563         Fix invalid read past end of memory block.
15564         * lib/vasnprintf.c (DCHAR_SET): Define.
15565         (local_wcslen): Define only when needed.
15566         (local_strnlen, local_wcsnlen): New functions.
15567         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15568         directives that involve a conversion ourselves.
15569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15570         wcsnlen, mbrtowc, wcrtomb.
15571         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15572         * tests/test-vasprintf-posix.c (test_function): Likewise.
15573         * tests/test-snprintf-posix.h (test_function): Likewise.
15574         * tests/test-sprintf-posix.h (test_function): Likewise.
15575         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15576
15577 2009-02-22  Bruno Haible  <bruno@clisp.org>
15578
15579         Implement new clarified decomposition of Hangul syllables.
15580         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15581         of type LTV, return only a pairwise decomposition.
15582         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15583         Likewise.
15584         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15585         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15586         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15587
15588 2009-02-22  Bruno Haible  <bruno@clisp.org>
15589
15590         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15591         zero-length results and shrink excess allocated memory.
15592         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15593         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15594         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15595         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15596         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15597         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15598         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15599         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15600         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15601         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15602         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15603         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15604
15605 2009-02-21  Bruno Haible  <bruno@clisp.org>
15606
15607         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15608         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15609         spaces after a period. Put a space between a macro name and its
15610         argument list. Trivial rewordings.
15611         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15612         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15613         (main): Return 0 explicitly.
15614
15615 2009-02-21  Bruno Haible  <bruno@clisp.org>
15616
15617         Tests for module 'uninorm/filter'.
15618         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15619         * modules/uninorm/filter-tests: New file.
15620
15621         New module 'uninorm/filter'.
15622         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15623         uninorm_filter_flush, uninorm_filter_free): New declarations.
15624         * lib/uninorm/uninorm-filter.c: New file.
15625         * modules/uninorm/filter: New file.
15626
15627 2009-02-21  Bruno Haible  <bruno@clisp.org>
15628
15629         Tests for module 'uninorm/nfkc'.
15630         * tests/uninorm/test-nfkc.c: New file.
15631         * tests/uninorm/test-u8-nfkc.c: New file.
15632         * tests/uninorm/test-u16-nfkc.c: New file.
15633         * tests/uninorm/test-u32-nfkc.c: New file.
15634         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15635         * tests/uninorm/test-u32-nfkc-big.c: New file.
15636         * modules/uninorm/nfkc-tests: New file.
15637
15638         New module 'uninorm/nfkc'.
15639         * lib/uninorm/nfkc.c: New file.
15640         * modules/uninorm/nfkc: New file.
15641
15642         Tests for module 'uninorm/nfkd'.
15643         * tests/uninorm/test-nfkd.c: New file.
15644         * tests/uninorm/test-u8-nfkd.c: New file.
15645         * tests/uninorm/test-u16-nfkd.c: New file.
15646         * tests/uninorm/test-u32-nfkd.c: New file.
15647         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15648         * tests/uninorm/test-u32-nfkd-big.c: New file.
15649         * modules/uninorm/nfkd-tests: New file.
15650
15651         New module 'uninorm/nfkd'.
15652         * lib/uninorm/nfkd.c: New file.
15653         * modules/uninorm/nfkd: New file.
15654
15655         Tests for module 'uninorm/nfc'.
15656         * tests/uninorm/test-nfc.c: New file.
15657         * tests/uninorm/test-u8-nfc.c: New file.
15658         * tests/uninorm/test-u16-nfc.c: New file.
15659         * tests/uninorm/test-u32-nfc.c: New file.
15660         * tests/uninorm/test-u32-nfc-big.sh: New file.
15661         * tests/uninorm/test-u32-nfc-big.c: New file.
15662         * modules/uninorm/nfc-tests: New file.
15663
15664         New module 'uninorm/nfc'.
15665         * lib/uninorm/nfc.c: New file.
15666         * modules/uninorm/nfc: New file.
15667
15668         Tests for module 'uninorm/nfd'.
15669         * tests/uninorm/test-nfd.c: New file.
15670         * tests/uninorm/test-u8-nfd.c: New file.
15671         * tests/uninorm/test-u16-nfd.c: New file.
15672         * tests/uninorm/test-u32-nfd.c: New file.
15673         * tests/uninorm/test-u32-nfd-big.sh: New file.
15674         * tests/uninorm/test-u32-nfd-big.c: New file.
15675         * tests/uninorm/test-u32-normalize-big.h: New file.
15676         * tests/uninorm/test-u32-normalize-big.c: New file.
15677         * tests/uninorm/NormalizationTest.txt: New file, created from
15678         Unicode 5.1.0 NormalizationTest.txt.
15679         * modules/uninorm/nfd-tests: New file.
15680
15681         New module 'uninorm/nfd'.
15682         * lib/uninorm/nfd.c: New file.
15683         * modules/uninorm/nfd: New file.
15684
15685         New module 'uninorm/u32-normalize'.
15686         * lib/uninorm/u32-normalize.c: New file.
15687         * modules/uninorm/u32-normalize: New file.
15688
15689         New module 'uninorm/u16-normalize'.
15690         * lib/uninorm/u16-normalize.c: New file.
15691         * modules/uninorm/u16-normalize: New file.
15692
15693         New module 'uninorm/u8-normalize'.
15694         * lib/uninorm/u8-normalize.c: New file.
15695         * lib/uninorm/normalize-internal.h: New file.
15696         * lib/uninorm/u-normalize-internal.h: New file.
15697         * modules/uninorm/u8-normalize: New file.
15698
15699         New module 'uninorm/decompose-internal'.
15700         * lib/uninorm/decompose-internal.c: New file.
15701         * modules/uninorm/decompose-internal: New file.
15702
15703         Tests for module 'uninorm/composition'.
15704         * tests/uninorm/test-composition.c: New file.
15705         * modules/uninorm/composition-tests: New file.
15706
15707         New module 'uninorm/composition'.
15708         * lib/uninorm/composition.c: New file.
15709         * lib/uninorm/composition-table.gperf: New file, generated by
15710         gen-uni-tables.
15711         * modules/uninorm/composition: New file.
15712
15713         Tests for module 'uninorm/compat-decomposition'.
15714         * tests/uninorm/test-compat-decomposition.c: New file.
15715         * modules/uninorm/compat-decomposition-tests: New file.
15716
15717         New module 'uninorm/compat-decomposition'.
15718         * lib/uninorm/decompose-internal.h: New file.
15719         * lib/uninorm/compat-decomposition.c: New file.
15720         * modules/uninorm/compat-decomposition: New file.
15721
15722         Tests for module 'uninorm/canonical-decomposition'.
15723         * tests/uninorm/test-canonical-decomposition.c: New file.
15724         * modules/uninorm/canonical-decomposition-tests: New file.
15725
15726         New module 'uninorm/canonical-decomposition'.
15727         * lib/uninorm/canonical-decomposition.c: New file.
15728         * modules/uninorm/canonical-decomposition: New file.
15729
15730         Tests for module 'uninorm/decomposition'.
15731         * tests/uninorm/test-decomposition.c: New file.
15732         * modules/uninorm/decomposition-tests: New file.
15733
15734         New module 'uninorm/decomposition'.
15735         * lib/uninorm/decomposition.c: New file.
15736         * modules/uninorm/decomposition: New file.
15737
15738         New module 'uninorm/decomposition-table'.
15739         * lib/uninorm/decomposition-table.h: New file.
15740         * lib/uninorm/decomposition-table.c: New file.
15741         * lib/uninorm/decomposition-table1.h: New file, generated by
15742         gen-uni-tables.
15743         * lib/uninorm/decomposition-table2.h: New file, generated by
15744         gen-uni-tables.
15745         * modules/uninorm/decomposition-table: New file.
15746
15747         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15748         (UC_DECOMP_*): New enumeration items.
15749         (get_decomposition): New function.
15750         (struct decomp_table): New type.
15751         (output_decomposition, output_decomposition_tables): New functions.
15752         (unicode_composition_exclusions): New variable.
15753         (fill_composition_exclusions, debug_output_composition_tables): New
15754         functions.
15755         (main): Accept one more argument. Invoke fill_composition_exclusions.
15756         Output decomposition and composition tables.
15757
15758         New module 'uninorm/base'.
15759         * lib/uninorm.h: New file.
15760         * lib/unictype.h: Update comment.
15761         * modules/uninorm/base: New file.
15762
15763 2009-02-21  David Lutterkort  <lutter@redhat.com>
15764
15765         Tests for module 'safe-alloc'.
15766         * tests/test-safe-alloc.c: New file.
15767         * modules/safe-alloc-tests: New file.
15768
15769         New module 'safe-alloc'.
15770         * lib/safe-alloc.h: New file.
15771         * lib/safe-alloc.c: New file.
15772         * m4/safe-alloc.m4: New file.
15773         * modules/safe-alloc: New file.
15774         * doc/safe-alloc.texi: New file.
15775         * doc/gnulib.texi: Include it.
15776         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15777         safe-alloc.
15778
15779 2009-02-18  Bruno Haible  <bruno@clisp.org>
15780
15781         Fix link error on non-glibc systems.
15782         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15783         variable.
15784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15785
15786 2009-02-18  Jim Meyering  <meyering@redhat.com>
15787
15788         fts: avoid used-uninitialized error due to recent change
15789         * lib/fts.c (fts_read): Guard uses of the new member,
15790         parent->fts_n_dirs_remaining, since it's not relevant for
15791         the parent of a directory specified on the command-line.
15792
15793 2009-02-17  James Youngman  <jay@gnu.org>
15794             Bruno Haible  <bruno@clisp.org>
15795
15796         * m4/include_next.m4: Reformulate comment.
15797
15798 2009-02-16  Jim Meyering  <meyering@redhat.com>
15799
15800         fts: add #if guards so that the fts_lgpl module still builds
15801         * lib/fts.c: Guard just-added hash-table-using parts with
15802         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15803         Reported by Simon Josefsson.
15804
15805 2009-02-15  Bruno Haible  <bruno@clisp.org>
15806
15807         * modules/array-mergesort-tests: New file.
15808         * tests/test-array-mergesort.c: New file.
15809
15810         New module 'array-mergesort'.
15811         * modules/array-mergesort: New file.
15812         * lib/array-mergesort.h: New file.
15813
15814 2009-02-15  Bruno Haible  <bruno@clisp.org>
15815
15816         Fix 2009-02-07 commit.
15817         * lib/gen-uni-tables.c (output_predicate, output_category,
15818         output_combclass, output_bidi_category, output_decimal_digit,
15819         output_digit, output_numeric, output_mirror, output_scripts,
15820         output_ident_category, output_simple_mapping): Fix format directives.
15821         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15822
15823 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15824
15825         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15826         fixes are available from IBM.
15827
15828 2009-02-13  Jim Meyering  <meyering@redhat.com>
15829
15830         fts: arrange not to stat non-directories in more cases
15831         This makes GNU find (when it doesn't need to stat each file)
15832         *much* more efficient at traversing reiserfs file systems.
15833         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15834         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15835         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15836         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15837         (leaf_optimization_applies): New function.
15838         (LCO_hash, LCO_compare): New helper functions.
15839         (link_count_optimize_ok): New function.
15840         (fts_stat): Initialize new member (if dir).
15841         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15842         we've just stat'ed a directory.  Skip the stat call when possible.
15843         ---
15844         Note this AFS-related exchange:
15845         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15846         and note find's pioctl call in find/fstype.c.
15847         But that is necessary only if you want to enable the
15848         optimization for AFS, and for now, I don't.
15849
15850         fts: move a function definition "up" (no semantic change)
15851         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15852         "up" to precede upcoming use of a related function.
15853
15854 2009-02-11  Jim Meyering  <meyering@redhat.com>
15855
15856         fts: correct internal computation of nlinks (optimization-related)
15857         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15858         whether the current entry is a directory, so don't test it.
15859
15860 2009-02-10  Bruno Haible  <bruno@clisp.org>
15861
15862         Tests for module 'uniwbrk/ulc-wordbreaks'.
15863         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15864         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15865         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15866
15867         Tests for module 'uniwbrk/u32-wordbreaks'.
15868         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15869         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15870
15871         Tests for module 'uniwbrk/u16-wordbreaks'.
15872         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15873         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15874
15875         Tests for module 'uniwbrk/u8-wordbreaks'.
15876         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15877         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15878
15879 2009-02-10  Bruno Haible  <bruno@clisp.org>
15880
15881         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15882         property.
15883         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15884         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15885         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15886
15887 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15888
15889         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15890         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15891
15892 2009-02-10  Bruno Haible  <bruno@clisp.org>
15893
15894         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15895         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15896         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15897         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15898         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15899         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15900
15901 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15902
15903         * lib/sockets.h (gl_fd_to_handle): New function.
15904
15905         * tests/test-sockets.c: Call gl_fd_to_handle.
15906
15907 2009-02-09  Bruno Haible  <bruno@clisp.org>
15908
15909         * doc/havelib.texi: Document the conventions on bi-arch systems.
15910
15911 2009-02-08  Bruno Haible  <bruno@clisp.org>
15912
15913         Document the AC_LIB_LINKFLAGS macro.
15914         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15915         * doc/gnulib.texi: Include it.
15916
15917 2009-02-08  Bruno Haible  <bruno@clisp.org>
15918
15919         Fix wrong order of sections, compared to TOC.
15920         * doc/gnulib.texi: Include relocatable-maint.texi after the
15921         "Regular expressions" node, not before.
15922
15923 2009-02-08  Bruno Haible  <bruno@clisp.org>
15924
15925         Tests for module 'unicase/totitle'.
15926         * modules/unicase/totitle-tests: New file.
15927
15928         Tests for module 'unicase/tolower'.
15929         * modules/unicase/tolower-tests: New file.
15930
15931         Tests for module 'unicase/toupper'.
15932         * modules/unicase/toupper-tests: New file.
15933         * tests/unicase/test-mapping-part1.h: New file.
15934         * tests/unicase/test-mapping-part2.h: New file.
15935
15936         New module 'unicase/totitle'.
15937         * modules/unicase/totitle: New file.
15938         * lib/unicase/totitle.c: New file.
15939
15940         New module 'unicase/tolower'.
15941         * modules/unicase/tolower: New file.
15942         * lib/unicase/tolower.c: New file.
15943
15944         New module 'unicase/toupper'.
15945         * modules/unicase/toupper: New file.
15946         * lib/unicase/toupper.c: New file.
15947         * lib/unicase/simple-mapping.h: New file.
15948
15949         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15950         (mapping_table): New structure.
15951         (output_simple_mapping): New function.
15952         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15953         * modules/gen-uni-tables (Description): Update.
15954         * lib/unicase/toupper.h: New file, automatically generated by
15955         gen-uni-tables.
15956         * lib/unicase/tolower.h: New file, automatically generated by
15957         gen-uni-tables.
15958         * lib/unicase/totitle.h: New file, automatically generated by
15959         gen-uni-tables.
15960         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15961         gen-uni-tables.
15962         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15963         gen-uni-tables.
15964         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15965         gen-uni-tables.
15966
15967         New module 'unicase/base'.
15968         * modules/unicase/base: New file.
15969         * lib/unicase.h: New file.
15970
15971 2009-02-08  Bruno Haible  <bruno@clisp.org>
15972
15973         New module 'uniwbrk/ulc-wordbreaks'.
15974         * modules/uniwbrk/ulc-wordbreaks: New file.
15975         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15976
15977         New module 'uniwbrk/u32-wordbreaks'.
15978         * modules/uniwbrk/u32-wordbreaks: New file.
15979         * lib/uniwbrk/u32-wordbreaks.c: New file.
15980
15981         New module 'uniwbrk/u16-wordbreaks'.
15982         * modules/uniwbrk/u16-wordbreaks: New file.
15983         * lib/uniwbrk/u16-wordbreaks.c: New file.
15984
15985         New module 'uniwbrk/u8-wordbreaks'.
15986         * modules/uniwbrk/u8-wordbreaks: New file.
15987         * lib/uniwbrk/u8-wordbreaks.c: New file.
15988         * lib/uniwbrk/u-wordbreaks.h: New file.
15989
15990         New module 'uniwbrk/table'.
15991         * modules/uniwbrk/table: New file.
15992         * lib/uniwbrk/wbrktable.h: New file.
15993         * lib/uniwbrk/wbrktable.c: New file.
15994
15995         New module 'uniwbrk/wordbreak-property'.
15996         * modules/uniwbrk/wordbreak-property: New file.
15997         * lib/uniwbrk/wordbreak-property.c: New file.
15998
15999         * lib/gen-uni-tables.c (WBP_*): New enum items.
16000         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16001         (unicode_org_wbp): New variable.
16002         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16003         New functions.
16004         (wbp_table): New structure.
16005         (output_wbp, output_wbrk_tables): New functions.
16006         (main): Accept additional argument. Invoke fill_org_wbp,
16007         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16008         output_wbrk_tables.
16009         * modules/gen-uni-tables (Description): Update.
16010         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16011         gen-uni-tables.
16012
16013         New module 'uniwbrk/base'.
16014         * modules/uniwbrk/base: New file.
16015         * lib/uniwbrk.h: New file.
16016
16017 2009-02-08  Bruno Haible  <bruno@clisp.org>
16018
16019         Update to Unicode 5.1.0.
16020         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16021         U+2185..U+2188.
16022         (is_property_default_ignorable_code_point): Don't include characters
16023         of category Cc or Cs and not-a-characters.
16024         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16025         U+0D79, U+109E, U+109F, U+A60C.
16026         * lib/unictype/bidi_of.h: Regenerated.
16027         * lib/unictype/blocks.h: Regenerated.
16028         * lib/unictype/categ_C.h: Regenerated.
16029         * lib/unictype/categ_Cf.h: Regenerated.
16030         * lib/unictype/categ_Cn.h: Regenerated.
16031         * lib/unictype/categ_L.h: Regenerated.
16032         * lib/unictype/categ_Ll.h: Regenerated.
16033         * lib/unictype/categ_Lm.h: Regenerated.
16034         * lib/unictype/categ_Lo.h: Regenerated.
16035         * lib/unictype/categ_Lu.h: Regenerated.
16036         * lib/unictype/categ_M.h: Regenerated.
16037         * lib/unictype/categ_Mc.h: Regenerated.
16038         * lib/unictype/categ_Me.h: Regenerated.
16039         * lib/unictype/categ_Mn.h: Regenerated.
16040         * lib/unictype/categ_N.h: Regenerated.
16041         * lib/unictype/categ_Nd.h: Regenerated.
16042         * lib/unictype/categ_Nl.h: Regenerated.
16043         * lib/unictype/categ_No.h: Regenerated.
16044         * lib/unictype/categ_P.h: Regenerated.
16045         * lib/unictype/categ_Pd.h: Regenerated.
16046         * lib/unictype/categ_Pe.h: Regenerated.
16047         * lib/unictype/categ_Pf.h: Regenerated.
16048         * lib/unictype/categ_Pi.h: Regenerated.
16049         * lib/unictype/categ_Po.h: Regenerated.
16050         * lib/unictype/categ_Ps.h: Regenerated.
16051         * lib/unictype/categ_S.h: Regenerated.
16052         * lib/unictype/categ_Sk.h: Regenerated.
16053         * lib/unictype/categ_Sm.h: Regenerated.
16054         * lib/unictype/categ_So.h: Regenerated.
16055         * lib/unictype/categ_of.h: Regenerated.
16056         * lib/unictype/combining.h: Regenerated.
16057         * lib/unictype/ctype_alnum.h: Regenerated.
16058         * lib/unictype/ctype_alpha.h: Regenerated.
16059         * lib/unictype/ctype_graph.h: Regenerated.
16060         * lib/unictype/ctype_lower.h: Regenerated.
16061         * lib/unictype/ctype_print.h: Regenerated.
16062         * lib/unictype/ctype_punct.h: Regenerated.
16063         * lib/unictype/ctype_upper.h: Regenerated.
16064         * lib/unictype/decdigit.h: Regenerated.
16065         * lib/unictype/digit.h: Regenerated.
16066         * lib/unictype/mirror.h: Regenerated.
16067         * lib/unictype/numeric.h: Regenerated.
16068         * lib/unictype/pr_alphabetic.h: Regenerated.
16069         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16070         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16071         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16072         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16073         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16074         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16075         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16076         * lib/unictype/pr_combining.h: Regenerated.
16077         * lib/unictype/pr_dash.h: Regenerated.
16078         * lib/unictype/pr_decimal_digit.h: Regenerated.
16079         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16080         * lib/unictype/pr_deprecated.h: Regenerated.
16081         * lib/unictype/pr_diacritic.h: Regenerated.
16082         * lib/unictype/pr_extender.h: Regenerated.
16083         * lib/unictype/pr_format_control.h: Regenerated.
16084         * lib/unictype/pr_grapheme_base.h: Regenerated.
16085         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16086         * lib/unictype/pr_grapheme_link.h: Regenerated.
16087         * lib/unictype/pr_id_continue.h: Regenerated.
16088         * lib/unictype/pr_id_start.h: Regenerated.
16089         * lib/unictype/pr_ideographic.h: Regenerated.
16090         * lib/unictype/pr_ignorable_control.h: Regenerated.
16091         * lib/unictype/pr_lowercase.h: Regenerated.
16092         * lib/unictype/pr_math.h: Regenerated.
16093         * lib/unictype/pr_numeric.h: Regenerated.
16094         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16095         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16096         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16097         * lib/unictype/pr_other_id_continue.h: Regenerated.
16098         * lib/unictype/pr_other_lowercase.h: Regenerated.
16099         * lib/unictype/pr_other_math.h: Regenerated.
16100         * lib/unictype/pr_punctuation.h: Regenerated.
16101         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16102         * lib/unictype/pr_soft_dotted.h: Regenerated.
16103         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16104         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16105         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16106         * lib/unictype/pr_uppercase.h: Regenerated.
16107         * lib/unictype/pr_xid_continue.h: Regenerated.
16108         * lib/unictype/pr_xid_start.h: Regenerated.
16109         * lib/unictype/pr_zero_width.h: Regenerated.
16110         * lib/unictype/scripts.h: Regenerated.
16111         * lib/unictype/scripts_byname.gperf: Regenerated.
16112         * lib/unictype/sy_java_ident.h: Regenerated.
16113         * lib/unilbrk/lbrkprop1.h: Regenerated.
16114         * lib/unilbrk/lbrkprop2.h: Regenerated.
16115         * tests/unictype/test-categ_C.c: Regenerated.
16116         * tests/unictype/test-categ_Cf.c: Regenerated.
16117         * tests/unictype/test-categ_Cn.c: Regenerated.
16118         * tests/unictype/test-categ_L.c: Regenerated.
16119         * tests/unictype/test-categ_Ll.c: Regenerated.
16120         * tests/unictype/test-categ_Lm.c: Regenerated.
16121         * tests/unictype/test-categ_Lo.c: Regenerated.
16122         * tests/unictype/test-categ_Lu.c: Regenerated.
16123         * tests/unictype/test-categ_M.c: Regenerated.
16124         * tests/unictype/test-categ_Mc.c: Regenerated.
16125         * tests/unictype/test-categ_Me.c: Regenerated.
16126         * tests/unictype/test-categ_Mn.c: Regenerated.
16127         * tests/unictype/test-categ_N.c: Regenerated.
16128         * tests/unictype/test-categ_Nd.c: Regenerated.
16129         * tests/unictype/test-categ_Nl.c: Regenerated.
16130         * tests/unictype/test-categ_No.c: Regenerated.
16131         * tests/unictype/test-categ_P.c: Regenerated.
16132         * tests/unictype/test-categ_Pd.c: Regenerated.
16133         * tests/unictype/test-categ_Pe.c: Regenerated.
16134         * tests/unictype/test-categ_Pf.c: Regenerated.
16135         * tests/unictype/test-categ_Pi.c: Regenerated.
16136         * tests/unictype/test-categ_Po.c: Regenerated.
16137         * tests/unictype/test-categ_Ps.c: Regenerated.
16138         * tests/unictype/test-categ_S.c: Regenerated.
16139         * tests/unictype/test-categ_Sk.c: Regenerated.
16140         * tests/unictype/test-categ_Sm.c: Regenerated.
16141         * tests/unictype/test-categ_So.c: Regenerated.
16142         * tests/unictype/test-ctype_alnum.c: Regenerated.
16143         * tests/unictype/test-ctype_alpha.c: Regenerated.
16144         * tests/unictype/test-ctype_graph.c: Regenerated.
16145         * tests/unictype/test-ctype_lower.c: Regenerated.
16146         * tests/unictype/test-ctype_print.c: Regenerated.
16147         * tests/unictype/test-ctype_punct.c: Regenerated.
16148         * tests/unictype/test-ctype_upper.c: Regenerated.
16149         * tests/unictype/test-decdigit.h: Regenerated.
16150         * tests/unictype/test-digit.h: Regenerated.
16151         * tests/unictype/test-numeric.h: Regenerated.
16152         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16153         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16154         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16155         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16156         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16157         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16158         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16159         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16160         * tests/unictype/test-pr_combining.c: Regenerated.
16161         * tests/unictype/test-pr_dash.c: Regenerated.
16162         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16163         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16164         * tests/unictype/test-pr_deprecated.c: Regenerated.
16165         * tests/unictype/test-pr_diacritic.c: Regenerated.
16166         * tests/unictype/test-pr_extender.c: Regenerated.
16167         * tests/unictype/test-pr_format_control.c: Regenerated.
16168         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16169         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16170         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16171         * tests/unictype/test-pr_id_continue.c: Regenerated.
16172         * tests/unictype/test-pr_id_start.c: Regenerated.
16173         * tests/unictype/test-pr_ideographic.c: Regenerated.
16174         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16175         * tests/unictype/test-pr_lowercase.c: Regenerated.
16176         * tests/unictype/test-pr_math.c: Regenerated.
16177         * tests/unictype/test-pr_numeric.c: Regenerated.
16178         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16179         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16180         Regenerated.
16181         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16182         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16183         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16184         * tests/unictype/test-pr_other_math.c: Regenerated.
16185         * tests/unictype/test-pr_punctuation.c: Regenerated.
16186         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16187         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16188         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16189         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16190         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16191         * tests/unictype/test-pr_uppercase.c: Regenerated.
16192         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16193         * tests/unictype/test-pr_xid_start.c: Regenerated.
16194         * tests/unictype/test-pr_zero_width.c: Regenerated.
16195
16196         Update to Unicode 5.1.0.
16197         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16198         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16199         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16200         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16201         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16202         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16203         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16204         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16205         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16206         (nonspacing_table_ind): Update.
16207         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16208
16209         Update to Unicode 5.1.0.
16210         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16211         code transform.
16212         * lib/uniname/uniname.c (unicode_character_name,
16213         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16214         * lib/uniname/uninames.h: Regenerated.
16215         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16216
16217 2009-02-07  Bruno Haible  <bruno@clisp.org>
16218
16219         Merge gen-ctype and gen-lbrk into a single program.
16220         * lib/gen-uni-tables.c: New file, incorporating
16221         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16222         Add directory prefixes to the names of the generated files.
16223         * lib/unictype/gen-ctype.c: Remove file.
16224         * lib/unilbrk/gen-lbrk.c: Remove file.
16225         * modules/gen-uni-tables: New file.
16226         * modules/unictype/gen-ctype: Remove file.
16227         * modules/unilbrk/gen-lbrk: Remove file.
16228
16229 2009-02-07  Bruno Haible  <bruno@clisp.org>
16230
16231         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16232
16233         New module 'unistr/u32-strcoll'.
16234         * modules/unistr/u32-strcoll: New file.
16235         * lib/unistr/u32-strcoll.c: New file.
16236
16237         New module 'unistr/u16-strcoll'.
16238         * modules/unistr/u16-strcoll: New file.
16239         * lib/unistr/u16-strcoll.c: New file.
16240
16241         New module 'unistr/u8-strcoll'.
16242         * modules/unistr/u8-strcoll: New file.
16243         * lib/unistr/u8-strcoll.c: New file.
16244         * lib/unistr/u-strcoll.h: New file.
16245
16246 2009-02-07  Bruno Haible  <bruno@clisp.org>
16247
16248         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16249         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16250         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16251         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16252         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16253         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16254
16255 2009-02-07  Bruno Haible  <bruno@clisp.org>
16256
16257         Make 64-bit clean.
16258         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16259         output_combclass, output_bidi_category, output_decimal_digit,
16260         output_digit, output_numeric, output_mirror, output_scripts,
16261         output_ident_category): Use proper width specifier in format strings.
16262
16263 2009-02-07  Bruno Haible  <bruno@clisp.org>
16264
16265         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16266         failure behaviour.
16267
16268 2009-02-07  Jim Meyering  <meyering@redhat.com>
16269
16270         regex: avoid compilation failure with upcoming gcc-4.4
16271         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16272         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16273         "... error: integer overflow in preprocessor expression".
16274
16275 2009-02-05  Ben Pfaff  <blp@gnu.org>
16276
16277         Fix link errors on Windows when close module is used.
16278         * modules/close: Add $(LIB_CLOSE) to Link section.
16279         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16280         $(LIB_CLOSE) on Windows.
16281
16282 2009-02-05  Jim Meyering  <meyering@redhat.com>
16283
16284         still avoid unused-parameter warnings, but do it cleanly
16285         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16286         (get_fs_usage): Cast to void instead.
16287         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16288         (dev_from_mount_options, read_file_system_list): Cast to void.
16289         Prompted by Bruno Haible.
16290
16291 2009-02-04  Jim Meyering  <meyering@redhat.com>
16292
16293         fsusage.c: correct copyright year
16294         * lib/fsusage.c: Reflect year in which the change is pushed into
16295
16296         avoid misc. warnings
16297         * lib/fsusage.c (UNUSED_PARAM): Define.
16298         (get_fs_usage): Mark parameter "disk" as unused.
16299         * lib/getugroups.c (getgrent): Use "void" in prototype.
16300         * lib/mountlist.c: Mark unused parameters.
16301         (read_file_system_list): Declare a local with "const".
16302         * lib/nanosleep.c (getnow): Declare static.
16303         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16304
16305         dirfd: set errno upon failure
16306         * lib/dirfd.c: Include <errno.h>.
16307         Set errno to ENOTSUP when returning -1.
16308         * modules/dirfd (Depends-on): Add errno.
16309         Suggested by John Kodis <kodis@comcast.net>.
16310
16311 2009-02-01  Bruno Haible  <bruno@clisp.org>
16312
16313         Don't assume sizeof (long) >= sizeof (void *).
16314         * lib/memcmp.c: Include stdint.h.
16315         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16316         srcp2 to 'const byte *'.
16317         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16318         types to uintptr_t.
16319         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16320         * modules/memcmp (Depends-on): Add stdint.
16321         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16322
16323 2009-01-30  Eric Blake  <ebb9@byu.net>
16324
16325         fix more require-before-expand issues
16326         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16327         expand, AC_PROG_AWK.
16328         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16329
16330 2009-01-28  Eric Blake  <ebb9@byu.net>
16331
16332         version-etc: use consistent URL formatting
16333         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16334         Improve formatting.  Use fputs for string without %.
16335
16336 2009-01-28  Jim Meyering  <meyering@redhat.com>
16337
16338         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16339         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16340         "underquoted definition of NAME" from autoconf-2.59.
16341
16342 2009-01-28  Bruno Haible  <bruno@clisp.org>
16343
16344         * doc/gnulib.texi: Add "Obsolete modules" to index.
16345
16346 2009-01-28  Jim Meyering  <meyering@redhat.com>
16347
16348         useless-if-before-free: recognize more variants
16349         * build-aux/useless-if-before-free: Also recognize e.g.,
16350         if (NULL != p) free (p);
16351
16352 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16353
16354         test-getaddrinfo: skip (don't fail) this test when there's no network
16355         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16356         on the presumption that it means you lack network access.
16357
16358 2009-01-26  Jim Meyering  <meyering@redhat.com>
16359
16360         fflush: avoid warnings on modern systems
16361         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16362         pos and result, into scopes where they're used.
16363
16364 2009-01-26  Eric Blake  <ebb9@byu.net>
16365
16366         Silence warning reintroduced by recent extensions patch.
16367         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16368         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16369         autoconf.
16370
16371         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16372         * m4/00gnulib.m4: New file.
16373         * gnulib-tool (func_get_filelist): Always use it.
16374         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16375         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16376
16377 2009-01-25  Bruno Haible  <bruno@clisp.org>
16378
16379         Make test-quotearg work on MacOS X and AIX.
16380         * tests/test-quotearg.sh: New file.
16381         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16382         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16383         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16384         include <libintl.h>.
16385         (fake_locale): Remove variable.
16386         (gettext, dgettext, dcgettext): Remove functions.
16387         (main): Instead of setting a fake locale, set a real locale. Call
16388         textdomain and bindtextdomain.
16389         * modules/quotearg-tests (Files): Add the new files.
16390         (Depends-on): Add gettext, setenv, unsetenv.
16391         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16392         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16393         Augment TESTS_ENVIRONMENT.
16394
16395 2009-01-25  Bruno Haible  <bruno@clisp.org>
16396
16397         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16398         fr_FR.ISO8859-1 locale on MacOS X.
16399         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16400         ja_JP.eucJP locale on MacOS X.
16401         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16402         zh_CN.GB18030 locale on MacOS X.
16403
16404 2009-01-25  Bruno Haible  <bruno@clisp.org>
16405
16406         Avoid link errors on MacOS X 10.3.
16407         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16408         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16409
16410 2009-01-25  Bruno Haible  <bruno@clisp.org>
16411
16412         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16413         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16414         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16415         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16416         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16417         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16418         posix_spawnattr_init, posix_spawnattr_setsigmask,
16419         posix_spawnattr_setflags, posix_spawnattr_destroy.
16420
16421         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16422         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16423         * modules/execute (Files): Remove m4/posix_spawn.m4.
16424         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16425         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16426         posix_spawnattr_init, posix_spawnattr_setsigmask,
16427         posix_spawnattr_setflags, posix_spawnattr_destroy.
16428
16429 2009-01-25  Bruno Haible  <bruno@clisp.org>
16430
16431         * lib/glthread/threadlib.c: Include <stdlib.h>.
16432
16433 2009-01-25  Bruno Haible  <bruno@clisp.org>
16434
16435         * lib/glthread/threadlib.c (dummy): New declaration.
16436
16437 2009-01-25  Bruno Haible  <bruno@clisp.org>
16438
16439         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16440         multibyte characters also for the GB18030 encoding. Don't crash when
16441         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16442
16443 2009-01-25  Bruno Haible  <bruno@clisp.org>
16444
16445         Avoid redefining 'struct random_data' on OSF/1 5.1.
16446         * lib/stdlib.in.h: Include <random.h> if it exists.
16447         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16448         HAVE_RANDOM_H. Include <random.h> when testing whether
16449         'struct random_data' exists.
16450         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16451
16452 2009-01-25  Bruno Haible  <bruno@clisp.org>
16453
16454         Don't install charset.alias on MacOS X >= 10.3.
16455         * lib/localcharset.c (DARWIN7): New macro.
16456         (get_charset_aliases): Hardcode the result for Darwin7.
16457         * modules/localcharset (install-exec-local): Don't install
16458         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16459
16460 2009-01-25  Bruno Haible  <bruno@clisp.org>
16461
16462         Don't install charset.alias on mingw and Cygwin.
16463         * modules/localcharset (install-exec-local): Don't install
16464         charset.alias on mingw and Cygwin, if the file does not yet exist.
16465         The result for these platforms is hardcoded in localcharset.c.
16466
16467 2009-01-25  Bruno Haible  <bruno@clisp.org>
16468
16469         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16471         before requiring AC_USE_SYSTEM_EXTENSIONS.
16472
16473 2009-01-25  Jim Meyering  <meyering@redhat.com>
16474
16475         c-strtod: avoid warnings
16476         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16477         "assignment discards qualifiers from pointer target type" warnings.
16478
16479 2009-01-24  Bruno Haible  <bruno@clisp.org>
16480
16481         Add support for non-UTF-8 locales on MacOS X.
16482         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16483         canonical encodings. For Darwin 7 and newer, don't map traditional
16484         encodings to UTF-8.
16485         Reported by Vincent Lefevre <vincent@vinc17.org>
16486         at <http://savannah.gnu.org/bugs/?25235>.
16487
16488 2009-01-24  Bruno Haible  <bruno@clisp.org>
16489
16490         * doc/gnulib.texi (Obsolete modules): New section.
16491         Reported by Mike Frysinger <vapier@gentoo.org>.
16492
16493 2009-01-24  Bruno Haible  <bruno@clisp.org>
16494
16495         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16496         (%.dvi): New rule.
16497
16498 2009-01-24  Bruno Haible  <bruno@clisp.org>
16499
16500         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16501         Reported by Eric Blake.
16502
16503 2009-01-24  Bruno Haible  <bruno@clisp.org>
16504
16505         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16506         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16507         Reported by Gary V. Vaughan <gary@gnu.org>.
16508
16509 2009-01-24  Bruno Haible  <bruno@clisp.org>
16510
16511         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16512
16513 2009-01-23  Bruno Haible  <bruno@clisp.org>
16514
16515         Make c-strtod, c-strtold usable in libraries.
16516         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16517         (C_STRTOD): Call strdup instead of xstrdup.
16518         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16519         * modules/c-strtold (Depends-on): Likewise.
16520         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16521         * NEWS: Mention the change.
16522         Reported by Michael Gold <mgold@ncf.ca>.
16523
16524 2009-01-23  Jim Meyering  <meyering@redhat.com>
16525
16526         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16527         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16528         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16529
16530 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16531
16532         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16533         GNU CoreUtils.
16534         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16535         * modules/version-etc (Description): Update.
16536
16537 2009-01-22  Bruno Haible  <bruno@clisp.org>
16538
16539         Cache the C locale object.
16540         * lib/c-strtod.c (c_locale_cache): New variable.
16541         (c_locale): New function.
16542         (C_STRTOD): Use it, and don't call freelocale.
16543         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16544         Suggested by Paolo Bonzini.
16545
16546 2009-01-21  Bruno Haible  <bruno@clisp.org>
16547
16548         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16549         conditions other than overflow.
16550
16551 2009-01-21  Bruno Haible  <bruno@clisp.org>
16552
16553         * lib/c-strtod.c: Include errno.h.
16554         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16555         value from STRTOD_L and STRTOD.
16556
16557 2009-01-21  Bruno Haible  <bruno@clisp.org>
16558         and Jim Meyering  <meyering@redhat.com>
16559
16560         nanosleep: skip configure test (fail it) for apple universal builds
16561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16562         universal builds, assume that nanosleep does not work.
16563         * modules/nanosleep (Depends-on): Add multiarch.
16564
16565         mktime: skip configure test (fail it) for apple universal builds
16566         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16567         universal builds, assume that mktime does not work.
16568         * modules/mktime (Depends-on): Add multiarch.
16569
16570 2009-01-21  Eric Blake  <ebb9@byu.net>
16571
16572         multiarch: avoid expand-before-require warning
16573         * modules/multiarch (configure.ac): Require, rather than expand,
16574         gl_MULTIARCH.
16575         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16576         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16577         enforce that all clients require it.  Partial reversion of
16578         2008-12-29 patch.
16579
16580         error: avoid expand-before-require warning
16581         * modules/errno (configure.ac): Require, rather than expand,
16582         gl_HEADER_ERRNO_H.
16583         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16584         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16585         enforce that all clients require it.
16586
16587         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16588         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16589         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16590         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16591
16592 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16593
16594         Revert:
16595         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16596
16597         regex: do not depend on obsolete modules.
16598         * modules/regex: Remove memcmp and memmove.
16599
16600 2009-01-20  Bruno Haible  <bruno@clisp.org>
16601
16602         Make the 'link' module link on Windows NT 4.
16603         * lib/link.c (_WIN32_WINNT): Don't define.
16604         (CreateHardLinkFuncType): New type.
16605         (CreateHardLinkFunc, initialized): New variables.
16606         (initialize): New function.
16607         (link): Invoke CreateHardLink indirectly through the function pointer.
16608
16609 2009-01-20  Bruno Haible  <bruno@clisp.org>
16610
16611         Fix compilation failure on mingw.
16612         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16613
16614 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16615
16616         * doc/c-strtod.texi: Mention a couple of restrictions.
16617
16618 2009-01-20  Jim Meyering  <meyering@redhat.com>
16619
16620         gettimeofday: move more declarations out of functions
16621         * lib/gettimeofday.c: Move extern declarations of tzset and
16622         gmtime out of containing functions.  Prompted by Bruno Haible.
16623
16624 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16625
16626         regex: do not depend on obsolete modules.
16627         * modules/regex: Remove memcmp and memmove.
16628
16629 2009-01-19  Bruno Haible  <bruno@clisp.org>
16630
16631         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16632         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16633         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16634         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16635         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16636
16637 2009-01-19  Bruno Haible  <bruno@clisp.org>
16638
16639         * tests/test-link.c: Include <errno.h>.
16640         (main): Exit with code 77 when a hard link cannot be created due to
16641         the file system.
16642         * tests/test-link.sh: Skip test when a hard link cannot be created due
16643         to the file system.
16644         Suggested by Eric Blake.
16645
16646 2009-01-19  Martin Lambers  <marlam@marlam.de>
16647
16648         * modules/link-tests: New file.
16649         * tests/test-link.sh: New file.
16650         * tests/test-link.c: New file.
16651
16652 2009-01-19  Eric Blake  <ebb9@byu.net>
16653
16654         doc: mention another function added in cygwin 1.7.0
16655         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16656         Another new function in cygwin 1.7.
16657
16658 2009-01-19  Bruno Haible  <bruno@clisp.org>
16659
16660         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16661         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16662         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16663         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16664         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16665         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16666         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16667         * m4/md4.m4 (gl_MD4): Likewise.
16668         * m4/md5.m4 (gl_MD5): Likewise.
16669         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16670         * m4/sha1.m4 (gl_SHA1): Likewise.
16671         * m4/sha256.m4 (gl_SHA256): Likewise.
16672         * m4/sha512.m4 (gl_SHA512): Likewise.
16673
16674 2009-01-19  Bruno Haible  <bruno@clisp.org>
16675
16676         * modules/uniname/uniname-tests (Depends-on): Add progname.
16677         * tests/uniname/test-uninames.c: Include progname.h.
16678         (main): Call set_program_name.
16679
16680         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16681         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16682         (main): Call set_program_name.
16683
16684         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16685         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16686         (main): Call set_program_name.
16687
16688         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16689         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16690         (main): Call set_program_name.
16691
16692         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16693         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16694         (main): Call set_program_name.
16695
16696         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16697         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16698         (main): Call set_program_name.
16699
16700         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16701         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16702         (main): Call set_program_name.
16703
16704         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16705         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16706         (main): Call set_program_name.
16707
16708         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16709         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16710         (main): Call set_program_name.
16711
16712 2009-01-19  Eric Blake  <ebb9@byu.net>
16713
16714         test-unistd: test previous patch
16715         * tests/test-unistd.c: Test *_FILENO macros.
16716
16717         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16718         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16719         Guarantee a definition.
16720         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16721         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16722         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16723         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16724         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16725         Likewise.
16726         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16727         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16728         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16729         Likewise.
16730         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16731         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16732         (STDERR_FILENO): Likewise.
16733         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16734         (STDERR_FILENO): Likewise.
16735         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16736         (STDERR_FILENO): Likewise.
16737         Reported by Elbert Pol.
16738
16739 2009-01-19  Eric Blake  <ebb9@byu.net>
16740
16741         doc: mention more functions added in cygwin 1.7.0
16742         * doc/posix-functions/abort.texi (abort): Update wording related
16743         to cygwin.
16744         * doc/posix-functions/daylight.texi (daylight): Likewise.
16745         * doc/posix-functions/optarg.texi (optarg): Likewise.
16746         * doc/posix-functions/optarg.texi (opterr): Likewise.
16747         * doc/posix-functions/optarg.texi (optind): Likewise.
16748         * doc/posix-functions/optarg.texi (optopt): Likewise.
16749         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16750         worked in 1.5.x, and was withdrawn in 1.7.
16751         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16752         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16753         cygwin versions.
16754         * doc/posix-functions/perror.texi (perror): Likewise.
16755         * doc/posix-functions/printf.texi (printf): Likewise.
16756         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16757         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16758         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16759         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16760         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16761         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16762         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16763         Likewise.
16764         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16765         Likewise.
16766         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16767         this function.
16768         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16769         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16770         Likewise.
16771         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16772         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16773         * doc/posix-functions/confstr.texi (confstr): Likewise.
16774         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16775         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16776         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16777         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16778         * doc/posix-functions/fputws.texi (fputws): Likewise.
16779         * doc/posix-functions/fwide.texi (fwide): Likewise.
16780         * doc/posix-functions/getwc.texi (getwc): Likewise.
16781         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16782         * doc/posix-functions/putwc.texi (putwc): Likewise.
16783         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16784         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16785         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16786         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16787         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16788         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16789         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16790         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16791         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16792         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16793         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16794
16795 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16796
16797         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16798         * lib/ioctl.c: Include <sys/ioctl.h>.
16799
16800 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16801
16802         * modules/getdate-tests (Depends-on): Add progname.
16803         * tests/test-getdate.c: Use progname module, to avoid link errors
16804         on non-glibc systems.
16805
16806 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16807
16808         * modules/filenamecat-tests (Depends-on): Add progname.
16809         * modules/fstrcmp-tests (Depends-on): Likewise.
16810
16811         * tests/test-filenamecat.c: Use progname module, to avoid link
16812         errors on non-glibc systems.
16813         * tests/test-fstrcmp.c: Likewise.
16814
16815 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16816
16817         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16818         * lib/gettimeofday.c: Move extern declaration out of function.
16819
16820 2009-01-18  Bruno Haible  <bruno@clisp.org>
16821
16822         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16823         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16824         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16825
16826 2009-01-18  Bruno Haible  <bruno@clisp.org>
16827
16828         * lib/strftime.c (MEMPCPY): Remove unused macro.
16829         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16830
16831 2009-01-18  Martin Lambers  <marlam@marlam.de>
16832
16833         New module 'link'.
16834         * lib/unistd.in.h (link): New declaration.
16835         * lib/link.c: New file.
16836         * m4/link.m4: New file.
16837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16838         HAVE_LINK.
16839         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16840         * modules/link: New file.
16841         * doc/posix-functions/link.texi: Mention the new module.
16842
16843 2009-01-18  Bruno Haible  <bruno@clisp.org>
16844
16845         * tests/test-avltree_list.c (main): Call set_program_name.
16846         * tests/test-avltree_oset.c (main): Likewise.
16847         * tests/test-obstack-printf.c: Include progname.h.
16848         (main): Call set_program_name.
16849         * tests/test-quotearg.c: Include progname.h.
16850         (main): Call set_program_name.
16851         * tests/test-xmemdup0.c: Include progname.h.
16852         (main): Call set_program_name.
16853
16854 2009-01-18  Bruno Haible  <bruno@clisp.org>
16855
16856         New module 'alphasort'.
16857         * lib/dirent.in.h (alphasort): New declaration.
16858         * lib/alphasort.c: New file, from glibc with modifications.
16859         * m4/alphasort.m4: New file.
16860         * modules/alphasort: New file.
16861         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16862         HAVE_ALPHASORT.
16863         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16864         HAVE_ALPHASORT.
16865         * doc/posix-functions/alphasort.texi: Mention the new module and the
16866         portability problems.
16867
16868 2009-01-18  Bruno Haible  <bruno@clisp.org>
16869
16870         New module 'scandir'.
16871         * lib/dirent.in.h (scandir): New declaration.
16872         * lib/scandir.c: New file, from glibc with modifications.
16873         * m4/scandir.m4: New file.
16874         * modules/scandir: New file.
16875         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16876         HAVE_SCANDIR.
16877         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16878         HAVE_SCANDIR.
16879         * doc/posix-functions/scandir.texi: Mention the new module and the
16880         portability problems.
16881
16882 2009-01-17  Bruno Haible  <bruno@clisp.org>
16883
16884         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16885         Update documentation.
16886         (func_remove_suffix): Escape all dots in the suffix. Update
16887         documentation.
16888         (func_filter_filelist): Update documentation.
16889         Reported by Ralf Wildenhues.
16890
16891 2009-01-17  Bruno Haible  <bruno@clisp.org>
16892
16893         * modules/dprintf-posix-tests: New file.
16894         * tests/test-dprintf-posix.sh: New file.
16895         * tests/test-dprintf-posix.c: New file.
16896
16897         New modules 'dprintf', 'dprintf-posix'.
16898         * lib/stdio.in.h (dprintf): New declaration.
16899         * lib/dprintf.c: New file.
16900         * m4/dprintf.m4: New file.
16901         * m4/dprintf-posix.m4: New file.
16902         * modules/dprintf: New file.
16903         * modules/dprintf-posix: New file.
16904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16905         HAVE_DPRINTF, REPLACE_DPRINTF.
16906         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16907         HAVE_DPRINTF, REPLACE_DPRINTF.
16908         * doc/posix-functions/dprintf.texi: Mention the new modules.
16909
16910 2009-01-17  Bruno Haible  <bruno@clisp.org>
16911
16912         * modules/vdprintf-posix-tests: New file.
16913         * tests/test-vdprintf-posix.sh: New file.
16914         * tests/test-vdprintf-posix.c: New file.
16915
16916         New modules 'vdprintf', 'vdprintf-posix'.
16917         * lib/stdio.in.h (vdprintf): New declaration.
16918         * lib/vdprintf.c: New file.
16919         * m4/vdprintf.m4: New file.
16920         * m4/vdprintf-posix.m4: New file.
16921         * modules/vdprintf: New file.
16922         * modules/vdprintf-posix: New file.
16923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16924         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16925         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16926         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16927         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16928
16929 2009-01-17  Bruno Haible  <bruno@clisp.org>
16930
16931         Fix replacement of fopen on mingw.
16932         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16933         mingw.
16934
16935 2009-01-17  Bruno Haible  <bruno@clisp.org>
16936
16937         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16938         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16939
16940 2009-01-17  Bruno Haible  <bruno@clisp.org>
16941
16942         Avoid test-fflush2.sh failure on mingw.
16943         * tests/test-fflush2.c: Include binary-io.h.
16944         (main): Put standard input into binary mode.
16945         * modules/fflush-tests (Depends-on): Add binary-io.
16946
16947 2009-01-17  Bruno Haible  <bruno@clisp.org>
16948
16949         * lib/wchar.in.h: In another particular situation, include only the
16950         system's <wchar.h> file.
16951         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16952         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16953         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16954
16955 2009-01-17  Bruno Haible  <bruno@clisp.org>
16956
16957         Support for stripping executables in --enable-relocatable.
16958         * build-aux/install-reloc: Expect one more argument, or an environment
16959         variable RELOC_STRIP_PROG. If set, strip the destination program and
16960         its wrapper.
16961         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16962         RELOC_STRIP_PROG.
16963         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16964         to set RELOCATABLE_STRIP.
16965         * NEWS: Mention the new Makefile requirement.
16966
16967 2009-01-17  Bruno Haible  <bruno@clisp.org>
16968
16969         * build-aux/install-reloc: Remove debugging information left over by
16970         C compiler on MacOS X.
16971
16972 2009-01-17  Bruno Haible  <bruno@clisp.org>
16973
16974         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16975         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16976         _NSGetExecutablePath.
16977
16978 2009-01-16  Jim Meyering  <meyering@redhat.com>
16979
16980         strerror: avoid warnings about discarding "const"
16981         * lib/strerror.c (rpl_strerror): Instead of returning a const
16982         string from each and every "case", use a variable, and add a single
16983         cast after the switch.
16984
16985 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16986
16987         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16988
16989 2009-01-16  Bruno Haible  <bruno@clisp.org>
16990
16991         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16992         array initializer syntax that also works in C++ mode.
16993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16994
16995 2009-01-16  Jim Meyering  <meyering@redhat.com>
16996
16997         poll: suppress a warning
16998         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16999         to ignore "...unsigned expression < 0 is always false" warnings.
17000
17001 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17002
17003         poll: remove declarations of unused variables
17004         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17005         sockbuf and optlen.
17006
17007 2009-01-15  Bruno Haible  <bruno@clisp.org>
17008
17009         Make fflush-after-ungetc POSIX compliant on BSD systems.
17010         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17011         (clear_ungetc_buffer): Implement also for other systems.
17012         (rpl_fflush): On glibc systems, invoke
17013         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17014         clear_ungetc_buffer after fetching the stream's position, not before.
17015
17016 2009-01-15  Bruno Haible  <bruno@clisp.org>
17017
17018         Make fflush-after-ungetc POSIX compliant on glibc systems.
17019         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17020         after ungetc.
17021         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17022         (rpl_fflush): On glibc systems, simply call the system's fflush
17023         function after clearing the ungetc buffer.
17024         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17025         Instead, lseek only to the end of file, then use the system's fseeko
17026         for the rest. On glibc systems, reset the EOF indicator bit.
17027
17028 2009-01-15  Jim Meyering  <meyering@redhat.com>
17029
17030         openmp.m4: revert quote-adding change, for portability to older autoconf
17031         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17032         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17033         Simon Josefsson noticed the problem when using autoconf-2.61.
17034
17035 2009-01-15  Bruno Haible  <bruno@clisp.org>
17036
17037         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17038         * tests/test-fflush2.c (ASSERT): Always fail.
17039         (main): Add two tests for fflush() after ungetc(), taking into account
17040         the Austin Group's clarification.
17041         Suggested by Eric Blake.
17042
17043 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17044
17045         mktime.m4: remove K&R-style function prototypes
17046         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17047         for the Sun C++ compiler.
17048
17049 2009-01-14  Bruno Haible  <bruno@clisp.org>
17050
17051         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17052         while including <wchar.h>.
17053         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17054         the system's <wchar.h> file.
17055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17056
17057 2009-01-14  Bruno Haible  <bruno@clisp.org>
17058
17059         * m4/csharp.m4: Don't mention gettext on the serial number line.
17060         * m4/csharpexec.m4: Likewise.
17061         * m4/eaccess.m4: Likewise.
17062         * m4/javaexec.m4: Likewise.
17063         * m4/sig_atomic_t.m4: Likewise.
17064         * m4/tmpdir.m4: Likewise.
17065         * m4/intldir.m4: Bump gettext version.
17066         * m4/lib-ld.m4: Likewise.
17067
17068 2009-01-14  Bruno Haible  <bruno@clisp.org>
17069
17070         * lib/progname.c (set_program_name): Add more comments.
17071         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17072
17073 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17074
17075         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17076         were sys/stat.h does not define it.
17077
17078 2009-01-14  Jim Meyering  <meyering@redhat.com>
17079
17080         many *.m4 files: improve m4 quoting
17081         99% of this change was performed by running the following commands:
17082         git ls-files | grep '\.m4$' | xargs perl -pi \
17083           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17084           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17085           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17086           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17087         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17088         The remainder were to add Copyright dates, increment serial numbers,
17089         undo some changes in comments, exclude m4/intl.m4, and add quotes
17090         around the "1" in ",1" where the unusual spacing prohibited the
17091         above regexps from doing the job.  For more details, see
17092         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17093         * m4/acl.m4: Modified.
17094         * m4/afs.m4: Likewise.
17095         * m4/alloca.m4: Likewise.
17096         * m4/argp.m4: Likewise.
17097         * m4/argz.m4: Likewise.
17098         * m4/atexit.m4: Likewise.
17099         * m4/bison-i18n.m4: Likewise.
17100         * m4/bison.m4: Likewise.
17101         * m4/byteswap.m4: Likewise.
17102         * m4/c-stack.m4: Likewise.
17103         * m4/c-strtod.m4: Likewise.
17104         * m4/calloc.m4: Likewise.
17105         * m4/canonicalize-lgpl.m4: Likewise.
17106         * m4/chown.m4: Likewise.
17107         * m4/clock_time.m4: Likewise.
17108         * m4/codeset.m4: Likewise.
17109         * m4/copy-file.m4: Likewise.
17110         * m4/csharp.m4: Likewise.
17111         * m4/csharpcomp.m4: Likewise.
17112         * m4/csharpexec.m4: Likewise.
17113         * m4/d-ino.m4: Likewise.
17114         * m4/d-type.m4: Likewise.
17115         * m4/dirfd.m4: Likewise.
17116         * m4/double-slash-root.m4: Likewise.
17117         * m4/eaccess.m4: Likewise.
17118         * m4/eealloc.m4: Likewise.
17119         * m4/environ.m4: Likewise.
17120         * m4/errno_h.m4: Likewise.
17121         * m4/euidaccess.m4: Likewise.
17122         * m4/execute.m4: Likewise.
17123         * m4/fatal-signal.m4: Likewise.
17124         * m4/fchdir.m4: Likewise.
17125         * m4/fcntl_h.m4: Likewise.
17126         * m4/fileblocks.m4: Likewise.
17127         * m4/filenamecat.m4: Likewise.
17128         * m4/findprog.m4: Likewise.
17129         * m4/flexmember.m4: Likewise.
17130         * m4/fnmatch.m4: Likewise.
17131         * m4/fopen.m4: Likewise.
17132         * m4/fpending.m4: Likewise.
17133         * m4/fprintf-posix.m4: Likewise.
17134         * m4/free.m4: Likewise.
17135         * m4/frexp.m4: Likewise.
17136         * m4/frexpl.m4: Likewise.
17137         * m4/fsusage.m4: Likewise.
17138         * m4/ftruncate.m4: Likewise.
17139         * m4/gc-camellia.m4: Likewise.
17140         * m4/gc-random.m4: Likewise.
17141         * m4/gc.m4: Likewise.
17142         * m4/getaddrinfo.m4: Likewise.
17143         * m4/getcwd-abort-bug.m4: Likewise.
17144         * m4/getcwd-path-max.m4: Likewise.
17145         * m4/getdate.m4: Likewise.
17146         * m4/getdomainname.m4: Likewise.
17147         * m4/getgroups.m4: Likewise.
17148         * m4/gethostname.m4: Likewise.
17149         * m4/gethrxtime.m4: Likewise.
17150         * m4/getline.m4: Likewise.
17151         * m4/getloadavg.m4: Likewise.
17152         * m4/getndelim2.m4: Likewise.
17153         * m4/getpass.m4: Likewise.
17154         * m4/gettext.m4: Likewise.
17155         * m4/gettime.m4: Likewise.
17156         * m4/gettimeofday.m4: Likewise.
17157         * m4/gnulib-common.m4: Likewise.
17158         * m4/group-member.m4: Likewise.
17159         * m4/host-os.m4: Likewise.
17160         * m4/iconv.m4: Likewise.
17161         * m4/iconv_open.m4: Likewise.
17162         * m4/inet_ntop.m4: Likewise.
17163         * m4/inet_pton.m4: Likewise.
17164         * m4/inline.m4: Likewise.
17165         * m4/intldir.m4: Likewise.
17166         * m4/intlmacosx.m4: Likewise.
17167         * m4/intmax.m4: Likewise.
17168         * m4/intmax_t.m4: Likewise.
17169         * m4/inttypes.m4: Likewise.
17170         * m4/inttypes_h.m4: Likewise.
17171         * m4/inttypes-pri.m4: Likewise.
17172         * m4/isapipe.m4: Likewise.
17173         * m4/isnand.m4: Likewise.
17174         * m4/isnanf.m4: Likewise.
17175         * m4/isnanl.m4: Likewise.
17176         * m4/javacomp.m4: Likewise.
17177         * m4/javaexec.m4: Likewise.
17178         * m4/jm-winsz1.m4: Likewise.
17179         * m4/jm-winsz2.m4: Likewise.
17180         * m4/lchown.m4: Likewise.
17181         * m4/lcmessage.m4: Likewise.
17182         * m4/ldexpl.m4: Likewise.
17183         * m4/lib-ld.m4: Likewise.
17184         * m4/lib-link.m4: Likewise.
17185         * m4/libsigsegv.m4: Likewise.
17186         * m4/link-follow.m4: Likewise.
17187         * m4/localcharset.m4: Likewise.
17188         * m4/locale-fr.m4: Likewise.
17189         * m4/locale-ja.m4: Likewise.
17190         * m4/locale-tr.m4: Likewise.
17191         * m4/locale-zh.m4: Likewise.
17192         * m4/lock.m4: Likewise.
17193         * m4/longlong.m4: Likewise.
17194         * m4/ls-mntd-fs.m4: Likewise.
17195         * m4/lstat.m4: Likewise.
17196         * m4/malloc.m4: Likewise.
17197         * m4/mathl.m4: Likewise.
17198         * m4/mbrtowc.m4: Likewise.
17199         * m4/mbstate_t.m4: Likewise.
17200         * m4/mbswidth.m4: Likewise.
17201         * m4/memchr.m4: Likewise.
17202         * m4/memcmp.m4: Likewise.
17203         * m4/memcpy.m4: Likewise.
17204         * m4/memmem.m4: Likewise.
17205         * m4/memmove.m4: Likewise.
17206         * m4/mempcpy.m4: Likewise.
17207         * m4/memrchr.m4: Likewise.
17208         * m4/memset.m4: Likewise.
17209         * m4/minmax.m4: Likewise.
17210         * m4/mkdir-slash.m4: Likewise.
17211         * m4/mkdtemp.m4: Likewise.
17212         * m4/mktime.m4: Likewise.
17213         * m4/mmap-anon.m4: Likewise.
17214         * m4/mountlist.m4: Likewise.
17215         * m4/nanosleep.m4: Likewise.
17216         * m4/nls.m4: Likewise.
17217         * m4/nocrash.m4: Likewise.
17218         * m4/open.m4: Likewise.
17219         * m4/openat.m4: Likewise.
17220         * m4/openmp.m4: Likewise.
17221         * m4/pathmax.m4: Likewise.
17222         * m4/perl.m4: Likewise.
17223         * m4/physmem.m4: Likewise.
17224         * m4/pipe.m4: Likewise.
17225         * m4/po.m4: Likewise.
17226         * m4/poll.m4: Likewise.
17227         * m4/posixtm.m4: Likewise.
17228         * m4/posixver.m4: Likewise.
17229         * m4/printf-frexp.m4: Likewise.
17230         * m4/printf-frexpl.m4: Likewise.
17231         * m4/printf-posix.m4: Likewise.
17232         * m4/printf-posix-rpl.m4: Likewise.
17233         * m4/printf.m4: Likewise.
17234         * m4/progtest.m4: Likewise.
17235         * m4/putenv.m4: Likewise.
17236         * m4/readline.m4: Likewise.
17237         * m4/readlink.m4: Likewise.
17238         * m4/readutmp.m4: Likewise.
17239         * m4/realloc.m4: Likewise.
17240         * m4/regex.m4: Likewise.
17241         * m4/relocatable.m4: Likewise.
17242         * m4/relocatable-lib.m4: Likewise.
17243         * m4/rename-dest-slash.m4: Likewise.
17244         * m4/rename.m4: Likewise.
17245         * m4/rmdir-errno.m4: Likewise.
17246         * m4/rmdir.m4: Likewise.
17247         * m4/roundf.m4: Likewise.
17248         * m4/roundl.m4: Likewise.
17249         * m4/rpmatch.m4: Likewise.
17250         * m4/save-cwd.m4: Likewise.
17251         * m4/selinux-selinux-h.m4: Likewise.
17252         * m4/setenv.m4: Likewise.
17253         * m4/settime.m4: Likewise.
17254         * m4/sig2str.m4: Likewise.
17255         * m4/sig_atomic_t.m4: Likewise.
17256         * m4/signalblocking.m4: Likewise.
17257         * m4/signbit.m4: Likewise.
17258         * m4/sigpipe.m4: Likewise.
17259         * m4/sockets.m4: Likewise.
17260         * m4/sockpfaf.m4: Likewise.
17261         * m4/st_dm_mode.m4: Likewise.
17262         * m4/stat-time.m4: Likewise.
17263         * m4/stdbool.m4: Likewise.
17264         * m4/stdint.m4: Likewise.
17265         * m4/stdint_h.m4: Likewise.
17266         * m4/stpcpy.m4: Likewise.
17267         * m4/stpncpy.m4: Likewise.
17268         * m4/strcase.m4: Likewise.
17269         * m4/strchrnul.m4: Likewise.
17270         * m4/strcspn.m4: Likewise.
17271         * m4/strdup.m4: Likewise.
17272         * m4/strftime.m4: Likewise.
17273         * m4/strndup.m4: Likewise.
17274         * m4/strnlen.m4: Likewise.
17275         * m4/strpbrk.m4: Likewise.
17276         * m4/strptime.m4: Likewise.
17277         * m4/strsep.m4: Likewise.
17278         * m4/strtod.m4: Likewise.
17279         * m4/strtoimax.m4: Likewise.
17280         * m4/strtok_r.m4: Likewise.
17281         * m4/strtol.m4: Likewise.
17282         * m4/strtoll.m4: Likewise.
17283         * m4/strtoul.m4: Likewise.
17284         * m4/strtoull.m4: Likewise.
17285         * m4/strtoumax.m4: Likewise.
17286         * m4/strverscmp.m4: Likewise.
17287         * m4/threadlib.m4: Likewise.
17288         * m4/timegm.m4: Likewise.
17289         * m4/tm_gmtoff.m4: Likewise.
17290         * m4/tmpdir.m4: Likewise.
17291         * m4/tmpfile.m4: Likewise.
17292         * m4/tzset.m4: Likewise.
17293         * m4/uintmax_t.m4: Likewise.
17294         * m4/unlinkdir.m4: Likewise.
17295         * m4/unlocked-io.m4: Likewise.
17296         * m4/uptime.m4: Likewise.
17297         * m4/userspec.m4: Likewise.
17298         * m4/utimbuf.m4: Likewise.
17299         * m4/utime.m4: Likewise.
17300         * m4/utimes-null.m4: Likewise.
17301         * m4/utimes.m4: Likewise.
17302         * m4/vararrays.m4: Likewise.
17303         * m4/vasnprintf.m4: Likewise.
17304         * m4/vfprintf-posix.m4: Likewise.
17305         * m4/vprintf-posix.m4: Likewise.
17306         * m4/wait-process.m4: Likewise.
17307         * m4/wchar_t.m4: Likewise.
17308         * m4/wint_t.m4: Likewise.
17309         * m4/write-any-file.m4: Likewise.
17310         * m4/yield.m4: Likewise.
17311
17312 2009-01-13  Bruno Haible  <bruno@clisp.org>
17313
17314         Avoid test-copy-file.sh failures when ACL support insufficient.
17315         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17316         TESTS_ENVIRONMENT.
17317         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17318         Reported by Jim Meyering.
17319
17320 2009-01-13  Bruno Haible  <bruno@clisp.org>
17321
17322         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17323         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17324         * modules/unistdio/u8-printf-parse (Files): Likewise.
17325         * modules/unistdio/u32-printf-parse (Files): Likewise.
17326         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17327
17328 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17329
17330         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17331         and m4/inttypes_h.m4 too.
17332
17333 2009-01-12  Eric Blake  <ebb9@byu.net>
17334
17335         tests: IRIX 6.2 cc can't compile -0.0 into .data
17336         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17337         rather than at compile-time.
17338         * tests/test-floorl.c (minus_zero): Likewise.
17339         * tests/test-frexpl.c (minus_zero): Likewise.
17340         * tests/test-isnan.c (minus_zerol): Likewise.
17341         * tests/test-isnanl.h (minus_zero): Likewise.
17342         * tests/test-ldexpl.c (minus_zero): Likewise.
17343         * tests/test-roundl.c (minus_zero): Likewise.
17344         * tests/test-signbit.c (minus_zerol): Likewise.
17345         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17346         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17347         * tests/test-truncl.c (minus_zero): Likewise.
17348         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17349         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17350         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17351
17352 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17353
17354         regex: fix glibc bug 9697
17355         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17356         handling.
17357
17358 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17359
17360         regex: fix glibc bug 697
17361         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17362         being NULL also if there are no backreferences.
17363
17364 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17365
17366         regex: merge glibc changes
17367         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17368         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17369         re_string_skip_chars, re_string_reconstruct): Likewise.
17370         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17371
17372 2009-01-07  Jim Meyering  <meyering@redhat.com>
17373
17374         poll: filter through cppi
17375         * lib/poll.c: Indent cpp directives to reflect nesting.
17376
17377 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17378
17379         poll: don't return uninitialized
17380         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17381
17382 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17383
17384         avoid compile failure on AIX 6.1
17385         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17386         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17387
17388 2009-01-04  Jim Meyering  <meyering@redhat.com>
17389
17390         remove duplicate inclusion of <stdio.h>
17391         * tests/test-fprintf-posix.c: Likewise.
17392         * tests/test-printf-posix.c: Likewise.
17393         * tests/test-snprintf-posix.c: Likewise.
17394         * tests/test-sprintf-posix.c: Likewise.
17395         * tests/test-vasprintf-posix.c: Likewise.
17396         * tests/test-vfprintf-posix.c: Likewise.
17397         * tests/test-vprintf-posix.c: Likewise.
17398         * tests/test-vsnprintf-posix.c: Likewise.
17399         * tests/test-vsprintf-posix.c: Likewise.
17400
17401 2009-01-03  Jim Meyering  <meyering@redhat.com>
17402
17403         gnulib-tool: fix sed-based filtering
17404         * gnulib-tool (func_filter_filelist): Remove extra backslash
17405         in sed_fff_filter definition.
17406
17407 2009-01-02  Jim Meyering  <meyering@redhat.com>
17408
17409         strftime: avoid compilation failure on Solaris 2.6
17410         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17411         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17412         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17413         be available.  Reported by Tom G. Christensen.  Details in
17414         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17415
17416 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17417             Bruno Haible  <bruno@clisp.org>
17418
17419         Speed up gnulib-tool by doing more string processing through shell
17420         built-ins.
17421         * gnulib-tool (fast_func_append): New variable.
17422         (func_remove_prefix, func_remove_suffix): New functions.
17423         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17424         (func_filter_filelist): New function.
17425         (func_get_dependencies): Use func_remove_suffix instead of sed.
17426         (func_get_automake_snippet): Use func_filter_filelist instead of a
17427         subshell and sed invocation.
17428
17429 2009-01-01  Bruno Haible  <bruno@clisp.org>
17430
17431         Fix a security bug.
17432         * gnulib-tool (func_import, import, update): Don't allow the characters
17433         '"', '$', '`', '\' in macro arguments that become part of commands that
17434         are evaluated.
17435
17436 2009-01-01  Bruno Haible  <bruno@clisp.org>
17437
17438         * gnulib-tool (func_reset_sigpipe): Add more comments.
17439
17440 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17441
17442         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17443         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17444         already know the answer.
17445
17446 2009-01-01  Jim Meyering  <meyering@redhat.com>
17447
17448         * lib/version-etc.c (version_etc_va): Update copyright year.
17449
17450 2008-12-30  Bruno Haible  <bruno@clisp.org>
17451
17452         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17453         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17454         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17455
17456 2008-12-29  Eric Blake  <ebb9@byu.net>
17457
17458         multiarch: avoid autoconf AC_REQUIRE bug
17459         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17460         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17461         2.63 and older.
17462         Reported by Bruno Haible, and analyzed in
17463         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17464
17465 2008-12-29  Bruno Haible  <bruno@clisp.org>
17466
17467         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17468         files in subdirectories correctly.
17469         Reported by Ralf Wildenhues.
17470
17471 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17472
17473         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17474         rather than 'join FILE -', for Solaris join.
17475
17476 2008-12-29  Bruno Haible  <bruno@clisp.org>
17477
17478         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17479         quoting.
17480         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17481         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17482         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17483         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17484         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17485         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17486         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17487         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17488         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17489         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17490         * m4/nls.m4 (AM_NLS): Likewise.
17491         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17492         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17493         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17494         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17495         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17496         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17497         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17498         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17499         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17500         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17501         * m4/xsize.m4 (gl_XSIZE): Likewise.
17502         Suggested by Jim Meyering.
17503
17504 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17505
17506         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17507         * lib/parse-duration.c: use a switch instead of cascading if's.
17508
17509 2008-12-29  Eric Blake  <ebb9@byu.net>
17510
17511         wchar.h: supply WEOF on Irix 5.3
17512         * lib/wchar.in.h (wint_t): Also supply WEOF.
17513         * lib/wctype.in.h (wint_t): Likewise.
17514         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17515         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17516         Reported by Tom G. Christensen.
17517
17518 2008-12-26  Bruno Haible  <bruno@clisp.org>
17519
17520         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17521         i486, i586, i686.
17522
17523 2008-12-26  Bruno Haible  <bruno@clisp.org>
17524
17525         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17526
17527 2008-12-26  Bruno Haible  <bruno@clisp.org>
17528
17529         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17530         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17531         not __STDC_CONSTANT_MACROS.
17532         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17533
17534 2008-12-25  Bruno Haible  <bruno@clisp.org>
17535
17536         Add support for universal builds to vasnprintf.
17537         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17538         universal builds, guess no.
17539         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17540         * modules/vasprintf-posix (Depends-on): Likewise.
17541         * modules/fprintf-posix (Depends-on): Likewise.
17542         * modules/vfprintf-posix (Depends-on): Likewise.
17543         * modules/snprintf-posix (Depends-on): Likewise.
17544         * modules/vsnprintf-posix (Depends-on): Likewise.
17545         * modules/sprintf-posix (Depends-on): Likewise.
17546         * modules/vsprintf-posix (Depends-on): Likewise.
17547         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17548         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17549         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17550         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17551         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17552         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17553         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17554
17555         Add support for universal builds to <inttypes.h>.
17556         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17557         _SCNu64_PREFIX): In Apple
17558         universal builds, define directly, using _LP64.
17559         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17560         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17561         * modules/inttypes (Depends-on): Add multiarch.
17562         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17563
17564         Add support for universal builds to <stdint.h>.
17565         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17566         universal builds, define directly, using _LP64.
17567         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17568         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17569         and size_t.
17570         * modules/stdint (Depends-on): Add multiarch.
17571         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17572
17573         New module 'multiarch'.
17574         * modules/multiarch: New file.
17575         * m4/multiarch.m4: New file.
17576
17577 2008-12-25  Bruno Haible  <bruno@clisp.org>
17578
17579         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17580
17581 2008-12-25  Bruno Haible  <bruno@clisp.org>
17582
17583         * modules/btowc (License): Relicense under LGPLv2+.
17584         * modules/mbsinit (License): Likewise.
17585         * modules/mbrtowc (License): Likewise.
17586         * modules/wcrtomb (License): Likewise.
17587         * modules/streq (License): Likewise.
17588         Reported by David Lutterkort <lutter@redhat.com>.
17589
17590 2008-12-23  Bruno Haible  <bruno@clisp.org>
17591
17592         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17593
17594 2008-12-23  Bruno Haible  <bruno@clisp.org>
17595
17596         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17598         GETADDRINFO_LIB, not in LIBS.
17599         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17600         * modules/canon-host (Link): Likewise.
17601         * NEWS: Mention the change.
17602         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17603         GETADDRINFO_LIB.
17604
17605 2008-12-22  Bruno Haible  <bruno@clisp.org>
17606
17607         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17608         * doc/posix-functions/iswalpha_l.texi: Likewise.
17609         * doc/posix-functions/iswblank_l.texi: Likewise.
17610         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17611         * doc/posix-functions/iswctype_l.texi: Likewise.
17612         * doc/posix-functions/iswdigit_l.texi: Likewise.
17613         * doc/posix-functions/iswgraph_l.texi: Likewise.
17614         * doc/posix-functions/iswlower_l.texi: Likewise.
17615         * doc/posix-functions/iswprint_l.texi: Likewise.
17616         * doc/posix-functions/iswpunct_l.texi: Likewise.
17617         * doc/posix-functions/iswspace_l.texi: Likewise.
17618         * doc/posix-functions/iswupper_l.texi: Likewise.
17619         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17620         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17621         * doc/posix-functions/open_wmemstream.texi: Likewise.
17622         * doc/posix-functions/swscanf.texi: Likewise.
17623         * doc/posix-functions/towctrans_l.texi: Likewise.
17624         * doc/posix-functions/towlower.texi: Likewise.
17625         * doc/posix-functions/towlower_l.texi: Likewise.
17626         * doc/posix-functions/towupper.texi: Likewise.
17627         * doc/posix-functions/towupper_l.texi: Likewise.
17628         * doc/posix-functions/vfwprintf.texi: Likewise.
17629         * doc/posix-functions/vfwscanf.texi: Likewise.
17630         * doc/posix-functions/vswscanf.texi: Likewise.
17631         * doc/posix-functions/vwprintf.texi: Likewise.
17632         * doc/posix-functions/vwscanf.texi: Likewise.
17633         * doc/posix-functions/wcpcpy.texi: Likewise.
17634         * doc/posix-functions/wcpncpy.texi: Likewise.
17635         * doc/posix-functions/wcscasecmp.texi: Likewise.
17636         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17637         * doc/posix-functions/wcscoll_l.texi: Likewise.
17638         * doc/posix-functions/wcsdup.texi: Likewise.
17639         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17640         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17641         * doc/posix-functions/wcsnlen.texi: Likewise.
17642         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17643         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17644         * doc/posix-functions/wctrans_l.texi: Likewise.
17645         * doc/posix-functions/wctype_l.texi: Likewise.
17646         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17647         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17648         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17649         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17650         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17651         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17652         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17653         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17654         * doc/glibc-functions/wcschrnul.texi: Likewise.
17655         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17656         * doc/glibc-functions/wcstod_l.texi: Likewise.
17657         * doc/glibc-functions/wcstof_l.texi: Likewise.
17658         * doc/glibc-functions/wcstol_l.texi: Likewise.
17659         * doc/glibc-functions/wcstold_l.texi: Likewise.
17660         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17661         * doc/glibc-functions/wcstoq.texi: Likewise.
17662         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17663         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17664         * doc/glibc-functions/wcstouq.texi: Likewise.
17665         * doc/glibc-functions/wmempcpy.texi: Likewise.
17666
17667 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17668             Eric Blake  <ebb9@byu.net>
17669             Paolo Bonzini  <bonzini@gnu.org>
17670             Bruno Haible  <bruno@clisp.org>
17671
17672         Make c-stack work on Haiku.
17673         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17674         (c_stack_action): Use SA_ONSTACK flag.
17675
17676 2008-12-22  Bruno Haible  <bruno@clisp.org>
17677
17678         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17679
17680 2008-12-22  Bruno Haible  <bruno@clisp.org>
17681
17682         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17683         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17684         being overridden.
17685         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17686         New macros.
17687         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17689         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17690         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17691
17692 2008-12-22  Bruno Haible  <bruno@clisp.org>
17693
17694         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17695         from test code.
17696
17697 2008-12-22  Eric Blake  <ebb9@byu.net>
17698
17699         Avoid gcc warnings on cygwin.
17700         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17701         Avoid unused variable.
17702         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17703         Likewise.
17704
17705 2008-12-22  Bruno Haible  <bruno@clisp.org>
17706
17707         Remove HAVE_MBRTOWC conditionals.
17708         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17709         (mbscasecmp): Assume mbrtowc function.
17710         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17711         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17712         * lib/mbschr.c: Include mbuiter.h unconditionally.
17713         (mbschr): Assume mbrtowc function.
17714         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17715         (mbscspn): Assume mbrtowc function.
17716         * lib/mbslen.c: Include mbuiter.h unconditionally.
17717         (mbslen): Assume mbrtowc function.
17718         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17719         (mbsncasecmp): Assume mbrtowc function.
17720         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17721         (mbsnlen): Assume mbrtowc function.
17722         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17723         (mbspbrk): Assume mbrtowc function.
17724         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17725         (mbspcasecmp): Assume mbrtowc function.
17726         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17727         (mbsrchr): Assume mbrtowc function.
17728         * lib/mbssep.c: Include mbuiter.h unconditionally.
17729         (mbssep): Assume mbrtowc function.
17730         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17731         (mbsspn): Assume mbrtowc function.
17732         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17733         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17734         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17735         (mbstok_r): Assume mbrtowc function.
17736         * lib/propername.c: Include mbuiter.h unconditionally.
17737         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17738         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17739         (trim2): Assume mbrtowc function.
17740         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17741         (mbsnwidth): Assume mbrtowc function.
17742         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17743         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17744         fallback definitions.
17745         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17746
17747 2008-12-22  Bruno Haible  <bruno@clisp.org>
17748
17749         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17750
17751 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17752
17753         * modules/regex: Request emulations for the mb*/wc* functions we need.
17754         * m4/regex.m4: Don't look for those functions here.
17755         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17756
17757 2008-12-22  Bruno Haible  <bruno@clisp.org>
17758
17759         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17760
17761 2008-12-21  Bruno Haible  <bruno@clisp.org>
17762
17763         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17764         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17765         (Include): Remove conditionalization.
17766         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17767         (Include): Remove conditionalization.
17768         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17769         (Include): Remove conditionalization.
17770         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17771         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17772         * NEWS: Mention the change.
17773         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17774         via Sergey Poznyakoff <gray@gnu.org.ua>.
17775
17776 2008-12-21  Bruno Haible  <bruno@clisp.org>
17777
17778         * MODULES.html.sh (Extended multibyte and wide character utilities
17779         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17780         wcrtomb, wcsrtombs.
17781         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17782         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17783         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17784         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17785
17786 2008-12-21  Bruno Haible  <bruno@clisp.org>
17787
17788         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17789
17790 2008-12-21  Bruno Haible  <bruno@clisp.org>
17791
17792         * modules/wcsnrtombs-tests: New file.
17793         * tests/test-wcsnrtombs1.sh: New file.
17794         * tests/test-wcsnrtombs2.sh: New file.
17795         * tests/test-wcsnrtombs3.sh: New file.
17796         * tests/test-wcsnrtombs4.sh: New file.
17797         * tests/test-wcsnrtombs.c: New file.
17798
17799         New module 'wcsnrtombs'.
17800         * lib/wchar.in.h (wcsnrtombs): New declaration.
17801         * lib/wcsnrtombs.c: New file.
17802         * lib/wcsrtombs-state.c: New file.
17803         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17804         (internal_state): Remove variable.
17805         * m4/wcsnrtombs.m4: New file.
17806         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17807         compilation units.
17808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17809         HAVE_WCSNRTOMBS.
17810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17811         HAVE_WCSNRTOMBS.
17812         * modules/wcsnrtombs: New file.
17813         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17814         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17815
17816 2008-12-21  Bruno Haible  <bruno@clisp.org>
17817
17818         * modules/wcsrtombs-tests: New file.
17819         * tests/test-wcsrtombs1.sh: New file.
17820         * tests/test-wcsrtombs2.sh: New file.
17821         * tests/test-wcsrtombs3.sh: New file.
17822         * tests/test-wcsrtombs4.sh: New file.
17823         * tests/test-wcsrtombs.c: New file.
17824
17825         New module 'wcsrtombs'.
17826         * lib/wchar.in.h (wcsrtombs): New declaration.
17827         * lib/wcsrtombs.c: New file.
17828         * m4/wcsrtombs.m4: New file.
17829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17830         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17832         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17833         * modules/wcsrtombs: New file.
17834         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17835         bugs.
17836
17837 2008-12-21  Bruno Haible  <bruno@clisp.org>
17838
17839         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17840         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17842         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17843         if not correct.
17844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17845         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17846         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17847         m4/locale-zh.m4, m4/codeset.m4.
17848         * doc/posix-functions/wcrtomb.texi: Document the bug.
17849
17850 2008-12-21  Bruno Haible  <bruno@clisp.org>
17851
17852         Work around a btowc() bug on IRIX 6.5.
17853         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17854         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17855         REPLACE_WTOBC if not.
17856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17857         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17858         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17859
17860 2008-12-21  Bruno Haible  <bruno@clisp.org>
17861
17862         * modules/wcrtomb-tests: New file.
17863         * tests/test-wcrtomb.sh: New file.
17864         * tests/test-wcrtomb.c: New file.
17865
17866         New module 'wcrtomb'.
17867         * lib/wchar.in.h (wcrtomb): New declaration.
17868         * lib/wcrtomb.c: New file.
17869         * m4/wcrtomb.m4: New file.
17870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17871         HAVE_WCRTOMB.
17872         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17873         HAVE_WCRTOMB.
17874         * modules/wcrtomb: New file.
17875         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17876
17877 2008-12-21  Bruno Haible  <bruno@clisp.org>
17878
17879         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17880         * modules/mbsrtowcs (Files): Likewise.
17881         * modules/wctob (Files): Likewise.
17882         * modules/c-strcase-tests (Files): Likewise.
17883         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17884         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17885         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17886         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17887         * modules/vasnprintf-posix-tests (Files): Likewise.
17888
17889 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17890
17891         gitlog-to-changelog: pass all command-line arguments to git-log
17892         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17893         it is sometimes convenient to filter the commits in various ways.
17894         gitlog-to-changelog only allows --since to specify a start date,
17895         but git-log itself supports many other filtering mechanisms.
17896         At the moment, I want to filter by branch name.  Rather than
17897         adding a --branch option to gitlog-to-changelog, it seems more
17898         flexible to simply pass all options directly to git-log and let
17899         git do the work.  Notice that this effectively makes --since a
17900         redundant option for gitlog-to-changelog, but removing it would
17901         require current usage to change since calls would then require
17902         an additional '--'.
17903
17904 2008-12-21  Bruno Haible  <bruno@clisp.org>
17905
17906         * modules/mbsnrtowcs-tests: New file.
17907         * tests/test-mbsnrtowcs1.sh: New file.
17908         * tests/test-mbsnrtowcs2.sh: New file.
17909         * tests/test-mbsnrtowcs3.sh: New file.
17910         * tests/test-mbsnrtowcs4.sh: New file.
17911         * tests/test-mbsnrtowcs.c: New file.
17912
17913         New module 'mbsnrtowcs'.
17914         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17915         * lib/mbsnrtowcs.c: New file.
17916         * lib/mbsrtowcs-state.c: New file.
17917         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17918         (internal_state): Remove variable.
17919         * m4/mbsnrtowcs.m4: New file.
17920         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17921         compilation units.
17922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17923         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17924         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17925         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17926         * modules/mbsnrtowcs: New file.
17927         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17928         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17929         portability problem.
17930
17931 2008-12-21  Bruno Haible  <bruno@clisp.org>
17932
17933         Work around mbsrtowcs bug.
17934         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17935         (gl_FUNC_MBSRTOWCS): Invoke it.
17936         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17937         m4/locale-zh.m4.
17938         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17939
17940 2008-12-21  Bruno Haible  <bruno@clisp.org>
17941
17942         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17943
17944 2008-12-21  Bruno Haible  <bruno@clisp.org>
17945
17946         Update doc for AIX.
17947         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17948         16-bit wchar_t type.
17949         * doc/posix-functions/btowc.texi: Likewise.
17950         * doc/posix-functions/fgetwc.texi: Likewise.
17951         * doc/posix-functions/fgetws.texi: Likewise.
17952         * doc/posix-functions/fputwc.texi: Likewise.
17953         * doc/posix-functions/fputws.texi: Likewise.
17954         * doc/posix-functions/fwide.texi: Likewise.
17955         * doc/posix-functions/fwprintf.texi: Likewise.
17956         * doc/posix-functions/fwscanf.texi: Likewise.
17957         * doc/posix-functions/getwchar.texi: Likewise.
17958         * doc/posix-functions/getwc.texi: Likewise.
17959         * doc/posix-functions/iswalnum.texi: Likewise.
17960         * doc/posix-functions/iswalpha.texi: Likewise.
17961         * doc/posix-functions/iswblank.texi: Likewise.
17962         * doc/posix-functions/iswcntrl.texi: Likewise.
17963         * doc/posix-functions/iswctype.texi: Likewise.
17964         * doc/posix-functions/iswdigit.texi: Likewise.
17965         * doc/posix-functions/iswgraph.texi: Likewise.
17966         * doc/posix-functions/iswlower.texi: Likewise.
17967         * doc/posix-functions/iswprint.texi: Likewise.
17968         * doc/posix-functions/iswpunct.texi: Likewise.
17969         * doc/posix-functions/iswspace.texi: Likewise.
17970         * doc/posix-functions/iswupper.texi: Likewise.
17971         * doc/posix-functions/iswxdigit.texi: Likewise.
17972         * doc/posix-functions/mbrtowc.texi: Likewise.
17973         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17974         * doc/posix-functions/mbstowcs.texi: Likewise.
17975         * doc/posix-functions/mbtowc.texi: Likewise.
17976         * doc/posix-functions/putwchar.texi: Likewise.
17977         * doc/posix-functions/putwc.texi: Likewise.
17978         * doc/posix-functions/swprintf.texi: Likewise.
17979         * doc/posix-functions/tolower.texi: Likewise.
17980         * doc/posix-functions/toupper.texi: Likewise.
17981         * doc/posix-functions/towctrans.texi: Likewise.
17982         * doc/posix-functions/ungetwc.texi: Likewise.
17983         * doc/posix-functions/vswprintf.texi: Likewise.
17984         * doc/posix-functions/wcrtomb.texi: Likewise.
17985         * doc/posix-functions/wcscat.texi: Likewise.
17986         * doc/posix-functions/wcschr.texi: Likewise.
17987         * doc/posix-functions/wcscmp.texi: Likewise.
17988         * doc/posix-functions/wcscoll.texi: Likewise.
17989         * doc/posix-functions/wcscpy.texi: Likewise.
17990         * doc/posix-functions/wcscspn.texi: Likewise.
17991         * doc/posix-functions/wcsftime.texi: Likewise.
17992         * doc/posix-functions/wcslen.texi: Likewise.
17993         * doc/posix-functions/wcsncat.texi: Likewise.
17994         * doc/posix-functions/wcsncmp.texi: Likewise.
17995         * doc/posix-functions/wcsncpy.texi: Likewise.
17996         * doc/posix-functions/wcspbrk.texi: Likewise.
17997         * doc/posix-functions/wcsrchr.texi: Likewise.
17998         * doc/posix-functions/wcsrtombs.texi: Likewise.
17999         * doc/posix-functions/wcsspn.texi: Likewise.
18000         * doc/posix-functions/wcsstr.texi: Likewise.
18001         * doc/posix-functions/wcstod.texi: Likewise.
18002         * doc/posix-functions/wcstof.texi: Likewise.
18003         * doc/posix-functions/wcstoimax.texi: Likewise.
18004         * doc/posix-functions/wcstok.texi: Likewise.
18005         * doc/posix-functions/wcstold.texi: Likewise.
18006         * doc/posix-functions/wcstoll.texi: Likewise.
18007         * doc/posix-functions/wcstol.texi: Likewise.
18008         * doc/posix-functions/wcstombs.texi: Likewise.
18009         * doc/posix-functions/wcstoull.texi: Likewise.
18010         * doc/posix-functions/wcstoul.texi: Likewise.
18011         * doc/posix-functions/wcstoumax.texi: Likewise.
18012         * doc/posix-functions/wcswidth.texi: Likewise.
18013         * doc/posix-functions/wcsxfrm.texi: Likewise.
18014         * doc/posix-functions/wctob.texi: Likewise.
18015         * doc/posix-functions/wctomb.texi: Likewise.
18016         * doc/posix-functions/wctrans.texi: Likewise.
18017         * doc/posix-functions/wctype.texi: Likewise.
18018         * doc/posix-functions/wcwidth.texi: Likewise.
18019         * doc/posix-functions/wmemchr.texi: Likewise.
18020         * doc/posix-functions/wmemcmp.texi: Likewise.
18021         * doc/posix-functions/wmemcpy.texi: Likewise.
18022         * doc/posix-functions/wmemmove.texi: Likewise.
18023         * doc/posix-functions/wmemset.texi: Likewise.
18024         * doc/posix-functions/wprintf.texi: Likewise.
18025         * doc/posix-functions/wscanf.texi: Likewise.
18026
18027 2008-12-21  Bruno Haible  <bruno@clisp.org>
18028
18029         Update doc for HP-UX 11.11.
18030         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18031         in HP-UX version 11.00, not in all versions of HP-UX 11.
18032         * doc/posix-functions/fwide.texi: Likewise.
18033         * doc/posix-functions/fwprintf.texi: Likewise.
18034         * doc/posix-functions/fwscanf.texi: Likewise.
18035         * doc/posix-functions/inet_ntop.texi: Likewise.
18036         * doc/posix-functions/inet_pton.texi: Likewise.
18037         * doc/posix-functions/mbrlen.texi: Likewise.
18038         * doc/posix-functions/mbrtowc.texi: Likewise.
18039         * doc/posix-functions/mbsinit.texi: Likewise.
18040         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18041         * doc/posix-functions/swprintf.texi: Likewise.
18042         * doc/posix-functions/swscanf.texi: Likewise.
18043         * doc/posix-functions/towctrans.texi: Likewise.
18044         * doc/posix-functions/vfwprintf.texi: Likewise.
18045         * doc/posix-functions/vswprintf.texi: Likewise.
18046         * doc/posix-functions/vwprintf.texi: Likewise.
18047         * doc/posix-functions/wcrtomb.texi: Likewise.
18048         * doc/posix-functions/wcsrtombs.texi: Likewise.
18049         * doc/posix-functions/wcsstr.texi: Likewise.
18050         * doc/posix-functions/wctob.texi: Likewise.
18051         * doc/posix-functions/wctrans.texi: Likewise.
18052         * doc/posix-functions/wmemchr.texi: Likewise.
18053         * doc/posix-functions/wmemcmp.texi: Likewise.
18054         * doc/posix-functions/wmemcpy.texi: Likewise.
18055         * doc/posix-functions/wmemmove.texi: Likewise.
18056         * doc/posix-functions/wmemset.texi: Likewise.
18057         * doc/posix-functions/wprintf.texi: Likewise.
18058         * doc/posix-functions/wscanf.texi: Likewise.
18059
18060 2008-12-21  Bruno Haible  <bruno@clisp.org>
18061
18062         Work around a portability problem.
18063         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18064         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18065
18066 2008-12-20  Bruno Haible  <bruno@clisp.org>
18067
18068         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18069         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18070         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18072         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18073
18074         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18075         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18076         set.
18077         (GNULIB_defined_mbstate_t): New macro.
18078         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18079         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18080         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18081         reuses the system's mbrtowc function but works around the bugs.
18082         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18083         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18084         macros.
18085         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18086         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18087         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18088         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18089         REPLACE_MBSINIT if mbsinit needs to be overridden.
18090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18091         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18092         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18093         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18094         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18095         m4/locale-zh.m4.
18096         (Depends): Add mbsinit.
18097         * modules/mbsinit (Depends): Add mbrtowc.
18098         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18099
18100 2008-12-20  Bruno Haible  <bruno@clisp.org>
18101
18102         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18103         so that there are no conversion errors on AIX.
18104         * tests/test-mbsrtowcs.c (main): LIkewise.
18105
18106 2008-12-20  Bruno Haible  <bruno@clisp.org>
18107
18108         Work around wctob bug on Solaris <= 9.
18109         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18110         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18112         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18113         * modules/wctob (Files): Add m4/locale-fr.m4.
18114         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18115
18116 2008-12-20  Bruno Haible  <bruno@clisp.org>
18117
18118         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18119         /dev/null.
18120         * tests/test-select-in.sh: Likewise.
18121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18122
18123 2008-12-20  Bruno Haible  <bruno@clisp.org>
18124
18125         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18126         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18127         Cygwin 1.5.x.
18128
18129 2008-12-20  Bruno Haible  <bruno@clisp.org>
18130
18131         Ensure mbstate_t is defined on HP-UX 11.11.
18132         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18133         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18134         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18135         AC_USE_SYSTEM_EXTENSIONS.
18136         * modules/fnmatch (Depends-on): Add extensions.
18137         * modules/mbrlen (Depends-on): Likewise.
18138         * modules/mbrtowc (Depends-on): Likewise.
18139         * modules/mbsinit (Depends-on): Likewise.
18140         * modules/mbsrtowcs (Depends-on): Likewise.
18141         * modules/mbswidth (Depends-on): Likewise.
18142         * modules/quotearg (Depends-on): Likewise.
18143         * modules/strftime (Depends-on): Likewise.
18144
18145 2008-12-20  Bruno Haible  <bruno@clisp.org>
18146
18147         Ensure wctob is declared on IRIX 6.5.
18148         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18149         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18150         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18152         of HAVE_WCTOB.
18153         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18154         HAVE_WCTOB.
18155         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18156
18157 2008-12-19  Bruno Haible  <bruno@clisp.org>
18158
18159         * modules/mbsrtowcs-tests: New file.
18160         * tests/test-mbsrtowcs1.sh: New file.
18161         * tests/test-mbsrtowcs2.sh: New file.
18162         * tests/test-mbsrtowcs3.sh: New file.
18163         * tests/test-mbsrtowcs4.sh: New file.
18164         * tests/test-mbsrtowcs.c: New file.
18165
18166         New module 'mbsrtowcs'.
18167         * lib/wchar.in.h (mbsrtowcs): New declaration.
18168         * lib/mbsrtowcs.c: New file.
18169         * m4/mbsrtowcs.m4: New file.
18170         * modules/mbsrtowcs: New file.
18171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18172         HAVE_MBSRTOWCS.
18173         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18174         HAVE_MBSRTOWCS.
18175         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18176
18177 2008-12-19  Bruno Haible  <bruno@clisp.org>
18178
18179         New module 'mbrlen'.
18180         * lib/wchar.in.h (mbrlen): New declaration.
18181         * lib/mbrlen.c: New file.
18182         * m4/mbrlen.m4: New file.
18183         * modules/mbrlen: New file.
18184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18185         HAVE_MBRLEN.
18186         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18187         HAVE_MBRLEN.
18188         * doc/posix-functions/mbrlen.texi: Document the new module.
18189
18190 2008-12-19  Bruno Haible  <bruno@clisp.org>
18191
18192         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18193         * modules/mbrtowc (Depends-on): Add verify.
18194         Suggested by Paul Eggert.
18195
18196 2008-12-18  Bruno Haible  <bruno@clisp.org>
18197
18198         * modules/mbsinit-tests: New file.
18199         * tests/test-mbsinit.sh: New file.
18200         * tests/test-mbsinit.c: New file.
18201
18202 2008-12-18  Bruno Haible  <bruno@clisp.org>
18203
18204         * modules/mbrtowc-tests: New file.
18205         * tests/test-mbrtowc1.sh: New file.
18206         * tests/test-mbrtowc2.sh: New file.
18207         * tests/test-mbrtowc3.sh: New file.
18208         * tests/test-mbrtowc4.sh: New file.
18209         * tests/test-mbrtowc.c: New file.
18210
18211         New module 'mbrtowc'.
18212         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18213         mbsinit and mbrtowc.
18214         (mbrtowc): New declaration.
18215         * lib/mbrtowc.c: New file.
18216         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18217         * modules/mbrtowc: New file.
18218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18219         HAVE_MBRTOWC.
18220         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18221         HAVE_MBRTOWC.
18222         * doc/posix-functions/mbrtowc.texi: Document the new module.
18223
18224 2008-12-18  Bruno Haible  <bruno@clisp.org>
18225
18226         New module 'wctob'.
18227         * lib/wchar.in.h (wctob): New declaration.
18228         * lib/wctob.c: New file.
18229         * m4/wctob.m4: New file.
18230         * modules/wctob: New file.
18231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18232         HAVE_WCTOB.
18233         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18234         * doc/posix-functions/wctob.texi: Document the new module.
18235
18236 2008-12-18  Bruno Haible  <bruno@clisp.org>
18237
18238         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18239         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18240
18241 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18242
18243         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18244         G. Christensen" <tgc@jupiterrise.com>.
18245
18246         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18247         G. Christensen" <tgc@jupiterrise.com>.
18248
18249         * lib/flock.c: Need to include string.h.  Reported by "Tom
18250         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18251         <ebb9@byu.net>.
18252
18253 2008-12-18  Bruno Haible  <bruno@clisp.org>
18254
18255         * m4/locale-ja.m4: New file, from GNU gettext.
18256
18257 2008-12-17  Bruno Haible  <bruno@clisp.org>
18258
18259         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18260         Suggested by Eric Blake.
18261
18262 2008-12-17  Bruno Haible  <bruno@clisp.org>
18263
18264         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18265
18266 2008-12-17  Bruno Haible  <bruno@clisp.org>
18267
18268         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18269         * modules/mbsinit (Depends-on): Add verify.
18270         Suggested by Paul Eggert.
18271
18272 2008-12-17  Bruno Haible  <bruno@clisp.org>
18273
18274         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18275         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18276         gl_FUNC_MBRTOWC.
18277         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18278         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18279         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18280         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18281         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18282         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18283         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18284         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18285         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18286         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18287         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18288         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18289         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18290         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18291         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18292         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18293         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18294         * modules/trim (configure.ac): Likewise.
18295
18296 2008-12-17  Bruno Haible  <bruno@clisp.org>
18297
18298         * modules/btowc-tests: New file.
18299         * tests/test-btowc1.sh: New file.
18300         * tests/test-btowc2.sh: New file.
18301         * tests/test-btowc.c: New file.
18302
18303         New module 'btowc'.
18304         * lib/wchar.in.h (btowc): New declaration.
18305         * lib/btowc.c: New file.
18306         * m4/btowc.m4: New file.
18307         * modules/btowc: New file.
18308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18309         HAVE_BTOWC.
18310         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18311         * doc/posix-functions/btowc.texi: Document the new module.
18312
18313 2008-12-17  Bruno Haible  <bruno@clisp.org>
18314
18315         New module 'mbsinit'.
18316         * lib/wchar.in.h (mbsinit): New declaration.
18317         * lib/mbsinit.c: New file.
18318         * m4/mbsinit.m4: New file.
18319         * modules/mbsinit: New file.
18320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18321         HAVE_MBSINIT.
18322         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18323         HAVE_MBSINIT.
18324         * doc/posix-functions/mbsinit.texi: Document the new module.
18325
18326 2008-12-16  Bruno Haible  <bruno@clisp.org>
18327
18328         * lib/unistd.in.h: Add comment.
18329         * tests/test-environ.c: Don't include <stdlib.h>.
18330
18331 2008-12-16  Bruno Haible  <bruno@clisp.org>
18332
18333         * lib/parse-duration.h (parse_duration): Document return value
18334         convention.
18335         * lib/parse-duration.c: Include specification header first. Add
18336         comments.
18337         (_): Remove macro.
18338         (parse_year_month_day, parse_hour_minute_second): Move side effects
18339         outside of strchr call.
18340         (parse_non_iso8601): Move side effects outside of isspace call.
18341         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18342         call.
18343
18344 2008-12-16  Bruno Haible  <bruno@clisp.org>
18345
18346         * tests/test-parse-duration.sh: Produce no output when the test
18347         succeeds.
18348
18349 2008-12-16  Bruno Haible  <bruno@clisp.org>
18350
18351         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18352         expressions.
18353
18354 2008-12-15  Bruno Haible  <bruno@clisp.org>
18355
18356         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18357         * doc/glibc-functions/flistxattr.texi: Likewise.
18358         * doc/glibc-functions/fopencookie.texi: Likewise.
18359         * doc/glibc-functions/fremovexattr.texi: Likewise.
18360         * doc/glibc-functions/fsetxattr.texi: Likewise.
18361         * doc/glibc-functions/getxattr.texi: Likewise.
18362         * doc/glibc-functions/lgetxattr.texi: Likewise.
18363         * doc/glibc-functions/listxattr.texi: Likewise.
18364         * doc/glibc-functions/llistxattr.texi: Likewise.
18365         * doc/glibc-functions/lremovexattr.texi: Likewise.
18366         * doc/glibc-functions/lsetxattr.texi: Likewise.
18367         * doc/glibc-functions/removexattr.texi: Likewise.
18368         * doc/glibc-functions/setxattr.texi: Likewise.
18369         * doc/posix-functions/open_memstream.texi: Likewise.
18370
18371 2008-12-15  Eric Blake  <ebb9@byu.net>
18372
18373         Update doc for cygwin 1.7.
18374         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18375         functions.
18376         * doc/posix-functions/fchmodat.texi: Likewise.
18377         * doc/posix-functions/fchownat.texi: Likewise.
18378         * doc/posix-functions/fdopendir.texi: Likewise.
18379         * doc/posix-functions/fmemopen.texi: Likewise.
18380         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18381         * doc/posix-functions/fstatat.texi: Likewise.
18382         * doc/posix-functions/futimens.texi: Likewise.
18383         * doc/posix-functions/gai_strerror.texi: Likewise.
18384         * doc/posix-functions/getaddrinfo.texi: Likewise.
18385         * doc/posix-functions/getnameinfo.texi: Likewise.
18386         * doc/posix-functions/if_freenameindex.texi: Likewise.
18387         * doc/posix-functions/if_indextoname.texi: Likewise.
18388         * doc/posix-functions/if_nameindex.texi: Likewise.
18389         * doc/posix-functions/if_nametoindex.texi: Likewise.
18390         * doc/posix-functions/insque.texi: Likewise.
18391         * doc/posix-functions/linkat.texi: Likewise.
18392         * doc/posix-functions/llrint.texi: Likewise.
18393         * doc/posix-functions/llrintf.texi: Likewise.
18394         * doc/posix-functions/llrintl.texi: Likewise.
18395         * doc/posix-functions/lockf.texi: Likewise.
18396         * doc/posix-functions/lrintl.texi: Likewise.
18397         * doc/posix-functions/mkdirat.texi: Likewise.
18398         * doc/posix-functions/mkfifoat.texi: Likewise.
18399         * doc/posix-functions/mknodat.texi: Likewise.
18400         * doc/posix-functions/mq_close.texi: Likewise.
18401         * doc/posix-functions/mq_getattr.texi: Likewise.
18402         * doc/posix-functions/mq_notify.texi: Likewise.
18403         * doc/posix-functions/mq_open.texi: Likewise.
18404         * doc/posix-functions/mq_receive.texi: Likewise.
18405         * doc/posix-functions/mq_send.texi: Likewise.
18406         * doc/posix-functions/mq_setattr.texi: Likewise.
18407         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18408         * doc/posix-functions/mq_timedsend.texi: Likewise.
18409         * doc/posix-functions/mq_unlink.texi: Likewise.
18410         * doc/posix-functions/open_memstream.texi: Likewise.
18411         * doc/posix-functions/openat.texi: Likewise.
18412         * doc/posix-functions/posix_fadvise.texi: Likewise.
18413         * doc/posix-functions/posix_fallocate.texi: Likewise.
18414         * doc/posix-functions/posix_madvise.texi: Likewise.
18415         * doc/posix-functions/posix_memalign.texi: Likewise.
18416         * doc/posix-functions/posix_openpt.texi: Likewise.
18417         * doc/posix-functions/readlinkat.texi: Likewise.
18418         * doc/posix-functions/remque.texi: Likewise.
18419         * doc/posix-functions/renameat.texi: Likewise.
18420         * doc/posix-functions/rintl.texi: Likewise.
18421         * doc/posix-functions/sem_unlink.texi: Likewise.
18422         * doc/posix-functions/shm_open.texi: Likewise.
18423         * doc/posix-functions/shm_unlink.texi: Likewise.
18424         * doc/posix-functions/signgam.texi: Likewise.
18425         * doc/posix-functions/sigset.texi: Likewise.
18426         * doc/posix-functions/stpcpy.texi: Likewise.
18427         * doc/posix-functions/stpncpy.texi: Likewise.
18428         * doc/posix-functions/strerror.texi: Likewise.
18429         * doc/posix-functions/strtod.texi: Likewise.
18430         * doc/posix-functions/symlinkat.texi: Likewise.
18431         * doc/posix-functions/unlinkat.texi: Likewise.
18432         * doc/posix-functions/utimensat.texi: Likewise.
18433         * doc/glibc-functions/bindresvport.texi: Likewise.
18434         * doc/glibc-functions/dn_expand.texi: Likewise.
18435         * doc/glibc-functions/exp10.texi: Likewise.
18436         * doc/glibc-functions/exp10f.texi: Likewise.
18437         * doc/glibc-functions/fgetxattr.texi: Likewise.
18438         * doc/glibc-functions/flistxattr.texi: Likewise.
18439         * doc/glibc-functions/fopencookie.texi: Likewise.
18440         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18441         * doc/glibc-functions/fremovexattr.texi: Likewise.
18442         * doc/glibc-functions/fsetxattr.texi: Likewise.
18443         * doc/glibc-functions/getifaddrs.texi: Likewise.
18444         * doc/glibc-functions/getxattr.texi: Likewise.
18445         * doc/glibc-functions/lgetxattr.texi: Likewise.
18446         * doc/glibc-functions/listxattr.texi: Likewise.
18447         * doc/glibc-functions/llistxattr.texi: Likewise.
18448         * doc/glibc-functions/lremovexattr.texi: Likewise.
18449         * doc/glibc-functions/lsetxattr.texi: Likewise.
18450         * doc/glibc-functions/pow10.texi: Likewise.
18451         * doc/glibc-functions/pow10f.texi: Likewise.
18452         * doc/glibc-functions/rcmd_af.texi: Likewise.
18453         * doc/glibc-functions/removexattr.texi: Likewise.
18454         * doc/glibc-functions/res_init.texi: Likewise.
18455         * doc/glibc-functions/res_mkquery.texi: Likewise.
18456         * doc/glibc-functions/res_query.texi: Likewise.
18457         * doc/glibc-functions/res_querydomain.texi: Likewise.
18458         * doc/glibc-functions/res_send.texi: Likewise.
18459         * doc/glibc-functions/rresvport_af.texi: Likewise.
18460         * doc/glibc-functions/setxattr.texi: Likewise.
18461         * doc/glibc-functions/strcasestr.texi: Likewise.
18462
18463 2008-12-15  Bruno Haible  <bruno@clisp.org>
18464
18465         Fix compilation error on OSF/1 4.0.
18466         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18467         <sys/time.h>, simply delegate to the system header.
18468         Reported by Daniel Richard G. <oss@teragram.com>.
18469
18470 2008-12-15  Bruno Haible  <bruno@clisp.org>
18471
18472         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18473         * doc/posix-functions/fchmodat.texi: Likewise.
18474         * doc/posix-functions/fchownat.texi: Likewise.
18475         * doc/posix-functions/fdopendir.texi: Likewise.
18476         * doc/posix-functions/fstatat.texi: Likewise.
18477         * doc/posix-functions/mkdirat.texi: Likewise.
18478         * doc/posix-functions/unlinkat.texi: Likewise.
18479
18480 2008-12-14  Bruno Haible  <bruno@clisp.org>
18481
18482         Update doc for POSIX:2008.
18483         * doc/posix-functions/faccessat.texi: New file.
18484         * doc/posix-functions/fchmodat.texi: New file.
18485         * doc/posix-functions/fchownat.texi: New file.
18486         * doc/posix-functions/fdopendir.texi: New file.
18487         * doc/posix-functions/fstatat.texi: New file.
18488         * doc/posix-functions/futimens.texi: New file.
18489         * doc/posix-functions/linkat.texi: New file.
18490         * doc/posix-functions/mkdirat.texi: New file.
18491         * doc/posix-functions/mkfifoat.texi: New file.
18492         * doc/posix-functions/mknodat.texi: New file.
18493         * doc/posix-functions/open_wmemstream.texi: New file.
18494         * doc/posix-functions/openat.texi: New file.
18495         * doc/posix-functions/psiginfo.texi: New file.
18496         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18497         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18498         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18499         * doc/posix-functions/readlinkat.texi: New file.
18500         * doc/posix-functions/renameat.texi: New file.
18501         * doc/posix-functions/strerror_l.texi: New file.
18502         * doc/posix-functions/symlinkat.texi: New file.
18503         * doc/posix-functions/unlinkat.texi: New file.
18504         * doc/posix-functions/utimensat.texi: New file.
18505         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18506
18507 2008-12-14  Bruno Haible  <bruno@clisp.org>
18508
18509         Update doc for POSIX:2008.
18510         * doc/posix-functions/alphasort.texi: Renamed from
18511         doc/glibc-functions/alphasort.texi.
18512         * doc/posix-functions/dirfd.texi: Renamed from
18513         doc/glibc-functions/dirfd.texi.
18514         * doc/posix-functions/dprintf.texi: Renamed from
18515         doc/glibc-functions/dprintf.texi.
18516         * doc/posix-functions/duplocale.texi: Renamed from
18517         doc/glibc-functions/duplocale.texi.
18518         * doc/posix-functions/fexecve.texi: Renamed from
18519         doc/glibc-functions/fexecve.texi.
18520         * doc/posix-functions/fmemopen.texi: Renamed from
18521         doc/glibc-functions/fmemopen.texi.
18522         * doc/posix-functions/freelocale.texi: Renamed from
18523         doc/glibc-functions/freelocale.texi.
18524         * doc/posix-functions/getdate_err.texi: Renamed from
18525         doc/glibc-functions/getdate_err.texi.
18526         * doc/posix-functions/isalnum_l.texi: Renamed from
18527         doc/glibc-functions/isalnum_l.texi.
18528         * doc/posix-functions/isalpha_l.texi: Renamed from
18529         doc/glibc-functions/isalpha_l.texi.
18530         * doc/posix-functions/isblank_l.texi: Renamed from
18531         doc/glibc-functions/isblank_l.texi.
18532         * doc/posix-functions/iscntrl_l.texi: Renamed from
18533         doc/glibc-functions/iscntrl_l.texi.
18534         * doc/posix-functions/isdigit_l.texi: Renamed from
18535         doc/glibc-functions/isdigit_l.texi.
18536         * doc/posix-functions/isgraph_l.texi: Renamed from
18537         doc/glibc-functions/isgraph_l.texi.
18538         * doc/posix-functions/islower_l.texi: Renamed from
18539         doc/glibc-functions/islower_l.texi.
18540         * doc/posix-functions/isprint_l.texi: Renamed from
18541         doc/glibc-functions/isprint_l.texi.
18542         * doc/posix-functions/ispunct_l.texi: Renamed from
18543         doc/glibc-functions/ispunct_l.texi.
18544         * doc/posix-functions/isspace_l.texi: Renamed from
18545         doc/glibc-functions/isspace_l.texi.
18546         * doc/posix-functions/isupper_l.texi: Renamed from
18547         doc/glibc-functions/isupper_l.texi.
18548         * doc/posix-functions/iswalnum_l.texi: Renamed from
18549         doc/glibc-functions/iswalnum_l.texi.
18550         * doc/posix-functions/iswalpha_l.texi: Renamed from
18551         doc/glibc-functions/iswalpha_l.texi.
18552         * doc/posix-functions/iswblank_l.texi: Renamed from
18553         doc/glibc-functions/iswblank_l.texi.
18554         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18555         doc/glibc-functions/iswcntrl_l.texi.
18556         * doc/posix-functions/iswctype_l.texi: Renamed from
18557         doc/glibc-functions/iswctype_l.texi.
18558         * doc/posix-functions/iswdigit_l.texi: Renamed from
18559         doc/glibc-functions/iswdigit_l.texi.
18560         * doc/posix-functions/iswgraph_l.texi: Renamed from
18561         doc/glibc-functions/iswgraph_l.texi.
18562         * doc/posix-functions/iswlower_l.texi: Renamed from
18563         doc/glibc-functions/iswlower_l.texi.
18564         * doc/posix-functions/iswprint_l.texi: Renamed from
18565         doc/glibc-functions/iswprint_l.texi.
18566         * doc/posix-functions/iswpunct_l.texi: Renamed from
18567         doc/glibc-functions/iswpunct_l.texi.
18568         * doc/posix-functions/iswspace_l.texi: Renamed from
18569         doc/glibc-functions/iswspace_l.texi.
18570         * doc/posix-functions/iswupper_l.texi: Renamed from
18571         doc/glibc-functions/iswupper_l.texi.
18572         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18573         doc/glibc-functions/iswxdigit_l.texi.
18574         * doc/posix-functions/isxdigit_l.texi: Renamed from
18575         doc/glibc-functions/isxdigit_l.texi.
18576         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18577         doc/glibc-functions/mbsnrtowcs.texi.
18578         * doc/posix-functions/mkdtemp.texi: Renamed from
18579         doc/glibc-functions/mkdtemp.texi.
18580         * doc/posix-functions/newlocale.texi: Renamed from
18581         doc/glibc-functions/newlocale.texi.
18582         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18583         doc/glibc-functions/nl_langinfo_l.texi.
18584         * doc/posix-functions/open_memstream.texi: Renamed from
18585         doc/glibc-functions/open_memstream.texi.
18586         * doc/posix-functions/opterr.texi: Renamed from
18587         doc/glibc-functions/opterr.texi.
18588         * doc/posix-functions/optind.texi: Renamed from
18589         doc/glibc-functions/optind.texi.
18590         * doc/posix-functions/optopt.texi: Renamed from
18591         doc/glibc-functions/optopt.texi.
18592         * doc/posix-functions/psignal.texi: Renamed from
18593         doc/glibc-functions/psignal.texi.
18594         * doc/posix-functions/scandir.texi: Renamed from
18595         doc/glibc-functions/scandir.texi.
18596         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18597         doc/glibc-functions/sched_get_priority_min.texi.
18598         * doc/posix-functions/signgam.texi: Renamed from
18599         doc/glibc-functions/signgam.texi.
18600         * doc/posix-functions/stpcpy.texi: Renamed from
18601         doc/glibc-functions/stpcpy.texi.
18602         * doc/posix-functions/stpncpy.texi: Renamed from
18603         doc/glibc-functions/stpncpy.texi.
18604         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18605         doc/glibc-functions/strcasecmp_l.texi.
18606         * doc/posix-functions/strcoll_l.texi: Renamed from
18607         doc/glibc-functions/strcoll_l.texi.
18608         * doc/posix-functions/strfmon_l.texi: Renamed from
18609         doc/glibc-functions/strfmon_l.texi.
18610         * doc/posix-functions/strftime_l.texi: Renamed from
18611         doc/glibc-functions/strftime_l.texi.
18612         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18613         doc/glibc-functions/strncasecmp_l.texi.
18614         * doc/posix-functions/strndup.texi: Renamed from
18615         doc/glibc-functions/strndup.texi.
18616         * doc/posix-functions/strnlen.texi: Renamed from
18617         doc/glibc-functions/strnlen.texi.
18618         * doc/posix-functions/strsignal.texi: Renamed from
18619         doc/glibc-functions/strsignal.texi.
18620         * doc/posix-functions/strxfrm_l.texi: Renamed from
18621         doc/glibc-functions/strxfrm_l.texi.
18622         * doc/posix-functions/timer_gettime.texi: Renamed from
18623         doc/glibc-functions/timer_gettime.texi.
18624         * doc/posix-functions/tolower_l.texi: Renamed from
18625         doc/glibc-functions/tolower_l.texi.
18626         * doc/posix-functions/toupper_l.texi: Renamed from
18627         doc/glibc-functions/toupper_l.texi.
18628         * doc/posix-functions/towctrans_l.texi: Renamed from
18629         doc/glibc-functions/towctrans_l.texi.
18630         * doc/posix-functions/towlower_l.texi: Renamed from
18631         doc/glibc-functions/towlower_l.texi.
18632         * doc/posix-functions/towupper_l.texi: Renamed from
18633         doc/glibc-functions/towupper_l.texi.
18634         * doc/posix-functions/uselocale.texi: Renamed from
18635         doc/glibc-functions/uselocale.texi.
18636         * doc/posix-functions/vdprintf.texi: Renamed from
18637         doc/glibc-functions/vdprintf.texi.
18638         * doc/posix-functions/wcpcpy.texi:
18639         Renamed from doc/glibc-functions/wcpcpy.texi.
18640         * doc/posix-functions/wcpncpy.texi: Renamed from
18641         doc/glibc-functions/wcpncpy.texi.
18642         * doc/posix-functions/wcscasecmp.texi: Renamed from
18643         doc/glibc-functions/wcscasecmp.texi.
18644         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18645         doc/glibc-functions/wcscasecmp_l.texi.
18646         * doc/posix-functions/wcscoll_l.texi: Renamed from
18647         doc/glibc-functions/wcscoll_l.texi.
18648         * doc/posix-functions/wcsdup.texi: Renamed from
18649         doc/glibc-functions/wcsdup.texi.
18650         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18651         doc/glibc-functions/wcsncasecmp.texi.
18652         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18653         doc/glibc-functions/wcsncasecmp_l.texi.
18654         * doc/posix-functions/wcsnlen.texi: Renamed from
18655         doc/glibc-functions/wcsnlen.texi.
18656         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18657         doc/glibc-functions/wcsnrtombs.texi.
18658         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18659         doc/glibc-functions/wcsxfrm_l.texi.
18660         * doc/posix-functions/wctrans_l.texi: Renamed from
18661         doc/glibc-functions/wctrans_l.texi.
18662         * doc/posix-functions/wctype_l.texi: Renamed from
18663         doc/glibc-functions/wctype_l.texi.
18664         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18665         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18666         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18667         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18668         these subsections.
18669         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18670         Remove sections.
18671
18672 2008-12-14  Bruno Haible  <bruno@clisp.org>
18673
18674         Update doc for POSIX:2008.
18675         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18676
18677 2008-12-14  Bruno Haible  <bruno@clisp.org>
18678
18679         Update doc for POSIX:2008.
18680         * doc/pastposix-functions/bcmp.texi: Renamed from
18681         doc/posix-functions/bcmp.texi.
18682         * doc/pastposix-functions/bcopy.texi: Renamed from
18683         doc/posix-functions/bcopy.texi.
18684         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18685         doc/posix-functions/bsd_signal.texi.
18686         * doc/pastposix-functions/bzero.texi: Renamed from
18687         doc/posix-functions/bzero.texi.
18688         * doc/pastposix-functions/ecvt.texi: Renamed from
18689         doc/posix-functions/ecvt.texi.
18690         * doc/pastposix-functions/fcvt.texi: Renamed from
18691         doc/posix-functions/fcvt.texi.
18692         * doc/pastposix-functions/ftime.texi: Renamed from
18693         doc/posix-functions/ftime.texi.
18694         * doc/pastposix-functions/gcvt.texi: Renamed from
18695         doc/posix-functions/gcvt.texi.
18696         * doc/pastposix-functions/getcontext.texi: Renamed from
18697         doc/posix-functions/getcontext.texi.
18698         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18699         doc/posix-functions/gethostbyaddr.texi.
18700         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18701         doc/posix-functions/gethostbyname.texi.
18702         * doc/pastposix-functions/getwd.texi: Renamed from
18703         doc/posix-functions/getwd.texi.
18704         * doc/pastposix-functions/h_errno.texi: Renamed from
18705         doc/posix-functions/h_errno.texi.
18706         * doc/pastposix-functions/index.texi: Renamed from
18707         doc/posix-functions/index.texi.
18708         * doc/pastposix-functions/makecontext.texi: Renamed from
18709         doc/posix-functions/makecontext.texi.
18710         * doc/pastposix-functions/mktemp.texi: Renamed from
18711         doc/posix-functions/mktemp.texi.
18712         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18713         doc/posix-functions/pthread_attr_getstackaddr.texi.
18714         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18715         doc/posix-functions/pthread_attr_setstackaddr.texi.
18716         * doc/pastposix-functions/rindex.texi: Renamed from
18717         doc/posix-functions/rindex.texi.
18718         * doc/pastposix-functions/scalb.texi: Renamed from
18719         doc/posix-functions/scalb.texi.
18720         * doc/pastposix-functions/setcontext.texi: Renamed from
18721         doc/posix-functions/setcontext.texi.
18722         * doc/pastposix-functions/swapcontext.texi: Renamed from
18723         doc/posix-functions/swapcontext.texi.
18724         * doc/pastposix-functions/ualarm.texi: Renamed from
18725         doc/posix-functions/ualarm.texi.
18726         * doc/pastposix-functions/usleep.texi: Renamed from
18727         doc/posix-functions/usleep.texi.
18728         * doc/pastposix-functions/vfork.texi: Renamed from
18729         doc/posix-functions/vfork.texi.
18730         * doc/pastposix-functions/wcswcs.texi: Renamed from
18731         doc/posix-functions/wcswcs.texi.
18732         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18733         (Function Substitutes): Update.
18734
18735 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18736
18737         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18738         m4/strerror.m4.
18739
18740 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18741             Bruno Haible  <bruno@clisp.org>
18742
18743         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18744
18745 2008-12-13  Bruno Haible  <bruno@clisp.org>
18746
18747         * modules/strtoull (Depends-on): Remove unistd.
18748
18749 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18750
18751         * modules/strtoull (Depends-on): Add stdlib.
18752
18753 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18754
18755         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18756
18757 2008-12-10  Jim Meyering  <meyering@redhat.com>
18758
18759         gl_ASSERT: don't say assertions are disabled when they're not
18760         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18761         "checking whether to enable assertions... no", when they are in
18762         fact enabled.  This is solely a bug in the output of configure.
18763         In spite of saying "no", NDEBUG was not defined in that case.
18764         Also, as noted by Eric Blake, leave assertions enabled upon
18765         --enable-assert=INVALID.
18766
18767 2008-12-10  Bruno Haible  <bruno@clisp.org>
18768
18769         Change MODULES.html to refer to POSIX:2008 where possible.
18770         * MODULES.html.sh (POSIX2008_URL): New variable.
18771         (posix_headers): Remove sys/timeb, ucontext.
18772         (posix2001_headers): New variable.
18773         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18774         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18775         index, makecontext, mktemp, pthread_attr_getstackaddr,
18776         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18777         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18778         (posix2001_functions): New variable.
18779         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18780         otherwise.
18781
18782 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18783
18784         add missing include to parse-duration.c
18785         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18786         * modules/parse-duration (Depends-on): Add xalloc.
18787
18788         fix sed script reading maint.mk
18789         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18790         (syntax-check-rules): Use it.
18791
18792 2008-12-09  Bruno Haible  <bruno@clisp.org>
18793
18794         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18795         MacOS X 10.4/PowerPC.
18796         Reported by Simon Josefsson.
18797
18798 2008-12-08  Jim Meyering  <meyering@redhat.com>
18799
18800         work around mingw's lack of some S_IF definitions
18801         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18802         Reported by Simon Josefsson.
18803
18804 2008-12-08  Bruno Haible  <bruno@clisp.org>
18805
18806         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18807         applied to variables. Needed on MacOS X 10.4/PowerPC.
18808         Reported by Simon Josefsson.
18809
18810 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18811         and Eric Blake  <ebb9@byu.net>
18812
18813         assert: honor --enable-assert
18814         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18815         order to honor --enable-assert, rather than treating it as a
18816         synonym for --disable-assert.
18817
18818 2008-12-08  Jim Meyering  <meyering@redhat.com>
18819
18820         * lib/posixtm.c: Remove now-useless declaration of mktime.
18821
18822         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18823
18824 2008-12-07  Bruno Haible  <bruno@clisp.org>
18825
18826         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18827         test_once): Mark functions as static.
18828         * tests/test-tls.c (test_tls): Likewise.
18829
18830 2008-12-07  Bruno Haible  <bruno@clisp.org>
18831
18832         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18833         iconv_register_autodetect.
18834
18835 2008-12-07  Jim Meyering  <meyering@redhat.com>
18836
18837         posixtm.c: avoid a warning
18838         * lib/posixtm.c (posixtime): Don't initialize tm0.
18839         It's no longer needed to placate gcc4's -Wuninitialized,
18840         and the attempt to placate would elicit a new warning.
18841
18842         unicodeio.c: mark unused parameters
18843         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18844         (fallback_failure_callback): Likewise.
18845
18846 2008-12-07  Bruno Haible  <bruno@clisp.org>
18847
18848         * gnulib-tool (func_create_testdir): When building the tests
18849         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18850         Reported by Simon Josefsson.
18851
18852 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18853
18854         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18855
18856 2008-12-06  Bruno Haible  <bruno@clisp.org>
18857
18858         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18859         Suggested by Eric Blake.
18860
18861 2008-12-06  Bruno Haible  <bruno@clisp.org>
18862
18863         Fix a c-stack test failure on MacOS X.
18864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18865         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18866         handler for SIGBUS as well.
18867         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18868         install a signal handler for SIGBUS as well.
18869         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18870
18871 2008-12-06  Bruno Haible  <bruno@clisp.org>
18872
18873         Advocacy documentation.
18874         * doc/gnulib-intro.texi (Benefits): New section.
18875         * doc/gnulib.texi: Update.
18876
18877 2008-12-06  Bruno Haible  <bruno@clisp.org>
18878
18879         Document the 'manywarnings' module.
18880         * doc/manywarnings.texi: New file.
18881         * doc/gnulib.texi: Include it.
18882
18883 2008-12-05  Eric Blake  <ebb9@byu.net>
18884
18885         tests: silence some gcc warnings
18886         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18887         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18888         type mismatches.
18889
18890 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18891             Bruno Haible  <bruno@clisp.org>
18892
18893         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18894
18895 2008-11-29  Jim Meyering  <meyering@redhat.com>
18896
18897         unicodeio.c: mark unused parameters
18898         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18899         (fallback_failure_callback): Likewise.
18900
18901         fts: fix a thinko
18902         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18903         (set_stat_type): Return S_IF*-valued "type" directly.
18904         Prompted by James Youngman's spotting a related bug.
18905         Confirmed by further testing through find.
18906
18907         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18908         * lib/fts.c (D_TYPE): Define.
18909         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18910         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18911         (s_ifmt_shift_bits): New function.
18912         (set_stat_type): New function.
18913         (fts_build): When not calling fts_stat, call set_stat_type
18914         to propagate dirent.d_type info to fts_read caller.
18915         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18916         fts_statp->st_mode type information may be valid.
18917
18918 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18919
18920         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18921         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18922         <sds@gnu.org>.
18923
18924 2008-11-20  Bruno Haible  <bruno@clisp.org>
18925
18926         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18927         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18928         INCLUDE_NEXT.
18929         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18930         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18931         * modules/math (Makefile.am): Substitute
18932         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18933         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18934
18935 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18936             Bruno Haible  <bruno@clisp.org>
18937
18938         * lib/stdint.in.h: Define all type macros so that their expansion is
18939         a single typedef'ed token. Fixes a compilation failure in Boost which
18940         does "using ::int8_t;".
18941
18942 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18943
18944         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18945         gl_MANYWARN_ALL_GCC.
18946         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18947         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18948         * modules/manywarnings: New file.
18949         * MODULES.html.sh: Mention manywarnings module.
18950
18951 2008-11-18  Bruno Haible  <bruno@clisp.org>
18952
18953         * doc/gnulib-tool.texi (Unit tests): New section.
18954
18955 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18956
18957         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18958         paths like 'lib/po/foo.po'.
18959
18960 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18961
18962         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18963         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18964
18965 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18966
18967         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18968         parameter works.
18969
18970 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18971
18972         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18973
18974 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18975
18976         * modules/parse-duration-tests: New file.
18977         * tests/test-parse-duration.sh: New file.
18978         * tests/test-parse-duration.c: New file.
18979
18980         New module 'parse-duration'.
18981         * lib/parse-duration.h: New file.
18982         * lib/parse-duration.c: New file.
18983         * modules/parse-duration: New file.
18984
18985 2008-11-17  Bruno Haible  <bruno@clisp.org>
18986
18987         * tests/test-select-out.sh: Comment out the first pipe test.
18988         Reported by Simon Josefsson.
18989
18990 2008-11-17  Bruno Haible  <bruno@clisp.org>
18991
18992         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18993         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18994         gl_HOSTENT.
18995
18996 2008-11-17  Bruno Haible  <bruno@clisp.org>
18997
18998         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18999         -lnetwork and -lnet. Needed for Haiku and BeOS.
19000
19001 2008-11-16  Bruno Haible  <bruno@clisp.org>
19002
19003         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19004
19005 2008-11-16  Bruno Haible  <bruno@clisp.org>
19006
19007         Avoid test failure on Haiku.
19008         * tests/test-fsync.c: Include <errno.h>.
19009         (main): Don't require that fsync (0) fails.
19010
19011 2008-11-15  Bruno Haible  <bruno@clisp.org>
19012
19013         New module 'hostent'.
19014         * modules/hostent: New file.
19015         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19016
19017 2008-11-15  Bruno Haible  <bruno@clisp.org>
19018
19019         New module 'servent'.
19020         * modules/servent: New file.
19021         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19022
19023 2008-11-15  Bruno Haible  <bruno@clisp.org>
19024
19025         Avoid generating same test program with two different rules.
19026         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19027         test-frexp to test-frexp-nolibm.
19028         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19029         test-frexpl to test-frexpl-nolibm.
19030
19031 2008-11-15  Bruno Haible  <bruno@clisp.org>
19032
19033         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19034         $(FREXPL_LIBM).
19035
19036 2008-11-15  Bruno Haible  <bruno@clisp.org>
19037
19038         * lib/netdb.in.h: Activate the definitions also when the system's
19039         <netdb.h> has 'struct addrinfo'.
19040         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19041         EAI_OVERFLOW or AI_NUMERICSERV.
19042         * doc/posix-headers/netdb.texi: Document the problem.
19043
19044 2008-11-15  Bruno Haible  <bruno@clisp.org>
19045
19046         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19047
19048         Make the 'sched' module work on platforms where <sched.h> exists but
19049         is incomplete (such as Haiku).
19050         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19051         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19052         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19053         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19054         HAVE_STRUCT_SCHED_PARAM.
19055         * modules/sched (Depends-on): Add include_next.
19056         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19057         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19058         * doc/posix-headers/sched.texi: Document the issue.
19059
19060 2008-11-13  Jim Meyering  <meyering@redhat.com>
19061
19062         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19063         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19064         test would fail due to the difference in the Report bugs to ...
19065         line.  The expected address is empty, "<>", while the actual
19066         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19067
19068 2008-11-12  Bruno Haible  <bruno@clisp.org>
19069
19070         lstat: don't compile lstat.c on systems lacking lstat
19071         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19072         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19073         Reported by Daniel P. Berrange via Jim Meyering.
19074
19075 2008-11-12  Jim Meyering  <meyering@redhat.com>
19076
19077         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19078
19079 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19080
19081         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19082         instead.
19083
19084 2008-11-12  Bruno Haible  <bruno@clisp.org>
19085
19086         * lib/unicodeio.c: Include unistr.h.
19087         (utf8_wctomb): Remove function.
19088         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19089
19090 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19091
19092         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19093         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19094         <bruno@clisp.org>.
19095         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19096
19097 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19098
19099         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19100         * doc/gnulib.texi: Add section for warnings.
19101
19102 2008-11-11  Bruno Haible  <bruno@clisp.org>
19103
19104         * lib/sockets.h: Add a comment.
19105
19106 2008-11-11  Karl Berry  <karl@gnu.org>
19107
19108         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19109
19110 2008-11-11  Eric Blake  <ebb9@byu.net>
19111
19112         fdl.texi: avoid git symlinks
19113         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19114
19115 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19116
19117         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19118
19119 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19120
19121         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19122         (gl_WARN_ADD): Substitute $2 if literal.
19123
19124 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19125
19126         * m4/warning.m4: Remove.
19127
19128 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19129
19130         * m4/warnings.m4: Almost complete rewrite. :-)
19131
19132 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19133
19134         * modules/warnings: New module.
19135         * m4/warnings.m4: New file.
19136         * MODULES.html.sh: Mention warnings module.
19137         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19138         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19139
19140 2008-11-10  Eric Blake  <ebb9@byu.net>
19141
19142         fdl.texi: make a symlink to the latest version
19143         * doc/standards.texi: Revert today's earlier change.
19144         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19145         * doc/fdl.texi: ...and replace this with a symlink to the newer
19146         fdl-1.3.texi.
19147
19148 2008-11-10  Bruno Haible  <bruno@clisp.org>
19149
19150         * tests/test-select-fd.c (main): Accept the result file name as fourth
19151         argument.
19152         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19153         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19154
19155 2008-11-10  Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19158         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19159         as autoconf-substituted macros.
19160         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19162         gl_NETDB_H_DEFAULTS. Set these variables.
19163         * modules/netdb (Makefile.am): Substitute these variables.
19164
19165 2008-11-10  Eric Blake  <ebb9@byu.net>
19166
19167         standards.texi: include correct file for FDL 1.3
19168         * doc/standards.texi (GNU Free Documentation License): Change
19169         include file to pull in FDL 1.3, not 1.2.
19170
19171         fdl.texi: revert accidental change to license
19172         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19173
19174 2008-11-10  Bruno Haible  <bruno@clisp.org>
19175
19176         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19177         cross-compiling guesses also when the native compile gives no result.
19178
19179 2008-11-10  Bruno Haible  <bruno@clisp.org>
19180
19181         * lib/spawni.c (__spawni): Force variable into the stack.
19182
19183 2008-11-10  Bruno Haible  <bruno@clisp.org>
19184
19185         Add support for Haiku.
19186         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19187         glibc and BeOS, but also on Haiku.
19188         * lib/fpurge.c (fpurge): Likewise.
19189         * lib/freadable.c (freadable): Likewise.
19190         * lib/freadahead.c (freadahead): Likewise.
19191         * lib/freading.c (freading): Likewise.
19192         * lib/freadptr.c (freadptr): Likewise.
19193         * lib/freadseek.c (freadptrinc): Likewise.
19194         * lib/fseeko.c (rpl_fseeko): Likewise.
19195         * lib/fseterr.c (fseterr): Likewise.
19196         * lib/fwritable.c (fwritable): Likewise.
19197         * lib/fwriting.c (fwriting): Likewise.
19198         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19199
19200 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19201
19202         * lib/config.charset: Treat Haiku like BeOS.
19203
19204 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19205
19206         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19207         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19208
19209 2008-11-08  Bruno Haible  <bruno@clisp.org>
19210
19211         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19212         AC_CACHE_CHECK.
19213
19214 2008-11-08  Bruno Haible  <bruno@clisp.org>
19215
19216         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19217
19218 2008-11-08  Bruno Haible  <bruno@clisp.org>
19219
19220         * tests/test-select-fd.c: New file.
19221         * tests/test-select-in.sh: New file.
19222         * tests/test-select-out.sh: New file.
19223         * tests/test-select-stdin.c: New file.
19224         * modules/select-tests (Files): Add the new files.
19225         (Depends-on): Add gettimeofday.
19226         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19227         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19228         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19229
19230 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19231             Bruno Haible  <bruno@clisp.org>
19232
19233         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19234
19235 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19236
19237         * build-aux/pmccabe2html: Added support for C++ source files.
19238
19239 2008-11-05  Ben Pfaff  <blp@gnu.org>
19240
19241         Fix lib/close.c build on Windows.
19242         * modules/close (Files): Add lib/w32sock.h.
19243
19244 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19245
19246         Accept Bison's NEWS format.
19247         * build-aux/announce-gen (print_news_deltas): Tweak
19248         $re_prefix.
19249
19250 2008-11-04  Bruno Haible  <bruno@clisp.org>
19251
19252         * modules/random_r (Maintainer): Add glibc.
19253
19254 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19255
19256         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19257         by karl@freefriends.org (Karl Berry).
19258         * doc/alloca.texi: Likewise.
19259         * doc/c-ctype.texi: Likewise.
19260         * doc/c-strcase.texi: Likewise.
19261         * doc/c-strcaseeq.texi: Likewise.
19262         * doc/c-strcasestr.texi: Likewise.
19263         * doc/c-strstr.texi: Likewise.
19264         * doc/c-strtod.texi: Likewise.
19265         * doc/c-strtold.texi: Likewise.
19266         * doc/ctime.texi: Likewise.
19267         * doc/error.texi: Likewise.
19268         * doc/fdl.texi: Likewise.
19269         * doc/gcd.texi: Likewise.
19270         * doc/getdate.texi: Likewise.
19271         * doc/gnulib-intro.texi: Likewise.
19272         * doc/gnulib-tool.texi: Likewise.
19273         * doc/gnulib.texi: Likewise.
19274         * doc/inet_ntoa.texi: Likewise.
19275         * doc/maintain.texi: Likewise.
19276         * doc/make-stds.texi: Likewise.
19277         * doc/quote.texi: Likewise.
19278         * doc/regexprops-generic.texi: Likewise.
19279         * doc/standards.texi: Likewise.
19280         * doc/verify.texi: Likewise.
19281         * doc/visibility.texi: Likewise.
19282         * doc/gnulib.texi (GNU Free Documentation License): Include
19283         fdl-1.3.texi instead of fdl.texi.
19284
19285 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19286
19287         * doc/fdl-1.3.texi: New file, from
19288         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19289         * modules/fdl-1.3: Add.
19290         * MODULES.html.sh: Add fdl-1.3.
19291
19292 2008-11-03  Bruno Haible  <bruno@clisp.org>
19293
19294         Make determination of absolute name of header file work with AIX xlc.
19295         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19296         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19297         preprocessing.
19298         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19299         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19300
19301 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19302
19303         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19304         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19305         <ludo@gnu.org>.
19306
19307 2008-11-02  Bruno Haible  <bruno@clisp.org>
19308
19309         Mark 'strpbrk' obsolete.
19310         * modules/strpbrk (Status, Notice): New sections.
19311         * modules/strtok_r (Depends-on): Add strpbrk.
19312
19313 2008-11-02  Bruno Haible  <bruno@clisp.org>
19314
19315         Mark 'strdup' obsolete.
19316         * modules/strdup (Status, Notice): New sections.
19317         * modules/findprog (Depends-on): Add strdup.
19318         * modules/getaddrinfo (Depends-on): Likewise.
19319         * modules/localename (Depends-on): Likewise.
19320         * modules/relocatable-lib (Depends-on): Likewise.
19321         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19322         * modules/relocatable-prog (Depends-on): Likewise.
19323         * modules/trim (Depends-on): Likewise.
19324         * modules/unictype/gen-ctype (Depends-on): Likewise.
19325         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19326
19327 2008-11-02  Bruno Haible  <bruno@clisp.org>
19328
19329         Mark 'strcspn' obsolete.
19330         * modules/strcspn (Status, Notice): New sections.
19331
19332 2008-11-02  Bruno Haible  <bruno@clisp.org>
19333
19334         Mark 'rmdir' obsolete.
19335         * modules/rmdir (Status, Notice): New sections.
19336         * modules/clean-temp (Depends-on): Add rmdir.
19337         * modules/openat (Depends-on): Likewise.
19338
19339 2008-11-02  Bruno Haible  <bruno@clisp.org>
19340
19341         Mark 'raise' obsolete.
19342         * modules/raise (Status, Notice): New sections.
19343         (Include): Specify <signal.h>.
19344         * modules/stdio (Depends-on): Add raise.
19345         * modules/write (Depends-on): Likewise.
19346
19347 2008-11-02  Bruno Haible  <bruno@clisp.org>
19348
19349         Mark 'memset' obsolete.
19350         * modules/memset (Status, Notice): New sections.
19351
19352 2008-11-02  Bruno Haible  <bruno@clisp.org>
19353
19354         Mark 'memmove' obsolete.
19355         * modules/memmove (Status, Notice): New sections.
19356         * modules/argp (Depends-on): Add memmove.
19357         * modules/argz (Depends-on): Likewise.
19358         * modules/canonicalize (Depends-on): Likewise.
19359         * modules/canonicalize-lgpl (Depends-on): Likewise.
19360         * modules/fts (Depends-on): Likewise.
19361         * modules/getcwd (Depends-on): Likewise.
19362         * modules/human (Depends-on): Likewise.
19363         * modules/regex (Depends-on): Likewise.
19364         * modules/striconveh (Depends-on): Likewise.
19365         * modules/trim (Depends-on): Likewise.
19366         * modules/unistr/u8-move (Depends-on): Likewise.
19367         * modules/unistr/u16-move (Depends-on): Likewise.
19368         * modules/unistr/u32-move (Depends-on): Likewise.
19369
19370 2008-11-02  Bruno Haible  <bruno@clisp.org>
19371
19372         Mark 'memcpy' obsolete.
19373         * modules/memcpy (Status, Notice): New sections.
19374
19375 2008-11-02  Bruno Haible  <bruno@clisp.org>
19376
19377         Mark 'memcmp' obsolete.
19378         * modules/memcmp (Status, Notice): New sections.
19379         * modules/argmatch (Depends-on): Add memchr.
19380         * modules/backupfile (Depends-on): Likewise.
19381         * modules/c-strcasestr (Depends-on): Likewise.
19382         * modules/crypto/des (Depends-on): Likewise.
19383         * modules/csharpcomp (Depends-on): Likewise.
19384         * modules/fnmatch (Depends-on): Likewise.
19385         * modules/git-merge-changelog (Depends-on): Likewise.
19386         * modules/isnand (Depends-on): Likewise.
19387         * modules/isnand-nolibm (Depends-on): Likewise.
19388         * modules/isnanf (Depends-on): Likewise.
19389         * modules/isnanf-nolibm (Depends-on): Likewise.
19390         * modules/isnanl (Depends-on): Likewise.
19391         * modules/isnanl-nolibm (Depends-on): Likewise.
19392         * modules/mbchar (Depends-on): Likewise.
19393         * modules/memcoll (Depends-on): Likewise.
19394         * modules/quotearg (Depends-on): Likewise.
19395         * modules/regex (Depends-on): Likewise.
19396         * modules/relocatable-prog (Depends-on): Likewise.
19397         * modules/same (Depends-on): Likewise.
19398         * modules/signbit (Depends-on): Likewise.
19399         * modules/strcasestr-simple (Depends-on): Likewise.
19400         * modules/unictype/gen-ctype (Depends-on): Likewise.
19401         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19402         * modules/uniname/uniname (Depends-on): Likewise.
19403         * modules/unistr/u8-cmp (Depends-on): Likewise.
19404
19405 2008-11-02  Bruno Haible  <bruno@clisp.org>
19406
19407         Mark 'memchr' obsolete.
19408         * modules/memchr (Status, Notice): New sections.
19409         * modules/argp (Depends-on): Add memchr.
19410         * modules/base64 (Depends-on): Likewise.
19411         * modules/c-strcasestr (Depends-on): Likewise.
19412         * modules/chdir-long (Depends-on): Likewise.
19413         * modules/fnmatch (Depends-on): Likewise.
19414         * modules/getsubopt (Depends-on): Likewise.
19415         * modules/git-merge-changelog (Depends-on): Likewise.
19416         * modules/glob (Depends-on): Likewise.
19417         * modules/strcasestr-simple (Depends-on): Likewise.
19418         * modules/strnlen (Depends-on): Likewise.
19419
19420 2008-11-02  Bruno Haible  <bruno@clisp.org>
19421
19422         Mark 'atexit' obsolete.
19423         * modules/atexit (Status, Notice): New sections.
19424         * modules/chdir-long (Depends-on): Add atexit.
19425         * modules/wait-process (Depends-on): Likewise.
19426
19427 2008-11-02  Bruno Haible  <bruno@clisp.org>
19428
19429         * gnulib-tool: New option --with-obsolete.
19430         (func_usage): Document it.
19431         (func_modules_transitive_closure): Drop obsolete dependencies if
19432         incobsolete is not true.
19433         (func_import): Read and save the incobsolete variable to the cache.
19434
19435 2008-11-02  Bruno Haible  <bruno@clisp.org>
19436
19437         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19438         * gnulib-tool: New option --extract-status.
19439         (func_usage): Document it.
19440         (sed_extract_prog): Recognize it.
19441         (func_get_status): New function.
19442
19443 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19444
19445         * modules/sockets (License): Change from LGPL to LGPLv2+.
19446
19447 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19448
19449         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19450
19451 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19452
19453         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19454         Mention times and sys_times.
19455         * modules/sys_times, modules/sys_times-tests: New modules.
19456         * modules/times, modules/times-tests: Likewise
19457         * m4/sys_times_h.m4: New file.
19458         * lib/sys_times.in.h: Likewise
19459         * lib/times.c: Likewise.
19460         * tests/test-sys_times.c: Likewise.
19461         * tests/test-times.c: Likewise.
19462         * doc/posix-headers/sys_times.texi: Update.
19463         * doc/posix-functions/times.texi: Update.
19464
19465 2008-10-28  Jim Meyering  <meyering@redhat.com>
19466
19467         * modules/tempname (Depends-on): Add lstat.
19468
19469         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19470
19471 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19472
19473         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19474         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19475         using idiom used elsewhere in gnulib.
19476
19477 2008-10-27  Jim Meyering  <meyering@redhat.com>
19478
19479         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19480
19481 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19482
19483         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19484         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19485         programs.
19486         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19487
19488 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19489
19490         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19491
19492 2008-10-27  Bruno Haible  <bruno@clisp.org>
19493
19494         * tests/test-lstat.c: Include <stdio.h>.
19495
19496 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19497
19498         * modules/lstat-tests: New module.
19499         * tests/test-lstat.c: New file.
19500
19501 2008-10-26  Jim Meyering  <meyering@redhat.com>
19502
19503         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19504
19505 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19506             Bruno Haible  <bruno@clisp.org>
19507
19508         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19509         * modules/configmake (Include): Add a note that the include must come
19510         after all system headers.
19511         * lib/javaversion.c: Include configmake.h after all other includes.
19512
19513 2008-10-26  Bruno Haible  <bruno@clisp.org>
19514
19515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19516         HAVE_STRUCT_RANDOM_DATA to 1.
19517         (gl_STDLIB_H): Simplify.
19518
19519 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19520
19521         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19522         substitute HAVE_STRUCT_RANDOM_DATA.
19523         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19524         random_data.
19525         * modules/stdlib (Makefile.am): Substitute
19526         HAVE_STRUCT_RANDOM_DATA.
19527
19528 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19529
19530         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19531         * doc/gnulib-intro.texi (Copyright): Likewise.
19532
19533 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19534
19535         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19536         findings.
19537
19538 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19539             Bruno Haible  <bruno@clisp.org>
19540
19541         * lib/unistd.in.h: Include <winsock2.h>.
19542         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19543         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19544         Provide dummy declarations.
19545         (gethostname): Override.
19546         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19547         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19548         gl_PREREQ_SYS_H_WINSOCK2.
19549         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19550         * doc/posix-functions/gethostname.texi: More details.
19551
19552 2008-10-25  Bruno Haible  <bruno@clisp.org>
19553
19554         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19555         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19556         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19557
19558         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19559         here ...
19560         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19561         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19562         gl_UNISTD_H_DEFAULTS.
19563
19564 2008-10-25  Eric Blake  <ebb9@byu.net>
19565
19566         signbit: avoid spurious compiler failure
19567         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19568         declarations inside function.
19569
19570 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19571             Bruno Haible  <bruno@clisp.org>
19572
19573         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19574         * modules/random_r (Depends-on): Add stdint.
19575
19576 2008-10-24  Bruno Haible  <bruno@clisp.org>
19577
19578         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19579         Eggert.
19580         * modules/strerror (License): Likewise.
19581
19582 2008-10-24  Jim Meyering  <meyering@redhat.com>
19583
19584         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19585         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19586
19587 2008-10-24  Eric Blake  <ebb9@byu.net>
19588
19589         getgroups: fix compilation when getgroups is available
19590         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19591         but with <config.h> override of getgroups disabled.
19592
19593 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19594
19595         * doc/gnulib.texi (Header files): Add note about C++ problems.
19596         Explained by Bruno Haible <bruno@clisp.org>.
19597
19598 2008-10-23  Bruno Haible  <bruno@clisp.org>
19599
19600         Define a dummy SA_NODEFER macro on Interix.
19601         * lib/signal.in.h (SA_NODEFER): Define fallback.
19602         Reported by Aleksey Cheusov <cheusov@tut.by> via
19603         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19604
19605 2008-10-23  Bruno Haible  <bruno@clisp.org>
19606
19607         * modules/freadahead (License): Change to LGPLv2+.
19608         Suggested by Simon Josefsson.
19609
19610 2008-10-23  Jim Meyering  <meyering@redhat.com>
19611
19612         random_r: new module
19613         * modules/random_r: New file.
19614         * m4/random_r.m4: New file.
19615         * lib/random_r.c: New file, from glibc.
19616         * modules/random_r-tests: New file.
19617         * tests/test-random_r.c: New file.
19618         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19619          Declare.
19620         (RAND_MAX): Define.
19621         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19622         * modules/stdlib: Substitute them, too.
19623         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19624         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19625         * doc/glibc-functions/random_r.texi: Likewise.
19626         * doc/glibc-functions/setstate_r.texi: Likewise.
19627         * doc/glibc-functions/srandom_r.texi: Likewise.
19628         * config/srclist.txt: Mention it.
19629
19630 2008-10-23  David Lutterkort  <lutter@redhat.com>
19631
19632         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19633         link requirement
19634
19635 2008-10-23  Jim Meyering  <meyering@redhat.com>
19636
19637         selinux-h: mark parameters of stub functions as intentionally unused
19638         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19639         * lib/se-context.in.h: Likewise.
19640
19641 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19642
19643         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19644
19645 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19646
19647         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19648
19649 2008-10-22  Eric Blake  <ebb9@byu.net>
19650
19651         glthread/thread: avoid compiler warning
19652         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19653         Add unreachable abort to silence compiler.
19654
19655 2008-10-22  Eric Blake  <ebb9@byu.net>
19656
19657         netdb: also supply struct addrinfo for cygwin 1.5.x
19658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19659         older cygwin.
19660         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19661         cygwin.
19662         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19663
19664 2008-10-22  Bruno Haible  <bruno@clisp.org>
19665
19666         * users.txt: Update entry about pspp.
19667
19668 2008-10-21  Bruno Haible  <bruno@clisp.org>
19669
19670         Simplification.
19671         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19672         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19673
19674         Simplification.
19675         * lib/ioctl.c (ioctl): Don't undefine.
19676         * lib/socket.c (socket): Don't undefine.
19677
19678         Remove unused module indicator macros.
19679         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19680         GNULIB_$1 as a C macro.
19681
19682         * doc/posix-functions/close.texi: Undo last change.
19683         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19684         Windows platforms.
19685
19686 2008-10-21  Bruno Haible  <bruno@clisp.org>
19687
19688         Add gethostname() declaration to <unistd.h>.
19689         * lib/unistd.in.h (gethostname): New declaration.
19690         * lib/gethostname.c: Include <unistd.h>.
19691         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19692         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19694         and HAVE_GETHOSTNAME.
19695         * modules/gethostname (Depends-on): Add unistd.
19696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19697         (Include): Specify <unistd.h>.
19698         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19699         HAVE_GETHOSTNAME.
19700         * tests/test-gethostname.c: Include <unistd.h> first.
19701
19702 2008-10-21  Bruno Haible  <bruno@clisp.org>
19703
19704         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19705         * modules/select-tests (Depends-on): Likewise.
19706         Reported by Simon Josefsson.
19707
19708 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19709
19710         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19711         * lib/accept.c: New file, based on winsock.c.
19712         * lib/bind.c: New file, based on winsock.c.
19713         * lib/connect.c: New file, based on winsock.c.
19714         * lib/getpeername.c: New file, based on winsock.c.
19715         * lib/getsockname.c: New file, based on winsock.c.
19716         * lib/getsockopt.c: New file, based on winsock.c.
19717         * lib/ioctl.c: New file, based on winsock.c.
19718         * lib/listen.c: New file, based on winsock.c.
19719         * lib/recv.c: New file, based on winsock.c.
19720         * lib/recvfrom.c: New file, based on winsock.c.
19721         * lib/send.c: New file, based on winsock.c.
19722         * lib/sendto.c: New file, based on winsock.c.
19723         * lib/setsockopt.c: New file, based on winsock.c.
19724         * lib/shutdown.c: New file, based on winsock.c.
19725         * lib/socket.c: New file, based on winsock.c.
19726         * lib/w32sock.h: New file, based on winsock.c.
19727         * lib/winsock.c: Remove file.
19728         * modules/accept: Likewise.
19729         * modules/bind: Likewise.
19730         * modules/connect: Likewise.
19731         * modules/getpeername: Likewise.
19732         * modules/getsockname: Likewise.
19733         * modules/getsockopt: Likewise.
19734         * modules/ioctl: Likewise.
19735         * modules/listen: Likewise.
19736         * modules/recv: Likewise.
19737         * modules/recvfrom: Likewise.
19738         * modules/send: Likewise.
19739         * modules/sendto: Likewise.
19740         * modules/setsockopt: Likewise.
19741         * modules/shutdown: Likewise.
19742         * modules/socket: Use socket.c instead of winsock.c.
19743         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19744         * doc/posix-functions/accept.texi: Doc fix.
19745         * doc/posix-functions/bind.texi: Doc fix.
19746         * doc/posix-functions/close.texi: Doc fix.
19747         * doc/posix-functions/connect.texi: Doc fix.
19748         * doc/posix-functions/getpeername.texi: Doc fix.
19749         * doc/posix-functions/getsockname.texi: Doc fix.
19750         * doc/posix-functions/getsockopt.texi: Doc fix.
19751         * doc/posix-functions/ioctl.texi: Doc fix.
19752         * doc/posix-functions/listen.texi: Doc fix.
19753         * doc/posix-functions/recv.texi: Doc fix.
19754         * doc/posix-functions/recvfrom.texi: Doc fix.
19755         * doc/posix-functions/send.texi: Doc fix.
19756         * doc/posix-functions/sendto.texi: Doc fix.
19757         * doc/posix-functions/setsockopt.texi: Doc fix.
19758         * doc/posix-functions/shutdown.texi: Doc fix.
19759         * doc/posix-functions/socket.texi: Doc fix.
19760
19761 2008-10-20  Bruno Haible  <bruno@clisp.org>
19762
19763         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19764         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19765         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19766         as an alias for SIGABRT.
19767         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19768         (sigaction): Map it to SIGABRT.
19769         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19770
19771 2008-10-20  Bruno Haible  <bruno@clisp.org>
19772
19773         * lib/fts.c: Don't include lstat.h.
19774         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19775
19776         Move the lstat() declaration to <sys/stat.h>.
19777         * lib/lstat.h: Remove file.
19778         * lib/sys_stat.in.h: Add special invocation convention.
19779         (lstat): New declaration.
19780         * lib/lstat.c (orig_lstat): New function.
19781         (rpl_lstat): Use orig_lstat instead of lstat.
19782         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19783         AC_C_INLINE. Set REPLACE_LSTAT.
19784         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19785         and REPLACE_LSTAT.
19786         * modules/lstat (Files): Remove lib/lstat.h.
19787         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19788         (Include): Specify <sys/stat.h> instead of lstat.h.
19789         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19790         REPLACE_LSTAT.
19791         * NEWS: Mention the change.
19792
19793 2008-10-20  Bruno Haible  <bruno@clisp.org>
19794
19795         * modules/posix_spawn-tests: New file.
19796         * tests/test-posix_spawn3.c: New file.
19797
19798 2008-10-20  Bruno Haible  <bruno@clisp.org>
19799
19800         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19801         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19802         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19803         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19804         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19805
19806 2008-10-20  Bruno Haible  <bruno@clisp.org>
19807
19808         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19809         of posix_spawn on AIX 5.3.
19810
19811 2008-10-20  Bruno Haible  <bruno@clisp.org>
19812
19813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19814
19815 2008-10-20  Bruno Haible  <bruno@clisp.org>
19816
19817         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19818         of AC_LANG_PROGRAM.
19819
19820 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19821
19822         * lib/netdb.in.h: Don't define GNU specific constants until they
19823         are supported or needed.  Reported by Bruno Haible
19824         <bruno@clisp.org>.
19825
19826 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19827
19828         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19829
19830 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19831
19832         * lib/getaddrinfo.h: Remove file.
19833         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19834         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19835         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19836         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19837         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19838         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19839         * tests/test-getaddrinfo.c: Likewise.
19840         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19841         * NEWS: Mention change.
19842
19843 2008-10-19  Bruno Haible  <bruno@clisp.org>
19844
19845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19846
19847 2008-10-19  Bruno Haible  <bruno@clisp.org>
19848
19849         * lib/wait-process.c: Include simply <sys/wait.h>.
19850         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19851         WIFSTOPPED): Remove fallback definitions.
19852         * modules/wait-process (Depends-on): Add sys_wait.
19853
19854         New module 'sys_wait'.
19855         * modules/sys_wait: New file.
19856         * lib/sys_wait.in.h: New file, partially copied from
19857         lib/wait-process.c.
19858         * m4/sys_wait_h.m4: New file.
19859         * doc/posix-headers/sys_wait.texi: Mention the new module.
19860
19861 2008-10-19  Bruno Haible  <bruno@clisp.org>
19862
19863         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19864
19865 2008-10-19  Bruno Haible  <bruno@clisp.org>
19866
19867         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19868         * lib/wait-process.c (WAIT_T): Remove type.
19869         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19870         (wait_subprocess): Update.
19871
19872 2008-10-19  Bruno Haible  <bruno@clisp.org>
19873
19874         New module 'atoll'.
19875         * modules/atoll: New file.
19876         * lib/stdlib.in.h (atoll): New declaration.
19877         * lib/atoll.c: New file, from glibc with modifications.
19878         * m4/atoll.m4: New file.
19879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19880         HAVE_ATOLL.
19881         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19882         * doc/posix-functions/atoll.texi: Mention the new module.
19883
19884 2008-10-19  Bruno Haible  <bruno@clisp.org>
19885
19886         Add strtoull() declaration to <stdlib.h>.
19887         * lib/stdlib.in.h (strtoull): New declaration.
19888         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19889         Set HAVE_STRTOULL.
19890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19891         HAVE_STRTOULL.
19892         * modules/strtoull (Depends-on): Add stdlib.
19893         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19894         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19895         HAVE_STRTOULL.
19896
19897 2008-10-19  Bruno Haible  <bruno@clisp.org>
19898
19899         Add strtoll() declaration to <stdlib.h>.
19900         * lib/stdlib.in.h (strtoll): New declaration.
19901         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19902         Set HAVE_STRTOLL.
19903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19904         HAVE_STRTOLL.
19905         * modules/strtoll (Depends-on): Add stdlib.
19906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19907         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19908
19909 2008-10-19  Bruno Haible  <bruno@clisp.org>
19910
19911         * modules/bcopy (Depends-on): Add strings.
19912         (Include): Specify <strings.h>.
19913
19914 2008-10-19  Bruno Haible  <bruno@clisp.org>
19915
19916         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19917
19918 2008-10-19  Bruno Haible  <bruno@clisp.org>
19919
19920         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19921         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19922         mingw.
19923
19924 2008-10-19  Bruno Haible  <bruno@clisp.org>
19925
19926         * lib/atanl.c: Don't include isnanl.h.
19927         * lib/cosl.c: Likewise.
19928         * lib/ldexpl.c: Likewise.
19929         * lib/logl.c: Likewise.
19930         * lib/sinl.c: Likewise.
19931         * lib/sqrtl.c: Likewise.
19932         * lib/tanl.c: Likewise.
19933
19934         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19935         * lib/isnanf.h: Remove file.
19936         * lib/isnand.h: Remove file.
19937         * lib/isnanl.h: Remove file.
19938         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19939         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19940         macros.
19941         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19942         HAVE_ISNANF, don't define it as a C macro.
19943         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19944         HAVE_ISNAND, don't define it as a C macro.
19945         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19946         HAVE_ISNANL, don't define it as a C macro.
19947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19948         HAVE_ISNAN[FDL].
19949         * modules/isnanf (Files): Remove lib/isnanf.h.
19950         (Depends-on): Add math.
19951         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19952         (Include): Specify <math.h> instead of isnanf.h.
19953         * modules/isnand (Files): Remove lib/isnand.h.
19954         (Depends-on): Add math.
19955         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19956         (Include): Specify <math.h> instead of isnand.h.
19957         * modules/isnanl (Files): Remove lib/isnanl.h.
19958         (Depends-on): Add math.
19959         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19960         (Include): Specify <math.h> instead of isnanl.h.
19961         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19962         HAVE_ISNAN[FDL].
19963         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19964         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19965         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19966         * NEWS: Mention the change.
19967
19968 2008-10-18  Bruno Haible  <bruno@clisp.org>
19969
19970         Add getusershell(), setusershell(), endusershell() declarations to
19971         <unistd.h>.
19972         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19973         declarations.
19974         * lib/getusershell.c: Include unistd.h.
19975         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19976         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19977         HAVE_GETUSERSHELL.
19978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19979         and HAVE_GETUSERSHELL.
19980         * modules/getusershell (Depends-on): Add unistd, extensions.
19981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19982         (Include): Specify <unistd.h>.
19983         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19984         HAVE_GETUSERSHELL.
19985
19986 2008-10-18  Bruno Haible  <bruno@clisp.org>
19987
19988         Add a getloadavg() declaration to <stdlib.h>.
19989         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19990         getloadavg declaration.
19991         (getloadavg): New declaration.
19992         * lib/getloadavg.c: Include <stdlib.h> first.
19993         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19994         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19995         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19997         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19998         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19999         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20000         (Include): Specify <stdlib.h>.
20001         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20002         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20003
20004 2008-10-18  Bruno Haible  <bruno@clisp.org>
20005
20006         * lib/dirchownmod.c: Don't include lchmod.h.
20007
20008         Move the lchmod() declaration to <sys/stat.h>.
20009         * lib/lchmod.h: Remove file.
20010         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20011         (lchmod): New declaration, moved here from lib/lchown.h.
20012         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20013         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20015         and HAVE_LCHMOD.
20016         * modules/lchmod (Files): Remove lib/lchmod.h.
20017         (Depends-on): Add sys_stat, extensions.
20018         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20019         (Include): Specify <sys/stat.h> instead of lchmod.h.
20020         * modules/sys_stat (Depends-on): Add link-warning.
20021         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20022         definition of GL_LINK_WARNING.
20023         * NEWS: Mention the change.
20024
20025 2008-10-18  Bruno Haible  <bruno@clisp.org>
20026
20027         * lib/fchdir.c: Don't include dirfd.h.
20028         * lib/fts.c: Likewise.
20029         * lib/getcwd.c: Likewise.
20030         * lib/glob.c: Likewise.
20031
20032         Move the dirfd() declaration to <dirent.h>.
20033         * lib/dirfd.h: Remove file.
20034         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20035         (dirfd): New declaration.
20036         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20037         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20038         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20039         HAVE_DECL_DIRFD.
20040         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20041         HAVE_DECL_DIRFD.
20042         * modules/dirfd (Files): Remove lib/dirfd.h.
20043         (Depends-on): Add dirent, extensions.
20044         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20045         (Include): Specify <dirent.h> instead of dirfd.h.
20046         * modules/dirent (Depends-on): Add link-warning.
20047         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20048         definition of GL_LINK_WARNING.
20049         * NEWS: Mention the change.
20050
20051 2008-10-18  Bruno Haible  <bruno@clisp.org>
20052
20053         Move the euidaccess() declaration to <unistd.h>.
20054         * lib/euidaccess.h: Remove file.
20055         * lib/unistd.in.h (euidaccess): New declaration.
20056         * lib/euidaccess.c: Don't include euidaccess.h.
20057         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20058         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20060         and HAVE_EUIDACCESS.
20061         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20062         (Depends-on): Add unistd.
20063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20064         (Include): Specify <unistd.h> instead of euidaccess.h.
20065         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20066         HAVE_EUIDACCESS.
20067         * NEWS: Mention the change.
20068
20069 2008-10-18  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20072
20073         Move the getdomainname() declaration to <unistd.h>.
20074         * lib/getdomainname.h: Remove file.
20075         * lib/unistd.in.h (getdomainname): New declaration.
20076         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20077         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20078         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20079         HAVE_GETDOMAINNAME.
20080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20081         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20082         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20083         (Depends-on): Add unistd, extensions.
20084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20085         (Includes): Specify <unistd.h> instead of getdomainname.h.
20086         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20087         HAVE_GETDOMAINNAME.
20088         * NEWS: Mention the change.
20089
20090 2008-10-18  Bruno Haible  <bruno@clisp.org>
20091
20092         * modules/dirent: New file.
20093         * m4/dirent_h.m4: New file.
20094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20095         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20096         * modules/fchdir (Files): Remove lib/dirent.in.h.
20097         (Depends-on): Add dirent.
20098         (Makefile.am): Move rules to modules/dirent.
20099         * doc/posix-headers/dirent.texi: Mention the new module.
20100
20101 2008-10-18  Bruno Haible  <bruno@clisp.org>
20102
20103         Avoid -Wunused-parameter warnings in public gnulib header files.
20104         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20105         macro.
20106         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20107
20108 2008-10-18  Bruno Haible  <bruno@clisp.org>
20109
20110         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20111         * doc/glibc-functions/error.texi: Mention the module 'error'.
20112         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20113         * doc/glibc-functions/getdomainname.texi: Mention the module
20114         'getdomainname'.
20115         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20116         * doc/glibc-functions/getpagesize.texi: Mention the module
20117         'getpagesize'.
20118         * doc/glibc-functions/getusershell.texi: Mention the module
20119         'getusershell'.
20120         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20121         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20122         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20123         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20124         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20125         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20126         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20127         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20128         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20129         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20130         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20131         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20132         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20133         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20134
20135 2008-10-17  Bruno Haible  <bruno@clisp.org>
20136
20137         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20138         HP-UX and IRIX, use -0.0L.
20139         * tests/test-ceill.c (minus_zero): Likewise.
20140         * tests/test-floorl.c (minus_zero): Likewise.
20141         * tests/test-frexpl.c (minus_zero): Likewise.
20142         * tests/test-isnan.c (minus_zerol): Likewise.
20143         * tests/test-isnanl.h (minus_zero): Likewise.
20144         * tests/test-ldexpl.c (minus_zero): Likewise.
20145         * tests/test-roundl.c (minus_zero): Likewise.
20146         * tests/test-signbit.c (minus_zerol): Likewise.
20147         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20148         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20149         * tests/test-truncl.c (minus_zero): Likewise.
20150         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20151         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20152         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20153         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20154
20155 2008-10-17  Bruno Haible  <bruno@clisp.org>
20156
20157         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20158         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20159         that it gets activated only for gcc >= 3.0.
20160         * lib/dirent.in.h: Likewise.
20161         * lib/errno.in.h: Likewise.
20162         * lib/fcntl.in.h: Likewise.
20163         * lib/float.in.h: Likewise.
20164         * lib/iconv.in.h: Likewise.
20165         * lib/inttypes.in.h: Likewise.
20166         * lib/locale.in.h: Likewise.
20167         * lib/math.in.h: Likewise.
20168         * lib/netdb.in.h: Likewise.
20169         * lib/netinet_in.in.h: Likewise.
20170         * lib/search.in.h: Likewise.
20171         * lib/signal.in.h: Likewise.
20172         * lib/spawn.in.h: Likewise.
20173         * lib/stdarg.in.h: Likewise.
20174         * lib/stdint.in.h: Likewise.
20175         * lib/stdio.in.h: Likewise.
20176         * lib/stdlib.in.h: Likewise.
20177         * lib/string.in.h: Likewise.
20178         * lib/strings.in.h: Likewise.
20179         * lib/sys_file.in.h: Likewise.
20180         * lib/sys_ioctl.in.h: Likewise.
20181         * lib/sys_select.in.h: Likewise.
20182         * lib/sys_socket.in.h: Likewise.
20183         * lib/sys_stat.in.h: Likewise.
20184         * lib/sys_time.in.h: Likewise.
20185         * lib/sysexits.in.h: Likewise.
20186         * lib/time.in.h: Likewise.
20187         * lib/unistd.in.h: Likewise.
20188         * lib/wchar.in.h: Likewise.
20189         * lib/wctype.in.h: Likewise.
20190         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20191
20192 2008-10-17  Jim Meyering  <meyering@redhat.com>
20193
20194         ignore-value: don't depend on inline module
20195         * modules/ignore-value (Depends-on): Remove 'inline'.
20196         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20197         Suggestion from Bruno Haible.
20198
20199 2008-10-17  Bruno Haible  <bruno@clisp.org>
20200
20201         New implementation of condition variables for Win32.
20202         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20203         (gl_linked_waitqueue_t): New type.
20204         (gl_cond_t): Use it.
20205         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20206         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20207         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20208         (glthread_cond_init_func, glthread_cond_wait_func,
20209         glthread_cond_timedwait_func, glthread_cond_signal_func,
20210         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20211         Reimplemented on the basis of gl_linked_waitqueue_t.
20212         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20213         gl_waitqueue_t.
20214         (gl_rwlock_t): Update.
20215         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20216
20217 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20218
20219         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20220         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20221
20222 2008-10-17  Jim Meyering  <meyering@redhat.com>
20223
20224         ignore-value: new module
20225         * modules/ignore-value: New file.
20226         * lib/ignore-value.h: New file.
20227         * MODULES.html.sh (Compiler warning management): New section,
20228         just for this module.  More to come.
20229
20230 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20231
20232         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20233         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20234         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20235
20236 2008-10-16  Jim Meyering  <meyering@redhat.com>
20237
20238         openat-die.c: avoid 'no previous prototype' warning
20239         * lib/openat-die.c: Include "openat.h".
20240         Reported by Reuben Thomas <rrt@sc3d.org>.
20241
20242 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20243
20244         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20245         * lib/netdb.in.h: Fix typo.
20246         Reported by Bruno Haible  <bruno@clisp.org>
20247
20248         * lib/netdb.in.h: Include sys/socket.h for platforms without
20249         netdb.h, to get structures like hostent on MinGW.
20250         * modules/netdb (Depends-on): Add sys_socket.
20251
20252 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20253
20254         * modules/netdb, modules/netdb-tests: New file.
20255         * m4/netdb_h.m4: New file.
20256         * lib/netdb.in.h: Add, currently just an empty file pending
20257         definitions.
20258         * tests/test-netdb.c: New file.
20259         * doc/posix-headers/netdb.texi: Mention that we replace it if
20260         needed.
20261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20262         netdb.
20263
20264 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20265
20266         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20267         with code.
20268
20269 2008-10-13  Bruno Haible  <bruno@clisp.org>
20270
20271         * lib/glthread/cond.c (glthread_cond_wait_func,
20272         glthread_cond_timedwait_func): Add a comment.
20273
20274 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20275
20276         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20277         * tests/test-select.c: Likewise,
20278
20279 2008-10-13  Bruno Haible  <bruno@clisp.org>
20280
20281         * lib/glthread/cond.c (glthread_cond_wait_func,
20282         glthread_cond_timedwait_func): Fix variable name.
20283         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20284
20285 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20286
20287         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20288         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20289         struct sockaddr.sa_len.
20290         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20291
20292 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20293
20294         * build-aux/pmccabe2html: Add css and css_url parameters.
20295
20296 2008-10-12  Bruno Haible  <bruno@clisp.org>
20297
20298         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20299         calling aclx_get.
20300         Reported by Rainer Tammer <tammer@tammer.net>.
20301
20302 2008-10-12  Bruno Haible  <bruno@clisp.org>
20303
20304         Use msvcrt aware primitives for creation/termination of Win32 threads.
20305         * lib/glthread/thread.c: Include <process.h>.
20306         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20307         (wrapper_func): Update signature.
20308         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20309
20310 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20311             Bruno Haible  <bruno@clisp.org>
20312
20313         Provide a Win32 implementation of the 'cond' module.
20314         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20315         * lib/glthread/cond.c (glthread_cond_init_func,
20316         glthread_cond_wait_func, glthread_cond_timedwait_func,
20317         glthread_cond_signal_func, glthread_cond_broadcast_func,
20318         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20319         * modules/cond (Dependencies): Add gettimeofday.
20320
20321 2008-10-11  Bruno Haible  <bruno@clisp.org>
20322
20323         Make sleep work on older versions of mingw.
20324         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20325         only whether it exists.
20326         * doc/posix-functions/sleep.texi: Mention the problem with older
20327         versions of mingw.
20328
20329 2008-10-11  Bruno Haible  <bruno@clisp.org>
20330
20331         New module 'shutdown'.
20332         * modules/shutdown: New file.
20333         * lib/sys_socket.in.h (shutdown): New declaration.
20334         * lib/winsock.c (shutdown): New function.
20335         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20336         GNULIB_SHUTDOWN.
20337         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20338         * doc/posix-functions/shutdown.texi: Document the new module.
20339
20340 2008-10-11  Jim Meyering  <meyering@redhat.com>
20341
20342         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20343
20344 2008-10-11  Bruno Haible  <bruno@clisp.org>
20345
20346         New module 'fclose'.
20347         * modules/fclose: New file.
20348         * lib/stdio.in.h (fclose): New declaration.
20349         * lib/fclose.c: New file.
20350         * m4/fclose.m4: New file.
20351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20352         REPLACE_FCLOSE.
20353         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20354         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20355         REPLACE_FCLOSE.
20356         * modules/close (Depends-on): fclose.
20357         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20358
20359 2008-10-11  Bruno Haible  <bruno@clisp.org>
20360
20361         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20362         set errno and don't call _close.
20363
20364 2008-10-10  Bruno Haible  <bruno@clisp.org>
20365
20366         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20367         ACL, not afterwards. Fixes test failure on Cygwin.
20368
20369 2008-10-09  Ben Pfaff  <blp@gnu.org>
20370
20371         * build-aux/announce-gen: Fix gnulib version related part of usage
20372         message.  Die with a useful error message if no tarballs are
20373         found.
20374
20375 2008-10-10  Jim Meyering  <meyering@redhat.com>
20376
20377         bootstrap: use git's --depth=N option only if it's supported
20378         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20379         recognize the --depth option.  Reported by Pádraig Brady.
20380
20381 2008-10-09  Bruno Haible  <bruno@clisp.org>
20382
20383         New module 'ioctl'.
20384         * modules/ioctl: New file.
20385         * lib/sys_socket.in.h (ioctl): Remove declaration.
20386         * lib/winsock.c: Include <sys/ioctl.h>.
20387         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20388         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20389         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20390         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20391         * doc/posix-functions/ioctl.texi: Mention the new module.
20392
20393 2008-10-09  Bruno Haible  <bruno@clisp.org>
20394
20395         New module 'sys_ioctl'.
20396         * lib/sys_ioctl.in.h: New file.
20397         * m4/sys_ioctl_h.m4: New file.
20398         * modules/sys_ioctl: New file.
20399         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20400
20401 2008-10-09  Bruno Haible  <bruno@clisp.org>
20402
20403         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20404         * lib/winsock.c: Include <stdarg.h>.
20405         (rpl_ioctl): Change to second argument 'int' and then varargs.
20406
20407 2008-10-09  Bruno Haible  <bruno@clisp.org>
20408
20409         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20410         when the sys_socket module is present and the system has <winsock2.h>.
20411
20412 2008-10-09  Bruno Haible  <bruno@clisp.org>
20413
20414         * doc/posix-functions/close.texi: Mention module 'close' instead of
20415         module 'sys_socket'.
20416
20417 2008-10-09  Bruno Haible  <bruno@clisp.org>
20418
20419         * doc/glibc-headers/sys_ioctl.texi: New file.
20420         * doc/gnulib.texi: Include it.
20421
20422 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20423             Bruno Haible  <bruno@clisp.org>
20424
20425         Combine the two replacements of 'close'.
20426         * lib/sys_socket.in.h (close): Define to a reminder to include
20427         <unistd.h>.
20428         (_gl_close_fd_maybe_socket): New declaration.
20429         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20430         * lib/winsock.c (close): Remove undefinition.
20431         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20432         needed for the gnulib module 'close'.
20433         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20434         define to an error symbol or to a warning, if suitable.
20435         * lib/close.c: Include <sys/socket.h>.
20436         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20437         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20438         UNISTD_H_HAVE_WINSOCK2_H.
20439         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20441         UNISTD_H_HAVE_WINSOCK2_H.
20442         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20443         (configure.ac): Set a module indicator.
20444         (Makefile.am): Substitute GNULIB_CLOSE.
20445         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20446         * modules/poll-tests (Depends-on): Add close.
20447         * modules/select-tests (Depends-on): Likewise.
20448
20449 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20450             Bruno Haible  <bruno@clisp.org>
20451
20452         New module 'close'.
20453         * modules/close: New file.
20454         * lib/unistd.in.h (close): Move declaration out of the
20455         FCHDIR_REPLACEMENT scope.
20456         (_gl_unregister_fd): New declaration.
20457         * lib/close.c: New file.
20458         * lib/fchdir.c (rpl_close): Remove function.
20459         * m4/close.m4: New file.
20460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20461         close.
20462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20463         REPLACE_CLOSE.
20464         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20465         REPLACE_CLOSE.
20466         * modules/fchdir (Depends-on): Add close.
20467
20468 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20469             Bruno Haible  <bruno@clisp.org>
20470
20471         * lib/fcntl.in.h (open): Simplify conditionals.
20472         (_gl_register_fd): New declaration.
20473         * lib/fchdir.c (rpl_open): Remove function.
20474         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20475         also.
20476         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20478         open.
20479
20480 2008-10-09  Jim Meyering  <meyering@redhat.com>
20481
20482         GNUmakefile: use the more name-space-friendly "_version"
20483         * top/GNUmakefile (_dummy): Update.
20484         (_version): Rename from "version".
20485
20486 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20487             Bruno Haible  <bruno@clisp.org>
20488
20489         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20490         rpl_close.
20491         (_gl_register_fd): New function, extracted from rpl_open.
20492         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20493         (rpl_open, rpl_opendir): Use _gl_register_fd.
20494
20495 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20496
20497         Fix organization of 'open' replacement.
20498         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20499         (gl_FUNC_OPEN): Use it.
20500         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20501
20502 2008-10-08  Bruno Haible  <bruno@clisp.org>
20503
20504         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20505
20506 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20507
20508         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20509         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20510         listen).
20511
20512 2008-10-08  Eric Blake  <ebb9@byu.net>
20513
20514         GNUmakefile: add 'make version' target
20515         * top/GNUmakefile (_curr-ver): Split version update rules...
20516         (version): ...into a target.
20517
20518 2008-10-07  Bruno Haible  <bruno@clisp.org>
20519
20520         Use a more portable replacement expression for -0.0L.
20521         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20522         instead of -0.0L. Fix m4 quotation.
20523
20524         * tests/test-signbit.c: Include <float.h>.
20525         (minus_zero): New variable.
20526         (test_signbitl): Use minus_zero instead of -zero.
20527         * modules/signbit-tests (Depends-on): Add float.
20528
20529         * tests/test-ceill.c: Include <float.h>.
20530         (zero): Remove variable.
20531         (minus_zero): New variable.
20532         (main): Use minus_zero instead of -zero.
20533         * modules/ceill-tests (Depends-on): Add float.
20534
20535         * tests/test-floorl.c: Include <float.h>.
20536         (zero): Remove variable.
20537         (minus_zero): New variable.
20538         (main): Use minus_zero instead of -zero.
20539         * modules/floorl-tests (Depends-on): Add float.
20540
20541         * tests/test-roundl.c: Include <float.h>.
20542         (zero): Remove variable.
20543         (minus_zero): New variable.
20544         (main): Use minus_zero instead of -zero.
20545         * modules/roundl-tests (Depends-on): Add float.
20546
20547         * tests/test-truncl.c: Include <float.h>.
20548         (zero): Remove variable.
20549         (minus_zero): New variable.
20550         (main): Use minus_zero instead of -zero.
20551         * modules/truncl-tests (Depends-on): Add float.
20552
20553         * tests/test-frexpl.c (zero): Remove variable.
20554         (minus_zero): New variable.
20555         (main): Use minus_zero instead of -zero.
20556         * modules/frexpl-tests (Depends-on): Add float.
20557
20558         * tests/test-isnan.c (zerol): Remove variable.
20559         (minus_zerol): New variable.
20560         (test_long_double): Use minus_zerol instead of -zerol.
20561         * modules/isnan-tests (Depends-on): Add float.
20562
20563         * tests/test-isnanl.h (zero): Remove variable.
20564         (minus_zero): New variable.
20565         (main): Use minus_zero instead of -zero.
20566         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20567         * modules/isnanl-tests (Depends-on): Add float.
20568
20569         * tests/test-ldexpl.c (zero): Remove variable.
20570         (minus_zero): New variable.
20571         (main): Use minus_zero instead of -zero.
20572         * modules/ldexpl-tests (Depends-on): Add float.
20573
20574         * tests/test-snprintf-posix.h (zerol): Remove variable.
20575         (minus_zerol): New variable.
20576         (test_function): Use minus_zerol instead of -zerol.
20577         * modules/snprintf-posix-tests (Depends-on): Add float.
20578         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20579
20580         * tests/test-sprintf-posix.h (zerol): Remove variable.
20581         (minus_zerol): New variable.
20582         (test_function): Use minus_zerol instead of -zerol.
20583         * modules/sprintf-posix-tests (Depends-on): Add float.
20584         * modules/vsprintf-posix-tests (Depends-on): Add float.
20585
20586         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20587         (minus_zerol): New variable.
20588         (test_function): Use minus_zerol instead of -zerol.
20589         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20590
20591         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20592         (minus_zerol): New variable.
20593         (test_function): Use minus_zerol instead of -zerol.
20594         * modules/vasprintf-posix-tests (Depends-on): Add float.
20595
20596 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20597
20598         * MODULES.html.sh (Support for building documentation): Mention
20599         pmccabe2html.  Sort entries.
20600
20601         Add pmccabe2html module, from gnupdf.
20602         * build-aux/pmccabe.css: New file.
20603         * build-aux/pmccabe2html: New file.
20604         * m4/pmccabe2html.m4: New file.
20605         * modules/pmccabe2html: New file.
20606
20607 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20608
20609         flock: new module
20610         * MODULES.html.sh: Add to list of modules.
20611         * lib/flock.c: flock implementation for Windows and Unix systems
20612         which have fcntl.
20613         * doc/glibc-functions/flock.texi: Update documentation.
20614         * lib/sys_file.in.h: <sys/file.h> header file.
20615         * m4/flock.m4: M4 macros.
20616         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20617         * modules/flock: flock module.
20618         * modules/flock-tests: flock tests module.
20619         * modules/sys_file: sys/file.h module.
20620         * tests/test-flock.c: test suite for flock.
20621
20622 2008-10-06  Jim Meyering  <meyering@redhat.com>
20623
20624         bootstrap: check for LT_INIT more portably still ;-)
20625         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20626         Spotted by Bruno Haible.
20627
20628 2008-10-06  Eric Blake  <ebb9@byu.net>
20629
20630         test-signbit: avoid tripping Irix cc bug on -0.0L
20631         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20632         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20633         entire testsuite consistent and avoids an Irix 6.2 bug.
20634
20635 2008-10-05  Bruno Haible  <bruno@clisp.org>
20636             Jim Meyering  <jim@meyering.net>
20637
20638         Add an option for ignoring EPIPE during close_stdout.
20639         * lib/closeout.h: Include <stdbool.h>.
20640         (close_stdout_set_ignore_EPIPE): New declaration.
20641         * lib/closeout.c: Include <stdbool.h>.
20642         (ignore_EPIPE): New variable.
20643         (close_stdout_set_ignore_EPIPE): New function.
20644         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20645         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20646         failure.
20647         * modules/closeout (Depends-on): Add stdbool.
20648
20649 2008-10-05  Bruno Haible  <bruno@clisp.org>
20650
20651         * modules/accept: New file.
20652         * modules/bind: New file.
20653         * modules/connect: New file.
20654         * modules/getpeername: New file.
20655         * modules/getsockname: New file.
20656         * modules/getsockopt: New file.
20657         * modules/listen: New file.
20658         * modules/recv: New file.
20659         * modules/recvfrom: New file.
20660         * modules/send: New file.
20661         * modules/sendto: New file.
20662         * modules/setsockopt: New file.
20663         * modules/socket: New file.
20664         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20665         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20666         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20667         the particular module is requested. Add a link warning when the
20668         particular module is not requested.
20669         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20670         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20671         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20672         the particular module is requested.
20673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20674         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20675         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20676         * modules/sys_socket (Depends-on): Add link-warning.
20677         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20678         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20679         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20680         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20681         GL_LINK_WARNING.
20682         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20683         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20684         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20685         * doc/posix-functions/getpeername.texi: Mention the new module
20686         'getpeername'.
20687         * doc/posix-functions/getsockname.texi: Mention the new module
20688         'getsockname'.
20689         * doc/posix-functions/getsockopt.texi: Mention the new module
20690         'getsockopt'.
20691         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20692         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20693         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20694         * doc/posix-functions/send.texi: Mention the new module 'send'.
20695         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20696         * doc/posix-functions/setsockopt.texi: Mention the new module
20697         'setsockopt'.
20698         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20699         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20700         listen, connect, accept.
20701         * modules/select-tests (Depends-on): Likewise.
20702
20703 2008-10-05  Bruno Haible  <bruno@clisp.org>
20704
20705         * lib/winsock.c (strerror): Remove unused #undef.
20706         (rpl_close): Remove unused local variable.
20707
20708         * modules/sys_socket (Depends-on); Add errno.
20709
20710 2008-10-05  Bruno Haible  <bruno@clisp.org>
20711
20712         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20713         (select): Add a link warning when the 'select' module is not used.
20714         * modules/sys_select (Depends-on): Add link-warning.
20715         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20716         Suggested by Paolo Bonzini.
20717
20718 2008-10-05  Jim Meyering  <meyering@redhat.com>
20719
20720         bootstrap: check for LT_INIT more portably
20721         * build-aux/bootstrap: Avoid using grep -E, since it's not
20722         portable enough.  Suggestion from Bruno Haible.
20723
20724 2008-10-05  Bruno Haible  <bruno@clisp.org>
20725
20726         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20727         as being fixed by gnulib.
20728
20729 2008-10-05  Bruno Haible  <bruno@clisp.org>
20730
20731         * modules/select-tests: New file, mostly copied from
20732         modules/sys_select-tests.
20733         * tests/test-select.c: New file, mostly copied from
20734         tests/test-sys_select.c.
20735         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20736         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20737         (Makefile.am): Remove test_sys_select_LDADD.
20738
20739         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20740         to an undefined symbol, for an error message.
20741         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20742         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20743         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20744         winsock-select.c here.
20745         * modules/sys_select (Files): Remove lib/winsock-select.c.
20746         (Depends-on): Remove alloca.
20747         (Makefile.am): Substitute GNULIB_SELECT.
20748         * modules/select: New file.
20749         * doc/posix-functions/select.texi: Update.
20750
20751 2008-10-05  Bruno Haible  <bruno@clisp.org>
20752
20753         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20754         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20755         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20756         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20757         getdtablesize.
20758         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20759         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20760
20761 2008-10-05  Bruno Haible  <bruno@clisp.org>
20762
20763         * modules/getdtablesize-tests: New file.
20764         * tests/test-getdtablesize.c: New file.
20765
20766         New module 'getdtablesize'.
20767         * lib/unistd.in.h (getdtablesize): New declaration.
20768         * lib/getdtablesize.c: New file.
20769         * m4/getdtablesize.m4: New file.
20770         * modules/getdtablesize: New file.
20771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20772         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20773         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20774         HAVE_GETDTABLESIZE.
20775         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20776
20777 2008-10-05  Bruno Haible  <bruno@clisp.org>
20778
20779         * modules/sched (Makefile.am): Fix typo.
20780         Reported by Simon Josefsson.
20781
20782 2008-10-05  Jim Meyering  <meyering@redhat.com>
20783
20784         bootstrap: check for LT_INIT, too
20785         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20786         are deprecated.  Suggestion from Ralf Wildenhues.
20787
20788 2008-10-05  Bruno Haible  <bruno@clisp.org>
20789
20790         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20791         overriding them by ours.
20792         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20793
20794 2008-10-05  Jim Meyering  <meyering@redhat.com>
20795
20796         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20797         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20798         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20799
20800 2008-10-04  Bruno Haible  <bruno@clisp.org>
20801
20802         * modules/dup2 (License): Change to LGPLv2+.
20803         * modules/sleep (License): Likewise.
20804         * modules/perror (License): Likewise.
20805         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20806         Blake.
20807         * modules/signal (License): Likewise.
20808         * modules/sigprocmask (License): Likewise.
20809         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20810         Meyering.
20811
20812 2008-10-04  Bruno Haible  <bruno@clisp.org>
20813
20814         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20815         Reported by Rainer Tammer <tammer@tammer.net>.
20816
20817 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20818             Bruno Haible  <bruno@clisp.org>
20819
20820         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20821         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20822         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20823
20824 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20825
20826         filevercmp: new module
20827         * lib/filevercmp.h: New function filevercmp comparing version strings.
20828         * lib/filevercmp.c: Implementation of filevercmp function.
20829         * modules/filevercmp: Module metadata.
20830         * tests/test-filevercmp.c: Unit test for new module.
20831         * modules/filevercmp-tests: Unit test metadata.
20832         * MODULES.html.sh: Add filevercmp module.
20833
20834 2008-10-03  Bruno Haible  <bruno@clisp.org>
20835
20836         * lib/c-ctype.h: Add comment.
20837         Reported by Jim Meyering.
20838
20839 2008-10-02  Bruno Haible  <bruno@clisp.org>
20840
20841         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20842
20843 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20844
20845         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20846         name of bootstrap.conf accordingly.
20847
20848 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20849
20850         * build-aux/bootstrap: Install git-merge-changelog configuration
20851         items into .gitconfig if needed.
20852
20853 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20854
20855         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20856         git repository, and initialize/update it accordingly.
20857
20858 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20859
20860         * modules/fsync-tests: New file.
20861         * tests/test-fsync.c: New file.
20862
20863         New module 'fsync'.
20864         * lib/fsync.c: New file.
20865         * m4/fsync.m4: New file.
20866         * modules/fsync: New file.
20867         * lib/unistd.in.h (fsync): New declaration.
20868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20869         GNULIB_FSYNC and HAVE_FSYNC.
20870         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20871         * MODULES.html.sh (posix_functions): Add fsync.
20872         * doc/posix-functions/fsync.texi: Mention the new module.
20873
20874 2008-10-02  Jim Meyering  <meyering@redhat.com>
20875
20876         fts.c: sync with similar code from coreutils' remove.c
20877         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20878         Guard also with "#if defined __linux__", since for now at least,
20879         this code is Linux-kernel-specific.
20880
20881 2008-10-02  Jim Meyering  <meyering@redhat.com>
20882
20883         fts: bug fixes
20884         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20885         Include <sys/vfs.h>, not <sys/statfs.h>.
20886
20887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20888         Include <sys/vfs.h>, not <sys/statfs.h>.
20889
20890 2008-10-01  Bruno Haible  <bruno@clisp.org>
20891
20892         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20894         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20895         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20896         * doc/posix-functions/posix_spawnp.texi: Likewise.
20897         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20898         whether posix_spawn actually works.
20899         * m4/pipe.m4 (gl_PIPE): Likewise.
20900         * modules/execute (Files): Add m4/posix_spawn.m4.
20901         * modules/pipe (Files): Add m4/posix_spawn.m4.
20902         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20903
20904 2008-10-01  Jim Meyering  <meyering@redhat.com>
20905
20906         remove trailing spaces
20907         * NEWS: Likewise.
20908         * lib/poll.c (poll): Likewise.
20909         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20910         * lib/winsock.c (rpl_close): Likewise.
20911         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20912         * modules/yield: Likewise.
20913         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20914         * tests/test-sys_select.c (connect_to_socket): Likewise.
20915
20916         fts.c: adjust a new interface to be more generally useful
20917         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20918         (fts_build): Adjust caller.
20919
20920 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20921
20922         * modules/cond-tests: New file.
20923         * tests/test-cond.c: New file.
20924
20925 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20926             Bruno Haible  <bruno@clisp.org>
20927
20928         * modules/cond (Dependencies): Add errno, time.
20929         * lib/glthread/cond.h: Include <time.h>.
20930         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20931         across platforms.
20932
20933 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20934             Bruno Haible  <bruno@clisp.org>
20935
20936         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20937
20938 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20939             Bruno Haible  <bruno@clisp.org>
20940
20941         * modules/tls-tests (Depends-on): Add thread, yield.
20942         (configure.ac): Remove all checks.
20943         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20944         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20945         gl_thread_self): Remove definitions. Include glthread/thread.h and
20946         glthread/yield.h instead.
20947         (test_tls): Pass an additional NULL argument to gl_thread_join.
20948
20949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20950             Bruno Haible  <bruno@clisp.org>
20951
20952         * modules/lock-tests (Depends-on): Add thread, yield.
20953         (configure.ac): Remove all checks.
20954         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20955         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20956         gl_thread_self): Remove definitions. Include glthread/thread.h and
20957         glthread/yield.h instead.
20958         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20959         additional NULL argument to gl_thread_join.
20960
20961 2008-09-30  Bruno Haible  <bruno@clisp.org>
20962
20963         Fix the Win32 implementation of the 'thread' module.
20964         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20965         pointer type.
20966         (gl_thread_self): Invoke gl_thread_self_func.
20967         (gl_thread_self_func): New declaration.
20968         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20969         (do_init_self_key, init_self_key): New functions.
20970         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20971         Remove some fields.
20972         (running_threads, running_lock): Remove variables.
20973         (get_current_thread_handle): New function.
20974         (gl_thread_self_func, wrapper_func, glthread_create_func,
20975         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20976         simplified.
20977
20978 2008-09-30  Bruno Haible  <bruno@clisp.org>
20979
20980         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20981         files.
20982
20983 2008-09-30  Jim Meyering  <meyering@redhat.com>
20984
20985         fts.m4: correct the test for statfs.f_type
20986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20987         when checking for statfs.f_type.
20988
20989 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20990
20991         tests: avoid some compiler warnings
20992         * tests/test-memchr.c (main): Pass NULL indirectly.
20993         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20994
20995 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
20996
20997         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20998         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20999         exactly specified dayshifts.
21000         (dayshift): New rule.
21001         (rel): Add dayshift.
21002         (relative_time_table) [tomorrow, yesterday, today, now]:
21003         Use tDAY_SHIFT in place of tDAY_UNIT.
21004         * tests/test-getdate.c: Add tests for now-disallowed countable
21005         dayshifts, e.g., "4 yesterday ago".
21006
21007 2008-09-29  Bruno Haible  <bruno@clisp.org>
21008
21009         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21010         * tests/test-posix_spawn1.in.sh: Renamed from
21011         tests/test-posix_spawn.in.sh.
21012         * tests/test-posix_spawn2.c: New file.
21013         * tests/test-posix_spawn2.in.sh: New file.
21014         * modules/posix_spawnp-tests (Files): Update.
21015         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21016
21017 2008-09-29  Bruno Haible  <bruno@clisp.org>
21018
21019         Propagate effects of putenv/setenv/unsetenv to child processes.
21020         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21021         * lib/pipe.c (create_pipe): Likewise.
21022
21023 2008-09-29  Bruno Haible  <bruno@clisp.org>
21024
21025         Enable use of shell scripts as executables in mingw.
21026         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21027         run the program as a shell script.
21028         * lib/pipe.c (create_pipe): Likewise.
21029         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21030         resulting array.
21031
21032 2008-09-29  Eric Blake  <ebb9@byu.net>
21033
21034         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21035
21036 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21037
21038         * doc/posix-functions/accept.texi: Update mingw problems.
21039         * doc/posix-functions/bind.texi: Update mingw problems.
21040         * doc/posix-functions/close.texi: Update mingw problems.
21041         * doc/posix-functions/connect.texi: Update mingw problems.
21042         * doc/posix-functions/getpeername.texi: Update mingw problems.
21043         * doc/posix-functions/getsockname.texi: Update mingw problems.
21044         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21045         * doc/posix-functions/ioctl.texi: Update mingw problems.
21046         * doc/posix-functions/listen.texi: Update mingw problems.
21047         * doc/posix-functions/recv.texi: Update mingw problems.
21048         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21049         * doc/posix-functions/select.texi: Update mingw problems.
21050         * doc/posix-functions/send.texi: Update mingw problems.
21051         * doc/posix-functions/sendto.texi: Update mingw problems.
21052         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21053         * doc/posix-functions/socket.texi: Update mingw problems.
21054
21055 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21056             Bruno Haible  <bruno@clisp.org>
21057
21058         * lib/sys_select.in.h: Include sys/time.h.
21059         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21060         * modules/sys_select: Depend on sys_time.
21061         * tests/test-sys_select.c: Test that sys/select.h defines struct
21062         timeval fully.
21063
21064 2008-09-29  Bruno Haible  <bruno@clisp.org>
21065
21066         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21067         * lib/sys_select.in.h: Likewise.
21068
21069 2008-09-29  Bruno Haible  <bruno@clisp.org>
21070
21071         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21072
21073 2008-09-29  Bruno Haible  <bruno@clisp.org>
21074
21075         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21076         Set LIBSOCKET instead of augmenting LIBS.
21077         * modules/sockets (Link): New section.
21078         * modules/sockets-tests (test_sockets_LDADD): New variable.
21079         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21080         * modules/poll-tests (test_poll_LDADD): New variable.
21081         * NEWS: Document the change.
21082
21083 2008-09-29  Bruno Haible  <bruno@clisp.org>
21084
21085         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21086         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21087         ARPA_INET_H directly.
21088         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21089
21090 2008-09-28  Bruno Haible  <bruno@clisp.org>
21091
21092         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21093         from gl_HEADER_SYS_SOCKET.
21094         (gl_HEADER_SYS_SOCKET): Invoke it.
21095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21096
21097 2008-09-28  Bruno Haible  <bruno@clisp.org>
21098
21099         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21100         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21101         Needed on OSF/1 4.0.
21102
21103 2008-09-28  Bruno Haible  <bruno@clisp.org>
21104
21105         Override open more carefully.
21106         * lib/open.c (orig_open): New function.
21107         (rpl_open): Use orig_open instead of open.
21108         * lib/fcntl.in.h: Add special invocation convention.
21109         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21110         (gl_FUNC_OPEN): Invoke it.
21111
21112         Override freopen more carefully.
21113         * lib/freopen.c (orig_freopen): New function.
21114         (rpl_freopen): Use orig_freopen instead of freopen.
21115         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21116         (gl_FUNC_FREOPEN): Invoke it.
21117
21118         Override fopen more carefully.
21119         * lib/fopen.c (orig_fopen): New function.
21120         (rpl_fopen): Use orig_fopen instead of fopen.
21121         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21122         (gl_FUNC_FOPEN): Invoke it.
21123         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21124
21125 2008-09-28  Bruno Haible  <bruno@clisp.org>
21126
21127         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21128         SIGPIPE.
21129
21130 2008-09-28  Bruno Haible  <bruno@clisp.org>
21131
21132         * tests/test-sigaction.c (handler, main): Disable the check whether
21133         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21134         glibc systems with LinuxThreads.
21135
21136 2008-09-28  Bruno Haible  <bruno@clisp.org>
21137
21138         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21139
21140         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21141         with AIX xlc.
21142         * lib/fcntl.in.h (open): Likewise.
21143         Reported by Rainer Tammer <tammer@tammer.net>.
21144
21145 2008-09-28  Bruno Haible  <bruno@clisp.org>
21146
21147         * modules/posix_spawnp-tests: New file.
21148         * tests/test-posix_spawn.c: New file.
21149         * tests/test-posix_spawn.in.sh: New file.
21150
21151         New module 'posix_spawnp'.
21152         * modules/posix_spawnp: New file.
21153         * lib/spawnp.c: New file, from GNU libc with modifications.
21154         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21155
21156         New module 'posix_spawn'.
21157         * modules/posix_spawn: New file.
21158         * lib/spawn.c: New file, from GNU libc with modifications.
21159         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21160
21161         New module 'posix_spawnattr_destroy'.
21162         * modules/posix_spawnattr_destroy: New file.
21163         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21164         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21165         module.
21166
21167         New module 'posix_spawnattr_setsigmask'.
21168         * modules/posix_spawnattr_setsigmask: New file.
21169         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21170         modifications.
21171         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21172         new module.
21173
21174         New module 'posix_spawnattr_getsigmask'.
21175         * modules/posix_spawnattr_getsigmask: New file.
21176         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21177         modifications.
21178         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21179         new module.
21180
21181         New module 'posix_spawnattr_setsigdefault'.
21182         * modules/posix_spawnattr_setsigdefault: New file.
21183         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21184         modifications.
21185         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21186         new module.
21187
21188         New module 'posix_spawnattr_getsigdefault'.
21189         * modules/posix_spawnattr_getsigdefault: New file.
21190         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21191         modifications.
21192         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21193         new module.
21194
21195         New module 'posix_spawnattr_setschedpolicy'.
21196         * modules/posix_spawnattr_setschedpolicy: New file.
21197         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21198         modifications.
21199         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21200         new module.
21201
21202         New module 'posix_spawnattr_getschedpolicy'.
21203         * modules/posix_spawnattr_getschedpolicy: New file.
21204         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21205         modifications.
21206         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21207         new module.
21208
21209         New module 'posix_spawnattr_setschedparam'.
21210         * modules/posix_spawnattr_setschedparam: New file.
21211         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21212         modifications.
21213         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21214         new module.
21215
21216         New module 'posix_spawnattr_getschedparam'.
21217         * modules/posix_spawnattr_getschedparam: New file.
21218         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21219         modifications.
21220         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21221         new module.
21222
21223         New module 'posix_spawnattr_setpgroup'.
21224         * modules/posix_spawnattr_setpgroup: New file.
21225         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21226         modifications.
21227         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21228         module.
21229
21230         New module 'posix_spawnattr_getpgroup'.
21231         * modules/posix_spawnattr_getpgroup: New file.
21232         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21233         modifications.
21234         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21235         module.
21236
21237         New module 'posix_spawnattr_setflags'.
21238         * modules/posix_spawnattr_setflags: New file.
21239         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21240         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21241         module.
21242
21243         New module 'posix_spawnattr_getflags'.
21244         * modules/posix_spawnattr_getflags: New file.
21245         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21246         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21247         module.
21248
21249         New module 'posix_spawnattr_init'.
21250         * modules/posix_spawnattr_init: New file.
21251         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21252         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21253         module.
21254
21255         New module 'posix_spawn_file_actions_destroy'.
21256         * modules/posix_spawn_file_actions_destroy: New file.
21257         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21258         modifications.
21259         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21260         the new module.
21261
21262         New module 'posix_spawn_file_actions_addopen'.
21263         * modules/posix_spawn_file_actions_addopen: New file.
21264         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21265         modifications.
21266         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21267         the new module.
21268
21269         New module 'posix_spawn_file_actions_adddup2'.
21270         * modules/posix_spawn_file_actions_adddup2: New file.
21271         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21272         modifications.
21273         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21274         the new module.
21275
21276         New module 'posix_spawn_file_actions_addclose'.
21277         * modules/posix_spawn_file_actions_addclose: New file.
21278         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21279         modifications.
21280         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21281         the new module.
21282
21283         New module 'posix_spawn_file_actions_init'.
21284         * modules/posix_spawn_file_actions_init: New file.
21285         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21286         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21287         new module.
21288
21289         New module 'posix_spawn-internal'.
21290         * modules/posix_spawn-internal: New file.
21291         * lib/spawn_int.h: New file, from GNU libc with modifications.
21292         * lib/spawni.c: New file, from GNU libc with modifications.
21293         * m4/posix_spawn.m4: New file.
21294
21295         New module 'spawn'.
21296         * modules/spawn: New file.
21297         * lib/spawn.in.h: New file, from GNU libc with modifications.
21298         * m4/spawn_h.m4: New file.
21299         * doc/posix-headers/spawn.texi: Mention the new module.
21300
21301 2008-09-28  Bruno Haible  <bruno@clisp.org>
21302
21303         * modules/sched-tests: New file.
21304         * tests/test-sched.c: New file.
21305
21306         New module 'sched'.
21307         * modules/sched: New file.
21308         * lib/sched.in.h: New file.
21309         * m4/sched_h.m4: New file.
21310         * doc/posix-headers/sched.texi: Mention the new module.
21311
21312 2008-09-27  Eric Blake  <ebb9@byu.net>
21313
21314         Fix previous patch, and tweak references to $0.
21315         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21316         (func_version, func_gnulib_dir): Don't call this program
21317         gnulib-tool.
21318         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21319         with using $0 in function.
21320         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21321         (func_fatal_error): Reuse the name the user invoked us with.
21322
21323 2008-09-27  Bruno Haible  <bruno@clisp.org>
21324
21325         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21326         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21327         (gl_ICONV_H): Not here.
21328         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21329         instead of assigning ICONV_H directly.
21330
21331         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21333         WCHAR_H directly.
21334
21335 2008-09-27  Bruno Haible  <bruno@clisp.org>
21336
21337         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21338         * modules/arpa_inet (Depends-on): Add link-warning.
21339         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21340         * modules/unistd (Makefile.am): Likewise.
21341
21342 2008-09-26  Bruno Haible  <bruno@clisp.org>
21343
21344         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21345         variables.
21346         (func_version): Essentially copied from gnulib-tool.
21347         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21348         func_readlink): Copied from gnulib-tool.
21349
21350 2008-09-26  Bruno Haible  <bruno@clisp.org>
21351
21352         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21353         invoking git-version-gen.
21354
21355 2008-09-26  Bruno Haible  <bruno@clisp.org>
21356
21357         * posix-modules: Update to directory names changed on 2008-01-19.
21358         Remove commas in output before splitting into words. No more need to
21359         avoid 'ftruncate' since 2007-02-19.
21360
21361 2008-09-26  Bruno Haible  <bruno@clisp.org>
21362
21363         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21364
21365 2008-09-26  Bruno Haible  <bruno@clisp.org>
21366
21367         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21368         * modules/fwriteerror (Depends-on): Add errno.
21369
21370 2008-09-26  Bruno Haible  <bruno@clisp.org>
21371
21372         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21373         * tests/test-vc-list-files-cvs.sh: Likewise.
21374
21375 2008-09-26  Bruno Haible  <bruno@clisp.org>
21376
21377         * doc/posix-headers/sys_resource.texi: Reorder items.
21378
21379 2008-09-26  Jim Meyering  <meyering@redhat.com>
21380
21381         fts: tweak inode comparison function
21382         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21383         inode numbers, as documented.
21384
21385         fts: sort dirent entries on inode number before traversing
21386         This avoids a quadratic, seek-related performance penalty when
21387         operating on a directory containing many entries (measurable at 10k;
21388         3.5 hours at 2 million entries with a cold cache) on certain types
21389         of file systems, including ext3 and ext4, but not tmpfs.
21390         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21391         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21392         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21393         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21394         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21395         (fts_build): Set the stat.st_ino member from D_INO.
21396         If it is likely to be useful, sort dirent entries on inode number.
21397
21398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21399         and the struct statfs.f_type member.
21400         * modules/fts (Depends-on): Add d-ino.
21401
21402 2008-09-26  Bruno Haible  <bruno@clisp.org>
21403
21404         * modules/sigpipe-die (Depends-on): Add sigpipe.
21405
21406         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21407         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21408         and GNULIB_STDIO_H_SIGPIPE are set.
21409         * lib/stdio-write.c: New file.
21410         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21411         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21412         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21413         REPLACE_STDIO_WRITE_FUNCS.
21414         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21415         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21416         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21417         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21418         * modules/stdio (Files): Add lib/stdio-write.c.
21419         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21420         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21421         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21422         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21423         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21424         REPLACE_FPRINTF_POSIX.
21425         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21426         REPLACE_PRINTF_POSIX.
21427         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21428         REPLACE_VFPRINTF_POSIX.
21429         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21430         REPLACE_VPRINTF_POSIX.
21431         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21432         SIGPIPE issue.
21433         * doc/posix-functions/fputc.texi: Likewise.
21434         * doc/posix-functions/fputs.texi: Likewise.
21435         * doc/posix-functions/fwrite.texi: Likewise.
21436         * doc/posix-functions/printf.texi: Likewise.
21437         * doc/posix-functions/putc.texi: Likewise.
21438         * doc/posix-functions/putchar.texi: Likewise.
21439         * doc/posix-functions/puts.texi: Likewise.
21440         * doc/posix-functions/vfprintf.texi: Likewise.
21441         * doc/posix-functions/vprintf.texi: Likewise.
21442
21443         * modules/safe-write (Depends-on): Add write.
21444
21445         * modules/sigpipe-tests: New file.
21446         * tests/test-sigpipe.c: New file.
21447         * tests/test-sigpipe.sh: New file.
21448
21449         * modules/write: New file.
21450         * lib/unistd.in.h: Include <sys/types.h>.
21451         (write): New declaration.
21452         * lib/write.c: New file.
21453         * m4/write.m4: New file.
21454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21455         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21456         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21457         GNULIB_WRITE, REPLACE_WRITE.
21458         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21459         and the SIGPIPE issue.
21460
21461         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21462         (raise): New declaration.
21463         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21464         (ext_signal): New function.
21465         (rpl_raise): New function.
21466         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21467         GNULIB_SIGNAL_H_SIGPIPE.
21468         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21469         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21470
21471         * modules/sigpipe: New file.
21472         * m4/sigpipe.m4: New file.
21473
21474 2008-09-25  Derek Price  <derek@ximbiot.com>
21475             Bruno Haible  <bruno@clisp.org>
21476
21477         * gnulib-tool (func_import): Report all license incompatibilities, not
21478         just the first one.
21479
21480 2008-09-25  Bruno Haible  <bruno@clisp.org>
21481
21482         * gnulib-tool (func_import): When computing the edits, consider not
21483         only the Makefile.ams that exist but also those that will be generated.
21484
21485 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21486
21487         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21488         fixes gnulib-tool --test warning about duplicate dependency.
21489
21490 2008-09-25  Bruno Haible  <bruno@clisp.org>
21491
21492         * gnulib-tool: Don't ask the user to perform edits in the generated
21493         Makefile.ams.
21494         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21495         apply to the Makefile.am being generated.
21496         (func_emit_tests_Makefile_am): Execute edits that apply to the
21497         Makefile.am being generated.
21498         (func_import): Setup list of Makefile.am edits before emitting the
21499         Makefile.ams, not at the end.
21500         (func_create_testdir): Update.
21501         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21502
21503 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21504
21505         * gnulib-tool (func_import): Store the --tests-base option in the
21506         comment in gnulib-cache.m4.
21507
21508 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21509
21510         * NEWS: Document increased portability that sys_select now provides.
21511
21512         * lib/sys_select.in.h: Install select wrapper.
21513         * lib/sys_socket.in.h: Use more descriptive name when there is no
21514         select wrapper.
21515         * lib/winsock-select.c: New.
21516         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21517         Require gl_HEADER_SYS_SOCKET.
21518         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21519         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21520         * tests/test-sys_select.c: Add functional tests.
21521
21522 2008-09-24  Eric Blake  <ebb9@byu.net>
21523
21524         open, fopen: close fd leak in last patch
21525         * lib/open.c (rpl_open): Close fd before returning error.
21526         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21527         * doc/posix-functions/open.texi (open): Document that Irix also
21528         has the bug.
21529         * doc/posix-functions/fopen.texi (fopen): Likewise.
21530         Reported by Paolo Bonzini.
21531
21532 2008-09-24  Bruno Haible  <bruno@clisp.org>
21533
21534         Ensure that a filename ending in a slash cannot be used to access a
21535         non-directory.
21536         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21537         to check whether it's really a directory.
21538         * lib/fopen.c: Include fcntl.h, unistd.h.
21539         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21540         and fdopen().
21541         * modules/fopen (Depends-on): Add unistd.
21542         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21543         * tests/test-fopen.c (main): Likewise.
21544         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21545         * doc/posix-functions/fopen.texi: Likewise.
21546         Reported by Eric Blake.
21547
21548 2008-09-23  Eric Blake  <ebb9@byu.net>
21549
21550         c-stack: avoid compiler optimizations when provoking overflow
21551         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21552         recursion harder to optimize, to ensure a stack overflow occurs.
21553         * tests/test-c-stack.c (recurse): Likewise.
21554         Borrowed from libsigsegv.
21555
21556         c-stack: work around Irix sigaltstack bug
21557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21558         whether sigaltstack uses wrong end of stack_t (copied in part from
21559         libsigsegv).
21560         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21561         Irix bug, without requiring an over-allocation.
21562         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21563         bug.
21564
21565         fopen: document mingw bug on directories
21566         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21567         not allowing a stream visiting a directory, even though reading
21568         from such a stream is not portable.
21569
21570 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21571
21572         * lib/poll.c: Rewrite.
21573         * modules/poll: Depend on alloca.
21574
21575 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21576
21577         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21578         instead define prototypes for a full set of wrappers.  Ensure
21579         that Cygwin does not use the compatibility code, which is only
21580         for MinGW.
21581         * lib/winsock.c: New.
21582         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21583         * modules/sys_socket: Add lib/winsock.c.
21584
21585         * modules/poll-tests: Add errno and perror.
21586         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21587
21588 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21589
21590         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21591
21592 2008-09-23  Bruno Haible  <bruno@clisp.org>
21593
21594         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21595         * doc/glibc-functions/*: Likewise.
21596
21597 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21598
21599         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21600         success.
21601
21602 2008-09-22  Eric Blake  <ebb9@byu.net>
21603             Bruno Haible  <bruno@clisp.org>
21604
21605         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21606         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21607         supply %A but mishandle pseudo-NaN.
21608         Reported by Simon Josefsson.
21609
21610 2008-09-21  Bruno Haible  <bruno@clisp.org>
21611
21612         * tests/test-lock.c (main): Tweak skip message.
21613         * tests/test-tls.c (main): Likewise.
21614
21615 2008-09-21  Bruno Haible  <bruno@clisp.org>
21616
21617         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21618         whether 'struct sigaction' has sa_sigaction here...
21619         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21620         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21621
21622 2008-09-21  Bruno Haible  <bruno@clisp.org>
21623
21624         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21625         section.
21626         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21627         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21628         the new section.
21629         (Support for obsolete systems lacking POSIX:2001): New section.
21630         (String handling <string.h>): Move strdup to the new section.
21631         Suggested by Simon Josefsson and Paolo Bonzini.
21632
21633 2008-09-21  Bruno Haible  <bruno@clisp.org>
21634
21635         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21636         exponents in %e and %g results on 'long double'. Needed for mingw's
21637         improved *printf functions.
21638         * tests/test-vasprintf-posix.c (test_function): Likewise.
21639         * tests/test-snprintf-posix.h (test_function): Likewise.
21640         * tests/test-sprintf-posix.h (test_function): Likewise.
21641         Reported by Eric Blake.
21642
21643 2008-09-21  Bruno Haible  <bruno@clisp.org>
21644
21645         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21646         * tests/test-sprintf-posix.h (test_function): Likewise.
21647
21648 2008-09-21  Bruno Haible  <bruno@clisp.org>
21649
21650         * modules/getpass (Depends-on): Add strdup-posix.
21651
21652         New module 'strdup-posix'.
21653         * modules/strdup-posix: New file.
21654         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21655         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21657         REPLACE_STRDUP.
21658         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21659         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21661         strdup-posix.
21662
21663         * modules/strdup (Depends-on): Remove malloc-posix.
21664
21665 2008-09-20  Bruno Haible  <bruno@clisp.org>
21666
21667         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21668         Wildenhues.
21669
21670 2008-09-20  Bruno Haible  <bruno@clisp.org>
21671
21672         Ensure that wint_t gets defined on IRIX 5.3.
21673         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21674         * lib/wctype.in.h (wint_t): Likewise.
21675         (__wctype_wint_t): Remove type.
21676         (isw*): Use wint_t instead of __wctype_wint_t.
21677         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21678         * modules/wchar (Files): Add m4/wint_t.m4.
21679         (Makefile.am): Substitute HAVE_WINT_T.
21680         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21681         * tests/test-wctype.c: Check that wint_t is defined.
21682         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21683         * doc/posix-headers/wctype.texi: Likewise.
21684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21685
21686 2008-09-18  Bruno Haible  <bruno@clisp.org>
21687
21688         * gnulib-tool (func_exit): Update comment.
21689
21690 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21691
21692         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21693         assumes strdup exists and does not depend on strdup to return
21694         ENOMEM on out of memory conditions.
21695
21696 2008-09-18  Bruno Haible  <bruno@clisp.org>
21697
21698         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
21699         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21700         digits for the exponent.
21701
21702 2008-09-18  Jim Meyering  <meyering@redhat.com>
21703             Bruno Haible  <bruno@clisp.org>
21704
21705         * lib/vasnprintf.c (decimal_point_char): Define also if
21706         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21707
21708 2008-09-16  Bruno Haible  <bruno@clisp.org>
21709         and Eric Blake  <ebb9@byu.net>
21710
21711         vasnprintf: support Irix 5.3
21712         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21713         that mishandle long double infinity.
21714         Reported by Tom G. Christensen.
21715
21716 2008-09-16  Bruno Haible  <bruno@clisp.org>
21717
21718         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21719         Solaris 9.
21720         * doc/glibc-functions/alphasort.texi: Likewise.
21721         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21722
21723 2008-09-16  Jim Meyering  <meyering@redhat.com>
21724
21725         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21726         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21727         a umask modification leak out of a subshell.  Otherwise, the
21728         opensolaris /bin/sh would be accepted and thus cause unwarranted
21729         failures in the coreutils test suite.
21730
21731 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21732
21733         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21734         to succeed.
21735
21736 2008-09-16  Jim Meyering  <meyering@redhat.com>
21737
21738         avoid spurious test failure when library is built without ACL support
21739         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21740         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21741         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21742         * tests/test-copy-acl.sh: Likewise.
21743
21744 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21745
21746         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21747         based on character occurrence counts.
21748
21749 2008-09-15  Eric Blake  <ebb9@byu.net>
21750
21751         tests: avoid some compiler warnings
21752         * tests/test-memchr.c (main): Pass NULL indirectly.
21753         * tests/test-closein.c (main): Avoid unused variable.
21754
21755 2008-09-15  Bruno Haible  <bruno@clisp.org>
21756
21757         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21758         are missing on OpenBSD 4.0 individually.
21759         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21760
21761 2008-09-15  Bruno Haible  <bruno@clisp.org>
21762
21763         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21764         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21765         * doc/posix-functions/perror.texi: Likewise.
21766         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21767         is missing.
21768         Reported by Eric Blake.
21769
21770         * lib/errno.in.h: Use replacement values >= 2000.
21771         Reported by Eric Blake.
21772
21773 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21774
21775         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21776         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21777         limit.
21778         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21779         compareseq was aborted.
21780
21781 2008-09-14  Bruno Haible  <bruno@clisp.org>
21782
21783         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21784         yvec_edit_count.
21785         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21786         (fstrcmp_bounded): Simplify result computation accordingly.
21787
21788 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21789
21790         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21791         (fstrcmp): Define in terms of fstrcmp_bounded.
21792         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21793         lower_bound argument.
21794         Return quickly if the result is certainly < lower_bound.
21795         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21796
21797 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21798
21799         * lib/diffseq.h (EARLY_ABORT): New macro.
21800         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21801         evaluates to true.
21802
21803 2008-09-14  Bruno Haible  <bruno@clisp.org>
21804
21805         * modules/perror-tests: New file.
21806         * tests/test-perror.sh: New file.
21807         * tests/test-perror.c: New file.
21808
21809         New module 'perror'.
21810         * lib/stdio.in.h (perror): New declaration.
21811         * lib/perror.c: New file.
21812         * m4/perror.m4: New file.
21813         * modules/perror: New file.
21814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21815         * doc/posix-functions/perror.texi: Mention the perror module.
21816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21817         REPLACE_PERROR.
21818         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21819         REPLACE_PERROR.
21820
21821 2008-09-14  Bruno Haible  <bruno@clisp.org>
21822
21823         * modules/stdio (Makefile.am): Reorder to match the order in
21824         lib/stdio.in.h.
21825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21826
21827 2008-09-13  Bruno Haible  <bruno@clisp.org>
21828
21829         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21830
21831 2008-09-13  Bruno Haible  <bruno@clisp.org>
21832
21833         Extend strerror to cover the added errno values.
21834         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21835         (rpl_strerror): Provide error messages for the added errno values and
21836         for the WSA* values.
21837         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21838         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21839         strerror.
21840         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21841         * modules/strerror (Depends-on): Add errno.
21842         * doc/posix-functions/strerror.texi: Document the change.
21843         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21844         and EOVERFLOW.
21845
21846 2008-09-13  Bruno Haible  <bruno@clisp.org>
21847
21848         * modules/EOVERFLOW: Remove file.
21849         * m4/eoverflow.m4: Remove file.
21850         * modules/EOVERFLOW-tests: Remove file.
21851         * tests/test-EOVERFLOW.c: Remove file.
21852         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21853         * modules/ftell (Depends-on): Likewise.
21854         * modules/getdelim (Depends-on): Likewise.
21855         * modules/getugroups (Depends-on): Likewise.
21856         * modules/poll (Depends-on): Likewise.
21857         * modules/snprintf (Depends-on): Likewise.
21858         * modules/sprintf-posix (Depends-on): Likewise.
21859         * modules/vasnprintf (Depends-on): Likewise.
21860         * modules/vasprintf (Depends-on): Likewise.
21861         * modules/vfprintf-posix (Depends-on): Likewise.
21862         * modules/vsnprintf (Depends-on): Likewise.
21863         * modules/vsprintf-posix (Depends-on): Likewise.
21864         * modules/xvasprintf (Depends-on): Likewise.
21865         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21866         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21867         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21868         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21869         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21870         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21871         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21872         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21873         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21874         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21875         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21876         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21877         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21878         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21879         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21880         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21881         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21882         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21883         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21884         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21885         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21886         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21887         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21888         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21889         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21890         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21891         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21892         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21893         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21894         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21895         * MODULES.html.sh: Remove EOVERFLOW.
21896         * NEWS: Mention the change.
21897
21898 2008-09-13  Bruno Haible  <bruno@clisp.org>
21899
21900         * modules/errno-tests: New file.
21901         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21902
21903         * lib/errno.in.h: New file.
21904         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21905         * modules/errno: New file.
21906         * doc/posix-headers/errno.texi: Update documentation.
21907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21908
21909 2008-09-13  Bruno Haible  <bruno@clisp.org>
21910
21911         * tests/test-poll.c: Use #if for native Windows, rather than testing
21912         __MSVCRT__.
21913
21914 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21915             Bruno Haible  <bruno@clisp.org>
21916
21917         * lib/glob.c: Don't include <pwd.h> on native Windows.
21918         (WINDOWS32): New macro.
21919         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21920
21921 2008-09-13  Bruno Haible  <bruno@clisp.org>
21922
21923         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21924         (ETIMEDOUT): Remove macro.
21925         (glthread_cond_timedwait_multithreaded): New declaration.
21926         (glthread_cond_timedwait): Use it.
21927         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21928         (glthread_cond_timedwait_multithreaded): New function.
21929
21930 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21931
21932         * modules/poll-tests: Do not check for io.h.
21933         * tests/test-poll.c: Check for __MSVCRT__ instead.
21934
21935 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21936
21937         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21938         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21939         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21940
21941 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21942
21943         * modules/poll-tests: New.
21944         * tests/test-poll.c: New.
21945
21946 2008-09-12  Eric Blake  <ebb9@byu.net>
21947
21948         frexp: test for NetBSD failure on -0.0
21949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21950         not all, bugs from NetBSD 3.0 have been fixed.
21951         * doc/posix-functions/frexp.texi (frexp): Document bug.
21952         Reported by Thomas Klausner.
21953
21954         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21955         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21956         literal -0.0.
21957         Reported by Jonathan C. Patschke <jp@centtech.com>.
21958
21959 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21960
21961         * lib/glthread/cond.h: Use dummy implementation also if
21962         USE_WIN32_THREADS.
21963
21964 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21965
21966         * modules/fnmatch-posix (License): Change to LGPLv2+.
21967         * modules/fnmatch-gnu (License): Likewise.
21968
21969 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21970
21971         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21972
21973 2008-09-11  Jim Meyering  <meyering@redhat.com>
21974
21975         * users.txt: Add gtk-vnc.
21976
21977 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21978
21979         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21980         rotate amounts.
21981
21982         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21983         required for 16-bit and 8-bit rotates.
21984         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21985         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21986         UINT8_MAX instead of hard-coded constants.
21987         Suggested by Paul Eggert.
21988
21989 2008-09-07  Bruno Haible  <bruno@clisp.org>
21990
21991         * tests/test-striconveh.c (main): Check behaviour when converting from
21992         UTF-7.
21993
21994         Make striconveh work better with stateful encodings.
21995         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21996         that iconv does not increment the inptr when returning -1/EINVAL.
21997
21998 2008-09-07  Bruno Haible  <bruno@clisp.org>
21999
22000         * build-aux/config.rpath: Update according to libtool-2.2.6.
22001         * build-aux/config.libpath: Likewise.
22002
22003 2008-09-06  Bruno Haible  <bruno@clisp.org>
22004
22005         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22006         * lib/freadptr.c (freadptr): Likewise.
22007         * lib/freadseek.c (freadptrinc): Likewise.
22008         Reported by Simon Josefsson.
22009
22010 2008-09-06  Bruno Haible  <bruno@clisp.org>
22011
22012         * modules/freadptr (License): Change to LGPLv2+.
22013         * modules/freadseek (License): Likewise.
22014         Suggested by Eric Blake.
22015
22016         * modules/memchr2 (License): Change to LGPLv2+.
22017         Approved by Eric Blake.
22018
22019 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22020             Bruno Haible  <bruno@clisp.org>
22021
22022         Make gnulib-tool work with native 'sed' on AIX.
22023         * gnulib-tool (sed_noop): New variable.
22024         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22025         func_add_or_update, func_create_testdir): Use it to initialize sed
22026         script variables.
22027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22028
22029 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22030             Bruno Haible  <bruno@clisp.org>
22031
22032         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22033         also works after #include directives.
22034
22035 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22036
22037         getdate.y: reject an out-of-range timezone value
22038         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22039         the range [-24...+24].  When specified with only one or two digits,
22040         * tests/test-getdate.c: Tests for the fix.
22041         * doc/getdate.texi: Document this change.
22042
22043 2008-09-03  Bruno Haible  <bruno@clisp.org>
22044
22045         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22046
22047 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22048
22049         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22050         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22051         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22052         Blake <ebb9@byu.net>.
22053
22054         * tests/test-bitrotate.c: Add more test vectors.
22055
22056 2008-09-02  Eric Blake  <ebb9@byu.net>
22057
22058         vasnprintf-posix: handle large precision via %.*d
22059         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22060         when handling it ourselves.
22061         * tests/test-vasnprintf-posix.c (test_function): Add test.
22062         * tests/test-snprintf-posix.h (test_function): Likewise.
22063         * tests/test-sprintf-posix.h (test_function): Likewise.
22064         * tests/test-vasprintf-posix.c (test_function): Likewise.
22065         Reported by Alain Guibert.
22066
22067 2008-09-01  Eric Blake  <ebb9@byu.net>
22068
22069         c-stack: make configure-time check more robust
22070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22071         successful sigaction call.
22072         Reported by Tom G. Christensen.
22073
22074 2008-09-01  Bruno Haible  <bruno@clisp.org>
22075
22076         New module 'findprog-lgpl'.
22077         * modules/findprog-lgpl: New file.
22078         * lib/findprog-lgpl.c: New file.
22079         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22080         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22081         to decide whether to use strdup or xstrdup, concatenated_filename or
22082         xconcatenated_filename.
22083
22084 2008-09-01  Bruno Haible  <bruno@clisp.org>
22085
22086         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22087         'xconcat-filename' (GPL).
22088         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22089         (License): Change to LGPLv2+.
22090         * modules/xconcat-filename: New file.
22091         * lib/concat-filename.h (concatenated_filename): Change specification.
22092         (xconcatenated_filename): New declaration.
22093         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22094         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22095         memory situations.
22096         * lib/xconcat-filename.c: New file.
22097         * NEWS: Mention the change.
22098         * lib/findprog.c: Include concat-filename.h, not filename.h.
22099         (find_in_path): Use xconcatenated_filename instead of
22100         concatenated_filename.
22101         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22102         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22103         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22104         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22105         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22106         instead of concatenated_filename.
22107         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22108         (execute_java_class): Use xconcatenated_filename instead of
22109         concatenated_filename.
22110         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22111         * modules/javacomp (Depends-on): Likewise.
22112         * modules/javaexec (Depends-on): Likewise.
22113
22114 2008-09-01  Bruno Haible  <bruno@clisp.org>
22115
22116         Split module 'filename' into 'filename' and 'concat-filename'.
22117         * modules/filename: Keep only lib/filename.h.
22118         (License): Change to LGPLv2+.
22119         * modules/concat-filename: New file, extracted from modules/filename.
22120         * lib/filename.h (concatenated_filename): Remove declaration.
22121         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22122         * lib/concat-filename.c: Include concat-filename.h.
22123         * NEWS: Mention the change.
22124
22125 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22126
22127         * lib/bitrotate.h (rotl8, rotr8): Add.
22128
22129         * modules/bitrotate (configure.ac): Need
22130         AC_REQUIRE([AC_C_INLINE]).
22131         (Description): Mention stdint.h.  Reported by Bruno Haible
22132         <bruno@clisp.org>.
22133
22134         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22135         Paolo Bonzini <bonzini@gnu.org>.
22136
22137 2008-08-31  Bruno Haible  <bruno@clisp.org>
22138
22139         Assume Solaris specific bi-arch conventions on Solaris systems.
22140         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22141         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22142         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22143         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22144         like acl_libdirstem.
22145         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22146         acl_libdirstem.
22147         * NEWS: Mention the change.
22148         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22149
22150 2008-08-31  Jim Meyering  <meyering@redhat.com>
22151
22152         * lib/strftime.h: Add comments describing the two added arguments.
22153
22154         remove duplicate #include directives
22155         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22156         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22157
22158 2008-08-31  Bruno Haible  <bruno@clisp.org>
22159
22160         New module 'sigpipe-die'.
22161         * modules/sigpipe-die: New file.
22162         * lib/sigpipe-die.h: New file.
22163         * lib/sigpipe-die.c: New file.
22164         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22165
22166 2008-08-31  Bruno Haible  <bruno@clisp.org>
22167
22168         Don't override previously installed signal handlers.
22169         * lib/fatal-signal.c (saved_sigactions): New variable.
22170         (uninstall_handlers): Reset the signal to the saved handler, not
22171         to SIG_DFL (except when ignored).
22172         (install_handlers): Save the previous handlers.
22173
22174 2008-08-30  Bruno Haible  <bruno@clisp.org>
22175
22176         * gnulib-tool (func_reset_sigpipe): New function.
22177         (func_get_automake_snippet, func_modules_transitive_closure,
22178         func_import): Invoke it before a join command that reads from stdin,
22179         to avoid "echo: write error: Broken pipe" error messages on stderr.
22180         Reported by Sam Steingold <sds@gnu.org>.
22181
22182 2008-08-30  Bruno Haible  <bruno@clisp.org>
22183
22184         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22185         Code copied from m4/open.m4.
22186         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22187         access and the filename ends in a slash. Code copied from lib/open.c.
22188         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22189         * tests/test-fopen.c (main): Check against bug with trailing slash.
22190
22191 2008-08-29  Bruno Haible  <bruno@clisp.org>
22192
22193         Avoid some "gcc -pedantic" warnings.
22194         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22195         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22196         * lib/dirent.in.h: Likewise.
22197         * lib/fcntl.in.h: Likewise.
22198         * lib/float.in.h: Likewise.
22199         * lib/iconv.in.h: Likewise.
22200         * lib/inttypes.in.h: Likewise.
22201         * lib/locale.in.h: Likewise.
22202         * lib/math.in.h: Likewise.
22203         * lib/netinet_in.in.h: Likewise.
22204         * lib/search.in.h: Likewise.
22205         * lib/signal.in.h: Likewise.
22206         * lib/stdarg.in.h: Likewise.
22207         * lib/stdint.in.h: Likewise.
22208         * lib/stdio.in.h: Likewise.
22209         * lib/stdlib.in.h: Likewise.
22210         * lib/string.in.h: Likewise.
22211         * lib/strings.in.h: Likewise.
22212         * lib/sys_select.in.h: Likewise.
22213         * lib/sys_socket.in.h: Likewise.
22214         * lib/sys_stat.in.h: Likewise.
22215         * lib/sys_time.in.h: Likewise.
22216         * lib/sysexits.in.h: Likewise.
22217         * lib/time.in.h: Likewise.
22218         * lib/unistd.in.h: Likewise.
22219         * lib/wchar.in.h: Likewise.
22220         * lib/wctype.in.h: Likewise.
22221         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22222         * modules/fchdir (Makefile.am): Likewise.
22223         * modules/fcntl (Makefile.am): Likewise.
22224         * modules/float (Makefile.am): Likewise.
22225         * modules/iconv_open (Makefile.am): Likewise.
22226         * modules/inttypes (Makefile.am): Likewise.
22227         * modules/locale (Makefile.am): Likewise.
22228         * modules/math (Makefile.am): Likewise.
22229         * modules/netinet_in (Makefile.am): Likewise.
22230         * modules/search (Makefile.am): Likewise.
22231         * modules/signal (Makefile.am): Likewise.
22232         * modules/stdarg (Makefile.am): Likewise.
22233         * modules/stdint (Makefile.am): Likewise.
22234         * modules/stdio (Makefile.am): Likewise.
22235         * modules/stdlib (Makefile.am): Likewise.
22236         * modules/string (Makefile.am): Likewise.
22237         * modules/strings (Makefile.am): Likewise.
22238         * modules/sys_select (Makefile.am): Likewise.
22239         * modules/sys_socket (Makefile.am): Likewise.
22240         * modules/sys_stat (Makefile.am): Likewise.
22241         * modules/sys_time (Makefile.am): Likewise.
22242         * modules/sysexits (Makefile.am): Likewise.
22243         * modules/time (Makefile.am): Likewise.
22244         * modules/unistd (Makefile.am): Likewise.
22245         * modules/wchar (Makefile.am): Likewise.
22246         * modules/wctype (Makefile.am): Likewise.
22247         Reported by Reuben Thomas <rrt@sc3d.org>.
22248
22249 2008-08-29  Bruno Haible  <bruno@clisp.org>
22250
22251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22252         any more.
22253
22254 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22255
22256         * MODULES.html.sh (Misc): Add bitrotate.
22257
22258         * modules/bitrotate: New file.
22259
22260         * lib/bitrotate.h: New file.
22261
22262         * modules/bitrotate-tests: New file.
22263
22264         * tests/test-bitrotate.c: New file.
22265
22266         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22267         on the bitrotate module.
22268
22269         * lib/arctwo.c: Use new bitrotate module.
22270
22271 2008-08-29  Jim Meyering  <meyering@redhat.com>
22272
22273         bootstrap: merge changes from coreutils
22274         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22275         of copied files.  Remove a kludge, now that this is fixed.
22276         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22277         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22278         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22279
22280 2008-08-29  Bruno Haible  <bruno@clisp.org>
22281
22282         * MODULES.html.sh: Remove --cvs-urls option.
22283
22284 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22285
22286         maint.mk: adjust to file name change
22287         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22288
22289 2008-08-28  Jim Meyering  <meyering@redhat.com>
22290
22291         * modules/getndelim2 (License): Relicense to LGPLv2+.
22292         Approved by Richard Stallman for the version of 1995, and by
22293         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22294
22295 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22296
22297         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22298         dummy if one is not available.  Do not touch them if
22299         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22300         (getc_maybe_unlocked): New.
22301         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22302
22303 2008-08-26  Eric Blake  <ebb9@byu.net>
22304
22305         doc/INSTALL: resync from autoconf
22306         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22307         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22308         moving...
22309         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22310         * INSTALL: Regenerate.
22311         * INSTALL.ISO: New file.
22312         * INSTALL.UTF-8: Likewise.
22313
22314 2008-08-26  Jim Meyering  <meyering@redhat.com>
22315
22316         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22317         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22318         these definitions conditional, so that they may be overridden, too.
22319
22320 2008-08-26  Bruno Haible  <bruno@clisp.org>
22321
22322         Generate INSTALL file variants with prettier quotes.
22323         * doc/Makefile (INSTALL_PRELUDE): New macro.
22324         (INSTALL): Use it.
22325         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22326
22327 2008-08-26  Bruno Haible  <bruno@clisp.org>
22328
22329         Run makeinfo in an English locale.
22330         * doc/Makefile (MAKEINFO): New variable.
22331
22332 2008-08-26  Bruno Haible  <bruno@clisp.org>
22333
22334         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22335         Suggested by Eric Blake.
22336
22337 2008-08-25  Bruno Haible  <bruno@clisp.org>
22338
22339         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22340
22341 2008-08-25  Eric Blake  <ebb9@byu.net>
22342
22343         c-stack: test that stack overflow can be caught
22344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22345         that platform allows handling stack overflow; at least OS/2 EMX
22346         has sigaltstack, but crashes before transferring control to
22347         handler on stack overflow.
22348         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22349         check for HAVE_STACK_OVERFLOW_HANDLING.
22350         Reported by Elbert Pol.
22351
22352 2008-08-25  Bruno Haible  <bruno@clisp.org>
22353
22354         * doc/posix-functions/strftime.texi: Fix description of strftime
22355         module.
22356
22357 2008-08-24  Bruno Haible  <bruno@clisp.org>
22358
22359         * tests/uniwidth/test-uc_width2.c: New file.
22360         * tests/uniwidth/test-uc_width2.sh: New file.
22361         * modules/uniwidth/width-tests (Files): Add the new files.
22362         (TESTS): Add uniwidth/test-uc_width2.sh.
22363         (TESTS_ENVIRONMENT): New variable.
22364         (check_PROGRAMS): Add test-uc_width2.
22365         (test_uc_width2_SOURCES): New variable.
22366
22367         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22368         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22369         not 0x00AB.
22370         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22371
22372 2008-08-22  Eric Blake  <ebb9@byu.net>
22373
22374         test-lock, test-tls: mention why a test is skipped
22375         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22376         skipped.
22377         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22378
22379         count-one-bits: relax license
22380         * modules/count-one-bits (License): Relicense to LGPLv2+.
22381         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22382
22383 2008-08-22  Andreas Schwab  <schwab@suse.de>
22384
22385         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22386         Remove spurious space in assignment.
22387
22388 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22389
22390         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22391         Paul Eggert <eggert@CS.UCLA.EDU>.
22392
22393 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22394
22395         * modules/gettext: Add m4/threadlib.m4.
22396
22397 2008-08-19  Eric Blake  <ebb9@byu.net>
22398
22399         test-c-stack: fix compilation failure on FreeBSD 5.0
22400         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22401         headers before <sys/resource.h>.
22402         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22403         the bug.
22404         Reported by Nelson H. F. Beebe.
22405
22406         strverscmp: migrate from "strverscmp.h" to <string.h>
22407         * modules/string (Makefile.am): Add new hooks.
22408         * modules/strverscmp (Files): Remove strverscmp.h.
22409         (Depends-on): Add string.
22410         (configure.ac): Add indicator.
22411         (Include): Mention new header.
22412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22413         defaults.
22414         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22415         results.
22416         * lib/strverscmp.h: Delete.
22417         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22418         * tests/test-strverscmp.c (includes): Adjust client.
22419         * lib/check-version.c (includes): Likewise.
22420         * NEWS: Document the change.
22421
22422         strverscmp: add unit test
22423         * modules/strverscmp-tests: New file.
22424         * tests/test-strverscmp.c: Likewise.
22425
22426 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22427
22428         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22429         regarding Windows crypto stuff, from Mono.
22430
22431 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22432
22433         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22434         if present, for intel RND.  Return error on failures.
22435
22436 2008-08-18  Ben Pfaff  <blp@gnu.org>
22437
22438         gitlog-to-changelog: give better diagnostic for failed pipe-open
22439         * build-aux/gitlog-to-changelog: Improve error message: suggest
22440         that the version of Git may be too old.
22441
22442 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22443
22444         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22445         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22446
22447 2008-08-18  Bruno Haible  <bruno@clisp.org>
22448
22449         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22450         pthread_in_use().
22451
22452 2008-08-18  Bruno Haible  <bruno@clisp.org>
22453
22454         * lib/glthread/threadlib.c: Include <pthread.h>.
22455
22456 2008-08-18  Bruno Haible  <bruno@clisp.org>
22457
22458         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22459         glthread_recursive_lock_* macros.
22460         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22461         Fix syntax error.
22462
22463 2008-08-18  Bruno Haible  <bruno@clisp.org>
22464
22465         * lib/glthread/thread.c: Avoid forcing a context switch right after
22466         thread creation.
22467
22468 2008-08-17  Bruno Haible  <bruno@clisp.org>
22469
22470         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22471         * lib/glthread/thread.h: Provide Win32 specific implementation.
22472         * modules/thread (Files): Add lib/glthread/thread.c.
22473         (Depends-on): Add lock.
22474         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22475
22476 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22477
22478         New module 'yield'.
22479         * modules/yield: New file.
22480         * lib/glthread/yield.h: New file.
22481         * m4/yield.m4: New file.
22482         * MODULES.html.sh (Multithreading): Add yield.
22483
22484 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22485
22486         New module 'thread'.
22487         * modules/thread: New file.
22488         * lib/glthread/thread.h: New file.
22489         * m4/thread.m4: New file.
22490         * MODULES.html.sh (Multithreading): Add thread.
22491
22492 2008-08-17  Bruno Haible  <bruno@clisp.org>
22493
22494         * lib/glthread/lock.h: Include <stdlib.h> always.
22495         * lib/glthread/tls.h: Likewise.
22496         * lib/glthread/cond.h: Likewise.
22497
22498 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22499
22500         New module 'cond'.
22501         * modules/cond: New file.
22502         * lib/glthread/cond.h: New file.
22503         * lib/glthread/cond.c: New file.
22504         * m4/cond.m4: New file.
22505         * MODULES.html.sh (Multithreading): Add cond.
22506
22507 2008-08-16  Eric Blake  <ebb9@byu.net>
22508
22509         c-stack: fix regression on Irix 5.3 from 2008-06-21
22510         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22511         sa_sigaction...
22512         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22513         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22514         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22515         * modules/signal (Makefile.am): Use the value.
22516         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22517         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22518         * doc/posix-headers/signal.texi (signal.h): Document this
22519         portability issue.
22520         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22521         Reported by Tom G. Christensen.
22522
22523 2008-08-17  Bruno Haible  <bruno@clisp.org>
22524
22525         New module 'threadlib'.
22526         * modules/threadlib: New file.
22527         * lib/glthread/threadlib.c: New file, extracted from
22528         lib/glthread/lock.c.
22529         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22530         functions.
22531         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22532         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22533         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22534         macros.
22535         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22536         (gl_DISABLE_THREADS): Remove macro.
22537         * modules/lock (Files): Remove build-aux/config.rpath.
22538         (Depends-on): Remove havelib. Add threadlib.
22539         (configure.ac-early): Remove section.
22540         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22541         * modules/tls (Depends-on): Remove lock. Add threadlib.
22542         (Link): New section, copied from threadlib.
22543         * MODULES.html.sh (Multithreading): Add threadlib.
22544
22545 2008-08-14  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22548         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22549         glthread_rwlock_unlock, glthread_rwlock_destroy,
22550         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22551         glthread_recursive_lock_destroy): Define as macros always.
22552         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22553         glthread_lock_lock.
22554         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22555         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22556         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22557         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22558         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22559         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22560         (glthread_recursive_lock_lock_func): Renamed from
22561         glthread_recursive_lock_lock.
22562         (glthread_recursive_lock_unlock_func): Renamed from
22563         glthread_recursive_lock_unlock.
22564         (glthread_recursive_lock_destroy_func): Renamed from
22565         glthread_recursive_lock_destroy.
22566
22567 2008-08-14  Bruno Haible  <bruno@clisp.org>
22568
22569         * lib/glthread/lock.h: Renamed from lib/lock.h.
22570         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22571         * lib/glthread/tls.h: Renamed from lib/tls.h.
22572         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22573         * lib/fstrcmp.c: Update includes.
22574         * lib/strsignal.c: Update includes.
22575         * modules/lock (Files, Makefile.am): Update.
22576         (Include): Change to "glthread/lock.h".
22577         * modules/tls (Files, Makefile.am): Update.
22578         (Include): Change to "glthread/tls.h".
22579         * tests/test-lock.c: Update includes.
22580         * tests/test-tls.c: Update includes.
22581         * NEWS: Mention the renamed header files.
22582
22583 2008-08-11  Jim Meyering  <meyering@redhat.com>
22584
22585         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22586
22587 2008-08-11  Eric Blake  <ebb9@byu.net>
22588
22589         test-c-stack: avoid C99-ism
22590         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22591         before statement.
22592         Reported by Alain Guibert.
22593
22594 2008-08-10  Jim Meyering  <meyering@redhat.com>
22595
22596         ensure that return value of uinttostr et al are not ignored
22597         * lib/inttostr.h (__GNUC_PREREQ): Define.
22598         (__attribute_warn_unused_result__): Define.
22599         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22600
22601 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22602
22603         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22604         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22605
22606 2008-08-07  Jim Meyering  <meyering@redhat.com>
22607
22608         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22609
22610         * modules/mkstemp (License): Relicense under LGPLv2+.
22611         * modules/tempname (License): Likewise.
22612
22613 2008-08-06  Bruno Haible  <bruno@clisp.org>
22614
22615         * lib/poll.c (poll): Further micro-optimization.
22616
22617 2008-08-06  Jim Meyering  <meyering@redhat.com>
22618
22619         inet_pton.c: use locale-independent tolower
22620         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22621         (inet_pton6): Use c_tolower rather than tolower.
22622         * modules/inet_pton (Depends-on): Add c-ctype.
22623
22624 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22625
22626         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22627         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22628
22629 2008-08-06  Jim Meyering  <meyering@redhat.com>
22630
22631         * modules/inet_pton (License): Relicense under LGPLv2+.
22632
22633 2008-08-03  Bruno Haible  <bruno@clisp.org>
22634
22635         Additional non-aborting API for lock and tls.
22636         * lib/lock.h: Include <errno.h>.
22637         (glthread_lock_init): New macro/function.
22638         (gl_lock_init): Define as wrapper around glthread_lock_init.
22639         (glthread_lock_lock): New macro/function.
22640         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22641         (glthread_lock_unlock): New macro/function.
22642         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22643         (glthread_lock_destroy): New macro/function.
22644         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22645         (glthread_rwlock_init): New macro/function.
22646         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22647         (glthread_rwlock_rdlock): New macro/function.
22648         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22649         (glthread_rwlock_wrlock): New macro/function.
22650         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22651         (glthread_rwlock_unlock): New macro/function.
22652         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22653         (glthread_rwlock_destroy): New macro/function.
22654         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22655         (glthread_recursive_lock_init): New macro/function.
22656         (gl_recursive_lock_init): Define as wrapper around
22657         glthread_recursive_lock_init.
22658         (glthread_recursive_lock_lock): New macro/function.
22659         (gl_recursive_lock_lock): Define as wrapper around
22660         glthread_recursive_lock_lock.
22661         (glthread_recursive_lock_unlock): New macro/function.
22662         (gl_recursive_lock_unlock): Define as wrapper around
22663         glthread_recursive_lock_unlock.
22664         (glthread_recursive_lock_destroy): New macro/function.
22665         (gl_recursive_lock_destroy): Define as wrapper around
22666         glthread_recursive_lock_destroy.
22667         (glthread_once): New macro/function.
22668         (gl_once): Define as wrapper around glthread_once.
22669         Update function declarations.
22670         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22671         glthread_rwlock_init. Return error code.
22672         (glthread_rwlock_rdlock_multithreaded): Renamed from
22673         glthread_rwlock_rdlock. Return error code.
22674         (glthread_rwlock_wrlock_multithreaded): Renamed from
22675         glthread_rwlock_wrlock. Return error code.
22676         (glthread_rwlock_unlock_multithreaded): Renamed from
22677         glthread_rwlock_unlock. Return error code.
22678         (glthread_rwlock_destroy_multithreaded): Renamed from
22679         glthread_rwlock_destroy. Return error code.
22680         (glthread_recursive_lock_init_multithreaded): Renamed from
22681         glthread_recursive_lock_init. Return error code.
22682         (glthread_recursive_lock_lock_multithreaded): Renamed from
22683         glthread_recursive_lock_lock. Return error code.
22684         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22685         glthread_recursive_lock_unlock. Return error code.
22686         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22687         glthread_recursive_lock_destroy. Return error code.
22688         (glthread_once_call): Make static.
22689         (glthread_once_multithreaded): Renamed from glthread_once.
22690         * lib/tls.h: Include <errno.h>.
22691         (glthread_tls_key_init): New macro/function.
22692         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22693         (glthread_tls_set): New macro/function.
22694         (gl_tls_set): Define as wrapper around glthread_tls_set.
22695         (glthread_tls_key_destroy): New macro/function.
22696         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22697         Update function declarations.
22698         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22699         glthread_tls_get.
22700         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22701
22702 2008-08-04  Eric Blake  <ebb9@byu.net>
22703
22704         gnumakefile: use space, not TAB, outside of targets
22705         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22706
22707 2008-08-02  Jim Meyering  <meyering@redhat.com>
22708
22709         getdate.y: avoid locale-dependent date parsing failure
22710         In Turkish locales, getdate would fail to recognize keywords
22711         containing a lowercase "i".  The solution is not to rely on
22712         locale-sensitive case-conversion.
22713         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22714         (lookup_word): Use c_toupper in place of toupper.
22715         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22716         Reported by Vefa Bicakci <bicave@superonline.com> in
22717         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22718         * modules/getdate (Depends-on): Add c-ctype.
22719
22720 2008-08-02  Bruno Haible  <bruno@clisp.org>
22721
22722         * gnulib-tool (func_import): When updating or creating a .gitignore
22723         file, prepend each added line with a slash, and ignore leading slashes
22724         from the existing lines.
22725         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22726
22727 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22728
22729         Portability fix for GNU make 3.79.1.
22730         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22731         versions do not understand.
22732
22733 2008-08-01  Bruno Haible  <bruno@clisp.org>
22734
22735         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22736         * tests/test-isnanf.h (zero): New variable.
22737         (main): Avoid literal -0.0f.
22738         * tests/test-isnand.h (zero): New variable.
22739         (main): Avoid literal -0.0.
22740         * tests/test-isnanl.h (zero): New variable.
22741         (main): Avoid literal -0.0L.
22742         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22743         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22744         -0.0, -0.0L.
22745         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22746         (test_signbitd): Avoid literal -0.0.
22747         (test_signbitl): Avoid literal -0.0L.
22748         * tests/test-ceilf1.c (zero): New variable.
22749         (main): Avoid literal -0.0f.
22750         * tests/test-ceill.c (zero): New variable.
22751         (main): Avoid literal -0.0L.
22752         * tests/test-floorf1.c (zero): New variable.
22753         (main): Avoid literal -0.0f.
22754         * tests/test-floorl.c (zero): New variable.
22755         (main): Avoid literal -0.0L.
22756         * tests/test-roundf1.c (zero): New variable.
22757         (main): Avoid literal -0.0f.
22758         * tests/test-round1.c (zero): New variable.
22759         (main): Avoid literal -0.0.
22760         * tests/test-roundl.c (zero): New variable.
22761         (main): Avoid literal -0.0L.
22762         * tests/test-truncf1.c (zero): New variable.
22763         (main): Avoid literal -0.0f.
22764         * tests/test-trunc1.c (zero): New variable.
22765         (main): Avoid literal -0.0.
22766         * tests/test-truncl.c (zero): New variable.
22767         (main): Avoid literal -0.0L.
22768         * tests/test-frexp.c (zero): New variable.
22769         (main): Avoid literal -0.0.
22770         * tests/test-frexpl.c (zero): New variable.
22771         (main): Avoid literal -0.0L.
22772         * tests/test-ldexpl.c (zero): New variable.
22773         (main): Avoid literal -0.0L.
22774         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22775         (zerod, zerol): New variables.
22776         (test_function): Avoid literals -0.0, -0.0L.
22777         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22778         (zerod, zerol): New variables.
22779         (test_function): Avoid literals -0.0, -0.0L.
22780         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22781         (zerod, zerol): New variables.
22782         (test_function): Avoid literals -0.0, -0.0L.
22783         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22784         (zerod, zerol): New variables.
22785         (test_function): Avoid literals -0.0, -0.0L.
22786         * tests/test-strtod.c (zero): New variable.
22787         (main): Avoid literal -0.0.
22788         Reported by Jonathan C. Patschke <jp@centtech.com>.
22789
22790 2008-07-31  Jim Meyering  <meyering@redhat.com>
22791
22792         sha256.h: correct definition of SHA224_DIGEST_SIZE
22793         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22794         Reported by Paulie Pena IV <paulie4@gmail.com>.
22795         Define as 224 / 8, rather than as a literal.
22796         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22797         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22798         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22799
22800 2008-07-31  Bruno Haible  <bruno@clisp.org>
22801
22802         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22803         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22804         Reported by Jonathan Patschke <jp@centtech.com>.
22805
22806 2008-07-31  Bruno Haible  <bruno@clisp.org>
22807
22808         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22809         Reported by Paolo Bonzini <bonzini@gnu.org>.
22810
22811 2008-07-30  Eric Blake  <ebb9@byu.net>
22812
22813         test-strtod: allow compilation without -lm
22814         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22815         Reported by Dennis Clarke <blastwave@gmail.com>.
22816
22817 2008-07-28  Jim Meyering  <meyering@redhat.com>
22818
22819         bootstrap: work also when there are no .po files in po/
22820         * build-aux/bootstrap (update_po_files): Complete the change
22821         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22822
22823 2008-07-27  Jim Meyering  <meyering@redhat.com>
22824
22825         * users.txt: Add zile.
22826
22827 2008-07-26  Ben Pfaff  <blp@gnu.org>
22828
22829         Add missing dependencies on new m4/exponent[fdl].m4 files.
22830         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22831         * modules/isnand-nolibm: Add m4/exponentd.m4.
22832         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22833         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22834         m4/isnan[fdl].m4, because the macros actually used moved.
22835         Reported by Jim Meyering.
22836
22837 2008-07-14  Ben Pfaff  <blp@gnu.org>
22838
22839         Add isinf module.
22840         * lib/isinf.c: New file.
22841         * lib/math.in.h: Define isinf macro if we have decided to replace
22842         it.
22843         * m4/isinf.m4: New file.
22844         * m4/math_h.m4: Initialize and substitute variables for isinf
22845         module.
22846         * modules/isinf: New file.
22847         * modules/isinf-tests: New file.
22848         * modules/math: Add substitutions for new module.
22849         * tests/test-isinf.c: New file.
22850         * doc/posix-functions/isinf.texi: Mention new module.
22851         * MODULES.html.sh: Mention new module.
22852
22853 2008-07-14  Ben Pfaff  <blp@gnu.org>
22854
22855         Factor out some macros for use by additional modules.
22856         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22857         exponentf.m4.
22858         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22859         exponentd.m4.
22860         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22861         file exponentl.m4.
22862         * m4/exponentf.m4: New file.
22863         * m4/exponentd.m4: New file.
22864         * m4/exponentl.m4: New file.
22865         * modules/isnanf: Use new file m4/exponentf.m4.
22866         * modules/isnand: Use new file m4/exponentd.m4.
22867         * modules/isnanl: Use new file m4/exponentl.m4.
22868
22869 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22870
22871         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22872         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22873         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22874         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22875
22876         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22877         readlink on platforms without PATH_MAX.
22878
22879 2008-07-21  Eric Blake  <ebb9@byu.net>
22880
22881         Warn, not fail, on stale version.
22882         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22883
22884         Don't allow installation with stale devel version number.
22885         * top/GNUmakefile (_is-install-target): New macro.
22886         (_curr-ver): Forbid installation with stale version number.
22887
22888 2008-07-20  Bruno Haible  <bruno@clisp.org>
22889
22890         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22891         TESTS_ENVIRONMENT.
22892         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22893
22894 2008-07-20  Bruno Haible  <bruno@clisp.org>
22895
22896         * lib/c-stack.h (c_stack_action): Add documentation.
22897         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22898
22899 2008-07-20  Bruno Haible  <bruno@clisp.org>
22900
22901         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22902         * modules/readlink (License): Likewise.
22903
22904 2008-07-17  Eric Blake  <ebb9@byu.net>
22905
22906         * modules/c-stack (Link): Fix typo.
22907
22908         Make c-stack use libsigsegv, when available.
22909         * modules/c-stack (Depends-on): Add libsigsegv.
22910         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22911         needed.
22912         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22913         (segv_handler, overflow_handler, c_stack_action)
22914         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22915         implementation when libsigsegv is available, but only when using
22916         the library is necessary.
22917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22918         comment, explaining why XSI check fails on Linux.
22919         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22920         * tests/test-c-stack2.sh: Tweak skip message.
22921         * NEWS: Document new link-time requirements.
22922
22923 2008-07-16  Eric Blake  <ebb9@byu.net>
22924
22925         c-stack: Expose false positives when not using libsigsegv.
22926         * modules/c-stack-tests (Files): Expand test.
22927         * tests/test-c-stack.c (main): Add means to conditionally trigger
22928         non-overflow SIGSEGV.
22929         * tests/test-c-stack2.sh: New file.
22930
22931 2008-07-14  Bruno Haible  <bruno@clisp.org>
22932
22933         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22934         Reported by Eric Blake.
22935
22936 2008-07-14  Sam Steingold  <sds@gnu.org>
22937             Bruno Haible  <bruno@clisp.org>
22938
22939         New module libsigsegv.
22940         * modules/libsigsegv: New file.
22941         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22942         modifications.
22943         * MODULES.html.sh (Signal handling): New section.
22944
22945 2008-07-14  Bruno Haible  <bruno@clisp.org>
22946
22947         * modules/unictype/ctype-* (Description): Add the word "function".
22948         Improves the resulting doc in MODULES.html.
22949
22950 2008-07-12  Ben Pfaff  <blp@gnu.org>
22951
22952         Add longlong module.
22953         * modules/longlong: New file.
22954
22955 2008-07-12  Bruno Haible  <bruno@clisp.org>
22956
22957         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22958         to empty.
22959
22960 2008-07-10  Ben Pfaff  <blp@gnu.org>
22961
22962         Add isnan module.
22963         * doc/posix-functions/isnan.texi: Mention new module.
22964         * lib/math.in.h: Define isnan macro if we have decided to replace
22965         it.
22966         * m4/isnan.m4: New file.
22967         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22968         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22969         also.
22970         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22971         redundancy.
22972         * m4/math_h.m4: Initialize and substitute variables for isnan
22973         module.
22974         * modules/isnan: New file.
22975         * modules/isnan-tests: New file.
22976         * modules/math: Add substitutions for new module.
22977         * tests/test-isnan.c: New file.
22978         * MODULES.html.sh: Mention new module.
22979
22980 2008-07-10  Ben Pfaff  <blp@gnu.org>
22981
22982         Add isnanf module.
22983         * lib/isnanf.m4: New file.
22984         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22985         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22986         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22987         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22988         * modules/isnanf: New file.
22989         * modules/isnanf-tests: New file.
22990         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22991         files.
22992         * tests/test-isnanf-nolibm.c: factored most of its contents into
22993         new file tests/test-isnanf.h.
22994         * tests/test-isnanf.h: New file.
22995         * tests/test-isnanf.c: New file.
22996         * MODULES.html.sh: Mention new module.
22997         * doc/glibc-functions/isnanf.texi: Mention new module.
22998
22999 2008-07-10  Ben Pfaff  <blp@gnu.org>
23000
23001         Add isnand module.
23002         * lib/isnand.h: New file.
23003         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23004         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23005         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23006         functionality also.
23007         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23008         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23009         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23010         * modules/isnand: New file.
23011         * modules/isnand-tests: New file.
23012         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23013         files.
23014         * tests/test-isnand-nolibm.c: factored most of its contents into
23015         new file tests/test-isnand.h.
23016         * tests/test-isnand.h: New file.
23017         * tests/test-isnand.c: New file.
23018         * MODULES.html.sh: Mention new module.
23019
23020 2008-07-10  Ben Pfaff  <blp@gnu.org>
23021
23022         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23023         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23024         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23025         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23026         * modules/isnanf-nolibm: Update references to renamed files.
23027         * modules/isnand-nolibm: Likewise.
23028         * modules/isnanf-nolibm-tests: Likewise.
23029         * modules/isnand-nolibm-tests: Likewise.
23030         * lib/frexp.c: Likewise.
23031         * lib/isfinite.c: Likewise.
23032         * lib/signbitd.c: Likewise.
23033         * lib/signbitf.c: Likewise.
23034         * lib/vasnprintf.c: Likewise.
23035         * tests/test-ceilf1.c: Likewise.
23036         * tests/test-ceilf2.c: Likewise.
23037         * tests/test-floorf1.c: Likewise.
23038         * tests/test-floorf2.c: Likewise.
23039         * tests/test-frexp.c: Likewise.
23040         * tests/test-round1.c: Likewise.
23041         * tests/test-round2.c: Likewise.
23042         * tests/test-roundf1.c: Likewise.
23043         * tests/test-strtod.c: Likewise.
23044         * tests/test-trunc1.c: Likewise.
23045         * tests/test-trunc2.c: Likewise.
23046         * tests/test-truncf1.c: Likewise.
23047         * tests/test-truncf2.c: Likewise.
23048         * NEWS: Mention the renamed header files.
23049
23050 2008-07-11  Jim Meyering  <meyering@redhat.com>
23051
23052         vc-list-files: make the last-resort awk code more portable
23053         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23054         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23055         does not support it.
23056
23057 2008-07-10  Eric Blake  <ebb9@byu.net>
23058
23059         Work with tar's bootstrap.
23060         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23061         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23062         an m4 comment.
23063
23064 2008-07-09  Jim Meyering  <meyering@redhat.com>
23065
23066         posix-shell.m4: fix typo that made this test malfunction
23067         * m4/posix-shell.m4: Remove capitalization in variable name.
23068
23069 2008-07-08  Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/onceonly.m4: Update comments.
23072         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23073
23074 2008-07-04  Jim Meyering  <meyering@redhat.com>
23075
23076         * users.txt: Add vc-dwim.
23077         (bison, coreutils): Use the gitweb URL.
23078
23079 2008-07-03  Jim Meyering  <meyering@redhat.com>
23080
23081         * users.txt: Add libffcall.  From Sam Steingold.
23082
23083 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23084
23085         getdate.y: do not ignore TZ with relative day, month or year offset
23086         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23087         relative-date-handling, since otherwise, the latter would clobber the
23088         sole output (an updated Start value) of the tz-handling block.
23089         * tests/test-getdate.c: Tests for the fix
23090
23091 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23092
23093         Recognize 'foo_LIBRARIES += libgnu.a'.
23094         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23095         makefile snippet has already specified an installation location,
23096         also using '+='.
23097
23098 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23099
23100         getdate.y: factor out common actions
23101         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23102         Use them in place of open-coded actions.
23103
23104 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23105
23106         Add self-test for getdate module.
23107         * modules/getdate-tests: New file.
23108         * tests/test-getdate.c: New file.
23109
23110 2008-06-29  Bruno Haible  <bruno@clisp.org>
23111
23112         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23113         .gitignore.
23114         Reported by Sylvain Beucler <beuc@beuc.net>.
23115
23116 2008-06-29  Bruno Haible  <bruno@clisp.org>
23117
23118         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23119         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23120
23121 2008-06-29  Bruno Haible  <bruno@clisp.org>
23122
23123         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23124         EXTRA_DIST.
23125         Reported by Sylvain Beucler <beuc@beuc.net>.
23126
23127 2008-06-26  Jim Meyering  <meyering@redhat.com>
23128
23129         make several modules depend on the "open" module
23130         This provides slightly increased consistency when opening-for-write
23131         the name of a non-directory spelled with a trailing slash.
23132         * modules/chdir-safer: Likewise.
23133         * modules/chown: Likewise.
23134         * modules/clean-temp: Likewise.
23135         * modules/copy-file: Likewise.
23136         * modules/fchdir: Likewise.
23137         * modules/fcntl-safer: Likewise.
23138         * modules/pipe: Likewise.
23139         * modules/utime: Likewise.
23140         Prompted by Eric Blake and Bruno Haible.
23141
23142 2008-06-24  Andreas Schwab  <schwab@suse.de>
23143
23144         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23145         literals can be used as initializers for global variables.
23146
23147 2008-06-23  Eric Blake  <ebb9@byu.net>
23148
23149         Make gnulib-cache.m4 easier to diff.
23150         * gnulib-tool (func_import): Allow newlines when reading cached
23151         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23152
23153 2008-06-23  Bruno Haible  <bruno@clisp.org>
23154
23155         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23156         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23157         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23158         m4/signalblocking.m4.
23159         (gl_PREREQ_SIGACTION): Don't invoke it.
23160         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23161         gl_PREREQ_SIG_HANDLER_H.
23162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23163         Don't check for sigaction here.
23164
23165 2008-06-23  Bruno Haible  <bruno@clisp.org>
23166
23167         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23168         (install_handlers): Don't set the SA_RESETHAND flag.
23169
23170 2008-06-23  Bruno Haible  <bruno@clisp.org>
23171
23172         * m4/sigaction.m4: Comment fixes.
23173         * lib/signal.in.h: Likewise.
23174
23175 2008-06-23  Eric Blake  <ebb9@byu.net>
23176
23177         Fix typo.
23178         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23179
23180         Avoid SA_ namespace.
23181         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23182         Reported by Ralf Wildenhues.
23183
23184         Avoid test failure due to SA_RESTORER.
23185         * tests/test-sigaction.c (SA_MASK): New macro.
23186         (main): Avoid failing due to extension flags being set.
23187         Reported by Jim Meyering.
23188
23189         Revert use of sig-handler.h in sigprocmask.c.
23190         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23191         it requires the existence of struct sigaction.
23192         * lib/sigprocmask.c (handler_t): Restore typedef.
23193         (rpl_signal, old_handlers): Use local type.
23194
23195 2008-06-22  Bruno Haible  <bruno@clisp.org>
23196
23197         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23198         conditionally.
23199         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23200
23201 2008-06-22  Bruno Haible  <bruno@clisp.org>
23202
23203         * doc/posix-functions/siginterrupt.texi: Move note.
23204
23205         * lib/signal.in.h (SA_RESTART): New macro.
23206         * lib/sigaction.c: Update comment.
23207
23208         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23209
23210         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23211         (gl_PREREQ_SIGPROCMASK): Invoke it.
23212         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23213
23214         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23215
23216         * lib/sigprocmask.c: Update a comment.
23217
23218 2008-06-21  Eric Blake  <ebb9@byu.net>
23219
23220         Use sigaction module rather than signal().
23221         * modules/c-stack (Depends-on): Add sigaction.
23222         * modules/fatal-signal (Depends-on): Likewise.
23223         * modules/nanosleep (Depends-on): Likewise.
23224         * modules/sigprocmask (Files): Add sig-handler.h.
23225         * modules/sigaction (Files): Likewise.
23226         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23227         Eggert.
23228         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23229         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23230         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23231         (init_fatal_signals): Likewise.
23232         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23233         (siginterrupt): Delete fallback.
23234         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23235         instead.
23236         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23237         siginterrupt.
23238
23239         New module sigaction, for mingw.
23240         * modules/sigaction: New module...
23241         * modules/sigaction-tests: ...and its test.
23242         * m4/sigaction.m4: New file.
23243         * lib/sigaction.c: Likewise.
23244         * tests/test-sigaction.c: Likewise.
23245         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23246         * modules/signal (Makefile.am): Likewise.
23247         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23248         needed.
23249         * doc/posix-headers/signal.texi (signal.h): Mention provided
23250         types.
23251         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23252         that sigaction is preferable.
23253         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23254         module.
23255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23256         sigaction.
23257
23258         Improve robustness of sigprocmask by overriding signal.
23259         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23260         is in use.
23261         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23262         (SIGKILL, SIGSTOP): Provide fallbacks.
23263         (rpl_signal): Implement.
23264         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23265         signal can be called inside handlers.
23266
23267         Fix nanosleep module on mingw.
23268         * modules/nanosleep (Depends-on): Add sys_select.
23269         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23270
23271         Fix licensing of sigprocmask.
23272         * modules/raise (License): Relicense as LGPL.
23273
23274 2008-06-21  Bruno Haible  <bruno@clisp.org>
23275
23276         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23277         result if it contains question marks.
23278         Reported by Michael Geng <linux@michaelgeng.de>.
23279
23280 2008-06-19  Bruno Haible  <bruno@clisp.org>
23281
23282         Fix CVS-ism.
23283         * doc/gnulib.texi: Include updated-stamp.texi.
23284         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23285         (updated-stamp.texi): New rule.
23286         (gnulib.info): Depend on it.
23287         * doc/.gitignore: Add updated-stamp.texi.
23288         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23289
23290 2008-06-19  Bruno Haible  <bruno@clisp.org>
23291
23292         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23293         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23294
23295 2008-06-19  Eric Blake  <ebb9@byu.net>
23296
23297         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23298         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23299         Reported by Stepan Kasal.
23300
23301 2008-06-18  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23304         Reported by Eric Blake.
23305
23306 2008-06-18  Eric Blake  <ebb9@byu.net>
23307
23308         Work around cygwin 1.5.25 strsignal bug.
23309         * tests/test-strsignal.c: Allow for const char *.
23310         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23311
23312 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23313
23314         * users.txt: Update URL to article and add author/date
23315         information.
23316
23317 2008-06-17  Bruno Haible  <bruno@clisp.org>
23318
23319         New macro gl_DISABLE_THREADS.
23320         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23321         if the user did not pass --enable-threads or --disable-threads option.
23322         (gl_DISABLE_THREADS): New macro.
23323         Reported by Eric Blake <ebb9@byu.net>.
23324
23325 2008-06-17  Bruno Haible  <bruno@clisp.org>
23326
23327         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23328         when the macro ignores it.
23329         Based on a patch by Eric Blake <ebb9@byu.net>.
23330
23331 2008-06-17  Bruno Haible  <bruno@clisp.org>
23332
23333         * modules/tls (License): Change to LGPLv2+.
23334         Reported by Eric Blake.
23335
23336 2008-06-17  Eric Blake  <ebb9@byu.net>
23337
23338         Simplify c-stack prerequisites.
23339         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23341         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23342         check.
23343         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23344         <sys/resource.h>.
23345
23346         Move c-stack test into testsuite.
23347         * modules/c-stack-tests: New file.
23348         * lib/c-stack.c [DEBUG]: Move test program...
23349         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23350         fail test if sigaltstack is lacking.
23351         * tests/test-c-stack.sh: New driver file.
23352
23353 2008-06-16  Eric Blake  <ebb9@byu.net>
23354
23355         Use raise module consistently.
23356         * modules/fatal-signal (Depends-on): Add raise.
23357         * modules/sigprocmask (Depends-on): Likewise.
23358         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23359         * lib/sigprocmask.c (sigprocmask): Likewise.
23360         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23361         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23362
23363         Fix compliance bug in sigpending.
23364         * lib/sigprocmask.c (sigpending): Return pending array via
23365         parameter, not return value.
23366
23367 2008-06-14  Eric Blake  <ebb9@byu.net>
23368
23369         Improve obstack-printf test code.
23370         * tests/test-obstack-printf.c (test_function): Fix comment, and
23371         simplify usage of obstack_* in macros.  Add a test for coverage.
23372         Reported by Bruno Haible.
23373
23374 2008-06-14  Bruno Haible  <bruno@clisp.org>
23375
23376         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23377         array size as a constant, not as a const variable.
23378         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23379         AC_USE_SYSTEM_EXTENSIONS.
23380         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23381         Test whether the obstack_printf function actually exists.
23382         * modules/obstack-printf (Depends-on): Add extensions.
23383         (Include): Remove obstack.h.
23384         * modules/obstack-printf-posix (Depends-on): Add extensions.
23385         (Include): Remove obstack.h.
23386
23387 2008-06-13  Eric Blake  <ebb9@byu.net>
23388
23389         Add obstack-printf and obstack-printf-posix modules.
23390         * modules/obstack-printf: New file.
23391         * modules/obstack-printf-posix: Likewise.
23392         * MODULES.html.sh (Misc): Mention them.
23393         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23394         Likewise.
23395         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23396         Likewise.
23397         * modules/stdio (Makefile.am): Accomodate new modules.
23398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23399         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23400         Declare.
23401         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23402         functions.
23403         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23404         (gl_REPLACE_OBSTACK_PRINTF): New macros
23405         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23406         * tests/test-obstack-printf.c: New file.
23407         * modules/obstack-printf-tests: Likewise.
23408         * modules/obstack-printf-posix-tests: Likewise.
23409
23410 2008-06-11  Bruno Haible  <bruno@clisp.org>
23411
23412         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23413         * lib/open.c: Include errno.h.
23414         (open): Fail when attempting to write to a file that has a trailing
23415         slash.
23416         * tests/test-open.c (main): Test against trailing slash bug.
23417         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23418
23419 2008-06-10  Bruno Haible  <bruno@clisp.org>
23420
23421         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23422         for $? to work inside the trap command, with various /bin/sh-s.
23423         * tests/test-vc-list-files-cvs.sh: Likewise.
23424
23425 2008-06-10  Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/acl-internal.h: Don't include gettext.h here.
23428         * lib/set-mode-acl.c: Include gettext.h here.
23429         * lib/copy-acl.c: Likewise.
23430
23431 2008-06-10  Bruno Haible  <bruno@clisp.org>
23432
23433         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23434         * lib/wait-process.c (wait_subprocess): Likewise.
23435         * lib/execute.h (execute): Add termsigp argument.
23436         * lib/execute.c (execute): Likewise.
23437         * lib/csharpcomp.c (compile_csharp_using_pnet,
23438         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23439         * lib/csharpexec.c (execute_csharp_using_pnet,
23440         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23441         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23442         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23443         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23444         is_jikes_present): Update.
23445         * lib/javaexec.c (execute_java_class): Update.
23446         * lib/javaversion.c (execute_and_read_line): Update.
23447         * NEWS: Document the changes.
23448         Reported by Eric Blake.
23449
23450 2008-06-10  Eric Blake  <ebb9@byu.net>
23451
23452         Add missing include.
23453         * tests/test-strstr.c (includes): Add <signal.h>.
23454         * tests/test-strcasestr.c (includes): Likewise.
23455         * tests/test-memmem.c (includes): Likewise.
23456
23457 2008-06-10  Bruno Haible  <bruno@clisp.org>
23458
23459         * lib/wait-process.c (wait_subprocess): Add an assertion.
23460
23461 2008-06-10  Bruno Haible  <bruno@clisp.org>
23462
23463         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23464
23465 2008-06-10  Bruno Haible  <bruno@clisp.org>
23466
23467         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23468         using alarm().
23469         * tests/test-strcasestr.c (main): Likewise.
23470         * tests/test-strstr.c (main): Likewise.
23471
23472 2008-06-09  Bruno Haible  <bruno@clisp.org>
23473
23474         Work around the Solaris 10 ACE ACLs ABI change.
23475         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23476         declare if ACL_NO_TRIVIAL is present.
23477         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23478         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23479         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23480         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23481         define if ACL_NO_TRIVIAL is present.
23482         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23483         and use the current ABI.
23484         (file_has_acl): Use same #if condition as elsewhere.
23485         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23486         in use, and use the current ABI.
23487         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23488         Reported by Jim Meyering.
23489
23490 2008-06-09  Eric Blake  <ebb9@byu.net>
23491
23492         Work around environments that (stupidly) ignore SIGALRM.
23493         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23494         before using alarm().
23495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23497         Reported by Ian Beckwith <ianb@erislabs.net>.
23498
23499         Produce autobuild blurb earlier in log.
23500         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23501
23502 2008-06-09  Jim Meyering  <meyering@redhat.com>
23503         and OndÅ™ej Vašík  <ovasik@redhat.com>
23504
23505         utimens.c: correct kernel bug work-around
23506         OndÅ™ej Vašík found that the invalid return value of 280 indicates
23507         failure, not success, and the kernel bug we're trying to work
23508         around affects not just the utimensat call, but also the fallback
23509         futimens call.
23510         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23511         not success.
23512         [HAVE_FUTIMENS]: Use the same work-around, here.
23513
23514 2008-06-09  Jim Meyering  <meyering@redhat.com>
23515
23516         add more guards around definition of ACE_-related code
23517         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23518         ALLOW and ACE_OWNER are also defined.
23519
23520 2008-06-08  Bruno Haible  <bruno@clisp.org>
23521
23522         * lib/acl-internal.h: Add me as co-author.
23523         * lib/file-has-acl.c: Likewise.
23524         * lib/set-mode-acl.c: Likewise.
23525         * lib/copy-acl.c: Likewise.
23526
23527 2008-06-08  Bruno Haible  <bruno@clisp.org>
23528
23529         Add support for AIX ACLs.
23530         * lib/acl-internal.h (acl_nontrivial): New declaration.
23531         * lib/file-has-acl.c (acl_nontrivial): New function.
23532         (file_has_acl): Add implementation using AIX 4 ACL API.
23533         * lib/set-mode-acl.c (qset_acl): Likewise.
23534         * lib/copy-acl.c (qcopy_acl): Likewise.
23535
23536 2008-06-08  Bruno Haible  <bruno@clisp.org>
23537
23538         Add support for HP-UX ACLs.
23539         * lib/acl-internal.h (acl_nontrivial): New declaration.
23540         * lib/file-has-acl.c (acl_nontrivial): New function.
23541         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23542         * lib/set-mode-acl.c (qset_acl): Likewise.
23543         * lib/copy-acl.c (qcopy_acl): Likewise.
23544
23545 2008-06-08  Bruno Haible  <bruno@clisp.org>
23546
23547         Add support for Cygwin ACLs.
23548         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23549         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23550         the chmod_or_fchmod call.
23551         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23552
23553 2008-06-08  Bruno Haible  <bruno@clisp.org>
23554
23555         Fix bug with setuid modes in Solaris 10+ code.
23556         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23557         succeeded, when the mode contains some special bits.
23558
23559 2008-06-08  Bruno Haible  <bruno@clisp.org>
23560
23561         Add support for Solaris 7..10 ACLs.
23562         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23563         declarations.
23564         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23565         functions.
23566         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23567         * lib/set-mode-acl.c (qset_acl): Likewise.
23568         * lib/copy-acl.c (qcopy_acl): Likewise.
23569
23570 2008-06-08  Bruno Haible  <bruno@clisp.org>
23571
23572         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23573         declaration.
23574         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23575         (acl_access_nontrivial): Remove MacOS X case.
23576         (file_has_acl): Use acl_extended_nontrivial.
23577         * lib/copy-acl.c (qcopy_acl): Likewise.
23578
23579 2008-06-08  Bruno Haible  <bruno@clisp.org>
23580
23581         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23582
23583 2008-06-08  Jim Meyering  <meyering@redhat.com>
23584
23585         * modules/acl (Maintainer): Add Bruno Haible.
23586
23587 2008-06-07  Bruno Haible  <bruno@clisp.org>
23588
23589         Improve support for Tru64 ACLs.
23590         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23591         ACL on OSF/1.
23592
23593 2008-06-07  Bruno Haible  <bruno@clisp.org>
23594
23595         Add support for MacOS X ACLs.
23596         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23597         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23598         * lib/set-mode-acl.c (qset_acl): Likewise.
23599         * lib/copy-acl.c (qcopy_acl): Likewise.
23600
23601 2008-06-07  Bruno Haible  <bruno@clisp.org>
23602
23603         Fix memory leak introduced on 2008-05-22.
23604         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23605         use.
23606
23607 2008-06-07  Bruno Haible  <bruno@clisp.org>
23608
23609         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23610         to construct an empty ACL.
23611
23612 2008-06-07  Bruno Haible  <bruno@clisp.org>
23613
23614         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23615         precisely.
23616         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23617
23618 2008-06-07  Bruno Haible  <bruno@clisp.org>
23619
23620         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23621         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23622
23623 2008-06-07  Bruno Haible  <bruno@clisp.org>
23624
23625         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23626         regardless of POSIX.
23627         * doc/posix-functions/_longjmp.texi: Likewise.
23628         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23629         SystemV platform in this case.
23630
23631 2008-06-06  Eric Blake  <ebb9@byu.net>
23632
23633         Document abort() bugs.
23634         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23635
23636         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23637         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23638         sigsetjmp.
23639         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23640         siglongjmp, but only as a macro.
23641         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23642         is obsolete.
23643         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23644
23645         Tweak documentation to cover cygwin argz bugs.
23646         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23647         argz bug fix; no code change needed since no cygwin releases
23648         occurred between the last fix and the bug being tested.
23649         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23650         module and recently fixed cygwin bugs.
23651         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23652         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23653         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23654         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23655         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23656         Likewise.
23657         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23658         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23659         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23660         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23661         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23662         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23663         Likewise.
23664
23665         Avoid gcc warning on cygwin.
23666         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23667         !ACL_NO_TRIVIAL]: Avoid unused variable.
23668
23669 2008-06-05  Eric Blake  <ebb9@byu.net>
23670
23671         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23672         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23673         git-version-gen fails to come up with a version.
23674         Reported by Simon Josefsson.
23675
23676 2008-06-05  Jim Meyering  <meyering@redhat.com>
23677             Paul Eggert  <eggert@cs.ucla.edu>
23678
23679         utimens.c: work around a probable Linux kernel bug
23680         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23681         appears to be a kernel bug that causes utimensat to return 280
23682         instead of 0, indicating success.
23683
23684 2008-06-04  Bruno Haible  <bruno@clisp.org>
23685
23686         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23687         2008-06-01 commit.
23688
23689 2008-06-04  Bruno Haible  <bruno@clisp.org>
23690
23691         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23692         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23693         (file_has_acl): Use it. Save errno afterwards.
23694         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23695
23696 2008-06-03  Bruno Haible  <bruno@clisp.org>
23697
23698         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23699         draft code. Simplify #ifs.
23700         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23701         Put Solaris code after POSIX-draft code. Fix comments regarding
23702         Solaris 10, HP-UX. Mention Cygwin.
23703         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23704
23705 2008-06-03  Eric Blake  <ebb9@byu.net>
23706
23707         Provide fallback for older kernels.
23708         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23709         Provide runtime fallback if kernel lacks support.
23710         Reported by Mike Frysinger.
23711
23712 2008-06-02  Bruno Haible  <bruno@clisp.org>
23713
23714         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23715         it exists.
23716
23717 2008-06-02  Bruno Haible  <bruno@clisp.org>
23718
23719         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23720         * lib/copy-acl.c (qcopy_acl): Update comment.
23721
23722 2008-06-02  Bruno Haible  <bruno@clisp.org>
23723
23724         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23725         like ACL APIs.
23726
23727 2008-06-02  Bruno Haible  <bruno@clisp.org>
23728
23729         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23730         * tests/test-set-mode-acl.sh: Likewise.
23731         * tests/test-copy-acl.sh: Likewise.
23732         * tests/test-copy-file.sh: Likewise.
23733
23734 2008-06-02  Bruno Haible  <bruno@clisp.org>
23735
23736         * tests/test-file-has-acl.sh: Remove unused code.
23737
23738 2008-06-01  Bruno Haible  <bruno@clisp.org>
23739
23740         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23741         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23742         messages.
23743         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23744
23745 2008-06-01  Bruno Haible  <bruno@clisp.org>
23746
23747         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23748         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23749         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23750         APIs.
23751         * modules/acl-tests (configure.ac): Remove tests now contained in
23752         m4/acl.m4.
23753
23754 2008-06-02  Jim Meyering  <meyering@redhat.com>
23755
23756         announce-gen: use a better key-server host name
23757         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23758         it may be more consistently reliable.  Suggested by Werner Koch
23759         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23760
23761 2008-06-01  Bruno Haible  <bruno@clisp.org>
23762
23763         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23764         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23765
23766 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23767
23768         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23769
23770 2008-06-01  Bruno Haible  <bruno@clisp.org>
23771
23772         New ACL tests.
23773         * tests/test-file-has-acl.sh: New file.
23774         * tests/test-file-has-acl.c: New file.
23775         * tests/test-set-mode-acl.sh: New file.
23776         * tests/test-set-mode-acl.c: New file.
23777         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23778         * tests/test-copy-acl.c: New file.
23779         * modules/acl-tests: New file, based on modules/copy-file-tests.
23780         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23781         (Depends-on): Add acl-tests.
23782         (configure.ac): Remove checks.
23783         (Makefile.am): Don't create test-sameacls program here any more.
23784
23785 2008-06-01  Bruno Haible  <bruno@clisp.org>
23786
23787         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23788         * tests/test-sameacls.c: Include progname.h.
23789         (main): Invoke set_program_name. Portability fixes for MacOS X,
23790         Solaris, HP-UX.
23791
23792 2008-06-01  Bruno Haible  <bruno@clisp.org>
23793
23794         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23795         function.
23796         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23797
23798 2008-06-01  Bruno Haible  <bruno@clisp.org>
23799
23800         * modules/rpmatch (Depends-on): Add strdup.
23801
23802 2008-06-01  Bruno Haible  <bruno@clisp.org>
23803
23804         * lib/pipe.c: Include unistd-safer.h.
23805         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23806         * modules/pipe (Depends-on): Add unistd-safer.
23807
23808 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23809
23810         * modules/autobuild (configure.ac): Call AB_INIT.
23811
23812 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23813
23814         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23815         Suggested by Bruno Haible <bruno@clisp.org>.
23816
23817 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23818
23819         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23820         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23821         <bruno@clisp.org>.
23822
23823 2008-05-29  Eric Blake  <ebb9@byu.net>
23824
23825         Prefer new POSIX 200x interfaces over futimesat.
23826         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23827         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23828         when available.
23829         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23830
23831 2008-05-28  Bruno Haible  <bruno@clisp.org>
23832
23833         * modules/stpcpy (License): Change to LGPLv2+.
23834         Requested by David Lutterkort <dlutter@redhat.com>.
23835
23836 2008-05-27  Bruno Haible  <bruno@clisp.org>
23837
23838         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23839         current mingw.
23840         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23841
23842 2008-05-27  Bruno Haible  <bruno@clisp.org>
23843
23844         * modules/iconv_open (Link): New section, from module 'iconv'.
23845         * modules/striconv (Link): Likewise.
23846         * modules/striconveh (Link): Likewise.
23847         * modules/xstriconv (Link): Likewise.
23848         * modules/unicodeio (Link): Likewise.
23849         * modules/propername (Link): Likewise.
23850         Reported by Jim Meyering.
23851
23852 2008-05-26  Jim Meyering  <meyering@redhat.com>
23853
23854         sha256: do not artificially restrict buffer length to be < 2^32
23855         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23856         uint32_t to size_t.
23857         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23858         to match.
23859
23860         avoid unaligned access errors, e.g., on sparc
23861         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23862         direct access through a possibly-unaligned uint64* pointer.
23863         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23864         direct access through a possibly-unaligned uint32* pointer.
23865         Prompted by this patch from Tom "spot" Callaway:
23866         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23867
23868         sha512.c: fix typo in comment
23869         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23870
23871 2008-05-25  Bruno Haible  <bruno@clisp.org>
23872
23873         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23874         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23875         (Makefile.am): Update lib_SOURCES.
23876
23877 2008-05-25  Bruno Haible  <bruno@clisp.org>
23878
23879         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23880
23881 2008-05-25  Jim Meyering  <meyering@redhat.com>
23882
23883         useless-if-before-free: freed expr may have white-space differences
23884         * build-aux/useless-if-before-free: Recognize cases in which the
23885         freed expression differs from the tested one in embedded white
23886         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23887         $1 was used, so we can't make any regexp shy.  Improved tests now
23888         detect this.
23889
23890         useless-if-before-free: accept white space in the expression.
23891         * build-aux/useless-if-before-free: For now, any white space
23892         in the expression must be identical in the free argument.
23893
23894         useless-if-before-free: efficiency tweak
23895         * build-aux/useless-if-before-free: Make the expression-matching
23896         regexp "shy".
23897         Make the *outer* regexp shy, not the expr-matching one.
23898
23899         update code-in-comment to accept cast of free arg
23900         * build-aux/useless-if-before-free: Update regexp.
23901
23902 2008-05-25  Bruno Haible  <bruno@clisp.org>
23903
23904         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23905         * modules/copy-file-tests (Files, Makefile.am): Update.
23906         * tests/test-copy-file.c (func_test_copy): Update.
23907
23908 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23909
23910         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23911
23912 2008-05-23  Bruno Haible  <bruno@clisp.org>
23913
23914         Improve support for ACLs on OSF/1.
23915         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23916         Remove fallback for unknown flavors of ACLs.
23917
23918 2008-05-22  Bruno Haible  <bruno@clisp.org>
23919
23920         Add support for ACLs on OSF/1.
23921         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23922         replacements.
23923         (acl_free_text): New macro fallback.
23924         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23925         acl_free.
23926         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23927         acl_free_text function. Require AC_C_INLINE.
23928
23929 2008-05-22  Bruno Haible  <bruno@clisp.org>
23930
23931         Make copy_acl work on MacOS X 10.5.
23932         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23933         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23934         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23935         If MODE_INSIDE_ACL, don't assume that every system has the same text
23936         representation for ACLs as FreeBSD.
23937         * lib/copy-acl.c (copy_acl): Add support for platforms with
23938         !MODE_INSIDE_ACL.
23939         * lib/file-has-acl.c (file_has_acl): Likewise.
23940         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23941         FreeBSD, MacOS X, or IRIX, respectively.
23942
23943 2008-05-22  Bruno Haible  <bruno@clisp.org>
23944
23945         * lib/acl.h: Don't include <sys/acl.h>.
23946         (GETACLCNT): Move fallback to lib/acl-internal.h.
23947         * lib/acl-internal.h: Include <sys/acl.h> here.
23948         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23949
23950 2008-05-22  Bruno Haible  <bruno@clisp.org>
23951
23952         Split off copy_acl function to separate file.
23953         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23954         * lib/acl.c (copy_acl): Moved function to separate file.
23955         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23956         * modules/acl (Files): Add lib/copy-acl.c.
23957         (Makefiles.am): Augment lib_SOURCES.
23958
23959 2008-05-22  Bruno Haible  <bruno@clisp.org>
23960
23961         * modules/copy-file-tests: New file.
23962         * tests/test-copy-file.sh: New file.
23963         * tests/test-copy-file.c: New file.
23964         * tests/test-copy-file-sameacls.c: New file.
23965
23966 2008-05-22  Eric Blake  <ebb9@byu.net>
23967
23968         Avoid gcc warning.
23969         * tests/test-memcmp.c (main): Pass NULL indirectly.
23970
23971 2008-05-21  Bruno Haible  <bruno@clisp.org>
23972
23973         Add reference doc about ACLs.
23974         * doc/acl-resources.txt: New file.
23975         * doc/acl-cygwin.txt: New file.
23976
23977 2008-05-21  Bruno Haible  <bruno@clisp.org>
23978
23979         Avoid one more warning from gcc.
23980         * lib/vasnprintf.c (IF_LINT): Update comments.
23981         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23982
23983 2008-05-21  Jim Meyering  <meyering@redhat.com>
23984
23985         avoid a warning from gcc
23986         * lib/vasnprintf.c (IF_LINT): Define.
23987         (scale10_round_decimal_long_double):
23988         Use it to avoid a "may be used uninitialized" warning.
23989         (scale10_round_decimal_double): Likewise.
23990
23991 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23992
23993         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23994         declared.
23995
23996 2008-05-20  Bruno Haible  <bruno@clisp.org>
23997
23998         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23999         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24000
24001 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24002
24003         * modules/memcmp-tests: New file.
24004         * tests/test-memcmp.c: New file.
24005
24006 2008-05-19  Bruno Haible  <bruno@clisp.org>
24007
24008         * modules/propername (Notice, configure.ac): Put quoted "..." into
24009         --keyword option.
24010         * lib/propername.h: Update comments accordingly.
24011         Reported by Eric Blake.
24012
24013 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24014
24015         * modules/getpass-gnu (Depends-on): Add fseeko.
24016
24017 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24018
24019         * modules/base64-tests: New file.
24020
24021 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24022
24023         * lib/base64.c (base64_decode_ctx): If a decode context structure
24024         was passed in use it to ignore newlines.  If a context structure
24025         was _not_ passed in, continue to treat newlines as garbage (this
24026         is the historical behavior).  Formerly base64_decode.
24027         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24028         takes a decode context structure.
24029         * lib/base64.h (base64_decode): Macro for four-argument calls.
24030         (base64_decode_alloc): Likewise.
24031         * lib/base64.c (base64_decode_ctx): If a decode context structure
24032         was passed in use it to ignore newlines.  If a context structure
24033         was _not_ passed in, continue to treat newlines as garbage (this
24034         is the historical behavior).  Formerly base64_decode.
24035         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24036         takes a decode context structure.
24037         * lib/base64.h (base64_decode): Macro for four-argument calls.
24038         (base64_decode_alloc): Likewise.
24039
24040 2008-05-19  Jim Meyering  <meyering@redhat.com>
24041
24042         avoid a warning from gcc
24043         * lib/trim.c (IF_LINT): Define.
24044         (trim2): Use it to avoid a "may be used uninitialized" warning.
24045
24046         Fix doc typo.
24047         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24048
24049 2008-05-19  Bruno Haible  <bruno@clisp.org>
24050
24051         * doc/glibc-functions/getpass.texi: Document limits of other
24052         implementations.
24053
24054 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24055             Bruno Haible <bruno@clisp.org>
24056
24057         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24058
24059 2008-05-18  Bruno Haible  <bruno@clisp.org>
24060
24061         * modules/propername: New file, from GNU gettext.
24062         * lib/propername.h: New file, from GNU gettext.
24063         * lib/propername.c: New file, from GNU gettext.
24064         * MODULES.html.sh (Internationalization functions): Add propername.
24065
24066 2008-05-16  Jim Meyering  <meyering@redhat.com>
24067             Bruno Haible  <bruno@clisp.org>
24068
24069         Avoid some warnings from "gcc -Wshadow".
24070         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24071
24072 2008-05-15  Eric Blake  <ebb9@byu.net>
24073
24074         Extend previous patch to cygwin 1.7.0.
24075         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24076         fast implementation in cygwin >= 1.7.0.
24077         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24079
24080 2008-05-15  Bruno Haible  <bruno@clisp.org>
24081
24082         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24083         implementation in glibc >= 2.9.
24084         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24086
24087 2008-05-15  Bruno Haible  <bruno@clisp.org>
24088
24089         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24090         (Unicode string functions): Add unilbrk/*.
24091         Reported by Karl Berry.
24092
24093 2008-05-15  Eric Blake  <ebb9@byu.net>
24094
24095         Fix violation of <stdbool.h> replacement in regex.
24096         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24097         * lib/regexec.c (re_search_internal): Likewise.
24098         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24099
24100 2008-05-15  Jim Meyering  <meyering@redhat.com>
24101
24102         avoid distracting test output when git or cvs is not found
24103         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24104         * tests/test-vc-list-files-git.sh: Likewise.
24105
24106 2008-05-15  Eric Blake  <ebb9@byu.net>
24107
24108         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24109         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24110         glibc version.
24111         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24112         * doc/posix-functions/strstr.texi (strstr): Likewise.
24113         * lib/str-two-way.h (MAX): Sychronize with glibc.
24114
24115 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24116
24117         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24118         opr.ctx_type.
24119         (calc_first): Initialize constraint field.
24120         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24121         Fix grammar.
24122         (duplicate_node): Merge constraint field for all node types.
24123         (calc_eclosure_iter): Look at constraint field for all node types.
24124         * lib/regex_internal.c (create_cd_newstate): Don't look at
24125         opr.ctx_type.
24126
24127 2008-05-14  Bruno Haible  <bruno@clisp.org>
24128
24129         Help GCC to do better code generation.
24130         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24131         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24132         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24133         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24134         Declare with attribute 'malloc' if supported.
24135
24136 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24137
24138         use "echo STR|wc -c" rather than unportable "expr length STR"
24139         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24140         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24141
24142 2008-05-14  Jim Meyering  <meyering@redhat.com>
24143
24144         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24145         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24146         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24147         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24148         via Collin Lasse.
24149
24150 2008-05-14  Eric Blake  <ebb9@byu.net>
24151
24152         Avoid quadratic growth in gl_LIBSOURCES.
24153         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24154         Suggested by Bruno Haible.
24155
24156         Test xmemdup0.
24157         * modules/xmemdup0-tests: New file.
24158         * tests/test-xmemdup0.c: Likewise.
24159
24160 2008-05-13  Eric Blake  <ebb9@byu.net>
24161
24162         Split xmemdup0 into its own module.
24163         * modules/xmemdup0: New file.
24164         * lib/xmemdup0.h: Likewise.
24165         * lib/xmemdup0.c: Likewise.
24166         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24167         * lib/xalloc.h (xmemdup0): Remove.
24168         * lib/xmalloc.c (xmemdup0): Likewise.
24169
24170 2008-05-13  Eric Blake  <ebb9@byu.net>
24171             Bruno Haible  <bruno@clisp.org>
24172
24173         Reduce number of forks required during autoconf.
24174         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24175         and gl_LIBSOURCES_DIR.
24176         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24177         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24178         m4_syscmd per file.
24179         <m4_foreach_w>: Move...
24180         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24181
24182 2008-05-13  Eric Blake  <ebb9@byu.net>
24183
24184         * gnulib-tool: Fix various comment typos.
24185
24186 2008-05-12  Bruno Haible  <bruno@clisp.org>
24187
24188         Tailor the linebreaking algorithm.
24189         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24190
24191 2008-05-12  Bruno Haible  <bruno@clisp.org>
24192
24193         Update to Unicode 5.0.0.
24194         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24195         LBP_JV, LBP_JT. Redistribute values.
24196         (unilbrk_table): Change size.
24197         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24198         Unicode TR#14 rev. 22.
24199         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24200         LBP_JV, LBP_JT. Redistribute values.
24201         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24202         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24203         Update.
24204         * lib/unilbrk/lbrkprop1.h: Regenerated.
24205         * lib/unilbrk/lbrkprop2.h: Regenerated.
24206         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24207         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24208         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24209         Likewise.
24210         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24211         Likewise.
24212         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24213         result.
24214         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24215         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24216         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24217         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24218         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24219         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24220
24221 2008-05-11  Bruno Haible  <bruno@clisp.org>
24222
24223         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24224
24225 2008-05-11  Bruno Haible  <bruno@clisp.org>
24226
24227         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24228         * modules/unilbrk/gen-lbrk: New file.
24229
24230 2008-05-11  Bruno Haible  <bruno@clisp.org>
24231
24232         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24233         * m4/sha512.m4 (gl_SHA512): Likewise.
24234
24235 2008-05-11  Jim Meyering  <meyering@redhat.com>
24236
24237         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24238         * modules/crypto/sha256: New file.
24239         * modules/crypto/sha512: Likewise.
24240         * lib/sha256.c: Likewise.
24241         * lib/sha256.h: Likewise.
24242         * lib/sha512.c: Likewise.
24243         * lib/sha512.h: Likewise.
24244         * lib/u64.h: Likewise.
24245         * m4/sha256.m4: Likewise.
24246         * m4/sha512.m4: Likewise.
24247         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24248
24249 2008-05-10  Bruno Haible  <bruno@clisp.org>
24250
24251         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24252         (Input/Output <stdio.h>): Add xprintf.
24253         (Signal handling <signal.h>): Add strsignal.
24254         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24255         (Core language properties): Add func.
24256         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24257         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24258         strings.
24259         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24260         (Input/output): New section.
24261         (File system functions): Add openat-die, stat-macros.
24262         (Networking functions): Add sockets.
24263         (Unicode string functions): Add unictype/*.
24264         (Support for building libraries and executables): Add gperf.
24265         (Support for building documentation): Add agpl-3.0.
24266         (Misc): Add nocrash.
24267
24268 2008-05-10  Bruno Haible  <bruno@clisp.org>
24269
24270         * modules/unictype/gen-ctype: New file.
24271
24272 2008-05-10  Jim Meyering  <meyering@redhat.com>
24273
24274         Make chdir-safer.c more efficient on a system with no symlinks.
24275         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24276         also if ELOOP is zero.  Suggested by Bruno Haible.
24277
24278         Make chdir-safer.c slightly safer.
24279         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24280         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24281
24282         Avoid compile failure on systems without ELOOP (like mingw).
24283         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24284         Reported by Bruno Haible.
24285
24286 2008-05-10  Bruno Haible  <bruno@clisp.org>
24287
24288         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24289         (is_utf8_encoding): Use a case-insensitive comparison.
24290         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24291         streq.
24292
24293 2008-05-10  Bruno Haible  <bruno@clisp.org>
24294
24295         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24296         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24297         * lib/unilbrk/ulc-common.h (iconv_string_length,
24298         iconv_string_keeping_offsets): Remove declarations.
24299         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24300         Don't include <iconv.h>, streq.h, xsize.h.
24301         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24302         conversion.
24303         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24304         <iconv.h>, streq.h, xsize.h.
24305         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24306         conversion.
24307         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24308         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24309         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24310         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24311
24312 2008-05-10  Bruno Haible  <bruno@clisp.org>
24313
24314         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24315         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24316
24317         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24318         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24319
24320         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24321         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24322
24323         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24324         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24325
24326         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24327         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24328
24329         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24330         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24331
24332         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24333         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24334
24335         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24336         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24337
24338 2008-05-10  Bruno Haible  <bruno@clisp.org>
24339
24340         Split up 'linebreak' module.
24341         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24342         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24343         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24344         modifications.
24345         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24346         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24347         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24348         lib/linebreak.c.
24349         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24350         lib/linebreak.c.
24351         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24352         lib/linebreak.c.
24353         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24354         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24355         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24356         lib/linebreak.c.
24357         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24358         lib/linebreak.c.
24359         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24360         lib/linebreak.c.
24361         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24362         lib/linebreak.c.
24363         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24364         lib/linebreak.c.
24365         * modules/unilbrk/base: New file.
24366         * modules/unilbrk/tables: New file.
24367         * modules/unilbrk/u8-possible-linebreaks: New file.
24368         * modules/unilbrk/u16-possible-linebreaks: New file.
24369         * modules/unilbrk/u32-possible-linebreaks: New file.
24370         * modules/unilbrk/ulc-common: New file.
24371         * modules/unilbrk/ulc-possible-linebreaks: New file.
24372         * modules/unilbrk/u8-width-linebreaks: New file.
24373         * modules/unilbrk/u16-width-linebreaks: New file.
24374         * modules/unilbrk/u32-width-linebreaks: New file.
24375         * modules/unilbrk/ulc-width-linebreaks: New file.
24376         * lib/linebreak.h: Remove file.
24377         * lib/linebreak.c: Remove file.
24378         * m4/linebreak.m4: Remove file.
24379         * modules/linebreak: Remove file.
24380         * NEWS: Mention the changes.
24381
24382 2008-05-09  Eric Blake  <ebb9@byu.net>
24383
24384         Add xmemdup0.
24385         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24386         implementation.
24387         * lib/xmalloc.c (xmemdup0): New C implementation.
24388
24389 2008-05-08  Bruno Haible  <bruno@clisp.org>
24390
24391         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24392
24393 2008-05-07  Eric Blake  <ebb9@byu.net>
24394
24395         Support cross-compilation of <wctype.h>.
24396         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24397         AC_CACHE_CHECK.
24398
24399 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24400
24401         * build-aux/vc-list-files: Add support for bzr.
24402
24403 2008-05-03  Jim Meyering  <meyering@redhat.com>
24404
24405         avoid failed assertion with tight malloc
24406         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24407
24408 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24409
24410         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24411         are needed from arpa/inet.h.
24412         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24413         Reported by Bruno Haible.
24414
24415 2008-05-02  Jim Meyering  <meyering@redhat.com>
24416
24417         avoid compilation error on FreeBSD 6
24418         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24419
24420 2008-05-01  Jim Meyering  <meyering@redhat.com>
24421
24422         useless-if-before-free: correct --help's exit status description
24423         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24424         for one or more matches, etc.  Reported by Bruno Haible.
24425
24426         vc-list-files: make the stand-alone gnulib test work
24427         * modules/vc-list-files-tests (configure.ac):
24428         Define and AC_SUBST abs_aux_dir.
24429         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24430         $(abs_top_srcdir) to each script and having each of them
24431         duplicate the work of setting PATH, set PATH here, using
24432         the new variable, abs_aux_dir instead.
24433         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24434         * tests/test-vc-list-files-git.sh: Likewise.
24435         Reported by Bruno Haible.
24436
24437 2008-05-01  Bruno Haible  <bruno@clisp.org>
24438
24439         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24440         reallocation. Rename 'done' to 'found_delimiter'.
24441
24442 2008-05-01  Jim Meyering  <meyering@redhat.com>
24443
24444         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24445         * build-aux/vc-list-files: Use `...`, not $(...).
24446
24447 2008-04-30  Jim Meyering  <meyering@redhat.com>
24448
24449         add tests for vc-list-files
24450         * modules/vc-list-files-tests: New module.
24451         * tests/test-vc-list-files-cvs.sh: New file.
24452         * tests/test-vc-list-files-git.sh: New file.
24453
24454         avoid a warning from gcc
24455         * lib/getndelim2.c (IF_LINT): Define.
24456         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24457
24458         vc-list-files: work properly with build-aux/cvsu, too
24459         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24460         to all cvs-based clauses.
24461
24462         vc-list-files: work properly in the CVS+awk case, too
24463         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24464
24465         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24466         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24467         take more than one file argument, so .  Add quotes, just in case $dir
24468         ever contains a shell meta-character.  Prompted by Soren Hansen in
24469         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24470
24471 2008-04-29  Eric Blake  <ebb9@byu.net>
24472
24473         Optimize getndelim2 to use block operations when possible.
24474         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24475         freadseek, and memchr2.
24476         * lib/getndelim2.c (getndelim2): Use them for block reads.
24477
24478 2008-04-29  Bruno Haible  <bruno@clisp.org>
24479
24480         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24481         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24482         * modules/inet_ntop (Depends-on): Add extensions.
24483         * modules/inet_pton (Depends-on): Likewise.
24484         Reported by Simon Josefsson.
24485
24486 2008-04-29  Jim Meyering  <meyering@redhat.com>
24487
24488         When the is more than one match in a block, match all of them.
24489         * build-aux/useless-if-before-free: Iterate through each block
24490         until there are no more matches.
24491
24492         Fix broken useless-if-before-free script.
24493         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24494         the expression to match cast of argument to free-like function.
24495
24496 2008-04-29  Eric Blake  <ebb9@byu.net>
24497
24498         Use new header.
24499         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24500
24501 2008-04-29  Jim Meyering  <meyering@redhat.com>
24502
24503         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24504         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24505         by gnulib to exist and to declare e.g., inet_ntop.
24506         Don't include "inet_ntop.h", now removed.
24507
24508         * m4/arpa_inet_h.m4: Remove trailing blanks.
24509
24510 2008-04-29  Eric Blake  <ebb9@byu.net>
24511
24512         Silence valgrind on safe reads beyond potential array bounds.
24513         * lib/rawmemchr.valgrind: New file.
24514         * lib/strchrnul.valgrind: Likewise.
24515         * modules/rawmemchr (Files): Distribute new file.
24516         * modules/strchrnul (Files): Likewise.
24517         Suggested by Bruno Haible.
24518
24519 2008-04-29  Bruno Haible  <bruno@clisp.org>
24520
24521         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24522         (inet_ntop, inet_pton): Change portability warning's wording.
24523         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24524         Invoke gl_CHECK_NEXT_HEADERS.
24525         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24526         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24527         set ARPA_INET_H.
24528         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24529         * modules/arpa_inet (Description): No longer only for systems that
24530         lack it.
24531         (Depends-on): Add include_next.
24532         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24533         HAVE_ARPA_INET_H.
24534
24535 2008-04-29  Jim Meyering  <meyering@redhat.com>
24536
24537         * modules/mkdir (License): Re-license as LGPLv2+.
24538
24539 2008-04-29  Bruno Haible  <bruno@clisp.org>
24540
24541         * modules/rawmemchr (Maintainer): Set to Eric.
24542         * modules/strchrnul (Maintainer): Likewise.
24543
24544 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24545
24546         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24547         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24548
24549         * modules/arpa_inet (arpa/inet.h): Use them.
24550
24551 2008-04-28  Eric Blake  <ebb9@byu.net>
24552
24553         Test getndelim2.
24554         * modules/getndelim2-tests: New file.
24555         * tests/test-getndelim2.c: Likewise.
24556         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24557         stream.
24558         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24559
24560         * MODULES.html.sh: Document new module.
24561
24562 2008-04-20  Bruno Haible  <bruno@clisp.org>
24563
24564         * lib/c-stack.c (die): Use raise.
24565         * modules/c-stack (Depends-on): Add raise.
24566
24567 2008-04-28  Bruno Haible  <bruno@clisp.org>
24568
24569         Expect rpmatch to be declared.
24570         * lib/yesno.c (rpmatch): Remove declaration.
24571
24572         Declare rpmatch.
24573         * lib/stdlib.in.h (rpmatch): New declaration.
24574         * lib/rpmatch.c: Include <stdlib.h> first.
24575         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24576         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24578         HAVE_RPMATCH.
24579         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24580         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24581         (Include): Set to <stdlib.h>.
24582         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24583         HAVE_RPMATCH.
24584         * NEWS: Document the change.
24585
24586 2008-04-28  Bruno Haible  <bruno@clisp.org>
24587
24588         Change rpmatch to use nl_langinfo when appropriate.
24589         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24590         (N_): New macro.
24591         (localized_pattern): New function/macro.
24592         (try): Remove match, nomatch arguments. Copy the pattern into safe
24593         memory before caching it.
24594         (rpmatch): Use localized_pattern. Add translator comments.
24595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24596         Suggested by Eric Blake.
24597         * modules/rpmatch (Depends-on): Add stdbool.
24598
24599 2008-04-28  Eric Blake  <ebb9@byu.net>
24600
24601         Add rawmemchr module, matching glibc.
24602         * modules/string (Makefile.am): New indicator.
24603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24604         * lib/string.in.h (rawmemchr): Declare when appropriate.
24605         * modules/rawmemchr: New file.
24606         * m4/rawmemchr.m4: Likewise.
24607         * lib/rawmemchr.c: Likewise.
24608         * modules/rawmemchr-tests: Likewise.
24609         * tests/test-rawmemchr.c: Likewise.
24610         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24611         module.
24612         * modules/strchrnul (Depends-on): Add rawmemchr.
24613         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24614
24615         Whitespace cleanup.
24616         * tests/test-strchrnul.c: Reindent.
24617         * lib/strchrnul.c: Likewise.
24618
24619         Optimize and test strchrnul.
24620         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24621         * modules/strchrnul-tests: New file.
24622         * tests/test-strchrnul.c: Likewise.
24623
24624         Remove intprops dependency.
24625         * modules/memchr (Depends-on): Remove intprops.
24626         * modules/memrchr (Depends-on): Likewise.
24627         * modules/memchr2 (Depends-on): Likewise.
24628         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24629         * lib/memrchr.c (__memrchr): Likewise.
24630         * lib/memrchr2.c (memchr2): Likewise.
24631         Reported by Simon Josefsson.
24632
24633 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24634
24635         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24636         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24637
24638 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24639
24640         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24641
24642         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24643
24644         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24645
24646         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24647         declarations.
24648         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24649
24650         * m4/inet_pton.m4: Don't check for header files.
24651
24652         * m4/inet_ntop.m4: Don't check for header files.
24653
24654 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24655
24656         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24657         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24658         trigger for cygwin).
24659         Reported by Bruno Haible  <bruno@clisp.org>.
24660
24661 2008-04-28  Bruno Haible  <bruno@clisp.org>
24662
24663         * doc/posix-functions/strdup.texi: Mention mingw problem.
24664
24665 2008-04-27  Bruno Haible  <bruno@clisp.org>
24666
24667         * modules/stat-time-tests (Depends-on): Add sleep.
24668         * tests/test-stat-time.c (force_unlink): New function.
24669         (cleanup): Use it.
24670         (test_mtime): Remove the ctime related tests.
24671         (test_ctime): New function, containing the ctime related tests.
24672         (main): Call test_ctime, except on native Windows platforms.
24673
24674 2008-04-27  Bruno Haible  <bruno@clisp.org>
24675
24676         * lib/rpmatch.c (rpmatch): Add some comments.
24677         Reported by James Youngman <jay@gnu.org>.
24678
24679 2008-04-27  Bruno Haible  <bruno@clisp.org>
24680
24681         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24682         quiet NaNs.
24683
24684 2008-04-27  Bruno Haible  <bruno@clisp.org>
24685
24686         Make test-yesno.sh work on mingw.
24687         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24688         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24689         (main): Set stdin to binary mode.
24690         * modules/yesno-tests (Depends-on): Add binary-io.
24691
24692 2008-04-27  Bruno Haible  <bruno@clisp.org>
24693
24694         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24695         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24696         argument that lie outside the IEEE 854 domain.
24697         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24698         (gl_ISFINITE): Use it.
24699         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24700
24701 2008-04-27  Bruno Haible  <bruno@clisp.org>
24702
24703         Allow local renaming in config.h.
24704         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24705
24706 2008-04-27  Bruno Haible  <bruno@clisp.org>
24707
24708         * lib/memchr.c (__memchr): Change type of 'i'.
24709         * lib/memchr2.c (memchr2): Likewise.
24710
24711 2008-04-26  Eric Blake  <ebb9@byu.net>
24712         and Bruno Haible  <bruno@clisp.org>
24713
24714         Optimize and test memrchr.
24715         * modules/memrchr (Depends-on): Add intprops.
24716         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24717         * modules/memrchr-tests: New file.
24718         * tests/test-memrchr.c: New file.
24719
24720 2008-04-26  Bruno Haible  <bruno@clisp.org>
24721
24722         Add tentative support for DragonFly BSD.
24723         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24724         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24725         fp.
24726         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24727         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24728         * lib/fpurge.c (fpurge): Likewise.
24729         * lib/freadable.c (freaadable): Likewise.
24730         * lib/freadahead.c (freadahead): Likewise.
24731         * lib/freading.c (freading): Likewise.
24732         * lib/freadptr.c (freadptr): Likewise.
24733         * lib/freadseek.c (freadptrinc): Likewise.
24734         * lib/fseeko.c (fseeko): Likewise.
24735         * lib/fseterr.c (fseterr): Likewise.
24736         * lib/fwritable.c (fwritable): Likewise.
24737         * lib/fwriting.c (fwriting): Likewise.
24738
24739 2008-04-26  Bruno Haible  <bruno@clisp.org>
24740
24741         * lib/stdio-impl.h: New file.
24742         * lib/fbufmode.c: Include stdio-impl.h.
24743         (fbufmode): Use fp_, remove redundant #defines.
24744         * lib/fflush.c: Include stdio-impl.h.
24745         (clear_ungetc_buffer): Remove redundant #defines.
24746         * lib/fpurge.c: Include stdio-impl.h.
24747         (fpurge): Remove redundant #defines.
24748         * lib/freadable.c: Include stdio-impl.h.
24749         (freadable): Remove redundant #defines.
24750         * lib/freadahead.c: Include stdio-impl.h.
24751         (freadahead): Remove redundant #defines.
24752         * lib/freading.c: Include stdio-impl.h.
24753         (freading): Remove redundant #defines.
24754         * lib/freadptr.c: Include stdio-impl.h.
24755         (freadptr): Remove redundant #defines.
24756         * lib/freadseek.c: Include stdio-impl.h.
24757         (freadptrinc): Remove redundant #defines.
24758         * lib/fseeko.c: Include stdio-impl.h.
24759         (rpl_fseeko): Remove redundant #defines.
24760         * lib/fseterr.c: Include stdio-impl.h.
24761         (fseterr): Remove redundant #defines.
24762         * lib/fwritable.c: Include stdio-impl.h.
24763         (fwritable: Remove redundant #defines.
24764         * lib/fwriting.c: Include stdio-impl.h.
24765         (fwriting): Remove redundant #defines.
24766         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24767         * modules/fflush (Files): Likewise.
24768         * modules/fpurge (Files): Likewise.
24769         * modules/freadable (Files): Likewise.
24770         * modules/freadahead (Files): Likewise.
24771         * modules/freading (Files): Likewise.
24772         * modules/freadptr (Files): Likewise.
24773         * modules/freadseek (Files): Likewise.
24774         * modules/fseeko (Files): Likewise.
24775         * modules/fseterr (Files): Likewise.
24776         * modules/fwritable (Files): Likewise.
24777         * modules/fwriting (Files): Likewise.
24778
24779 2008-04-26  Bruno Haible  <bruno@clisp.org>
24780
24781         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24782         restore_seek_optimization, update_fpos_cache): New functions, extracted
24783         from rpl_fflush.
24784         (rpl_fflush): Use them.
24785         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24786         (gl_REPLACE_FFLUSH): Use it.
24787
24788 2008-04-26  Bruno Haible  <bruno@clisp.org>
24789
24790         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24791         on Solaris.
24792         * tests/test-xstrtoimax.sh: Likewise.
24793         * tests/test-xstrtoumax.sh: Likewise.
24794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24795
24796 2008-04-26  Bruno Haible  <bruno@clisp.org>
24797
24798         * modules/memchr-tests: New file.
24799         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24800
24801 2008-04-26  Eric Blake  <ebb9@byu.net>
24802             Bruno Haible  <bruno@clisp.org>
24803
24804         * lib/memchr.c: Include intprops.h.
24805         (__memchr): Optimize parallel detection of matching bytes. Rename local
24806         variables. Add explanatory comments.
24807
24808 2008-04-26  Bruno Haible  <bruno@clisp.org>
24809
24810         Fix module 'memchr', broken since 2000-10-28.
24811         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24812
24813 2008-04-26  Bruno Haible  <bruno@clisp.org>
24814
24815         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24816         comments.
24817
24818 2008-04-25  Eric Blake  <ebb9@byu.net>
24819
24820         Use native fstatat on cygwin 1.7.0.
24821         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24822         first.
24823
24824 2008-04-23  Eric Blake  <ebb9@byu.net>
24825
24826         Improve memchr2 performance.
24827         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24828         NUL bytes.
24829         * modules/memchr2 (Depends-on): Use intprops.h.
24830
24831 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24832
24833         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24834         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24835         <blp@cs.stanford.edu>.
24836
24837 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24838
24839         * lib/arpa_inet.in.h: New file.
24840
24841         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24842         (Makefile.am): Sed in substitute header file.
24843
24844         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24845         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24846
24847         * modules/inet_ntop (configure.ac): Use
24848         gl_ARPA_INET_MODULE_INDICATOR.
24849
24850         * modules/inet_pton (configure.ac): Use
24851         gl_ARPA_INET_MODULE_INDICATOR.
24852
24853 2008-04-22  Jim Meyering  <meyering@redhat.com>
24854
24855         * modules/verify (License): Re-license as LGPLv2+.
24856
24857 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24858
24859         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24860         parameter to void* as per POSIX standard (MinGW uses char*).
24861
24862 2008-04-21  Bruno Haible  <bruno@clisp.org>
24863
24864         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24865         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24866         Define to replacements if REPLACE_ISWCNTRL is 1.
24867         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24868         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24869         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24870         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24871         what it fixes.
24872         * doc/posix-functions/iswalpha.texi: Likewise.
24873         * doc/posix-functions/iswblank.texi: Likewise.
24874         * doc/posix-functions/iswcntrl.texi: Likewise.
24875         * doc/posix-functions/iswdigit.texi: Likewise.
24876         * doc/posix-functions/iswgraph.texi: Likewise.
24877         * doc/posix-functions/iswlower.texi: Likewise.
24878         * doc/posix-functions/iswprint.texi: Likewise.
24879         * doc/posix-functions/iswpunct.texi: Likewise.
24880         * doc/posix-functions/iswspace.texi: Likewise.
24881         * doc/posix-functions/iswupper.texi: Likewise.
24882         * doc/posix-functions/iswxdigit.texi: Likewise.
24883         Reported by Alain Guibert.
24884
24885 2008-04-21  Bruno Haible  <bruno@clisp.org>
24886
24887         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24888         Patch by Alain Guibert.
24889
24890 2008-04-21  Bruno Haible  <bruno@clisp.org>
24891
24892         Fix test failures on mingw.
24893         * tests/test-xstrtol.c (print_no_progname): New function.
24894         (main): Install it in error_print_progname hook.
24895         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24896         * tests/test-xstrtoimax.sh: Likewise.
24897         * tests/test-xstrtoumax.sh: Likewise.
24898
24899 2008-04-21  Bruno Haible  <bruno@clisp.org>
24900
24901         Fix test failure on mingw.
24902         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24903
24904 2008-04-21  Bruno Haible  <bruno@clisp.org>
24905
24906         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24907         Actually assign a value.
24908
24909 2008-04-20  Bruno Haible  <bruno@clisp.org>
24910
24911         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24912         take 2.
24913         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24914         'canonicalize-lgpl' module is also used.
24915         * lib/canonicalize-lgpl.c: Undo last change.
24916         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24917
24918 2008-04-20  Bruno Haible  <bruno@clisp.org>
24919
24920         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24921         config.h. Provide _mkdir based fallback for mingw.
24922         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24923         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24925         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24926         rather than defining mkdir in config.h.
24927         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24928         (gl_SYS_STAT_H_DEFAULTS): New macro.
24929         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24930         HAVE_IO_H any more.
24931         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24932         HAVE_DECL_MKDIR and HAVE_IO_H.
24933
24934 2008-04-20  Bruno Haible  <bruno@clisp.org>
24935
24936         * lib/isapipe.c: Port to native Windows platforms.
24937
24938 2008-04-20  Bruno Haible  <bruno@clisp.org>
24939
24940         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24941
24942 2008-04-21  Eric Blake  <ebb9@byu.net>
24943
24944         Work around preprocessors that don't handle UINTMAX_MAX.
24945         * lib/memchr2.c (memchr2): Avoid embedded #if.
24946         Reported by Alain Guibert, fix suggested by Bruno Haible.
24947
24948 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24949
24950         * doc/posix-functions/strftime.texi (strftime): Explain better
24951         Windows incompatibility.  Suggested by Micah Cowan
24952         <micah@cowan.name>.
24953
24954 2008-04-20  Bruno Haible  <bruno@clisp.org>
24955
24956         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24957         unistr/u8-mblen.
24958
24959 2008-04-20  Bruno Haible  <bruno@clisp.org>
24960
24961         Fix test failure on platforms with non-GNU iconv.
24962         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24963         (U_TO_U8): Use it, rather than u16_to_u8.
24964         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24965         units at the end of the input string.
24966         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24967
24968 2008-04-20  Bruno Haible  <bruno@clisp.org>
24969
24970         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24971         when the resulting length is 0.
24972         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24973
24974 2008-04-20  Bruno Haible  <bruno@clisp.org>
24975
24976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24977         works.
24978         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24979
24980 2008-04-20  Bruno Haible  <bruno@clisp.org>
24981
24982         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24983         * modules/tsearch-tests (configure.ac): Test for initstate function.
24984
24985 2008-04-20  Bruno Haible  <bruno@clisp.org>
24986
24987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24988         for nlink_t if missing.
24989         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24990
24991 2008-04-19  Bruno Haible  <bruno@clisp.org>
24992
24993         Work around snprintf bug on Linux libc5.
24994         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24996         gl_SNPRINTF_SIZE1.
24997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24998         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24999         that test failed.
25000         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25001         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25002         * modules/snprintf (Files): Add m4/printf.m4.
25003         * modules/vsnprintf (Files): Likewise.
25004         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25005         * doc/posix-functions/vsnprintf.texi: Likewise.
25006
25007 2008-04-19  Bruno Haible  <bruno@clisp.org>
25008
25009         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25010         from 0.0058 to less than 10^-7.
25011
25012 2008-04-19  Bruno Haible  <bruno@clisp.org>
25013
25014         Fix rounding when a precision is given.
25015         * lib/vasnprintf.c (is_borderline): New function.
25016         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25017         9...9x.
25018         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25019         %e, %g.
25020         * tests/test-vasprintf-posix.c (test_function): Likewise.
25021         * tests/test-snprintf-posix.h (test_function): Likewise.
25022         * tests/test-sprintf-posix.h (test_function): Likewise.
25023         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25024         * tests/test-printf-posix.h (test_function): Likewise.
25025         * tests/test-printf-posix.output: Update.
25026         Reported by John Darrington <john@darrington.wattle.id.au> via
25027         Ben Pfaff <blp@cs.stanford.edu>.
25028
25029 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25030
25031         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25032         Suggested by Bruno Haible <bruno@clisp.org>.
25033
25034 2008-04-17  Bruno Haible  <bruno@clisp.org>
25035
25036         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25037         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25038         implementation.
25039         Patch by Bruce Merry <bmerry@gmail.com>.
25040
25041 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25042
25043         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25044         doesn't work under Windows.
25045
25046 2008-04-16  Bruno Haible  <bruno@clisp.org>
25047
25048         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25049         New macros.
25050         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25051         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25052         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25053         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25054         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25055         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25056         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25057         macros.
25058         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25059         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25060         Northern Sotho, Uighur.
25061
25062 2008-04-16  Bruno Haible  <bruno@clisp.org>
25063
25064         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25065         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25066         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25067         Reported by Daniel Bergström <daniel@octocode.com>.
25068
25069 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25070             Bruno Haible  <bruno@clisp.org>
25071
25072         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25073         function.
25074         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25075         New functions, mostly extracted from gl_locale_name_default.
25076         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25077
25078 2008-04-16  Eric Blake  <ebb9@byu.net>
25079
25080         Adjust strtod detection to catch glibc 2.7 bug.
25081         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25082         Reported by John Gatewood Ham.
25083
25084 2008-04-16  Bruno Haible  <bruno@clisp.org>
25085
25086         Add tentative support for Linux libc5.
25087         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25088         * lib/fpurge.c (fpurge): Likewise.
25089         * lib/freadable.c (freadable): Likewise.
25090         * lib/freadahead.c (freadahead): Likewise.
25091         * lib/freading.c (freading): Likewise.
25092         * lib/freadptr.c (freadptr): Likewise.
25093         * lib/freadseek.c (freadptrinc): Likewise.
25094         * lib/fseeko.c (rpl_fseeko): Likewise.
25095         * lib/fseterr.c (fseterr): Likewise.
25096         * lib/fwritable.c (fwritable): Likewise.
25097         * lib/fwriting.c (fwriting): Likewise.
25098         Reported by Alain Guibert <alguibert+bts@free.fr>.
25099
25100 2008-04-15  Bruno Haible  <bruno@clisp.org>
25101
25102         * modules/mathl (configure.ac): Define module indicator.
25103
25104 2008-04-15  Bruno Haible  <bruno@clisp.org>
25105
25106         * lib/logl.c (logl): Remove unused variables.
25107
25108 2008-04-15  Bruno Haible  <bruno@clisp.org>
25109
25110         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25111         fails.
25112
25113 2008-04-15  Bruno Haible  <bruno@clisp.org>
25114
25115         * lib/trim.c (trim2): Fix argument of isspace() macro.
25116
25117 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25118
25119         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25120         to 0.
25121         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25122
25123 2008-04-14  Bruno Haible  <bruno@clisp.org>
25124
25125         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25126         AC_LANG_PROGRAM argument.
25127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25128         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25130         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25131         * m4/math_h.m4 (gl_MATH_H): Likewise.
25132         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25134         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25135         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25136         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25137         * m4/regex.m4 (gl_REGEX): Likewise.
25138         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25139         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25141         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25143         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25144         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25145         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25146
25147 2008-04-14  Jim Meyering  <meyering@redhat.com>
25148
25149         test-strtod: fix typos: s/abs/fabs/
25150         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25151
25152 2008-04-13  Bruno Haible  <bruno@clisp.org>
25153
25154         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25155         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25156         module is also used and while not building the reloc-wrapper.
25157
25158 2008-04-13  Bruno Haible  <bruno@clisp.org>
25159
25160         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25161
25162 2008-04-13  Bruno Haible  <bruno@clisp.org>
25163
25164         Fix AIX compilation failure introduced on 2008-04-02.
25165         * tests/test-frexp.c (exp): Undefine before redefining.
25166         * tests/test-frexpl.c (exp): Likewise.
25167
25168 2008-04-13  Bruno Haible  <bruno@clisp.org>
25169
25170         Work around a HP-UX stdio bug.
25171         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25172         * tests/test-ftello.c (main): Likewise.
25173         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25174         * doc/posix-functions/ftello.texi: Likewise.
25175
25176 2008-04-13  Bruno Haible  <bruno@clisp.org>
25177
25178         Make test-signbit pass on HP-UX/hppa.
25179         * tests/test-signbit.c (minus_zerol): New variable.
25180         (test_signbitl): Use it.
25181
25182 2008-04-13  Bruno Haible  <bruno@clisp.org>
25183
25184         Make truncl work on OSF/1 4.0.
25185         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25186         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25187         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25189         HAVE_DECL_TRUNCL.
25190         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25191         HAVE_DECL_TRUNCL.
25192         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25193
25194 2008-04-13  Bruno Haible  <bruno@clisp.org>
25195
25196         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25197
25198 2008-04-13  Bruno Haible  <bruno@clisp.org>
25199
25200         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25201         expression, so as to avoid HP-UX 11 cc compiler bug.
25202
25203 2008-04-13  Bruno Haible  <bruno@clisp.org>
25204
25205         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25206
25207 2008-04-13  Bruno Haible  <bruno@clisp.org>
25208
25209         * lib/git-merge-changelog.c: Remove empty declaration outside of
25210         functions.
25211
25212 2008-04-13  Bruno Haible  <bruno@clisp.org>
25213
25214         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25215
25216 2008-04-13  Bruno Haible  <bruno@clisp.org>
25217
25218         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25219         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25221         also if it exists but lacks definitions of the SHUT_* macros.
25222         * modules/sys_socket (Description): Update.
25223         Reported by Elbert Pol <e.pol@chello.nl>.
25224
25225 2008-04-13  Bruno Haible  <bruno@clisp.org>
25226
25227         * lib/localcharset.c (OS2): Don't redefine if already defined.
25228         Reported by Elbert Pol <e.pol@chello.nl>.
25229
25230 2008-04-13  Bruno Haible  <bruno@clisp.org>
25231
25232         * lib/binary-io.h [__EMX__]: Include <io.h>.
25233         Reported by Elbert Pol <e.pol@chello.nl>.
25234
25235 2008-04-12  Bruno Haible  <bruno@clisp.org>
25236
25237         * lib/fpucw.h: Enable the definitions also for x86_64.
25238         Needed for NetBSD/x86_64.
25239         Reported by Thomas Klausner <tk@giga.or.at>.
25240
25241 2008-04-12  Bruno Haible  <bruno@clisp.org>
25242
25243         * tests/test-strtod.c: Include isnand.h.
25244         (main): Use isnand instead of isnan.
25245         Reported by Jim Meyering.
25246
25247 2008-04-12  Bruno Haible  <bruno@clisp.org>
25248
25249         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25250         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25251
25252 2008-04-12  Jim Meyering  <meyering@redhat.com>
25253
25254         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25255
25256 2008-04-12  Bruno Haible  <bruno@clisp.org>
25257
25258         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25259         Reported by Elbert Pol <e.pol@chello.nl>.
25260
25261 2008-04-12  Eric Blake  <ebb9@byu.net>
25262
25263         Work around Solaris 10 math.h bug.
25264         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25265         (gl_MATH_H_DEFAULTS): Set up default.
25266         * modules/math (Makefile.am): Replace new indicators.
25267         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25268         * tests/test-math.c (main): Test this.
25269         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25270         * doc/posix-headers/math.texi (math.h): Mention bug.
25271         Reported by Nelson H. F. Beebe and Jim Meyering.
25272
25273 2008-04-11  Bruno Haible  <bruno@clisp.org>
25274
25275         Adapt to future versions of Apple GCC.
25276         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25277         Reported by Peter O'Gorman <peter@pogma.com>.
25278
25279 2008-04-11  Bruno Haible  <bruno@clisp.org>
25280
25281         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25282
25283 2008-04-11  Bruno Haible  <bruno@clisp.org>
25284
25285         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25286
25287         * modules/getaddrinfo-tests (Makefile.am): Define
25288         test_getaddrinfo_LDADD.
25289
25290 2008-04-11  Bruno Haible  <bruno@clisp.org>
25291
25292         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25293         (init): Fix syntax error.
25294         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25295         is declared.
25296
25297 2008-04-11  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25300         * modules/glob (Depends-on): Add stdbool.
25301
25302 2008-04-11  Bruno Haible  <bruno@clisp.org>
25303
25304         * lib/trim.c: Include <string.h>.
25305
25306 2008-04-11  Eric Blake  <ebb9@byu.net>
25307
25308         Avoid compile failure on OS/2.
25309         * lib/regex_internal.h (internal_function): Disable optimization
25310         on OS/2 (__EMX__), where it caused compiler error.
25311         Reported by Elbert Pol.
25312
25313 2008-04-11  Bruno Haible  <bruno@clisp.org>
25314
25315         Flush the standard error stream before aborting. Needed on mingw.
25316         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25317         * tests/test-array_list.c (ASSERT): Likewise.
25318         * tests/test-array_oset.c (ASSERT): Likewise.
25319         * tests/test-avltree_list.c (ASSERT): Likewise.
25320         * tests/test-avltree_oset.c (ASSERT): Likewise.
25321         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25322         * tests/test-binary-io.c (ASSERT): Likewise.
25323         * tests/test-byteswap.c (ASSERT): Likewise.
25324         * tests/test-c-ctype.c (ASSERT): Likewise.
25325         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25326         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25327         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25328         * tests/test-c-strstr.c (ASSERT): Likewise.
25329         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25330         * tests/test-canonicalize.c (ASSERT): Likewise.
25331         * tests/test-carray_list.c (ASSERT): Likewise.
25332         * tests/test-ceilf1.c (ASSERT): Likewise.
25333         * tests/test-ceilf2.c (ASSERT): Likewise.
25334         * tests/test-ceill.c (ASSERT): Likewise.
25335         * tests/test-count-one-bits.c (ASSERT): Likewise.
25336         * tests/test-fbufmode.c (ASSERT): Likewise.
25337         * tests/test-fflush2.c (ASSERT): Likewise.
25338         * tests/test-floorf1.c (ASSERT): Likewise.
25339         * tests/test-floorf2.c (ASSERT): Likewise.
25340         * tests/test-floorl.c (ASSERT): Likewise.
25341         * tests/test-fopen.c (ASSERT): Likewise.
25342         * tests/test-fpending.c (ASSERT): Likewise.
25343         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25344         * tests/test-fpurge.c (ASSERT): Likewise.
25345         * tests/test-freadable.c (ASSERT): Likewise.
25346         * tests/test-freadahead.c (ASSERT): Likewise.
25347         * tests/test-freading.c (ASSERT): Likewise.
25348         * tests/test-freadptr.c (ASSERT): Likewise.
25349         * tests/test-freadptr2.c (ASSERT): Likewise.
25350         * tests/test-freadseek.c (ASSERT): Likewise.
25351         * tests/test-freopen.c (ASSERT): Likewise.
25352         * tests/test-frexp.c (ASSERT): Likewise.
25353         * tests/test-frexpl.c (ASSERT): Likewise.
25354         * tests/test-fseek.c (ASSERT): Likewise.
25355         * tests/test-fseeko.c (ASSERT): Likewise.
25356         * tests/test-fstrcmp.c (ASSERT): Likewise.
25357         * tests/test-ftell.c (ASSERT): Likewise.
25358         * tests/test-ftello.c (ASSERT): Likewise.
25359         * tests/test-func.c (ASSERT): Likewise.
25360         * tests/test-fwritable.c (ASSERT): Likewise.
25361         * tests/test-fwriting.c (ASSERT): Likewise.
25362         * tests/test-getdelim.c (ASSERT): Likewise.
25363         * tests/test-getline.c (ASSERT): Likewise.
25364         * tests/test-i-ring.c (ASSERT): Likewise.
25365         * tests/test-iconv-utf.c (ASSERT): Likewise.
25366         * tests/test-iconv.c (ASSERT): Likewise.
25367         * tests/test-isfinite.c (ASSERT): Likewise.
25368         * tests/test-isnand.c (ASSERT): Likewise.
25369         * tests/test-isnanf.c (ASSERT): Likewise.
25370         * tests/test-isnanl.h (ASSERT): Likewise.
25371         * tests/test-ldexpl.c (ASSERT): Likewise.
25372         * tests/test-linked_list.c (ASSERT): Likewise.
25373         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25374         * tests/test-localename.c (ASSERT): Likewise.
25375         * tests/test-lseek.c (ASSERT): Likewise.
25376         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25377         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25378         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25379         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25380         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25381         * tests/test-mbschr.c (ASSERT): Likewise.
25382         * tests/test-mbscspn.c (ASSERT): Likewise.
25383         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25384         * tests/test-mbspbrk.c (ASSERT): Likewise.
25385         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25386         * tests/test-mbsrchr.c (ASSERT): Likewise.
25387         * tests/test-mbsspn.c (ASSERT): Likewise.
25388         * tests/test-mbsstr1.c (ASSERT): Likewise.
25389         * tests/test-mbsstr2.c (ASSERT): Likewise.
25390         * tests/test-mbsstr3.c (ASSERT): Likewise.
25391         * tests/test-memchr2.c (ASSERT): Likewise.
25392         * tests/test-memmem.c (ASSERT): Likewise.
25393         * tests/test-open.c (ASSERT): Likewise.
25394         * tests/test-printf-frexp.c (ASSERT): Likewise.
25395         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25396         * tests/test-printf-posix.c (ASSERT): Likewise.
25397         * tests/test-quotearg.c (ASSERT): Likewise.
25398         * tests/test-rbtree_list.c (ASSERT): Likewise.
25399         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25400         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25401         * tests/test-round1.c (ASSERT): Likewise.
25402         * tests/test-roundf1.c (ASSERT): Likewise.
25403         * tests/test-roundl.c (ASSERT): Likewise.
25404         * tests/test-signbit.c (ASSERT): Likewise.
25405         * tests/test-sleep.c (ASSERT): Likewise.
25406         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25407         * tests/test-snprintf.c (ASSERT): Likewise.
25408         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25409         * tests/test-stat-time.c (ASSERT): Likewise.
25410         * tests/test-strcasestr.c (ASSERT): Likewise.
25411         * tests/test-strerror.c (ASSERT): Likewise.
25412         * tests/test-striconv.c (ASSERT): Likewise.
25413         * tests/test-striconveh.c (ASSERT): Likewise.
25414         * tests/test-striconveha.c (ASSERT): Likewise.
25415         * tests/test-strsignal.c (ASSERT): Likewise.
25416         * tests/test-strstr.c (ASSERT): Likewise.
25417         * tests/test-strtod.c (ASSERT): Likewise.
25418         * tests/test-trunc1.c (ASSERT): Likewise.
25419         * tests/test-trunc2.c (ASSERT): Likewise.
25420         * tests/test-truncf1.c (ASSERT): Likewise.
25421         * tests/test-truncf2.c (ASSERT): Likewise.
25422         * tests/test-truncl.c (ASSERT): Likewise.
25423         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25424         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25425         * tests/test-vasnprintf.c (ASSERT): Likewise.
25426         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25427         * tests/test-vasprintf.c (ASSERT): Likewise.
25428         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25429         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25430         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25431         * tests/test-vsnprintf.c (ASSERT): Likewise.
25432         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25433         * tests/test-wcwidth.c (ASSERT): Likewise.
25434         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25435         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25436         * tests/test-xvasprintf.c (ASSERT): Likewise.
25437         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25438         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25439         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25440         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25441         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25442         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25443         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25444         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25445         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25446         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25447         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25448         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25449         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25450         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25451         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25452         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25453         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25454         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25455         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25456         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25457         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25458         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25459         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25460         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25461         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25462         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25463         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25464         * tests/unictype/test-combining.c (ASSERT): Likewise.
25465         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25466         * tests/unictype/test-digit.c (ASSERT): Likewise.
25467         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25468         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25469         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25470         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25471         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25472         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25473         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25474         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25475         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25476         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25477         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25478         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25479         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25480         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25481         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25482         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25483         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25484         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25485         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25486         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25487         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25488         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25489         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25490         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25491         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25492         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25493         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25494         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25495         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25496         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25497         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25498         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25499         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25500         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25501         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25502         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25503         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25504         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25505         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25506         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25507         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25508         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25509         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25510         Reported by Eric Blake.
25511
25512 2008-04-11  Bruno Haible  <bruno@clisp.org>
25513
25514         * lib/wchar.in.h: Tweak comment.
25515
25516 2008-04-11  Bruno Haible  <bruno@clisp.org>
25517
25518         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25519         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25520         gl_COMMON.
25521         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25522
25523 2008-04-11  Bruno Haible  <bruno@clisp.org>
25524
25525         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25526
25527 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25528
25529         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25530         of attempting to use non-existing /dev/*random.  Based on patch
25531         from Adam Strzelecki <ono@java.pl> in
25532         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25533
25534 2008-04-08  Bruno Haible  <bruno@clisp.org>
25535
25536         Add tentative support for emx+gcc.
25537         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25538         * lib/fpurge.c (fpurge): Likewise.
25539         * lib/freadable.c (freadable): Likewise.
25540         * lib/freadahead.c (freadahead): Likewise.
25541         * lib/freading.c (freading): Likewise.
25542         * lib/freadptr.c (freadptr): Likewise.
25543         * lib/freadseek.c (freadptrinc): Likewise.
25544         * lib/fseeko.c (rpl_fseeko): Likewise.
25545         * lib/fseterr.c (fseterr): Likewise.
25546         * lib/fwritable.c (fwritable): Likewise.
25547         * lib/fwriting.c (fwriting): Likewise.
25548         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25549
25550 2008-04-09  Eric Blake  <ebb9@byu.net>
25551
25552         Avoid some autoconf warnings.
25553         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25554         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25555         * m4/afs.m4 (gl_AFS): Likewise.
25556         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25557         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25560         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25561         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25562         (AC_CHECK_DECLS_ONCE): Likewise.
25563         Rename file...
25564         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25565         gnulib-tool requires autoconf 2.59 or better.
25566         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25567
25568 2008-04-08  Eric Blake  <ebb9@byu.net>
25569
25570         Use 'git describe --match' if present (added in git 1.5.5).
25571         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25572         if possible.
25573
25574 2008-04-08  Bruno Haible  <bruno@clisp.org>
25575
25576         Add tentative support for OpenServer.
25577         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25578         _ptr, _cnt.
25579         * lib/fpurge.c (fpurge): Likewise.
25580         * lib/freadable.c (freadable): Likewise.
25581         * lib/freadahead.c (freadahead): Likewise.
25582         * lib/freading.c (freading): Likewise.
25583         * lib/freadptr.c (freadptr): Likewise.
25584         * lib/freadseek.c (freadptrinc): Likewise.
25585         * lib/fseeko.c (rpl_fseeko): Likewise.
25586         * lib/fseterr.c (fseterr): Likewise.
25587         * lib/fwritable.c (fwritable): Likewise.
25588         * lib/fwriting.c (fwriting): Likewise.
25589         Reported by Roger Cornelius <rac@tenzing.org> and
25590         Brian K. White <brian@aljex.com>.
25591
25592 2008-04-06  Jim Meyering  <meyering@redhat.com>
25593
25594         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25595
25596 2008-04-06  Bruno Haible  <bruno@clisp.org>
25597
25598         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25599         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25600         * tests/test-printf-posix.sh: Likewise.
25601         * tests/test-vfprintf-posix.sh: Likewise.
25602         * tests/test-vprintf-posix.sh: Likewise.
25603         * tests/test-xprintf-posix.sh: Likewise.
25604
25605 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25606
25607         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25608         hide error from 'ls', needed on OS/2.
25609         Report by Elbert Pol <elbert.pol@gmail.com>.
25610
25611 2008-04-04  Eric Blake  <ebb9@byu.net>
25612
25613         Make test-fseeko.c failures meaningful.
25614         * tests/test-fseeko.c: Print line number on failure.
25615         * tests/test-fseek.c: Likewise.
25616         Reported by Nelson H. F. Beebe.
25617
25618         Improve strtod bug detection check.
25619         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25620         required for Solaris 10.
25621         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25622
25623 2008-04-04  Bruno Haible  <bruno@clisp.org>
25624
25625         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25626         by m4/setenv.m4.
25627
25628 2008-04-03  Eric Blake  <ebb9@byu.net>
25629
25630         Ensure sane .version contents.
25631         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25632         version string.
25633         * build-aux/git-version-gen: Improve documentation.
25634
25635         Make GNU make output nicer.
25636         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25637         MAKECMDGOALS to enforce message for all command line targets.  Set
25638         srcdir for use in maint.mk.
25639
25640         Another maintainer tweak.
25641         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25642         a target that regenerates version.
25643
25644 2008-04-03  Jim Meyering  <meyering@redhat.com>
25645
25646         vc-list-files: don't cause coreutils "make po-check" failure
25647         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25648
25649 2008-04-03  Eric Blake  <ebb9@byu.net>
25650
25651         Allow VPATH usage of vc-list-files.
25652         * build-aux/vc-list-files (scriptversion): Add timestamp.
25653         (options): Add --help, --version, -C.
25654         (CVS): Support installed cvsu.
25655
25656 2008-04-02  Bruno Haible  <bruno@clisp.org>
25657
25658         Avoid some "statement with no effect" warnings from gcc.
25659         * tests/test-wctype.c (main): Explicitly ignore unused values.
25660         Reported by Jim Meyering.
25661
25662 2008-04-02  Jim Meyering  <meyering@redhat.com>
25663
25664         Avoid some warnings from "gcc -Wshadow".
25665         * tests/test-frexp.c (exp): Define to a different identifier.
25666         * tests/test-frexpl.c (exp): Likewise.
25667
25668 2008-04-03  Jim Meyering  <meyering@redhat.com>
25669
25670         bootstrap: remove dangling *.[ch] symlinks from lib
25671         * build-aux/bootstrap [dangling symlink removal]: Move find's
25672         -depth option to precede all others, to avoid a warning.
25673         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25674
25675 2008-04-02  Bruno Haible  <bruno@clisp.org>
25676
25677         Avoid some warnings from "gcc -Wshadow".
25678         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25679         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25680         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25681         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25682         Reported by Jim Meyering.
25683
25684 2008-04-01  Bruno Haible  <bruno@clisp.org>
25685
25686         Fix test to work on IRIX 6.5 with cc.
25687         * tests/test-math.c (numeric_equal): New function.
25688         (main): Use it.
25689
25690 2008-04-01  Bruno Haible  <bruno@clisp.org>
25691
25692         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25693
25694 2008-04-01  Bruno Haible  <bruno@clisp.org>
25695
25696         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25697         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25698         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25699         (Depends-on): Remove math.
25700
25701         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25702         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25703         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25704         (Depends-on): Remove math.
25705
25706         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25707         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25708         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25709         (Depends-on): Remove math.
25710         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25711         (Depends-on): Remove math.
25712
25713         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25714         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25715         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25716         (Depends-on): Remove math.
25717         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25718         (Depends-on): Remove math.
25719
25720         * tests/test-round1.c: Include nan.h.
25721         (main): Use NaNd instead of NAN.
25722         * modules/round-tests (Files): Add tests/nan.h.
25723
25724         * tests/test-trunc1.c: Include nan.h.
25725         (main): Use NaNd instead of NAN.
25726         * modules/trunc-tests (Files): Add tests/nan.h.
25727
25728         * tests/test-roundf1.c: Include nan.h.
25729         (main): Use NaNf instead of NAN.
25730         * modules/roundf-tests (Files): Add tests/nan.h.
25731
25732         * tests/test-truncf1.c: Include nan.h.
25733         (main): Use NaNf instead of NAN.
25734         * modules/truncf-tests (Files): Add tests/nan.h.
25735
25736         * tests/test-ceilf1.c: Include nan.h.
25737         (main): Use NaNf instead of NAN.
25738         * modules/ceilf-tests (Files): Add tests/nan.h.
25739
25740         * tests/test-floorf1.c: Include nan.h.
25741         (main): Use NaNf instead of NAN.
25742         * modules/floorf-tests (Files): Add tests/nan.h.
25743
25744         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25745         (main): Use NaNf instead of NAN.
25746         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25747
25748         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25749         (main): Use NaNd instead of NAN.
25750         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25751
25752         * tests/test-frexp.c: Include nan.h.
25753         (main): Use NaNd instead of NAN.
25754         * modules/frexp-tests (Files): Add tests/nan.h.
25755
25756         * lib/isnan.c: Don't include <math.h>.
25757         (FUNC): Don't use NAN macro.
25758         * modules/isnand-nolibm (Depends-on): Remove math.
25759         * modules/isnanf-nolibm (Depends-on): Remove math.
25760         * modules/isnanl (Depends-on): Remove math.
25761         * modules/isnanl-nolibm (Depends-on): Remove math.
25762
25763         * tests/nan.h: New file.
25764
25765 2008-04-01  Eric Blake  <ebb9@byu.net>
25766
25767         Fix typos.
25768         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25769         values to be the right type.
25770
25771         For now, cater to gnulib strtod inaccuracies.
25772         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25773         fractional results.  While not as nice from a QoI perspective, it
25774         is a quicker patch than correctly implementing decimal to binary
25775         rounding.
25776
25777 2008-03-31  Eric Blake  <ebb9@byu.net>
25778
25779         Guarantee a definition of NAN.
25780         * lib/math.in.h (NAN): Define if missing.
25781         * tests/test-math.c (main): Test it.
25782         * doc/posix-headers/math.texi (math.h): Document this.
25783         * lib/isnan.c (rpl_isnand): Use it.
25784         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25785         * tests/test-floorf1.c (NaN): Likewise.
25786         * tests/test-frexp.c (NaN): Likewise.
25787         * tests/test-isnand.c (NaN): Likewise.
25788         * tests/test-isnanf.c (NaN): Likewise.
25789         * tests/test-round1.c (NaN): Likewise.
25790         * tests/test-roundf1.c (NaN): Likewise.
25791         * tests/test-snprintf-posix.h (NaN): Likewise.
25792         * tests/test-sprintf-posix.h (NaN): Likewise.
25793         * tests/test-trunc1.c (NaN): Likewise.
25794         * tests/test-truncf1.c (NaN): Likewise.
25795         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25796         * tests/test-vasprintf-posix.c (NaN): Likewise.
25797         * modules/isnand-nolibm (Depends-on): Add math.
25798         * modules/isnanf-nolibm (Depends-on): Likewise.
25799         * modules/isnanl (Depends-on): Likewise.
25800         * modules/isnanl-nolibm (Depends-on): Likewise.
25801         * modules/snprintf-posix-tests (Depends-on): Likewise.
25802         * modules/sprintf-posix-tests (Depends-on): Likewise.
25803         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25804         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25805         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25806         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25807
25808 2008-03-31  Bruno Haible  <bruno@clisp.org>
25809
25810         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25811         * doc/posix-functions/strtod.texi: Likewise.
25812
25813 2008-03-31  Bruno Haible  <bruno@clisp.org>
25814
25815         * tests/test-strtod.c (main): Don't use C99 syntax.
25816
25817 2008-03-31  Bruno Haible  <bruno@clisp.org>
25818
25819         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25820         Reported by Eric Blake.
25821
25822 2008-03-31  Jim Meyering  <meyering@redhat.com>
25823
25824         Don't compare actual signbit return values.
25825         * tests/test-strtod.c (main): Rather, compare only their
25826         zero/non-zero nature.
25827
25828 2008-03-31  Eric Blake  <ebb9@byu.net>
25829
25830         More strtod documentation.
25831         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25832         failures as distinct bugs.
25833
25834 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25835
25836         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25837         Problem reported by Erik Benada in
25838         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25839
25840 2008-03-30  Bruno Haible  <bruno@clisp.org>
25841
25842         * tests/test-strtod.c: Add comments about which assertion fails on which
25843         platform.
25844         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25845
25846 2008-03-30  Eric Blake  <ebb9@byu.net>
25847
25848         Test signbit behavior on zeros.
25849         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25850         (test_signbitd, test_signbitl): Likewise.
25851
25852         More strtod touchups.
25853         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25854         sign of negative underflow, for now.  Use .5, not .1.
25855         * doc/posix-functions/strtod.texi (strtod): Mention these
25856         limitations.
25857         Reported by Jim Meyering.
25858
25859 2008-03-30  Bruno Haible  <bruno@clisp.org>
25860
25861         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25862         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25863
25864 2008-03-30  Bruno Haible  <bruno@clisp.org>
25865
25866         Avoid failure when attempting to return empty iconv results on some
25867         platforms.
25868         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25869         allocation, don't report ENOMEM when the resulting string is empty.
25870
25871 2008-03-30  Bruno Haible  <bruno@clisp.org>
25872
25873         Fix buffer overrun.
25874         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25875         Don't consider the width for tmp_length. Check count against tmp_length
25876         before doing the padding. Ensure enough allocation during padding.
25877
25878 2008-03-30  Eric Blake  <ebb9@byu.net>
25879
25880         strtod touchups.
25881         * lib/strtod.c (strtod): Avoid compiler warnings.
25882         Reported by Jim Meyering.
25883
25884 2008-03-30  Bruno Haible  <bruno@clisp.org>
25885
25886         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25887         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25888         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25889         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25890         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25891         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25892         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25893         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25894
25895         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25896         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25897         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25898         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25899         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25900         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25901         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25902         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25903
25904         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25905         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25906         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25907         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25908         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25909         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25910         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25911         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25912
25913         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25914         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25915
25916         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25917         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25918
25919         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25920         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25921
25922         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25924         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25925
25926         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25927         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25928         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25929
25930         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25932         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25933
25934         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25935         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25936         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25937
25938         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25939         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25941         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25942         (Depends-on): Add EOVERFLOW.
25943         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25944         (Depends-on): Add EOVERFLOW.
25945         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25946         (Depends-on): Add EOVERFLOW.
25947         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25948         (Depends-on): Add EOVERFLOW.
25949         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25950         (Depends-on): Add EOVERFLOW.
25951         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25952         (Depends-on): Add EOVERFLOW.
25953         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25954         (Depends-on): Add EOVERFLOW.
25955         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25956         (Depends-on): Add EOVERFLOW.
25957
25958         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25959         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25960         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25961
25962         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25964         * modules/snprintf (Depends-on): Add EOVERFLOW.
25965
25966         * lib/poll.c (EOVERFLOW): Remove fallback.
25967         * modules/poll (Depends-on): Add EOVERFLOW.
25968
25969         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25970         * modules/getugroups (Depends-on): Add EOVERFLOW.
25971
25972         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25973         * modules/getdelim (Depends-on): Add EOVERFLOW.
25974
25975         * lib/ftell.c (EOVERFLOW): Remove fallback.
25976         * modules/ftell (Depends-on): Add EOVERFLOW.
25977
25978         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25980         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25981
25982         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25983
25984         * modules/EOVERFLOW-tests: New file.
25985         * tests/test-EOVERFLOW.c: New file.
25986
25987         * modules/EOVERFLOW: New file.
25988         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25989
25990 2008-03-30  Bruno Haible  <bruno@clisp.org>
25991
25992         Fix bug introduced on 2007-06-10.
25993         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25994         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25995
25996 2008-03-30  Bruno Haible  <bruno@clisp.org>
25997
25998         Improve freadseek's efficiency after ungetc.
25999         * lib/freadseek.c: Include freadahead.h.
26000         (freadptrinc): New function, extracted from freadseek.
26001         (freadseek): Use it in a loop. Use freadahead to determine the number
26002         of loop iterations.
26003         * modules/freadseek (Depends-on): Add freadahead.
26004         (configure.ac): Require AC_C_INLINE.
26005
26006 2008-03-30  Bruno Haible  <bruno@clisp.org>
26007
26008         * lib/freadseek.c (freadseek): Don't ignore the return value of
26009         freadptr.
26010
26011 2008-03-29  Eric Blake  <ebb9@byu.net>
26012
26013         Add hex float support.
26014         * modules/strtod (Depends-on): Add c-ctype.
26015         (Link): Mention POW_LIB.
26016         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26017         whitespace between 'e' and exponent.
26018         * tests/test-strtod.c (main): Enable hex float tests.
26019         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26020         now provides.
26021
26022         Document various strtod bugs, with some fixes.
26023         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26024         "-0x", "inf", "nan", and hex constants.
26025         * doc/posix-functions/atof.texi (atof): Likewise.
26026         * modules/stdlib (Makefile.am): Support strtod.
26027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26028         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26029         detect additional strtod bugs.
26030         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26031         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26032         bool where appropriate.  Parse 'inf' and 'nan'.
26033         * tests/test-strtod.c: New file.
26034         * modules/strtod (Depends-on): Add stdbool, stdlib.
26035         (configure.ac): Turn on module indicator.
26036         * modules/strtod-tests: New module.
26037
26038 2008-03-29  Eric Blake  <ebb9@byu.net>
26039
26040         Fix ftell on mingw.
26041         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26042         * modules/ftell-tests (Depends-on): Add binary-io.
26043         * modules/ftello-tests (Depends-on): Likewise.
26044         * tests/test-ftell.c (main): Enhance test to cover behavior after
26045         ungetc.  Enforce binary mode.
26046         * tests/test-ftello.c (main): Likewise.
26047
26048         Pass test-freadseek on cygwin.
26049         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26050         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26051         ungetc buffer.
26052
26053         * tests/test-fflush2.c (main): Fix typo.
26054
26055 2008-03-29  Bruno Haible  <bruno@clisp.org>
26056
26057         * tests/test-fflush2.c (main): Temporarily disable the contents of
26058         this test.
26059         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26060         Reported by Eric Blake.
26061
26062 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26063
26064         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26065         (GC_SHA224_DIGEST_SIZE): Add.
26066
26067         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26068         (gc_hash_digest_length): Likewise.
26069         (gc_hash_buffer): Likewise.
26070
26071 2008-03-25  Bruno Haible  <bruno@clisp.org>
26072
26073         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26074         detail which gettext release to use.
26075         Reported by Simon Josefsson.
26076
26077 2008-03-26  Jim Meyering  <meyering@redhat.com>
26078
26079         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26080         * modules/gnumakefile (clean-GNUmakefile): Also, use
26081         test ... && ... || : syntax rather than if-then ... fi.
26082
26083         gnumakefile: Don't double-quote-expand $(VPATH) value.
26084         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26085
26086 2008-03-24  Eric Blake  <ebb9@byu.net>
26087
26088         Alter GNUmakefile to install into top directory.
26089         * modules/maintainer-makefile: Split, and add dependency...
26090         * modules/gnumakefile: to this new module.
26091         * build-aux/GNUmakefile: Move...
26092         * top/GNUmakefile: ...here.
26093         * build-aux/maint.mk: Move...
26094         * top/maint.mk: ...here.
26095         * MODULES.html.sh (Support for maintaining...): Document new
26096         module.
26097
26098 2008-03-23  Bruno Haible  <bruno@clisp.org>
26099
26100         * gnulib-tool: New options --vc-files, --no-vc-files.
26101         (func_usage): Document them.
26102         (vc_files): New variable.
26103         (func_import): Consider vc_files.
26104         (func_create_testdir): Set vc_files to empty.
26105         Suggested by Jim Meyering and Karl Berry.
26106
26107 2008-03-23  Bruno Haible  <bruno@clisp.org>
26108
26109         Fix regex compilation error on HP-UX 11.
26110         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26111         * modules/regex (Files): Add m4/mbstate_t.m4.
26112         Reported by Ton Voon <ton.voon@altinity.com>.
26113
26114 2008-03-23  Bruno Haible  <bruno@clisp.org>
26115
26116         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26117
26118 2008-03-23  Eric Blake  <ebb9@byu.net>
26119             Bruno Haible  <bruno@clisp.org>
26120
26121         Install files from top/ in the destination directory.
26122         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26123         augmentation also for the files from top/.
26124         (func_import, func_create_testdir): Rewrite file names:
26125         top/filename -> filename.
26126
26127 2008-03-23  Bruno Haible  <bruno@clisp.org>
26128
26129         Tweak "gnulib --version" output.
26130         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26131
26132 2008-03-23  Bruno Haible  <bruno@clisp.org>
26133
26134         Tweak "gnulib --version" output.
26135         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26136         rather than contents of ChangeLog, when possible.
26137
26138 2008-03-21  Eric Blake  <ebb9@byu.net>
26139
26140         More --version tweaks.
26141         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26142         date of last ChangeLog entry.
26143
26144 2008-03-21  Jim Meyering  <meyering@redhat.com>
26145
26146         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26147
26148 2008-03-20  Eric Blake  <ebb9@byu.net>
26149
26150         VPATH fix.
26151         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26152
26153 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26154
26155         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26156         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26157
26158 2008-03-20  Eric Blake  <ebb9@byu.net>
26159
26160         Sync GNUmakefile with coreutils.
26161         * build-aux/GNUmakefile (have-Makefile): Rename...
26162         (_have-Makefile): ...to this, for namespace consideration.
26163         (GNUmakefile.cfg): Include, if present.
26164         (_autoreconf): Define a default.
26165         (_is-dist-target): New rule for rebuilds to pick up intra-release
26166         version.
26167         (maint-cfg.mk): Rename...
26168         (cfg.mk): ...to this.
26169
26170 2008-03-18  Jim Meyering  <meyering@redhat.com>
26171
26172         New script and module: mktempd
26173         * MODULES.html.sh (maint+release support): Add mktempd.
26174         * build-aux/mktempd: New file.
26175         * modules/mktempd: New file.
26176
26177 2008-03-15  Jim Meyering  <meyering@redhat.com>
26178
26179         Undo last change.
26180         * lib/sha1.c, lib/md5.c: 63 != ~63.
26181         Reported by Andreas Schwab.
26182
26183         sha1.c, md5.c: Hoist a redundant expression.
26184         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26185         "ctx->buflen" only once, before calling *_process_block.
26186         * lib/md5.c (md5_process_bytes): Likewise.
26187
26188 2008-03-14  Eric Blake  <ebb9@byu.net>
26189
26190         Bump copyright year in files generated by gnulib-tool.
26191         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26192         gnulib-tool, rather than hard-coding it.
26193
26194         Fix 'gnulib-tool --version' output to work with git.
26195         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26196         (startup): ...here.
26197         (func_version): Use it to invoke git-version-gen, rather than
26198         relying on CVS keyword expansion.  Modernize wording.
26199         (cvsdatestamp, last_checkin_date, version): Kill unused
26200         variables.
26201
26202 2008-03-12  Jim Meyering  <meyering@redhat.com>
26203
26204         Recognize optional cast of the argument to free.
26205         * build-aux/useless-if-before-free: Update regexps.
26206
26207         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26208
26209 2008-03-11  Bruno Haible  <bruno@clisp.org>
26210
26211         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26212         by a single package.
26213         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26214         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26215         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26216         Reported by Sam Steingold <sds@gnu.org>.
26217
26218 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26219
26220         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26221         repositories.
26222
26223 2008-03-11  Bruno Haible  <bruno@clisp.org>
26224
26225         Avoid conflicts between local macro definitions.
26226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26227         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26228
26229 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26230             Bruno Haible  <bruno@clisp.org>
26231
26232         Make va_copy work with some version of xlc on AIX 5.1.
26233         * lib/stdarg.in.h: New file.
26234         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26235         On AIX, use a <stdarg.h> file substitute.
26236         * modules/stdarg (Files): Add lib/stdarg.in.h.
26237         (Depends-on): Add include_next.
26238         (Makefile.am): Build a stdarg.h substitute if requested.
26239         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26240
26241 2008-03-10  Bruno Haible  <bruno@clisp.org>
26242
26243         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26244         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26245         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26246
26247 2008-03-10  Bruno Haible  <bruno@clisp.org>
26248
26249         * modules/stdlib (Depends-on): Add include_next, remove
26250         absolute-header.
26251
26252 2008-03-09  Bruno Haible  <bruno@clisp.org>
26253
26254         * lib/freadahead.h (freadahead): Document more precisely.
26255         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26256         the sum of both buffer sizes.
26257         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26258         * NEWS: Document the change.
26259
26260 2008-03-09  Bruno Haible  <bruno@clisp.org>
26261
26262         Extend freadptr to return also the buffer size.
26263         * lib/freadptr.h (freadptr): Add sizep argument.
26264         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26265         (freadptr): Add sizep argument. Determine buffer size like freadahead
26266         does.
26267         * tests/test-freadptr.c: Don't include freadahead.h.
26268         (main): Adapt for new calling convention of freadptr.
26269         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26270         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26271         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26272         tests/test-freadptr2.sh.
26273         (Depends): Remove freadahead.
26274         (TESTS): Add test-freadptr2.sh.
26275         (check_PROGRAMS): Add test-freadptr2.
26276
26277 2008-03-09  Bruno Haible  <bruno@clisp.org>
26278
26279         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26280         Report and solution by Simon Josefsson.
26281
26282 2008-03-06  Bruno Haible  <bruno@clisp.org>
26283
26284         Make fflush after ungetc work on BSD platforms.
26285         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26286         * tests/test-fflush2.c: New file.
26287         * tests/test-fflush2.sh: New file.
26288         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26289         tests/test-fflush2.c.
26290         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26291         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26292
26293 2008-03-06  Eric Blake  <ebb9@byu.net>
26294
26295         Likewise for ftello.
26296         * modules/ftello (Dependencies): Add extensions.
26297         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26298
26299 2008-03-06  Bruno Haible  <bruno@clisp.org>
26300
26301         * modules/fseeko (Dependencies): Add extensions.
26302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26303         Needed on glibc systems.
26304
26305 2008-03-06  Bruno Haible  <bruno@clisp.org>
26306
26307         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26308         email address.
26309         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26310
26311 2008-03-06  Bruno Haible  <bruno@clisp.org>
26312
26313         * users.txt: Add libgnupdf.
26314
26315 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26316
26317         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26318         (Header File Substitutes, Function Substitutes,
26319         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26320         (Build robot for gnulib): Fix typo.
26321
26322 2008-03-06  Bruno Haible  <bruno@clisp.org>
26323
26324         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26325         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26326
26327 2008-03-06  Bruno Haible  <bruno@clisp.org>
26328
26329         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26330         * doc/gnulib.texi: Include it.
26331
26332 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26333
26334         * modules/func (License): Change license to unlimited; there was
26335         no LGPL parts in the module anyway.
26336
26337 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26338
26339         * modules/__func__: Renamed to modules/func.
26340         * modules/__func__-tests: Renamed to modules/func-tests.
26341         * tests/test-__func__.c: Renamed to tests/test-func.c.
26342         * m4/__func__.m4: Renamed to m4/func.m4.
26343         * doc/gnulib.texi (__func__): Section renamed to func.
26344         Suggested by Eric Blake <ebb9@byu.net>.
26345
26346 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26347
26348         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26349         about __func__.  Make example self-contained.  Suggested by Eric
26350         Blake <ebb9@byu.net>.
26351
26352         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26353         Suggested by Eric Blake <ebb9@byu.net>.
26354
26355 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26356
26357         * modules/__func__: New file.
26358         * modules/__func__-tests: New file.
26359         * tests/test-__func__.c: New file.
26360         * m4/__func__.m4: New file.
26361         * doc/gnulib.texi (__func__): Document __func__ module.
26362
26363 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26364
26365         * modules/byteswap (License): Re-license as LGPLv2+.
26366
26367 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26368
26369         * doc/Makefile: Add pdf target.
26370
26371 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26372
26373         * modules/inline (License): Use 'unlimited', since there are only
26374         *.m4 files in this module.
26375
26376 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26377             Bruno Haible  <bruno@clisp.org>
26378
26379         Add support for HP C 7.1 on OpenVMS 8.3.
26380         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26381
26382 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26383
26384         Update VMS specifics.
26385         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26386
26387 2008-03-02  Jim Meyering  <meyering@redhat.com>
26388
26389         Remove the last dependency on the "free" module.
26390         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26391         Reported by Bob Proulx.
26392
26393         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26394
26395         Remove useless "if" tests before free.  Deprecate "free" module.
26396         * doc/posix-functions/free.texi: Mention that this
26397         module is no longer useful.
26398         * modules/free (Notice): Say this module is obsolete.
26399         * modules/readutmp (Depends-on): Remove free.
26400         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26401         * lib/putenv.c (putenv): Likewise.
26402         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26403         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26404         * tests/test-c-strcasestr.c (main): Likewise.
26405         * tests/test-c-strstr.c (main): Likewise.
26406         * tests/test-mbscasestr1.c (main): Likewise.
26407         * tests/test-mbscasestr2.c (main): Likewise.
26408         * tests/test-mbsstr1.c (main): Likewise.
26409         * tests/test-mbsstr2.c (main): Likewise.
26410         * tests/test-memmem.c (main): Likewise.
26411         * tests/test-strcasestr.c (main): Likewise.
26412         * tests/test-striconv.c (main): Likewise.
26413         * tests/test-striconveh.c (main): Likewise.
26414         * tests/test-striconveha.c (main): Likewise.
26415         * tests/test-strstr.c (main): Likewise.
26416
26417         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26418
26419         bootstrap: sync from coreutils again
26420         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26421
26422 2008-03-01  Jim Meyering  <meyering@redhat.com>
26423
26424         bootstrap: sync from coreutils
26425         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26426         also when the target doesn't exist.
26427
26428 2008-03-01  Eric Blake  <ebb9@byu.net>
26429
26430         Fix bugs in last patch.
26431         * lib/memchr2.c (memchr2): Fix typo.
26432         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26433         extension.
26434         Reported by Bruce Korb.
26435
26436         New module 'memchr2'.
26437         * modules/memchr2: New file.
26438         * modules/memchr2-tests: Likewise.
26439         * lib/memchr2.h: Likewise.
26440         * lib/memchr2.c: Likewise, based on memchr.c.
26441         * tests/test-memchr2.c: New test.
26442         * MODULES.html.sh (String handling): Add memchr2.
26443
26444 2008-02-29  Bruno Haible  <bruno@clisp.org>
26445
26446         * modules/freadseek-tests: New file.
26447         * tests/test-freadseek.sh: New file.
26448         * tests/test-freadseek.c: New file.
26449
26450         New module 'freadseek'.
26451         * modules/freadseek: New file.
26452         * lib/freadseek.h: New file.
26453         * lib/freadseek.c: New file.
26454         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26455
26456 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26457
26458         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26459         wydawca.
26460
26461         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26462         program_invocation_name and program_invocation_short_name are
26463         present.
26464
26465 2008-02-28  Bruno Haible  <bruno@clisp.org>
26466
26467         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26468         * tests/test-freadptr.sh: Also test non-seekable stdin.
26469
26470 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26471
26472         * build-aux/bootstrap (source_base, m4_base)
26473         (doc_base, tests_base): New variables.
26474         (gnulib_tool_options): Do not hardcode base directories, use
26475         the above variables instead.
26476
26477 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26478
26479         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26480
26481 2008-02-28  Bruno Haible  <bruno@clisp.org>
26482
26483         * modules/freadptr-tests: New file.
26484         * tests/test-freadptr.sh: New file.
26485         * tests/test-freadptr.c: New file.
26486
26487         New module 'freadptr'.
26488         * modules/freadptr: New file.
26489         * lib/freadptr.h: New file.
26490         * lib/freadptr.c: New file.
26491         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26492
26493 2008-02-26  Karl Berry  <karl@freefriends.org>
26494
26495         Sync from Libtool:
26496         * libltdl/argz.c (argz_add, argz_count): New functions.
26497         * libltdl/argz.in.h: Declare them.
26498         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26499
26500 2008-02-22  Bruno Haible  <bruno@clisp.org>
26501
26502         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26503         is a pointer type.  Needed for HP-UX 10.
26504         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26505         * doc/posix-functions/gmtime_r.texi: Likewise.
26506         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26507
26508 2008-02-24  Bruno Haible  <bruno@clisp.org>
26509
26510         * modules/environ-tests: New file.
26511         * tests/test-environ.c: New file.
26512
26513         New module 'environ'.
26514         * modules/environ: New file.
26515         * lib/unistd.in.h (environ): New declaration.
26516         * m4/environ.m4: New file.
26517         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26518         after use.
26519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26520         HAVE_DECL_ENVIRON.
26521         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26522         HAVE_DECL_ENVIRON.
26523         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26524         wrong claim that 'environ' is missing on some systems.
26525         * modules/execute (Depends-on): Add environ.
26526         * lib/execute.c (environ): Remove fallback declaration.
26527         * modules/pipe (Depends-on): Add environ.
26528         * lib/pipe.c (environ): Remove fallback declaration.
26529         * modules/setenv (Depends-on): Add environ.
26530         * lib/setenv.c (environ): Remove fallback declaration.
26531         * modules/unsetenv (Depends-on): Add environ.
26532         * lib/unsetenv.c (environ): Remove fallback declaration.
26533         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26534         m4/environ.m4.
26535         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26536         (gl_PREREQ_UNSETENV): Likewise.
26537
26538 2008-02-24  Bruno Haible  <bruno@clisp.org>
26539
26540         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26541
26542 2008-02-20  Bob Proulx  <bob@proulx.com>
26543
26544         Enable use of older two part flavor 'git describe'.
26545         * build-aux/git-version-gen: If using the older two part flavor of
26546         git version then recreate the third part now present in the
26547         newer three part flavor of git describe.
26548
26549 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26550
26551         * lib/fts.c (fts_build): Typo correction to comment.
26552
26553 2008-02-17  Bruno Haible  <bruno@clisp.org>
26554
26555         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26556         generating no-op conflicts.
26557
26558 2008-02-17  Bruno Haible  <bruno@clisp.org>
26559
26560         Speed up by 10%.
26561         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26562         result_entries, rather than an index-based loop.
26563
26564 2008-02-17  Bruno Haible  <bruno@clisp.org>
26565
26566         Speed up by 25%.
26567         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26568         'hashcode_cached'.
26569         (entry_create): New function.
26570         (entry_hashcode): Use the cached hashcode if possible.
26571         (read_changelog_file, try_split_merged_entry): Use entry_create.
26572
26573 2008-02-17  Bruno Haible  <bruno@clisp.org>
26574
26575         Speed up from O(n^2) to O(n) for long ChangeLog files.
26576         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26577         (read_changelog_file): Change implementation of entries_reversed list
26578         to rbtreehash.
26579         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26580
26581 2008-02-17  Bruno Haible  <bruno@clisp.org>
26582
26583         New option --split-merged-entry.
26584         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26585         (find_paragraph_end, try_split_merged_entry): New functions.
26586         (long_options): Add option --split-merged-entry.
26587         (usage): Document option --split-merged-entry.
26588         (main): Implement option --split-merged-entry.
26589         Reported by Eric Blake.
26590
26591 2008-02-17  Bruno Haible  <bruno@clisp.org>
26592
26593         * lib/git-merge-changelog.c: Include c-strstr.h.
26594         (main): Support the "git pull --rebase" situation.
26595         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26596         Reported by Eric Blake.
26597
26598 2008-02-16  Eric Blake  <ebb9@byu.net>
26599
26600         Avoid doubling \ in common case of "c-maybe" quoting style.
26601         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26602         eliding outer quotes.
26603         * lib/quotearg.h: Document this.
26604         * tests/test-quotearg.c (result_strings, inputs, results_g)
26605         (flag_results, locale_results): Test it by adding a new string to
26606         each test group.
26607         (compare_strings): Test new string.
26608
26609 2008-02-13  Eric Blake  <ebb9@byu.net>
26610
26611         Avoid trigraph quoting in default output.
26612         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26613         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26614         unless explicitly requested.
26615         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26616
26617 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26618
26619         Don't rely on signed integer overflowing to negative value.
26620         * lib/getugroups.c (getugroups): Include <limits.h>.
26621         Instead, compare against INT_MAX, and increment only if the test passes.
26622
26623 2008-02-13  Jim Meyering  <meyering@redhat.com>
26624         and Eric Blake  <ebb9@byu.net>
26625
26626         Avoid shadowing warning and compile errors on Linux.
26627         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26628         forwarding macros on Linux.
26629         (dcgettext): Define a stub, for Linux.
26630         (results_g, main): Avoid warnings.
26631
26632 2008-02-12  Eric Blake  <ebb9@byu.net>
26633
26634         Silence warning in last patch.
26635         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26636
26637         Quotearg part 4: add tests, fix c-maybe colon quoting.
26638         * lib/quotearg.h: Improve documentation.
26639         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26640         escapes when adding outer quotes.  When quoting trigraphs, use
26641         valid C notation.  When quoting NUL, omit extra characters if next
26642         character is not digit.  Alter prototype.
26643         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26644         callers.
26645         * modules/quotearg-tests: New module.
26646         * tests/test-quotearg.c: New test.
26647
26648 2008-02-07  Eric Blake  <ebb9@byu.net>
26649
26650         Quotearg part 3: add flag to control outer quote elision.
26651         * lib/quotearg.h (c_maybe_quoting_style): New style.
26652         (enum quoting_flags): Better documentation of flags.
26653         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26654         c-maybe style.
26655         (quotearg_buffer_restyled): Handle new flag to elide outer
26656         quotes.
26657
26658         Quotearg part 2: add flag that can control NUL elision.
26659         * lib/quotearg.h (set_quoting_flags): New prototype.
26660         * lib/quotearg.c (struct quoting_options): Add flag field.
26661         (set_quoting_flags): New function.
26662         (quotearg_buffer_restyled): Add flags parameter.
26663         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26664         (quotearg_n_options): Set the flag, since length cannot be
26665         returned.
26666         (quoting_options_from_style): Default flags correctly.
26667
26668         Quotearg part 1: more wrappers, restore quotearg_char state.
26669         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26670         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26671         (quotearg_colon_mem): New wrappers.
26672         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26673         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26674         functions.
26675         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26676         (quotearg_colon_mem): New functions.
26677
26678 2008-02-11  Bruno Haible  <bruno@clisp.org>
26679
26680         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26681         library in the current directory: it does not work with parallel make.
26682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26683
26684 2008-02-11  Bruno Haible  <bruno@clisp.org>
26685
26686         * .gitattributes: New file.
26687
26688 2008-02-11  Jim Meyering  <meyering@redhat.com>
26689
26690         useless-if-before-free: Fix reversed exit values.
26691         * build-aux/useless-if-before-free: Use correct values
26692         for EXIT_MATCH and EXIT_NO_MATCH.
26693
26694         * build-aux/useless-if-before-free: Close stdout carefully.
26695
26696 2008-02-10  Bruno Haible  <bruno@clisp.org>
26697
26698         New module 'git-merge-changelog'.
26699         * modules/git-merge-changelog: New file.
26700         * lib/git-merge-changelog.c: New file.
26701
26702 2008-02-10  Jim Meyering  <meyering@redhat.com>
26703
26704         useless-if-before-free: New option: --list (-l).
26705
26706         useless-if-before-free: Don't exit immediately upon open failure.
26707         * build-aux/useless-if-before-free: Exit 2 for errors.
26708         Upon failure to open a file, don't exit immediately.
26709         Rather, just warn and continue with any remaining files.
26710
26711 2008-02-10  Bruno Haible  <bruno@clisp.org>
26712
26713         New abstract list operation 'node_set_value'.
26714         * lib/gl_list.h (gl_list_node_set_value): New function.
26715         (struct gl_list_implementation): New field node_set_value.
26716         * lib/gl_list.c (gl_list_node_set_value): New function.
26717         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26718         (gl_array_list_implementation): Update.
26719         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26720         (gl_carray_list_implementation): Update.
26721         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26722         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26723         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26724         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26725         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26726         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26727         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26728         Update.
26729         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26730         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26731         (gl_sublist_list_implementation): Update.
26732
26733 2008-02-10  Bruno Haible  <bruno@clisp.org>
26734
26735         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26736         Needed when ELEMENT is #defined to 'some_type *'.
26737
26738 2008-02-10  Jim Meyering  <meyering@redhat.com>
26739
26740         New script and module: useless-if-before-free
26741         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26742         * build-aux/useless-if-before-free: New file.
26743         * modules/useless-if-before-free: New file.
26744
26745         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26746
26747         xstrtol_error: Fix typo.
26748         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26749         s/exit_failure/exit_status/.
26750
26751 2008-02-09  Jim Meyering  <meyering@redhat.com>
26752
26753         New script and module: gitlog-to-changelog
26754         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26755         * modules/gitlog-to-changelog: New file.
26756         * build-aux/gitlog-to-changelog: New file.
26757
26758 2008-02-08  Jim Meyering  <meyering@redhat.com>
26759
26760         Avoid two "parameter unused" warnings.
26761         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26762         Mark "st" as used.
26763
26764         Use "git COMMAND", not "git-COMMAND".
26765         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26766         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26767         * build-aux/git-version-gen: Use "git status", not "git-status".
26768
26769 2008-02-07  Bruno Haible  <bruno@clisp.org>
26770
26771         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26772         Avoids a crash on Windows Vista.
26773         Reported by Adam Strzelecki <ono@java.pl> via
26774         Simon Josefsson <simon@josefsson.org>.
26775
26776 2008-02-06  Bruno Haible  <bruno@clisp.org>
26777
26778         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26779         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26780         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26782         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26784         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26785         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26793         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26794         left-adjust flag.
26795         * tests/test-snprintf-posix.h (test_function): Likewise.
26796         * tests/test-sprintf-posix.h (test_function): Likewise.
26797         * tests/test-vasprintf-posix.c (test_function): Likewise.
26798         * doc/posix-functions/fprintf.texi: Update.
26799         * doc/posix-functions/printf.texi: Update.
26800         * doc/posix-functions/snprintf.texi: Update.
26801         * doc/posix-functions/sprintf.texi: Update.
26802         * doc/posix-functions/vfprintf.texi: Update.
26803         * doc/posix-functions/vprintf.texi: Update.
26804         * doc/posix-functions/vsnprintf.texi: Update.
26805         * doc/posix-functions/vsprintf.texi: Update.
26806         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26807
26808 2008-02-06  Bruno Haible  <bruno@clisp.org>
26809
26810         Fix bug introduced on 2008-01-26.
26811         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26812
26813 2008-02-06  Bruno Haible  <bruno@clisp.org>
26814
26815         Fix bug introduced on 2007-06-10.
26816         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26817         !NEED_PRINTF_FLAG_ZERO.
26818
26819 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26820
26821         getloadavg: use libperfstat on AIX5
26822         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26823
26824 2008-02-03  Bruno Haible  <bruno@clisp.org>
26825
26826         * lib/diffseq.h: Add comments about required #includes.
26827         Reported by Michael Biggs <gnulib@doubleplum.net>.
26828
26829 2008-02-01  Bruno Haible  <bruno@clisp.org>
26830
26831         * users.txt: Add gnuit.
26832
26833 2008-01-31  Bruno Haible  <bruno@clisp.org>
26834
26835         * lib/md4.c (set_uint32): Mark as inline.
26836         * lib/md5.c (set_uint32): Likewise.
26837         * lib/sha1.c (set_uint32): Likewise.
26838         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26839         * m4/md5.m4 (gl_MD5): Likewise.
26840         * m4/sha1.m4 (gl_SHA1): Likewise.
26841
26842 2008-01-31  Jim Meyering  <meyering@redhat.com>
26843
26844         Use "sizeof VAR", rather than a literal "4".
26845         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26846         * lib/md4.c (md4_read_ctx): Likewise.
26847         * lib/sha1.c (sha1_read_ctx): Likewise.
26848
26849 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26850
26851         * tests/test-sha1.c: New file, based on test-md5.c.
26852
26853         * modules/crypto/sha1-tests: New file.
26854
26855 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26856
26857         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26858
26859 2008-01-31  Jim Meyering  <meyering@redhat.com>
26860
26861         Prefer "sizeof v" over the equivalent "4".
26862         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26863         * lib/md5.c (set_uint32): Likewise.
26864         * lib/sha1.c (set_uint32): Likewise.
26865
26866 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26867
26868         * lib/sha1.c (set_uint32): Mark function as static.
26869
26870 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26871
26872         md2: clarify comments to say that alignment is not required.
26873         * lib/md2.h: Remove warning about alignment in comment.
26874         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26875         never been required.
26876
26877 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26878
26879         md4: adapt alignment constraint fix from sha1.
26880         * lib/md4.c (set_uint32): New function, from sha1.c
26881         (md4_read_ctx): Use it.
26882         (md4_finish_ctx): Doc fix.
26883         * lib/md4.h: Doc fix.
26884
26885 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26886
26887         md5: adapt alignment constraint fix from sha1.
26888         * lib/md5.c (set_uint32): New function, from sha1.c
26889         (md5_read_ctx): Use it.
26890         (md5_finish_ctx): Doc fix.
26891         * lib/md5.h: Doc fix.
26892
26893 2008-01-30  Peter Palfrader  <weasel@debian.org>
26894
26895         sha1: remove the result buffer alignment constraint
26896         * lib/sha1.c (set_uint32): New function.
26897         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26898         constraint.
26899         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26900         * lib/sha1.h: Likewise.
26901
26902 2008-01-30  Andreas Schwab  <schwab@suse.de>
26903             Bruno Haible  <bruno@clisp.org>
26904
26905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26906         correct definition of LDBL_MIN_EXP.
26907
26908 2008-01-30  Karl Berry  <karl@gnu.org>
26909
26910         * config/srclist-update: try to preserve x bit on updates.
26911         * config/srclistvars.sh: update for karl.
26912
26913 2008-01-29  Jim Meyering  <meyering@redhat.com>
26914
26915         vasnprintf.c: Avoid warning about unused label
26916         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26917         "overflow" label definition and associated code with the
26918         same cpp condition that guards the sole use of that label.
26919
26920 2008-01-26  Bruno Haible  <bruno@clisp.org>
26921
26922         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26923         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26924         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26925         * lib/isnanl-nolibm.h (isnanl): Likewise.
26926         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26927
26928 2008-01-26  Bruno Haible  <bruno@clisp.org>
26929
26930         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26931         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26932
26933 2008-01-26  Bruno Haible  <bruno@clisp.org>
26934
26935         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26936         GCC >= 4.0 built-in.
26937         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26938
26939 2008-01-26  Bruno Haible  <bruno@clisp.org>
26940
26941         Rename isnan, applicable to 'double' only, to isnand.
26942         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26943         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26944         (configure.ac): Update.
26945         (Include): Replace "isnan.h" with "isnand.h".
26946         * m4/isnand.m4: Renamed from m4/isnan.m4.
26947         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26948         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26949         instead of isnan.c.
26950         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26951         instead of HAVE_ISNAN_IN_LIBC.
26952         (isnand): Renamed from isnan.
26953         * lib/isnand.c: New file.
26954         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26955         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26956         (Makefile.am): Update.
26957         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26958         Include isnand.h instead of isnan.h.
26959         (main): Test isnand instead of isnan.
26960         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26961         isnan-nolibm.
26962         * modules/frexp (Depends-on): Likewise.
26963         * modules/frexp-tests (Depends-on): Likewise.
26964         * modules/frexp-nolibm (Depends-on): Likewise.
26965         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26966         * modules/isfinite (Depends-on): Likewise.
26967         * modules/round-tests (Depends-on): Likewise.
26968         * modules/signbit (Depends-on): Likewise.
26969         * modules/signbit-tests (Depends-on): Likewise.
26970         * modules/snprintf-posix (Depends-on): Likewise.
26971         * modules/sprintf-posix (Depends-on): Likewise.
26972         * modules/trunc-tests (Depends-on): Likewise.
26973         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26974         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26975         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26976         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26977         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26978         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26979         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26980         * modules/vasnprintf-posix (Depends-on): Likewise.
26981         * modules/vasprintf-posix (Depends-on): Likewise.
26982         * modules/vfprintf-posix (Depends-on): Likewise.
26983         * modules/vsnprintf-posix (Depends-on): Likewise.
26984         * modules/vsprintf-posix (Depends-on): Likewise.
26985         * lib/frexp.c: Include isnand.h instead of isnan.h.
26986         (ISNAN): Set to isnand instead of isnan.
26987         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26988         (gl_isfinited): Use isnand instead of isnan.
26989         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26990         (gl_signbitd): Use isnand instead of isnan.
26991         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26992         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26993         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26994         (main): Use isnand instead of isnan.
26995         * tests/test-round1.c: Include isnand.h.
26996         (main): Use isnand instead of isnan.
26997         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26998         (ISNAN): Set to isnand instead of isnan.
26999         * tests/test-trunc1.c: Include isnand.h.
27000         (main): Use isnand instead of isnan.
27001         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27002         (equal): Use isnand instead of isnan.
27003         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27004         isnand-nolibm.
27005         * NEWS: Mention the change.
27006
27007 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27008             Bruno Haible  <bruno@clisp.org>
27009
27010         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27011         the GCC builtins for signbits are present and set
27012         REPLACE_SIGNBIT_USING_GCC if so.
27013         * lib/math.in.h (signbit): Define using GCC builtins if
27014         REPLACE_SIGNBIT_USING_GCC is set.
27015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27016         REPLACE_SIGNBIT_USING_GCC.
27017         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27018
27019 2008-01-25  Jim Meyering  <meyering@redhat.com>
27020
27021         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27022         * lib/poll.c: Include <config.h>, not "config.h".
27023         * tests/test-getaddrinfo.c: Likewise.
27024
27025 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27026
27027         * modules/sockets-tests: New file.
27028
27029 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27030
27031         * modules/sockets: New module, can be used to call WSA_Startup and
27032         WSA_Cleanup when needed.
27033
27034         * lib/sockets.h, lib/sockets.c: New files.
27035
27036         * m4/sockets.m4: New file.
27037
27038         * tests/test-sockets.c: New file.
27039
27040 2008-01-19  Bruno Haible  <bruno@clisp.org>
27041
27042         * doc/posix-headers: Renamed from doc/headers.
27043         * doc/posix-functions: Renamed from doc/functions.
27044         * doc/gnulib.texi: Update.
27045
27046 2008-01-19  Bruno Haible  <bruno@clisp.org>
27047
27048         * doc/glibc-functions/strcasestr.texi: Include contents of
27049         doc/functions/strcasestr.texi, fixing the list of platforms.
27050         * doc/functions/strcasestr.texi: Remove file.
27051
27052 2008-01-19  Bruno Haible  <bruno@clisp.org>
27053
27054         * doc/glibc-functions/memmem.texi: Include contents of
27055         doc/functions/memmem.texi.
27056         * doc/functions/memmem.texi: Remove file.
27057
27058 2008-01-18  Bruno Haible  <bruno@clisp.org>
27059
27060         * doc/glibc-functions/*.texi: New files.
27061         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27062         to use the new files.
27063
27064 2008-01-17  Bruno Haible  <bruno@clisp.org>
27065
27066         * tests/test-gethostname.c (main): Fix printf statement.
27067
27068 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27069
27070         * modules/gethostname-tests: New file.
27071
27072         * tests/test-gethostname.c: New file.
27073
27074 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27075
27076         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27077         used by the UNAME case.  Reported by Bruno Haible
27078         <bruno@clisp.org>.
27079
27080 2008-01-17  Eric Blake  <ebb9@byu.net>
27081
27082         Convert c-strcasestr to be more efficient.
27083         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27084         (Depends-on): Add c-strcase, remove malloca, strnlen.
27085         * tests/test-c-strcasestr.c (main): Enhance test.
27086         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27087
27088 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27089
27090         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27091         Use it in creating po/Makevars.
27092
27093 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27094
27095         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27096         Applications that requires it should initialize libgcrypt
27097         manually.
27098
27099 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27100
27101         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27102
27103 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27104
27105         Fix problem with getdate on mingw32 reported by Simon Josefsson
27106         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27107         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27108         tzname", when deciding whether to declare tzname.
27109         * lib/strftime.c (tzname): Likewise.
27110
27111 2008-01-15  Bruno Haible  <bruno@clisp.org>
27112
27113         Work around a MacOS X 10.5 bug in frexpl().
27114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27115         * doc/functions/frexpl.texi: Document the bug.
27116         Reported by Elias Pipping <pipping@gentoo.org>.
27117
27118 2008-01-14  Eric Blake  <ebb9@byu.net>
27119
27120         Touch up previous patch.
27121         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27122         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27123
27124         Convert strcasestr module to use Two-Way algorithm.
27125         * modules/strcasestr-simple: New module, based on the old
27126         strcasestr, but with Two-Way rather than KMP.
27127         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27128         * lib/string.in.h (rpl_strcasestr): Declare.
27129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27130         performance.
27131         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27132         * modules/string (Makefile.am): Support strcasestr.
27133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27134         * modules/strcasestr-tests (Depends-on): Check for alarm.
27135         * tests/test-strcasestr.c: Augment test.
27136         * lib/str-two-way.h: Clean up stray macro.
27137         * NEWS: Document new module.
27138         * MODULES.html.sh (string handling): Likewise.
27139         * doc/functions/strcasestr.texi: New file.
27140         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27141         here, since it is not a POSIX function.
27142
27143 2008-01-14  Colin Watson  <cjwatson@debian.org>
27144             Bruno Haible  <bruno@clisp.org>
27145
27146         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27147         works fine; if not, set REPLACE_STRSIGNAL.
27148         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27150         REPLACE_STRSIGNAL.
27151         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27152         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27153         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27154
27155 2008-01-14  Bruno Haible  <bruno@clisp.org>
27156
27157         * modules/strsignal (Include): Change to <string.h>.
27158
27159 2008-01-14  Colin Watson  <cjwatson@debian.org>
27160
27161         * modules/argp (Notice): Add a notice recommending to change
27162         XGETTEXT_OPTIONS.
27163         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27164
27165 2008-01-13  Colin Watson  <cjwatson@debian.org>
27166
27167         * modules/strsignal-tests: New file.
27168         * tests/test-strsignal.c: New file.
27169
27170         * lib/strsignal.c: New file, from glibc with modifications.
27171         * lib/siglist.h: New file, from glibc with modifications.
27172         * lib/string.in.h (strsignal): New declaration.
27173         * m4/strsignal.m4: New file.
27174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27175         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27176         * modules/strsignal: New file.
27177         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27178         HAVE_DECL_STRSIGNAL.
27179
27180 2008-01-13  Bruno Haible  <bruno@clisp.org>
27181
27182         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27183         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27184         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27185         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27186
27187 2008-01-13  Bruno Haible  <bruno@clisp.org>
27188
27189         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27190         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27191         * lib/argp.h (__attribute__): Likewise.
27192         * lib/c-stack.c (__attribute__): Likewise.
27193         * lib/error.h (__attribute__): Likewise.
27194         * lib/fts.c (__attribute__): Likewise.
27195         * lib/openat.h (__attribute__): Likewise.
27196         * lib/stdio.in.h (__attribute__): Likewise.
27197         * lib/string.in.h (__attribute__): Likewise.
27198         * lib/utimens.c (__attribute__): Likewise.
27199         * lib/vasnprintf.h (__attribute__): Likewise.
27200         * lib/xalloc.h (__attribute__): Likewise.
27201         * lib/xprintf.h (__attribute__): Likewise.
27202         * lib/xstrtol.h (__attribute__): Likewise.
27203         * lib/xvasprintf.h (__attribute__): Likewise.
27204
27205 2008-01-12  Bruno Haible  <bruno@clisp.org>
27206
27207         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27208         * doc/glibc-headers/a.out.texi: New file.
27209         * doc/glibc-headers/aliases.texi: New file.
27210         * doc/glibc-headers/alloca.texi: New file.
27211         * doc/glibc-headers/ar.texi: New file.
27212         * doc/glibc-headers/argp.texi: New file.
27213         * doc/glibc-headers/argz.texi: New file.
27214         * doc/glibc-headers/byteswap.texi: New file.
27215         * doc/glibc-headers/crypt.texi: New file.
27216         * doc/glibc-headers/endian.texi: New file.
27217         * doc/glibc-headers/envz.texi: New file.
27218         * doc/glibc-headers/err.texi: New file.
27219         * doc/glibc-headers/error.texi: New file.
27220         * doc/glibc-headers/execinfo.texi: New file.
27221         * doc/glibc-headers/fpu_control.texi: New file.
27222         * doc/glibc-headers/fstab.texi: New file.
27223         * doc/glibc-headers/fts.texi: New file.
27224         * doc/glibc-headers/getopt.texi: New file.
27225         * doc/glibc-headers/ieee754.texi: New file.
27226         * doc/glibc-headers/ifaddrs.texi: New file.
27227         * doc/glibc-headers/libintl.texi: New file.
27228         * doc/glibc-headers/mcheck.texi: New file.
27229         * doc/glibc-headers/mntent.texi: New file.
27230         * doc/glibc-headers/obstack.texi: New file.
27231         * doc/glibc-headers/paths.texi: New file.
27232         * doc/glibc-headers/printf.texi: New file.
27233         * doc/glibc-headers/pty.texi: New file.
27234         * doc/glibc-headers/resolv.texi: New file.
27235         * doc/glibc-headers/shadow.texi: New file.
27236         * doc/glibc-headers/sysexits.texi: New file.
27237         * doc/glibc-headers/ttyent.texi: New file.
27238
27239 2008-01-12  Jim Meyering  <meyering@redhat.com>
27240
27241         announce-gen: emit Gnulib's git-based version string.
27242         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27243         New option --gnulib-version=V, where V is expected to be
27244         the output of running git describe in the gnulib directory.
27245         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27246         not useful, and plan to stop publishing an xdelta file with each
27247         coreutils release.
27248
27249         * build-aux/announce-gen: Also check for lzma-compressed files.
27250
27251 2008-01-11  Bruno Haible  <bruno@clisp.org>
27252
27253         * tests/test-memmem.c (main): Increase maximum allowed time.
27254         * tests/test-strstr.c (main): Likewise.
27255
27256 2008-01-11  Bruno Haible  <bruno@clisp.org>
27257
27258         * doc/functions/memmem.texi: Add more precisions about platforms.
27259         * doc/functions/strstr.texi: Likewise.
27260
27261 2008-01-10  Eric Blake  <ebb9@byu.net>
27262
27263         * m4/strstr.m4: Delete cruft from copy-n-paste.
27264         Reported by Bruno Haible.
27265
27266 2008-01-10  Bruno Haible  <bruno@clisp.org>
27267
27268         Make c-strstr rely on strstr.
27269         * lib/c-strstr.c: Don't include str-kmp.h.
27270         (c_strstr): Define in terms of strstr.
27271         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27272         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27273
27274 2008-01-10  Bruno Haible  <bruno@clisp.org>
27275
27276         * doc/gnulib.texi (String Functions in C Locale): New section.
27277         * doc/c-ctype.texi: New file.
27278         * doc/c-strcase.texi: New file.
27279         * doc/c-strcaseeq.texi: New file.
27280         * doc/c-strcasestr.texi: New file.
27281         * doc/c-strstr.texi: New file.
27282         * doc/c-strtod.texi: New file.
27283         * doc/c-strtold.texi: New file.
27284
27285 2008-01-10  Eric Blake  <ebb9@byu.net>
27286
27287         * lib/relocatable.h: Fix a comment.
27288
27289 2008-01-10  Eric Blake  <ebb9@byu.net>
27290
27291         Share two-way algorithm.
27292         * lib/str-two-way.h: New file, merged from...
27293         * lib/memmem.c: ...here...
27294         * lib/strstr.c: ...and here.
27295         * modules/memmem (Files): Use it.
27296         * modules/strstr (Files): Likewise.
27297
27298         Avoid quadratic strstr implementations.
27299         * lib/strstr.c: New file.
27300         * m4/strstr.m4: Likewise.
27301         * modules/strstr: Likewise.
27302         * modules/strstr-tests: Likewise.
27303         * tests/test-strstr.c: Likewise.
27304         * lib/string.in.h (rpl_strstr): Declare.
27305         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27307         * modules/string (Makefile.am): Likewise.
27308         * MODULES.html.sh (string handling): Mention new module.
27309         * doc/functions/strstr.texi (strstr): Document the bug.
27310
27311 2008-01-10  Bruno Haible  <bruno@clisp.org>
27312
27313         * lib/relocatable.h (relocate): State whether result is freshly
27314         allocated or not.
27315         * lib/relocatable.c (relocate): Return a freshly allocated string
27316         instead of a pointer to a privately held string.
27317         Reported by Sylvain Beucler <beuc@gnu.org>.
27318
27319 2008-01-10  Colin Watson  <cjwatson@debian.org>
27320
27321         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27322         s/S_ISNLK/S_ISLNK/.
27323
27324 2008-01-09  Bruno Haible  <bruno@clisp.org>
27325
27326         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27327         and other files.
27328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27329         if it's only a guess.
27330         * modules/memmem: Simplify by depending on memmem-simple.
27331
27332 2008-01-09  Bruno Haible  <bruno@clisp.org>
27333
27334         Work around OpenBSD 4.0 tdelete() bug.
27335         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27336         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27337         macros and don't redefine the enum values.
27338         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27339         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27340         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27341
27342 2008-01-09  Bruno Haible  <bruno@clisp.org>
27343
27344         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27345         (main): Don't perform the tests if setlocale did not install a UTF-8
27346         locale. Needed on OpenBSD 4.0.
27347         * modules/wcwidth-tests (Depends-on): Add localcharset.
27348
27349 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27350
27351         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27352         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27353         * NEWS: announce this.
27354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27355
27356 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27357         and Eric Blake  <ebb9@byu.net>
27358
27359         Add memmem-simple module.
27360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27361         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27362         * modules/memmem-simple: New file.
27363         * modules/memmem (Description): Tweak.
27364         * MODULES.html.sh (string handling): Mention new module.
27365         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27366         addressed by memmem-simple.
27367         * NEWS: Document the difference.
27368
27369 2008-01-09  Eric Blake  <ebb9@byu.net>
27370
27371         Give gcc some memmem optimization hints.
27372         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27373         (strcasestr): Declare as pure.
27374         * modules/memmem (Maintainer): Claim my implementation.
27375
27376 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27377
27378         Support AIX 6.1 and higher.
27379         * build-aux/config.libpath: Likewise.
27380         * build-aux/config.rpath: Likewise.
27381
27382 2008-01-08  Jim Meyering  <meyering@redhat.com>
27383             Bruno Haible  <bruno@clisp.org>
27384
27385         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27386         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27387         Reported by Peter Fales in
27388         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27389
27390 2008-01-08  Bruno Haible  <bruno@clisp.org>
27391
27392         * modules/unictype/category-of (Depends-on): Add
27393         unictype/category-none.
27394         * modules/unictype/category-and-tests (Depends-on): Add
27395         unictype/category-{L,N,Lu,Nd}.
27396         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27397         * modules/unictype/category-or-tests (Depends-on): Add
27398         unictype/category-{L,N}.
27399         * modules/unictype/category-name-tests (Depends-on): Add
27400         unictype/category-{Z,Nl}.
27401         Reported by Simon Josefsson.
27402
27403 2008-01-08  Bruno Haible  <bruno@clisp.org>
27404
27405         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27406         convention better.
27407         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27408         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27409         Reported by Peter Miller <millerp@canb.auug.org.au>.
27410
27411 2008-01-08  Eric Blake  <ebb9@byu.net>
27412
27413         Rewrite memmem to guarantee linear complexity without malloc.
27414         * lib/memmem.c (memmem): Use Two-Way rather than
27415         Knuth-Morris-Pratt, to allow O(1) space usage.
27416         (critical_factorization, two_way_short_needle)
27417         (two_way_long_needle): New functions.
27418         (knuth_morris_pratt): Delete.
27419         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27420         Add stdint.
27421         * tests/test-memmem.c (main): Add tests for periodic needle and
27422         sublinear performance.
27423         * doc/functions/memmem.texi (memmem): Document other deficiencies
27424         in cygwin and older glibc.
27425
27426 2008-01-08  Bruno Haible  <bruno@clisp.org>
27427
27428         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27429         augmentation.
27430
27431 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27432
27433         Add a configure time option: --disable-acl.
27434         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27435         AC_ARG_ENABLE(acl).
27436
27437 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27438
27439         * tests/test-localename.c: Don't include obsolete "setenv.h".
27440
27441         * modules/localename-tests (Depends-on): Need unsetenv.
27442
27443 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27444
27445         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27446
27447 2008-01-06  Colin Watson  <cjwatson@debian.org>
27448
27449         * users.txt: Add man-db.
27450
27451 2008-01-07  Bruno Haible  <bruno@clisp.org>
27452
27453         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27454         previous section name.
27455
27456 2008-01-07  Bruno Haible  <bruno@clisp.org>
27457
27458         * lib/progname.c (set_program_name): Don't strip off a leading
27459         "lt-" prefix outside a .libs directory.
27460         Suggested by Paul Eggert.
27461
27462 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27463             Bruno Haible  <bruno@clisp.org>
27464
27465         Improve memory cleanup in 'relocatable' module.
27466         * lib/relocatable.h (compute_curr_prefix): Change return type to
27467         'char *'.
27468         * lib/relocatable.c (compute_curr_prefix): Change return type to
27469         'char *'. Free curr_installdir after use.
27470         (relocate): Free curr_prefix_better after use.
27471         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27472
27473 2008-01-01  Bruno Haible  <bruno@clisp.org>
27474
27475         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27476         failure on older glibc systems.
27477         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27478
27479 2008-01-05  Eric Blake  <ebb9@byu.net>
27480
27481         Avoid quadratic system memmem.
27482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27483         Reported by Ralf Wildenhues.
27484
27485         Fix memmem test for mingw.
27486         * modules/memmem-tests (configure.ac): Check for alarm.
27487         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27488         it.
27489         * doc/functions/memmem.texi: New file.
27490         * doc/gnulib.texi (Function Substitutes): Add memmem.
27491         Reported by Bruno Haible.
27492
27493 2008-01-04  Bruno Haible  <bruno@clisp.org>
27494
27495         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27496         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27497         gl_HEADER_STRING_H_DEFAULTS.
27498
27499 2008-01-04  Eric Blake  <ebb9@byu.net>
27500
27501         Shorten duration of memmem test.
27502         * tests/test-memmem.c (main): Use alarm to declare failure if test
27503         is taking too long.
27504         Reported by Ralf Wildenhues.
27505
27506 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27507
27508         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27509         string, needed by strerror.
27510
27511 2008-01-03  Colin Watson  <cjwatson@debian.org>
27512             Bruno Haible  <bruno@clisp.org>
27513
27514         * doc/gnulib-tool.texi (Localization): New section.
27515
27516 2008-01-02  Bruno Haible  <bruno@clisp.org>
27517
27518         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27519         variables to 'unsigned char *' type.
27520         Reported by Paul Eggert.
27521
27522 2008-01-02  Jim Meyering  <jim@meyering.net>
27523
27524         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27525
27526 2007-12-31  Jim Meyering  <jim@meyering.net>
27527
27528         Avoid use of private FTS type name.
27529         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27530
27531 2007-12-30  Karl Berry  <karl@gnu.org>
27532
27533         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27534         work around defect in Texinfo and/or the standalone Info browser.
27535
27536 2007-12-30  Bruno Haible  <bruno@clisp.org>
27537
27538         Unify 5 copies of the KMP code.
27539         * lib/str-kmp.h: New file.
27540         * lib/c-strcasestr.c: Include str-kmp.h.
27541         (knuth_morris_pratt): Remove function.
27542         (c_strcasestr): Update.
27543         * lib/c-strstr.c: Include str-kmp.h.
27544         (knuth_morris_pratt): Remove function.
27545         (c_strcasestr): Update.
27546         * lib/mbscasestr.c: Include str-kmp.h.
27547         (knuth_morris_pratt_unibyte): Remove function.
27548         * lib/mbsstr.c: Include str-kmp.h.
27549         (knuth_morris_pratt_unibyte): Remove function.
27550         * lib/strcasestr.c: Include str-kmp.h.
27551         (knuth_morris_pratt): Remove function.
27552         (strcasestr): Update.
27553         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27554         * modules/c-strstr (Files): Likewise.
27555         * modules/mbscasestr (Files): Likewise.
27556         * modules/mbsstr (Files): Likewise.
27557         * modules/strcasestr (Files): Likewise.
27558         Suggested by Paul Eggert.
27559
27560 2007-12-30  Bruno Haible  <bruno@clisp.org>
27561
27562         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27563         defined.
27564
27565 2007-12-30  Bruno Haible  <bruno@clisp.org>
27566
27567         * lib/xmalloca.h: Include xalloc.h.
27568         (xnmalloca): New macro.
27569
27570 2007-12-30  Bruno Haible  <bruno@clisp.org>
27571
27572         * lib/malloca.h (nmalloca): New macro.
27573         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27574         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27575         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27576         knuth_morris_pratt_multibyte): Likewise.
27577         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27578         knuth_morris_pratt_multibyte): Likewise.
27579         * lib/memmem.c (knuth_morris_pratt): Likewise.
27580         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27581
27582 2007-12-25  Bruno Haible  <bruno@clisp.org>
27583
27584         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27585         * lib/glob.c: Don't include openat.h.
27586         (link_exists2_p): Add back the code that deals with the
27587         !GLOB_ALTDIRFUNC case.
27588         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27589         let it do the filename concatenation.
27590         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27591         * modules/glob (Depends-on): Remove openat.
27592
27593 2007-12-31  Bruno Haible  <bruno@clisp.org>
27594
27595         * modules/dirfd (License): Change to LGPLv2+.
27596         Approved by Jim Meyering.
27597
27598 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27599
27600         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27601         when multiplying M by sizeof (size_t).
27602
27603 2007-12-10  Martin Lambers  <marlam@marlam.de>
27604
27605         Override getpagesize on mingw.
27606         * lib/getpagesize.c: New file.
27607         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27608         * modules/getpagesize (Files): Add lib/getpagesize.c.
27609         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27611         REPLACE_GETPAGESIZE.
27612         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27613
27614 2007-12-25  Bruno Haible  <bruno@clisp.org>
27615
27616         * modules/localcharset (Notice): New field.
27617         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27618         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27619
27620 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27621             Bruno Haible  <bruno@clisp.org>
27622
27623         Avoid using the syntax symbol() in formatted documentation.
27624         * MODULES.html.sh (func_module): When replacing symbol() with a
27625         hyperlink, remove the parentheses. Show an error if some remain.
27626         Recognize and render the '...' syntax.
27627         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27628         Rework. Add paragraph about GCC's inlining.
27629         * doc/alloca.texi: Likewise.
27630         * doc/error.texi: Remove parentheses from symbol reference.
27631         * doc/gnulib-intro.texi: Likewise.
27632         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27633         * modules/fnmatch (Description): Reword to say "the ... function".
27634         * modules/full-read (Description): Likewise.
27635         * modules/full-write (Description): Likewise.
27636         * modules/safe-read (Description): Likewise.
27637         * modules/safe-write (Description): Likewise.
27638         * modules/strchrnul (Description): Likewise.
27639         * modules/trim (Description): Likewise.
27640         * modules/error (Description): Remove parentheses from symbol
27641         references.
27642         * modules/verror (Description): Likewise.
27643         Reported by Karl Berry.
27644
27645 2007-12-25  Bruno Haible  <bruno@clisp.org>
27646
27647         Fixup after 2007-10-16 commit.
27648         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27649
27650 2007-12-24  Bruno Haible  <bruno@clisp.org>
27651
27652         Make --enable-relocatable work with DESTDIR.
27653         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27654         to compute installdir from destprog.
27655         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27656         also set the RELOC_DESTDIR variable.
27657         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27658
27659 2007-12-24  Bruno Haible  <bruno@clisp.org>
27660
27661         Fix link error due to xalloc_die().
27662         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27663         of xreadlink.
27664         * lib/relocwrapper.c: Update comments.
27665         * build-aux/install-reloc: Remove xreadlink.c from file list.
27666         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27667         xreadlink.c.
27668         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27669
27670 2007-12-24  Bruno Haible  <bruno@clisp.org>
27671
27672         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27673         * lib/setenv.h: Remove file.
27674         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27675         lib/setenv.h.
27676         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27677         (Depends-on): Add stdlib.
27678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27679         gl_FUNC_UNSETENV.
27680         (Include): Replace setenv.h with <stdlib.h>.
27681         * modules/unsetenv: New file.
27682         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27683         * lib/unsetenv.c: Include <stdlib.h> first.
27684         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27685         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27686         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27687         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27688         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27689         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27691         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27692         * doc/functions/unsetenv.texi: Update.
27693         * modules/xsetenv (Depends-on): Add unsetenv.
27694         * modules/getdate (Depends-on): Likewise.
27695         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27696         * lib/xsetenv.c: Don't include setenv.h.
27697         * lib/getdate.y: Likewise.
27698         * lib/relocwrapper.c: Likewise.
27699         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27700         (Depends-on): Add stdlib.
27701         * NEWS: Mention the changes.
27702         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27703
27704 2007-12-23  Bruno Haible  <bruno@clisp.org>
27705
27706         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27707         indentation.
27708
27709 2007-12-23  Bruno Haible  <bruno@clisp.org>
27710
27711         * lib/c-strcasestr.c: Add more comments.
27712         * lib/c-strstr.c: Likewise.
27713         * lib/mbscasestr.c: Likewise.
27714         * lib/mbsstr.c: Likewise.
27715         * lib/strcasestr.c: Likewise.
27716         * lib/memmem.c: Likewise.
27717
27718 2007-12-23  Bruno Haible  <bruno@clisp.org>
27719
27720         * tests/test-memmem.c: Include <string.h> first.
27721
27722 2007-12-22  Bruno Haible  <bruno@clisp.org>
27723
27724         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27725         the contents of $testsbase.
27726         Reported by Ralf Wildenhues.
27727
27728 2007-12-22  Bruno Haible  <bruno@clisp.org>
27729
27730         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27731         two variables local_ldadd_before, local_ldadd_last.
27732
27733 2007-12-20  Eric Blake  <ebb9@byu.net>
27734
27735         Work around circular library issue when cross-compiling.
27736         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27737         that progname.o does not need to pull in rpl_memcmp.
27738
27739 2007-12-19  Eric Blake  <ebb9@byu.net>
27740
27741         Fix memmem to avoid O(n^2) worst-case complexity.
27742         * lib/memmem.c (knuth_morris_pratt): New function.
27743         (memmem): Use it if first few naive iterations fail.
27744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27745         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27746         * modules/memchr (License): Likewise.
27747         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27748         malloca.
27749         * tests/test-memmem.c: Rewrite, borrowing ideas from
27750         test-mbsstr1.c; the old version wouldn't even compile!
27751         * modules/memmem-tests: New file.
27752         * lib/string.in.h (rpl_memmem): Add declaration.
27753         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27755         REPLACE_MEMMEM.
27756
27757 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27758
27759         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27760         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27761         before any system include files, and undef after them all.  This
27762         should fix a problem on VMS reported by John E. Malmberg in
27763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27764
27765 2007-12-17  Eric Blake  <ebb9@byu.net>
27766
27767         Revert addition of verify, for BSD/OS.
27768         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27769         can't handle large files, for the sake of obsolete platforms.
27770         * modules/fseeko (Depends-on): Remove verify.
27771         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27772         * doc/functions/ftello.texi (ftello): Likewise.
27773         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27774         Reported by Larry Jones.
27775
27776 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27777
27778         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27779         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27780
27781 2007-12-17  Jim Meyering  <meyering@redhat.com>
27782
27783         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27784         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27785         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27786         * modules/getcwd (Depends-on): Add openat.
27787         Reported by Petr Salinger.
27788
27789 2007-12-17  Bruno Haible  <bruno@clisp.org>
27790
27791         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27792         avoid a segmentation fault of the configure test on x86_64 systems.
27793
27794 2007-12-15  Jim Meyering  <meyering@redhat.com>
27795
27796         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27797
27798 2007-12-13  Eric Blake  <ebb9@byu.net>
27799
27800         Another fseek test.
27801         * tests/test-fseek.c (main): Also test ungetc handling.
27802         * tests/test-fseeko.c (main): Likewise.
27803         * modules/fseeko (Depends-on): Add verify.
27804         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27805         large.
27806         Reported by Larry Jones.
27807
27808         Fix fseeko on mingw.
27809         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27810         seek.
27811
27812         Beef up fseek tests.
27813         * tests/test-fseek.c (main): Also test eof handling.
27814         * tests/test-fseeko.c (main): Likewise.
27815         Reported by Larry Jones.
27816
27817 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27818
27819         Fix fseeko on BSD-based platforms.
27820         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27821         successful seek.
27822
27823 2007-12-12  Eric Blake  <ebb9@byu.net>
27824
27825         Allow circular dependency of separate libtests.a
27826         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27827         when use_libtests.
27828
27829 2007-12-11  Eric Blake  <ebb9@byu.net>
27830
27831         Fix bug with -0.0L in previous patch.
27832         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27833         * tests/test-isnan.c (main): Also test on zeroes.
27834         * tests/test-isnanf.c (main): Likewise.
27835         * tests/test-isnanl.h (main): Likewise.
27836
27837         Detect pseudo-denormals on x86 even when cross-compiling.
27838         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27839         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27840         invalid bit patterns that happen to satisfy ==.
27841
27842         Avoid link failures with separate libtests.a.
27843         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27844         last, to satisfy circular dependencies.
27845
27846 2007-12-11  Eric Blake  <ebb9@byu.net>
27847         and Bruno Haible  <bruno@clisp.org>
27848
27849         Fix OpenBSD 4.0 <float.h> handling of long double.
27850         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27851         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27852         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27853
27854 2007-12-11  Jim Meyering  <meyering@redhat.com>
27855
27856         * users.txt: Add libvirt.
27857
27858         Support versions of autoconf prior to 2.59c.
27859         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27860         if it is not already defined.
27861
27862 2007-12-09  Bruno Haible  <bruno@clisp.org>
27863
27864         Let 'gnulib-tool --import' collect sources needed for the tests in
27865         tests/ rather than in lib/.
27866         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27867         argument. If true, add rules to generate libtests.a, and put libtests.a
27868         into $(LDADD). Consider source files in subdirectories and set
27869         uses_subdirs.
27870         (func_emit_initmacro_start, func_emit_initmacro_end,
27871         func_emit_initmacro_done): Pass all arguments explicitly.
27872         (func_import): Determine two module lists main_modules,
27873         testsrelated_modules. Determine use_libtests. Determine two variables
27874         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27875         instead of just sed_transform_lib_file. Determine two variables
27876         main_files and testsrelated_files. Compute 'files' as the union of
27877         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27878         func_add_or_update. In the generated gnulib-comp.m4, collect the
27879         object files for tests/ in different variables than those for lib/.
27880         Substitute LIBTESTS_LIBDEPS.
27881         (func_create_testdir): Combine the uses_subdirs results from
27882         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27883
27884 2007-12-09  Bruno Haible  <bruno@clisp.org>
27885
27886         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27887         the build-aux directory.
27888
27889 2007-12-09  Bruno Haible  <bruno@clisp.org>
27890
27891         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27892         introduced on 2006-09-09.
27893
27894 2007-12-07  Jim Meyering  <meyering@redhat.com>
27895
27896         Let these macros work also with autoconf-2.59.
27897         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27898         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27900
27901 2007-12-06  Jim Meyering  <meyering@redhat.com>
27902
27903         Avoid a configure-time syntax error in gl_FUNC_ACL.
27904         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27905         function in each branch, before testing the cache variable.
27906
27907 2007-12-04  Eric Blake  <ebb9@byu.net>
27908
27909         Make scripts executable.
27910         * build-aux/config.guess: Add execute permissions.
27911         * build-aux/config.sub: Likewise.
27912         * build-aux/gendocs.sh: Likewise.
27913
27914         Fix frexp on mingw.
27915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27916         cross-compiling.
27917         * doc/functions/frexp.texi (frexp): Document the bug.
27918
27919         Make cygwin fseeko check more reliable.
27920         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27921         version numbers, rather than unrelated feature check.
27922         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27923         * doc/functions/ftello.texi (ftello): Likewise.
27924         Reported by Bruno Haible.
27925
27926         * m4/strerror.m4: Bump version number.
27927
27928 2007-12-03  Bruno Haible  <bruno@clisp.org>
27929
27930         * doc/functions/mprotect.texi: Mention the mingw problem.
27931
27932 2007-12-03  Eric Blake  <ebb9@byu.net>
27933
27934         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27935         REPLACE_STRERROR is initialized before this macro.
27936
27937 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27938
27939         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27940         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27941         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27942         put -lsec in even for programs other than 'ls'.  This fixes a problem
27943         for gettext reported by Bruno Haible in
27944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27945         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27946         Add support for Solaris 10.  This isn't efficient, but should get the
27947         job done for now.
27948
27949 2007-12-03  James Youngman  <jay@gnu.org>
27950
27951         * doc/regexprops-generic.texi: change "an close-group" to "a
27952         close-group" and "illegal" to "not allowed".
27953
27954 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27955
27956         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27957         pr_byname.h. Needed for the rare case when the maintainer has done
27958         "make maintainer-clean" in the source directory and then attempts a
27959         build outside the source directory.
27960         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27961         scripts_byname.h.
27962
27963 2007-12-02  Martin Lambers <marlam@marlam.de>
27964             Bruno Haible  <bruno@clisp.org>
27965
27966         * lib/getpagesize.h: Remove file.
27967         * lib/unistd.in.h: Include declaration of getpagesize here.
27968         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27969         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27970         HAVE_SYS_PARAM_H.
27971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27972         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27973         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27974         (Depends-on): Add unistd.
27975         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27976         (Include): Use <unistd.h> instead of getpagesize.h.
27977         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27978         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27979         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27980         gl_GETPAGESIZE invocation, already handled by module dependency.
27981         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27982
27983 2007-12-02  Bruno Haible  <bruno@clisp.org>
27984
27985         * modules/strings-tests: New file.
27986         * tests/test-strings.c: New file.
27987
27988         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27989         * lib/strings.in.h: New file.
27990         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27991         * m4/strings_h.m4: New file.
27992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27993         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27994         * modules/strings: New file.
27995         * modules/string (Makefile.am): Update.
27996         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27997         Reported by Karl Berry.
27998
27999 2007-12-01  Eric Blake  <ebb9@byu.net>
28000
28001         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28002         accomodate fix in cygwin 1.5.25.
28003
28004 2007-12-01  Jim Meyering  <meyering@redhat.com>
28005
28006         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28007         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28008         that would inhibit utf8-optimization of a regexp containing line-
28009         or buffer-anchors, e.g., `^', `$'.
28010
28011 2007-11-30  Bruno Haible  <bruno@clisp.org>
28012
28013         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28014         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28015         glthread_recursive_lock_init.
28016         * lib/lock.c (glthread_recursive_lock_init)
28017         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28018         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28019
28020 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28021
28022         New function qset_acl, like set_acl but with syscall semantics.
28023         * lib/acl.h (qset_acl): New decl.
28024         * lib/acl.c (qset_acl): New function.
28025         (set_acl): Use new function.  Use more-consistent diagnostics.
28026
28027 2007-11-28  Jim Meyering  <meyering@redhat.com>
28028
28029         * modules/physmem (License): Change from GPL to LGPLv2+.
28030
28031 2007-11-26  Bruno Haible  <bruno@clisp.org>
28032
28033         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28034         'long double' type has excess precision.
28035         Reported by Jim Meyering in
28036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28037
28038 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28039
28040         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28041         Sync from <http://gnu.org/licenses>.
28042         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28043         with license text from same location.
28044         * doc/maintain.texi, doc/standards.texi:  Sync from
28045         <http://savannah.gnu.org/projects/gnustandards>.
28046
28047 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28048         and Jim Meyering  <meyering@redhat.com>
28049
28050         Adjust getdate' grammar to accept a slightly more regular language.
28051         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28052         Before, the former was rejected.
28053         * lib/getdate.y (digits_to_date_time): New function, factored
28054         out of ...
28055         (number): ...here.  Just call digits_to_date_time.
28056         (hybrid): New non-terminal to handle an <unsigned number,
28057         signed relative offset> sequence consistently.
28058
28059 2007-11-18  Jim Meyering  <meyering@redhat.com>
28060
28061         Pull my changes from coreutils:
28062         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28063         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28064         use of $gnulib_tool_option_extras, so that it's separated from the
28065         preceding argument.
28066
28067         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28068         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28069         parent destination directories before copying a file into place.
28070
28071 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28072
28073         bootstrap: work also with 4-argument variant of AC_INIT
28074         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28075
28076 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28077
28078         Port test-getaddrinfo to Solaris.
28079         Problem reported by Bruno Haible in
28080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28081         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28082         explanation of setting 'hints'.
28083         Don't reject an implementation merely because it returns EAI_SERVICE.
28084         (EAI_SERVICE): Define to 0 if not defined.
28085
28086 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28087
28088         The license of gnu-make and posix-shell is now "GPLed build tool".
28089         * modules/gnu-make (License): Likewise.
28090         * modules/posix-shell (License): Likewise.
28091
28092         New module posix-shell, for determining a POSIX shell
28093         or perhaps something that is close enough to a POSIX shell.
28094         * m4/posix-shell.m4: New file.
28095         * modules/posix-shell: New file.
28096
28097         * MODULES.html.sh: Mention new module.
28098
28099         New module gnu-make, for determining whether we're using GNU Make.
28100         * m4/gnu-make.m4: New file.
28101         * modules/gnu-make: New file.
28102         * MODULES.html.sh: Mention new module.
28103
28104 2007-11-14  Jim Meyering  <meyering@redhat.com>
28105
28106         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28107         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28108         use this macro to create a function _definition_.
28109         Remove useless "#undef ARGMATCH_DIE".
28110
28111 2007-11-14  Bruno Haible  <bruno@clisp.org>
28112
28113         * lib/config.charset: Update for OpenBSD 4.1.
28114         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28115
28116 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28117
28118         Document 64-bit #if problems in stdint.texi.
28119         * doc/headers/stdint.texi (stdint.h): Mention problems with
28120         64-bit-#if, and how to work around them.
28121
28122         Don't insist on 'long long int' support in the preprocessor.  It
28123         breaks too many things.  For example, PRIdMAX still uses a 'long
28124         long int' format with the latest Sun compiler, even though
28125         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28126         preprocessor problem.  This causes the latest coreutils to dump
28127         core on Solaris 10 sparc with the Sun C compiler.
28128         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28129         the troublesome expressions at configure-time, not at #if-time.
28130         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28131         preprocessor.
28132         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28133         compile-time C checks, done at 'configure'-time.
28134         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28135         * modules/inttypes (Makefile): Substitute the new symbols that
28136         gl_INTTYPES_H now generates.
28137         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28138
28139 2007-11-12  Bruno Haible  <bruno@clisp.org>
28140
28141         Tests for Unicode character classification functions.
28142
28143         * modules/unictype/bidicategory-byname-tests: New file.
28144         * modules/unictype/bidicategory-name-tests: New file.
28145         * modules/unictype/bidicategory-of-tests: New file.
28146         * modules/unictype/bidicategory-test-tests: New file.
28147         * modules/unictype/block-list-tests: New file.
28148         * modules/unictype/block-of-tests: New file.
28149         * modules/unictype/block-test-tests: New file.
28150         * modules/unictype/category-C-tests: New file.
28151         * modules/unictype/category-Cc-tests: New file.
28152         * modules/unictype/category-Cf-tests: New file.
28153         * modules/unictype/category-Cn-tests: New file.
28154         * modules/unictype/category-Co-tests: New file.
28155         * modules/unictype/category-Cs-tests: New file.
28156         * modules/unictype/category-L-tests: New file.
28157         * modules/unictype/category-Ll-tests: New file.
28158         * modules/unictype/category-Lm-tests: New file.
28159         * modules/unictype/category-Lo-tests: New file.
28160         * modules/unictype/category-Lt-tests: New file.
28161         * modules/unictype/category-Lu-tests: New file.
28162         * modules/unictype/category-M-tests: New file.
28163         * modules/unictype/category-Mc-tests: New file.
28164         * modules/unictype/category-Me-tests: New file.
28165         * modules/unictype/category-Mn-tests: New file.
28166         * modules/unictype/category-N-tests: New file.
28167         * modules/unictype/category-Nd-tests: New file.
28168         * modules/unictype/category-Nl-tests: New file.
28169         * modules/unictype/category-No-tests: New file.
28170         * modules/unictype/category-P-tests: New file.
28171         * modules/unictype/category-Pc-tests: New file.
28172         * modules/unictype/category-Pd-tests: New file.
28173         * modules/unictype/category-Pe-tests: New file.
28174         * modules/unictype/category-Pf-tests: New file.
28175         * modules/unictype/category-Pi-tests: New file.
28176         * modules/unictype/category-Po-tests: New file.
28177         * modules/unictype/category-Ps-tests: New file.
28178         * modules/unictype/category-S-tests: New file.
28179         * modules/unictype/category-Sc-tests: New file.
28180         * modules/unictype/category-Sk-tests: New file.
28181         * modules/unictype/category-Sm-tests: New file.
28182         * modules/unictype/category-So-tests: New file.
28183         * modules/unictype/category-Z-tests: New file.
28184         * modules/unictype/category-Zl-tests: New file.
28185         * modules/unictype/category-Zp-tests: New file.
28186         * modules/unictype/category-Zs-tests: New file.
28187         * modules/unictype/category-and-not-tests: New file.
28188         * modules/unictype/category-and-tests: New file.
28189         * modules/unictype/category-byname-tests: New file.
28190         * modules/unictype/category-name-tests: New file.
28191         * modules/unictype/category-none-tests: New file.
28192         * modules/unictype/category-of-tests: New file.
28193         * modules/unictype/category-or-tests: New file.
28194         * modules/unictype/category-test-withtable-tests: New file.
28195         * modules/unictype/combining-class-tests: New file.
28196         * modules/unictype/ctype-alnum-tests: New file.
28197         * modules/unictype/ctype-alpha-tests: New file.
28198         * modules/unictype/ctype-blank-tests: New file.
28199         * modules/unictype/ctype-cntrl-tests: New file.
28200         * modules/unictype/ctype-digit-tests: New file.
28201         * modules/unictype/ctype-graph-tests: New file.
28202         * modules/unictype/ctype-lower-tests: New file.
28203         * modules/unictype/ctype-print-tests: New file.
28204         * modules/unictype/ctype-punct-tests: New file.
28205         * modules/unictype/ctype-space-tests: New file.
28206         * modules/unictype/ctype-upper-tests: New file.
28207         * modules/unictype/ctype-xdigit-tests: New file.
28208         * modules/unictype/decimal-digit-tests: New file.
28209         * modules/unictype/digit-tests: New file.
28210         * modules/unictype/mirror-tests: New file.
28211         * modules/unictype/numeric-tests: New file.
28212         * modules/unictype/property-alphabetic-tests: New file.
28213         * modules/unictype/property-ascii-hex-digit-tests: New file.
28214         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28215         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28216         * modules/unictype/property-bidi-block-separator-tests: New file.
28217         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28218         * modules/unictype/property-bidi-common-separator-tests: New file.
28219         * modules/unictype/property-bidi-control-tests: New file.
28220         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28221         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28222         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28223         * modules/unictype/property-bidi-european-digit-tests: New file.
28224         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28225         * modules/unictype/property-bidi-left-to-right-tests: New file.
28226         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28227         * modules/unictype/property-bidi-other-neutral-tests: New file.
28228         * modules/unictype/property-bidi-pdf-tests: New file.
28229         * modules/unictype/property-bidi-segment-separator-tests: New file.
28230         * modules/unictype/property-bidi-whitespace-tests: New file.
28231         * modules/unictype/property-byname-tests: New file.
28232         * modules/unictype/property-combining-tests: New file.
28233         * modules/unictype/property-composite-tests: New file.
28234         * modules/unictype/property-currency-symbol-tests: New file.
28235         * modules/unictype/property-dash-tests: New file.
28236         * modules/unictype/property-decimal-digit-tests: New file.
28237         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28238         * modules/unictype/property-deprecated-tests: New file.
28239         * modules/unictype/property-diacritic-tests: New file.
28240         * modules/unictype/property-extender-tests: New file.
28241         * modules/unictype/property-format-control-tests: New file.
28242         * modules/unictype/property-grapheme-base-tests: New file.
28243         * modules/unictype/property-grapheme-extend-tests: New file.
28244         * modules/unictype/property-grapheme-link-tests: New file.
28245         * modules/unictype/property-hex-digit-tests: New file.
28246         * modules/unictype/property-hyphen-tests: New file.
28247         * modules/unictype/property-id-continue-tests: New file.
28248         * modules/unictype/property-id-start-tests: New file.
28249         * modules/unictype/property-ideographic-tests: New file.
28250         * modules/unictype/property-ids-binary-operator-tests: New file.
28251         * modules/unictype/property-ids-trinary-operator-tests: New file.
28252         * modules/unictype/property-ignorable-control-tests: New file.
28253         * modules/unictype/property-iso-control-tests: New file.
28254         * modules/unictype/property-join-control-tests: New file.
28255         * modules/unictype/property-left-of-pair-tests: New file.
28256         * modules/unictype/property-line-separator-tests: New file.
28257         * modules/unictype/property-logical-order-exception-tests: New file.
28258         * modules/unictype/property-lowercase-tests: New file.
28259         * modules/unictype/property-math-tests: New file.
28260         * modules/unictype/property-non-break-tests: New file.
28261         * modules/unictype/property-not-a-character-tests: New file.
28262         * modules/unictype/property-numeric-tests: New file.
28263         * modules/unictype/property-other-alphabetic-tests: New file.
28264         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28265         * modules/unictype/property-other-grapheme-extend-tests: New file.
28266         * modules/unictype/property-other-id-continue-tests: New file.
28267         * modules/unictype/property-other-id-start-tests: New file.
28268         * modules/unictype/property-other-lowercase-tests: New file.
28269         * modules/unictype/property-other-math-tests: New file.
28270         * modules/unictype/property-other-uppercase-tests: New file.
28271         * modules/unictype/property-paired-punctuation-tests: New file.
28272         * modules/unictype/property-paragraph-separator-tests: New file.
28273         * modules/unictype/property-pattern-syntax-tests: New file.
28274         * modules/unictype/property-pattern-white-space-tests: New file.
28275         * modules/unictype/property-private-use-tests: New file.
28276         * modules/unictype/property-punctuation-tests: New file.
28277         * modules/unictype/property-quotation-mark-tests: New file.
28278         * modules/unictype/property-radical-tests: New file.
28279         * modules/unictype/property-sentence-terminal-tests: New file.
28280         * modules/unictype/property-soft-dotted-tests: New file.
28281         * modules/unictype/property-space-tests: New file.
28282         * modules/unictype/property-terminal-punctuation-tests: New file.
28283         * modules/unictype/property-test-tests: New file.
28284         * modules/unictype/property-titlecase-tests: New file.
28285         * modules/unictype/property-unassigned-code-value-tests: New file.
28286         * modules/unictype/property-unified-ideograph-tests: New file.
28287         * modules/unictype/property-uppercase-tests: New file.
28288         * modules/unictype/property-variation-selector-tests: New file.
28289         * modules/unictype/property-white-space-tests: New file.
28290         * modules/unictype/property-xid-continue-tests: New file.
28291         * modules/unictype/property-xid-start-tests: New file.
28292         * modules/unictype/property-zero-width-tests: New file.
28293         * modules/unictype/scripts-tests: New file.
28294         * modules/unictype/syntax-c-ident-tests: New file.
28295         * modules/unictype/syntax-c-whitespace-tests: New file.
28296         * modules/unictype/syntax-java-ident-tests: New file.
28297         * modules/unictype/syntax-java-whitespace-tests: New file.
28298         * tests/unictype/test-bidi_byname.c: New file.
28299         * tests/unictype/test-bidi_name.c: New file.
28300         * tests/unictype/test-bidi_of.c: New file.
28301         * tests/unictype/test-bidi_test.c: New file.
28302         * tests/unictype/test-block_list.c: New file.
28303         * tests/unictype/test-block_of.c: New file.
28304         * tests/unictype/test-block_test.c: New file.
28305         * tests/unictype/test-categ_and.c: New file.
28306         * tests/unictype/test-categ_and_not.c: New file.
28307         * tests/unictype/test-categ_byname.c: New file.
28308         * tests/unictype/test-categ_name.c: New file.
28309         * tests/unictype/test-categ_none.c: New file.
28310         * tests/unictype/test-categ_of.c: New file.
28311         * tests/unictype/test-categ_or.c: New file.
28312         * tests/unictype/test-categ_test_withtable.c: New file.
28313         * tests/unictype/test-combining.c: New file.
28314         * tests/unictype/test-decdigit.c: New file.
28315         * tests/unictype/test-digit.c: New file.
28316         * tests/unictype/test-mirror.c: New file.
28317         * tests/unictype/test-numeric.c: New file.
28318         * tests/unictype/test-pr_byname.c: New file.
28319         * tests/unictype/test-pr_test.c: New file.
28320         * tests/unictype/test-predicate-part1.h: New file.
28321         * tests/unictype/test-predicate-part2.h: New file.
28322         * tests/unictype/test-scripts.c: New file.
28323         * tests/unictype/test-sy_c_ident.c: New file.
28324         * tests/unictype/test-sy_java_ident.c: New file.
28325
28326         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28327         for Unicode 5.0.0.
28328         * tests/unictype/test-categ_Cc.c: Likewise.
28329         * tests/unictype/test-categ_Cf.c: Likewise.
28330         * tests/unictype/test-categ_Cn.c: Likewise.
28331         * tests/unictype/test-categ_Co.c: Likewise.
28332         * tests/unictype/test-categ_Cs.c: Likewise.
28333         * tests/unictype/test-categ_L.c: Likewise.
28334         * tests/unictype/test-categ_Ll.c: Likewise.
28335         * tests/unictype/test-categ_Lm.c: Likewise.
28336         * tests/unictype/test-categ_Lo.c: Likewise.
28337         * tests/unictype/test-categ_Lt.c: Likewise.
28338         * tests/unictype/test-categ_Lu.c: Likewise.
28339         * tests/unictype/test-categ_M.c: Likewise.
28340         * tests/unictype/test-categ_Mc.c: Likewise.
28341         * tests/unictype/test-categ_Me.c: Likewise.
28342         * tests/unictype/test-categ_Mn.c: Likewise.
28343         * tests/unictype/test-categ_N.c: Likewise.
28344         * tests/unictype/test-categ_Nd.c: Likewise.
28345         * tests/unictype/test-categ_Nl.c: Likewise.
28346         * tests/unictype/test-categ_No.c: Likewise.
28347         * tests/unictype/test-categ_P.c: Likewise.
28348         * tests/unictype/test-categ_Pc.c: Likewise.
28349         * tests/unictype/test-categ_Pd.c: Likewise.
28350         * tests/unictype/test-categ_Pe.c: Likewise.
28351         * tests/unictype/test-categ_Pf.c: Likewise.
28352         * tests/unictype/test-categ_Pi.c: Likewise.
28353         * tests/unictype/test-categ_Po.c: Likewise.
28354         * tests/unictype/test-categ_Ps.c: Likewise.
28355         * tests/unictype/test-categ_S.c: Likewise.
28356         * tests/unictype/test-categ_Sc.c: Likewise.
28357         * tests/unictype/test-categ_Sk.c: Likewise.
28358         * tests/unictype/test-categ_Sm.c: Likewise.
28359         * tests/unictype/test-categ_So.c: Likewise.
28360         * tests/unictype/test-categ_Z.c: Likewise.
28361         * tests/unictype/test-categ_Zl.c: Likewise.
28362         * tests/unictype/test-categ_Zp.c: Likewise.
28363         * tests/unictype/test-categ_Zs.c: Likewise.
28364         * tests/unictype/test-ctype_alnum.c: Likewise.
28365         * tests/unictype/test-ctype_alpha.c: Likewise.
28366         * tests/unictype/test-ctype_blank.c: Likewise.
28367         * tests/unictype/test-ctype_cntrl.c: Likewise.
28368         * tests/unictype/test-ctype_digit.c: Likewise.
28369         * tests/unictype/test-ctype_graph.c: Likewise.
28370         * tests/unictype/test-ctype_lower.c: Likewise.
28371         * tests/unictype/test-ctype_print.c: Likewise.
28372         * tests/unictype/test-ctype_punct.c: Likewise.
28373         * tests/unictype/test-ctype_space.c: Likewise.
28374         * tests/unictype/test-ctype_upper.c: Likewise.
28375         * tests/unictype/test-ctype_xdigit.c: Likewise.
28376         * tests/unictype/test-decdigit.h: Likewise.
28377         * tests/unictype/test-digit.h: Likewise.
28378         * tests/unictype/test-numeric.h: Likewise.
28379         * tests/unictype/test-pr_alphabetic.c: Likewise.
28380         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28381         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28382         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28383         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28384         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28385         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28386         * tests/unictype/test-pr_bidi_control.c: Likewise.
28387         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28388         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28389         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28390         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28391         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28392         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28393         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28394         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28395         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28396         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28397         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28398         * tests/unictype/test-pr_combining.c: Likewise.
28399         * tests/unictype/test-pr_composite.c: Likewise.
28400         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28401         * tests/unictype/test-pr_dash.c: Likewise.
28402         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28403         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28404         * tests/unictype/test-pr_deprecated.c: Likewise.
28405         * tests/unictype/test-pr_diacritic.c: Likewise.
28406         * tests/unictype/test-pr_extender.c: Likewise.
28407         * tests/unictype/test-pr_format_control.c: Likewise.
28408         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28409         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28410         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28411         * tests/unictype/test-pr_hex_digit.c: Likewise.
28412         * tests/unictype/test-pr_hyphen.c: Likewise.
28413         * tests/unictype/test-pr_id_continue.c: Likewise.
28414         * tests/unictype/test-pr_id_start.c: Likewise.
28415         * tests/unictype/test-pr_ideographic.c: Likewise.
28416         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28417         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28418         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28419         * tests/unictype/test-pr_iso_control.c: Likewise.
28420         * tests/unictype/test-pr_join_control.c: Likewise.
28421         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28422         * tests/unictype/test-pr_line_separator.c: Likewise.
28423         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28424         * tests/unictype/test-pr_lowercase.c: Likewise.
28425         * tests/unictype/test-pr_math.c: Likewise.
28426         * tests/unictype/test-pr_non_break.c: Likewise.
28427         * tests/unictype/test-pr_not_a_character.c: Likewise.
28428         * tests/unictype/test-pr_numeric.c: Likewise.
28429         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28430         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28431         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28432         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28433         * tests/unictype/test-pr_other_id_start.c: Likewise.
28434         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28435         * tests/unictype/test-pr_other_math.c: Likewise.
28436         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28437         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28438         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28439         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28440         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28441         * tests/unictype/test-pr_private_use.c: Likewise.
28442         * tests/unictype/test-pr_punctuation.c: Likewise.
28443         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28444         * tests/unictype/test-pr_radical.c: Likewise.
28445         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28446         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28447         * tests/unictype/test-pr_space.c: Likewise.
28448         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28449         * tests/unictype/test-pr_titlecase.c: Likewise.
28450         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28451         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28452         * tests/unictype/test-pr_uppercase.c: Likewise.
28453         * tests/unictype/test-pr_variation_selector.c: Likewise.
28454         * tests/unictype/test-pr_white_space.c: Likewise.
28455         * tests/unictype/test-pr_xid_continue.c: Likewise.
28456         * tests/unictype/test-pr_xid_start.c: Likewise.
28457         * tests/unictype/test-pr_zero_width.c: Likewise.
28458         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28459         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28460
28461 2007-11-12  Bruno Haible  <bruno@clisp.org>
28462
28463         Unicode character classification functions.
28464         * lib/unictype.h: New file.
28465         * modules/unictype/base: New file.
28466         * modules/unictype/category-L: New file.
28467         * modules/unictype/category-Lu: New file.
28468         * modules/unictype/category-Ll: New file.
28469         * modules/unictype/category-Lt: New file.
28470         * modules/unictype/category-Lm: New file.
28471         * modules/unictype/category-Lo: New file.
28472         * modules/unictype/category-M: New file.
28473         * modules/unictype/category-Mn: New file.
28474         * modules/unictype/category-Mc: New file.
28475         * modules/unictype/category-Me: New file.
28476         * modules/unictype/category-N: New file.
28477         * modules/unictype/category-Nd: New file.
28478         * modules/unictype/category-Nl: New file.
28479         * modules/unictype/category-No: New file.
28480         * modules/unictype/category-P: New file.
28481         * modules/unictype/category-Pc: New file.
28482         * modules/unictype/category-Pd: New file.
28483         * modules/unictype/category-Ps: New file.
28484         * modules/unictype/category-Pe: New file.
28485         * modules/unictype/category-Pi: New file.
28486         * modules/unictype/category-Pf: New file.
28487         * modules/unictype/category-Po: New file.
28488         * modules/unictype/category-S: New file.
28489         * modules/unictype/category-Sm: New file.
28490         * modules/unictype/category-Sc: New file.
28491         * modules/unictype/category-Sk: New file.
28492         * modules/unictype/category-So: New file.
28493         * modules/unictype/category-Z: New file.
28494         * modules/unictype/category-Zs: New file.
28495         * modules/unictype/category-Zl: New file.
28496         * modules/unictype/category-Zp: New file.
28497         * modules/unictype/category-C: New file.
28498         * modules/unictype/category-Cc: New file.
28499         * modules/unictype/category-Cf: New file.
28500         * modules/unictype/category-Cs: New file.
28501         * modules/unictype/category-Co: New file.
28502         * modules/unictype/category-Cn: New file.
28503         * modules/unictype/category-or: New file.
28504         * modules/unictype/category-of: New file.
28505         * modules/unictype/category-test: New file.
28506         * modules/unictype/category-test-withtable: New file.
28507         * modules/unictype/category-byname: New file.
28508         * modules/unictype/category-none: New file.
28509         * modules/unictype/category-and: New file.
28510         * modules/unictype/category-and-not: New file.
28511         * modules/unictype/category-name: New file.
28512         * modules/unictype/combining-class: New file.
28513         * modules/unictype/category-all: New file.
28514         * modules/unictype/bidicategory-all: New file.
28515         * modules/unictype/bidicategory-byname: New file.
28516         * modules/unictype/bidicategory-name: New file.
28517         * modules/unictype/bidicategory-of: New file.
28518         * modules/unictype/bidicategory-test: New file.
28519         * modules/unictype/decimal-digit: New file.
28520         * modules/unictype/digit: New file.
28521         * modules/unictype/numeric: New file.
28522         * modules/unictype/mirror: New file.
28523         * modules/unictype/property-white-space: New file.
28524         * modules/unictype/property-alphabetic: New file.
28525         * modules/unictype/property-other-alphabetic: New file.
28526         * modules/unictype/property-not-a-character: New file.
28527         * modules/unictype/property-default-ignorable-code-point: New file.
28528         * modules/unictype/property-other-default-ignorable-code-point: New
28529         file.
28530         * modules/unictype/property-deprecated: New file.
28531         * modules/unictype/property-logical-order-exception: New file.
28532         * modules/unictype/property-variation-selector: New file.
28533         * modules/unictype/property-private-use: New file.
28534         * modules/unictype/property-unassigned-code-value: New file.
28535         * modules/unictype/property-uppercase: New file.
28536         * modules/unictype/property-other-uppercase: New file.
28537         * modules/unictype/property-lowercase: New file.
28538         * modules/unictype/property-other-lowercase: New file.
28539         * modules/unictype/property-titlecase: New file.
28540         * modules/unictype/property-soft-dotted: New file.
28541         * modules/unictype/property-id-start: New file.
28542         * modules/unictype/property-other-id-start: New file.
28543         * modules/unictype/property-id-continue: New file.
28544         * modules/unictype/property-other-id-continue: New file.
28545         * modules/unictype/property-xid-start: New file.
28546         * modules/unictype/property-xid-continue: New file.
28547         * modules/unictype/property-pattern-white-space: New file.
28548         * modules/unictype/property-pattern-syntax: New file.
28549         * modules/unictype/property-join-control: New file.
28550         * modules/unictype/property-grapheme-base: New file.
28551         * modules/unictype/property-grapheme-extend: New file.
28552         * modules/unictype/property-other-grapheme-extend: New file.
28553         * modules/unictype/property-grapheme-link: New file.
28554         * modules/unictype/property-bidi-control: New file.
28555         * modules/unictype/property-bidi-left-to-right: New file.
28556         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28557         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28558         * modules/unictype/property-bidi-european-digit: New file.
28559         * modules/unictype/property-bidi-eur-num-separator: New file.
28560         * modules/unictype/property-bidi-eur-num-terminator: New file.
28561         * modules/unictype/property-bidi-arabic-digit: New file.
28562         * modules/unictype/property-bidi-common-separator: New file.
28563         * modules/unictype/property-bidi-block-separator: New file.
28564         * modules/unictype/property-bidi-segment-separator: New file.
28565         * modules/unictype/property-bidi-whitespace: New file.
28566         * modules/unictype/property-bidi-non-spacing-mark: New file.
28567         * modules/unictype/property-bidi-boundary-neutral: New file.
28568         * modules/unictype/property-bidi-pdf: New file.
28569         * modules/unictype/property-bidi-embedding-or-override: New file.
28570         * modules/unictype/property-bidi-other-neutral: New file.
28571         * modules/unictype/property-hex-digit: New file.
28572         * modules/unictype/property-ascii-hex-digit: New file.
28573         * modules/unictype/property-ideographic: New file.
28574         * modules/unictype/property-unified-ideograph: New file.
28575         * modules/unictype/property-radical: New file.
28576         * modules/unictype/property-ids-binary-operator: New file.
28577         * modules/unictype/property-ids-trinary-operator: New file.
28578         * modules/unictype/property-zero-width: New file.
28579         * modules/unictype/property-space: New file.
28580         * modules/unictype/property-non-break: New file.
28581         * modules/unictype/property-iso-control: New file.
28582         * modules/unictype/property-format-control: New file.
28583         * modules/unictype/property-dash: New file.
28584         * modules/unictype/property-hyphen: New file.
28585         * modules/unictype/property-punctuation: New file.
28586         * modules/unictype/property-line-separator: New file.
28587         * modules/unictype/property-paragraph-separator: New file.
28588         * modules/unictype/property-quotation-mark: New file.
28589         * modules/unictype/property-sentence-terminal: New file.
28590         * modules/unictype/property-terminal-punctuation: New file.
28591         * modules/unictype/property-currency-symbol: New file.
28592         * modules/unictype/property-math: New file.
28593         * modules/unictype/property-other-math: New file.
28594         * modules/unictype/property-paired-punctuation: New file.
28595         * modules/unictype/property-left-of-pair: New file.
28596         * modules/unictype/property-combining: New file.
28597         * modules/unictype/property-composite: New file.
28598         * modules/unictype/property-decimal-digit: New file.
28599         * modules/unictype/property-numeric: New file.
28600         * modules/unictype/property-diacritic: New file.
28601         * modules/unictype/property-extender: New file.
28602         * modules/unictype/property-ignorable-control: New file.
28603         * modules/unictype/property-test: New file.
28604         * modules/unictype/property-byname: New file.
28605         * modules/unictype/property-all: New file.
28606         * modules/unictype/scripts: New file.
28607         * modules/unictype/scripts-all: New file.
28608         * modules/unictype/block-of: New file.
28609         * modules/unictype/block-test: New file.
28610         * modules/unictype/block-list: New file.
28611         * modules/unictype/block-all: New file.
28612         * modules/unictype/syntax-c-whitespace: New file.
28613         * modules/unictype/syntax-java-whitespace: New file.
28614         * modules/unictype/syntax-c-ident: New file.
28615         * modules/unictype/syntax-java-ident: New file.
28616         * modules/unictype/ctype-alnum: New file.
28617         * modules/unictype/ctype-alpha: New file.
28618         * modules/unictype/ctype-cntrl: New file.
28619         * modules/unictype/ctype-digit: New file.
28620         * modules/unictype/ctype-graph: New file.
28621         * modules/unictype/ctype-lower: New file.
28622         * modules/unictype/ctype-print: New file.
28623         * modules/unictype/ctype-punct: New file.
28624         * modules/unictype/ctype-space: New file.
28625         * modules/unictype/ctype-upper: New file.
28626         * modules/unictype/ctype-xdigit: New file.
28627         * modules/unictype/ctype-blank: New file.
28628         * lib/unictype/bidi_byname.c: New file.
28629         * lib/unictype/bidi_name.c: New file.
28630         * lib/unictype/bidi_of.c: New file.
28631         * lib/unictype/bidi_test.c: New file.
28632         * lib/unictype/bitmap.h: New file.
28633         * lib/unictype/block_test.c: New file.
28634         * lib/unictype/blocks.c: New file.
28635         * lib/unictype/categ_C.c: New file.
28636         * lib/unictype/categ_Cc.c: New file.
28637         * lib/unictype/categ_Cf.c: New file.
28638         * lib/unictype/categ_Cn.c: New file.
28639         * lib/unictype/categ_Co.c: New file.
28640         * lib/unictype/categ_Cs.c: New file.
28641         * lib/unictype/categ_L.c: New file.
28642         * lib/unictype/categ_Ll.c: New file.
28643         * lib/unictype/categ_Lm.c: New file.
28644         * lib/unictype/categ_Lo.c: New file.
28645         * lib/unictype/categ_Lt.c: New file.
28646         * lib/unictype/categ_Lu.c: New file.
28647         * lib/unictype/categ_M.c: New file.
28648         * lib/unictype/categ_Mc.c: New file.
28649         * lib/unictype/categ_Me.c: New file.
28650         * lib/unictype/categ_Mn.c: New file.
28651         * lib/unictype/categ_N.c: New file.
28652         * lib/unictype/categ_Nd.c: New file.
28653         * lib/unictype/categ_Nl.c: New file.
28654         * lib/unictype/categ_No.c: New file.
28655         * lib/unictype/categ_P.c: New file.
28656         * lib/unictype/categ_Pc.c: New file.
28657         * lib/unictype/categ_Pd.c: New file.
28658         * lib/unictype/categ_Pe.c: New file.
28659         * lib/unictype/categ_Pf.c: New file.
28660         * lib/unictype/categ_Pi.c: New file.
28661         * lib/unictype/categ_Po.c: New file.
28662         * lib/unictype/categ_Ps.c: New file.
28663         * lib/unictype/categ_S.c: New file.
28664         * lib/unictype/categ_Sc.c: New file.
28665         * lib/unictype/categ_Sk.c: New file.
28666         * lib/unictype/categ_Sm.c: New file.
28667         * lib/unictype/categ_So.c: New file.
28668         * lib/unictype/categ_Z.c: New file.
28669         * lib/unictype/categ_Zl.c: New file.
28670         * lib/unictype/categ_Zp.c: New file.
28671         * lib/unictype/categ_Zs.c: New file.
28672         * lib/unictype/categ_and.c: New file.
28673         * lib/unictype/categ_and_not.c: New file.
28674         * lib/unictype/categ_byname.c: New file.
28675         * lib/unictype/categ_name.c: New file.
28676         * lib/unictype/categ_none.c: New file.
28677         * lib/unictype/categ_of.c: New file.
28678         * lib/unictype/categ_or.c: New file.
28679         * lib/unictype/categ_test.c: New file.
28680         * lib/unictype/combining.c: New file.
28681         * lib/unictype/ctype_alnum.c: New file.
28682         * lib/unictype/ctype_alpha.c: New file.
28683         * lib/unictype/ctype_blank.c: New file.
28684         * lib/unictype/ctype_cntrl.c: New file.
28685         * lib/unictype/ctype_digit.c: New file.
28686         * lib/unictype/ctype_graph.c: New file.
28687         * lib/unictype/ctype_lower.c: New file.
28688         * lib/unictype/ctype_print.c: New file.
28689         * lib/unictype/ctype_punct.c: New file.
28690         * lib/unictype/ctype_space.c: New file.
28691         * lib/unictype/ctype_upper.c: New file.
28692         * lib/unictype/ctype_xdigit.c: New file.
28693         * lib/unictype/decdigit.c: New file.
28694         * lib/unictype/digit.c: New file.
28695         * lib/unictype/identsyntaxmap.h: New file.
28696         * lib/unictype/mirror.c: New file.
28697         * lib/unictype/numeric.c: New file.
28698         * lib/unictype/pr_alphabetic.c: New file.
28699         * lib/unictype/pr_ascii_hex_digit.c: New file.
28700         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28701         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28702         * lib/unictype/pr_bidi_block_separator.c: New file.
28703         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28704         * lib/unictype/pr_bidi_common_separator.c: New file.
28705         * lib/unictype/pr_bidi_control.c: New file.
28706         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28707         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28708         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28709         * lib/unictype/pr_bidi_european_digit.c: New file.
28710         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28711         * lib/unictype/pr_bidi_left_to_right.c: New file.
28712         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28713         * lib/unictype/pr_bidi_other_neutral.c: New file.
28714         * lib/unictype/pr_bidi_pdf.c: New file.
28715         * lib/unictype/pr_bidi_segment_separator.c: New file.
28716         * lib/unictype/pr_bidi_whitespace.c: New file.
28717         * lib/unictype/pr_byname.c: New file.
28718         * lib/unictype/pr_byname.gperf: New file.
28719         * lib/unictype/pr_combining.c: New file.
28720         * lib/unictype/pr_composite.c: New file.
28721         * lib/unictype/pr_currency_symbol.c: New file.
28722         * lib/unictype/pr_dash.c: New file.
28723         * lib/unictype/pr_decimal_digit.c: New file.
28724         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28725         * lib/unictype/pr_deprecated.c: New file.
28726         * lib/unictype/pr_diacritic.c: New file.
28727         * lib/unictype/pr_extender.c: New file.
28728         * lib/unictype/pr_format_control.c: New file.
28729         * lib/unictype/pr_grapheme_base.c: New file.
28730         * lib/unictype/pr_grapheme_extend.c: New file.
28731         * lib/unictype/pr_grapheme_link.c: New file.
28732         * lib/unictype/pr_hex_digit.c: New file.
28733         * lib/unictype/pr_hyphen.c: New file.
28734         * lib/unictype/pr_id_continue.c: New file.
28735         * lib/unictype/pr_id_start.c: New file.
28736         * lib/unictype/pr_ideographic.c: New file.
28737         * lib/unictype/pr_ids_binary_operator.c: New file.
28738         * lib/unictype/pr_ids_trinary_operator.c: New file.
28739         * lib/unictype/pr_ignorable_control.c: New file.
28740         * lib/unictype/pr_iso_control.c: New file.
28741         * lib/unictype/pr_join_control.c: New file.
28742         * lib/unictype/pr_left_of_pair.c: New file.
28743         * lib/unictype/pr_line_separator.c: New file.
28744         * lib/unictype/pr_logical_order_exception.c: New file.
28745         * lib/unictype/pr_lowercase.c: New file.
28746         * lib/unictype/pr_math.c: New file.
28747         * lib/unictype/pr_non_break.c: New file.
28748         * lib/unictype/pr_not_a_character.c: New file.
28749         * lib/unictype/pr_numeric.c: New file.
28750         * lib/unictype/pr_other_alphabetic.c: New file.
28751         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28752         * lib/unictype/pr_other_grapheme_extend.c: New file.
28753         * lib/unictype/pr_other_id_continue.c: New file.
28754         * lib/unictype/pr_other_id_start.c: New file.
28755         * lib/unictype/pr_other_lowercase.c: New file.
28756         * lib/unictype/pr_other_math.c: New file.
28757         * lib/unictype/pr_other_uppercase.c: New file.
28758         * lib/unictype/pr_paired_punctuation.c: New file.
28759         * lib/unictype/pr_paragraph_separator.c: New file.
28760         * lib/unictype/pr_pattern_syntax.c: New file.
28761         * lib/unictype/pr_pattern_white_space.c: New file.
28762         * lib/unictype/pr_private_use.c: New file.
28763         * lib/unictype/pr_punctuation.c: New file.
28764         * lib/unictype/pr_quotation_mark.c: New file.
28765         * lib/unictype/pr_radical.c: New file.
28766         * lib/unictype/pr_sentence_terminal.c: New file.
28767         * lib/unictype/pr_soft_dotted.c: New file.
28768         * lib/unictype/pr_space.c: New file.
28769         * lib/unictype/pr_terminal_punctuation.c: New file.
28770         * lib/unictype/pr_test.c: New file.
28771         * lib/unictype/pr_titlecase.c: New file.
28772         * lib/unictype/pr_unassigned_code_value.c: New file.
28773         * lib/unictype/pr_unified_ideograph.c: New file.
28774         * lib/unictype/pr_uppercase.c: New file.
28775         * lib/unictype/pr_variation_selector.c: New file.
28776         * lib/unictype/pr_white_space.c: New file.
28777         * lib/unictype/pr_xid_continue.c: New file.
28778         * lib/unictype/pr_xid_start.c: New file.
28779         * lib/unictype/pr_zero_width.c: New file.
28780         * lib/unictype/scripts.c: New file.
28781         * lib/unictype/sy_c_ident.c: New file.
28782         * lib/unictype/sy_c_whitespace.c: New file.
28783         * lib/unictype/sy_java_ident.c: New file.
28784         * lib/unictype/sy_java_whitespace.c: New file.
28785
28786         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28787         Unicode 5.0.0.
28788         * lib/unictype/blocks.h: Likewise.
28789         * lib/unictype/categ_C.h: Likewise.
28790         * lib/unictype/categ_Cc.h: Likewise.
28791         * lib/unictype/categ_Cf.h: Likewise.
28792         * lib/unictype/categ_Cn.h: Likewise.
28793         * lib/unictype/categ_Co.h: Likewise.
28794         * lib/unictype/categ_Cs.h: Likewise.
28795         * lib/unictype/categ_L.h: Likewise.
28796         * lib/unictype/categ_Ll.h: Likewise.
28797         * lib/unictype/categ_Lm.h: Likewise.
28798         * lib/unictype/categ_Lo.h: Likewise.
28799         * lib/unictype/categ_Lt.h: Likewise.
28800         * lib/unictype/categ_Lu.h: Likewise.
28801         * lib/unictype/categ_M.h: Likewise.
28802         * lib/unictype/categ_Mc.h: Likewise.
28803         * lib/unictype/categ_Me.h: Likewise.
28804         * lib/unictype/categ_Mn.h: Likewise.
28805         * lib/unictype/categ_N.h: Likewise.
28806         * lib/unictype/categ_Nd.h: Likewise.
28807         * lib/unictype/categ_Nl.h: Likewise.
28808         * lib/unictype/categ_No.h: Likewise.
28809         * lib/unictype/categ_P.h: Likewise.
28810         * lib/unictype/categ_Pc.h: Likewise.
28811         * lib/unictype/categ_Pd.h: Likewise.
28812         * lib/unictype/categ_Pe.h: Likewise.
28813         * lib/unictype/categ_Pf.h: Likewise.
28814         * lib/unictype/categ_Pi.h: Likewise.
28815         * lib/unictype/categ_Po.h: Likewise.
28816         * lib/unictype/categ_Ps.h: Likewise.
28817         * lib/unictype/categ_S.h: Likewise.
28818         * lib/unictype/categ_Sc.h: Likewise.
28819         * lib/unictype/categ_Sk.h: Likewise.
28820         * lib/unictype/categ_Sm.h: Likewise.
28821         * lib/unictype/categ_So.h: Likewise.
28822         * lib/unictype/categ_Z.h: Likewise.
28823         * lib/unictype/categ_Zl.h: Likewise.
28824         * lib/unictype/categ_Zp.h: Likewise.
28825         * lib/unictype/categ_Zs.h: Likewise.
28826         * lib/unictype/categ_of.h: Likewise.
28827         * lib/unictype/combining.h: Likewise.
28828         * lib/unictype/ctype_alnum.h: Likewise.
28829         * lib/unictype/ctype_alpha.h: Likewise.
28830         * lib/unictype/ctype_blank.h: Likewise.
28831         * lib/unictype/ctype_cntrl.h: Likewise.
28832         * lib/unictype/ctype_digit.h: Likewise.
28833         * lib/unictype/ctype_graph.h: Likewise.
28834         * lib/unictype/ctype_lower.h: Likewise.
28835         * lib/unictype/ctype_print.h: Likewise.
28836         * lib/unictype/ctype_punct.h: Likewise.
28837         * lib/unictype/ctype_space.h: Likewise.
28838         * lib/unictype/ctype_upper.h: Likewise.
28839         * lib/unictype/ctype_xdigit.h: Likewise.
28840         * lib/unictype/decdigit.h: Likewise.
28841         * lib/unictype/digit.h: Likewise.
28842         * lib/unictype/mirror.h: Likewise.
28843         * lib/unictype/numeric.h: Likewise.
28844         * lib/unictype/pr_alphabetic.h: Likewise.
28845         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28846         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28847         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28848         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28849         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28850         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28851         * lib/unictype/pr_bidi_control.h: Likewise.
28852         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28853         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28854         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28855         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28856         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28857         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28858         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28859         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28860         * lib/unictype/pr_bidi_pdf.h: Likewise.
28861         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28862         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28863         * lib/unictype/pr_combining.h: Likewise.
28864         * lib/unictype/pr_composite.h: Likewise.
28865         * lib/unictype/pr_currency_symbol.h: Likewise.
28866         * lib/unictype/pr_dash.h: Likewise.
28867         * lib/unictype/pr_decimal_digit.h: Likewise.
28868         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28869         * lib/unictype/pr_deprecated.h: Likewise.
28870         * lib/unictype/pr_diacritic.h: Likewise.
28871         * lib/unictype/pr_extender.h: Likewise.
28872         * lib/unictype/pr_format_control.h: Likewise.
28873         * lib/unictype/pr_grapheme_base.h: Likewise.
28874         * lib/unictype/pr_grapheme_extend.h: Likewise.
28875         * lib/unictype/pr_grapheme_link.h: Likewise.
28876         * lib/unictype/pr_hex_digit.h: Likewise.
28877         * lib/unictype/pr_hyphen.h: Likewise.
28878         * lib/unictype/pr_id_continue.h: Likewise.
28879         * lib/unictype/pr_id_start.h: Likewise.
28880         * lib/unictype/pr_ideographic.h: Likewise.
28881         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28882         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28883         * lib/unictype/pr_ignorable_control.h: Likewise.
28884         * lib/unictype/pr_iso_control.h: Likewise.
28885         * lib/unictype/pr_join_control.h: Likewise.
28886         * lib/unictype/pr_left_of_pair.h: Likewise.
28887         * lib/unictype/pr_line_separator.h: Likewise.
28888         * lib/unictype/pr_logical_order_exception.h: Likewise.
28889         * lib/unictype/pr_lowercase.h: Likewise.
28890         * lib/unictype/pr_math.h: Likewise.
28891         * lib/unictype/pr_non_break.h: Likewise.
28892         * lib/unictype/pr_not_a_character.h: Likewise.
28893         * lib/unictype/pr_numeric.h: Likewise.
28894         * lib/unictype/pr_other_alphabetic.h: Likewise.
28895         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28896         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28897         * lib/unictype/pr_other_id_continue.h: Likewise.
28898         * lib/unictype/pr_other_id_start.h: Likewise.
28899         * lib/unictype/pr_other_lowercase.h: Likewise.
28900         * lib/unictype/pr_other_math.h: Likewise.
28901         * lib/unictype/pr_other_uppercase.h: Likewise.
28902         * lib/unictype/pr_paired_punctuation.h: Likewise.
28903         * lib/unictype/pr_paragraph_separator.h: Likewise.
28904         * lib/unictype/pr_pattern_syntax.h: Likewise.
28905         * lib/unictype/pr_pattern_white_space.h: Likewise.
28906         * lib/unictype/pr_private_use.h: Likewise.
28907         * lib/unictype/pr_punctuation.h: Likewise.
28908         * lib/unictype/pr_quotation_mark.h: Likewise.
28909         * lib/unictype/pr_radical.h: Likewise.
28910         * lib/unictype/pr_sentence_terminal.h: Likewise.
28911         * lib/unictype/pr_soft_dotted.h: Likewise.
28912         * lib/unictype/pr_space.h: Likewise.
28913         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28914         * lib/unictype/pr_titlecase.h: Likewise.
28915         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28916         * lib/unictype/pr_unified_ideograph.h: Likewise.
28917         * lib/unictype/pr_uppercase.h: Likewise.
28918         * lib/unictype/pr_variation_selector.h: Likewise.
28919         * lib/unictype/pr_white_space.h: Likewise.
28920         * lib/unictype/pr_xid_continue.h: Likewise.
28921         * lib/unictype/pr_xid_start.h: Likewise.
28922         * lib/unictype/pr_zero_width.h: Likewise.
28923         * lib/unictype/scripts.h: Likewise.
28924         * lib/unictype/scripts_byname.gperf: Likewise.
28925         * lib/unictype/sy_c_ident.h: Likewise.
28926         * lib/unictype/sy_c_whitespace.h: Likewise.
28927         * lib/unictype/sy_java_ident.h: Likewise.
28928         * lib/unictype/sy_java_whitespace.h: Likewise.
28929
28930         * lib/unictype/Makefile: New file.
28931         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28932         glibc.
28933         * lib/unictype/3level.h: New file, copied from glibc.
28934         * lib/unictype/3levelbit.h: New file.
28935
28936 2007-11-11  Bruno Haible  <bruno@clisp.org>
28937
28938         * modules/gperf: New file.
28939         * modules/iconv_open (Depends-on): Add it.
28940         (Makefile.am): Remove the GPERF definition.
28941
28942 2007-11-11  Bruno Haible  <bruno@clisp.org>
28943
28944         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28945         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28946
28947 2007-11-11  Bruno Haible  <bruno@clisp.org>
28948
28949         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28950         (usage): Remove function.
28951
28952 2007-11-11  Bruno Haible  <bruno@clisp.org>
28953
28954         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28955         gl_FUNC_CEILF_LIBS.
28956         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28957         gl_FUNC_CEIL_LIBS.
28958         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28959         gl_FUNC_CEILL_LIBS.
28960         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28961         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28962         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28963
28964 2007-11-11  Bruno Haible  <bruno@clisp.org>
28965
28966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28967         roundf were declared but do not exist on functions.
28968         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28969         roundl were declared but do not exist on functions.
28970         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28971         HAVE_FLOORL_AND_CEILL, respectively.
28972         Needed for Sun C on Solaris 10.
28973
28974 2007-11-11  Bruno Haible  <bruno@clisp.org>
28975
28976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28977         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28978         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28979         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28981         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28982         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28983         HAVE_DECL_ROUNDF.
28984         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28985         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28987         of HAVE_DECL_ROUND*.
28988         * modules/math (Makefile.am): Update.
28989
28990 2007-11-10  Bruno Haible  <bruno@clisp.org>
28991
28992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28993         ptrdiff_t as m4/intl.m4.
28994
28995 2007-11-10  Jim Meyering  <meyering@redhat.com>
28996
28997         Avoid link failure for the argmatch test.
28998         * tests/test-argmatch.c (usage): Define function to avoid a link
28999         failure: argmatch_die requires a usage function.
29000
29001 2007-11-09  Bruno Haible  <bruno@clisp.org>
29002
29003         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29004         * doc/functions/vsnprintf.texi: Likewise.
29005         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29006         with a size argument < 2.
29007
29008 2007-11-09  Bruno Haible  <bruno@clisp.org>
29009
29010         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29011         buffer. Fixes an inefficiency introduced on 2007-11-03.
29012
29013 2007-11-09  Bruno Haible  <bruno@clisp.org>
29014
29015         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29016         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29017
29018 2007-11-08  Jim Meyering  <meyering@redhat.com>
29019
29020         Change cache variable name prefix "jm_" to "gl_" everywhere.
29021         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29022         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29023         * m4/uptime.m4: s/gl_/jm_/
29024
29025 2007-11-07  Bruno Haible  <bruno@clisp.org>
29026
29027         Update to GNU gettext 0.17.
29028         * m4/intl.m4: Update to GNU gettext 0.17.
29029         * m4/po.m4: Likewise.
29030         * modules/gettext (Files): Remove m4/ulonglong.m4.
29031         (configure.ac): Require gettext infrastructure from version 0.17.
29032
29033 2007-11-06  Bruno Haible  <bruno@clisp.org>
29034
29035         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29036         symbolic values are not defined in a public header.
29037         * lib/freadable.c (freadable) [QNX]: Likewise.
29038         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29039         * lib/freading.c (freading) [QNX]: Likewise.
29040         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29041         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29042         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29043         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29044         Reported by Alain Magloire.
29045
29046         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29047
29048 2007-11-05  Bruno Haible  <bruno@clisp.org>
29049
29050         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29051         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29052         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29053         Reported by Eric Blake.
29054
29055 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29056             Bruno Haible  <bruno@clisp.org>
29057
29058         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29059         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29060         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29061         (malloc): Undefine also before including <stdlib.h>.
29062         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29063         Needed on OSF/1 4.0.
29064
29065 2007-11-05  Jim Meyering  <meyering@redhat.com>
29066
29067         git-version-gen: sync from coreutils.
29068         * build-aux/git-version-gen: Add comments.
29069         Change the first '-' to '.' in the snapshot version string,
29070         e.g., 6.9-377-08144 -> 6.9.377-08144
29071         Remove first parameter.
29072         Don't declare a version "-dirty" merely because a time
29073         stamp has changed.
29074
29075 2007-11-04  Bruno Haible  <bruno@clisp.org>
29076
29077         * lib/lock.h: Protect all macro definitions containing an 'if'
29078         statement through a "do { ... } while (0)".
29079         * lib/tls.h: Likewise.
29080
29081 2007-11-04  Bruno Haible  <bruno@clisp.org>
29082
29083         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29084
29085 2007-11-04  Bruno Haible  <bruno@clisp.org>
29086
29087         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29088         * modules/fprintf-posix (Depends-on): Add nocrash.
29089         * modules/snprintf-posix (Depends-on): Likewise.
29090         * modules/sprintf-posix (Depends-on): Likewise.
29091         * modules/vasnprintf-posix (Depends-on): Likewise.
29092         * modules/vasprintf-posix (Depends-on): Likewise.
29093         * modules/vfprintf-posix (Depends-on): Likewise.
29094         * modules/vsnprintf-posix (Depends-on): Likewise.
29095         * modules/vsprintf-posix (Depends-on): Likewise.
29096         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29097         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29098         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29099         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29100         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29101         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29102         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29103
29104 2007-11-04  Bruno Haible  <bruno@clisp.org>
29105
29106         * modules/nocrash: New file.
29107         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29108         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29109
29110 2007-11-04  Bruno Haible  <bruno@clisp.org>
29111
29112         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29113         precision handling.
29114         * tests/test-vasprintf-posix.c (test_function): Likewise.
29115         * tests/test-snprintf-posix.h (test_function): Likewise.
29116         * tests/test-sprintf-posix.h (test_function): Likewise.
29117
29118         Fix *printf behaviour for large precisions on mingw and BeOS.
29119         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29120         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29122         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29124         gl_PRINTF_PRECISION and test its result. Invoke
29125         gl_PREREQ_VASNPRINTF_PRECISION.
29126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29133         * doc/functions/fprintf.texi: Update.
29134         * doc/functions/printf.texi: Update.
29135         * doc/functions/snprintf.texi: Update.
29136         * doc/functions/sprintf.texi: Update.
29137         * doc/functions/vfprintf.texi: Update.
29138         * doc/functions/vprintf.texi: Update.
29139         * doc/functions/vsnprintf.texi: Update.
29140         * doc/functions/vsprintf.texi: Update.
29141
29142 2007-11-04  Bruno Haible  <bruno@clisp.org>
29143
29144         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29145
29146 2007-11-04  Bruno Haible  <bruno@clisp.org>
29147
29148         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29149         Reported by Sylvain Beucler <beuc@gnu.org>.
29150
29151 2007-11-03  Bruno Haible  <bruno@clisp.org>
29152
29153         * tests/test-fprintf-posix2.sh: New file.
29154         * tests/test-fprintf-posix2.c: New file.
29155         * modules/fprintf-posix-tests (Files): Add them.
29156         (TESTS): Add test-fprintf-posix2.sh.
29157         (configure.ac): Check for getrlimit and setrlimit.
29158         (check_PROGRAMS): Add test-fprintf-posix2.
29159
29160         * tests/test-printf-posix2.sh: New file.
29161         * tests/test-printf-posix2.c: New file.
29162         * modules/printf-posix-tests (Files): Add them.
29163         (TESTS): Add test-printf-posix2.sh.
29164         (configure.ac): Check for getrlimit and setrlimit.
29165         (check_PROGRAMS): Add test-printf-posix2.
29166
29167         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29168         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29169         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29170         (decode_double): New function, copied from decode_long_double.
29171         (scale10_round_decimal_decoded): New function, extracted from
29172         scale10_round_decimal_long_double.
29173         (scale10_round_decimal_long_double): Use it.
29174         (scale10_round_decimal_double): New function.
29175         (floorlog10): New function.
29176         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29178         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29179         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29180         gl_PRINTF_ENOMEM and test its result. Invoke
29181         gl_PREREQ_VASNPRINTF_ENOMEM.
29182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29189         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29190         * modules/snprintf-posix (Depends-on): Likewise.
29191         * modules/sprintf-posix (Depends-on): Likewise.
29192         * modules/vasnprintf-posix (Depends-on): Likewise.
29193         * modules/vasprintf-posix (Depends-on): Likewise.
29194         * modules/vfprintf-posix (Depends-on): Likewise.
29195         * modules/vsnprintf-posix (Depends-on): Likewise.
29196         * modules/vsprintf-posix (Depends-on): Likewise.
29197         * doc/functions/fprintf.texi: Update.
29198         * doc/functions/printf.texi: Update.
29199         * doc/functions/snprintf.texi: Update.
29200         * doc/functions/sprintf.texi: Update.
29201         * doc/functions/vfprintf.texi: Update.
29202         * doc/functions/vprintf.texi: Update.
29203         * doc/functions/vsnprintf.texi: Update.
29204         * doc/functions/vsprintf.texi: Update.
29205
29206 2007-11-03  Bruno Haible  <bruno@clisp.org>
29207
29208         * modules/frexp-nolibm-tests: New file.
29209
29210         * modules/frexp-nolibm: New file.
29211         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29212
29213 2007-11-03  Bruno Haible  <bruno@clisp.org>
29214
29215         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29216         value is C99 compliant.
29217         Needed for OSF/1 5.1.
29218
29219 2007-11-03  Bruno Haible  <bruno@clisp.org>
29220
29221         Fix out-of-memory handling of vasnprintf.
29222         * lib/printf-parse.c: Include <errno.h>.
29223         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29224         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29225         is already set.
29226
29227 2007-11-02  Eric Blake  <ebb9@byu.net>
29228
29229         Fix tests on cygwin.
29230         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29231
29232 2007-11-01  Bruno Haible  <bruno@clisp.org>
29233
29234         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29235         warning.
29236         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29237         needed for POSIX compatibility.
29238
29239 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29240
29241         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29242         for compatibility with GNU.
29243
29244 2007-11-01  Bruno Haible  <bruno@clisp.org>
29245
29246         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29247         (putenv): Renamed from rpl_putenv. Change argument type from
29248         'const char *' to 'char *'.
29249         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29250         of defining putenv in config.h, just set REPLACE_PUTENV.
29251         * modules/putenv (Depends-on): Add stdlib.
29252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29253         (Include): Use <stdlib.h>.
29254         * lib/stdlib.in.h (putenv): New declaration.
29255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29256         REPLACE_PUTENV.
29257         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29258         REPLACE_PUTENV.
29259         Needed for MacOS X 10.5.0.
29260         Reported by Peter O'Gorman <peter@pogma.com>.
29261
29262 2007-11-01  Jim Meyering  <meyering@redhat.com>
29263
29264         Treat an empty date string exactly like "0".
29265         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29266         if the remaining date string (to be parsed) is empty, use "0".
29267         Reported by Mischa Molhoek and discussed in this thread:
29268         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29269
29270 2007-10-31  Bruno Haible  <bruno@clisp.org>
29271
29272         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29273         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29274         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29275         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29276         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29277         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29278
29279 2007-10-31  Bruno Haible  <bruno@clisp.org>
29280
29281         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29282         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29283         (AC_TYPE_LONG_LONG_INT): Use it.
29284         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29285         it as well.
29286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29287         to m4/longlong.m4.
29288         * modules/stdint (Files): Remove m4/ulonglong.m4.
29289         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29290         m4/ulonglong.m4.
29291         * modules/strtoumax (Files): Likewise.
29292
29293 2007-10-30  Bruno Haible  <bruno@clisp.org>
29294
29295         * modules/xvasprintf-posix: New file.
29296         Suggested by Eric Blake.
29297
29298 2007-10-30  Bruno Haible  <bruno@clisp.org>
29299
29300         * modules/xprintf-posix-tests: New file.
29301         * tests/test-xprintf-posix.sh: New file.
29302         * tests/test-xprintf-posix.c: New file.
29303         * tests/test-xfprintf-posix.c: New file.
29304
29305         * modules/xprintf-posix: New file.
29306
29307 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29308
29309         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29310         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29311         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29312
29313 2007-10-29  Bruno Haible  <bruno@clisp.org>
29314
29315         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29316         contain the special marker '_cv_'.
29317         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29318         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29319         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29320         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29321         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29322         Reported by Ralf Wildenhues.
29323
29324 2007-10-29  Bruno Haible  <bruno@clisp.org>
29325
29326         * gnulib-tool (func_import): When --lgpl is not specified, set
29327         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29328         GPLv3.
29329         Reported by Simon Josefsson.
29330
29331 2007-10-28  Bruno Haible  <bruno@clisp.org>
29332
29333         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29334         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29335         HAVE_DECL_ISFINITE.
29336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29337         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29338         HAVE_DECL_ISFINITE.
29339
29340 2007-10-28  Bruno Haible  <bruno@clisp.org>
29341
29342         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29343         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29344
29345 2007-10-28  Bruno Haible  <bruno@clisp.org>
29346
29347         Fix link errors with Sun C 5.0 on Solaris 10.
29348         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29349         function is declared but not present in the compiler's libm.
29350         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29351         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29352         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29353         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29354         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29355         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29356         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29358         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29359         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29360         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29361         HAVE_DECL_FLOORL.
29362
29363 2007-10-28  Bruno Haible  <bruno@clisp.org>
29364
29365         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29366         gl_FUNC_FLOORL. Cache the result.
29367         (gl_FUNC_FLOORL): Use it.
29368         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29369         gl_FUNC_CEILL. Cache the result.
29370         (gl_FUNC_CEILL): Use it.
29371
29372         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29373         gl_FUNC_FLOOR. Cache the result.
29374         (gl_FUNC_FLOOR): Use it.
29375         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29376         gl_FUNC_CEIL. Cache the result.
29377         (gl_FUNC_CEIL): Use it.
29378
29379         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29380         gl_FUNC_FLOORF. Cache the result.
29381         (gl_FUNC_FLOORF): Use it.
29382         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29383         gl_FUNC_CEILF. Cache the result.
29384         (gl_FUNC_CEILF): Use it.
29385
29386 2007-10-28  Bruno Haible  <bruno@clisp.org>
29387
29388         * gnulib-tool: Allow specifying the LGPL version number through
29389         --lgpl=2 or --lgpl=3.
29390         (func_usage): Document --lgpl with argument.
29391         Handle --lgpl=... arguments.
29392         (func_import): Recognize also gl_LGPL calls with an argument. When
29393         --lgpl=2 is used and the module's license is just LGPL, report an
29394         error. Set sed_transform_lib_file according to the lgpl variable. In
29395         the generated files, use --lgpl or gl_LGPL invocations with argument,
29396         if necessary.
29397         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29398         an LGPv2+ license.
29399         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29400         gl_LGPL macro.
29401
29402 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29403             Bruno Haible  <bruno@clisp.org>
29404
29405         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29406         (u16_uctomb_aux): Likewise.
29407         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29408         !HAVE_INLINE.
29409         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29410
29411 2007-10-28  Bruno Haible  <bruno@clisp.org>
29412
29413         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29414         Invoke AM_GETTEXT_OPTION if it exists.
29415         * modules/vasprintf: Likewise.
29416         * modules/verror: Likewise.
29417         * modules/xprintf: Likewise.
29418         * modules/xvasprintf: Likewise.
29419
29420 2007-10-27  Ben Pfaff  <blp@gnu.org>
29421
29422         * lib/math.in.h: Define isfinite macro and prototypes for
29423         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29424         implementations.
29425         * m4/math_h.m4: New substitutions for isfinite module.
29426         * lib/isfinite.c: New file.
29427         * m4/isfinite.m4: New file.
29428         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29429         * modules/isfinite: New file.
29430         * modules/isfinite-tests: New file.
29431         * tests/tests-isfinite.c: New file.
29432         * doc/functions/isfinite.texi: Mention isfinite module.
29433         * MODULES.html.sh: Mention new module.
29434
29435 2007-10-27  Ben Pfaff  <blp@gnu.org>
29436
29437         Ralf Wildenhues reported that Tru64 4.0D declares the round
29438         functions but does not have definitions.
29439         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29440         cannot be found in any library, set the output variable to
29441         "missing" instead of "".
29442         * m4/round.m4: Also use our substitute if we cannot find round in
29443         any library, even if it is declared.
29444         * m4/roundf.m4: Likewise for roundf.
29445         * m4/roundl.m4: Likewise for roundl.
29446         * lib/math.in.h: Undefine roundf, round, roundl before defining
29447         their replacements, to allow for hypothetical systems where these
29448         may be defined as macros but not available in libraries.
29449
29450 2007-10-27  Bruno Haible  <bruno@clisp.org>
29451
29452         * doc/gnulib.texi: Invoke @firstparagraphindent.
29453         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29454         changes in gnulib.
29455         (Source changes): New section.
29456
29457 2007-10-26  Bruno Haible  <bruno@clisp.org>
29458
29459         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29460         borrowed from autoconf.
29461
29462 2007-10-26  Bruno Haible  <bruno@clisp.org>
29463
29464         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29465         strerror returned the empty string. Needed on HP-UX 11.00.
29466
29467 2007-10-24  Micah Cowan  <micah@cowan.name>
29468
29469         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29470         * build-aux/bootstrap: Remove support for now-unnecessary option,
29471         --cvs-user, and envvars CVS_USER, CVS_RSH.
29472
29473 2007-10-24  Jim Meyering  <meyering@redhat.com>
29474
29475         Avoid diagnostics from sha1sum when there is no cached checksum.
29476         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29477         if the po.s1 file hasn't been created yet.
29478
29479         * build-aux/bootstrap: Sync from coreutils:
29480         2007-10-24  Jim Meyering  <meyering@redhat.com>
29481         Get gnulib from the git repository, not from an obsolete cvs one.
29482         * build-aux/bootstrap: Suggestion from Micah Cowan.
29483         2007-10-04  Jim Meyering  <jim@meyering.net>
29484         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29485         (update_po_files): Work also when there are no .po files in po/.
29486
29487 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29488
29489         * README: Append ".git" to git and cg examples.
29490         Problem reported by Benoit Sigoure.
29491
29492 2007-10-23  Micah Cowan  <micah@cowan.name>
29493
29494         * users.txt: Add wget.
29495
29496 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29497
29498         Fix linking of some unistdio tests on FreeBSD.
29499         * modules/unistdio/u16-vsnprintf-tests
29500         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29501         * modules/unistdio/u16-vsprintf-tests
29502         (test_u16_vsnprintf1_LDADD): Likewise.
29503         * modules/unistdio/u32-vsnprintf-tests
29504         (test_u32_vsnprintf1_LDADD): Likewise.
29505         * modules/unistdio/u32-vsprintf-tests
29506         (test_u32_vsprintf1_LDADD): Likewise.
29507         * modules/unistdio/u8-vsnprintf-tests
29508         (test_u8_vsnprintf1_LDADD): Likewise.
29509         * modules/unistdio/u8-vsprintf-tests
29510         (test_u8_vsprintf1_LDADD): Likewise.
29511         * modules/unistdio/ulc-vsnprintf-tests
29512         (test_ulc_vsnprintf1_LDADD): Likewise.
29513         * modules/unistdio/ulc-vsprintf-tests
29514         (test_ulc_vsprintf1_LDADD): Likewise.
29515
29516         Fix linking of some uniconv tests on FreeBSD.
29517         * modules/uniconv/u16-conv-from-enc-tests
29518         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29519         * modules/uniconv/u16-conv-to-enc-tests
29520         (test_u16_conv_to_enc_LDADD): Likewise.
29521         * modules/uniconv/u16-strconv-from-enc-tests
29522         (test_u16_strconv_from_enc_LDADD): Likewise.
29523         * modules/uniconv/u16-strconv-to-enc-tests
29524         (test_u16_strconv_to_enc_LDADD): Likewise.
29525         * modules/uniconv/u32-conv-from-enc-tests
29526         (test_u32_conv_from_enc_LDADD): Likewise.
29527         * modules/uniconv/u32-conv-to-enc-tests
29528         (test_u32_conv_to_enc_LDADD): Likewise.
29529         * modules/uniconv/u32-strconv-from-enc-tests
29530         (test_u32_strconv_from_enc_LDADD): Likewise.
29531         * modules/uniconv/u32-strconv-to-enc-tests
29532         (test_u32_strconv_to_enc_LDADD): Likewise.
29533         * modules/uniconv/u8-conv-from-enc-tests
29534         (test_u8_conv_from_enc_LDADD): Likewise.
29535         * modules/uniconv/u8-conv-to-enc-tests
29536         (test_u8_conv_to_enc_LDADD): Likewise.
29537         * modules/uniconv/u8-strconv-from-enc-tests
29538         (test_u8_strconv_from_enc_LDADD): Likewise.
29539         * modules/uniconv/u8-strconv-to-enc-tests
29540         (test_u8_strconv_to_enc_LDADD): Likewise.
29541
29542 2007-10-22  Bruno Haible  <bruno@clisp.org>
29543
29544         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29545         size.
29546
29547 2007-10-22  Eric Blake  <ebb9@byu.net>
29548
29549         Tweak x*printf documentation.
29550         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29551         variable name and comments.
29552         Suggested by Bruno Haible.
29553
29554 2007-10-22  Bruno Haible  <bruno@clisp.org>
29555
29556         * lib/acl.c (copy_acl): Fix file name in comment.
29557
29558 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29559
29560         Fix Tru64 problem with stdbool.h.
29561         * lib/stdbool.in.h (false, true):
29562         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29563         Don't declare as an enum in this situation; it runs afoul of Tru64.
29564         Problem reported by Steven M. Schweda in
29565         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29566
29567 2007-10-22  Eric Blake  <ebb9@byu.net>
29568
29569         Also wrap vf?printf.
29570         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29571         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29572         (xvprintf, xvfprintf): New functions.
29573
29574 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29575
29576         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29577         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29578
29579         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29580         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29581
29582 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29583
29584         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29585         by Bruno Haible.
29586
29587 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29588
29589         * lib/getloadavg.c
29590         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29591         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29592
29593         * tests/test-i-ring.c: Work for C89.
29594
29595 2007-10-22  Bruno Haible  <bruno@clisp.org>
29596
29597         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29598         -1u, in preprocessor expression, so that we don't test for the bug
29599         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29601
29602 2007-10-22  Eric Blake  <ebb9@byu.net>
29603
29604         * tests/test-yesno.sh: Silence stderr during test.
29605
29606 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29607
29608         * modules/crypto/gc-camellia: New file.
29609
29610         * m4/gc-camellia.m4: New file.
29611
29612         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29613
29614         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29615
29616 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29617
29618         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29619         --help to stdout.  Reported by sms@antinode.org (Steven
29620         M. Schweda).
29621
29622 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29623
29624         * users.txt: Fix link to libksba.
29625
29626 2007-10-21  Ben Pfaff  <blp@gnu.org>
29627
29628         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29629         round.c roundf implementation that depends on floorf and ceilf to
29630         be tested unconditionally.
29631
29632 2007-10-21  Ben Pfaff  <blp@gnu.org>
29633
29634         * m4/check-libm-func.m4: Removed.
29635         * m4/check-math-lib.m4: New file.
29636         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29637         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29638         definition and lack of AC_LIBOBJ([roundf]).
29639         * m4/roundl.m4: Ditto, and similarly for roundl.
29640         * modules/round: Reference new m4 file.
29641         * modules/roundf: Ditto.
29642         * modules/roundl: Ditto.
29643         * tests/test-round2.c (main): Use ROUND instead of round.
29644         Bug report from Bruno Haible.
29645
29646 2007-10-21  Bruno Haible  <bruno@clisp.org>
29647
29648         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29649         context.
29650
29651 2007-10-21  Bruno Haible  <bruno@clisp.org>
29652
29653         * tests/test-wcwidth.c (main): Allow negative result for some control
29654         characters.
29655
29656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29657         Needed on OSF/1 5.1.
29658
29659 2007-10-21  Bruno Haible  <bruno@clisp.org>
29660
29661         * tests/test-floorf1.c: Include isnanf.h.
29662         (main): Use isnanf() instead of isnan().
29663         * tests/test-ceilf1.c: Include isnanf.h.
29664         (main): Use isnanf() instead of isnan().
29665         * tests/test-truncf1.c: Include isnanf.h.
29666         (main): Use isnanf() instead of isnan().
29667         * tests/test-roundf1.c: Include isnanf.h.
29668         (main): Use isnanf() instead of isnan().
29669
29670 2007-10-21  Eric Blake  <ebb9@byu.net>
29671
29672         * users.txt: Update URL for m4.
29673
29674 2007-10-21  Bruno Haible  <bruno@clisp.org>
29675
29676         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29677
29678 2007-10-21  Bruno Haible  <bruno@clisp.org>
29679
29680         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29681         Git's management files if the CVS files are not present.
29682
29683 2007-10-20  Bruno Haible  <bruno@clisp.org>
29684
29685         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29686         gcc-3.4.x.
29687
29688 2007-10-20  Ben Pfaff  <blp@gnu.org>
29689
29690         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29691         implementations.
29692         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29693         * lib/round.c: New file.
29694         * lib/roundf.c: New file.
29695         * lib/roundl.c: New file.
29696         * m4/round.m4: New file.
29697         * m4/roundf.m4: New file.
29698         * m4/roundl.m4: New file.
29699         * m4/check-libm-func-m4: New file.
29700         * modules/math: Replace round, roundf, roundl related @VARS@ in
29701         math.in.h.
29702         * modules/round: New file.
29703         * modules/round-tests: New file.
29704         * modules/roundf: New file.
29705         * modules/roundf-tests: New file.
29706         * modules/roundl: New file.
29707         * modules/roundl-tests: New file.
29708         * tests/test-round1.c: New file.
29709         * tests/test-round2.c: New file.
29710         * tests/test-roundf1.c: New file.
29711         * tests/test-roundf2.c: New file.
29712         * tests/test-roundl.c: New file.
29713         * doc/functions/round.texi: Mention round module.
29714         * doc/functions/roundf.texi: Mention roundf module.
29715         * doc/functions/roundl.texi: Mention roundl module.
29716         * MODULES.html.sh: Mention new modules.
29717         Thanks to Bruno Haible for suggestions.
29718
29719 2007-10-20  Jim Meyering  <meyering@redhat.com>
29720
29721         * lib/xprintf.c: Include <config.h> unconditionally.
29722
29723         Change xprintf's license to GPL.
29724         * modules/xprintf (License): s/LGPL/GPL/, since this module
29725         depends on modules (exit and exitfail) which are GPL.
29726         Suggestion from Bruno Haible.
29727
29728         xprintf fixes.
29729         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29730         Use a clearer diagnostic.
29731         Patch from Bruno Haible.
29732
29733 2007-10-20  Bruno Haible  <bruno@clisp.org>
29734
29735         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29736         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29738
29739 2007-10-20  Bruno Haible  <bruno@clisp.org>
29740
29741         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29742         precision in the comparison result > x - 1 or similar.
29743         * tests/test-ceilf2.c (correct_result_p): Likewise.
29744         * tests/test-truncf2.c (correct_result_p): Likewise.
29745         * tests/test-trunc2.c (correct_result_p): Likewise.
29746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29747
29748 2007-10-20  Bruno Haible  <bruno@clisp.org>
29749
29750         * modules/ceil: New file.
29751         * m4/ceil.m4: New file.
29752         * doc/functions/ceil.texi: Mention the 'ceil' module.
29753
29754 2007-10-20  Bruno Haible  <bruno@clisp.org>
29755
29756         * modules/floor: New file.
29757         * m4/floor.m4: New file.
29758         * doc/functions/floor.texi: Mention the 'floor' module.
29759
29760 2007-10-20  Bruno Haible  <bruno@clisp.org>
29761
29762         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29763         of %a.
29764         * modules/floorf-tests (Depends-on): Likewise.
29765         * modules/truncf-tests (Depends-on): Likewise.
29766         * modules/trunc-tests (Depends-on): Likewise.
29767         Reported by Ben Pfaff.
29768
29769 2007-10-19  Jim Meyering  <meyering@redhat.com>
29770
29771         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29772         Don't bother testing specific errno values.  Just test ferror.
29773
29774         New module: xprintf
29775         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29776
29777 2007-10-19  Bruno Haible  <bruno@clisp.org>
29778
29779         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29780         syntax.
29781         * modules/javaexec (Makefile.am): Likewise.
29782         * modules/relocatable-prog (Makefile.am): Likewise.
29783         Suggested by Jim Meyering.
29784
29785 2007-10-18  Bruno Haible  <bruno@clisp.org>
29786
29787         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29788         Reported by Jim Meyering.
29789
29790 2007-10-18  Eric Blake  <ebb9@byu.net>
29791
29792         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29793
29794 2007-10-18  Bruno Haible  <bruno@clisp.org>
29795
29796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29797         the format string into writable memory. Needed in Fortify conditions.
29798
29799 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29800             Bruno Haible  <bruno@clisp.org>
29801
29802         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29803         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29804         * modules/trim (Depends-on): Add mbchar.
29805         (configure.ac): Add gl_FUNC_MBRTOWC.
29806         (Makefile.am): Augment lib_SOURCES.
29807
29808 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29809
29810         Modify glob.c to use fstatat and dirfd, to simplify it.
29811         Suggested by Eric Blake.
29812         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29813         Don't include <stdbool.h>; not used.
29814         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29815         (link_exists_p): Simplify implementation, since we can now assume
29816         dirfd and fstatat.
29817         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29818
29819 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29820
29821         * gnulib-tool (func_get_dependencies): Fix sed script to
29822         match only tests.
29823
29824 2007-10-17  Bruno Haible  <bruno@clisp.org>
29825
29826         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29827         allow locale names without encoding suffix.
29828         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29829         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29830
29831 2007-10-16  Bruno Haible  <bruno@clisp.org>
29832
29833         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29834         * lib/getgroups.c (getgroups): Likewise.
29835         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29836
29837 2007-10-16  Bruno Haible  <bruno@clisp.org>
29838
29839         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29840         * modules/malloc-posix (License): Likewise.
29841         * modules/realloc-posix (License): Likewise.
29842         * modules/calloc-posix (License): Likewise.
29843         * modules/intprops (License): Change from GPL to LGPL, with
29844         Paul Eggert's approval.
29845
29846 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29847
29848         Merge glibc changes into lib/glob.c.
29849
29850         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29851         2007-10-15 04:59:03 UTC.  Here are the changes:
29852
29853         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29854
29855         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29856
29857         * lib/glob.c: Add some branch prediction throughout.
29858
29859         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29860
29861         [BZ #5103]
29862         * lib/glob.c (glob): Recognize patterns starting \/.
29863
29864         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29865
29866         [BZ #3996]
29867         * lib/glob.c (attribute_hidden): Define if not defined.
29868         (glob): Unescape dirname, filename or username when needed and not
29869         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29870         is NULL.  Handle unescaped [ in pattern without closing ].
29871         Don't pass GLOB_CHECK down to recursive glob for directories.
29872         (__glob_pattern_type): New function.
29873         (__glob_pattern_p): Implement using __glob_pattern_type.
29874         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29875         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29876         Remove unreachable code.
29877
29878         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29879
29880         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29881         explain why there are no leaks.
29882
29883         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29884
29885         [BZ #3253]
29886         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29887         time, rather allocate increasingly bigger arrays of pointers, if
29888         possible with alloca, if too large with malloc.
29889
29890 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29891
29892         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29893         Problem reported by H.Merijn Brand in
29894         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29895         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29896         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29897
29898 2007-10-15  Bruno Haible  <bruno@clisp.org>
29899
29900         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29901         with explicit rpl_ prefix.
29902         * lib/fopen.c (fopen): Likewise.
29903         * lib/freopen.c (freopen): Likewise.
29904         * lib/iconv.c (iconv): Likewise.
29905         * lib/iconv_close.c (iconv_close): Likewise.
29906
29907 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29908
29909         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29910
29911 2007-10-15  Bruno Haible  <bruno@clisp.org>
29912
29913         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29914         <stddef.h> instead of <stdlib.h> since we only need NULL.
29915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29916
29917 2007-10-15  Bruno Haible  <bruno@clisp.org>
29918
29919         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29920         Replace paragraph talking about LIBOBJS.
29921         Reported by Colin Watson <cjwatson@debian.org>.
29922
29923 2007-10-15  Bruno Haible  <bruno@clisp.org>
29924
29925         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29926         <stdlib.h> before using NULL.
29927
29928 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29929
29930         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29931         Reported by Albert Chin <china@thewrittenword.com>.
29932
29933 2007-10-14  Bruno Haible  <bruno@clisp.org>
29934
29935         * modules/iconv_open-utf-tests: New file.
29936         * tests/test-iconv-utf.c: New file.
29937
29938         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29939         * modules/iconv_open-utf: New file.
29940         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29941         (iconv, iconv_close): New declarations.
29942         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29943         be defined.
29944         (iconv_open): Add special handling of conversion between UTF-8 and
29945         UTF-{16,32}{BE,LE}.
29946         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29947         * lib/iconv_close.c: New file.
29948         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29949         gl_FUNC_ICONV_OPEN.
29950         (gl_FUNC_ICONV_OPEN): Use it.
29951         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29952         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29953         and REPLACE_ICONV_UTF.
29954         * modules/iconv_open (Depends-on): Add c-strcase.
29955         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29956         ICONV_CONST.
29957         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29958
29959 2007-10-13  Albert Chin  <china@thewrittenword.com>
29960             Bruno Haible  <bruno@clisp.org>
29961
29962         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29963         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29964
29965 2007-10-13  Bruno Haible  <bruno@clisp.org>
29966
29967         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29968         defined, use the ISO C99 inline semantics.
29969         * lib/argp.h (ARGP_EI): Likewise.
29970
29971 2007-10-13  Bruno Haible  <bruno@clisp.org>
29972
29973         Handle 'inline' change in gcc 4.3.0.
29974         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29975         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29976         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29977         argp_fmtstream_point): Disable 'extern' declaration if the function
29978         definition is going to be provided inline.
29979         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29980         semantics, not the ISO C99 inline semantics.
29981         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29982         'extern' declaration if the function definition is going to be provided
29983         inline.
29984         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29985         the GNU C inline semantics, not the ISO C99 inline semantics. With
29986         GCC 4.2, avoid a warning.
29987
29988 2007-10-13  Bruno Haible  <bruno@clisp.org>
29989
29990         * lib/freading.h (freading): Enable the use of __freading for
29991         glibc >= 2.7.
29992         * lib/freading.c (freading): Likewise.
29993
29994 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29995
29996         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29997         "warning: C99 inline functions are not supported; using GNU89".
29998
29999 2007-10-12  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30002         of 2.
30003         * tests/test-ceilf2.c: New file.
30004         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30005
30006         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30007         * modules/ceilf-tests: Update.
30008
30009 2007-10-12  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30012         of 2.
30013         * tests/test-floorf2.c: New file.
30014         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30015
30016         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30017         * modules/floorf-tests: Update.
30018
30019 2007-10-12  Bruno Haible  <bruno@clisp.org>
30020
30021         * tests/test-trunc2.c: New file.
30022         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30023
30024         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30025         * modules/trunc-tests: Update.
30026
30027 2007-10-12  Bruno Haible  <bruno@clisp.org>
30028
30029         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30030         of 2.
30031         * tests/test-truncf2.c: New file.
30032         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30033
30034         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30035         * modules/truncf-tests: Update.
30036
30037 2007-10-11  Eric Blake  <ebb9@byu.net>
30038
30039         Don't claim strerror is broken on Interix.
30040         * doc/functions/strerror.texi (strerror): Known broken systems are
30041         now Solaris 8, and not Interix.
30042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30043         Interix on cross-compile.
30044         Reported by Martin Koeppe in
30045         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30046
30047 2007-10-11  Bruno Haible  <bruno@clisp.org>
30048
30049         * modules/i-ring-tests: New file.
30050         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30051         instead of assert.
30052
30053 2007-10-11  Bruno Haible  <bruno@clisp.org>
30054
30055         * modules/filenamecat-tests: New file.
30056         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30057         * lib/filenamecat.c: Remove test code.
30058
30059 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30060
30061         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30062
30063         * lib/strerror.c: Include <string.h> always, to test interface,
30064         and to remove the need for the dummy.
30065         Include intprops.h to compute width instead of doing it ourselves
30066         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30067         (strerror): Define it to return NULL if there's no system strerror.
30068         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30069         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30070         ancient pre-strerror Unix systems well any more.  Saying "unknown
30071         system error" is enough.
30072         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30073         simpler strerror.c implementation.
30074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30075         Simplify the tests to reflect the simpler strerror implementation.
30076         * modules/strerror (Depends-on): Add intprops.
30077
30078 2007-10-09  Eric Blake  <ebb9@byu.net>
30079
30080         Silence test-fpending.
30081         * modules/fpending-tests (Files): Add wrapper script.
30082         * tests/test-fpending.sh: New file.
30083
30084 2007-10-09  Bruno Haible  <bruno@clisp.org>
30085
30086         * MODULES.html.sh (func_module): Don't create a hyperlink for
30087         function names like 'printf_frexp'.
30088         (Misc): Add crc, memxor.
30089         (Characteristics of floating types): New section.
30090         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30091         isnanf-nolibm, signbit, trunc, truncf, truncl.
30092         (Enhancements for ISO C 99 functions): New subsection Input/output.
30093         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30094         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30095         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30096         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30097         (Enhancements for POSIX:2001 functions): Add chdir-long.
30098         (File system functions): Add areadlink, chdir-safer, read-file.
30099         Remove cycle-check.
30100         (File system as inode set): New section.
30101         (Date and time): Add gethrxtime.
30102         (Multithreading): Add openmp.
30103         (Internationalization functions): Add localename.
30104         (Unicode string functions): Add unistr/u*-mbsnlen.
30105         (Support for maintaining and releasing projects): Add git-version-gen.
30106         (Lone files): Remove directories.
30107
30108 2007-10-08  Ben Pfaff  <blp@gnu.org>
30109
30110         * lib/xmalloca.h: Fix typo in comment.
30111
30112 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30113
30114         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30115         when avoiding problems with integer overflow.  Use a portable test
30116         instead.
30117
30118 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30119
30120         * modules/dummy (License): Change to LGPLv2+.
30121         * modules/float (License): Likewise
30122         * modules/realloc (License): Likewise
30123         * modules/stdlib (License): Likewise
30124
30125 2007-10-07  Bruno Haible  <bruno@clisp.org>
30126
30127         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30128         * floor.c (TWO_MANT_DIG): Likewise.
30129         * ceil.c (TWO_MANT_DIG): Likewise.
30130         Reported by Ben Pfaff.
30131
30132 2007-10-07  Bruno Haible  <bruno@clisp.org>
30133
30134         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30135         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30136         * lib/frexp.c (FUNC): Likewise.
30137         * lib/printf-frexp.h (printf_frexp): Likewise.
30138         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30139         * lib/printf-frexp.c (FUNC): Likewise.
30140         Suggested by Jim Meyering.
30141
30142 2007-10-07  Jim Meyering  <meyering@redhat.com>
30143
30144         Make xnanosleep's integer overflow test more robust.
30145         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30146         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30147
30148 2007-10-07  Bruno Haible  <bruno@clisp.org>
30149
30150         * NEWS: Mention the license change.
30151
30152         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30153         abbreviations in the modules files.
30154
30155         Change copyright notice from GPLv2+ to GPLv3+.
30156         * README: Change copyright notice.
30157         * MODULES.html.sh: Likewise.
30158         * build-aux/bootstrap.conf: Likewise.
30159         * build-aux/config.libpath: Likewise.
30160         * build-aux/csharpcomp.sh.in: Likewise.
30161         * build-aux/csharpexec.sh.in: Likewise.
30162         * build-aux/install-reloc: Likewise.
30163         * build-aux/javacomp.sh.in: Likewise.
30164         * build-aux/javaexec.sh.in: Likewise.
30165         * build-aux/ldd.sh.in: Likewise.
30166         * build-aux/reloc-ldflags: Likewise.
30167         * build-aux/relocatable.sh.in: Likewise.
30168         * build-aux/x-to-1.in: Likewise.
30169         * check-module: Likewise.
30170         * config/srclistvars.sh: Likewise.
30171         * gnulib-tool: Likewise.
30172         * lib/acl-internal.h: Likewise.
30173         * lib/acl.c: Likewise.
30174         * lib/acl.h: Likewise.
30175         * lib/acl_entries.c: Likewise.
30176         * lib/areadlink-with-size.c: Likewise.
30177         * lib/areadlink.c: Likewise.
30178         * lib/areadlink.h: Likewise.
30179         * lib/argmatch.c: Likewise.
30180         * lib/argmatch.h: Likewise.
30181         * lib/argp-ba.c: Likewise.
30182         * lib/argp-eexst.c: Likewise.
30183         * lib/argp-fmtstream.c: Likewise.
30184         * lib/argp-fmtstream.h: Likewise.
30185         * lib/argp-fs-xinl.c: Likewise.
30186         * lib/argp-help.c: Likewise.
30187         * lib/argp-namefrob.h: Likewise.
30188         * lib/argp-parse.c: Likewise.
30189         * lib/argp-pin.c: Likewise.
30190         * lib/argp-pv.c: Likewise.
30191         * lib/argp-pvh.c: Likewise.
30192         * lib/argp-xinl.c: Likewise.
30193         * lib/argp.h: Likewise.
30194         * lib/at-func.c: Likewise.
30195         * lib/atanl.c: Likewise.
30196         * lib/backupfile.c: Likewise.
30197         * lib/backupfile.h: Likewise.
30198         * lib/basename.c: Likewise.
30199         * lib/binary-io.h: Likewise.
30200         * lib/byteswap.in.h: Likewise.
30201         * lib/c-stack.c: Likewise.
30202         * lib/c-stack.h: Likewise.
30203         * lib/c-strcasestr.c: Likewise.
30204         * lib/c-strcasestr.h: Likewise.
30205         * lib/c-strstr.c: Likewise.
30206         * lib/c-strstr.h: Likewise.
30207         * lib/c-strtod.c: Likewise.
30208         * lib/calloc.c: Likewise.
30209         * lib/canon-host.c: Likewise.
30210         * lib/canon-host.h: Likewise.
30211         * lib/canonicalize-lgpl.c: Likewise.
30212         * lib/canonicalize.c: Likewise.
30213         * lib/canonicalize.h: Likewise.
30214         * lib/ceil.c: Likewise.
30215         * lib/ceilf.c: Likewise.
30216         * lib/ceill.c: Likewise.
30217         * lib/chdir-long.c: Likewise.
30218         * lib/chdir-long.h: Likewise.
30219         * lib/chdir-safer.c: Likewise.
30220         * lib/chdir-safer.h: Likewise.
30221         * lib/chown.c: Likewise.
30222         * lib/classpath.c: Likewise.
30223         * lib/classpath.h: Likewise.
30224         * lib/clean-temp.c: Likewise.
30225         * lib/clean-temp.h: Likewise.
30226         * lib/cloexec.c: Likewise.
30227         * lib/close-stream.c: Likewise.
30228         * lib/closein.c: Likewise.
30229         * lib/closein.h: Likewise.
30230         * lib/closeout.c: Likewise.
30231         * lib/closeout.h: Likewise.
30232         * lib/concat-filename.c: Likewise.
30233         * lib/copy-file.c: Likewise.
30234         * lib/copy-file.h: Likewise.
30235         * lib/count-one-bits.h: Likewise.
30236         * lib/crc.c: Likewise.
30237         * lib/crc.h: Likewise.
30238         * lib/creat-safer.c: Likewise.
30239         * lib/csharpcomp.c: Likewise.
30240         * lib/csharpcomp.h: Likewise.
30241         * lib/csharpexec.c: Likewise.
30242         * lib/csharpexec.h: Likewise.
30243         * lib/cycle-check.c: Likewise.
30244         * lib/cycle-check.h: Likewise.
30245         * lib/diacrit.c: Likewise.
30246         * lib/diacrit.h: Likewise.
30247         * lib/diffseq.h: Likewise.
30248         * lib/dirchownmod.c: Likewise.
30249         * lib/dirent.in.h: Likewise.
30250         * lib/dirfd.c: Likewise.
30251         * lib/dirfd.h: Likewise.
30252         * lib/dirname.c: Likewise.
30253         * lib/dirname.h: Likewise.
30254         * lib/dummy.c: Likewise.
30255         * lib/dup-safer.c: Likewise.
30256         * lib/dup2.c: Likewise.
30257         * lib/eealloc.h: Likewise.
30258         * lib/error.c: Likewise.
30259         * lib/error.h: Likewise.
30260         * lib/euidaccess.c: Likewise.
30261         * lib/exclude.c: Likewise.
30262         * lib/exclude.h: Likewise.
30263         * lib/execute.c: Likewise.
30264         * lib/execute.h: Likewise.
30265         * lib/exitfail.c: Likewise.
30266         * lib/exitfail.h: Likewise.
30267         * lib/expl.c: Likewise.
30268         * lib/fatal-signal.c: Likewise.
30269         * lib/fatal-signal.h: Likewise.
30270         * lib/fbufmode.c: Likewise.
30271         * lib/fbufmode.h: Likewise.
30272         * lib/fchdir.c: Likewise.
30273         * lib/fchmodat.c: Likewise.
30274         * lib/fchownat.c: Likewise.
30275         * lib/fcntl--.h: Likewise.
30276         * lib/fcntl-safer.h: Likewise.
30277         * lib/fcntl.in.h: Likewise.
30278         * lib/fd-safer.c: Likewise.
30279         * lib/fflush.c: Likewise.
30280         * lib/file-has-acl.c: Likewise.
30281         * lib/file-set.c: Likewise.
30282         * lib/file-type.c: Likewise.
30283         * lib/file-type.h: Likewise.
30284         * lib/fileblocks.c: Likewise.
30285         * lib/filemode.c: Likewise.
30286         * lib/filemode.h: Likewise.
30287         * lib/filename.h: Likewise.
30288         * lib/filenamecat.c: Likewise.
30289         * lib/filenamecat.h: Likewise.
30290         * lib/findprog.c: Likewise.
30291         * lib/findprog.h: Likewise.
30292         * lib/float.in.h: Likewise.
30293         * lib/floor.c: Likewise.
30294         * lib/floorf.c: Likewise.
30295         * lib/floorl.c: Likewise.
30296         * lib/fopen-safer.c: Likewise.
30297         * lib/fopen.c: Likewise.
30298         * lib/fpending.c: Likewise.
30299         * lib/fpending.h: Likewise.
30300         * lib/fprintf.c: Likewise.
30301         * lib/fprintftime.h: Likewise.
30302         * lib/fpucw.h: Likewise.
30303         * lib/fpurge.c: Likewise.
30304         * lib/fpurge.h: Likewise.
30305         * lib/freadable.c: Likewise.
30306         * lib/freadable.h: Likewise.
30307         * lib/freadahead.c: Likewise.
30308         * lib/freadahead.h: Likewise.
30309         * lib/freading.c: Likewise.
30310         * lib/freading.h: Likewise.
30311         * lib/free.c: Likewise.
30312         * lib/freopen.c: Likewise.
30313         * lib/frexp.c: Likewise.
30314         * lib/frexpl.c: Likewise.
30315         * lib/fseek.c: Likewise.
30316         * lib/fseterr.c: Likewise.
30317         * lib/fseterr.h: Likewise.
30318         * lib/fstatat.c: Likewise.
30319         * lib/fstrcmp.c: Likewise.
30320         * lib/fstrcmp.h: Likewise.
30321         * lib/fsusage.c: Likewise.
30322         * lib/fsusage.h: Likewise.
30323         * lib/ftell.c: Likewise.
30324         * lib/ftello.c: Likewise.
30325         * lib/fts-cycle.c: Likewise.
30326         * lib/fts.c: Likewise.
30327         * lib/fts_.h: Likewise.
30328         * lib/full-read.c: Likewise.
30329         * lib/full-read.h: Likewise.
30330         * lib/full-write.c: Likewise.
30331         * lib/full-write.h: Likewise.
30332         * lib/fwritable.c: Likewise.
30333         * lib/fwritable.h: Likewise.
30334         * lib/fwriteerror.c: Likewise.
30335         * lib/fwriteerror.h: Likewise.
30336         * lib/fwriting.c: Likewise.
30337         * lib/fwriting.h: Likewise.
30338         * lib/gcd.c: Likewise.
30339         * lib/gcd.h: Likewise.
30340         * lib/getcwd.c: Likewise.
30341         * lib/getdate.h: Likewise.
30342         * lib/getdate.y: Likewise.
30343         * lib/getdomainname.c: Likewise.
30344         * lib/getdomainname.h: Likewise.
30345         * lib/getgroups.c: Likewise.
30346         * lib/gethostname.c: Likewise.
30347         * lib/gethrxtime.c: Likewise.
30348         * lib/gethrxtime.h: Likewise.
30349         * lib/getloadavg.c: Likewise.
30350         * lib/getndelim2.c: Likewise.
30351         * lib/getndelim2.h: Likewise.
30352         * lib/getnline.c: Likewise.
30353         * lib/getnline.h: Likewise.
30354         * lib/getopt.c: Likewise.
30355         * lib/getopt.in.h: Likewise.
30356         * lib/getopt1.c: Likewise.
30357         * lib/getopt_int.h: Likewise.
30358         * lib/getpagesize.h: Likewise.
30359         * lib/getsubopt.c: Likewise.
30360         * lib/gettime.c: Likewise.
30361         * lib/getugroups.c: Likewise.
30362         * lib/getugroups.h: Likewise.
30363         * lib/getusershell.c: Likewise.
30364         * lib/gl_anyavltree_list1.h: Likewise.
30365         * lib/gl_anyavltree_list2.h: Likewise.
30366         * lib/gl_anyhash_list1.h: Likewise.
30367         * lib/gl_anyhash_list2.h: Likewise.
30368         * lib/gl_anylinked_list1.h: Likewise.
30369         * lib/gl_anylinked_list2.h: Likewise.
30370         * lib/gl_anyrbtree_list1.h: Likewise.
30371         * lib/gl_anyrbtree_list2.h: Likewise.
30372         * lib/gl_anytree_list1.h: Likewise.
30373         * lib/gl_anytree_list2.h: Likewise.
30374         * lib/gl_anytree_oset.h: Likewise.
30375         * lib/gl_anytreehash_list1.h: Likewise.
30376         * lib/gl_anytreehash_list2.h: Likewise.
30377         * lib/gl_array_list.c: Likewise.
30378         * lib/gl_array_list.h: Likewise.
30379         * lib/gl_array_oset.c: Likewise.
30380         * lib/gl_array_oset.h: Likewise.
30381         * lib/gl_avltree_list.c: Likewise.
30382         * lib/gl_avltree_list.h: Likewise.
30383         * lib/gl_avltree_oset.c: Likewise.
30384         * lib/gl_avltree_oset.h: Likewise.
30385         * lib/gl_avltreehash_list.c: Likewise.
30386         * lib/gl_avltreehash_list.h: Likewise.
30387         * lib/gl_carray_list.c: Likewise.
30388         * lib/gl_carray_list.h: Likewise.
30389         * lib/gl_linked_list.c: Likewise.
30390         * lib/gl_linked_list.h: Likewise.
30391         * lib/gl_linkedhash_list.c: Likewise.
30392         * lib/gl_linkedhash_list.h: Likewise.
30393         * lib/gl_list.c: Likewise.
30394         * lib/gl_list.h: Likewise.
30395         * lib/gl_oset.c: Likewise.
30396         * lib/gl_oset.h: Likewise.
30397         * lib/gl_rbtree_list.c: Likewise.
30398         * lib/gl_rbtree_list.h: Likewise.
30399         * lib/gl_rbtree_oset.c: Likewise.
30400         * lib/gl_rbtree_oset.h: Likewise.
30401         * lib/gl_rbtreehash_list.c: Likewise.
30402         * lib/gl_rbtreehash_list.h: Likewise.
30403         * lib/gl_sublist.c: Likewise.
30404         * lib/gl_sublist.h: Likewise.
30405         * lib/group-member.c: Likewise.
30406         * lib/group-member.h: Likewise.
30407         * lib/hard-locale.c: Likewise.
30408         * lib/hard-locale.h: Likewise.
30409         * lib/hash-pjw.c: Likewise.
30410         * lib/hash-pjw.h: Likewise.
30411         * lib/hash-triple.c: Likewise.
30412         * lib/hash.c: Likewise.
30413         * lib/hash.h: Likewise.
30414         * lib/human.c: Likewise.
30415         * lib/human.h: Likewise.
30416         * lib/i-ring.c: Likewise.
30417         * lib/i-ring.h: Likewise.
30418         * lib/idcache.c: Likewise.
30419         * lib/imaxabs.c: Likewise.
30420         * lib/imaxdiv.c: Likewise.
30421         * lib/inet_pton.c: Likewise.
30422         * lib/inet_pton.h: Likewise.
30423         * lib/intprops.h: Likewise.
30424         * lib/inttostr.c: Likewise.
30425         * lib/inttostr.h: Likewise.
30426         * lib/inttypes.in.h: Likewise.
30427         * lib/isapipe.c: Likewise.
30428         * lib/isdir.c: Likewise.
30429         * lib/isnan.c: Likewise.
30430         * lib/isnan.h: Likewise.
30431         * lib/isnanf.c: Likewise.
30432         * lib/isnanf.h: Likewise.
30433         * lib/isnanl-nolibm.h: Likewise.
30434         * lib/isnanl.c: Likewise.
30435         * lib/isnanl.h: Likewise.
30436         * lib/javacomp.c: Likewise.
30437         * lib/javacomp.h: Likewise.
30438         * lib/javaexec.c: Likewise.
30439         * lib/javaexec.h: Likewise.
30440         * lib/javaversion.c: Likewise.
30441         * lib/javaversion.h: Likewise.
30442         * lib/javaversion.java: Likewise.
30443         * lib/lbrkprop.h: Likewise.
30444         * lib/lchmod.h: Likewise.
30445         * lib/lchown.c: Likewise.
30446         * lib/ldexpl.c: Likewise.
30447         * lib/linebreak.c: Likewise.
30448         * lib/linebreak.h: Likewise.
30449         * lib/linebuffer.c: Likewise.
30450         * lib/linebuffer.h: Likewise.
30451         * lib/locale.in.h: Likewise.
30452         * lib/logl.c: Likewise.
30453         * lib/long-options.c: Likewise.
30454         * lib/long-options.h: Likewise.
30455         * lib/lstat.c: Likewise.
30456         * lib/lstat.h: Likewise.
30457         * lib/math.in.h: Likewise.
30458         * lib/mbchar.c: Likewise.
30459         * lib/mbchar.h: Likewise.
30460         * lib/mbfile.h: Likewise.
30461         * lib/mbiter.h: Likewise.
30462         * lib/mbscasecmp.c: Likewise.
30463         * lib/mbscasestr.c: Likewise.
30464         * lib/mbschr.c: Likewise.
30465         * lib/mbscspn.c: Likewise.
30466         * lib/mbslen.c: Likewise.
30467         * lib/mbsncasecmp.c: Likewise.
30468         * lib/mbsnlen.c: Likewise.
30469         * lib/mbspbrk.c: Likewise.
30470         * lib/mbspcasecmp.c: Likewise.
30471         * lib/mbsrchr.c: Likewise.
30472         * lib/mbssep.c: Likewise.
30473         * lib/mbsspn.c: Likewise.
30474         * lib/mbsstr.c: Likewise.
30475         * lib/mbstok_r.c: Likewise.
30476         * lib/mbswidth.c: Likewise.
30477         * lib/mbswidth.h: Likewise.
30478         * lib/mbuiter.h: Likewise.
30479         * lib/memcasecmp.c: Likewise.
30480         * lib/memcasecmp.h: Likewise.
30481         * lib/memchr.c: Likewise.
30482         * lib/memcmp.c: Likewise.
30483         * lib/memcoll.c: Likewise.
30484         * lib/memcoll.h: Likewise.
30485         * lib/memcpy.c: Likewise.
30486         * lib/memrchr.c: Likewise.
30487         * lib/mkancesdirs.c: Likewise.
30488         * lib/mkdir-p.c: Likewise.
30489         * lib/mkdir-p.h: Likewise.
30490         * lib/mkdir.c: Likewise.
30491         * lib/mkdirat.c: Likewise.
30492         * lib/mkdtemp.c: Likewise.
30493         * lib/mkstemp-safer.c: Likewise.
30494         * lib/mkstemp.c: Likewise.
30495         * lib/modechange.c: Likewise.
30496         * lib/modechange.h: Likewise.
30497         * lib/mountlist.c: Likewise.
30498         * lib/mountlist.h: Likewise.
30499         * lib/mpsort.c: Likewise.
30500         * lib/nanosleep.c: Likewise.
30501         * lib/obstack.c: Likewise.
30502         * lib/obstack.h: Likewise.
30503         * lib/open-safer.c: Likewise.
30504         * lib/open.c: Likewise.
30505         * lib/openat-die.c: Likewise.
30506         * lib/openat-priv.h: Likewise.
30507         * lib/openat-proc.c: Likewise.
30508         * lib/openat.c: Likewise.
30509         * lib/openat.h: Likewise.
30510         * lib/pagealign_alloc.c: Likewise.
30511         * lib/pagealign_alloc.h: Likewise.
30512         * lib/physmem.c: Likewise.
30513         * lib/physmem.h: Likewise.
30514         * lib/pipe-safer.c: Likewise.
30515         * lib/pipe.c: Likewise.
30516         * lib/pipe.h: Likewise.
30517         * lib/posixtm.c: Likewise.
30518         * lib/posixtm.h: Likewise.
30519         * lib/posixver.c: Likewise.
30520         * lib/printf-frexp.c: Likewise.
30521         * lib/printf-frexp.h: Likewise.
30522         * lib/printf-frexpl.c: Likewise.
30523         * lib/printf-frexpl.h: Likewise.
30524         * lib/printf.c: Likewise.
30525         * lib/progname.c: Likewise.
30526         * lib/progname.h: Likewise.
30527         * lib/progreloc.c: Likewise.
30528         * lib/putenv.c: Likewise.
30529         * lib/quote.c: Likewise.
30530         * lib/quote.h: Likewise.
30531         * lib/quotearg.c: Likewise.
30532         * lib/quotearg.h: Likewise.
30533         * lib/raise.c: Likewise.
30534         * lib/readline.c: Likewise.
30535         * lib/readline.h: Likewise.
30536         * lib/readlink.c: Likewise.
30537         * lib/readtokens.c: Likewise.
30538         * lib/readtokens.h: Likewise.
30539         * lib/readtokens0.c: Likewise.
30540         * lib/readtokens0.h: Likewise.
30541         * lib/readutmp.c: Likewise.
30542         * lib/readutmp.h: Likewise.
30543         * lib/realloc.c: Likewise.
30544         * lib/relocwrapper.c: Likewise.
30545         * lib/rename-dest-slash.c: Likewise.
30546         * lib/rename.c: Likewise.
30547         * lib/rmdir.c: Likewise.
30548         * lib/rpmatch.c: Likewise.
30549         * lib/safe-read.c: Likewise.
30550         * lib/safe-read.h: Likewise.
30551         * lib/safe-write.c: Likewise.
30552         * lib/safe-write.h: Likewise.
30553         * lib/same-inode.h: Likewise.
30554         * lib/same.c: Likewise.
30555         * lib/same.h: Likewise.
30556         * lib/save-cwd.c: Likewise.
30557         * lib/save-cwd.h: Likewise.
30558         * lib/savedir.c: Likewise.
30559         * lib/savedir.h: Likewise.
30560         * lib/savewd.c: Likewise.
30561         * lib/savewd.h: Likewise.
30562         * lib/search.in.h: Likewise.
30563         * lib/setenv.c: Likewise.
30564         * lib/setenv.h: Likewise.
30565         * lib/settime.c: Likewise.
30566         * lib/sh-quote.c: Likewise.
30567         * lib/sh-quote.h: Likewise.
30568         * lib/sig2str.c: Likewise.
30569         * lib/sig2str.h: Likewise.
30570         * lib/signal.in.h: Likewise.
30571         * lib/signbitd.c: Likewise.
30572         * lib/signbitf.c: Likewise.
30573         * lib/signbitl.c: Likewise.
30574         * lib/sigprocmask.c: Likewise.
30575         * lib/sincosl.c: Likewise.
30576         * lib/sleep.c: Likewise.
30577         * lib/sprintf.c: Likewise.
30578         * lib/sqrtl.c: Likewise.
30579         * lib/stat-time.h: Likewise.
30580         * lib/stdio--.h: Likewise.
30581         * lib/stdio-safer.h: Likewise.
30582         * lib/stdlib--.h: Likewise.
30583         * lib/stdlib-safer.h: Likewise.
30584         * lib/stdlib.in.h: Likewise.
30585         * lib/stpcpy.c: Likewise.
30586         * lib/stpncpy.c: Likewise.
30587         * lib/strchrnul.c: Likewise.
30588         * lib/strcspn.c: Likewise.
30589         * lib/strerror.c: Likewise.
30590         * lib/strftime.c: Likewise.
30591         * lib/strftime.h: Likewise.
30592         * lib/striconveh.c: Likewise.
30593         * lib/striconveh.h: Likewise.
30594         * lib/striconveha.c: Likewise.
30595         * lib/striconveha.h: Likewise.
30596         * lib/stripslash.c: Likewise.
30597         * lib/strnlen1.c: Likewise.
30598         * lib/strnlen1.h: Likewise.
30599         * lib/strtod.c: Likewise.
30600         * lib/strtoimax.c: Likewise.
30601         * lib/strtok_r.c: Likewise.
30602         * lib/strtol.c: Likewise.
30603         * lib/strtoll.c: Likewise.
30604         * lib/strtoul.c: Likewise.
30605         * lib/strtoull.c: Likewise.
30606         * lib/sysexits.in.h: Likewise.
30607         * lib/tempname.c: Likewise.
30608         * lib/tempname.h: Likewise.
30609         * lib/timespec.h: Likewise.
30610         * lib/tls.c: Likewise.
30611         * lib/tls.h: Likewise.
30612         * lib/tmpdir.c: Likewise.
30613         * lib/tmpdir.h: Likewise.
30614         * lib/tmpfile-safer.c: Likewise.
30615         * lib/tmpfile.c: Likewise.
30616         * lib/trigl.c: Likewise.
30617         * lib/trigl.h: Likewise.
30618         * lib/trim.c: Likewise.
30619         * lib/trim.h: Likewise.
30620         * lib/trunc.c: Likewise.
30621         * lib/truncf.c: Likewise.
30622         * lib/truncl.c: Likewise.
30623         * lib/tsearch.c: Likewise.
30624         * lib/unicodeio.c: Likewise.
30625         * lib/unicodeio.h: Likewise.
30626         * lib/unistd--.h: Likewise.
30627         * lib/unistd-safer.h: Likewise.
30628         * lib/unistdio/ulc-fprintf.c: Likewise.
30629         * lib/unistdio/ulc-vfprintf.c: Likewise.
30630         * lib/unlinkdir.c: Likewise.
30631         * lib/unlinkdir.h: Likewise.
30632         * lib/unlocked-io.h: Likewise.
30633         * lib/unsetenv.c: Likewise.
30634         * lib/userspec.c: Likewise.
30635         * lib/utime.c: Likewise.
30636         * lib/utimecmp.c: Likewise.
30637         * lib/utimecmp.h: Likewise.
30638         * lib/utimens.c: Likewise.
30639         * lib/verify.h: Likewise.
30640         * lib/verror.c: Likewise.
30641         * lib/verror.h: Likewise.
30642         * lib/version-etc-fsf.c: Likewise.
30643         * lib/version-etc.c: Likewise.
30644         * lib/version-etc.h: Likewise.
30645         * lib/vfprintf.c: Likewise.
30646         * lib/vprintf.c: Likewise.
30647         * lib/vsprintf.c: Likewise.
30648         * lib/w32spawn.h: Likewise.
30649         * lib/wait-process.c: Likewise.
30650         * lib/wait-process.h: Likewise.
30651         * lib/wcwidth.c: Likewise.
30652         * lib/write-any-file.c: Likewise.
30653         * lib/xalloc-die.c: Likewise.
30654         * lib/xalloc.h: Likewise.
30655         * lib/xasprintf.c: Likewise.
30656         * lib/xgetcwd.c: Likewise.
30657         * lib/xgetcwd.h: Likewise.
30658         * lib/xgetdomainname.c: Likewise.
30659         * lib/xgetdomainname.h: Likewise.
30660         * lib/xgethostname.c: Likewise.
30661         * lib/xmalloc.c: Likewise.
30662         * lib/xmalloca.c: Likewise.
30663         * lib/xmalloca.h: Likewise.
30664         * lib/xmemcoll.c: Likewise.
30665         * lib/xnanosleep.c: Likewise.
30666         * lib/xreadlink.c: Likewise.
30667         * lib/xreadlink.h: Likewise.
30668         * lib/xsetenv.c: Likewise.
30669         * lib/xsetenv.h: Likewise.
30670         * lib/xstriconv.c: Likewise.
30671         * lib/xstriconv.h: Likewise.
30672         * lib/xstrndup.c: Likewise.
30673         * lib/xstrndup.h: Likewise.
30674         * lib/xstrtod.c: Likewise.
30675         * lib/xstrtod.h: Likewise.
30676         * lib/xstrtol-error.c: Likewise.
30677         * lib/xstrtol.c: Likewise.
30678         * lib/xstrtol.h: Likewise.
30679         * lib/xtime.h: Likewise.
30680         * lib/xvasprintf.c: Likewise.
30681         * lib/xvasprintf.h: Likewise.
30682         * lib/yesno.c: Likewise.
30683         * lib/yesno.h: Likewise.
30684         * posix-modules: Likewise.
30685         * tests/test-alloca-opt.c: Likewise.
30686         * tests/test-arcfour.c: Likewise.
30687         * tests/test-arctwo.c: Likewise.
30688         * tests/test-argmatch.c: Likewise.
30689         * tests/test-argp-2.sh: Likewise.
30690         * tests/test-argp.c: Likewise.
30691         * tests/test-arpa_inet.c: Likewise.
30692         * tests/test-array_list.c: Likewise.
30693         * tests/test-array_oset.c: Likewise.
30694         * tests/test-atexit.c: Likewise.
30695         * tests/test-avltree_list.c: Likewise.
30696         * tests/test-avltree_oset.c: Likewise.
30697         * tests/test-avltreehash_list.c: Likewise.
30698         * tests/test-base64.c: Likewise.
30699         * tests/test-binary-io.c: Likewise.
30700         * tests/test-byteswap.c: Likewise.
30701         * tests/test-c-ctype.c: Likewise.
30702         * tests/test-c-strcasecmp.c: Likewise.
30703         * tests/test-c-strcasestr.c: Likewise.
30704         * tests/test-c-strncasecmp.c: Likewise.
30705         * tests/test-c-strstr.c: Likewise.
30706         * tests/test-canonicalize-lgpl.c: Likewise.
30707         * tests/test-canonicalize.c: Likewise.
30708         * tests/test-carray_list.c: Likewise.
30709         * tests/test-ceilf.c: Likewise.
30710         * tests/test-ceill.c: Likewise.
30711         * tests/test-count-one-bits.c: Likewise.
30712         * tests/test-crc.c: Likewise.
30713         * tests/test-dirname.c: Likewise.
30714         * tests/test-fbufmode.c: Likewise.
30715         * tests/test-fcntl.c: Likewise.
30716         * tests/test-fflush.c: Likewise.
30717         * tests/test-floorf.c: Likewise.
30718         * tests/test-floorl.c: Likewise.
30719         * tests/test-fopen.c: Likewise.
30720         * tests/test-fprintf-posix.c: Likewise.
30721         * tests/test-fprintf-posix.h: Likewise.
30722         * tests/test-fpurge.c: Likewise.
30723         * tests/test-freadable.c: Likewise.
30724         * tests/test-freadahead.c: Likewise.
30725         * tests/test-freading.c: Likewise.
30726         * tests/test-freopen.c: Likewise.
30727         * tests/test-frexp.c: Likewise.
30728         * tests/test-frexpl.c: Likewise.
30729         * tests/test-fseek.c: Likewise.
30730         * tests/test-fseeko.c: Likewise.
30731         * tests/test-fseterr.c: Likewise.
30732         * tests/test-fstrcmp.c: Likewise.
30733         * tests/test-ftell.c: Likewise.
30734         * tests/test-ftello.c: Likewise.
30735         * tests/test-fwritable.c: Likewise.
30736         * tests/test-fwriting.c: Likewise.
30737         * tests/test-getaddrinfo.c: Likewise.
30738         * tests/test-getpass.c: Likewise.
30739         * tests/test-gettimeofday.c: Likewise.
30740         * tests/test-hmac-md5.c: Likewise.
30741         * tests/test-hmac-sha1.c: Likewise.
30742         * tests/test-iconv.c: Likewise.
30743         * tests/test-iconvme.c: Likewise.
30744         * tests/test-inttypes.c: Likewise.
30745         * tests/test-isnan.c: Likewise.
30746         * tests/test-isnanf.c: Likewise.
30747         * tests/test-isnanl-nolibm.c: Likewise.
30748         * tests/test-isnanl.c: Likewise.
30749         * tests/test-isnanl.h: Likewise.
30750         * tests/test-ldexpl.c: Likewise.
30751         * tests/test-linked_list.c: Likewise.
30752         * tests/test-linkedhash_list.c: Likewise.
30753         * tests/test-locale.c: Likewise.
30754         * tests/test-localename.c: Likewise.
30755         * tests/test-lock.c: Likewise.
30756         * tests/test-lseek.c: Likewise.
30757         * tests/test-malloca.c: Likewise.
30758         * tests/test-math.c: Likewise.
30759         * tests/test-mbscasecmp.c: Likewise.
30760         * tests/test-mbscasestr1.c: Likewise.
30761         * tests/test-mbscasestr2.c: Likewise.
30762         * tests/test-mbscasestr3.c: Likewise.
30763         * tests/test-mbscasestr4.c: Likewise.
30764         * tests/test-mbschr.c: Likewise.
30765         * tests/test-mbscspn.c: Likewise.
30766         * tests/test-mbsncasecmp.c: Likewise.
30767         * tests/test-mbspbrk.c: Likewise.
30768         * tests/test-mbspcasecmp.c: Likewise.
30769         * tests/test-mbsrchr.c: Likewise.
30770         * tests/test-mbsspn.c: Likewise.
30771         * tests/test-mbsstr1.c: Likewise.
30772         * tests/test-mbsstr2.c: Likewise.
30773         * tests/test-mbsstr3.c: Likewise.
30774         * tests/test-md5.c: Likewise.
30775         * tests/test-memmem.c: Likewise.
30776         * tests/test-netinet_in.c: Likewise.
30777         * tests/test-open.c: Likewise.
30778         * tests/test-printf-frexp.c: Likewise.
30779         * tests/test-printf-frexpl.c: Likewise.
30780         * tests/test-printf-posix.c: Likewise.
30781         * tests/test-printf-posix.h: Likewise.
30782         * tests/test-rbtree_list.c: Likewise.
30783         * tests/test-rbtree_oset.c: Likewise.
30784         * tests/test-rbtreehash_list.c: Likewise.
30785         * tests/test-read-file.c: Likewise.
30786         * tests/test-rijndael.c: Likewise.
30787         * tests/test-search.c: Likewise.
30788         * tests/test-signbit.c: Likewise.
30789         * tests/test-sleep.c: Likewise.
30790         * tests/test-snprintf-posix.c: Likewise.
30791         * tests/test-snprintf-posix.h: Likewise.
30792         * tests/test-snprintf.c: Likewise.
30793         * tests/test-sprintf-posix.c: Likewise.
30794         * tests/test-sprintf-posix.h: Likewise.
30795         * tests/test-stat-time.c: Likewise.
30796         * tests/test-stdbool.c: Likewise.
30797         * tests/test-stdint.c: Likewise.
30798         * tests/test-stdio.c: Likewise.
30799         * tests/test-stdlib.c: Likewise.
30800         * tests/test-stpncpy.c: Likewise.
30801         * tests/test-strcasestr.c: Likewise.
30802         * tests/test-striconv.c: Likewise.
30803         * tests/test-striconveh.c: Likewise.
30804         * tests/test-striconveha.c: Likewise.
30805         * tests/test-string.c: Likewise.
30806         * tests/test-sys_select.c: Likewise.
30807         * tests/test-sys_socket.c: Likewise.
30808         * tests/test-sys_stat.c: Likewise.
30809         * tests/test-sys_time.c: Likewise.
30810         * tests/test-sysexits.c: Likewise.
30811         * tests/test-time.c: Likewise.
30812         * tests/test-tls.c: Likewise.
30813         * tests/test-trunc.c: Likewise.
30814         * tests/test-truncf.c: Likewise.
30815         * tests/test-truncl.c: Likewise.
30816         * tests/test-unistd.c: Likewise.
30817         * tests/test-vasnprintf-posix.c: Likewise.
30818         * tests/test-vasnprintf-posix2.c: Likewise.
30819         * tests/test-vasnprintf.c: Likewise.
30820         * tests/test-vasprintf-posix.c: Likewise.
30821         * tests/test-vasprintf.c: Likewise.
30822         * tests/test-verify.c: Likewise.
30823         * tests/test-vfprintf-posix.c: Likewise.
30824         * tests/test-vprintf-posix.c: Likewise.
30825         * tests/test-vsnprintf-posix.c: Likewise.
30826         * tests/test-vsnprintf.c: Likewise.
30827         * tests/test-vsprintf-posix.c: Likewise.
30828         * tests/test-wchar.c: Likewise.
30829         * tests/test-wctype.c: Likewise.
30830         * tests/test-wcwidth.c: Likewise.
30831         * tests/test-xstrtol.c: Likewise.
30832         * tests/test-xvasprintf.c: Likewise.
30833         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30834         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30835         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30836         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30837         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30838         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30839         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30840         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30841         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30842         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30843         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30844         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30845         * tests/uniname/test-uninames.c: Likewise.
30846         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30847         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30848         * tests/unistdio/test-u16-printf1.h: Likewise.
30849         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30850         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30851         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30852         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30853         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30854         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30855         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30856         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30857         * tests/unistdio/test-u32-printf1.h: Likewise.
30858         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30859         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30860         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30861         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30862         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30863         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30864         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30865         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30866         * tests/unistdio/test-u8-printf1.h: Likewise.
30867         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30868         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30869         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30870         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30871         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30872         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30873         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30874         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30875         * tests/unistdio/test-ulc-printf1.h: Likewise.
30876         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30877         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30878         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30879         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30880         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30881         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30882         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30883         * tests/uniwidth/test-u16-width.c: Likewise.
30884         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30885         * tests/uniwidth/test-u32-width.c: Likewise.
30886         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30887         * tests/uniwidth/test-u8-width.c: Likewise.
30888         * tests/uniwidth/test-uc_width.c: Likewise.
30889         * config/srclist-update: Likewise.
30890         (fixlicense): Update to GPLv3+.
30891
30892         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30893         * tests/test-tsearch.c: Change copyright notice.
30894
30895         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30896         * lib/c-strcaseeq.h: Change copyright notice.
30897         * lib/streq.h: Likewise.
30898         * lib/uniconv.h: Likewise.
30899         * lib/uniconv/u-conv-from-enc.h: Likewise.
30900         * lib/uniconv/u-conv-to-enc.h: Likewise.
30901         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30902         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30903         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30904         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30905         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30906         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30907         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30908         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30909         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30910         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30911         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30912         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30913         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30914         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30915         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30916         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30917         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30918         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30919         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30920         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30921         * lib/uniname.h: Likewise.
30922         * lib/uniname/uniname.c: Likewise.
30923         * lib/unistdio.h: Likewise.
30924         * lib/unistdio/u-asnprintf.h: Likewise.
30925         * lib/unistdio/u-asprintf.h: Likewise.
30926         * lib/unistdio/u-printf-args.c: Likewise.
30927         * lib/unistdio/u-printf-args.h: Likewise.
30928         * lib/unistdio/u-printf-parse.h: Likewise.
30929         * lib/unistdio/u-snprintf.h: Likewise.
30930         * lib/unistdio/u-sprintf.h: Likewise.
30931         * lib/unistdio/u-vasprintf.h: Likewise.
30932         * lib/unistdio/u-vsnprintf.h: Likewise.
30933         * lib/unistdio/u-vsprintf.h: Likewise.
30934         * lib/unistdio/u16-asnprintf.c: Likewise.
30935         * lib/unistdio/u16-asprintf.c: Likewise.
30936         * lib/unistdio/u16-printf-parse.c: Likewise.
30937         * lib/unistdio/u16-snprintf.c: Likewise.
30938         * lib/unistdio/u16-sprintf.c: Likewise.
30939         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30940         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30941         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30942         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30943         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30944         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30945         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30946         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30947         * lib/unistdio/u16-vasnprintf.c: Likewise.
30948         * lib/unistdio/u16-vasprintf.c: Likewise.
30949         * lib/unistdio/u16-vsnprintf.c: Likewise.
30950         * lib/unistdio/u16-vsprintf.c: Likewise.
30951         * lib/unistdio/u32-asnprintf.c: Likewise.
30952         * lib/unistdio/u32-asprintf.c: Likewise.
30953         * lib/unistdio/u32-printf-parse.c: Likewise.
30954         * lib/unistdio/u32-snprintf.c: Likewise.
30955         * lib/unistdio/u32-sprintf.c: Likewise.
30956         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30957         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30958         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30959         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30960         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30961         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30962         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30963         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30964         * lib/unistdio/u32-vasnprintf.c: Likewise.
30965         * lib/unistdio/u32-vasprintf.c: Likewise.
30966         * lib/unistdio/u32-vsnprintf.c: Likewise.
30967         * lib/unistdio/u32-vsprintf.c: Likewise.
30968         * lib/unistdio/u8-asnprintf.c: Likewise.
30969         * lib/unistdio/u8-asprintf.c: Likewise.
30970         * lib/unistdio/u8-printf-parse.c: Likewise.
30971         * lib/unistdio/u8-snprintf.c: Likewise.
30972         * lib/unistdio/u8-sprintf.c: Likewise.
30973         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30974         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30975         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30976         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30977         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30978         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30979         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30980         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30981         * lib/unistdio/u8-vasnprintf.c: Likewise.
30982         * lib/unistdio/u8-vasprintf.c: Likewise.
30983         * lib/unistdio/u8-vsnprintf.c: Likewise.
30984         * lib/unistdio/u8-vsprintf.c: Likewise.
30985         * lib/unistdio/ulc-asnprintf.c: Likewise.
30986         * lib/unistdio/ulc-asprintf.c: Likewise.
30987         * lib/unistdio/ulc-printf-parse.c: Likewise.
30988         * lib/unistdio/ulc-snprintf.c: Likewise.
30989         * lib/unistdio/ulc-sprintf.c: Likewise.
30990         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30991         * lib/unistdio/ulc-vasprintf.c: Likewise.
30992         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30993         * lib/unistdio/ulc-vsprintf.c: Likewise.
30994         * lib/unistr.h: Likewise.
30995         * lib/unistr/u-cpy-alloc.h: Likewise.
30996         * lib/unistr/u-cpy.h: Likewise.
30997         * lib/unistr/u-endswith.h: Likewise.
30998         * lib/unistr/u-move.h: Likewise.
30999         * lib/unistr/u-set.h: Likewise.
31000         * lib/unistr/u-startswith.h: Likewise.
31001         * lib/unistr/u-stpcpy.h: Likewise.
31002         * lib/unistr/u-stpncpy.h: Likewise.
31003         * lib/unistr/u-strcat.h: Likewise.
31004         * lib/unistr/u-strcpy.h: Likewise.
31005         * lib/unistr/u-strcspn.h: Likewise.
31006         * lib/unistr/u-strdup.h: Likewise.
31007         * lib/unistr/u-strlen.h: Likewise.
31008         * lib/unistr/u-strncat.h: Likewise.
31009         * lib/unistr/u-strncpy.h: Likewise.
31010         * lib/unistr/u-strnlen.h: Likewise.
31011         * lib/unistr/u-strpbrk.h: Likewise.
31012         * lib/unistr/u-strspn.h: Likewise.
31013         * lib/unistr/u-strstr.h: Likewise.
31014         * lib/unistr/u-strtok.h: Likewise.
31015         * lib/unistr/u16-check.c: Likewise.
31016         * lib/unistr/u16-chr.c: Likewise.
31017         * lib/unistr/u16-cmp.c: Likewise.
31018         * lib/unistr/u16-cpy-alloc.c: Likewise.
31019         * lib/unistr/u16-cpy.c: Likewise.
31020         * lib/unistr/u16-endswith.c: Likewise.
31021         * lib/unistr/u16-mblen.c: Likewise.
31022         * lib/unistr/u16-mbsnlen.c: Likewise.
31023         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31024         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31025         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31026         * lib/unistr/u16-mbtouc.c: Likewise.
31027         * lib/unistr/u16-mbtoucr.c: Likewise.
31028         * lib/unistr/u16-move.c: Likewise.
31029         * lib/unistr/u16-next.c: Likewise.
31030         * lib/unistr/u16-prev.c: Likewise.
31031         * lib/unistr/u16-set.c: Likewise.
31032         * lib/unistr/u16-startswith.c: Likewise.
31033         * lib/unistr/u16-stpcpy.c: Likewise.
31034         * lib/unistr/u16-stpncpy.c: Likewise.
31035         * lib/unistr/u16-strcat.c: Likewise.
31036         * lib/unistr/u16-strchr.c: Likewise.
31037         * lib/unistr/u16-strcmp.c: Likewise.
31038         * lib/unistr/u16-strcpy.c: Likewise.
31039         * lib/unistr/u16-strcspn.c: Likewise.
31040         * lib/unistr/u16-strdup.c: Likewise.
31041         * lib/unistr/u16-strlen.c: Likewise.
31042         * lib/unistr/u16-strmblen.c: Likewise.
31043         * lib/unistr/u16-strmbtouc.c: Likewise.
31044         * lib/unistr/u16-strncat.c: Likewise.
31045         * lib/unistr/u16-strncmp.c: Likewise.
31046         * lib/unistr/u16-strncpy.c: Likewise.
31047         * lib/unistr/u16-strnlen.c: Likewise.
31048         * lib/unistr/u16-strpbrk.c: Likewise.
31049         * lib/unistr/u16-strrchr.c: Likewise.
31050         * lib/unistr/u16-strspn.c: Likewise.
31051         * lib/unistr/u16-strstr.c: Likewise.
31052         * lib/unistr/u16-strtok.c: Likewise.
31053         * lib/unistr/u16-to-u32.c: Likewise.
31054         * lib/unistr/u16-to-u8.c: Likewise.
31055         * lib/unistr/u16-uctomb-aux.c: Likewise.
31056         * lib/unistr/u16-uctomb.c: Likewise.
31057         * lib/unistr/u32-check.c: Likewise.
31058         * lib/unistr/u32-chr.c: Likewise.
31059         * lib/unistr/u32-cmp.c: Likewise.
31060         * lib/unistr/u32-cpy-alloc.c: Likewise.
31061         * lib/unistr/u32-cpy.c: Likewise.
31062         * lib/unistr/u32-endswith.c: Likewise.
31063         * lib/unistr/u32-mblen.c: Likewise.
31064         * lib/unistr/u32-mbsnlen.c: Likewise.
31065         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31066         * lib/unistr/u32-mbtouc.c: Likewise.
31067         * lib/unistr/u32-mbtoucr.c: Likewise.
31068         * lib/unistr/u32-move.c: Likewise.
31069         * lib/unistr/u32-next.c: Likewise.
31070         * lib/unistr/u32-prev.c: Likewise.
31071         * lib/unistr/u32-set.c: Likewise.
31072         * lib/unistr/u32-startswith.c: Likewise.
31073         * lib/unistr/u32-stpcpy.c: Likewise.
31074         * lib/unistr/u32-stpncpy.c: Likewise.
31075         * lib/unistr/u32-strcat.c: Likewise.
31076         * lib/unistr/u32-strchr.c: Likewise.
31077         * lib/unistr/u32-strcmp.c: Likewise.
31078         * lib/unistr/u32-strcpy.c: Likewise.
31079         * lib/unistr/u32-strcspn.c: Likewise.
31080         * lib/unistr/u32-strdup.c: Likewise.
31081         * lib/unistr/u32-strlen.c: Likewise.
31082         * lib/unistr/u32-strmblen.c: Likewise.
31083         * lib/unistr/u32-strmbtouc.c: Likewise.
31084         * lib/unistr/u32-strncat.c: Likewise.
31085         * lib/unistr/u32-strncmp.c: Likewise.
31086         * lib/unistr/u32-strncpy.c: Likewise.
31087         * lib/unistr/u32-strnlen.c: Likewise.
31088         * lib/unistr/u32-strpbrk.c: Likewise.
31089         * lib/unistr/u32-strrchr.c: Likewise.
31090         * lib/unistr/u32-strspn.c: Likewise.
31091         * lib/unistr/u32-strstr.c: Likewise.
31092         * lib/unistr/u32-strtok.c: Likewise.
31093         * lib/unistr/u32-to-u16.c: Likewise.
31094         * lib/unistr/u32-to-u8.c: Likewise.
31095         * lib/unistr/u32-uctomb.c: Likewise.
31096         * lib/unistr/u8-check.c: Likewise.
31097         * lib/unistr/u8-chr.c: Likewise.
31098         * lib/unistr/u8-cmp.c: Likewise.
31099         * lib/unistr/u8-cpy-alloc.c: Likewise.
31100         * lib/unistr/u8-cpy.c: Likewise.
31101         * lib/unistr/u8-endswith.c: Likewise.
31102         * lib/unistr/u8-mblen.c: Likewise.
31103         * lib/unistr/u8-mbsnlen.c: Likewise.
31104         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31105         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31106         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31107         * lib/unistr/u8-mbtouc.c: Likewise.
31108         * lib/unistr/u8-mbtoucr.c: Likewise.
31109         * lib/unistr/u8-move.c: Likewise.
31110         * lib/unistr/u8-next.c: Likewise.
31111         * lib/unistr/u8-prev.c: Likewise.
31112         * lib/unistr/u8-set.c: Likewise.
31113         * lib/unistr/u8-startswith.c: Likewise.
31114         * lib/unistr/u8-stpcpy.c: Likewise.
31115         * lib/unistr/u8-stpncpy.c: Likewise.
31116         * lib/unistr/u8-strcat.c: Likewise.
31117         * lib/unistr/u8-strchr.c: Likewise.
31118         * lib/unistr/u8-strcmp.c: Likewise.
31119         * lib/unistr/u8-strcpy.c: Likewise.
31120         * lib/unistr/u8-strcspn.c: Likewise.
31121         * lib/unistr/u8-strdup.c: Likewise.
31122         * lib/unistr/u8-strlen.c: Likewise.
31123         * lib/unistr/u8-strmblen.c: Likewise.
31124         * lib/unistr/u8-strmbtouc.c: Likewise.
31125         * lib/unistr/u8-strncat.c: Likewise.
31126         * lib/unistr/u8-strncmp.c: Likewise.
31127         * lib/unistr/u8-strncpy.c: Likewise.
31128         * lib/unistr/u8-strnlen.c: Likewise.
31129         * lib/unistr/u8-strpbrk.c: Likewise.
31130         * lib/unistr/u8-strrchr.c: Likewise.
31131         * lib/unistr/u8-strspn.c: Likewise.
31132         * lib/unistr/u8-strstr.c: Likewise.
31133         * lib/unistr/u8-strtok.c: Likewise.
31134         * lib/unistr/u8-to-u16.c: Likewise.
31135         * lib/unistr/u8-to-u32.c: Likewise.
31136         * lib/unistr/u8-uctomb-aux.c: Likewise.
31137         * lib/unistr/u8-uctomb.c: Likewise.
31138         * lib/unitypes.h: Likewise.
31139         * lib/uniwidth.h: Likewise.
31140         * lib/uniwidth/cjk.h: Likewise.
31141         * lib/uniwidth/u16-strwidth.c: Likewise.
31142         * lib/uniwidth/u16-width.c: Likewise.
31143         * lib/uniwidth/u32-strwidth.c: Likewise.
31144         * lib/uniwidth/u32-width.c: Likewise.
31145         * lib/uniwidth/u8-strwidth.c: Likewise.
31146         * lib/uniwidth/u8-width.c: Likewise.
31147         * lib/uniwidth/width.c: Likewise.
31148
31149 2007-10-07  Bruno Haible  <bruno@clisp.org>
31150
31151         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31152         The file is still under LGPL (see modules/inttypes).
31153
31154 2007-10-06  Bruno Haible  <bruno@clisp.org>
31155
31156         * modules/trunc (Dependencies): Add 'extensions'.
31157         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31158         Reported by Ben Pfaff <blp@gnu.org>.
31159
31160 2007-10-06  Bruno Haible  <bruno@clisp.org>
31161
31162         * modules/freopen-tests: New file.
31163         * tests/test-freopen.c: New file.
31164
31165         * modules/fopen-tests: New file.
31166         * tests/test-fopen.c: New file.
31167
31168         * modules/fopen: New file.
31169         * lib/fopen.c: New file.
31170         * m4/fopen.m4: New file.
31171         * modules/freopen: New file.
31172         * lib/freopen.c: New file.
31173         * m4/freopen.m4: New file.
31174         * lib/stdio.in.h (fopen, freopen): New declarations.
31175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31176         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31177         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31178         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31179         * doc/functions/fopen.texi: Mention the 'fopen' module.
31180         * doc/functions/freopen.texi: Mention the 'freopen' module.
31181
31182 2007-10-06  Bruno Haible  <bruno@clisp.org>
31183
31184         * modules/open-tests: New file.
31185         * tests/test-open.c: New file.
31186
31187         * modules/open: New file.
31188         * lib/open.c: New file.
31189         * m4/open.m4: New file.
31190         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31191         lib/open.c does.
31192         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31193         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31194         macros.
31195         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31196         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31197         REPLACE_OPEN.
31198         * doc/functions/open.texi: Mention the 'open' module.
31199
31200 2007-10-04  Bruno Haible  <bruno@clisp.org>
31201
31202         * modules/ceill-tests: New file.
31203         * tests/test-ceill.c: New file.
31204
31205         * modules/ceill: New file.
31206         * lib/ceill.c: Replace entire file.
31207         * m4/ceill.m4: New file.
31208         * lib/math.in.h (ceill): Replace declaration.
31209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31210         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31211         * doc/functions/ceill.texi: Mention the 'ceill' module.
31212         * modules/mathl (Files): Remove lib/ceill.c.
31213         (Depends-on): Add ceill.
31214
31215 2007-10-04  Bruno Haible  <bruno@clisp.org>
31216
31217         * modules/ceilf-tests: New file.
31218         * tests/test-ceilf.c: New file.
31219
31220         * modules/ceilf: New file.
31221         * lib/ceil.c: New file.
31222         * lib/ceilf.c: New file.
31223         * m4/ceilf.m4: New file.
31224         * lib/math.in.h (ceilf): New declaration.
31225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31226         HAVE_DECL_CEILF.
31227         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31228         HAVE_DECL_CEILF.
31229         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31230
31231 2007-10-04  Bruno Haible  <bruno@clisp.org>
31232
31233         * modules/floorl-tests: New file.
31234         * tests/test-floorl.c: New file.
31235
31236         * modules/floorl: New file.
31237         * lib/floorl.c: Replace entire file.
31238         * m4/floorl.m4: New file.
31239         * lib/math.in.h (floorl): Replace declaration.
31240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31241         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31242         * doc/functions/floorl.texi: Mention the 'floorl' module.
31243         * modules/mathl (Files): Remove lib/floorl.c.
31244         (Depends-on): Add floorl.
31245
31246 2007-10-04  Bruno Haible  <bruno@clisp.org>
31247
31248         * modules/floorf-tests: New file.
31249         * tests/test-floorf.c: New file.
31250
31251         * modules/floorf: New file.
31252         * lib/floor.c: New file.
31253         * lib/floorf.c: New file.
31254         * m4/floorf.m4: New file.
31255         * lib/math.in.h (floorf): New declaration.
31256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31257         HAVE_DECL_FLOORF.
31258         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31259         HAVE_DECL_FLOORF.
31260         * doc/functions/floorf.texi: Mention the 'floorf' module.
31261
31262 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31263             Bruno Haible  <bruno@clisp.org>
31264
31265         Advertise for the Git server instead of the CVS server.
31266         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31267         repository instead of the CVS one.
31268         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31269         about all VCS systems generically.
31270         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31271
31272 2007-10-04  Bruno Haible  <bruno@clisp.org>
31273
31274         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31275         means.
31276         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31277
31278 2007-10-04  Bruno Haible  <bruno@clisp.org>
31279
31280         * modules/truncl-tests: New file.
31281         * tests/test-truncl.c: New file.
31282
31283         * modules/truncl: New file.
31284         * lib/truncl.c: New file.
31285         * m4/truncl.m4: New file.
31286         * lib/math.in.h (truncl): New declaration.
31287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31288         HAVE_DECL_TRUNCL.
31289         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31290         HAVE_DECL_TRUNCL.
31291         * doc/functions/truncl.texi: Mention the 'truncl' module.
31292
31293 2007-10-04  Bruno Haible  <bruno@clisp.org>
31294
31295         * modules/truncf-tests: New file.
31296         * tests/test-truncf.c: New file.
31297
31298         * modules/truncf: New file.
31299         * lib/trunc.c: Make paramerizable through USE_* macros.
31300         * lib/truncf.c: New file.
31301         * m4/truncf.m4: New file.
31302         * lib/math.in.h (truncf): New declaration.
31303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31304         HAVE_DECL_TRUNCF.
31305         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31306         HAVE_DECL_TRUNCF.
31307         * doc/functions/truncf.texi: Mention the 'truncf' module.
31308
31309 2007-10-03  Bruno Haible  <bruno@clisp.org>
31310
31311         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31312         augmentation also for tests modules.
31313         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31314         * modules/atexit-tests (Makefile.am): Likewise.
31315         * modules/binary-io-tests (Makefile.am): Likewise.
31316         * modules/c-strcase-tests (Makefile.am): Likewise.
31317         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31318         * modules/canonicalize-tests (Makefile.am): Likewise.
31319         * modules/closein-tests (Makefile.am): Likewise.
31320         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31321         * modules/freadahead-tests (Makefile.am): Likewise.
31322         * modules/fseek-tests (Makefile.am): Likewise.
31323         * modules/fseeko-tests (Makefile.am): Likewise.
31324         * modules/ftell-tests (Makefile.am): Likewise.
31325         * modules/ftello-tests (Makefile.am): Likewise.
31326         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31327         * modules/isnanl-tests (Makefile.am): Likewise.
31328         * modules/lseek-tests (Makefile.am): Likewise.
31329         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31330         * modules/mbscasestr-tests (Makefile.am): Likewise.
31331         * modules/mbschr-tests (Makefile.am): Likewise.
31332         * modules/mbscspn-tests (Makefile.am): Likewise.
31333         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31334         * modules/mbspbrk-tests (Makefile.am): Likewise.
31335         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31336         * modules/mbsrchr-tests (Makefile.am): Likewise.
31337         * modules/mbsspn-tests (Makefile.am): Likewise.
31338         * modules/mbsstr-tests (Makefile.am): Likewise.
31339         * modules/printf-posix-tests (Makefile.am): Likewise.
31340         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31341         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31342         * modules/tsearch-tests (Makefile.am): Likewise.
31343         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31344         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31345         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31346         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31347         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31348         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31349         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31350         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31351         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31352         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31353         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31354         * modules/xstrtol-tests (Makefile.am): Likewise.
31355         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31356         * modules/yesno-tests (Makefile.am): Likewise.
31357
31358 2007-10-03  Bruno Haible  <bruno@clisp.org>
31359
31360         * modules/trunc-tests: New file.
31361         * tests/test-trunc.c: New file.
31362
31363         * modules/trunc: New file.
31364         * lib/trunc.c: New file.
31365         * m4/trunc.m4: New file.
31366         * lib/math.in.h (trunc): New declaration.
31367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31368         HAVE_DECL_TRUNC.
31369         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31370         HAVE_DECL_TRUNC.
31371         * doc/functions/trunc.texi: Mention the 'trunc' module.
31372
31373 2007-10-03  Bruno Haible  <bruno@clisp.org>
31374
31375         * tests/test-fpending.c: New file, mostly copied
31376         from coreutils/lib/t-fpending.c.
31377         * modules/fpending-tests: New file.
31378
31379 2007-10-03  Bruno Haible  <bruno@clisp.org>
31380
31381         Port the stdio extensions to QNX (untested).
31382         * lib/fseterr.c (fseterr): Add support for QNX.
31383         * lib/fbufmode.c (fbufmode): Likewise.
31384         * lib/freadable.c (freadable): Likewise.
31385         * lib/fwritable.c (fwritable): Likewise.
31386         * lib/freading.c (freading): Likewise.
31387         * lib/fwriting.c (fwriting): Likewise.
31388         * lib/freadahead.c (freadahed): Likewise.
31389         * lib/fpurge.c (fpurge): Likewise.
31390         * lib/fseeko.c (rpl_fseeko): Likewise.
31391
31392 2007-10-03  Bruno Haible  <bruno@clisp.org>
31393             Jim Meyering  <jim@meyering.net>
31394             Eric Blake  <ebb9@byu.net>
31395
31396         * doc/relocatable.texi: Use @command instead of @program.
31397
31398 2007-10-02  Jim Meyering  <jim@meyering.net>
31399
31400         Perform one more "_.h" -> ".in.h" substitution.
31401         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31402         instead of unistd_.h here, too.
31403
31404 2007-10-01  Bruno Haible  <bruno@clisp.org>
31405
31406         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31407         Needed for the alloca-opt module.
31408
31409 2007-09-30  Bruno Haible  <bruno@clisp.org>
31410
31411         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31412         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31413         alloca_.h.
31414         * lib/argz.in.h: Renamed from lib/argz_.h.
31415         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31416         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31417         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31418         byteswap_.h.
31419         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31420         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31421         dirent_.h.
31422         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31423         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31424         fcntl_.h.
31425         * lib/float.in.h: Renamed from lib/float_.h.
31426         * modules/float (Files, Makefile.am): Use float.in.h instead of
31427         float_.h.
31428         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31429         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31430         fnmatch_.h.
31431         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31432         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31433         getopt_.h.
31434         * lib/glob.in.h: Renamed from lib/glob_.h.
31435         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31436         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31437         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31438         iconv_.h.
31439         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31440         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31441         inttypes_.h.
31442         * lib/locale.in.h: Renamed from lib/locale_.h.
31443         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31444         locale_.h.
31445         * lib/math.in.h: Renamed from lib/math_.h.
31446         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31447         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31448         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31449         of netinet_in_.h. Add dependency.
31450         * lib/poll.in.h: Renamed from lib/poll_.h.
31451         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31452         * lib/search.in.h: Renamed from lib/search_.h.
31453         * modules/search (Files, Makefile.am): Use search.in.h instead of
31454         search_.h.
31455         * lib/signal.in.h: Renamed from lib/signal_.h.
31456         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31457         _signal.h.
31458         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31459         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31460         stdbool_.h.
31461         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31462         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31463         stdint_.h.
31464         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31465         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31466         stdio_.h.
31467         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31468         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31469         stdlib_.h.
31470         * lib/string.in.h: Renamed from lib/string_.h.
31471         * modules/string (Files, Makefile.am): Use string.in.h instead of
31472         string_.h.
31473         * doc/gnulib-tool.texi (Initial import): Update.
31474         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31475         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31476         of sys_select_.h. Add dependency.
31477         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31478         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31479         of sys_socket_.h.
31480         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31481         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31482         sys_stat_.h.
31483         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31484         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31485         sys_time_.h.
31486         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31487         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31488         sysexits_.h.
31489         * lib/time.in.h: Renamed from lib/time_.h.
31490         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31491         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31492         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31493         unistd_.h.
31494         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31495         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31496         wchar_.h.
31497         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31498         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31499         wctype_.h.
31500         * build-aux/bootstrap (slurp): Update.
31501         * lib/.cppi-disable: Update.
31502
31503 2007-09-30  Bruno Haible  <bruno@clisp.org>
31504
31505         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31506         Needed on BeOS.
31507
31508 2007-09-30  Bruno Haible  <bruno@clisp.org>
31509
31510         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31511
31512 2007-09-29  Bruno Haible  <bruno@clisp.org>
31513
31514         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31515
31516 2007-09-29  Bruno Haible  <bruno@clisp.org>
31517
31518         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31519         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31520         * build-aux/install-reloc: Compile also areadlink.c.
31521         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31522
31523 2007-09-29  Bruno Haible  <bruno@clisp.org>
31524
31525         * gnulib-tool (func_emit_initmacro_done): Indentation.
31526
31527 2007-09-29  Bruno Haible  <bruno@clisp.org>
31528
31529         * README: Add CVS checkout update instructions.
31530         Info from Bob Proulx <bob@proulx.com>.
31531
31532 2007-09-28  Eric Blake  <ebb9@byu.net>
31533
31534         Provide move-if-change.
31535         * build-aux/move-if-change: New file, based on best practice
31536         rather than any canonical upstream location.
31537
31538 2007-09-28  Jim Meyering  <jim@meyering.net>
31539
31540         Fix canonicalize loop-detection corner case.
31541         Do not attempt to stat the symlink values stored via seen_triple.
31542         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31543         on linux-2.6.18, (but not 2.6.22).
31544         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31545         triple_compare.  The former compares dev,ino,filename, while the latter
31546         would actually stat dirname(filename) when dev and ino were equal.
31547         * lib/hash-triple.c: Install <string.h>.
31548         (STREQ): Define.
31549         (triple_compare_ino_str): New function.
31550         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31551
31552 2007-09-28  Eric Blake  <ebb9@byu.net>
31553
31554         Enforce that AC_REPLACE_FUNCS files exist.
31555         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31556         override check for typos.
31557
31558         Fix test-closein on Solaris 10.
31559         * tests/test-closein.c (main): Don't assume stdin can be inherited
31560         closed on all systems.
31561         * tests/test-closein.sh: Likewise.
31562         Reported by Piotr Tarnowski.
31563
31564 2007-09-28  Jim Meyering  <jim@meyering.net>
31565
31566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31567
31568 2007-09-27  Jim Meyering  <jim@meyering.net>
31569
31570         canonicalize: Avoid a false-positive cycle failure.
31571         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31572         Sort.  Remove cycle-check.
31573         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31574         not cycle-check.h.
31575         (seen_triple): New function.
31576         (canonicalize_filename_mode): Use it instead of cycle-check.
31577         * tests/test-canonicalize.c: Add a test for this bug.
31578         * tests/test-canonicalize.sh: Set up and run the test.
31579
31580         New module, file-set, from coreutils.
31581         * modules/file-set: Define it.
31582         * lib/file-set.c, lib/file-set.h: Implement.
31583
31584         New module, hash-triple, from coreutils.
31585         * modules/hash-triple: Define it.
31586         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31587
31588 2007-09-25  Eric Blake  <ebb9@byu.net>
31589
31590         Fix strerror on Interix.
31591         * lib/string_.h (strerror): Declare replacement.
31592         * doc/functions/strerror.texi (strerror): Document the Interix
31593         shortcoming.
31594         * modules/string (Makefile.am): Support new hooks.
31595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31596         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31597         gl_FUNC_STRERROR_SEPARATE.
31598         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31599         * lib/strerror.c (rpl_strerror): Provide replacement.
31600         * modules/strerror (Depends-on): Add string.
31601         (configure.ac): Detect use of module.
31602         * tests/test-strerror.c: New file.
31603         * modules/strerror-tests: New test module.
31604         * modules/argp (Depends-on): Add strerror.
31605         * modules/error (Depends-on): Likewise.
31606         Reported by Martin Koeppe.
31607
31608 2007-09-24  Bruno Haible  <bruno@clisp.org>
31609
31610         * README: Update git instructions.
31611
31612 2007-09-24  Eric Blake  <ebb9@byu.net>
31613
31614         Revert fpending breakage from 2007-09-08.
31615         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31616         __fpending.c.
31617
31618 2007-09-24  Jim Meyering  <jim@meyering.net>
31619
31620         filenamecat.c: Add a test.
31621         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31622         showing how the function works when DIR is the empty string.
31623
31624 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31625
31626         * tests/test-canonicalize.sh: Turn on executable bit.
31627
31628 2007-09-19  Eric Blake  <ebb9@byu.net>
31629
31630         * README: Update CVS instructions.
31631
31632 2007-09-18  Bruno Haible  <bruno@clisp.org>
31633
31634         * modules/areadlink: New file.
31635         * lib/areadlink.h (areadlink): New declaration.
31636         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31637
31638 2007-09-17  Jim Meyering  <jim@meyering.net>
31639
31640         * lib/savewd.c (ESTALE) [!defined]: Define.
31641         Reported to be required on Interix by Martin Koeppe.
31642
31643 2007-09-17  Bruno Haible  <bruno@clisp.org>
31644
31645         * gnulib-tool (func_version): Use $version.
31646
31647 2007-09-16  Bruno Haible  <bruno@clisp.org>
31648
31649         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31650         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31651         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31652         Reported by Greg Schafer <gschafer@zip.com.au>.
31653
31654 2007-09-15  Bruno Haible  <bruno@clisp.org>
31655
31656         * gnulib-tool (sed): Try a little harder to make bash understand the
31657         alias.
31658         Reported by Bruce Korb <bruce.korb@gmail.com>.
31659
31660 2007-09-13  Eric Blake  <ebb9@byu.net>
31661
31662         * ChangeLog: Remove conflict markers.
31663
31664 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31665
31666         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31667         Reported by Bruno Haible <bruno@clisp.org>.
31668
31669 2007-09-12  Bruno Haible  <bruno@clisp.org>
31670
31671         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31672         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31673         is not defined.
31674
31675 2007-09-12  Eric Blake  <ebb9@byu.net>
31676
31677         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31679         Autoconf definition.
31680         * modules/euidaccess (Depends-on): Add extensions, for
31681         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31682         * modules/fnmatch (Depends-on): Likewise.
31683         * modules/getaddrinfo (Depends-on): Likewise.
31684         * modules/getdelim (Depends-on): Likewise.
31685         * modules/getline (Depends-on): Likewise.
31686         * modules/getsubopt (Depends-on): Likewise.
31687         * modules/gettext (Depends-on): Likewise.
31688         * modules/group-member (Depends-on): Likewise.
31689         * modules/mbchar (Depends-on): Likewise.
31690         * modules/memmem (Depends-on): Likewise.
31691         * modules/mempcpy (Depends-on): Likewise.
31692         * modules/memrchr (Depends-on): Likewise.
31693         * modules/pagealign_alloc (Depends-on): Likewise.
31694         * modules/readutmp (Depends-on): Likewise.
31695         * modules/stpcpy (Depends-on): Likewise.
31696         * modules/stpncpy (Depends-on): Likewise.
31697         * modules/strchrnul (Depends-on): Likewise.
31698         * modules/strndup (Depends-on): Likewise.
31699         * modules/strsep (Depends-on): Likewise.
31700         * modules/strverscmp (Depends-on): Likewise.
31701         * modules/vasprintf (Depends-on): Likewise.
31702         * modules/wcwidth (Depends-on): Likewise.
31703         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31704         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31705         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31708         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31709         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31710         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31711         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31712         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31714         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31715         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31716         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31717         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31718         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31719         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31720         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31722         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31723         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31725         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31727         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31729         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31730         so that lock.m4 can be used in gettext without extensions module.
31731
31732 2007-09-11  Bruno Haible  <bruno@clisp.org>
31733
31734         * m4/isc-posix.m4: Remove file.
31735         Suggested by Eric Blake.
31736
31737 2007-09-11  Eric Blake  <ebb9@byu.net>
31738
31739         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31740
31741 2007-09-10  Bruno Haible  <bruno@clisp.org>
31742
31743         * posix-modules: Fix typo in error message.
31744         Reported by Matt <mkraai@beckman.com>.
31745
31746 2007-09-09  Bruno Haible  <bruno@clisp.org>
31747
31748         * doc/functions/getdelim.texi: Update list of platforms lacking the
31749         function.
31750         * doc/functions/getline.texi: Likewise.
31751
31752 2007-09-09  Jim Meyering  <jim@meyering.net>
31753
31754         * lib/hash.c (hash_initialize): Detect calloc failure.
31755         Reported by Bruno Haible.
31756
31757 2007-09-09  Bruno Haible  <bruno@clisp.org>
31758
31759         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31760         malloc or realloc fails.
31761
31762 2007-09-09  Bruno Haible  <bruno@clisp.org>
31763
31764         * modules/getcwd (Depends-on): Add malloc-posix.
31765         * modules/glob (Depends-on): Likewise.
31766         * modules/putenv (Depends-on): Likewise.
31767         * modules/strdup (Depends-on): Likewise.
31768         * modules/getdelim (Depends-on): Add realloc-posix.
31769         * modules/read-file (Depends-on): Likewise.
31770
31771 2007-09-09  Bruno Haible  <bruno@clisp.org>
31772
31773         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31774         (gl_FUNC_MALLOC_POSIX): Require it.
31775         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31776         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31777         * modules/realloc (Files): Add m4/malloc.m4.
31778         * modules/calloc (Files): Likewise.
31779
31780 2007-09-09  Bruno Haible  <bruno@clisp.org>
31781
31782         * modules/malloc-posix: New file.
31783         * modules/malloc (Depends-on): Add malloc-posix.
31784         * lib/malloc.c: Include errno.h.
31785         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31786         and a POSIX-compatible malloc into a single function. Set ENOMEM
31787         when returning NULL.
31788         * m4/malloc.m4: New file.
31789         * doc/functions/malloc.texi: Mention the malloc-posix module.
31790         * lib/stdlib_.h (malloc): New declaration.
31791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31792         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31793         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31794         and HAVE_MALLOC_POSIX.
31795
31796 2007-09-09  Bruno Haible  <bruno@clisp.org>
31797
31798         * modules/realloc-posix: New file.
31799         * modules/realloc (Depends-on): Add realloc-posix.
31800         * lib/realloc.c: Include errno.h.
31801         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31802         and a POSIX-compatible realloc into a single function. Set ENOMEM
31803         when returning NULL.
31804         * m4/realloc.m4: New file.
31805         * doc/functions/realloc.texi: Mention the realloc-posix module.
31806         * lib/stdlib_.h (realloc): New declaration.
31807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31808         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31809         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31810         and HAVE_REALLOC_POSIX.
31811
31812 2007-09-09  Bruno Haible  <bruno@clisp.org>
31813
31814         * modules/calloc-posix: New file.
31815         * modules/calloc (Depends-on): Add calloc-posix.
31816         * lib/calloc.c: Include errno.h.
31817         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31818         and a POSIX-compatible calloc into a single function. Set ENOMEM
31819         when returning NULL.
31820         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31821         * doc/functions/calloc.texi: Mention the calloc-posix module.
31822         * lib/stdlib_.h (calloc): New declaration.
31823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31824         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31825         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31826         and HAVE_CALLOC_POSIX.
31827
31828 2007-09-09  Bruno Haible  <bruno@clisp.org>
31829
31830         Allow for modules to show an arbitrary notice.
31831         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31832         * gnulib-tool: New option --extract-notice.
31833         (func_usage): Document it.
31834         (sed_extract_prog): Update.
31835         (func_get_notice): New function.
31836         (func_modules_notice): New function.
31837         (func_import, func_create_testdir): Invoke it.
31838         Suggested by Jim Meyering.
31839
31840 2007-09-09  Bruno Haible  <bruno@clisp.org>
31841
31842         * gnulib-tool: New options --verbose, --quiet.
31843         (func_usage): Document them.
31844         (verbose): New variable.
31845         (func_execute_command): New function.
31846         (func_import): Don't show the module list and the file list if
31847         $verbose < 0.
31848         (func_create_testdir): Likewise. Use func_execute_command.
31849         (func_create_megatestdir): Use func_execute_command.
31850
31851 2007-09-08  Bruno Haible  <bruno@clisp.org>
31852
31853         * gnulib-tool (func_import): Prefer rsync over wget when available,
31854         for fetching the PO files.
31855
31856 2007-09-08  Bruno Haible  <bruno@clisp.org>
31857
31858         * posix-modules: New file. Portions copied from gnulib-tool.
31859         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31860
31861 2007-09-08  Jim Meyering  <jim@meyering.net>
31862
31863         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31864         * lib/fpending.h: Rename from __fpending.h.
31865         * lib/fpending.c: Rename from __fpending.c.
31866         Include "fpending.h", not "__fpending.h".
31867         * lib/__fpending.h, lib/__fpending.c: Remove files.
31868         * modules/fpending (Files): Reflect new file names.
31869         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31870
31871 2007-09-08  Bruno Haible  <bruno@clisp.org>
31872
31873         * m4/inttypes-h.m4: Remove stub file.
31874
31875 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31876
31877         * doc/headers/stdint.texi: Discuss #include_next issue.
31878
31879 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31880
31881         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31882
31883 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31884
31885         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31886         in variable name.
31887
31888 2007-09-03  Jim Meyering  <jim@meyering.net>
31889
31890         New module: git-version-gen.
31891         * modules/git-version-gen: New file.
31892
31893         Import changes from coreutils for bootstrap script.
31894
31895         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31896
31897         bootstrap: uses rsync to download the .po files
31898         * build-aux/bootstrap (po_download_command_format): New global.
31899         (download_po_files): Use rsync.
31900         (update_po_files): Don't remove .po files after download,
31901         so future rsync runs can take advantage of the copies.
31902
31903         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31904
31905         Solve the unnecessary-.po-file-regeneration problem once and for all.
31906         * build-aux/bootstrap (download_po_files): New function, renamed from
31907         get_translations.  Now, downloads, but doesn't update LINGUAS.
31908         (update_po_files): New function.
31909
31910         bootstrap: Ignore more.
31911         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31912         uniwidth to e.g., lib/.gitignore.
31913         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31914
31915         * build-aux/bootstrap: New setting: vc_ignore.
31916         (insert_sorted_if_absent): Create $file if absent.
31917         Adapt to new, possibly empty, list: $vc_ignore.
31918
31919         bootstrap: generate more ignorable names
31920         * build-aux/bootstrap (slurp): When generating ignorable names,
31921         also map .sin to .sed, .gperf to .c, and .y to .c.
31922
31923 2007-09-03  Jim Meyering  <jim@meyering.net>
31924
31925         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31926         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31927
31928 2007-09-02  Bruno Haible  <bruno@clisp.org>
31929
31930         Fix mis-recognition of 'mcs' on QNX 6.
31931         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31932         output contains the string "Mono".
31933         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31934         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31935
31936 2007-09-01  Bruno Haible  <bruno@clisp.org>
31937
31938         Fix collision between uniwidth/* and linebreak modules.
31939         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31940         u32_width): Remove declarations.
31941         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31942         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31943         streq3, streq2, streq1, streq0): Remove functions.
31944         (STREQ): Remove macro.
31945         (is_cjk_encoding): Remove function.
31946         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31947         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31948         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31949         * NEWS: Document the change.
31950
31951 2007-09-01  Bruno Haible  <bruno@clisp.org>
31952
31953         * lib/streq.h: Add double-inclusion guard.
31954
31955 2007-09-01  Karl Berry  <karl@gnu.org>
31956
31957         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31958
31959 2007-08-28  Jim Meyering  <jim@meyering.net>
31960
31961         Rename mreadlink_with_size to areadlink_with_size.
31962         * NEWS: Document the change.
31963         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31964         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31965         * lib/mreadlink.h: Rename this to...
31966         * lib/areadlink.h: ...this.
31967         * modules/mreadlink-with-size: Rename this to...
31968         * modules/areadlink-with-size: ...this.
31969         * lib/canonicalize.c: Reflect the renaming.
31970         * modules/canonicalize: Likewise.
31971
31972 2007-08-26  Bruno Haible  <bruno@clisp.org>
31973
31974         * gnulib-tool (func_import): When deciding which files to remove,
31975         consider also dangling symbolic links.
31976         Reported by Eric Blake.
31977
31978 2007-08-26  Bruno Haible  <bruno@clisp.org>
31979
31980         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31981
31982 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31983
31984         * lib/readline.c: Don't include getline.h, the prototype is now
31985         found in stdio.h.
31986
31987 2007-08-23  Jim Meyering  <jim@meyering.net>
31988
31989         Getdelim touchup.
31990         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31991         around the funlockfile call, since funlockfile never sets errno.
31992         Don't set errno upon failed realloc.
31993
31994 2007-08-22  Eric Blake  <ebb9@byu.net>
31995
31996         Getline touchups.
31997         * lib/getdelim.c (getdelim): Revert regression that required *n to
31998         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32000         getdelim, rather than whether implementation is missing.
32001         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32002         * lib/stdio_.h (getline): Also declare if replacement is
32003         required.
32004         * doc/functions/getdelim.texi: New file.
32005         * doc/functions/getline.texi: Likewise.
32006         * doc/gnulib.texi (Function Substitutes): Add new files.
32007         Reported by Bruno Haible.
32008
32009 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32010
32011         * users.txt: Add Guile.
32012
32013 2007-08-22  Eric Blake  <ebb9@byu.net>
32014
32015         * tests/test-getdelim.c (main): Use remove, not unlink.
32016         * tests/test-getline.c (main): Likewise.
32017
32018         Move getline and getdelim into stdio.h, per POSIX 200x.
32019         * modules/getline (Files): Remove getline.h.
32020         (Depends-on): Add stdio.
32021         (configure.ac): Add module indicator.
32022         * modules/getdelim (Files): Remove getdelim.h.
32023         (Depends-on): Add stdio.
32024         (configure.ac): Add module indicator.
32025         * modules/stdio (Makefile.am): Work with new indicators.
32026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32028         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32029         * lib/getdelim.h: Delete.
32030         * lib/getline.h: Delete.
32031         * lib/stdio_.h (getdelim, getline): Declare.
32032         * modules/getdelim-tests: New module.
32033         * modules/getline-tests: Likewise.
32034         * tests/test-getdelim.c: New file.
32035         * tests/test-getline.c: Likewise.
32036         * NEWS: Document the change.
32037         * lib/getline.c: Update choice of header.
32038         * lib/csharpcomp.c: Likewise.
32039         * lib/getpass.c: Likewise.
32040         * lib/javacomp.c: Likewise.
32041         * lib/javaversion.c: Likewise.
32042         * lib/yesno.c: Likewise.
32043         * lib/getdelim.c: Likewise.
32044         (getdelim): Set errno on failure, and avoid memory leak.
32045
32046 2007-08-19  Bruno Haible  <bruno@clisp.org>
32047
32048         * modules/closein (Depends-on): Add freadahead.
32049         * lib/closein.c: Include freadahead.h.
32050         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32051         is zero.
32052
32053 2007-08-19  Bruno Haible  <bruno@clisp.org>
32054
32055         * modules/freadahead-tests: New file.
32056         * tests/test-freadahead.sh: New file.
32057         * tests/test-freadahead.c: New file.
32058
32059         * modules/freadahead: New file.
32060         * lib/freadahead.h: New file.
32061         * lib/freadahead.c: New file.
32062         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32063         fbufmode, fpurge, freadable, fwritable.
32064
32065 2007-08-19  Eric Blake  <ebb9@byu.net>
32066
32067         Test yesno in combination with closein.
32068         * lib/yesno.c (yesno): Document use of stdin.
32069         * modules/yesno-tests (Files): New module.
32070         * tests/test-yesno.c (main): New file.
32071         * tests/test-yesno.sh: Likewise.
32072
32073 2007-08-19  Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32076         * lib/fseeko.c (rpl_fseeko): Likewise.
32077         * lib/fseterr.c (fseterr): Likewise.
32078
32079 2007-08-19  Bruno Haible  <bruno@clisp.org>
32080
32081         * tests/test-lseek.c (main): Disable a test for BeOS.
32082         * doc/functions/lseek.texi: Document the BeOS bug.
32083
32084 2007-08-19  Bruno Haible  <bruno@clisp.org>
32085             Eric Blake  <ebb9@byu.net>
32086
32087         * lib/lseek.c: Include <sys/stat.h>.
32088         (rpl_lseek): Add workaround code also for Unix platforms.
32089         Needed for BeOS.
32090         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32091         * doc/functions/lseek.texi: Document BeOS definiency.
32092
32093 2007-08-18  Bruno Haible  <bruno@clisp.org>
32094
32095         * modules/fstrcmp-tests: New file.
32096         * tests/test-fstrcmp.c: New file.
32097
32098 2007-08-18  Bruno Haible  <bruno@clisp.org>
32099
32100         * modules/fstrcmp: New file, from GNU gettext with modifications.
32101         * lib/fstrcmp.h: New file, from GNU gettext.
32102         * lib/fstrcmp.c: New file, from GNU gettext.
32103         * MODULES.html.sh (String handling): Add fstrcmp.
32104
32105 2007-08-18  Bruno Haible  <bruno@clisp.org>
32106
32107         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32108         'bool'.
32109         (diag, compareseq): Remove const from the ctxt argument.
32110         (USE_HEURISTIC): Undefine at the end.
32111
32112 2007-08-18  Jim Meyering  <jim@meyering.net>
32113
32114         New file: lib/idcache.h
32115         * NEWS: Mention the addition.
32116         * modules/idcache (Files): Add lib/idcache.h
32117         * lib/idcache.c: Include "idcache.h".
32118         Don't include <sys/types.h>.
32119         Add a FIXME comment.
32120         Move file-scoped "static" declarations to the top.
32121         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32122
32123 2007-08-17  Bruno Haible  <bruno@clisp.org>
32124         and Paul Eggert  <eggert@cs.ucla.edu>
32125
32126         * MODULES.html.sh: Add diffseq.
32127         * modules/diffseq: New file.
32128         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32129         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32130
32131 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32132
32133         Import changes from coreutils for bootstrap script.
32134
32135         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32136
32137         * build-aux/bootstrap (slurp): Work even in environments where
32138         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32139         current code does not slurp files whose names start with ".", and
32140         this looks like it might be a troublesome area.
32141
32142         2007-07-11  Jim Meyering  <jim@meyering.net>
32143
32144         If there's a GPL vN copyright comment, require that N == 3.
32145
32146         2007-07-08  Jim Meyering  <jim@meyering.net>
32147
32148         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32149         * build-aux/bootstrap (mam_template): Move definition out of loop.
32150
32151         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32152
32153         * build-aux/bootstrap (symlink_to_dir): Rename function from
32154         symlink_to_gnulib.  Add a directory parameter.  Update all
32155         callers.
32156         (cp_mark_as_generated): Also check for -- and link to -- files in
32157         gl/.
32158
32159         2007-07-08  Jim Meyering  <jim@meyering.net>
32160
32161         Adapt to deeper hierarchy in gnulib.
32162         * build-aux/bootstrap (symlink_to_dir): If the destination
32163         directory doesn't exist, create it. This is required at least for
32164         "lib/uniwidth/cjk.h".
32165
32166         2007-05-15  Jim Meyering  <jim@meyering.net>
32167
32168         * build-aux/bootstrap: Now that generated Makefile.am files
32169         are no longer under version control, they must be created at
32170         bootstrap time.
32171
32172 2007-08-14  Ben Pfaff  <blp@gnu.org>
32173
32174         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32175
32176 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32177
32178         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32179         given the changes below.
32180         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32181         even on hosts that have padding bits beyond the supported 64.
32182
32183 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32184
32185         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32186         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32187         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32188         depends on it.
32189         (xstrtol_error): Remove.
32190         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32191         but with a different signature.
32192         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32193         * lib/xstrtol-error.c: Include exitfail.h.
32194         (xstrtol_fatal): New function, with a different signature from the
32195         old xstrtol_error, so that the caller need not worry about passing
32196         in an exit status, or about storage management of the option argument.
32197         (xstrtol_error): Now a static function.  Redo signature to
32198         implement xstrtol_fatal.  Output the correct number of hyphens in
32199         front of the option so that the caller need not worry about
32200         storage management.
32201         (N_): New macro.
32202         (_): Remove; not used now.
32203         * modules/xstrtol: Depend on getopt.
32204         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32205         of old STRTOL_FATAL_ERROR macro.
32206         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32207         of test program.
32208         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32209         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32210
32211 2007-08-08  Eric Blake  <ebb9@byu.net>
32212
32213         * lib/xstrtol-error.c: Add missing include.
32214
32215         Move xstrtol messages into gnulib domain, when --pobase is used.
32216         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32217         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32218         * modules/xstrtol (Files): Distribute new file.
32219         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32220         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32221         * tests/test-xstrtol.c: ...into new file.
32222         * tests/test-xstrtoul.c: Also test xstrtoul.
32223         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32224         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32225         * tests/test-xstrtol.sh: Drive the tests.
32226         * tests/test-xstrtoimax.sh: Likewise.
32227         * tests/test-xstrtoumax.sh: Likewise.
32228         * modules/xstrtol-tests: New module.
32229         * modules/xstrtoimax-tests: Likewise.
32230         * modules/xstrtoumax-tests: Likewise.
32231
32232 2007-08-08  Jim Meyering  <jim@meyering.net>
32233
32234         New function: mfile_name_concat.
32235         * lib/filenamecat.c (mfile_name_concat): New function, just like
32236         file_name_concat, but return NULL upon failure rather than exiting
32237         with a diagnostic.
32238         * lib/filenamecat.h: Declare it.
32239
32240 2007-08-07  Bruno Haible  <bruno@clisp.org>
32241
32242         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32243         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32244         warning from gcc.
32245         Reported by Eric Blake.
32246
32247 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32248
32249         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32250         * modules/crypto/arcfour (License): Likewise.
32251         * modules/crypto/des-tests (License): Likewise.
32252         * modules/crypto/gc-arctwo-tests (License): Likewise.
32253         * modules/crypto/gc-des-tests (License): Likewise.
32254         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32255         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32256         * modules/crypto/gc-md2-tests (License): Likewise.
32257         * modules/crypto/gc-md4-tests (License): Likewise.
32258         * modules/crypto/gc-md5-tests (License): Likewise.
32259         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32260         * modules/crypto/gc-rijndael-tests (License): Likewise.
32261         * modules/crypto/gc-sha1-tests (License): Likewise.
32262         * modules/crypto/gc-tests (License): Likewise.
32263         * modules/crypto/hmac-md5 (License): Likewise.
32264         * modules/crypto/hmac-sha1 (License): Likewise.
32265         * modules/crypto/md2-tests (License): Likewise.
32266         * modules/crypto/md4-tests (License): Likewise.
32267         * modules/crypto/md5 (License): Likewise.
32268         * modules/crypto/rijndael (License): Likewise.
32269         * modules/crypto/sha1 (License): Likewise.
32270         * modules/memxor (License): Likewise.
32271
32272 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32273         and Bruno Haible  <bruno@clisp.org>
32274
32275         * NEWS: Describe interface changes to human, xstrtol.
32276         * lib/human.h: Include <xstrtol.h>.
32277         (human_options): Return enum strtol_error, not int.  Remove
32278         bool arg; take int * instead.
32279         * lib/human.c: Don't include "gettext.h".
32280         (_): Remove; no longer used.
32281         Don't include <xstrtol.h>, since human.h does it.
32282         (human_options): Adjust to abovementioned interface changes.
32283         Do not report error to stderr; that's now the caller's
32284         responsibility.
32285         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32286         interface change.
32287         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32288         Str, Argument_type_string.  All uses changed.  Put " argument"
32289         in diagnostics to make them clearer.  Change wording of suffix
32290         message for clarity.
32291         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32292         Argument_type_string.
32293         (STRTOL_FATAL_WARN): Remove; no longer used.
32294         * modules/human (Depends-on): Remove gettext-h.
32295
32296 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32297
32298         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32299
32300 2007-07-31  Bruno Haible  <bruno@clisp.org>
32301
32302         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32303         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32304         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32305
32306 2007-07-31  Bruno Haible  <bruno@clisp.org>
32307
32308         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32309         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32310
32311 2007-07-30  Bruno Haible  <bruno@clisp.org>
32312
32313         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32314         * modules/c-ctype (License): Likewise.
32315         * modules/c-strcase (License): Likewise.
32316         * modules/check-version (License): Likewise.
32317         * modules/iconv (License): Likewise.
32318         * modules/iconv_open (License): Likewise.
32319         * modules/read-file (License): Likewise.
32320         * modules/striconv (License): Likewise.
32321         * modules/strverscmp (License): Likewise.
32322         * modules/vasprintf (License): Likewise.
32323         * modules/crypto/des (License): Likewise.
32324         * modules/crypto/gc (License): Likewise.
32325         * modules/crypto/gc-arcfour (License): Likewise.
32326         * modules/crypto/gc-arctwo (License): Likewise.
32327         * modules/crypto/gc-des (License): Likewise.
32328         * modules/crypto/gc-hmac-md5 (License): Likewise.
32329         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32330         * modules/crypto/gc-md2 (License): Likewise.
32331         * modules/crypto/gc-md4 (License): Likewise.
32332         * modules/crypto/gc-md5 (License): Likewise.
32333         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32334         * modules/crypto/gc-random (License): Likewise.
32335         * modules/crypto/gc-rijndael (License): Likewise.
32336         * modules/crypto/gc-sha1 (License): Likewise.
32337         * modules/crypto/md2 (License): Likewise.
32338         * modules/crypto/md4 (License): Likewise.
32339
32340 2007-07-30  Jim Meyering  <jim@meyering.net>
32341
32342         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32343         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32344         it has valid stat data.  This bug would cause du not to count the
32345         sizes of inaccessible directories.
32346         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32347         in <http://bugzilla.redhat.com/250077>.
32348
32349 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32350             Bruno Haible  <bruno@clisp.org>
32351
32352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32353         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32354         #include_next, gives a diagnostic about it, but reports no error in
32355         the exit code.
32356         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32357
32358 2007-07-24  Ben Pfaff  <blp@gnu.org>
32359
32360         Improve name: "count-one-bits" is better than "popcount".
32361         * MODULES.html.sh: Update name.
32362         * lib/popcount.h: Renamed lib/count-one-bits.h.
32363         (popcount): Renamed count_one_bits.
32364         (popcountl): Renamed count_one_bits_l.
32365         (popcountll): Renamed count_one_bits_ll.
32366         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32367         * modules/popcount: Renamed module/count-one-bits.
32368         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32369         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32370
32371 2007-07-23  Ben Pfaff  <blp@gnu.org>
32372
32373         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32374         better code generation, and add U to large constants to avoid
32375         warnings, in non-GCC case.
32376         Suggested by Bruno Haible.
32377
32378 2007-07-23  Ben Pfaff  <blp@gnu.org>
32379
32380         * lib/popcount.h: Use verify_true instead of if...abort.
32381         * modules/popcount: Depend on verify module.
32382         Suggested by Jim Meyering.
32383
32384 2007-07-23  Bruno Haible  <bruno@clisp.org>
32385
32386         * gnulib-tool (func_import): Create a .cvsignore file also when the
32387         directory is not yet in CVS but the toplevel directory is. When
32388         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32389         Reported by Karl Berry.
32390
32391 2007-07-22  Ben Pfaff  <blp@gnu.org>
32392
32393         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32394         case.
32395         Suggested by Eric Blake.
32396
32397 2007-07-22  Ben Pfaff  <blp@gnu.org>
32398
32399         New module: popcount.
32400         * MODULES.html.sh: Add popcount.
32401         * modules/popcount: New file.
32402         * modules/popcount-tests: New file.
32403         * tests/test-popcount.c: New file.
32404         * lib/popcount.h: New file.
32405         * m4/popcount.m4: New file.
32406
32407 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32408
32409         * build-aux/announce-gen: Update to GPLv3.
32410
32411         * build-aux/config.guess: Update from config.
32412
32413 2007-07-21  Bruno Haible  <bruno@clisp.org>
32414
32415         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32416         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32417
32418 2007-07-20  Jim Meyering  <jim@meyering.net>
32419
32420         * check-module: Diagnose a self-dependency.
32421
32422 2007-07-19  Bruno Haible  <bruno@clisp.org>
32423
32424         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32425         empty.
32426         Reported by Eric Blake.
32427
32428 2007-07-18  Bruno Haible  <bruno@clisp.org>
32429
32430         * gnulib-tool: New options --po-base, --po-domain.
32431         (func_usage): Document them.
32432         (pobase, po_domain): New variables.
32433         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32434         DEFAULT_TEXT_DOMAIN.
32435         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32436         (func_import): Consider pobase and po_domain. Create a po/ directory.
32437         (func_create_testdir): Set pobase and po_domain to empty.
32438         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32439         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32440
32441 2007-07-18  Bruno Haible  <bruno@clisp.org>
32442
32443         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32444         EXTRA_DIST augmentation for files in build-aux/.
32445
32446 2007-07-16  Bruno Haible  <bruno@clisp.org>
32447
32448         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32449         * modules/getdelim (License): Likewise.
32450
32451 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32452
32453         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32454         * modules/d-type (License): Likewise.
32455         * modules/extensions (License): Likewise.
32456         * modules/fnmatch (License): Likewise.
32457         * modules/fseeko (License): Likewise.
32458         * modules/getaddrinfo (License): Likewise.
32459         * modules/getline (License): Likewise.
32460         * modules/getlogin_r (License): Likewise.
32461         * modules/getpass (License): Likewise.
32462         * modules/gettimeofday (License): Likewise.
32463         * modules/glob (License): Likewise.
32464         * modules/inet_ntop (License): Likewise.
32465         * modules/malloc (License): Likewise.
32466         * modules/malloca (License): Likewise.
32467         * modules/memmem (License): Likewise.
32468         * modules/mempcpy (License): Likewise.
32469         * modules/memset (License): Likewise.
32470         * modules/minmax (License): Likewise.
32471         * modules/mktime (License): Likewise.
32472         * modules/netinet_in (License): Likewise.
32473         * modules/pathmax (License): Likewise.
32474         * modules/poll (License): Likewise.
32475         * modules/regex (License): Likewise.
32476         * modules/snprintf (License): Likewise.
32477         * modules/stdbool (License): Likewise.
32478         * modules/stdint (License): Likewise.
32479         * modules/stdio (License): Likewise.
32480         * modules/strcase (License): Likewise.
32481         * modules/strcasestr (License): Likewise.
32482         * modules/strdup (License): Likewise.
32483         * modules/string (License): Likewise.
32484         * modules/strndup (License): Likewise.
32485         * modules/strnlen (License): Likewise.
32486         * modules/strpbrk (License): Likewise.
32487         * modules/strptime (License): Likewise.
32488         * modules/strsep (License): Likewise.
32489         * modules/sys_select (License): Likewise.
32490         * modules/sys_socket (License): Likewise.
32491         * modules/sys_stat (License): Likewise.
32492         * modules/sys_time (License): Likewise.
32493         * modules/time (License): Likewise.
32494         * modules/time_r (License): Likewise.
32495         * modules/timegm (License): Likewise.
32496         * modules/unistd (License): Likewise.
32497         * modules/vsnprintf (License): Likewise.
32498         * modules/wctype (License): Likewise.
32499
32500 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32501
32502         * modules/argz (License): LGPLv2+.
32503
32504 2007-07-15  Karl Berry  <karl@gnu.org>
32505
32506         * doc/gnulib.texi: revise node structure per new fdl.texi.
32507
32508 2007-07-14  Bruno Haible  <bruno@clisp.org>
32509
32510         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32511         the output file.
32512         * lib/uniname/uninames.h: Regenerated.
32513
32514 2007-07-14  Karl Berry  <karl@gnu.org>
32515
32516         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32517         omitting sectioning and index commands.
32518
32519 2007-07-13  Bruno Haible  <bruno@clisp.org>
32520
32521         New gnulib-tool option --more-symlinks.
32522         * gnulib-tool (func_usage): Document --more-symlinks.
32523         (do_copyrights): New variable.
32524         Recognize option --more-symlinks.
32525         (func_import): Don't add a copyright notice transform to
32526         sed_transform_lib_file if do_copyrights is empty.
32527
32528 2007-07-13  Bruno Haible  <bruno@clisp.org>
32529
32530         * lib/vasnprintf.c (decimal_point_char): Define also if
32531         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32532         && !NEED_PRINTF_DIRECTIVE_A.
32533         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32534         Gary V. Vaughan <gary@gnu.org>.
32535
32536 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32537
32538         * lib/inttypes_.h: Undo previous change, since it was fixed
32539         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32540
32541 2007-07-13  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32544         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32545
32546 2007-07-13  Jim Meyering  <jim@meyering.net>
32547
32548         df: Don't fail for Tru64's "file-on-file mount".
32549         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32550         so we fall through and use statfs instead.  Details here:
32551         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32552         Reported by Albert Chin.
32553
32554 2007-07-13  Bruno Haible  <bruno@clisp.org>
32555
32556         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32557         * modules/configmake (License): Likewise.
32558         * modules/gettext (License): Likewise.
32559         * modules/gettext-h (License): Likewise.
32560         * modules/include_next (License): Likewise.
32561         * modules/link-warning (License): Likewise.
32562         * modules/localcharset (License): Likewise.
32563         * modules/localename (License): Likewise.
32564         * modules/lock (License): Likewise.
32565         * modules/relocatable-lib-lgpl (License): Likewise.
32566         * modules/size_max (License): Likewise.
32567         * modules/vasnprintf (License): Likewise.
32568         * modules/wchar (License): Likewise.
32569         * modules/xsize (License): Likewise.
32570
32571 2007-07-13  Bruno Haible  <bruno@clisp.org>
32572
32573         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32574         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32575
32576 2007-07-12  Bruno Haible  <bruno@clisp.org>
32577
32578         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32579         in the modules files.
32580
32581 2007-07-11  Karl Berry  <karl@gnu.org>
32582
32583         * MODULES.html.sh (func_module): use
32584          sed -e '\|^'"${includefile}"'$|d'
32585          instead of /.../d, to avoid errors on $includefile's containing /.
32586
32587 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32588
32589         * gnulib-tool (func_import): Avoid duplication of --avoid
32590         statements
32591         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32592         names to `_' in variable names.
32593
32594 2007-07-10  Eric Blake  <ebb9@byu.net>
32595
32596         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32597         * NEWS: Document this change.
32598
32599 2007-07-08  Bruno Haible  <bruno@clisp.org>
32600
32601         Update to Unicode 5.0.
32602         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32603         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32604         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32605         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32606         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32607         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32608         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32609         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32610         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32611         U+10A3F, U+1D242..U+1D244.
32612         (nonspacing_table_ind): Update.
32613         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32614         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32615
32616 2007-07-08  Bruno Haible  <bruno@clisp.org>
32617
32618         Update to Unicode 5.0.
32619         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32620         code transform. Extend the name index field of unicode_name_to_code and
32621         unicode_code_to_name from 16 to 24 bits.
32622         * lib/uniname/uniname.c (unicode_character_name,
32623         unicode_name_character): Add the range 0x12xxx to the code transform.
32624         * lib/uniname/uninames.h: Regenerated.
32625         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32626
32627 2007-07-07  Bruno Haible  <bruno@clisp.org>
32628
32629         * modules/wcwidth-tests: New file.
32630         * tests/test-wcwidth.c: New file.
32631
32632         Work around MacOS X wcwidth() bug.
32633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32634         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32635         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32636         original wcwidth in non-UTF-8 locales.
32637         * modules/wcwidth (Depends-on): Add localcharset, streq,
32638         uniwidth/width.
32639         * doc/functions/wcwidth.texi: Update.
32640
32641 2007-07-07  Bruno Haible  <bruno@clisp.org>
32642
32643         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32644         (wcwidth): New declaration.
32645         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32646         macros.
32647         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32648         here. Prepare for creating <wchar.h> unconditionally.
32649         * modules/wchar (Depends-on): Add link-warning.
32650         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32651         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32652         * lib/wcwidth.h: Remove file.
32653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32654         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32655         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32656         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32657         (Include): Replace wcwidth.h with <wchar.h>.
32658         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32659         * lib/mbchar.h: Don't include wcwidth.h.
32660         * lib/mbswidth.c: Likewise.
32661         * NEWS: Mention the change.
32662
32663 2007-07-07  Bruno Haible  <bruno@clisp.org>
32664
32665         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32666         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32667         definition with an external declaration.
32668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32669         defined as a function. Remove AC_C_INLINE requirement.
32670         * modules/wcwidth (Files): Add lib/wcwidth.c.
32671         (Makefile.am): Remove redundant statement.
32672
32673 2007-07-07  Bruno Haible  <bruno@clisp.org>
32674
32675         * MODULES.html.sh (Unicode string functions): Add the new modules.
32676
32677         * tests/uniwidth/test-u32-strwidth.c: New file.
32678         * modules/uniwidth/u32-strwidth-tests: New file.
32679
32680         * lib/uniwidth/u32-strwidth.c: New file.
32681         * modules/uniwidth/u32-strwidth: New file.
32682
32683         * tests/uniwidth/test-u16-strwidth.c: New file.
32684         * modules/uniwidth/u16-strwidth-tests: New file.
32685
32686         * lib/uniwidth/u16-strwidth.c: New file.
32687         * modules/uniwidth/u16-strwidth: New file.
32688
32689         * tests/uniwidth/test-u8-strwidth.c: New file.
32690         * modules/uniwidth/u8-strwidth-tests: New file.
32691
32692         * lib/uniwidth/u8-strwidth.c: New file.
32693         * modules/uniwidth/u8-strwidth: New file.
32694
32695         * tests/uniwidth/test-u32-width.c: New file.
32696         * modules/uniwidth/u32-width-tests: New file.
32697
32698         * lib/uniwidth/u32-width.c: New file.
32699         * modules/uniwidth/u32-width: New file.
32700
32701         * tests/uniwidth/test-u16-width.c: New file.
32702         * modules/uniwidth/u16-width-tests: New file.
32703
32704         * lib/uniwidth/u16-width.c: New file.
32705         * modules/uniwidth/u16-width: New file.
32706
32707         * tests/uniwidth/test-u8-width.c: New file.
32708         * modules/uniwidth/u8-width-tests: New file.
32709
32710         * lib/uniwidth/u8-width.c: New file.
32711         * modules/uniwidth/u8-width: New file.
32712
32713         * tests/uniwidth/test-uc_width.c: New file.
32714         * modules/uniwidth/width-tests: New file.
32715
32716         * lib/uniwidth/width.c: New file, from GNU libiconv.
32717         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32718         * modules/uniwidth/width: New file.
32719
32720         * lib/uniwidth.h: New file, from GNU libiconv.
32721         * modules/uniwidth/base: New file.
32722
32723 2007-07-07  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/uniname.h: New file, from GNU gettext.
32726         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32727         * lib/uniname/uninames.h: New file, from GNU gettext.
32728         * lib/uniname/uniname.c: New file, from GNU gettext.
32729         * tests/uniname/test-uninames.sh: New file.
32730         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32731         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32732         * modules/uniname/base: New file.
32733         * modules/uniname/uniname: New file.
32734         * modules/uniname/uniname-tests: New file.
32735         * MODULES.html.sh (Unicode string functions): Add the new modules.
32736
32737 2007-07-06  Bruno Haible  <bruno@clisp.org>
32738
32739         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32740
32741 2007-07-06  Bruno Haible  <bruno@clisp.org>
32742
32743         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32744         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32745         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32746         include <sys/time.h>.
32747         Reported by Eric Blake.
32748
32749 2007-07-06  Eric Blake  <ebb9@byu.net>
32750
32751         Fix testing canonicalize on cygwin.
32752         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32753         Revert patch from 2007-06-19.
32754         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32755         canonicalize module is also in use.
32756         * tests/test-canonicalize.c: New file.
32757         * tests/test-canonicalize.sh: Likewise.
32758         * modules/canonicalize-tests: Likewise.
32759
32760 2007-07-06  Jim Meyering  <jim@meyering.net>
32761
32762         * lib/getugroups.c (getugroups): Detect getgrent failure.
32763         Adjust comment to reflect reality: this function may return -1.
32764
32765 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32766
32767         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32768         the new TP address.
32769         (usage): Fix typo
32770         (gnulib_mk): New variable.
32771
32772 2007-07-05  Jim Meyering  <jim@meyering.net>
32773
32774         Don't let endgrent clobber errno, no matter how improbable.
32775         * lib/getugroups.c (getugroups): Save and restore errno around
32776         endgrent call.
32777
32778         Close the group DB even when failing with 2^31 or more members.
32779         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32780
32781 2007-07-04  Jim Meyering  <jim@meyering.net>
32782
32783         * lib/getugroups.h: New file.
32784         * lib/getugroups.c: Include "getugroups.h".
32785         Remove uses of "register" keyword.
32786         Move local variable, "cp", down into scope where used.
32787         Give "username" parameter the "const" attribute.
32788         * modules/getugroups (Files): Add lib/getugroups.h
32789
32790 2007-07-04  Karl Berry  <karl@gnu.org>
32791
32792         * MODULES.html.sh (func_all_modules): Complete rename of
32793         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32794
32795 2007-07-02  Bruno Haible  <bruno@clisp.org>
32796
32797         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32798         mode, when inttypes.h comes from gnulib.
32799         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32800
32801 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32802
32803         * NEWS: Mention lgpl module name change.
32804
32805         * modules/lgpl-2.1: Renamed from lgpl.
32806
32807         * NEWS: Mention gpl module name change.
32808
32809         * modules/gpl-3.0: New file, based on gpl-2.0.
32810
32811         * modules/gpl-2.0: Renamed from gpl.
32812
32813         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32814         doc/gpl-2.0.texi.
32815
32816 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32817
32818         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32819         #define __STDC_LIMIT_MACROS temporarily while including
32820         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32821         Problem reported by Joel E. Denny in
32822         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32823
32824 2007-07-01  Bruno Haible  <bruno@clisp.org>
32825
32826         * lib/unistdio.h: New file.
32827         * lib/unistdio/u-asnprintf.h: New file.
32828         * lib/unistdio/u-asprintf.h: New file.
32829         * lib/unistdio/u-printf-args.c: New file.
32830         * lib/unistdio/u-printf-args.h: New file.
32831         * lib/unistdio/u-printf-parse.h: New file.
32832         * lib/unistdio/u-snprintf.h: New file.
32833         * lib/unistdio/u-sprintf.h: New file.
32834         * lib/unistdio/u-vasprintf.h: New file.
32835         * lib/unistdio/u-vsnprintf.h: New file.
32836         * lib/unistdio/u-vsprintf.h: New file.
32837         * lib/unistdio/ulc-asnprintf.c: New file.
32838         * lib/unistdio/ulc-asprintf.c: New file.
32839         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32840         * lib/unistdio/ulc-printf-parse.c: New file.
32841         * lib/unistdio/ulc-snprintf.c: New file.
32842         * lib/unistdio/ulc-sprintf.c: New file.
32843         * lib/unistdio/ulc-vasnprintf.c: New file.
32844         * lib/unistdio/ulc-vasprintf.c: New file.
32845         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32846         * lib/unistdio/ulc-vsnprintf.c: New file.
32847         * lib/unistdio/ulc-vsprintf.c: New file.
32848         * lib/unistdio/u8-asnprintf.c: New file.
32849         * lib/unistdio/u8-asprintf.c: New file.
32850         * lib/unistdio/u8-printf-parse.c: New file.
32851         * lib/unistdio/u8-snprintf.c: New file.
32852         * lib/unistdio/u8-sprintf.c: New file.
32853         * lib/unistdio/u8-vasnprintf.c: New file.
32854         * lib/unistdio/u8-vasprintf.c: New file.
32855         * lib/unistdio/u8-vsnprintf.c: New file.
32856         * lib/unistdio/u8-vsprintf.c: New file.
32857         * lib/unistdio/u8-u8-asnprintf.c: New file.
32858         * lib/unistdio/u8-u8-asprintf.c: New file.
32859         * lib/unistdio/u8-u8-snprintf.c: New file.
32860         * lib/unistdio/u8-u8-sprintf.c: New file.
32861         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32862         * lib/unistdio/u8-u8-vasprintf.c: New file.
32863         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32864         * lib/unistdio/u8-u8-vsprintf.c: New file.
32865         * lib/unistdio/u16-asnprintf.c: New file.
32866         * lib/unistdio/u16-asprintf.c: New file.
32867         * lib/unistdio/u16-printf-parse.c: New file.
32868         * lib/unistdio/u16-snprintf.c: New file.
32869         * lib/unistdio/u16-sprintf.c: New file.
32870         * lib/unistdio/u16-vasnprintf.c: New file.
32871         * lib/unistdio/u16-vasprintf.c: New file.
32872         * lib/unistdio/u16-vsnprintf.c: New file.
32873         * lib/unistdio/u16-vsprintf.c: New file.
32874         * lib/unistdio/u16-u16-asnprintf.c: New file.
32875         * lib/unistdio/u16-u16-asprintf.c: New file.
32876         * lib/unistdio/u16-u16-snprintf.c: New file.
32877         * lib/unistdio/u16-u16-sprintf.c: New file.
32878         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32879         * lib/unistdio/u16-u16-vasprintf.c: New file.
32880         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32881         * lib/unistdio/u16-u16-vsprintf.c: New file.
32882         * lib/unistdio/u32-asnprintf.c: New file.
32883         * lib/unistdio/u32-asprintf.c: New file.
32884         * lib/unistdio/u32-printf-parse.c: New file.
32885         * lib/unistdio/u32-snprintf.c: New file.
32886         * lib/unistdio/u32-sprintf.c: New file.
32887         * lib/unistdio/u32-vasnprintf.c: New file.
32888         * lib/unistdio/u32-vasprintf.c: New file.
32889         * lib/unistdio/u32-vsnprintf.c: New file.
32890         * lib/unistdio/u32-vsprintf.c: New file.
32891         * lib/unistdio/u32-u32-asnprintf.c: New file.
32892         * lib/unistdio/u32-u32-asprintf.c: New file.
32893         * lib/unistdio/u32-u32-snprintf.c: New file.
32894         * lib/unistdio/u32-u32-sprintf.c: New file.
32895         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32896         * lib/unistdio/u32-u32-vasprintf.c: New file.
32897         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32898         * lib/unistdio/u32-u32-vsprintf.c: New file.
32899         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32900         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32901         * tests/unistdio/test-ulc-printf1.h: New file.
32902         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32903         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32904         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32905         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32906         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32907         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32908         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32909         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32910         * tests/unistdio/test-u8-asnprintf1.c: New file.
32911         * tests/unistdio/test-u8-asnprintf1.h: New file.
32912         * tests/unistdio/test-u8-printf1.h: New file.
32913         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32914         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32915         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32916         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32917         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32918         * tests/unistdio/test-u8-vasprintf1.c: New file.
32919         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32920         * tests/unistdio/test-u8-vsprintf1.c: New file.
32921         * tests/unistdio/test-u16-asnprintf1.c: New file.
32922         * tests/unistdio/test-u16-asnprintf1.h: New file.
32923         * tests/unistdio/test-u16-printf1.h: New file.
32924         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32925         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32926         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32927         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32928         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32929         * tests/unistdio/test-u16-vasprintf1.c: New file.
32930         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32931         * tests/unistdio/test-u16-vsprintf1.c: New file.
32932         * tests/unistdio/test-u32-asnprintf1.c: New file.
32933         * tests/unistdio/test-u32-asnprintf1.h: New file.
32934         * tests/unistdio/test-u32-printf1.h: New file.
32935         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32936         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32937         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32938         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32939         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32940         * tests/unistdio/test-u32-vasprintf1.c: New file.
32941         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32942         * tests/unistdio/test-u32-vsprintf1.c: New file.
32943         * modules/unistdio/base: New file.
32944         * modules/unistdio/u-printf-args: New file.
32945         * modules/unistdio/ulc-asnprintf: New file.
32946         * modules/unistdio/ulc-asprintf: New file.
32947         * modules/unistdio/ulc-fprintf: New file.
32948         * modules/unistdio/ulc-printf-parse: New file.
32949         * modules/unistdio/ulc-snprintf: New file.
32950         * modules/unistdio/ulc-sprintf: New file.
32951         * modules/unistdio/ulc-vasnprintf: New file.
32952         * modules/unistdio/ulc-vasprintf: New file.
32953         * modules/unistdio/ulc-vfprintf: New file.
32954         * modules/unistdio/ulc-vsnprintf: New file.
32955         * modules/unistdio/ulc-vsprintf: New file.
32956         * modules/unistdio/u8-asnprintf: New file.
32957         * modules/unistdio/u8-asprintf: New file.
32958         * modules/unistdio/u8-printf-parse: New file.
32959         * modules/unistdio/u8-snprintf: New file.
32960         * modules/unistdio/u8-sprintf: New file.
32961         * modules/unistdio/u8-vasnprintf: New file.
32962         * modules/unistdio/u8-vasprintf: New file.
32963         * modules/unistdio/u8-vsnprintf: New file.
32964         * modules/unistdio/u8-vsprintf: New file.
32965         * modules/unistdio/u8-u8-asnprintf: New file.
32966         * modules/unistdio/u8-u8-asprintf: New file.
32967         * modules/unistdio/u8-u8-snprintf: New file.
32968         * modules/unistdio/u8-u8-sprintf: New file.
32969         * modules/unistdio/u8-u8-vasnprintf: New file.
32970         * modules/unistdio/u8-u8-vasprintf: New file.
32971         * modules/unistdio/u8-u8-vsnprintf: New file.
32972         * modules/unistdio/u8-u8-vsprintf: New file.
32973         * modules/unistdio/u16-asnprintf: New file.
32974         * modules/unistdio/u16-asprintf: New file.
32975         * modules/unistdio/u16-printf-parse: New file.
32976         * modules/unistdio/u16-snprintf: New file.
32977         * modules/unistdio/u16-sprintf: New file.
32978         * modules/unistdio/u16-vasnprintf: New file.
32979         * modules/unistdio/u16-vasprintf: New file.
32980         * modules/unistdio/u16-vsnprintf: New file.
32981         * modules/unistdio/u16-vsprintf: New file.
32982         * modules/unistdio/u16-u16-asnprintf: New file.
32983         * modules/unistdio/u16-u16-asprintf: New file.
32984         * modules/unistdio/u16-u16-snprintf: New file.
32985         * modules/unistdio/u16-u16-sprintf: New file.
32986         * modules/unistdio/u16-u16-vasnprintf: New file.
32987         * modules/unistdio/u16-u16-vasprintf: New file.
32988         * modules/unistdio/u16-u16-vsnprintf: New file.
32989         * modules/unistdio/u16-u16-vsprintf: New file.
32990         * modules/unistdio/u32-asnprintf: New file.
32991         * modules/unistdio/u32-asprintf: New file.
32992         * modules/unistdio/u32-printf-parse: New file.
32993         * modules/unistdio/u32-snprintf: New file.
32994         * modules/unistdio/u32-sprintf: New file.
32995         * modules/unistdio/u32-vasnprintf: New file.
32996         * modules/unistdio/u32-vasprintf: New file.
32997         * modules/unistdio/u32-vsnprintf: New file.
32998         * modules/unistdio/u32-vsprintf: New file.
32999         * modules/unistdio/u32-u32-asnprintf: New file.
33000         * modules/unistdio/u32-u32-asprintf: New file.
33001         * modules/unistdio/u32-u32-snprintf: New file.
33002         * modules/unistdio/u32-u32-sprintf: New file.
33003         * modules/unistdio/u32-u32-vasnprintf: New file.
33004         * modules/unistdio/u32-u32-vasprintf: New file.
33005         * modules/unistdio/u32-u32-vsnprintf: New file.
33006         * modules/unistdio/u32-u32-vsprintf: New file.
33007         * modules/unistdio/ulc-asnprintf-tests: New file.
33008         * modules/unistdio/ulc-vasnprintf-tests: New file.
33009         * modules/unistdio/ulc-vasprintf-tests: New file.
33010         * modules/unistdio/ulc-vsnprintf-tests: New file.
33011         * modules/unistdio/ulc-vsprintf-tests: New file.
33012         * modules/unistdio/u8-asnprintf-tests: New file.
33013         * modules/unistdio/u8-vasnprintf-tests: New file.
33014         * modules/unistdio/u8-vasprintf-tests: New file.
33015         * modules/unistdio/u8-vsnprintf-tests: New file.
33016         * modules/unistdio/u8-vsprintf-tests: New file.
33017         * modules/unistdio/u16-asnprintf-tests: New file.
33018         * modules/unistdio/u16-vasnprintf-tests: New file.
33019         * modules/unistdio/u16-vasprintf-tests: New file.
33020         * modules/unistdio/u16-vsnprintf-tests: New file.
33021         * modules/unistdio/u16-vsprintf-tests: New file.
33022         * modules/unistdio/u32-asnprintf-tests: New file.
33023         * modules/unistdio/u32-vasnprintf-tests: New file.
33024         * modules/unistdio/u32-vasprintf-tests: New file.
33025         * modules/unistdio/u32-vsnprintf-tests: New file.
33026         * modules/unistdio/u32-vsprintf-tests: New file.
33027         * MODULES.html.sh (Unicode string functions): Add the new modules.
33028
33029 2007-07-01  Bruno Haible  <bruno@clisp.org>
33030
33031         * lib/sprintf.c (sprintf): Limit the available length estimation,
33032         to avoid address wraparound.
33033         * lib/vsprintf.c (vsprintf): Likewise.
33034         * modules/sprintf-posix (Dependencies): Add stdint.
33035         * modules/vsprintf-posix (Dependencies): Likewise.
33036
33037 2007-07-01  Bruno Haible  <bruno@clisp.org>
33038
33039         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33040         Windows PATH as well. Conservative double-quoting. Comments.
33041
33042 2007-07-01  Bruno Haible  <bruno@clisp.org>
33043             Eric Blake  <ebb9@byu.net>
33044             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33045
33046         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33047         empty components in $PATH, denoting '.'.
33048
33049 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33050
33051         * gnulib-tool: Fix indentation.
33052         (func_create_megatestdir): Likewise.
33053         Report by Bruno Haible.
33054
33055 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33056
33057         Sync from Automake.
33058         * build-aux/gnupload: Fix shell portability issues with for loops.
33059         Report by Karl Berry.
33060
33061 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33062
33063         * build-aux/maint.mk (POURL): Use translationproject.org.
33064
33065 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33066             Bruno Haible  <bruno@clisp.org>
33067
33068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33069         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33070         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33071         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33072         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33073
33074 2007-06-27  Bruno Haible  <bruno@clisp.org>
33075
33076         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33077         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33078
33079 2007-06-26  Karl Berry  <karl@gnu.org>
33080
33081         * MODULES.html.sh: remove xreadlink-with-size.
33082
33083 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33084
33085         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33086         method that I hope also handles the double-include problem noted
33087         by Bruno Haible in
33088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33089
33090 2007-06-23  Bruno Haible  <bruno@clisp.org>
33091
33092         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33093         Don't let the 'mostlyclean' target fail if the last subdirectory could
33094         not be removed.
33095         Reported by Karl Berry.
33096
33097 2007-06-23  Bruno Haible  <bruno@clisp.org>
33098
33099         * gnulib-tool (echo): Add a speedier workaround for ksh.
33100         * tests/test-echo.sh: Likewise.
33101
33102 2007-06-23  Bruno Haible  <bruno@clisp.org>
33103
33104         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33105         * tests/test-echo.sh: Likewise.
33106
33107 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33108
33109         * gnulib-tool (IFS): Initialize early, so we don't set it to
33110         empty later.
33111         (self_abspathname): Rewrite algorithm to set it, reindent.
33112         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33113         (func_create_megatestdir): Merge some sed scripts.
33114
33115 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33116
33117         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33118         exposed by Sun Studio 11 cc on Solaris 8.
33119
33120 2007-06-22  Bruno Haible  <bruno@clisp.org>
33121
33122         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33123         backslashes.
33124         * tests/test-echo.sh: New file.
33125
33126 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33127
33128         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33129         simplify `sed_replace_build_aux' scripts, they are portable but
33130         echoing them with `echo' is not.
33131         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33132
33133 2007-06-21  Karl Berry  <karl@gnu.org>
33134
33135         * config/srclist.txt: guess we can't handle the licenses via
33136         srclist at the moment.
33137
33138 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33139
33140         * MODULES.html.sh: Add include_next.
33141         * modules/include_next: New file.
33142
33143 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33144
33145         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33146         INCLUDE_NEXT.
33147         (gl_CHECK_NEXT_HEADERS): New macro.
33148         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33149         the obsolescent gl_ABSOLUTE_HEADER.
33150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33151         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33152         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33153         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33154         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33155         * m4/math_h.m4 (gl_MATH_H): Likewise.
33156         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33157         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33158         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33159         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33160         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33161         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33162         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33167         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33168         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33169         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33170         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33171         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33172         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33173         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33174         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33175         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33176         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33177         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33178         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33179         * lib/float_.h: Likewise.
33180         * lib/inttypes_.h: Likewise.
33181         * lib/math_.h: Likewise.
33182         * lib/search_.h: Likewise.
33183         * lib/signal_.h: Likewise.
33184         * lib/stdint_.h: Likewise.
33185         * lib/stdio_.h: Likewise.
33186         * lib/stdlib_.h: Likewise.
33187         * lib/string_.h: Likewise.
33188         * lib/sys_stat_.h: Likewise.
33189         * lib/sys_time_.h: Likewise.
33190         * lib/time_.h: Likewise.
33191         * lib/unistd_.h: Likewise.
33192         * lib/wchar_.h: Likewise.
33193         * lib/wctype_.h: Likewise.
33194         * lib/dirent_.h: Likewise.
33195         * lib/iconv_.h: Likewise.
33196         * lib/locale_.h: Likewise.
33197         * lib/netinet_in_.h: Likewise.
33198         * lib/sys_select_.h: Likewise.
33199         * lib/sys_socket_.h: Likewise.
33200         * lib/sysexits_.h: Likewise.
33201         * modules/fcntl (Depends-on): Depend on include_next, not
33202         absolute_header.
33203         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33204         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33205         * modules/fchdir: Likewise.
33206         * modules/float: Likewise.
33207         * modules/iconv_open: Likewise.
33208         * modules/inttypes: Likewise.
33209         * modules/locale: Likewise.
33210         * modules/math: Likewise.
33211         * modules/netinet_in: Likewise.
33212         * modules/search: Likewise.
33213         * modules/signal: Likewise.
33214         * modules/stdint: Likewise.
33215         * modules/stdio: Likewise.
33216         * modules/stdlib: Likewise.
33217         * modules/string: Likewise.
33218         * modules/sys_select: Likewise.
33219         * modules/sys_socket: Likewise.
33220         * modules/sys_stat: Likewise.
33221         * modules/sys_time: Likewise.
33222         * modules/sysexits: Likewise.
33223         * modules/time: Likewise.
33224         * modules/unistd: Likewise.
33225         * modules/wchar: Likewise.
33226         * modules/wctype: Likewise.
33227         * modules/sys_stat: Change maintainer to "all".
33228         * modules/unistd: Likewise.
33229
33230 2007-06-20  Karl Berry  <karl@gnu.org>
33231
33232         * config/srclist.txt: track www changes in license files.
33233
33234 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33235
33236         * build-aux/bootstrap: Remove stray dot.
33237         Make sure build_aux settings are honored when linking
33238         gnulib_extra_files.
33239
33240 2007-06-19  Eric Blake  <ebb9@byu.net>
33241
33242         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33243         Allow compilation on cygwin.
33244
33245 2007-06-19  Jim Meyering  <jim@meyering.net>
33246
33247         xreadlink-with-size: Remove module.  No longer used.
33248         Ex-callers now use xreadlink or mreadlink-with-size.
33249         * modules/xreadlink-with-size: Remove module.
33250         * lib/xreadlink-with-size.c: Remove file.
33251         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33252         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33253         just before the function definition *is* accurate.
33254
33255         Eliminate one way canonicalize_filename_mode could exit.
33256         * lib/canonicalize.c (canonicalize_filename_mode):
33257         Use mreadlink_with_size, not xreadlink_with_size.
33258
33259 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33260
33261         Detect porting problems to FreeBSD/arm, which has time_t wider than
33262         long int.  Original problem reported for GNU diff by Xin Li in
33263         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33264         * modules/getdate (Depends-on): Add intprops, verify.
33265         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33266         is an integer type no wider than long int.
33267
33268 2007-06-18  Jim Meyering  <jim@meyering.net>
33269
33270         New module: mreadlink-with-size.
33271         * MODULES.html.sh: Add mreadlink-with-size.
33272         * modules/mreadlink-with-size: New module
33273         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33274         not xreadlink-with-size.
33275         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33276
33277 2007-06-16  Bruno Haible  <bruno@clisp.org>
33278
33279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33280         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33281         Reported by Gary V. Vaughan <gary@gnu.org>.
33282
33283 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33284
33285         Revamp lchown so that it lives in unistd.h where it belongs.
33286         * lib/lchown.h: Remove.
33287         * lib/dirchownmod.c: Don't include lib/lchown.h.
33288         * lib/fchownat.c: Likewise.
33289         * lib/openat.c: Likewise.
33290         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33291         does not follow symlinks.
33292         (EOPNOTSUPP): Define if not defined.
33293         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33294         is defined to 0.
33295         (lchown): New decl.
33296         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33297         Do not check for lchown decl.
33298         Set REPLACE_LCHOWN.
33299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33300         REPLACE_LCHOWN.
33301         * modules/chown: Make it clear it follows symlinks.
33302         * modules/lchown: Make it clear it doesn't follow symlinks.
33303         (Files): Remove lib/lchown.h
33304         (Depends-on): Add unistd.
33305         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33306         (Include): Include <unistd.h>, not "lchown.h".
33307         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33308         REPLACE_LCHOWN.
33309
33310 2007-06-15  Jim Meyering  <jim@meyering.net>
33311
33312         Change license (GPL to LGPL) of fsusage and dependents.
33313         * modules/fsusage (License): Change to LGPL.
33314         * modules/full-read (License): Likewise.
33315         * modules/full-write (License): Likewise.
33316         * modules/safe-read (License): Likewise.
33317         * modules/safe-write (License): Likewise.
33318
33319 2007-06-14  Ben Pfaff  <blp@gnu.org>
33320
33321         Missing part of allocsa -> malloca transition.
33322         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33323         gl_MALLOCA.
33324
33325 2007-06-12  Bruno Haible  <bruno@clisp.org>
33326
33327         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33328         to ia64, x86_64, i386.
33329         Reported by Eric Blake.
33330
33331 2007-06-12  Bruno Haible  <bruno@clisp.org>
33332
33333         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33334         cross-compiling to x86_64.
33335
33336 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33337
33338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33339         glitch reported by Ralf Wildenhues in
33340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33341
33342         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33343         Vin Shelton.
33344
33345 2007-06-11  Bruno Haible  <bruno@clisp.org>
33346
33347         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33348         replacement string.
33349         Reported by Eric Blake.
33350
33351 2007-06-10  Bruno Haible  <bruno@clisp.org>
33352
33353         Prepare vasnprintf code for use with Unicode strings.
33354         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33355         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33356         TYPE_U32_STRING.
33357         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33358         a_u32_string variants.
33359         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33360         * lib/printf-args.c: Don't include config.h and the specification
33361         header if PRINTF_FETCHARGS is already defined.
33362         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33363         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33364         TYPE_U16_STRING, TYPE_U32_STRING.
33365         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33366         u16_directive, u16_directives, u32_directive, u32_directives): New
33367         types.
33368         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33369         New declarations.
33370         * lib/printf-parse.c: Don't include config.h and the specification
33371         header if PRINTF_PARSE is already defined. Eliminate the set of
33372         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33373         them now. Include c-ctype.h.
33374         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33375         directive and CHAR_T_ONLY_ASCII.
33376         * lib/vasnprintf.c: Don't include config.h and the specification header
33377         if VASNPRINTF is already defined.
33378         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33379         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33380         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33381         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33382         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33383         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33384         code accordingly.
33385         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33386         pad_ourselves also in this case, with the 'c' and 's' directives, and
33387         with a different notion of "width".
33388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33389
33390 2007-06-10  Bruno Haible  <bruno@clisp.org>
33391
33392         * modules/unistr/u32-mbsnlen: New file.
33393         * lib/unistr/u32-mbsnlen.c: New file.
33394
33395         * modules/unistr/u16-mbsnlen: New file.
33396         * lib/unistr/u16-mbsnlen.c: New file.
33397
33398         * modules/unistr/u8-mbsnlen: New file.
33399         * lib/unistr/u8-mbsnlen.c: New file.
33400
33401         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33402         declarations.
33403
33404 2007-06-10  Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/string_.h (mbsnlen): New declaration.
33407         * lib/mbsnlen.c: New file.
33408         * m4/mbsnlen.m4: New file.
33409         * modules/mbsnlen: New file.
33410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33411         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33412         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33413
33414 2007-06-10  Bruno Haible  <bruno@clisp.org>
33415
33416         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33417
33418 2007-06-10  Bruno Haible  <bruno@clisp.org>
33419
33420         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33421         * lib/mbuiter.h: Likewise.
33422
33423 2007-06-10  Bruno Haible  <bruno@clisp.org>
33424
33425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33426         declaration.
33427
33428 2007-06-10  Karl Berry  <karl@gnu.org>
33429
33430         * config/srclist.txt: remove gettext entries, Bruno prefers
33431         to update individually.
33432
33433 2007-06-10  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33436         'maxlen'. Ensure only length + width bytes are allocated, not
33437         length + 1 + width.
33438
33439 2007-06-09  Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33442         (CHAR_T): Remove macro.
33443         (VASNPRINTF): Update.
33444
33445 2007-06-09  Bruno Haible  <bruno@clisp.org>
33446
33447         * MODULES.html.sh (Unicode string functions): Add the new modules.
33448
33449         * modules/uniconv/u32-conv-to-enc: New file.
33450         * lib/uniconv/u32-conv-to-enc.c: New file.
33451         * modules/uniconv/u32-conv-to-enc-tests: New file.
33452         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33453
33454         * modules/uniconv/u16-conv-to-enc: New file.
33455         * lib/uniconv/u16-conv-to-enc.c: New file.
33456         * lib/uniconv/u-conv-to-enc.h: New file.
33457         * modules/uniconv/u16-conv-to-enc-tests: New file.
33458         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33459
33460         * modules/uniconv/u8-conv-to-enc: New file.
33461         * lib/uniconv/u8-conv-to-enc.c: New file.
33462         * modules/uniconv/u8-conv-to-enc-tests: New file.
33463         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33464
33465         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33466         u32_conv_to_encoding): New declarations.
33467
33468 2007-06-09  Bruno Haible  <bruno@clisp.org>
33469
33470         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33471
33472 2007-06-09  Bruno Haible  <bruno@clisp.org>
33473
33474         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33475         * modules/malloca: Renamed from modules/allocsa, updated.
33476         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33477         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33478         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33479         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33480         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33481         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33482         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33483         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33484         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33485         * modules/c-strcasestr (Depends-on): Update.
33486         * lib/c-strcasestr.c: Update.
33487         * modules/c-strstr (Depends-on): Update.
33488         * lib/c-strstr.c: Update.
33489         * modules/canonicalize-lgpl (Depends-on): Update.
33490         * lib/canonicalize-lgpl.c: Update.
33491         * modules/clean-temp (Depends-on): Update.
33492         * lib/clean-temp.c: Update.
33493         * modules/csharpcomp (Depends-on): Update.
33494         * lib/csharpcomp.c: Update.
33495         * modules/csharpexec (Depends-on): Update.
33496         * lib/csharpexec.c: Update.
33497         * modules/javacomp (Depends-on): Update.
33498         * lib/javacomp.c: Update.
33499         * modules/javaexec (Depends-on): Update.
33500         * lib/javaexec.c: Update.
33501         * modules/mbscasestr (Depends-on): Update.
33502         * lib/mbscasestr.c: Update.
33503         * modules/mbsstr (Depends-on): Update.
33504         * lib/mbsstr.c: Update.
33505         * modules/setenv (Depends-on): Update.
33506         * lib/setenv.c: Update.
33507         * modules/strcasestr (Depends-on): Update.
33508         * lib/strcasestr.c: Update.
33509         * modules/striconveha (Depends-on): Update.
33510         * lib/striconveha.c: Update.
33511         * modules/relocatable-prog-wrapper (Files): Update.
33512         * lib/relocwrapper.c: Update.
33513         * build-aux/install-reloc: Update.
33514         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33515
33516 2007-06-08  Bruno Haible  <bruno@clisp.org>
33517
33518         Port to uClibc.
33519         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33520         * lib/fpurge.c (fpurge): Likewise.
33521         * lib/freading.c (freading): Likewise.
33522         * lib/fseeko.c (rpl_fseeko): Likewise.
33523         * lib/fseterr.c (fseterr): Likewise.
33524         * lib/fwriting.c (fwriting): Likewise.
33525         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33526
33527 2007-06-08  Bruno Haible  <bruno@clisp.org>
33528
33529         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33530         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33531         * modules/gettext (Files): Add m4/intlmacosx.m4.
33532
33533 2007-06-07  Bruno Haible  <bruno@clisp.org>
33534
33535         * modules/localename-tests: New file.
33536         * tests/test-localename.c: New file.
33537
33538         New module 'localename'.
33539         * lib/localename.h: New file.
33540         * lib/localename.c: New file, from GNU gettext.
33541         * m4/localename.m4: New file.
33542         * modules/localename: New file.
33543
33544 2007-06-07  Bruno Haible  <bruno@clisp.org>
33545
33546         Work around the lack of <wchar.h> on some builds of uClibc.
33547         * doc/headers/wchar.texi: Update.
33548         * lib/wchar_.h: Include <wchar.h> only if it exists.
33549         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33550         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33551         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33552         doesn't exist.
33553         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33554         * modules/mbfile (Depends-on): Add wchar.
33555         * modules/mbiter (Depends-on): Likewise.
33556         * modules/mbuiter (Depends-on): Likewise.
33557         Reported by Simon Josefsson.
33558
33559 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33560
33561         Work around problem reported by Steven M. Schweda in
33562         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33563         Tru64 5.1B with the Compaq compiler environment installed declares
33564         an 'isblank' function but does not define it in the C library.
33565         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33566         * lib/regex_internal.h (isblank): Likewise.
33567         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33568         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33569
33570 2007-06-05  Bruno Haible  <bruno@clisp.org>
33571
33572         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33573         ia64.
33574         * modules/printf-safe: New file.
33575         * modules/fprintf-posix (Depends-on): Add printf-safe.
33576         * modules/printf-posix (Depends-on): Likewise.
33577         * modules/snprintf-posix (Depends-on): Likewise.
33578         * modules/sprintf-posix (Depends-on): Likewise.
33579         * modules/vasnprintf-posix (Depends-on): Likewise.
33580         * modules/vasprintf-posix (Depends-on): Likewise.
33581         * modules/vfprintf-posix (Depends-on): Likewise.
33582         * modules/vprintf-posix (Depends-on): Likewise.
33583         * modules/vsnprintf-posix (Depends-on): Likewise.
33584         * modules/vsprintf-posix (Depends-on): Likewise.
33585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33586         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33587         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33588         "no" on i386, x86_64, ia64.
33589         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33590         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33591         on i386, x86_64, ia64.
33592         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33593         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33594         on i386, x86_64, ia64.
33595         * tests/test-vasnprintf-posix.c: Include float.h.
33596         (LDBL80_WORDS): New macro.
33597         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33598         on i386, x86_64, ia64.
33599         * tests/test-vasprintf-posix.c: Include float.h.
33600         (LDBL80_WORDS): New macro.
33601         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33602         on i386, x86_64, ia64.
33603         * tests/test-snprintf-posix.c: Include float.h.
33604         * tests/test-sprintf-posix.c: Likewise.
33605         * tests/test-vsnprintf-posix.c: Likewise.
33606         * tests/test-vsprintf-posix.c: Likewise.
33607
33608 2007-06-05  Bruno Haible  <bruno@clisp.org>
33609
33610         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33611         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33612         non-IEEE numbers on i386, x86_64, ia64.
33613         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33614         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33615         * tests/test-isnanl.h: Include float.h.
33616         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33617
33618 2007-06-05  Bruno Haible  <bruno@clisp.org>
33619
33620         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33621         also the %a / %A. Handle the %a / %A code before this extra handling.
33622
33623 2007-06-05  Bruno Haible  <bruno@clisp.org>
33624
33625         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33626         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33627
33628 2007-06-05  Bruno Haible  <bruno@clisp.org>
33629
33630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33631         typo in variable name.
33632
33633 2007-06-05  Eric Blake  <ebb9@byu.net>
33634
33635         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33636         Reported by Simon Josefsson.
33637
33638 2007-06-04  Bruno Haible  <bruno@clisp.org>
33639
33640         Avoid test failures on some PowerPC platforms.
33641         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33642         Define differently for PowerPC.
33643         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33644         Reported by Gary V. Vaughan <gary@gnu.org>.
33645
33646 2007-06-02  Bruno Haible  <bruno@clisp.org>
33647
33648         Fix test-stdint failure on FreeBSD/ia64.
33649         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33650         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33651         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33652         * doc/headers/stdint.texi: Update.
33653
33654 2007-06-01  Bruno Haible  <bruno@clisp.org>
33655
33656         * tests/test-binary-io.c (main): Pass a third argument to open().
33657         Reported by Gary V. Vaughan <gary@gnu.org>.
33658
33659 2007-06-01  Bruno Haible  <bruno@clisp.org>
33660
33661         * doc/functions/frexpl.texi: Update for mingw.
33662
33663 2007-06-01  Bruno Haible  <bruno@clisp.org>
33664
33665         * tests/test-lseek.c (main): Disable test of errno for invalid third
33666         argument.
33667         * doc/functions/lseek.texi: Update.
33668         Reported by Gary V. Vaughan <gary@gnu.org>.
33669
33670 2007-05-28  Bruno Haible  <bruno@clisp.org>
33671
33672         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33673
33674 2007-05-31  Eric Blake  <ebb9@byu.net>
33675
33676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33677         cross compiling.
33678
33679 2007-05-30  Eric Blake  <ebb9@byu.net>
33680         and Bruno Haible  <bruno@clisp.org>
33681
33682         Work around mingw test failures exposed by m4-1.4.9b.
33683         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33684         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33685         moment.
33686
33687 2007-05-30  Bruno Haible  <bruno@clisp.org>
33688
33689         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33690         assuming that they are closed. Needed on HP-UX 11.
33691
33692 2007-05-29  Bruno Haible  <bruno@clisp.org>
33693
33694         Fix a problem with #include_next.
33695         * lib/dirent_.h: Split the double-inclusion guard.
33696         * lib/fcntl_.h: Likewise.
33697         * lib/float_.h: Likewise.
33698         * lib/iconv_.h: Likewise.
33699         * lib/inttypes_.h: Likewise.
33700         * lib/locale_.h: Likewise.
33701         * lib/math_.h: Likewise.
33702         * lib/netinet_in_.h: Likewise.
33703         * lib/search_.h: Likewise.
33704         * lib/signal_.h: Likewise.
33705         * lib/stdint_.h: Likewise.
33706         * lib/stdio_.h: Likewise.
33707         * lib/stdlib_.h: Likewise.
33708         * lib/string_.h: Likewise.
33709         * lib/sys_select_.h: Likewise.
33710         * lib/sys_socket_.h: Likewise.
33711         * lib/sys_stat_.h: Likewise.
33712         * lib/sys_time_.h: Likewise.
33713         * lib/sysexits_.h: Likewise.
33714         * lib/time_.h: Likewise.
33715         * lib/unistd_.h: Likewise.
33716         * lib/wchar_.h: Likewise.
33717         * lib/wctype_.h: Likewise.
33718
33719 2007-05-29  Bruno Haible  <bruno@clisp.org>
33720
33721         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33722         for the moment.
33723
33724 2007-05-29  Bruno Haible  <bruno@clisp.org>
33725
33726         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33727         invocation.
33728         Reported by Eric Blake.
33729
33730 2007-05-29  Bruno Haible  <bruno@clisp.org>
33731
33732         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33733         compiling case.
33734
33735 2007-05-29  Eric Blake  <ebb9@byu.net>
33736             Bruno Haible  <bruno@clisp.org>
33737
33738         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33739         cross compiles.
33740
33741 2007-05-28  Eric Blake  <ebb9@byu.net>
33742
33743         * modules/closein-tests (test_closein_LDADD): Support test on
33744         cygwin with libtool.
33745
33746 2007-05-28  Bruno Haible  <bruno@clisp.org>
33747
33748         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33749         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33750         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33751         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33752         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33753         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33754         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33755         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33756         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33757
33758 2007-05-28  Eric Blake  <ebb9@byu.net>
33759
33760         Unconditionally include <config.h> in unit tests.
33761         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33762         * tests/test-allocsa.c, tests/test-arcfour.c,
33763         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33764         tests/test-array_list.c, tests/test-array_oset.c,
33765         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33766         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33767         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33768         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33769         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33770         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33771         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33772         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33773         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33774         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33775         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33776         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33777         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33778         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33779         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33780         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33781         test-md5.c, test-memmem.c, test-printf-posix.c,
33782         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33783         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33784         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33785         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33786         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33787         test-vasnprintf-posix2.c, test-vasnprintf.c,
33788         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33789         test-vfprintf-posix.c, test-vprintf-posix.c,
33790         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33791         test-xvasprintf.c: Likewise.
33792
33793 2007-05-28  Bruno Haible  <bruno@clisp.org>
33794
33795         * gnulib-tool (func_import): Remember the --with-tests command-line
33796         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33797         Reported by Eric Blake.
33798
33799 2007-05-28  Bruno Haible  <bruno@clisp.org>
33800
33801         * modules/ftell-tests: New file.
33802         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33803         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33804
33805         * lib/ftell.c: New file.
33806         * modules/ftell: New file.
33807         * m4/ftell.m4: New file.
33808         * doc/functions/ftell.texi: Update.
33809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33810         REPLACE_FTELL.
33811         * lib/stdio_.h (rpl_ftell): New declaration.
33812         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33813         REPLACE_FTELL.
33814
33815 2007-05-28  Eric Blake  <ebb9@byu.net>
33816
33817         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33818
33819 2007-05-28  Bruno Haible  <bruno@clisp.org>
33820
33821         * modules/fseek-tests: New file.
33822         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33823         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33824
33825         * lib/fseek.c: New file.
33826         * modules/fseek: New file.
33827         * m4/fseek.m4: New file.
33828         * doc/functions/fseek.texi: Update.
33829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33830         REPLACE_FSEEK.
33831         * lib/stdio_.h (rpl_fseek): New declaration.
33832         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33833         REPLACE_FSEEK.
33834
33835 2007-05-28  Bruno Haible  <bruno@clisp.org>
33836
33837         * lib/stdio_.h (fflush): More comments.
33838
33839 2007-05-28  Bruno Haible  <bruno@clisp.org>
33840
33841         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33842         runtime test.
33843
33844 2007-05-28  Eric Blake  <ebb9@byu.net>
33845
33846         Improve lseek module.
33847         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33848         * lib/unistd_.h (lseek): Scale back link warning message.
33849         * tests/test-lseek.c: Beef up test.
33850         * tests/test-lseek.sh: Exercise more facets of lseek.
33851         Reported by Bruno Haible.
33852
33853 2007-05-28  Bruno Haible  <bruno@clisp.org>
33854
33855         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33856         to define.
33857
33858 2007-05-27  Bruno Haible  <bruno@clisp.org>
33859
33860         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33861
33862 2007-05-27  Bruno Haible  <bruno@clisp.org>
33863
33864         * modules/openmp: New file.
33865         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33866         Noah Misch.
33867
33868 2007-05-26  Bruno Haible  <bruno@clisp.org>
33869
33870         * modules/chdir-long (Depends-on): Add fchdir.
33871         * modules/chdir-safer (Depends-on): Likewise.
33872         * modules/fts (Depends-on): Likewise.
33873         * modules/fts-lgpl (Depends-on): Likewise.
33874         * modules/openat (Depends-on): Likewise.
33875         * modules/savewd (Depends-on): Likewise.
33876
33877 2007-05-24  Eric Blake  <ebb9@byu.net>
33878
33879         Fix lseek on mingw.
33880         * modules/lseek: New module.
33881         * m4/lseek.m4: New file.
33882         * lib/lseek.c: New file.
33883         * modules/lseek-tests: New file.
33884         * tests/test-lseek.c: New file.
33885         * tests/test-lseek.sh: New file.
33886         * MODULES.html.sh: Document lseek module.
33887         * modules/fflush (Depends-on): Add lseek, fseeko.
33888         * modules/fseeko (Depends-on): Likewise.
33889         * modules/ftello (Depends-on): Likewise.
33890         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33891         broken.
33892         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33893         broken.
33894         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33895         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33896         * lib/ftello.c (rpl_ftello): Likewise.
33897         * tests/test-fseeko.c (main): Test this.
33898         * tests/test-fseeko.sh: Likewise.
33899         * tests/test-ftello.c (main): Likewise.
33900         * tests/test-ftello.sh: Likewise.
33901         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33902         implies replacing fseek.
33903         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33904         HAVE_FTELLO.
33905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33906         * modules/unistd (Makefile.am): Likewise.
33907         * lib/unistd_.h (lseek): Declare a replacement.
33908         * doc/functions/lseek.texi (lseek): Document this fix.
33909         * doc/functions/fseek.texi (fseek): Likewise.
33910         * doc/functions/ftell.texi (ftell): Likewise.
33911
33912 2007-05-24  Bruno Haible  <bruno@clisp.org>
33913
33914         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33915         in the printed representation of a NaN.
33916         * tests/test-vasprintf-posix.c (test_function): Likewise.
33917         * tests/test-snprintf-posix.h (test_function): Likewise.
33918         * tests/test-sprintf-posix.h (test_function): Likewise.
33919         Reported by Eric Blake.
33920
33921 2007-05-23  Eric Blake  <ebb9@byu.net>
33922
33923         Fix fseeko/ftello on cygwin 1.5.24.
33924         * doc/functions/fseeko.texi (fseeko): Document the fix.
33925         * doc/functions/ftello.texi (ftello): Document the fix.
33926         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33927         * doc/functions/stdout.text (stdout): New file.
33928         * doc/functions/stderr.text (stderr): New file.
33929         * doc/gnulib.texi (Function Substitutes): Use new files.
33930         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33931         prior to 1.7.0.
33932         * tests/test-ftello.c (main): Likewise for ftello.
33933         * tests/test-fseeko.sh: New file.
33934         * tests/test-ftello.sh: New file.
33935         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33936         with seekable stdin.
33937         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33938         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33939         (gl_REPLACE_FSEEKO): New macro.
33940         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33941         * modules/fseeko (Files): Distribute fseeko.c.
33942         * modules/ftello (Files): Distribute ftello.c.
33943         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33944         mode.
33945         * lib/ftello.c (rpl_ftello): New file.
33946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33947         fseeko, ftello.
33948         (gl_STDIN_LARGE_OFFSET): New macro.
33949         * modules/stdio (Makefile.am): Perform the replacement.
33950         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33951
33952 2007-05-23  Bruno Haible  <bruno@clisp.org>
33953
33954         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33955         GNULIB_POSIXCHECK is defined.
33956
33957 2007-05-21  Bruno Haible  <bruno@clisp.org>
33958
33959         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33960         Check also the output for NaN arguments. When cross-compiling, guess
33961         no on IRIX.
33962         * lib/vasnprintf.c: Update comments.
33963         * tests/test-vasnprintf-posix.c (strisnan): New function.
33964         (test_function): Use it.
33965         * tests/test-vasprintf-posix.c (strisnan): New function.
33966         (test_function): Use it.
33967         * tests/test-snprintf-posix.h (strisnan): New function.
33968         (test_function): Use it.
33969         * tests/test-sprintf-posix.h (strisnan): New function.
33970         (test_function): Use it.
33971         Reported by Eric Blake.
33972
33973 2007-05-20  Bruno Haible  <bruno@clisp.org>
33974
33975         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33976         numbers that fails on BeOS.
33977         * doc/functions/frexpl.texi: Update.
33978
33979 2007-05-20  Jim Meyering  <jim@meyering.net>
33980
33981         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33982         forced upon us by glibc-2.6.
33983
33984 2007-05-20  Bruno Haible  <bruno@clisp.org>
33985
33986         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33987         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33988         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33989         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33990         NEED_PRINTF_INFINITE.
33991         (is_infinitel): New function.
33992         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33994         gl_PREREQ_VASNPRINTF_INFINITE.
33995         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33997         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33998         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33999         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34000         gl_PREREQ_VASNPRINTF_INFINITE.
34001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34008         * doc/functions/fprintf.texi: Update.
34009         * doc/functions/printf.texi: Update.
34010         * doc/functions/snprintf.texi: Update.
34011         * doc/functions/sprintf.texi: Update.
34012         * doc/functions/vfprintf.texi: Update.
34013         * doc/functions/vprintf.texi: Update.
34014         * doc/functions/vsnprintf.texi: Update.
34015         * doc/functions/vsprintf.texi: Update.
34016
34017 2007-05-20  Bruno Haible  <bruno@clisp.org>
34018
34019         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34020         was not found in libc.
34021         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34022
34023 2007-05-20  Bruno Haible  <bruno@clisp.org>
34024
34025         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34026         printed as "-nan" instead of "nan".
34027         * tests/test-vasprintf-posix.c (test_function): Likewise.
34028         * tests/test-snprintf-posix.h (test_function): Likewise.
34029         * tests/test-sprintf-posix.h (test_function): Likewise.
34030         Needed for HP-UX 11.
34031
34032 2007-05-20  Jim Meyering  <jim@meyering.net>
34033
34034         Fix buggy test for the fchownat-deref bug.
34035         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34036         symlink required for the run-test.  Without it, this test would
34037         always declare that fchownat doesn't work, and client code would
34038         unnecessarily use the replacement function with fixed libc.
34039         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34040         Reported by Greg Schafer.
34041
34042 2007-05-19  Bruno Haible  <bruno@clisp.org>
34043
34044         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34045         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34046         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34047         Needed for IRIX 6.5 and Solaris 2.5.1.
34048
34049 2007-05-19  Bruno Haible  <bruno@clisp.org>
34050
34051         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34052         (test_function): Skip tests involving -0.0 on platforms where
34053         -0.0 = 0.0.
34054         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34055         (test_function): Skip tests involving -0.0 on platforms where
34056         -0.0 = 0.0.
34057         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34058         (test_function): Skip tests involving -0.0 on platforms where
34059         -0.0 = 0.0.
34060         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34061         (test_function): Skip tests involving -0.0 on platforms where
34062         -0.0 = 0.0.
34063         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34064         tests.
34065         * tests/test-printf-posix.h (test_function): Likewise.
34066         * tests/test-printf-posix.output: Remove all -0.0 related results.
34067         Needed for IRIX 6.5.
34068
34069 2007-05-19  Bruno Haible  <bruno@clisp.org>
34070
34071         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34072         printed as "nan0x7fffffff" instead of "nan".
34073         * tests/test-vasprintf-posix.c (test_function): Likewise.
34074         * tests/test-snprintf-posix.h (test_function): Likewise.
34075         * tests/test-sprintf-posix.h (test_function): Likewise.
34076         * tests/test-fprintf-posix.h (NaN): Remove macro.
34077         (test_function): Remove all NaN related tests.
34078         * tests/test-printf-posix.h (NaN): Remove macro.
34079         (test_function): Remove all NaN related tests.
34080         * tests/test-printf-posix.output: Remove all NaN related results.
34081         Needed for IRIX 6.5.
34082
34083 2007-05-19  Bruno Haible  <bruno@clisp.org>
34084
34085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34087
34088 2007-05-19  Bruno Haible  <bruno@clisp.org>
34089
34090         * lib/float_.h: New file.
34091         * m4/float_h.m4: New file.
34092         * modules/float: New file.
34093         * modules/isnanl (Dependencies): Add float.
34094         * modules/isnanl-nolibm (Dependencies): Likewise.
34095         * modules/mathl (Dependencies): Likewise.
34096         * modules/printf-frexpl (Dependencies): Likewise.
34097         * modules/signbit (Dependencies): Likewise.
34098         * modules/vasnprintf (Dependencies): Likewise.
34099         * doc/headers/float.texi: Update.
34100
34101 2007-05-19  Jim Meyering  <jim@meyering.net>
34102
34103         * lib/utimens.c (gl_futimens): Rename from futimens,
34104         now that glibc-2.6 declares futimens.
34105         * lib/utimens.h: Likewise.
34106
34107 2007-05-19  Bruno Haible  <bruno@clisp.org>
34108
34109         Avoid test failures on mingw.
34110         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34111         * tests/test-printf-posix.sh: Likewise.
34112         * tests/test-vfprintf-posix.sh: Likewise.
34113         * tests/test-vprintf-posix.sh: Likewise.
34114
34115 2007-05-19  Bruno Haible  <bruno@clisp.org>
34116
34117         Fix *printf result for NaN, Inf, -0.0 on mingw.
34118         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34119         * lib/vasnprintf.c: Include math.h and isnan.h.
34120         (is_infinite_or_zero): New function.
34121         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34122         values in the %f, %F, %e, %E, %g, %G directives.
34123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34125         gl_PRINTF_INFINITE and test its result. Invoke
34126         gl_PREREQ_VASNPRINTF_INFINITE.
34127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34134         * doc/functions/fprintf.texi: Update.
34135         * doc/functions/printf.texi: Update.
34136         * doc/functions/snprintf.texi: Update.
34137         * doc/functions/sprintf.texi: Update.
34138         * doc/functions/vfprintf.texi: Update.
34139         * doc/functions/vprintf.texi: Update.
34140         * doc/functions/vsnprintf.texi: Update.
34141         * doc/functions/vsprintf.texi: Update.
34142
34143 2007-05-19  Bruno Haible  <bruno@clisp.org>
34144
34145         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34146         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34147         Instead of multiplying with 10^k, set extra_zeroes to k.
34148         (scale10_round_long_double): Remove function.
34149
34150 2007-05-18  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34153         introduced on 2007-05-06.
34154
34155 2007-05-18  Bruno Haible  <bruno@clisp.org>
34156
34157         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34158         %g directives.
34159         * tests/test-vasprintf-posix.c (test_function): Likewise.
34160         * tests/test-snprintf-posix.h (test_function): Likewise.
34161         * tests/test-sprintf-posix.h (test_function): Likewise.
34162
34163 2007-05-18  Bruno Haible  <bruno@clisp.org>
34164
34165         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34166         (strmatch): New function.
34167         (test_function): Test the %f directive on numbers of various exponents.
34168         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34169         (strmatch): New function.
34170         (test_function): Test the %f directive on numbers of various exponents.
34171         * tests/test-snprintf-posix.h (strmatch): New function.
34172         (test_function): Test the %f directive on numbers of various exponents.
34173         * tests/test-sprintf-posix.h (strmatch): New function.
34174         (test_function): Test the %f directive on numbers of various exponents.
34175         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34176         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34177         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34178         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34179
34180 2007-05-18  Bruno Haible  <bruno@clisp.org>
34181
34182         Add support for 'long double' number output.
34183         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34184         * lib/vasnprintf.c: Include math.h and float+.h.
34185         (mp_limb_t): New type.
34186         (GMP_LIMB_BITS): New macro.
34187         (mp_twolimb_t): New type.
34188         (GMP_TWOLIMB_BITS): New macro.
34189         (mpn_t): New type.
34190         (multiply, divide, convert_to_decimal, decode_long_double,
34191         scale10_round_long_double, scale10_round_decimal_long_double,
34192         floorlog10l): New functions.
34193         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34194         for the %f, %F, %e, %E, %g, %G directives.
34195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34197         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34198         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34202         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34203         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34204         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34205         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34206         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34207         * modules/snprintf-posix (Depends-on): Likewise.
34208         * modules/sprintf-posix (Depends-on): Likewise.
34209         * modules/vasnprintf-posix (Depends-on): Likewise.
34210         * modules/vasprintf-posix (Depends-on): Likewise.
34211         * modules/vfprintf-posix (Depends-on): Likewise.
34212         * modules/vsnprintf-posix (Depends-on): Likewise.
34213         * modules/vsprintf-posix (Depends-on): Likewise.
34214         * modules/vasnprintf (Files): Add lib/float+.h.
34215         * doc/functions/fprintf.texi: Update.
34216         * doc/functions/printf.texi: Update.
34217         * doc/functions/snprintf.texi: Update.
34218         * doc/functions/sprintf.texi: Update.
34219         * doc/functions/vfprintf.texi: Update.
34220         * doc/functions/vprintf.texi: Update.
34221         * doc/functions/vsnprintf.texi: Update.
34222         * doc/functions/vsprintf.texi: Update.
34223
34224 2007-05-18  Bruno Haible  <bruno@clisp.org>
34225
34226         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34227
34228 2007-05-18  Bruno Haible  <bruno@clisp.org>
34229
34230         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34231         for printing 64-bit integers. Needed for mingw.
34232
34233 2007-05-18  Bruno Haible  <bruno@clisp.org>
34234
34235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34236         gl_FUNC_FREXPL_WORKS.
34237         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34238
34239 2007-05-18  Bruno Haible  <bruno@clisp.org>
34240
34241         * modules/frexpl-nolibm-tests: New file.
34242
34243         * modules/frexpl-nolibm: New file.
34244         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34245
34246 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34247
34248         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34249         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34250         GCC 4.2, which otherwise issues a lot of warnings.
34251         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34252         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34253         Likewise.
34254         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34255         * modules/iconv_open (iconv.h): Likewise.
34256         * modules/locale (locale.h): Likewise.
34257         * modules/netinet_in (netinet/in.h): Likewise.
34258         * modules/sys_select (sys_select.h): Likewise.
34259         * modules/sys_socket (sys/socket.h): Likewise.
34260         * modules/sys_stat (sys/stat.h): Likewise.
34261         * modules/sysexits (sysexits.h): Likewise.
34262         * modules/unistd (unistd.h): Likewise.
34263
34264 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34265
34266         * modules/closein-tests (Makefile.am): Distribute
34267         `test-closein.sh'.
34268
34269 2007-05-17  Bruno Haible  <bruno@clisp.org>
34270
34271         * tests/test-printf-posix.output: Renamed from
34272         tests/test-fprintf-posix.out.
34273         * modules/fprintf-posix-tests: Update.
34274         * modules/printf-posix-tests: Update.
34275         * modules/vfprintf-posix-tests: Update.
34276         * modules/vprintf-posix-tests: Update.
34277         * tests/test-fprintf-posix.sh: Update.
34278         * tests/test-printf-posix.sh: Update.
34279         * tests/test-vfprintf-posix.sh: Update.
34280         * tests/test-vprintf-posix.sh: Update.
34281         Reported by Ralf Wildenhues.
34282
34283 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34284
34285         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34286         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34287         GCC 4.2, which otherwise issues a lot of warnings.
34288         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34289         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34290         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34291         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34292         it should no longer be needed.
34293         * lib/string_.h: Likewise.
34294         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34295         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34296         * modules/inttypes (inttypes.h): Likewise.
34297         * modules/math (math.h): Likewise.
34298         * modules/search (search.h): Likewise.
34299         * modules/signal (signal.h): Likewise.
34300         * modules/stdint (stdint.h): Likewise.
34301         * modules/stdio (stdio.h): Likewise.
34302         * modules/stdlib (stdlib.h): Likewise.
34303         * modules/string (string.h): Likewise.
34304         * modules/sys_time (sys/time.h): Likewise.
34305         * modules/time (time.h): Likewise.
34306         * modules/wchar (wchar.h): Likewise.
34307         * modules/wctype (wtype.h): Likewise.
34308
34309 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34310
34311         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34312
34313 2007-05-13  Bruno Haible  <bruno@clisp.org>
34314
34315         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34316         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34317         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34318         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34319         (gl_PREREQ_STRTOK_R): Don't require it here.
34320
34321 2007-05-13  Bruno Haible  <bruno@clisp.org>
34322
34323         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34324         when used in C++ mode.
34325
34326 2007-05-12  Bruno Haible  <bruno@clisp.org>
34327
34328         * lib/linebuffer.h: Tweak doc.
34329         * lib/linebuffer.c: Likewise.
34330
34331 2007-05-12  James Youngman  <jay@gnu.org>
34332
34333         * lib/linebuffer.c (readlinebuffer_delim): New function,
34334         like readlinebuffer, but use a caller-specified delimiter.
34335         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34336         as the delimiter.
34337         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34338
34339 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34340
34341         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34342         * modules/openat (Files): Remove openat-die.c.
34343         (Depends-on): Add openat-die.
34344         * modules/openat-die: New module.
34345
34346 2007-05-06  Bruno Haible  <bruno@clisp.org>
34347
34348         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34349         Update with info about Cygwin.
34350         * doc/functions/fprintf.texi: Update.
34351         * doc/functions/printf.texi: Update.
34352         * doc/functions/snprintf.texi: Update.
34353         * doc/functions/sprintf.texi: Update.
34354         * doc/functions/vfprintf.texi: Update.
34355         * doc/functions/vprintf.texi: Update.
34356         * doc/functions/vsnprintf.texi: Update.
34357         * doc/functions/vsprintf.texi: Update.
34358         Reported by Eric Blake.
34359
34360 2007-05-06  Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34363         padding ourselves for the floating-point directives.
34364         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34367         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34368         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34370         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34376         * tests/test-snprintf-posix.h (test_function): Also check the width
34377         and some flags in the %f directive.
34378         * tests/test-sprintf-posix.h (test_function): Likewise.
34379         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34380         * tests/test-vasprintf-posix.c (test_function): Likewise.
34381         * doc/functions/fprintf.texi: Update.
34382         * doc/functions/printf.texi: Update.
34383         * doc/functions/snprintf.texi: Update.
34384         * doc/functions/sprintf.texi: Update.
34385         * doc/functions/vfprintf.texi: Update.
34386         * doc/functions/vprintf.texi: Update.
34387         * doc/functions/vsnprintf.texi: Update.
34388         * doc/functions/vsprintf.texi: Update.
34389
34390 2007-05-06  Bruno Haible  <bruno@clisp.org>
34391
34392         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34393         pass the ' flag character to sprintf or snprintf.
34394         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34397         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34398         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34399         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34406         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34407         flag.
34408         * tests/test-sprintf-posix.h (test_function): Likewise.
34409         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34410         * tests/test-vasprintf-posix.c (test_function): Likewise.
34411         * doc/functions/fprintf.texi: Update.
34412         * doc/functions/printf.texi: Update.
34413         * doc/functions/snprintf.texi: Update.
34414         * doc/functions/sprintf.texi: Update.
34415         * doc/functions/vfprintf.texi: Update.
34416         * doc/functions/vprintf.texi: Update.
34417         * doc/functions/vsnprintf.texi: Update.
34418         * doc/functions/vsprintf.texi: Update.
34419
34420 2007-05-01  Bruno Haible  <bruno@clisp.org>
34421
34422         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34423
34424 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34425
34426         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34427         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34428
34429 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34430
34431         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34432         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34434
34435 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34436
34437         * lib/argp-help.c (struct hol_entry): New member `ord'.
34438         (HOL_ENTRY_PTRCMP): Use ord for comparison
34439         (hol_sort): Initialize ord.
34440
34441 2007-05-01  Bruno Haible  <bruno@clisp.org>
34442
34443         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34444         Reported by Eric Blake.
34445         * doc/gnulib.texi (Function Substitutes): Update.
34446
34447 2007-05-01  Bruno Haible  <bruno@clisp.org>
34448
34449         * doc/functions.texi: Remove file, now redundant through
34450         doc/functions/*.texi.
34451
34452 2007-05-01  Bruno Haible  <bruno@clisp.org>
34453
34454         * modules/argp (Depends-on): Add sleep.
34455
34456 2007-05-01  Bruno Haible  <bruno@clisp.org>
34457
34458         * modules/sleep-tests: New file.
34459         * tests/test-sleep.c: New file.
34460
34461         * modules/sleep: New file.
34462         * lib/sleep.c: New file.
34463         * m4/sleep.m4: New file.
34464         * lib/unistd_.h (sleep): New declaration.
34465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34466         HAVE_SLEEP.
34467         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34468         * doc/functions/sleep.texi: Document the sleep module.
34469
34470 2007-05-01  Bruno Haible  <bruno@clisp.org>
34471
34472         * lib/sigprocmask.h: Remove file.
34473         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34474         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34475         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34476         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34477         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34478         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34479         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34480         HAVE_SIGSET_T as a shell variable.
34481         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34482         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34483         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34484         (Depends-on): Add signal. Remove verify.
34485         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34486         (Include): Mention <signal.h> instead of sigprocmask.h.
34487         * NEWS: Mention the change.
34488         * lib/fatal-signal.c: Don't include sigprocmask.h.
34489
34490 2007-05-01  Bruno Haible  <bruno@clisp.org>
34491
34492         * modules/signal: New file.
34493         * lib/signal_.h: New file.
34494         * m4/signal_h.m4: New file.
34495
34496 2007-05-01  Bruno Haible  <bruno@clisp.org>
34497
34498         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34499         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34500         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34501         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34502
34503 2007-05-01  Bruno Haible  <bruno@clisp.org>
34504
34505         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34506         configure time.
34507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34508         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34509         * modules/sys_stat (Makefile.am): Substitute their values into
34510         sys/stat.h.
34511
34512 2007-05-01  Bruno Haible  <bruno@clisp.org>
34513
34514         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34515         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34516         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34517
34518 2007-05-01  Bruno Haible  <bruno@clisp.org>
34519
34520         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34521         'assert' module here.
34522
34523 2007-05-01  Bruno Haible  <bruno@clisp.org>
34524
34525         * doc/functions/*.texi: New files.
34526         * doc/functions/google-ranking.txt: New file.
34527         * doc/gnulib.texi (Function Substitutes): New chapter.
34528         (ctime, inet_ntoa): Remove sections.
34529         * doc/ctime.texi: Remove file.
34530         * doc/inet_ntoa.texi: Remove file.
34531         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34532         dependencies.
34533         (%.info): New rule, specifying a --reference-limit.
34534
34535 2007-05-01  Bruno Haible  <bruno@clisp.org>
34536
34537         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34538
34539 2007-05-01  Bruno Haible  <bruno@clisp.org>
34540
34541         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34542         the portability of 'mkdir' to mingw systems.
34543
34544 2007-05-01  Bruno Haible  <bruno@clisp.org>
34545
34546         * doc/headers/google-ranking.txt: New file.
34547
34548 2007-04-30  Eric Blake  <ebb9@byu.net>
34549
34550         Prefer fseeko to fseek.
34551         * modules/getpass (Depends-on): Add fseeko.
34552         * lib/getpass.c (getpass): Use fseeko, not fseek.
34553
34554 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34555
34556         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34557         assumes the sorting is stable, while most qsort implementations
34558         are not.  Use argument addresses to ensure they never compare as
34559         equal.
34560
34561         * tests/test-argp-2.sh (usage-indent test): Fix output
34562         (func_compare): Restore diff options
34563         * tests/test-argp.c: Restore #include "progname.h"
34564
34565 2007-04-29  Bruno Haible  <bruno@clisp.org>
34566
34567         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34569         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34571         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34572         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34573         (TESTS, check_PROGRAMS): Add test-snprintf.
34574         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34575         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34576         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34577         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34578         assertions that fail on HP-UX, OSF/1, or IRIX.
34579         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34580
34581 2007-04-29  Bruno Haible  <bruno@clisp.org>
34582
34583         * MODULES.html.sh (posix_functions): Remove 'contents'.
34584
34585 2007-04-29  Karl Berry  <karl@gnu.org>
34586
34587         * config/srclist.txt (gendocs_template_min): new entry.
34588
34589 2007-04-29  Bruno Haible  <bruno@clisp.org>
34590
34591         Work around fpurge bug on BSD systems.
34592         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34593         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34594         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34595         fpurge to rpl_fpurge if the system already has this function.
34596         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34597         the case where the system already has this function. Correct invariants
34598         on BSD systems.
34599         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34600         BSD systems.
34601
34602 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34603
34604         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34605         proposed by Sven Verdoolaege.
34606
34607         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34608         options.
34609         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34610         (usage and help tests): Update
34611
34612 2007-04-29  Bruno Haible  <bruno@clisp.org>
34613
34614         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34615         Print more information in case of failure. Disable a test on BeOS.
34616
34617 2007-04-29  Bruno Haible  <bruno@clisp.org>
34618
34619         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34620         This helps debugging on systems on which no gdb is available.
34621
34622 2007-04-29  Bruno Haible  <bruno@clisp.org>
34623
34624         * lib/freading.h: Improve comments.
34625         * lib/fwriting.h: Likewise.
34626         * tests/test-freading.c (main): Don't check freading immediately after
34627         repositioning. Needed for glibc.
34628
34629 2007-04-29  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/freading.c (freading): Trivial simplification.
34632
34633 2007-04-28  Bruno Haible  <bruno@clisp.org>
34634
34635         * tests/test-fwriting.c (main): Also test the interaction between
34636         fflush and fwriting.
34637         * modules/fwriting-tests (Depends-on): Add fflush.
34638
34639         * tests/test-freading.c (main): Also test the interaction between
34640         fflush and freading.
34641         * modules/freading-tests (Depends-on): Add fflush.
34642
34643 2007-04-28  Bruno Haible  <bruno@clisp.org>
34644
34645         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34646         fseeko and ftello.
34647         Suggested by Eric Blake.
34648
34649 2007-04-28  Jim Meyering  <jim@meyering.net>
34650
34651         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34652         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34653         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34654
34655 2007-04-27  Eric Blake  <ebb9@byu.net>
34656
34657         * doc/headers/assert.texi (assert.h): Document assert module use.
34658
34659 2007-04-27  Bruno Haible  <bruno@clisp.org>
34660
34661         * doc/headers/*.texi: New files.
34662         * doc/gnulib.texi (Header File Substitutes): New chapter.
34663         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34664         dependencies.
34665         (standards.info ,standards.html, standards.dvi): Update dependencies.
34666         (mostlyclean, clean): New targets.
34667
34668 2007-04-27  Bruno Haible  <bruno@clisp.org>
34669
34670         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34671         * modules/sysexits (Files, Makefile.am): Update.
34672
34673         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34674         * modules/sys_socket (Files, Makefile.am): Update.
34675
34676         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34677         * modules/sys_stat (Files, Makefile.am): Update.
34678
34679 2007-04-27  Eric Blake  <ebb9@byu.net>
34680
34681         * lib/freading.h: Improve comments.
34682         * lib/fwriting.h: Likewise.
34683         * lib/fflush.c: Likewise.
34684
34685         Fix closein for mingw.
34686         * modules/closein-tests: Add tests for closein.
34687         * tests/test-closein.c: New file.
34688         * tests/test-closein.sh: Likewise.
34689         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34690         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34691
34692 2007-04-27  Bruno Haible  <bruno@clisp.org>
34693
34694         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34695         version is < 6.
34696         * lib/math_.h [__DECC]: Likewise.
34697         * lib/stdio_.h [__DECC]: Likewise.
34698         * lib/stdlib_.h [__DECC]: Likewise.
34699         * lib/string_.h [__DECC]: Likewise.
34700         * lib/time_.h [__DECC]: Likewise.
34701         * lib/wchar_.h [__DECC]: Likewise.
34702         * lib/wctype_.h [__DECC]: Likewise.
34703
34704 2007-04-27  Bruno Haible  <bruno@clisp.org>
34705
34706         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34707
34708 2007-04-27  Bruno Haible  <bruno@clisp.org>
34709
34710         * lib/fflush.c: Add comments.
34711         * modules/fpurge-tests (Depends-on): Add fflush.
34712         * modules/freadable-tests (Depends-on): Likewise.
34713         * modules/fwritable-tests (Depends-on): Likewise.
34714
34715 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34716
34717         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34718         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34719         Report by Bruno Haible <bruno@clisp.org>.
34720
34721 2007-04-26  Eric Blake  <ebb9@byu.net>
34722
34723         Fix fflush on mingw.
34724         * modules/fflush (Depends-on): Add freading.
34725         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34726         but unread data.
34727
34728 2007-04-26  Eric Blake  <ebb9@byu.net>
34729         and Bruno Haible  <bruno@clisp.org>
34730
34731         Implement freading and fwriting.
34732         * lib/freading.c: New file.
34733         * lib/freading.h: Likewise.
34734         * m4/freading.m4: Likewise.
34735         * modules/freading: Likewise.
34736         * modules/freading-tests: Likewise.
34737         * tests/test-freading.c: Likewise.
34738         * lib/fwriting.c: New file.
34739         * lib/fwriting.h: Likewise.
34740         * m4/fwriting.m4: Likewise.
34741         * modules/fwriting: Likewise.
34742         * modules/fwriting-tests: Likewise.
34743         * tests/test-fwriting.c: Likewise.
34744         * MODULES.html.sh (File stream based Input/Output): Mention them.
34745
34746 2007-04-26  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34749         'long' when we assume it.
34750         Suggested by Eric Blake.
34751
34752 2007-04-26  Bruno Haible  <bruno@clisp.org>
34753
34754         Ensure fseeko, ftello are declared on glibc systems.
34755         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34756         * modules/fseeko (configure.ac-early): Likewise.
34757         * modules/ftello (configure.ac-early): Likewise.
34758         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34759         AC_FUNC_FSEEKO for this.
34760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34761         (gl_CHECK_FSEEKO): Remove macro.
34762
34763 2007-04-26  Bruno Haible  <bruno@clisp.org>
34764
34765         * tests/test-fflush.c (main): Also check the ftell result after
34766         fflush and fseek/fseeko.
34767         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34768         file descriptor position cache in the stream.
34769         * lib/fseeko.c (rpl_fseeko): Likewise.
34770
34771 2007-04-26  Bruno Haible  <bruno@clisp.org>
34772
34773         * modules/fflush-tests (Depends-on): Add fseeko.
34774
34775 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34776             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34777
34778         * lib/argz_.h: ensure error_t definition is obtained in same
34779         mechanism system argz.h would have.
34780         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34781         argz facilities are known bad.  Err on the side of caution if
34782         cross-compiling.
34783
34784 2007-04-25  Eric Blake  <ebb9@byu.net>
34785
34786         * lib/fpurge.c (includes): Use stdlib.h for free.
34787         * tests/test-fflush.c (main): Also test fflush-fseeko.
34788
34789 2007-04-25  Bruno Haible  <bruno@clisp.org>
34790
34791         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34792         * lib/fseeko.c: New file.
34793         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34794         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34795         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34796         gl_FUNC_FSEEKO.
34797         (gl_FUNC_FSEEKO): Invoke it.
34798         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34799         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34800         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34801
34802 2007-04-25  Bruno Haible  <bruno@clisp.org>
34803
34804         * modules/fflush (Depends-on): Add ftello.
34805
34806 2007-04-25  Bruno Haible  <bruno@clisp.org>
34807
34808         * modules/ftello-tests: New file.
34809         * tests/test-ftello.c: New file.
34810
34811         * modules/ftello: New file.
34812         * m4/ftello.m4: New file.
34813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34814         HAVE_FTELLO.
34815         * lib/stdio_.h (ftello): New declaration.
34816         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34817         HAVE_FTELLO.
34818
34819 2007-04-25  Bruno Haible  <bruno@clisp.org>
34820
34821         * modules/fseeko-tests: New file.
34822         * tests/test-fseeko.c: New file.
34823
34824         * modules/fseeko: New file.
34825         * m4/fseeko.m4: New file.
34826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34827         HAVE_FSEEKO.
34828         * lib/stdio_.h (fseeko): New declaration.
34829         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34830         HAVE_FSEEKO.
34831
34832 2007-04-25  Bruno Haible  <bruno@clisp.org>
34833
34834         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34835
34836 2007-04-25  Bruno Haible  <bruno@clisp.org>
34837
34838         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34839         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34840         * tests/test-unistd.c: Likewise.
34841         * tests/test-fcntl.c: Likewise.
34842
34843 2007-04-23  Eric Blake  <ebb9@byu.net>
34844
34845         * lib/fflush.c: Fix missing include.
34846         Reported by Bruno Haible.
34847
34848 2007-04-23  Bruno Haible  <bruno@clisp.org>
34849
34850         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34851         Reported by Eric Blake.
34852
34853 2007-04-23  Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34856
34857 2007-04-23  Bruno Haible  <bruno@clisp.org>
34858
34859         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34860
34861 2007-04-23  Bruno Haible  <bruno@clisp.org>
34862
34863         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34864         Needed on HP-UX 11.
34865
34866 2007-04-16  Eric Blake  <ebb9@byu.net>
34867
34868         Make fflush rely on fpurge.
34869         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34870         open coding all variants.
34871         * modules/fflush (Depends-on): Add fpurge and unistd.
34872         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34873         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34874
34875         Fix --with-tests compilation on cygwin.
34876         * modules/argmatch-tests (Makefile.am): List gnulib library first
34877         in LDADD.
34878         * modules/argp-tests (Makefile.am): Likewise.
34879         * modules/array-list-tests (Makefile.am): Likewise.
34880         * modules/array-oset-tests (Makefile.am): Likewise.
34881         * modules/avltree-list-tests (Makefile.am): Likewise.
34882         * modules/avltree-oset-tests (Makefile.am): Likewise.
34883         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34884         * modules/carray-list-tests (Makefile.am): Likewise.
34885         * modules/dirname-tests (Makefile.am): Likewise.
34886         * modules/frexp-tests (Makefile.am): Likewise.
34887         * modules/isnanl-tests (Makefile.am): Likewise.
34888         * modules/linked-list-tests (Makefile.am): Likewise.
34889         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34890         * modules/lock-tests (Makefile.am): Likewise.
34891         * modules/rbtree-list-tests (Makefile.am): Likewise.
34892         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34893         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34894         * modules/tls-tests (Makefile.am): Likewise.
34895         * modules/tsearch-tests (Makefile.am): Likewise.
34896         * modules/xvasprintf-tests (Makefile.am): Likewise.
34897
34898         Fix fpurge for cygwin.
34899         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34900         value.
34901         * modules/fpurge-tests (Depends-on): Clean up trash.
34902
34903 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34904
34905         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34906
34907         * m4/autobuild.m4: Re-indent.
34908
34909 2007-04-13  Bruno Haible  <bruno@clisp.org>
34910
34911         * modules/fpurge-tests: New file.
34912         * tests/test-fpurge.c: New file.
34913
34914         * modules/fpurge: New file.
34915         * lib/fpurge.h: New file.
34916         * lib/fpurge.c: New file.
34917         * m4/fpurge.m4: New file.
34918
34919 2007-04-13  Bruno Haible  <bruno@clisp.org>
34920
34921         * modules/fbufmode-tests: New file.
34922         * tests/test-fbufmode.c: New file.
34923
34924         * modules/fbufmode: New file.
34925         * lib/fbufmode.h: New file.
34926         * lib/fbufmode.c: New file.
34927         * m4/fbufmode.m4: New file.
34928
34929 2007-04-13  Bruno Haible  <bruno@clisp.org>
34930
34931         * modules/fwritable-tests: New file.
34932         * tests/test-fwritable.c: New file.
34933
34934         * modules/fwritable: New file.
34935         * lib/fwritable.h: New file.
34936         * lib/fwritable.c: New file.
34937         * m4/fwritable.m4: New file.
34938
34939 2007-04-13  Bruno Haible  <bruno@clisp.org>
34940
34941         * modules/freadable-tests: New file.
34942         * tests/test-freadable.c: New file.
34943
34944         * modules/freadable: New file.
34945         * lib/freadable.h: New file.
34946         * lib/freadable.c: New file.
34947         * m4/freadable.m4: New file.
34948
34949 2007-04-13  Bruno Haible  <bruno@clisp.org>
34950
34951         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34952         MOSTLYCLEANFILES.
34953
34954 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34955
34956         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34957         gzip bootstrap.conf to avoid dragging in i18n machinery.
34958         (gnulib_tool_option): Use it.
34959
34960 2007-04-13  Bruno Haible  <bruno@clisp.org>
34961
34962         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34963         %F directives.
34964         * tests/test-vasprintf-posix.c (test_function): Likewise.
34965         * tests/test-snprintf-posix.h (test_function): Likewise.
34966         * tests/test-sprintf-posix.h (test_function): Likewise.
34967         * tests/test-fprintf-posix.h (test_function): Likewise.
34968         * tests/test-printf-posix.h (test_function): Likewise.
34969         * tests/test-fprintf-posix.out: Likewise.
34970
34971 2007-04-13  Bruno Haible  <bruno@clisp.org>
34972
34973         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34974         * modules/tls-tests (configure.ac): Likewise.
34975         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34976
34977 2007-04-13  Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/tls.c (glthread_tls_get): Fix return type.
34980         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34981
34982 2007-04-12  Eric Blake  <ebb9@byu.net>
34983
34984         * modules/gettime (Depends-on): Remove gettime.
34985         Reported by Dmitry V. Levin.
34986
34987 2007-04-12  Bruno Haible  <bruno@clisp.org>
34988
34989         * modules/fflush (Include): Mention <stdio.h>.
34990         * modules/strtoimax (Include): Mention <inttypes.h>.
34991         * modules/strtoumax (Include): Likewise.
34992
34993 2007-04-12  Eric Blake  <ebb9@byu.net>
34994
34995         * .cvsignore: New file.
34996         * .gitignore: Likewise.
34997
34998 2007-04-12  Bruno Haible  <bruno@clisp.org>
34999
35000         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35001         not before, since $(LDADD) often contains libgnu.a.
35002         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35003         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35004         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35005         Needed on Cygwin.
35006
35007 2007-04-12  Eric Blake  <ebb9@byu.net>
35008
35009         Work around glibc's failure to flush stdin on fclose.
35010         * lib/closein.c (close_stdin): Flush stdin before closing.
35011
35012         Work around glibc's failure to reset seekable stdin on exit.
35013         * modules/closein: New module.
35014         * lib/closein.c: New file.
35015         * lib/closein.h: Likewise.
35016         * m4/closein.m4: Likewise.
35017         * MODULES.html.sh (File stream based Input/Output): Document it.
35018
35019 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35020
35021         * gnulib-tool: Rename generated 'autobuild' script to
35022         'do-autobuild' in --create-megatestdir output.
35023
35024         * doc/gnulib.texi (Build robot for gnulib): Fix.
35025
35026 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35027
35028         * modules/sysexits (Depends-on): Add absolute-header.
35029
35030 2007-04-12  Eric Blake  <ebb9@byu.net>
35031
35032         No need to preserve errno on success.
35033         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35034         Reported by Bruno Haible.
35035
35036 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35037
35038         * MODULES.html.sh (Support for maintaining and releasing
35039         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35040
35041 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35042
35043         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35044
35045 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35046
35047         * modules/autobuild: New module.
35048
35049         * m4/autobuild.m4: New file.
35050
35051 2007-04-11  Bruno Haible  <bruno@clisp.org>
35052
35053         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35054         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35078         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35079         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35080         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35081         Reported by Eric Blake.
35082
35083 2007-04-11  Bruno Haible  <bruno@clisp.org>
35084
35085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35086
35087 2007-04-10  Bruno Haible  <bruno@clisp.org>
35088
35089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35090         for NaN and Infinity. Needed on FreeBSD 6.1.
35091         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35092         regarding results for "%010a" of Infinity and NaN.
35093         * tests/test-vasprintf-posix.c (test_function): Likewise.
35094         * tests/test-snprintf-posix.h (test_function): Likewise.
35095         * tests/test-sprintf-posix.h (test_function): Likewise.
35096         * tests/test-fprintf-posix.h (test_function): Likewise.
35097         * tests/test-printf-posix.h (test_function): Likewise.
35098         * tests/test-fprintf-posix.out: Likewise.
35099
35100 2007-04-10  Bruno Haible  <bruno@clisp.org>
35101
35102         * modules/locale-tests: New file.
35103         * tests/test-locale.c: New file.
35104
35105         * modules/locale: New file.
35106         * lib/locale_.h: New file.
35107         * m4/locale_h.m4: New file.
35108
35109 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35110             Bruno Haible  <bruno@clisp.org>
35111
35112         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35113         be determined, test for availability of the copysignf, copysign,
35114         copysignl functions.
35115         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35116         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35117         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35118
35119 2007-04-09  Eric Blake  <ebb9@byu.net>
35120
35121         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35122         * modules/stdio (Makefile.am): Support fflush.
35123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35124         * modules/fflush: New file.
35125         * lib/fflush.c: Likewise.
35126         * m4/fflush.m4: Likewise.
35127         * modules/fflush-tests: New test.
35128         * tests/test-fflush.c: Likewise.
35129         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35130
35131 2007-04-06  Bruno Haible  <bruno@clisp.org>
35132
35133         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35134         (VASNPRINTF): Use signbit for faster determination whether to print a
35135         minus sign.
35136         * modules/vasnprintf (Files): Remove lib/float+.h.
35137         * modules/fprintf-posix (Depends-on): Add signbit.
35138         * modules/snprintf-posix (Depends-on): Likewise.
35139         * modules/sprintf-posix (Depends-on): Likewise.
35140         * modules/vasnprintf-posix (Depends-on): Likewise.
35141         * modules/vasprintf-posix (Depends-on): Likewise.
35142         * modules/vfprintf-posix (Depends-on): Likewise.
35143         * modules/vsnprintf-posix (Depends-on): Likewise.
35144         * modules/vsprintf-posix (Depends-on): Likewise.
35145
35146 2007-04-06  Bruno Haible  <bruno@clisp.org>
35147
35148         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35149         * tests/test-frexpl.c (main): Likewise.
35150         * tests/test-ldexpl.c (main): Likewise.
35151         * modules/frexp-tests (Depends-on): Add signbit.
35152         * modules/frexpl-tests (Depdends-on): Likewise.
35153         * modules/ldexpl-tests (Depdends-on): Likewise.
35154
35155 2007-04-06  Bruno Haible  <bruno@clisp.org>
35156
35157         * modules/signbit-tests: New file.
35158         * tests/test-signbit.c: New file.
35159
35160         * modules/signbit: New file.
35161         * lib/signbitf.c: New file.
35162         * lib/signbitd.c: New file.
35163         * lib/signbitl.c: New file.
35164         * m4/signbit.m4: New file.
35165         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35166         (signbit): New macro.
35167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35168         REPLACE_SIGNBIT.
35169         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35170         REPLACE_FREXPL into math.h.
35171
35172 2007-04-06  Bruno Haible  <bruno@clisp.org>
35173
35174         * modules/isnanf-nolibm-tests: New file.
35175         * tests/test-isnanf.c: New file.
35176
35177         * modules/isnanf-nolibm: New file.
35178         * lib/isnanf.h: New file.
35179         * lib/isnanf.c: New file.
35180         * lib/isnan.c: Consider the USE_FLOAT macro.
35181         * m4/isnanf.m4: New file.
35182
35183 2007-04-06  Bruno Haible  <bruno@clisp.org>
35184
35185         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35186         (Link): New section.
35187
35188         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35189
35190 2007-04-06  Bruno Haible  <bruno@clisp.org>
35191
35192         Assume the 'long double' type.
35193         * m4/longdouble.m4: Remove file.
35194         * config/srclist.txt: Don't mention longdouble.m4.
35195         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35196         * lib/float+.h: Likewise.
35197         * lib/frexp.c: Likewise.
35198         * lib/printf-args.h: Likewise.
35199         * lib/printf-args.c: Likewise.
35200         * lib/printf-frexp.c: Likewise.
35201         * lib/printf-parse.c: Likewise.
35202         * lib/vasnprintf.c: Likewise.
35203         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35204         * m4/intl.m4: Likewise.
35205         * m4/isnanl.m4: Likewise.
35206         * m4/printf.m4: Likewise.
35207         * m4/printf-frexpl.m4: Likewise.
35208         * m4/vasnprintf.m4: Likewise.
35209         * modules/allocsa (Files): Remove m4/longdouble.m4.
35210         * modules/gettext (Files): Likewise.
35211         * modules/relocatable-prog-wrapper (Files): Likewise.
35212         * modules/vasnprintf (Files): Likewise.
35213         * modules/isnanl (Files): Likewise.
35214         (Include): Simplify.
35215         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35216         (Include): Simplify.
35217         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35218         (Include): Simplify.
35219         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35221         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35222         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35223         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35224         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35225         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35226         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35227         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35228         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35229         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35230         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35231         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35232         * tests/test-isnanl.c: Likewise.
35233         * tests/test-snprintf-posix.h: Likewise.
35234         * tests/test-sprintf-posix.h: Likewise.
35235         * tests/test-vasnprintf-posix.c: Likewise.
35236         * tests/test-vasnprintf-posix2.c: Likewise.
35237         * tests/test-vasprintf-posix.c: Likewise.
35238
35239 2007-04-06  Bruno Haible  <bruno@clisp.org>
35240
35241         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35242         * lib/math_.h [__DECC]: Include the overridden include file through
35243         #include_next, outside the double-inclusion guard.
35244         * lib/stdio_.h [__DECC]: Likewise.
35245         * lib/stdlib_.h [__DECC]: Likewise.
35246         * lib/string_.h [__DECC]: Likewise.
35247         * lib/time_.h [__DECC]: Likewise.
35248         * lib/wchar_.h [__DECC]: Likewise.
35249         * lib/wctype_.h [__DECC]: Likewise.
35250         * lib/inttypes_.h [__DECC]: Likewise.
35251         Reported by Albert Chin <china@thewrittenword.com> in
35252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35253
35254 2007-04-04  Eric Blake  <ebb9@byu.net>
35255
35256         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35257         1.5.x.
35258
35259 2007-04-04  Bruno Haible  <bruno@clisp.org>
35260
35261         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35262         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35263
35264 2007-04-04  Bruno Haible  <bruno@clisp.org>
35265
35266         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35267         results for "%010a" of Infinity and NaN.
35268         * tests/test-vasprintf-posix.c (test_function): Likewise.
35269         * tests/test-snprintf-posix.h (test_function): Likewise.
35270         * tests/test-sprintf-posix.h (test_function): Likewise.
35271         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35272         * tests/test-printf-posix.h (test_function): Likewise.
35273         * tests/test-fprintf-posix.out: Update.
35274         Needed for FreeBSD 6.1.
35275
35276 2007-04-04  Bruno Haible  <bruno@clisp.org>
35277
35278         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35279         directly used by the gnulib modules nor by gnulib-tool.
35280
35281 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35282
35283         * DEPENDENCIES: Give overall description of version dependency
35284         desirability.  Use more-typical names for apps.
35285         Add shell, coreutils, diffutils, grep, tar, gzip.
35286
35287 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35288
35289         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35290
35291 2007-04-04  Karl Berry  <karl@gnu.org>
35292
35293         * MODULES.html.sh (func_module): missing '.
35294
35295 2007-04-03  Bruno Haible  <bruno@clisp.org>
35296
35297         * modules/argmatch-tests (Makefile.am): New variable
35298         test_argmatch_LDADD.
35299         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35300         * modules/array-list-tests (Makefile.am): New variable
35301         test_array_list_LDADD.
35302         * modules/array-oset-tests (Makefile.am): New variable
35303         test_array_oset_LDADD.
35304         * modules/avltree-list-tests (Makefile.am): New variable
35305         test_avltree_list_LDADD.
35306         * modules/avltree-oset-tests (Makefile.am): New variable
35307         test_avltree_oset_LDADD.
35308         * modules/avltreehash-list-tests (Makefile.am): New variable
35309         test_avltreehash_list_LDADD.
35310         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35311         test_canonicalize_lgpl_LDADD.
35312         * modules/carray-list-tests (Makefile.am): New variable
35313         test_carray_list_LDADD.
35314         * modules/dirname-tests (Makefile.am): New variable
35315         test_dirname_LDADD.
35316         * modules/linked-list-tests (Makefile.am): New variable
35317         test_linked_list_LDADD.
35318         * modules/linkedhash-list-tests (Makefile.am): New variable
35319         test_linkedhash_list_LDADD.
35320         * modules/rbtree-list-tests (Makefile.am): New variable
35321         test_rbtree_list_LDADD.
35322         * modules/rbtree-oset-tests (Makefile.am): New variable
35323         test_rbtree_oset_LDADD.
35324         * modules/rbtreehash-list-tests (Makefile.am): New variable
35325         test_rbtreehash_list_LDADD.
35326         * modules/xvasprintf-tests (Makefile.am): New variable
35327         test_xvasprintf_LDADD.
35328         Reported by Eric Blake.
35329
35330 2007-04-03  Eric Blake  <ebb9@byu.net>
35331
35332         * DEPENDENCIES: Weaken m4 requirements.
35333
35334 2007-04-03  Bruno Haible  <bruno@clisp.org>
35335
35336         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35337         * modules/isnanl-tests (configure.ac): Likewise.
35338
35339 2007-04-03  Ben Pfaff  <blp@gnu.org>
35340
35341         * modules/iconv_open: Add $(srcdir)/ to source directory
35342         references in Makefile fragments that call gperf, to fix VPATH
35343         builds.
35344
35345 2007-04-03  Bruno Haible  <bruno@clisp.org>
35346
35347         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35348         * lib/ldexpl.c: Undo last change.
35349
35350 2007-04-03  Bruno Haible  <bruno@clisp.org>
35351
35352         * modules/printf-frexpl (Depends-on): Undo last change.
35353         (Files): Add m4/ldexpl.m4.
35354
35355 2007-04-03  Bruno Haible  <bruno@clisp.org>
35356
35357         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35358         * modules/isnanl (Link): New section.
35359
35360         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35361         * modules/frexp (Link): New section.
35362
35363         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35364         * modules/frexpl (Link): New section.
35365
35366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35367         * modules/ldexpl (Link): New section.
35368
35369 2007-04-03  Bruno Haible  <bruno@clisp.org>
35370
35371         * modules/TEMPLATE-EXTENDED: New file.
35372         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35373
35374 2007-04-03  Bruno Haible  <bruno@clisp.org>
35375
35376         * DEPENDENCIES: New file.
35377         Suggested by Simon Josefsson.
35378
35379 2007-04-03  Bruno Haible  <bruno@clisp.org>
35380
35381         * doc/gnulib.texi: Escape @.
35382
35383 2007-04-03  James Youngman  <jay@gnu.org>
35384         and Paul Eggert  <eggert@cs.ucla.edu>
35385
35386         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35387         birthtime on all systems that have birthtime, not just those which
35388         use st_birthtimensec rather than st_birthtim.  Putting zero in
35389         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35390         that the birth time is not available for files on an NFS mount.
35391
35392 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35393
35394         * modules/memxor: Move back from crypto/, suggested by Bruno.
35395         * modules/crypto/hmac-sha1: Fix memxor dependency.
35396
35397         * modules/crypto/gc: Moved from ../.
35398
35399 2007-04-02  Eric Blake  <ebb9@byu.net>
35400
35401         * lib/ldexpl.c (includes): Avoid libm.
35402
35403         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35404
35405 2007-04-02  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35408         on IRIX.
35409
35410 2007-04-02  Bruno Haible  <bruno@clisp.org>
35411
35412         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35413         x86 or x86_64 platforms running MacOS X.
35414         Reported by Ryan Schmidt <@ryandesign.com>.
35415
35416 2007-04-02  Bruno Haible  <bruno@clisp.org>
35417
35418         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35419         i386.
35420
35421 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35422
35423         * modules/crypto/arcfour: Moved from ../.
35424         * modules/crypto/arcfour-tests: Moved from ../.
35425         * modules/crypto/arctwo: Moved from ../.
35426         * modules/crypto/arctwo-tests: Moved from ../.
35427         * modules/crypto/des: Moved from ../.
35428         * modules/crypto/des-tests: Moved from ../.
35429         * modules/crypto/gc-arcfour: Moved from ../.
35430         * modules/crypto/gc-arcfour-tests: Moved from ../.
35431         * modules/crypto/gc-arctwo: Moved from ../.
35432         * modules/crypto/gc-arctwo-tests: Moved from ../.
35433         * modules/crypto/gc-des: Moved from ../.
35434         * modules/crypto/gc-des-tests: Moved from ../.
35435         * modules/crypto/gc-hmac-md5: Moved from ../.
35436         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35437         * modules/crypto/gc-hmac-sha1: Moved from ../.
35438         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35439         * modules/crypto/gc-md2: Moved from ../.
35440         * modules/crypto/gc-md2-tests: Moved from ../.
35441         * modules/crypto/gc-md4: Moved from ../.
35442         * modules/crypto/gc-md4-tests: Moved from ../.
35443         * modules/crypto/gc-md5: Moved from ../.
35444         * modules/crypto/gc-md5-tests: Moved from ../.
35445         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35446         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35447         * modules/crypto/gc-random: Moved from ../.
35448         * modules/crypto/gc-rijndael: Moved from ../.
35449         * modules/crypto/gc-rijndael-tests: Moved from ../.
35450         * modules/crypto/gc-sha1: Moved from ../.
35451         * modules/crypto/gc-sha1-tests: Moved from ../.
35452         * modules/crypto/gc-tests: Moved from ../.
35453         * modules/crypto/hmac-md5: Moved from ../.
35454         * modules/crypto/hmac-md5-tests: Moved from ../.
35455         * modules/crypto/hmac-sha1: Moved from ../.
35456         * modules/crypto/hmac-sha1-tests: Moved from ../.
35457         * modules/crypto/md2: Moved from ../.
35458         * modules/crypto/md2-tests: Moved from ../.
35459         * modules/crypto/md4: Moved from ../.
35460         * modules/crypto/md4-tests: Moved from ../.
35461         * modules/crypto/md5: Moved from ../.
35462         * modules/crypto/md5-tests: Moved from ../.
35463         * modules/crypto/memxor: Moved from ../.
35464         * modules/crypto/rijndael: Moved from ../.
35465         * modules/crypto/rijndael-tests: Moved from ../.
35466         * modules/crypto/sha1: Moved from ../.
35467
35468 2007-03-30  James Youngman  <jay@gnu.org>
35469
35470         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35471         rename() to change the ctime of a file (because ctime is unaffected
35472         by rename on jfs2 on AIX 5.1).
35473         (main): Start by doing cleanup, in case a previous run failed leaving
35474         test files behind.
35475
35476 2007-03-31  Bruno Haible  <bruno@clisp.org>
35477
35478         Support old proprietary implementations of iconv.
35479         * modules/iconv_open: New file.
35480         * lib/iconv_.h: New file.
35481         * m4/iconv_h.m4: New file.
35482         * lib/iconv_open.c: New file.
35483         * lib/iconv_open-aix.gperf: New file.
35484         * lib/iconv_open-hpux.gperf: New file.
35485         * lib/iconv_open-irix.gperf: New file.
35486         * lib/iconv_open-osf.gperf: New file.
35487         * m4/iconv_open.m4: New file.
35488         * modules/linebreak (Depends-on): Add iconv_open.
35489         * modules/striconv (Depends-on): Likewise.
35490         * modules/striconveh (Depends-on): Likewise.
35491         * modules/unicodeio (Depends-on): Likewise.
35492         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35493         (iconv_t)(-1).
35494         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35495         conversion if cd is (iconv_t)(-1).
35496         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35497         is not possible.
35498
35499 2007-03-31  Bruno Haible  <bruno@clisp.org>
35500
35501         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35502         work on Solaris either. Protect also second use of "autodetect_jp".
35503
35504 2007-03-31  Bruno Haible  <bruno@clisp.org>
35505
35506         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35507         the function is not present.
35508
35509 2007-03-31  Bruno Haible  <bruno@clisp.org>
35510
35511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35512         the function is not present.
35513
35514 2007-03-31  Bruno Haible  <bruno@clisp.org>
35515
35516         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35517         a bug in HP-UX iconv_open().
35518
35519 2007-03-31  Bruno Haible  <bruno@clisp.org>
35520
35521         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35522         (Mathematics <math.h>): New section, add fpieee.
35523         (Input/output <stdio.h>): Add fseterr.
35524         (Mathematics <math.h>): New section, add printf-frexp.
35525         (Container data structures): Add sublist.
35526         (Core language properties): Add fpucw, inline.
35527         (Functions for greatest-width integer types <inttypes.h>): Add
35528         imaxabs, imaxdiv, inttypes.
35529         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35530         isnanl-nolibm, ldexp.
35531         (Mathematics <math.h>): New section, add printf-frexpl.
35532         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35533         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35534         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35535         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35536         (Unicode string functions): Add unistr/u*-mbtoucr.
35537         (Java): Add javacomp-script, javaexec-script.
35538         (C#): Add csharpcomp-script, csharpexec-script.
35539         (Support for building libraries and executables): Add havelib,
35540         relocatable-*.
35541         (Support for maintaining and releasing projects): Renamed from
35542         'Support for maintaining and release projects'. Add announce-gen.
35543
35544 2007-03-31  Bruno Haible  <bruno@clisp.org>
35545
35546         * README: Talk primarily about git.
35547         (git and CVS): Renamed from CVS.
35548         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35549         gnulib is available through git.
35550         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35551
35552 2007-03-30  Bruno Haible  <bruno@clisp.org>
35553
35554         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35555         * lib/poll_.h: Likewise.
35556         * lib/stat_.h: Likewise.
35557         * lib/sys_time_.h: Likewise.
35558         * lib/sysexit_.h: Likewise.
35559         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35560         * lib/stdbool_.h: Likewise.
35561         * lib/byteswap_.h: Add double-inclusion guard.
35562
35563 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35564
35565         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35566
35567 2007-03-30  Karl Berry  <karl@gnu.org>
35568
35569         * config/srclist-update: double space after USA in the license
35570         substitution, since that's how it's usually (?) written.
35571
35572 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35573
35574         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35575         reported by Bruno Haible.
35576
35577 2007-03-29  Bruno Haible  <bruno@clisp.org>
35578
35579         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35580         a bug in AIX iconv().
35581
35582 2007-03-29  Bruno Haible  <bruno@clisp.org>
35583
35584         * modules/ldexpl-tests: New file.
35585         * tests/test-ldexpl.c: New file.
35586
35587 2007-03-29  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/ldexpl.c: Include fpucw.h.
35590         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35591         multiplication.
35592         * modules/ldexpl (Depends-on): Add fpucw.
35593
35594 2007-03-29  Bruno Haible  <bruno@clisp.org>
35595
35596         * modules/ldexpl: New file.
35597         * m4/ldexpl.m4: New file.
35598         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35599         set.
35600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35601         REPLACE_LDEXPL.
35602         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35603         REPLACE_LDEXPL.
35604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35605         gl_FUNC_LDEXPL_WORKS.
35606         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35607         * modules/mathl (Files): Remove lib/ldexpl.c.
35608         (Depends-on): Add ldexpl.
35609
35610 2007-03-29  Bruno Haible  <bruno@clisp.org>
35611
35612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35613
35614 2007-03-29  Bruno Haible  <bruno@clisp.org>
35615
35616         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35617         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35618         and possibly also HP-UX.
35619         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35620         work on AIX, IRIX, HP-UX, OSF/1.
35621         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35622         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35623         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35624         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35625         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35626         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35627
35628 2007-03-29  Bruno Haible  <bruno@clisp.org>
35629
35630         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35631
35632 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35633
35634         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35635         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35636
35637 2007-03-29  Eric Blake  <ebb9@byu.net>
35638
35639         * lib/acl-internal.h: Remove redundant include.
35640         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35641         Cygwin when a file is locked.
35642
35643 2007-03-29  Bruno Haible  <bruno@clisp.org>
35644
35645         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35646         file.
35647         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35648
35649 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35650
35651         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35652         try to remove a parent directory if the child couldn't be removed
35653         (except for the first rmdir, which could fail because the child
35654         doesn't exist).  Problem reported by Jeff Blaine in
35655         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35656
35657 2007-03-28  Bruno Haible  <bruno@clisp.org>
35658
35659         * lib/striconveh.c (utf8conv_carefully): New function.
35660         (mem_cd_iconveh_internal): Invoke it.
35661
35662 2007-03-28  Bruno Haible  <bruno@clisp.org>
35663
35664         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35665         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35666         input.
35667         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35668         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35669         unistr/u8-uctomb.
35670
35671 2007-03-28  Bruno Haible  <bruno@clisp.org>
35672
35673         * modules/unistr/u8-mbtoucr: New file.
35674         * lib/unistr/u8-mbtoucr.c: New file.
35675         * modules/unistr/u16-mbtoucr: New file.
35676         * lib/unistr/u16-mbtoucr.c: New file.
35677         * modules/unistr/u16-mbtoucr: New file.
35678         * lib/unistr/u16-mbtoucr.c: New file.
35679         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35680
35681 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35682             Bruno Haible  <bruno@clisp.org>
35683
35684         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35685         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35686         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35687
35688         * m4/stdio_h.m4: Add stubs for vasprintf too.
35689
35690         * modules/stdio: Support vasprintf in sed command.
35691
35692         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35693         vasprintf.h.  Add stdio module indicator.
35694
35695         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35696         vasprintf.h.
35697
35698         * lib/vasprintf.h: File removed.
35699
35700         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35701         * lib/vasprintf.c: Ditto.
35702         * lib/xvasprintf.c: Ditto.
35703         * tests/test-vasprintf-posix.c: Ditto.
35704         * tests/test-vasprintf.c: Ditto.
35705
35706 2007-03-27  Bruno Haible  <bruno@clisp.org>
35707
35708         Make vasnprintf multithread-safe.
35709         * lib/vasnprintf.c (decimal_point_char): New function.
35710         (VASNPRINTF): Use it.
35711         Suggested by Simon Josefsson.
35712
35713 2007-03-27  Eric Blake  <ebb9@byu.net>
35714
35715         Support sub-second birthtime on cygwin.
35716         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35717         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35718         (get_stat_birthtime): Also work with st_birthtim.
35719
35720 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35721
35722         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35723         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35724         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35725         (get_stat_birthtime_ns): Simplify compile-time tests.
35726         (get_stat_birthtime): Change the API to look like
35727         get_stat_mtime etc., except return a negative tv_nsec on error.
35728         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35729         Don't check for "spare" fields.
35730         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35731         or for struct stat.st_birthtime, as these tests aren't used.
35732         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35733
35734 2007-03-27  Bruno Haible  <bruno@clisp.org>
35735
35736         * lib/stat-time.h: Include <sys/stat.h>.
35737
35738 2007-03-27  James Youngman  <jay@gnu.org>
35739
35740         * lib/stat-time.h (get_stat_birthtime): New function for
35741           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35742         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35743           and its variants.
35744         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35745         * modules/stat-time-test: New file.
35746         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35747
35748 2007-03-26  Bruno Haible  <bruno@clisp.org>
35749
35750         Better support of signalling NaNs.
35751         * lib/atanl.c: Include isnanl.h.
35752         (atanl): Perform test for NaN at the beginning of the function and
35753         through a call to isnanl.
35754         * lib/cosl.c: Include isnanl.h.
35755         (cosl): Perform test for NaN at the beginning of the function and
35756         through a call to isnanl.
35757         * lib/ldexpl.c: Include isnanl.h.
35758         (ldexpl): Perform test for NaN through a call to isnanl.
35759         * lib/logl.c: Include isnanl.h.
35760         (logl): Perform test for NaN at the beginning of the function and
35761         through a call to isnanl.
35762         * lib/sinl.c: Include isnanl.h.
35763         (sinl): Perform test for NaN at the beginning of the function and
35764         through a call to isnanl.
35765         * lib/sqrtl.c: Include isnanl.h.
35766         (sqrtl): Perform test for NaN at the beginning of the function and
35767         through a call to isnanl.
35768         * lib/tanl.c: Include isnanl.h.
35769         (tanl): Perform test for NaN at the beginning of the function and
35770         through a call to isnanl.
35771         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35772         * modules/mathl (Depends-on): Add isnanl.
35773
35774 2007-03-26  Eric Blake  <ebb9@byu.net>
35775
35776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35777         regression in logic sense of previous patch.
35778
35779 2007-03-26  Bruno Haible  <bruno@clisp.org>
35780
35781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35782         unportable shell command "if ! ...".
35783         Reported by Ralf Wildenhues.
35784
35785 2007-03-25  Bruno Haible  <bruno@clisp.org>
35786
35787         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35788         <sysexits.h> file, and only add EX_CONFIG.
35789         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35790         absolute file name and whether it is sufficient. Substitute also
35791         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35792         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35793         ABSOLUTE_SYSEXITS_H into sysexits.h.
35794
35795 2007-03-25  Bruno Haible  <bruno@clisp.org>
35796
35797         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35798         hints is NULL.
35799
35800 2007-03-25  Bruno Haible  <bruno@clisp.org>
35801
35802         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35803         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35804
35805 2007-03-25  Bruno Haible  <bruno@clisp.org>
35806
35807         * lib/vasnprintf.c: Include langinfo.h.
35808         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35809         multithread-safe.
35810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35819         Reported by Simon Josefsson.
35820
35821 2007-03-25  Bruno Haible  <bruno@clisp.org>
35822
35823         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35824         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35825         * modules/vasnprintf (Depends-on): Add stdint.
35826
35827 2007-03-25  Bruno Haible  <bruno@clisp.org>
35828
35829         * modules/fpieee: New file.
35830         * m4/fpieee.m4: New file.
35831         * modules/isnan-nolibm (Depends-on): Add fpieee.
35832         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35833         * modules/isnanl (Depends-on): Add fpieee.
35834
35835 2007-03-25  Bruno Haible  <bruno@clisp.org>
35836
35837         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35838
35839 2007-03-25  Bruno Haible  <bruno@clisp.org>
35840
35841         Avoid test failures on IRIX 6.5.
35842         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35843         (main): Use it.
35844         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35845         macros.
35846         (main): Use them.
35847
35848 2007-03-25  Bruno Haible  <bruno@clisp.org>
35849
35850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35851         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35852         exists but doesn't work.
35853         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35854         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35856         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35857
35858 2007-03-25  Bruno Haible  <bruno@clisp.org>
35859
35860         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35861         returns inf. Needed on IRIX 6.5.
35862
35863 2007-03-25  Bruno Haible  <bruno@clisp.org>
35864
35865         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35866         (main): Use isnanl instead of x != x idiom.
35867         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35868
35869         * tests/test-frexp.c: Include isnan.h.
35870         (main): Use isnan instead of x != x idiom.
35871         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35872
35873 2007-03-25  Bruno Haible  <bruno@clisp.org>
35874
35875         * tests/test-frexp.c (NaN): New function/macro.
35876         (main): Use it instead of 0.0 / 0.0.
35877         * tests/test-isnan.c (NaN): New function/macro.
35878         (main): Use it instead of 0.0 / 0.0.
35879         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35880         (test_function): Use it instead of 0.0 / 0.0.
35881         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35882         (test_function): Use it instead of 0.0 / 0.0.
35883         * tests/test-snprintf-posix.h (NaN): New function/macro.
35884         (test_function): Use it instead of 0.0 / 0.0.
35885         * tests/test-sprintf-posix.h (NaN): New function/macro.
35886         (test_function): Use it instead of 0.0 / 0.0.
35887         * tests/test-fprintf-posix.h (NaN): New function/macro.
35888         (test_function): Use it instead of 0.0 / 0.0.
35889         * tests/test-printf-posix.h (NaN): New function/macro.
35890         (test_function): Use it instead of 0.0 / 0.0.
35891
35892         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35893
35894 2007-03-25  Bruno Haible  <bruno@clisp.org>
35895
35896         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35897
35898 2007-03-25  Bruno Haible  <bruno@clisp.org>
35899
35900         * lib/regexec.c (merge_state_with_log): Make static.
35901
35902 2007-03-25  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/trigl.c (kernel_rem_pio2): Make static.
35905
35906 2007-03-25  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/sincosl.c (sincosl_table): Make static.
35909
35910 2007-03-25  Bruno Haible  <bruno@clisp.org>
35911
35912         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35913         if the compiler does not support C99.
35914
35915 2007-03-25  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/time (Makefile.am): Ensure all rule action lines start with a
35918         tab.
35919
35920 2007-03-24  Bruno Haible  <bruno@clisp.org>
35921
35922         * modules/tsearch-tests: New file.
35923         * tests/test-tsearch.sh: New file.
35924         * tests/test-tsearch.c: New file, mostly copied from glibc.
35925
35926         * modules/search-tests: New file.
35927         * tests/test-search.c: New file.
35928
35929         * modules/search: New file.
35930         * lib/search_.h: New file, incorporating lib/tsearch.h.
35931         * m4/search_h.m4: New file.
35932         * lib/tsearch.h: Remove file.
35933         * lib/tsearch.c: Include search.h instead of tsearch.h.
35934         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35935         HAVE_TSEARCH.
35936         * modules/tsearch (Files): Remove lib/tsearch.h.
35937         (Depends-on): Add search.
35938         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35939         (Include): Change tsearch.h into search.h.
35940
35941 2007-03-24  Bruno Haible  <bruno@clisp.org>
35942
35943         * modules/fpucw: New file.
35944         * lib/fpucw.h: New file.
35945         * lib/frexp.c: Include fpucw.h.
35946         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35947         (FUNC): Use them.
35948         * lib/printf-frexp.c: Include fpucw.h.
35949         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35950         (FUNC): Use them.
35951         * lib/vasnprintf.c: Include fpucw.h.
35952         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35953         'long double' calculations.
35954         * tests/test-frexpl.c: Include fpucw.h.
35955         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35956         * tests/test-printf-frexpl.c: Include fpucw.h.
35957         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35958         * modules/frexpl (Depends-on): Add fpucw.
35959         * modules/printf-frexpl (Depends-on): Likewise.
35960         * modules/fprintf-posix (Depends-on): Likewise.
35961         * modules/snprintf-posix (Depends-on): Likewise.
35962         * modules/sprintf-posix (Depends-on): Likewise.
35963         * modules/vasnprintf-posix (Depends-on): Likewise.
35964         * modules/vasprintf-posix (Depends-on): Likewise.
35965         * modules/vfprintf-posix (Depends-on): Likewise.
35966         * modules/vsnprintf-posix (Depends-on): Likewise.
35967         * modules/vsprintf-posix (Depends-on): Likewise.
35968         * modules/frexpl-tests (Depends-on): Likewise.
35969         * modules/printf-frexpl-tests (Depends-on): Likewise.
35970
35971 2007-03-24  Bruno Haible  <bruno@clisp.org>
35972
35973         * lib/float+.h: New file.
35974         * lib/isnan.c: Include float+.h.
35975         (SIZE): New macro.
35976         (FUNC): Compare only SIZE bytes of the value.
35977         * lib/vasnprintf.c: Include float+.h.
35978         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35979         SIZEOF_LDBL or SIZEOF_DBL bytes.
35980         * modules/isnan-nolibm (Files): Add lib/float+.h.
35981         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35982         * modules/isnanl (Files): Add lib/float+.h.
35983         * modules/vasnprintf (Files): Add lib/float+.h.
35984
35985 2007-03-24  Bruno Haible  <bruno@clisp.org>
35986
35987         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35988         include isnanl-nolibm.h.
35989
35990 2007-03-24  Bruno Haible  <bruno@clisp.org>
35991
35992         * tests/test-read-file.c (main): Don't produce spurious output for
35993         expected situations. Make the test fail if it encountered unexpected
35994         results.
35995
35996 2007-03-24  Bruno Haible  <bruno@clisp.org>
35997
35998         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35999         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36000
36001 2007-03-24  Bruno Haible  <bruno@clisp.org>
36002
36003         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36004
36005 2007-03-24  Bruno Haible  <bruno@clisp.org>
36006
36007         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36008         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36009
36010         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36011         * modules/utf8-ucs4: Turn into a symbolic link to module
36012         unistr/u8-mbtouc.
36013
36014         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36015         utf8-ucs4-unsafe.
36016         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36017         unistr/u8-mbtouc-unsafe.
36018
36019         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36020         * modules/utf16-ucs4: Turn into a symbolic link to module
36021         unistr/u16-mbtouc.
36022
36023         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36024         utf16-ucs4-unsafe.
36025         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36026         unistr/u16-mbtouc-unsafe.
36027
36028         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36029         * modules/ucs4-utf8: Turn into a symbolic link to module
36030         unistr/u8-ubtomb.
36031
36032         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36033         * modules/ucs4-utf16: Turn into a symbolic link to module
36034         unistr/u16-ubtomb.
36035
36036 2007-03-24  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36039         Enable the function only if HAVE_INLINE.
36040         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36041         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36042         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36043         Enable the function only if HAVE_INLINE.
36044         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36045         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36046         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36047         Enable the function only if HAVE_INLINE.
36048         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36049         Enable the function only if HAVE_INLINE.
36050         * modules/utf8-ucs4: Update.
36051         * modules/utf8-ucs4-unsafe: Update.
36052         * modules/utf16-ucs4: Update.
36053         * modules/utf16-ucs4-unsafe: Update.
36054         * modules/ucs4-utf8: Update.
36055         * modules/ucs4-utf16: Update.
36056
36057 2007-03-24  Bruno Haible  <bruno@clisp.org>
36058
36059         * lib/utf8-ucs4.h: Remove file.
36060         * lib/utf8-ucs4-unsafe.h: Remove file.
36061         * lib/utf16-ucs4.h: Remove file.
36062         * lib/utf16-ucs4-unsafe.h: Remove file.
36063         * lib/ucs4-utf8.h: Remove file.
36064         * lib/ucs4-utf16.h: Remove file.
36065         * lib/unistr.h: Include their previous contents.
36066         * m4/utf-ucs4.m4: Remove file.
36067         * m4/ucs4-utf.m4: Remove file.
36068         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36069         (Depends-on): Add unistr/base.
36070         (configure.ac): Remove gl_UTF_UCS4.
36071         (Makefile.am): Update.
36072         (Include): Change to unistr.h.
36073         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36074         (Depends-on): Add unistr/base.
36075         (configure.ac): Remove gl_UTF_UCS4.
36076         (Makefile.am): Update.
36077         (Include): Change to unistr.h.
36078         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36079         (Depends-on): Add unistr/base.
36080         (configure.ac): Remove gl_UTF_UCS4.
36081         (Makefile.am): Update.
36082         (Include): Change to unistr.h.
36083         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36084         (Depends-on): Add unistr/base.
36085         (configure.ac): Remove gl_UTF_UCS4.
36086         (Makefile.am): Update.
36087         (Include): Change to unistr.h.
36088         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36089         (Depends-on): Add unistr/base.
36090         (configure.ac): Remove gl_UCS4_UTF.
36091         (Makefile.am): Update.
36092         (Include): Change to unistr.h.
36093         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36094         (Depends-on): Add unistr/base.
36095         (configure.ac): Remove gl_UCS4_UTF.
36096         (Makefile.am): Update.
36097         (Include): Change to unistr.h.
36098         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36099         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36100         utf8-ucs4-unsafe.h.
36101         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36102         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36103         utf16-ucs4-unsafe.h.
36104         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36105         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36106         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36107         * lib/unistr/u8-strchr.c: Likewise.
36108         * lib/unistr/u8-strrchr.c: Likewise.
36109         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36110         * lib/unistr/u16-strchr.c: Likewise.
36111         * lib/unistr/u16-strrchr.c: Likewise.
36112         * lib/striconveh.c: Update.
36113         * lib/linebreak.c: Update.
36114
36115 2007-03-24  Bruno Haible  <bruno@clisp.org>
36116
36117         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36118         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36119
36120 2007-03-22  Bruno Haible  <bruno@clisp.org>
36121
36122         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36123
36124 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36125
36126         * MODULES.html.sh (File system functions): New module write-any-file.
36127         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36128         * m4/write-any-file.m4: New files.
36129
36130 2007-03-23  Eric Blake  <ebb9@byu.net>
36131
36132         * gnulib-tool: Rearrange space-tab sequences, since some editors
36133         like to eat them.
36134
36135 2007-03-23  Eric Blake  <ebb9@byu.net>
36136
36137         * lib/version-etc.c (version_etc_va): Update license wording to
36138         be more concise.  Recommended by Richard Stallman.
36139
36140 2007-03-22  Bruno Haible  <bruno@clisp.org>
36141
36142         * lib/poll.c (MSG_PEEK): New fallback definition.
36143
36144 2007-03-22  Bruno Haible  <bruno@clisp.org>
36145
36146         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36147         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36148         (main): Update.
36149         Fixes a compilation error on BeOS.
36150
36151 2007-03-22  Bruno Haible  <bruno@clisp.org>
36152
36153         * modules/frexpl-tests: New file.
36154         * tests/test-frexpl.c: New file.
36155
36156         * modules/frexpl: New file.
36157         * m4/frexpl.m4: New file.
36158         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36159         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36161         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36162         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36163         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36164
36165 2007-03-22  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/frexpl.c: Share code with lib/frexp.c.
36168         * modules/mathl (Files): Add lib/frexp.c.
36169         (Depends-on): Add isnanl-nolibm.
36170
36171 2007-03-22  Bruno Haible  <bruno@clisp.org>
36172
36173         * modules/printf-frexp (Files): Add m4/frexp.m4.
36174         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36175         only if the found frexp function actually works.
36176
36177 2007-03-22  Bruno Haible  <bruno@clisp.org>
36178
36179         * lib/frexp.c: Remove older implementation that uses divisions.
36180
36181 2007-03-21  Bruno Haible  <bruno@clisp.org>
36182
36183         * modules/frexp-tests: New file.
36184         * tests/test-frexp.c: New file.
36185
36186         * modules/frexp: New file.
36187         * lib/frexp.c: New file.
36188         * m4/frexp.m4: New file.
36189         * lib/math_.h (frexp): New declaration.
36190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36191         REPLACE_FREXP.
36192         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36193
36194 2007-03-21  Bruno Haible  <bruno@clisp.org>
36195
36196         * modules/isnanl-tests: New file.
36197         * tests/test-isnanl.c: New file.
36198
36199         * modules/isnanl: New file.
36200         * lib/isnanl.h: New file.
36201         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36202         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36203         gl_FUNC_ISNANL_WORKS.
36204         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36205         New macros.
36206
36207 2007-03-21  Bruno Haible  <bruno@clisp.org>
36208
36209         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36210         lib/isnanl.h.
36211         (Include): Update.
36212         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36213         * lib/vasnprintf.c: Update.
36214         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36215         tests/test-isnanl.h, remove tests/test-isnanl.c.
36216         (Makefile.am): Update.
36217         * tests/test-isnanl-nolibm.c: New file.
36218         * tests/test-isnanl.h: New file.
36219         * tests/test-isnanl.c: Remove file.
36220
36221 2007-03-21  Jim Meyering  <jim@meyering.net>
36222
36223         When trying to open ".", treat ESTALE like EACCES.
36224         * lib/savewd.c (savewd_save): Resort to forking not just upon
36225         failure with EACCES, but also when errno is ESTALE.
36226
36227 2007-03-20  Bruno Haible  <bruno@clisp.org>
36228
36229         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36230         Needed on AIX 5.1. Reported by Matthew Woehlke.
36231
36232 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36233
36234         Suggestions by Bruno Haible:
36235         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36236         our own.
36237         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36238         * modules/acl (Depends-on): Add gettext.
36239
36240 2007-03-19  Bruno Haible  <bruno@clisp.org>
36241
36242         * modules/iconvme: Remove file.
36243         * lib/iconvme.h: Remove file.
36244         * lib/iconvme.c: Remove file.
36245         * m4/iconvme.m4: Remove file.
36246
36247 2007-03-19  Bruno Haible  <bruno@clisp.org>
36248
36249         * doc/relocatable-maint.texi: Break long shell script line.
36250         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36251
36252 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36253
36254         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36255         handle file_has_acl.
36256         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36257         * lib/acl.c: Move header inclusions and related macro defns into
36258         lib/acl-internal.h.
36259         (S_ISLNK): Remove defn, since that's now done for us.
36260         (file_has_acl): Move to lib/file-has-acl.c.
36261         Call acl_trivial if available.  This is the crucial part of the fix.
36262         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36263         shared within the library.  Rewrite a bit, partly to make it compatible
36264         with the GNU coding style.
36265         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36266         Remove unnecessary double-quotes.
36267         Don't test for acl_to_text; the build will catch that.
36268         Replace acl_entries if it doesn't exist and it is needed.
36269         Check for -lsec and acl_trivial (as used on Solaris 10).
36270         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36271         lib/file-has-acl.c.
36272         (Depends-on): Add sys_stat, for S_ISLNK.
36273
36274 2007-03-19  Ben Pfaff  <blp@gnu.org>
36275
36276         * doc/gnulib.texi: Fix typos.
36277         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36278
36279 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36280
36281         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36282         If size is zero here, buf must be zero.
36283
36284 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36285
36286         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36287         <bruno@clisp.org>.
36288
36289 2007-03-18  Bruno Haible  <bruno@clisp.org>
36290
36291         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36292         Suggested by Eric Blake.
36293
36294 2007-03-18  Ben Pfaff  <blp@gnu.org>
36295
36296         * doc/relocatable.texi: Recommend using as prefix a directory
36297         that does not exist and will never be created.  Based on
36298         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36299         and others.
36300
36301 2007-03-17  Bruno Haible  <bruno@clisp.org>
36302
36303         * lib/fchownat.c: Include lchown.h.
36304
36305 2007-03-17  Bruno Haible  <bruno@clisp.org>
36306
36307         Fix endless loop when the given allocated size was > INT_MAX.
36308         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36309         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36310         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36311         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36312         * lib/sprintf.c (sprintf): Likewise.
36313
36314 2007-03-17  Bruno Haible  <bruno@clisp.org>
36315
36316         * tests/test-argp-2.sh (func_compare): Output a context diff.
36317
36318 2007-03-17  Bruno Haible  <bruno@clisp.org>
36319
36320         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36321         locale's decimal-point character.
36322
36323 2007-03-17  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36326         before comparing it. Needed because on some platforms (e.g. x86) a
36327         'long double' occupies less bytes than sizeof (long double).
36328
36329 2007-03-17  Bruno Haible  <bruno@clisp.org>
36330
36331         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36332         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36333         * tests/test-getaddrinfo.c (simple): Likewise.
36334         * tests/test-read-file.c (main): Likewise.
36335
36336 2007-03-17  Bruno Haible  <bruno@clisp.org>
36337
36338         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36339
36340 2007-03-17  Bruno Haible  <bruno@clisp.org>
36341
36342         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36343         unused variable.
36344
36345 2007-03-17  Bruno Haible  <bruno@clisp.org>
36346
36347         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36348         * tests/test-c-strncasecmp.c: Likewise.
36349
36350 2007-03-17  Bruno Haible  <bruno@clisp.org>
36351
36352         * modules/stdlib (Depends-on): Add unistd.
36353         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36354         Needed for MacOS X 10.3.
36355
36356 2007-03-17  Bruno Haible  <bruno@clisp.org>
36357
36358         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36359
36360 2007-03-17  Bruno Haible  <bruno@clisp.org>
36361
36362         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36363
36364 2007-03-17  Bruno Haible  <bruno@clisp.org>
36365
36366         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36367         to reflect files copied from gnulib (with or without modifications).
36368         Suggested by Jim Meyering.
36369
36370 2007-03-17  Eric Blake  <ebb9@byu.net>
36371
36372         * NEWS: Document stdlib change from 2007-02-18.
36373
36374 2007-03-17  Jim Meyering  <jim@meyering.net>
36375
36376         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36377         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36378         someone uses a name containing shell meta-characters.
36379         Reported by Alfred M. Szmidt.
36380
36381         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36382
36383 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36384
36385         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36386         and copy gettext configuration files only if configure.ac contains
36387         a use of AM_GNU_GETTEXT_VERSION.
36388
36389 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36390
36391         * build-aux/bootstrap (gnulib_name): New variable.
36392         (gnulib_tool_options): Use it.
36393
36394 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36395
36396         * tests/test-des.c: Use new namespace.
36397
36398 2007-03-15  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36401         Reported by James Youngman <jay@gnu.org>.
36402
36403 2007-03-15  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36406         declared prototype. Needed with cc on OSF/1 5.1.
36407
36408 2007-03-15  Bruno Haible  <bruno@clisp.org>
36409
36410         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36411         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36412         (struct gl_list_implementation): Add dispose_fn argument to the
36413         'create_empty', 'create' methods.
36414         (struct gl_list_impl_base): Add field 'dispose_fn'.
36415         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36416         argument.
36417         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36418         dispose_fn argument.
36419         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36420         dispose_fn on the dropped values.
36421         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36422         dispose_fn argument.
36423         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36424         dropped values.
36425         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36426         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36427         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36428         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36429         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36430         argument.
36431         (gl_tree_list_free): Call dispose_fn on the dropped values.
36432         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36433         the dropped values.
36434         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36435         Add dispose_fn argument.
36436         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36437         Call dispose_fn on the dropped values.
36438         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36439         Add dispose_fn argument.
36440         (gl_sublist_create): Initialize the 'dispose_fn' field.
36441         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36442         * tests/test-array_list.c (main): Update.
36443         * tests/test-carray_list.c (main): Update.
36444         * tests/test-avltree_list.c (main): Update.
36445         * tests/test-rbtree_list.c (main): Update.
36446         * tests/test-avltreehash_list.c (main): Update.
36447         * tests/test-rbtreehash_list.c (main): Update.
36448         * tests/test-linked_list.c (main): Update.
36449         * tests/test-linkedhash_list.c (main): Update.
36450         * tests/test-array_oset.c (main): Update.
36451
36452 2007-03-15  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36455         (gl_oset_create_empty): Add dispose_fn argument.
36456         (struct gl_oset_implementation): Add dispose_fn argument to
36457         'create_empty' method.
36458         (struct gl_oset_impl_base): Add dispose_fn field.
36459         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36460         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36461         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36462         values.
36463         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36464         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36465         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36466         dropped value.
36467         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36468         dropped value.
36469         * tests/test-array_oset.c (main): Update.
36470         * tests/test-avltree_oset.c (main): Update.
36471         * tests/test-rbtree_oset.c (main): Update.
36472         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36473
36474 2007-03-13  Bruno Haible  <bruno@clisp.org>
36475
36476         * tests/test-stdbool.c (i): Update after last patch.
36477
36478 2007-03-12  Bruno Haible  <bruno@clisp.org>
36479
36480         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36481         the iswprint macro. Needed on Solaris 2.5.1.
36482
36483 2007-03-12  Bruno Haible  <bruno@clisp.org>
36484
36485         * tests/test-printf-frexp.c (main): Declare x as volatile.
36486
36487 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36488
36489         * doc/gnulib.texi (Build robot for gnulib): New section.
36490
36491 2007-03-12  Jim Meyering  <jim@meyering.net>
36492
36493         * build-aux/bootstrap: New file.
36494         * build-aux/bootstrap.conf: New file, from coreutils.
36495
36496 2007-03-11  Bruno Haible  <bruno@clisp.org>
36497
36498         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36499
36500 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36501
36502         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36503         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36504         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36505
36506 2007-03-11  Bruno Haible  <bruno@clisp.org>
36507
36508         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36509         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36510
36511 2007-03-11  Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36514         formula. Needed for SunPRO C 5.0.
36515
36516 2007-03-11  Bruno Haible  <bruno@clisp.org>
36517
36518         * modules/long-options (Depends-on): Add getopt.
36519
36520 2007-03-11  Bruno Haible  <bruno@clisp.org>
36521
36522         * modules/modechange (Depends-on): Add stdbool.
36523
36524 2007-03-11  Bruno Haible  <bruno@clisp.org>
36525
36526         * modules/i-ring (Depends-on): Add stdbool.
36527
36528 2007-03-11  Bruno Haible  <bruno@clisp.org>
36529
36530         * modules/gc-des (Depends-on): Add stdbool.
36531
36532 2007-03-11  Bruno Haible  <bruno@clisp.org>
36533
36534         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36535
36536 2007-03-11  Bruno Haible  <bruno@clisp.org>
36537
36538         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36539
36540 2007-03-11  Bruno Haible  <bruno@clisp.org>
36541
36542         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36543
36544 2007-03-11  Bruno Haible  <bruno@clisp.org>
36545
36546         * lib/vasnprintf.c (sprintf): Undefine.
36547
36548 2007-03-11  Bruno Haible  <bruno@clisp.org>
36549
36550         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36551         initializers in SunPRO C and Compaq C compilers.
36552
36553 2007-03-11  Bruno Haible  <bruno@clisp.org>
36554
36555         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36556         decrementing code ANSI C compliant.
36557
36558 2007-03-11  Bruno Haible  <bruno@clisp.org>
36559
36560         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36561         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36562
36563 2007-03-11  Bruno Haible  <bruno@clisp.org>
36564
36565         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36566         <stdbool.h> substitute doesn't pass.
36567
36568 2007-03-11  Bruno Haible  <bruno@clisp.org>
36569
36570         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36571
36572 2007-03-11  Bruno Haible  <bruno@clisp.org>
36573
36574         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36575         script, for submission to autobuild.josefsson.org.
36576
36577 2007-03-10  Bruno Haible  <bruno@clisp.org>
36578
36579         * modules/canonicalize-lgpl-tests: New file.
36580         * tests/test-canonicalize-lgpl.sh: New file.
36581         * tests/test-canonicalize-lgpl.c: New file.
36582
36583         * modules/c-strcase-tests: New file.
36584         * tests/test-c-strcase.sh: New file.
36585         * tests/test-c-strcasecmp.c: New file.
36586         * tests/test-c-strncasecmp.c: New file.
36587
36588         * modules/atexit-tests: New file.
36589         * tests/test-atexit.sh: New file.
36590         * tests/test-atexit.c: New file.
36591
36592 2007-03-10  Bruno Haible  <bruno@clisp.org>
36593
36594         * tests/test-binary-io.sh: Use temporary filenames that are not so
36595         likely to clash with those of other tests (in a parallel make).
36596         * tests/test-binary-io.c: Likewise.
36597
36598 2007-03-10  Bruno Haible  <bruno@clisp.org>
36599
36600         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36601         fallback; use #error instead.
36602         Suggested by Simon Josefsson.
36603
36604 2007-03-10  Bruno Haible  <bruno@clisp.org>
36605
36606         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36607         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36608         first and the last.
36609
36610 2007-03-10  Bruno Haible  <bruno@clisp.org>
36611
36612         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36613
36614 2007-03-10  Bruno Haible  <bruno@clisp.org>
36615
36616         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36617         "make distcheck".
36618         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36619         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36620         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36621
36622 2007-03-10  Bruno Haible  <bruno@clisp.org>
36623
36624         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36625         variable.
36626         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36627         variable.
36628
36629 2007-03-09  Eric Blake  <ebb9@byu.net>
36630         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36631
36632         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36633         types are not being provided by gnulib.
36634         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36635         types are supported.
36636
36637 2007-03-10  Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/stdio_.h (__attribute__): New macro.
36640         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36641         vsprintf): Specify __attribute__ __format__ for GCC.
36642         Suggested by Eric Blake.
36643
36644 2007-03-09  Bruno Haible  <bruno@clisp.org>
36645
36646         * modules/printf-posix-tests: New file.
36647         * tests/test-printf-posix.sh: New file.
36648         * tests/test-printf-posix.c: New file.
36649
36650         * modules/printf-posix: New file.
36651         * lib/printf.c: New file.
36652         * m4/printf-posix-rpl.m4: New file.
36653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36654         REPLACE_PRINTF.
36655         * lib/stdio_.h (printf): New declaration.
36656         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36657         ____strfmon____): New macros.
36658         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36659         REPLACE_PRINTF.
36660
36661 2007-03-09  Bruno Haible  <bruno@clisp.org>
36662
36663         * tests/test-vasnprintf-posix2.sh: New file.
36664         * tests/test-vasnprintf-posix2.c: New file.
36665         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36666         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36667         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36668
36669         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36670         a locale dependent decimal point, rather than always '.'.
36671
36672 2007-03-09  Eric Blake  <ebb9@byu.net>
36673
36674         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36675         spite of platforms like Tandem/NSK that define it to -1.
36676
36677 2007-03-08  Bruno Haible  <bruno@clisp.org>
36678
36679         * modules/vprintf-posix-tests: New file.
36680         * tests/test-vprintf-posix.sh: New file.
36681         * tests/test-vprintf-posix.c: New file.
36682         * tests/test-printf-posix.h: New file.
36683
36684         * modules/vprintf-posix: New file.
36685         * lib/vprintf.c: New file.
36686         * m4/vprintf-posix.m4: New file.
36687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36688         REPLACE_VPRINTF.
36689         * lib/stdio_.h (vprintf): New declaration.
36690         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36691         REPLACE_VPRINTF.
36692
36693 2007-03-08  Bruno Haible  <bruno@clisp.org>
36694
36695         * modules/fprintf-posix-tests: New file.
36696         * tests/test-fprintf-posix.sh: New file.
36697         * tests/test-fprintf-posix.c: New file.
36698
36699         * modules/fprintf-posix: New file.
36700         * lib/fprintf.c: New file.
36701         * m4/fprintf-posix.m4: New file.
36702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36703         REPLACE_FPRINTF.
36704         * lib/stdio_.h (fprintf): New declaration.
36705         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36706         REPLACE_FPRINTF.
36707
36708 2007-03-08  Bruno Haible  <bruno@clisp.org>
36709
36710         * modules/vfprintf-posix-tests: New file.
36711         * tests/test-vfprintf-posix.sh: New file.
36712         * tests/test-vfprintf-posix.c: New file.
36713         * tests/test-fprintf-posix.h: New file.
36714         * tests/test-fprintf-posix.out: New file.
36715
36716         * modules/vfprintf-posix: New file.
36717         * lib/vfprintf.c: New file.
36718         * m4/vfprintf-posix.m4: New file.
36719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36720         REPLACE_VFPRINTF.
36721         * lib/stdio_.h (vfprintf): New declaration.
36722         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36723         REPLACE_VFPRINTF.
36724
36725 2007-03-08  Bruno Haible  <bruno@clisp.org>
36726
36727         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36728
36729 2007-03-08  Bruno Haible  <bruno@clisp.org>
36730
36731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36732         instead of 'expr' invocations.
36733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36738         Suggested by Paul Eggert.
36739
36740 2007-03-08  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/fseterr-tests: New file.
36743         * tests/test-fseterr.c: New file.
36744
36745         * modules/fseterr: New file.
36746         * lib/fseterr.h: New file.
36747         * lib/fseterr.c: New file.
36748
36749 2007-03-08  Bruno Haible  <bruno@clisp.org>
36750
36751         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36752         * lib/getopt_.h: Likewise.
36753         * lib/mbswidth.h: Likewise.
36754         * lib/setenv.h: Likewise.
36755         * lib/vasnprintf.h: Likewise.
36756         * lib/vasprintf.h: Likewise.
36757         * lib/verror.h: Likewise.
36758         * lib/xsetenv.h: Likewise.
36759         * lib/xvasprintf.h: Likewise.
36760
36761 2007-03-08  Jim Meyering  <jim@meyering.net>
36762
36763         * users.txt: Add parted.
36764
36765         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36766
36767 2007-03-07  Bruno Haible  <bruno@clisp.org>
36768
36769         * m4/printf.m4: Make the shell script snippets copy&pastable.
36770
36771 2007-03-02  Bruno Haible  <bruno@clisp.org>
36772
36773         * lib/netinet_in_.h: New file.
36774         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36775         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36776         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36777         (Depends-on): Add absolute-header.
36778         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36779         into netinet/in.h.
36780
36781 2007-03-03  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/sys_select_.h: New file.
36784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36785         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36786         * modules/sys_select (Files): Add lib/sys_select_.h.
36787         (Depends-on): Add absolute-header.
36788         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36789         into sys/select.h.
36790
36791 2007-03-02  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36794         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36795         values.
36796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36797         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36798         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36799         * modules/sys_socket (Depends-on): Add absolute-header.
36800         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36801         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36802         (Include): Remove requirement of inclusion of <sys/types.h>.
36803
36804 2007-03-02  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/byteswap_.h (bswap_32): Fix formula.
36807
36808 2007-03-06  Bruno Haible  <bruno@clisp.org>
36809
36810         * modules/sprintf-posix-tests: New file.
36811         * tests/test-sprintf-posix.c: New file.
36812
36813         * modules/sprintf-posix: New file.
36814         * lib/sprintf.c: New file.
36815         * m4/sprintf-posix.m4: New file.
36816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36817         REPLACE_SPRINTF.
36818         * lib/stdio_.h (sprintf): New declaration.
36819         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36820         REPLACE_SPRINTF.
36821
36822 2007-03-06  Bruno Haible  <bruno@clisp.org>
36823
36824         * modules/vsprintf-posix-tests: New file.
36825         * tests/test-vsprintf-posix.c: New file.
36826         * tests/test-sprintf-posix.h: New file.
36827
36828         * modules/vsprintf-posix: New file.
36829         * lib/vsprintf.c: New file.
36830         * m4/vsprintf-posix.m4: New file.
36831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36832         REPLACE_VSPRINTF.
36833         * lib/stdio_.h (vsprintf): New declaration.
36834         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36835         REPLACE_VSPRINTF.
36836
36837 2007-03-06  Bruno Haible  <bruno@clisp.org>
36838
36839         * modules/vsnprintf (Depend-on): Remove minmax.
36840
36841 2007-03-06  Bruno Haible  <bruno@clisp.org>
36842
36843         * modules/snprintf-posix-tests: New file.
36844         * tests/test-snprintf-posix.c: New file.
36845
36846         * modules/snprintf-posix: New file.
36847         * m4/snprintf-posix.m4: New file.
36848         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36849         gl_FUNC_SNPRINTF.
36850         (gl_FUNC_SNPRINTF): Invoke it.
36851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36852         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36853         is set.
36854         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36855
36856 2007-03-06  Bruno Haible  <bruno@clisp.org>
36857
36858         * modules/vsnprintf-posix-tests: New file.
36859         * tests/test-vsnprintf-posix.c: New file.
36860         * tests/test-snprintf-posix.h: New file.
36861
36862         * modules/vsnprintf-posix: New file.
36863         * m4/vsnprintf-posix.m4: New file.
36864         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36865         gl_FUNC_VSNPRINTF.
36866         (gl_FUNC_VSNPRINTF): Invoke it.
36867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36868         * lib/stdio_.h (vsnprintf): Define as a replacement if
36869         REPLACE_VSNPRINTF is set.
36870         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36871
36872 2007-03-06  Bruno Haible  <bruno@clisp.org>
36873
36874         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36876
36877 2007-03-06  Bruno Haible  <bruno@clisp.org>
36878
36879         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36880         (asinl): Declare also if HAVE_DECL_ASINL is set.
36881         (atanl): Declare also if HAVE_DECL_ATANL is set.
36882         (ceill): Declare also if HAVE_DECL_CEILL is set.
36883         (cosl): Declare also if HAVE_DECL_COSL is set.
36884         (expl): Declare also if HAVE_DECL_EXPL is set.
36885         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36886         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36887         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36888         (logl): Declare also if HAVE_DECL_LOGL is set.
36889         (sinl): Declare also if HAVE_DECL_SINL is set.
36890         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36891         (tanl): Declare also if HAVE_DECL_TANL is set.
36892         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36894         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36895         declaration of frexpl, ldexpl.
36896         * modules/printf-frexpl (Depends-on): Add math.
36897         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36898
36899 2007-03-05  Bruno Haible  <bruno@clisp.org>
36900
36901         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36902         frexpl and ldexpl are declared.
36903         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36904
36905 2007-03-05  Bruno Haible  <bruno@clisp.org>
36906
36907         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36908         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36909
36910 2007-03-05  Bruno Haible  <bruno@clisp.org>
36911
36912         * lib/stdio_.h: Include <stddef.h>.
36913
36914 2007-03-05  Bruno Haible  <bruno@clisp.org>
36915
36916         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36917
36918 2007-03-05  Bruno Haible  <bruno@clisp.org>
36919
36920         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36921         NetBSD 4, from Ralf Wildenhues.
36922
36923 2007-03-04  Bruno Haible  <bruno@clisp.org>
36924
36925         * lib/vasprintf.h: Update #if logic for the case when the functions
36926         exist but are overridden.
36927
36928 2007-03-04  Bruno Haible  <bruno@clisp.org>
36929
36930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36931         implementations: glibc-2.4 and MacOS X 10.3.
36932         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36933         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36934         * tests/test-vasprintf-posix.c (test_function): Likewise.
36935
36936 2007-03-04  Bruno Haible  <bruno@clisp.org>
36937
36938         * modules/vasprintf-posix-tests: New file.
36939         * tests/test-vasprintf-posix.c: New file.
36940
36941         * modules/vasprintf-posix: New file.
36942         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36943         defined.
36944         * m4/vasprintf-posix.m4: New file.
36945         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36946         gl_FUNC_VASPRINTF.
36947         (gl_FUNC_VASPRINTF): Invoke it.
36948         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36949         here.
36950         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36951
36952 2007-03-04  Bruno Haible  <bruno@clisp.org>
36953
36954         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36955         REPLACE_GETTIMEOFDAY.
36956         * modules/sys_time (Makefile.am): Likewise.
36957         * m4/sys_time_h.m4: Likewise.
36958         * m4/gettimeofday.m4: Likewise.
36959
36960 2007-03-04  Bruno Haible  <bruno@clisp.org>
36961
36962         * modules/vasnprintf-posix-tests: New file.
36963         * tests/test-vasnprintf-posix.c: New file.
36964
36965         * modules/vasnprintf-posix: New file.
36966         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36967         printf-frexpl.h.
36968         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36969         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36970         REPLACE_VASNPRINTF is defined.
36971         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36972         gl_FUNC_VASNPRINTF.
36973         (gl_FUNC_VASNPRINTF): Invoke it.
36974         * m4/vasnprintf-posix.m4: New file.
36975         * m4/printf.m4: New file.
36976
36977 2007-03-04  Bruno Haible  <bruno@clisp.org>
36978
36979         Compile progreloc.c only if --enable-relocatable is specified.
36980         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36981         if --enable-relocatable was specified.
36982         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36983         lib_SOURCES.
36984
36985 2007-03-04  Jim Meyering  <jim@meyering.net>
36986
36987         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36988         Use it consistently, rather than enumerating errno constants.
36989
36990 2007-03-04  Bruno Haible  <bruno@clisp.org>
36991
36992         * modules/xvasprintf-tests: New file.
36993         * tests/test-xvasprintf.c: New file.
36994
36995         * modules/vasprintf-tests: New file.
36996         * tests/test-vasprintf.c: New file.
36997
36998         * modules/vasnprintf-tests: New file.
36999         * tests/test-vasnprintf.c: New file.
37000
37001         * modules/vsnprintf-tests: New file.
37002         * tests/test-vsnprintf.c: New file.
37003
37004         * modules/snprintf-tests: New file.
37005         * tests/test-snprintf.c: New file.
37006
37007 2007-03-04  Bruno Haible  <bruno@clisp.org>
37008
37009         Compile relocatable.c only if --enable-relocatable is specified.
37010         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37011         gl_RELOCATABLE_LIBRARY.
37012         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37013         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37014         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37015         gl_RELOCATABLE_LIBRARY.
37016         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37017         (Makefile.am): Remove lib_SOURCES.
37018         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37019         gl_RELOCATABLE_LIBRARY.
37020         (Makefile.am): Remove lib_SOURCES.
37021         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37022         always.
37023         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37024         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37025
37026 2007-03-04  Bruno Haible  <bruno@clisp.org>
37027
37028         * modules/argmatch-tests: New file.
37029         * tests/test-argmatch.c: New file.
37030
37031         * tests/test-allocsa.c (main): Halve the number of loop runs.
37032
37033         * modules/alloca-opt-tests: New file.
37034         * tests/test-alloca-opt.c: New file.
37035
37036 2007-03-04  Jim Meyering  <jim@meyering.net>
37037
37038         Work around difference between Linux ACLs and Solaris 10 ZFS.
37039         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37040         for EINVAL.
37041
37042 2007-03-03  Bruno Haible  <bruno@clisp.org>
37043
37044         * modules/relocatable-prog (Depends-on): Add back progreloc's
37045         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37046
37047 2007-03-03  Bruno Haible  <bruno@clisp.org>
37048
37049         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37050         * modules/relocatable-lib: New file.
37051
37052 2007-03-03  Bruno Haible  <bruno@clisp.org>
37053
37054         * modules/relocatable-prog: Renamed from modules/relocatable.
37055         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37056
37057 2007-03-03  Bruno Haible  <bruno@clisp.org>
37058
37059         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37060         m4/relocatable-lib.m4.
37061         (Depends-on): Remove 'relocatable'.
37062         (configure.ac): Add gl_RELOCATABLE_NOP.
37063
37064 2007-03-03  Bruno Haible  <bruno@clisp.org>
37065
37066         * modules/relocatable-prog-wrapper: New file.
37067         * modules/relocatable (Depends-on): Add it. Remove all other
37068         dependencies except progname.
37069         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37070
37071         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37072         (gl_FUNC_STRERROR): Nop.
37073         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37074
37075         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37076         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37077
37078         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37079         (gl_FUNC_READLINK): Update.
37080
37081         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37082
37083 2007-03-03  Bruno Haible  <bruno@clisp.org>
37084
37085         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37086         * modules/xreadlink (Depends-on): Add unistd.
37087         * modules/xreadlink-with-size (Depends-on): Likewise.
37088
37089 2007-03-03  Bruno Haible  <bruno@clisp.org>
37090
37091         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37092         extracted from gt_FUNC_SETENV.
37093         (gt_FUNC_SETENV): Remove macro.
37094         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37095         remove gt_FUNC_SETENV.
37096
37097 2007-03-03  Bruno Haible  <bruno@clisp.org>
37098
37099         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37100         ENABLE_RELOCATABLE here.
37101         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37102
37103 2007-03-03  Bruno Haible  <bruno@clisp.org>
37104
37105         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37106         * tests/test-rbtreehash_list.c: Include progname.h.
37107         (main): Call set_program_name.
37108
37109         * modules/rbtree-oset-tests (Depends-on): Add progname.
37110         * tests/test-rbtree_oset.c: Include progname.h.
37111         (main): Call set_program_name.
37112
37113         * modules/rbtree-list-tests (Depends-on): Add progname.
37114         * tests/test-rbtree_list.c: Include progname.h.
37115         (main): Call set_program_name.
37116
37117         * modules/linked-list-tests (Depends-on): Add progname.
37118         * tests/test-linked_list.c: Include progname.h.
37119         (main): Call set_program_name.
37120
37121 2007-03-03  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37124         All uses of __restrict changed to _Restrict_.
37125         * lib/glob_.h (__restrict): Remove macro.
37126
37127 2007-03-02  Bruno Haible  <bruno@clisp.org>
37128
37129         * modules/gettext (configure.ac): Require gettext infrastructure
37130         from version 0.16.1.
37131
37132 2007-03-02  Bruno Haible  <bruno@clisp.org>
37133
37134         * modules/linkedhash-list-tests (Depends-on): Add progname.
37135         * tests/test-linkedhash_list.c: Include progname.h.
37136         (main): Call set_program_name.
37137
37138         * modules/carray-list-tests (Depends-on): Add progname.
37139         * tests/test-carray_list.c: Include progname.h.
37140         (main): Call set_program_name.
37141
37142         * modules/avltreehash-list-tests (Depends-on): Add progname.
37143         * tests/test-avltreehash_list.c: Include progname.h.
37144         (main): Call set_program_name.
37145
37146         * modules/avltree-oset-tests (Depends-on): Add progname.
37147         * tests/test-avltree_oset.c: Include progname.h.
37148         (main): Call set_program_name.
37149
37150         * modules/avltree-list-tests (Depends-on): Add progname.
37151         * tests/test-avltree_list.c: Include progname.h.
37152         (main): Call set_program_name.
37153
37154         * modules/array-oset-tests (Depends-on): Add progname.
37155         * tests/test-array_oset.c: Include progname.h.
37156         (main): Call set_program_name.
37157
37158         * modules/array-list-tests (Depends-on): Add progname.
37159         * tests/test-array_list.c: Include progname.h.
37160         (main): Call set_program_name.
37161
37162         * modules/argp-tests (Depends-on): Add progname.
37163         * tests/test-argp.c: Include argp.h first. Include progname.h.
37164         (main): Call set_program_name.
37165
37166 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37167
37168         * doc/gnulib-tool.texi (Initial import): Reword description of
37169         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37170         limited effect even if defined after the first system include.
37171
37172 2007-03-01  Bruno Haible  <bruno@clisp.org>
37173
37174         * build-aux/config.libpath: Update to libtool-1.5.22.
37175         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37176
37177 2007-03-01  Bruno Haible  <bruno@clisp.org>
37178
37179         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37180         foo_CFLAGS.
37181         Reported by Ralf Wildenhues.
37182
37183 2007-03-01  Bruno Haible  <bruno@clisp.org>
37184
37185         * build-aux/install-reloc: Remove object files left over by some
37186         compilers.
37187         Reported by Ralf Wildenhues.
37188
37189 2007-03-01  Bruno Haible  <bruno@clisp.org>
37190
37191         * build-aux/install-reloc: Break long lines.
37192
37193 2007-03-01  Bruno Haible  <bruno@clisp.org>
37194
37195         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37196         Reported by Ralf Wildenhues.
37197
37198 2007-03-01  Bruno Haible  <bruno@clisp.org>
37199
37200         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37201         include ordering constraints.
37202
37203 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37204
37205         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37206         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37207         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37208         as another example.
37209         * lib/time_.h: Fix misspelling.
37210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37211         Require gl_HEADER_TIME_H_DEFAULTS.
37212         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37213         * m4/time_r.m4 (gl_TIME_R): Likewise.
37214         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37215
37216 2007-03-01  Bruno Haible  <bruno@clisp.org>
37217
37218         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37219         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37220
37221 2007-03-01  Jim Meyering  <jim@meyering.net>
37222
37223         * modules/xreadlink (Maintainer): Add my name.
37224         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37225
37226 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37227             Bruno Haible  <bruno@clisp.org>
37228
37229         * build-aux/install-reloc: Compile also c-ctype.c.
37230         * build-aux/relocatable.sh.in: New file.
37231         * doc/relocatable.texi: New file.
37232         * doc/relocatable-maint.texi: New file.
37233         * doc/gnulib.texi: Include relocatable-maint.texi.
37234         * lib/progreloc.c: Include unistd.h unconditionally.
37235         * lib/relocwrapper.c: Include unistd.h unconditionally.
37236         Include c-ctype.h.
37237         (add_dotbin): Use c_tolower.
37238         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37239         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37240         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37241         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37242         to m4/relocatable-lib.m4.
37243         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37244         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37245         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37246         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37247         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37248         * modules/relocatable: New file.
37249         * modules/relocatable-lib: New file.
37250         * modules/relocatable-script: New file.
37251
37252 2007-02-28  Bruno Haible  <bruno@clisp.org>
37253
37254         Import --enable-relocatable infrastructure.
37255         * build-aux/config.libpath: New file, from GNU gettext.
37256         * build-aux/install-reloc: New file, from GNU gettext.
37257         * build-aux/reloc-ldflags: New file, from GNU gettext.
37258         * lib/relocatable.h: New file, from GNU gettext.
37259         * lib/relocatable.c: New file, from GNU gettext.
37260         * lib/relocwrapper.c: New file, from GNU gettext.
37261         * m4/relocatable.m4: New file, from GNU gettext.
37262
37263 2007-02-28  Bruno Haible  <bruno@clisp.org>
37264
37265         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37266
37267         * modules/xreadlink: New file, from GNU gettext with modifications.
37268         * lib/xreadlink.c: New file, from GNU gettext.
37269         * lib/xreadlink.h: Add comments.
37270         (xreadlink): New declaration.
37271
37272         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37273         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37274         lib/xreadlink-with-size.c.
37275         (configure.ac): Remove gl_XREADLINK invocation.
37276         (Makefile.am): Augment lib_SOURCES.
37277         * m4/xreadlink.m4: Remove file.
37278         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37279         (xreadlink_with_size): Renamed from xreadink.
37280         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37281         * modules/canonicalize (Depends-on): Replace xreadlink with
37282         xreadlink-with-size.
37283         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37284
37285 2007-02-25  Jim Meyering  <jim@meyering.net>
37286
37287         * build-aux/announce-gen: When complaining about excess arguments,
37288         list them.
37289
37290 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37291
37292         * README: Document signed integer overflow situation more
37293         accurately.
37294
37295 2007-02-25  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37298         'a' or 'A' conversion.
37299
37300 2007-02-25  Bruno Haible  <bruno@clisp.org>
37301
37302         * modules/filename: Renamed from modules/pathname.
37303         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37304         lib/concatpath.c with lib/concat-filename.c.
37305         (Makefile.am): Update.
37306         (Include): Replace pathname.h with filename.h.
37307         * lib/filename.h: Renamed from lib/pathname.h.
37308         (concatenated_filename): Renamed from concatenated_pathname.
37309         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37310         (concatenated_filename): Renamed from concatenated_pathname.
37311         * lib/findprog.c: Include filename.h instead of pathname.h.
37312         (find_in_path): Update.
37313         * lib/javacomp.c: Include filename.h instead of pathname.h.
37314         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37315         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37316         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37317         is_oldgcj_14_13_usable, is_javac_usable): Update.
37318         * lib/javaexec.c: Include filename.h instead of pathname.h.
37319         (execute_java_class): Update.
37320         * modules/findprog: Update.
37321         * modules/javacomp: Update.
37322         * modules/javaexec: Update.
37323         * MODULES.html.sh (File system functions): Add 'filename', remove
37324         'pathname'.
37325
37326 2007-02-25  Bruno Haible  <bruno@clisp.org>
37327
37328         * modules/printf-frexpl-tests: New file.
37329         * tests/test-printf-frexpl.c: New file.
37330
37331         * modules/printf-frexpl: New file.
37332         * lib/printf-frexpl.h: New file.
37333         * lib/printf-frexpl.c: New file.
37334         * m4/printf-frexpl.m4: New file.
37335
37336 2007-02-25  Bruno Haible  <bruno@clisp.org>
37337
37338         * modules/printf-frexp-tests: New file.
37339         * tests/test-printf-frexp.c: New file.
37340
37341         * modules/printf-frexp: New file.
37342         * lib/printf-frexp.h: New file.
37343         * lib/printf-frexp.c: New file.
37344         * m4/printf-frexp.m4: New file.
37345
37346 2007-02-25  Bruno Haible  <bruno@clisp.org>
37347
37348         Assume automake >= 1.10 for the tests.
37349         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37350         * modules/arctwo-tests: Likewise.
37351         * modules/argp-tests: Likewise.
37352         * modules/avltree-list-tests: Likewise.
37353         * modules/avltree-oset-tests: Likewise.
37354         * modules/avltreehash-list-tests: Likewise.
37355         * modules/carray-list-tests: Likewise.
37356         * modules/crc-tests: Likewise.
37357         * modules/des-tests: Likewise.
37358         * modules/gc-arcfour-tests: Likewise.
37359         * modules/gc-arctwo-tests: Likewise.
37360         * modules/gc-des-tests: Likewise.
37361         * modules/gc-hmac-md5-tests: Likewise.
37362         * modules/gc-hmac-sha1-tests: Likewise.
37363         * modules/gc-md2-tests: Likewise.
37364         * modules/gc-md4-tests: Likewise.
37365         * modules/gc-md5-tests: Likewise.
37366         * modules/gc-pbkdf2-sha1-tests: Likewise.
37367         * modules/gc-rijndael-tests: Likewise.
37368         * modules/gc-sha1-tests: Likewise.
37369         * modules/gc-tests: Likewise.
37370         * modules/getaddrinfo-tests: Likewise.
37371         * modules/hmac-md5-tests: Likewise.
37372         * modules/hmac-sha1-tests: Likewise.
37373         * modules/linked-list-tests: Likewise.
37374         * modules/linkedhash-list-tests: Likewise.
37375         * modules/lock-tests: Likewise.
37376         * modules/md2-tests: Likewise.
37377         * modules/md4-tests: Likewise.
37378         * modules/md5-tests: Likewise.
37379         * modules/rbtree-list-tests: Likewise.
37380         * modules/rbtree-oset-tests: Likewise.
37381         * modules/rbtreehash-list-tests: Likewise.
37382         * modules/read-file-tests: Likewise.
37383         * modules/rijndael-tests: Likewise.
37384         * modules/stdint-tests: Likewise.
37385         * modules/tls-tests: Likewise.
37386
37387 2007-02-24  Bruno Haible  <bruno@clisp.org>
37388
37389         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37390         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37391         function; instead check whether isnan with a double argument links.
37392         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37393         function; instead check whether isnan with a 'long double' argument
37394         links.
37395         Reported by Eric Blake <ebb9@byu.net>.
37396
37397 2007-02-24  Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37400         defined.
37401         * lib/isnanl.c: Remove all code. Just include isnan.c.
37402         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37403
37404 2007-02-25  Jim Meyering  <jim@meyering.net>
37405
37406         Avoid conflicting types for 'unsetenv' on FreeBSD.
37407         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37408         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37409         in stdlib.h.
37410
37411 2007-02-24  Bruno Haible  <bruno@clisp.org>
37412
37413         * modules/isnanl-nolibm-tests: New file.
37414         * tests/test-isnanl.c: New file.
37415
37416         * modules/isnanl-nolibm: New file.
37417         * lib/isnanl.h: New file.
37418         * lib/isnanl.c: New file.
37419         * m4/isnanl.m4: New file.
37420
37421 2007-02-24  Bruno Haible  <bruno@clisp.org>
37422
37423         * modules/isnan-nolibm-tests: New file.
37424         * tests/test-isnan.c: New file.
37425
37426         * modules/isnan-nolibm: New file.
37427         * lib/isnan.h: New file.
37428         * lib/isnan.c: New file.
37429         * m4/isnan.m4: New file.
37430
37431 2007-02-24  Bruno Haible  <bruno@clisp.org>
37432
37433         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37434         assume that an exponent fits in 20 bits.
37435
37436 2007-02-24  Jim Meyering  <jim@meyering.net>
37437
37438         * m4/regex.m4: Update the description of the configure-time option,
37439         --without-included-regex, to state accurately what the defaults are,
37440         and perhaps to give people an idea why using this option is risky.
37441
37442 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37443
37444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37445         loops on small arguments.  This attempts to avoid the problem
37446         Bruno Haible reported for AIX 4.3.2 in
37447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37448
37449 2007-02-23  Bruno Haible  <bruno@clisp.org>
37450
37451         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37452         Needed for help2man.
37453
37454 2007-02-23  Karl Berry  <karl@gnu.org>
37455
37456         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37457         exists, foo.h should be cvs-ignored, not committed.
37458
37459 2007-02-23  Eric Blake  <ebb9@byu.net>
37460
37461         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37462         * lib/stat-time.h (includes): Likewise.
37463         * lib/utimecmp.c (includes): Likewise.
37464         * lib/utimens.h (includes): Likewise.
37465         * lib/getdate.y (includes): Also include "timespec.h" for use
37466         internal to the module.
37467         * modules/utimens (Depends-on): Revert yesterday's patch.
37468         * modules/nanosleep (Depends-on): Add missing dependency.
37469
37470 2007-02-22  Bruno Haible  <bruno@clisp.org>
37471
37472         * lib/glob.c: Don't include getlogin_r.h.
37473
37474 2007-02-22  Jim Meyering  <jim@meyering.net>
37475
37476         * modules/utimens (Depends-on): Add timespec, required for
37477         utimens.h's inclusion of timespec.h.
37478
37479 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37480
37481         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37482         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37483         Schwab in
37484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37485         I'll try to think of a better way to fix the Solaris problem.
37486
37487         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37488         like glibc; on Solaris 10, it fails with errno == EINVAL.
37489         POSIX says the behavior is unspecified if the first argument is NULL,
37490         so play it safe and never pass NULL to the system getcwd.
37491
37492 2007-02-21  Jim Meyering  <jim@meyering.net>
37493
37494         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37495         of gettimeofday.  It would conflict with the one now always
37496         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37497         an IRIX 6.5 build failure.
37498
37499 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37500
37501         Minor fixups to port to Solaris 10 with Sun C 5.8.
37502         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37503         * modules/getcwd (Depends-on): Add dirfd.
37504         * lib/putenv.c (putenv): #undef it.
37505         (rpl_putenv): New decl.
37506         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37507
37508 2007-02-20  Bruno Haible  <bruno@clisp.org>
37509
37510         * modules/stdio-tests: New file.
37511         * tests/test-stdio.c: New file.
37512
37513         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37514         (Depends-on): Add stdio.
37515         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37516         (Include): Use <stdio.h> instead of vsnprintf.h.
37517         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37518         HAVE_DECL_VSNPRINTF.
37519         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37520
37521         * modules/snprintf (Files): Remove lib/snprintf.h.
37522         (Depends-on): Add stdio.
37523         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37524         (Include): Use <stdio.h> instead of snprintf.h.
37525         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37526         HAVE_DECL_SNPRINTF.
37527         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37528         * lib/getaddrinfo.c: Likewise.
37529
37530         * modules/stdio: New file.
37531         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37532         * lib/snprintf.h: Remove file.
37533         * lib/vsnprintf.h: Remove file.
37534         * lib/.cppi-disable: Remove snprintf.h.
37535         * m4/stdio_h.m4: New file.
37536         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37537
37538 2007-02-20  Jim Meyering  <jim@meyering.net>
37539
37540         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37541         used by e.g., mingw.  From Bruno Haible.
37542
37543 2007-02-19  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37546         warnings.
37547         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37548
37549 2007-02-19  Bruno Haible  <bruno@clisp.org>
37550
37551         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37552         from mingw users.
37553
37554 2007-02-19  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37557         warnings.
37558         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37559
37560 2007-02-19  Jim Meyering  <jim@meyering.net>
37561
37562         Don't use FD after a successful "fdopendir (fd)".
37563         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37564         Reset it by calling dirfd on the just-obtained DIR*.
37565
37566         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37567         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37568
37569 2007-02-18  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/readlink.c: Include <unistd.h>.
37572         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37573         HAVE_READLINK.
37574         * modules/readlink (Depends-on): Add unistd.
37575         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37576         (Include): Add <unistd.h>.
37577
37578         * lib/getlogin_r.h: Remove file.
37579         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37580         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37581         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37582         HAVE_DECL_GETLOGIN_R.
37583         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37585         (Include): Use <unistd.h> instead of getlogin_r.h.
37586
37587         * lib/getcwd.h: Remove file.
37588         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37589         * lib/xgetcwd.c: Likewise.
37590         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37591         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37592         * modules/getcwd (Files): Remove lib/getcwd.h.
37593         (Depends-on): Add unistd.
37594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37595         (Include): Use <unistd.h> instad of getcwd.h.
37596
37597         * lib/ftruncate.c: Include <unistd.h> first.
37598         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37599         Set HAVE_FTRUNCATE.
37600         * modules/ftruncate (Depends-on): Add unistd.
37601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37602
37603         * lib/fchdir.c: Include <unistd.h> first.
37604         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37606         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37607         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37608         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37609
37610         * lib/dup2.c: Include <unistd.h> first.
37611         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37612         HAVE_DUP2.
37613         * modules/dup2 (Depends-on): Add unistd.
37614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37615
37616         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37617         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37618         REPLACE_CHOWN. Don't define chown as a macro here.
37619         * modules/chown (Depends-on): Add unistd.
37620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37621
37622         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37623         Add definition for GL_LINK_WARNING.
37624         (chown, dup2): New declarations.
37625         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37626         link warning.
37627         (ftruncate): New declaration.
37628         (getcwd): New declaration, taken from old getcwd.h.
37629         (getlogin_r): New declaration, taken from old getlogin_r.h.
37630         (readlink): New declaration.
37631         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37632         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37633         (gl_PREREQ_UNISTD): Remove macro.
37634         (gl_UNISTD_MODULE_INDICATOR): New macro.
37635         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37636         many new variables. Don't set UNISTD_H.
37637         * modules/unistd (Description): Change.
37638         (Depends-on): Add link-warning.
37639         (configure.ac): Update.
37640         (Makefile.am): Create unistd.h always. Substitute many new variables
37641         into it.
37642
37643 2007-02-18  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37646         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37647         HAVE_GETSUBOPT.
37648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37649         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37650         * lib/getsubopt.h: Remove file.
37651         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37652         (Depends-on): Add stdlib.
37653         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37654         (Includes): Use <stdlib.h> instead of getsubopt.h.
37655         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37656         Set HAVE_GETSUBOPT.
37657         * lib/getsubopt.c: Don't include getsubopt.h.
37658
37659 2007-02-18  Bruno Haible  <bruno@clisp.org>
37660
37661         * modules/fchdir (Depends-on): Add dup2.
37662
37663 2007-02-18  Bruno Haible  <bruno@clisp.org>
37664
37665         * lib/stdlib_.h: Handle glibc's special invocation convention
37666         specially.
37667
37668 2007-02-18  Bruno Haible  <bruno@clisp.org>
37669
37670         * modules/stdlib-tests: New file.
37671         * tests/test-stdlib.c: New file.
37672
37673         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37674         (Depends-on): Add stdlib.
37675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37676         (Includes): Use <stdlib.h> instead of mkstemp.h.
37677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37678         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37679         * lib/mkstemp.c: Don't include mkstemp.h.
37680         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37681         * lib/stdlib--.h: Don't include mkstemp.h.
37682
37683         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37684         (Depends-on): Add stdlib.
37685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37686         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37687         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37688         HAVE_MKDTEMP.
37689         * lib/mkdtemp.c: Don't include mkdtemp.h.
37690         * lib/clean-temp.c: Don't include mkdtemp.h.
37691
37692         * modules/exit (Files): Remove lib/exit.h.
37693         (Depends-on): Add stdlib.
37694         (Makefile.am): Remove lib_SOURCES.
37695         (Include): Use <stdlib.h> instead of exit.h.
37696         * lib/argmatch.c: Don't include exit.h.
37697         * lib/execute.c: Likewise.
37698         * lib/pagealign_alloc.c: Likewise.
37699         * lib/pipe.c: Likewise.
37700         * lib/wait-process.c: Likewise.
37701         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37702         * lib/exitfail.c: Likewise.
37703         * lib/savewd.c: Likewise.
37704         * lib/xsetenv.c: Likewise.
37705
37706         * modules/stdlib: New file.
37707         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37708         and extra comments about mkstemp().
37709         * lib/exit.h: Remove file.
37710         * lib/mkdtemp.h: Remove file.
37711         * lib/mkstemp.h: Remove file.
37712         * m4/stdlib_h.m4: New file.
37713         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37714
37715 2007-02-18  Bruno Haible  <bruno@clisp.org>
37716
37717         * modules/math-tests: New file.
37718         * tests/test-math.c: New file.
37719
37720         * modules/math: New file.
37721         * modules/mathl (Files): Remove lib/mathl.h.
37722         (Depends-on): Add math.
37723         (Makefile.am): Don't mention mathl.h.
37724         (Include): Use <math.h> instead of mathl.h.
37725         * lib/math_.h: New file.
37726         * lib/mathl.h: Remove file.
37727         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37728         mathl.h.
37729         * lib/asinl.c: Likewise.
37730         * lib/atanl.c: Likewise.
37731         * lib/ceill.c: Likewise.
37732         * lib/cosl.c: Likewise.
37733         * lib/expl.c: Likewise.
37734         * lib/floorl.c: Likewise.
37735         * lib/frexpl.c: Likewise.
37736         * lib/ldexpl.c: Likewise.
37737         * lib/logl.c: Likewise.
37738         * lib/sincosl.c: Likewise.
37739         * lib/sinl.c: Likewise.
37740         * lib/sqrtl.c: Likewise.
37741         * lib/tanl.c: Likewise.
37742         * lib/trigl.c: Likewise.
37743         * m4/math_h.m4: New file.
37744         * MODULES.html.sh (Mathematics): Add math.
37745
37746 2007-02-17  Bruno Haible  <bruno@clisp.org>
37747
37748         * modules/wctype-tests: New file.
37749         * tests/test-wctype.c: New file.
37750
37751         * modules/wchar-tests: New file.
37752         * tests/test-wchar.c: New file.
37753
37754         * modules/unistd-tests: New file.
37755         * tests/test-unistd.c: New file.
37756
37757         * modules/time-tests: New file.
37758         * tests/test-time.c: New file.
37759
37760         * modules/sysexits-tests: New file.
37761         * tests/test-sysexits.c: New file.
37762
37763         * modules/sys_time-tests: New file.
37764         * tests/test-sys_time.c: New file.
37765
37766         * modules/sys_stat-tests: New file.
37767         * tests/test-sys_stat.c: New file.
37768
37769         * modules/sys_socket-tests: New file.
37770         * tests/test-sys_socket.c: New file.
37771
37772         * modules/sys_select-tests: New file.
37773         * tests/test-sys_select.c: New file.
37774
37775         * modules/string-tests: New file.
37776         * tests/test-string.c: New file.
37777
37778         * modules/stdbool-tests: New file.
37779         * tests/test-stdbool.c: New file.
37780
37781         * modules/netinet_in-tests: New file.
37782         * tests/test-netinet_in.c: New file.
37783
37784         * modules/inttypes-tests: New file.
37785         * tests/test-inttypes.c: New file.
37786
37787         * modules/fcntl-tests: New file.
37788         * tests/test-fcntl.c: New file.
37789
37790         * modules/byteswap-tests: New file.
37791         * tests/test-byteswap.c: New file.
37792
37793         * modules/arpa_inet-tests: New file.
37794         * tests/test-arpa_inet.c: New file.
37795
37796 2007-02-17  Bruno Haible  <bruno@clisp.org>
37797
37798         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37799         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37800         if the corresponding module is not enabled. Emit link warnings if
37801         the function is used nevertheless.
37802         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37803         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37804         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37805         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37806         * modules/inttypes (Depends-on): Add link-warning.
37807         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37808         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37809         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37810         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37811         * modules/imaxdiv (configure.ac): Likewise.
37812         * modules/strtoimax (configure.ac): Likewise.
37813         * modules/strtoumax (configure.ac): Likewise.
37814
37815 2007-02-17  Bruno Haible  <bruno@clisp.org>
37816
37817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37818         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37820         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37821
37822 2007-02-17  Bruno Haible  <bruno@clisp.org>
37823
37824         * modules/link-warning: New file.
37825         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37826         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37827         * modules/string (Depends-on): Add link-warning.
37828         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37829         string.h.
37830         * MODULES.html.sh (Support for building libraries and executables): Add
37831         link-warning.
37832
37833 2007-02-17  Bruno Haible  <bruno@clisp.org>
37834
37835         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37836         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37837         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37838         long lines.
37839
37840 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37841             Bruno Haible  <bruno@clisp.org>
37842
37843         * modules/tmpfile: New file.
37844         * lib/tmpfile.c: New file.
37845         * m4/tmpfile.m4: New file.
37846         * MODULES.html.sh (func_all_modules): New section "Input/output".
37847
37848 2007-02-15  Bruno Haible  <bruno@clisp.org>
37849
37850         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37851         (supports_delete_on_close): New function.
37852         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37853
37854 2007-02-14  Bruno Haible  <bruno@clisp.org>
37855
37856         * modules/mbspcasecmp-tests: New file.
37857         * tests/test-mbspcasecmp.sh: New file.
37858         * tests/test-mbspcasecmp.c: New file.
37859
37860         New module mbspcasecmp.
37861         * modules/mbspcasecmp: New file.
37862         * lib/mbspcasecmp.c: New file.
37863         * lib/string_.h (strncasecmp): Change warning message.
37864         (mbspcasecmp): New declaration.
37865         * m4/mbspcasecmp.m4: New file.
37866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37867         GNULIB_MBSPCASECMP.
37868         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37869         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37870
37871 2007-02-14  Bruno Haible  <bruno@clisp.org>
37872
37873         * modules/mbsncasecmp-tests: New file.
37874         * tests/test-mbsncasecmp.sh: New file.
37875         * tests/test-mbsncasecmp.c: New file.
37876
37877         New module mbsncasecmp.
37878         * modules/mbsncasecmp: New file.
37879         * lib/mbsncasecmp.c: New file.
37880         * lib/string_.h (mbsncasecmp): New declaration.
37881         * m4/mbsncasecmp.m4: New file.
37882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37883         GNULIB_MBSNCASECMP.
37884         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37885         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37886
37887 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37888
37889         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37890         Verify that it doesn't overlap with our flags.
37891         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37892         do not have the desired effect in multibyte locales; instead, use
37893         mbscasecmp.
37894         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37895         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37896         we don't require GNU fnmatch ourselves (if our users require it, they
37897         should do so explicitly).
37898
37899         Fix regex code so it doesn't rely on strcasecmp.
37900         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37901         Otherwise, include gnulib's langinfo.h.
37902         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37903         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37904         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37905         * modules/regex (FILES): Remove m4/codeset.m4.
37906         (Depends-on): Add localcharset.  Remove strcase.
37907
37908 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37909
37910         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37912
37913 2007-02-13  Bruno Haible  <bruno@clisp.org>
37914
37915         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37916         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37917
37918 2007-02-12  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37921         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37922         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37923         time warning rather than a link error.
37924
37925 2007-02-12  Bruno Haible  <bruno@clisp.org>
37926
37927         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37928         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37930
37931 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37932
37933         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37934         args, not 2.
37935
37936 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37937
37938         New module 'time', so that apps can include <time.h> as per
37939         POSIX and GNU instead of separate include files like time_r.h
37940         and timegm.h.  This implementation tries out a simpler approach
37941         for replacing decls in standard include files (as compared to
37942         the string module), somewhat as an experiment.
37943
37944         * config/srclist.txt: Comment out mktime.c for now.
37945         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37946         since it doesn't apply any more.  Use generic wording instead.
37947         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37948         'time'.
37949         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37950         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37951         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37952         Don't include <sys/types.h>; no longer needed since we assume C89.
37953         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37954         * lib/strftime.c: Likewise.
37955         * lib/time_r.c: Likewise.
37956         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37957         * lib/nanosleep.c: Include <time.h> first, to check interface.
37958         * lib/strptime.c: Likewise.
37959         * lib/time_r.c: Likewise.
37960         * lib/timegm.c: Likewise.
37961         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37962         needed.
37963         * lib/timegm.c: Don't include timegm.h; no longer needed.
37964         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37965         time.h now handles any problems in that area.
37966         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37967         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37968         that time.h defines struct timespec.
37969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37970         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37971         handles that.
37972         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37973         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37974         needed.  Set REPLACE_LOCALTIME.
37975         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37976         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37977         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37978         nanosleep; time_h.m4 now does that.  Don't require
37979         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37980         module handles this now.
37981         * modules/getdate (Depends-on): Remove timespec.  Add time.
37982         * modules/nanosleep (Depends-on): Likewise.
37983         * modules/stat-time (Depends-on): Likewise.
37984         * modules/nanosleep (Include): Include time.h, not timespec.h.
37985         * modules/strptime (Files): Remove lib/strptime.h.
37986         (Depends-on): Add extensions, time.
37987         (Include): Include time.h, not strptime.h.
37988         * modules/time_r (Files): Remove lib/time_r.h.
37989         (Depends-on): Add time.
37990         (Include): Include time.h, not time_r.h.
37991         * modules/timegm: Likewise.
37992         * modules/timespec (Description): Now does timespec-related decls
37993         of our own, instead of struct timespec itself.
37994         (Depends-on): Add time; remove extensions.
37995         (Maintainer): Add self.
37996         * modules/utimecmp (Depends-on): Add time; remove timespec.
37997         * modules/utimens (Depends-on): Likewise.
37998         * modules/xnanosleep (Depends-on): Likewise.
37999
38000 2007-02-11  Bruno Haible  <bruno@clisp.org>
38001
38002         * lib/c-strstr.c: Include allocsa.h.
38003         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38004         * lib/c-strcasestr.c: Include allocsa.h.
38005         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38006         * lib/strcasestr.c: Include allocsa.h.
38007         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38008         * lib/mbsstr.c: Include allocsa.h.
38009         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38010         allocsa/freesa instead of malloc/free.
38011         * lib/mbscasestr.c: Include allocsa.h.
38012         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38013         allocsa/freesa instead of malloc/free.
38014         * modules/c-strstr (Depends-on): Add allocsa.
38015         * modules/c-strcasestr (Depends-on): Likewise.
38016         * modules/strcasestr (Depends-on): Likewise.
38017         * modules/mbsstr (Depends-on): Likewise.
38018         * modules/mbscasestr (Depends-on): Likewise.
38019
38020 2007-02-11  Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38023
38024         * modules/mbsspn-tests: New file.
38025         * tests/test-mbsspn.sh: New file.
38026         * tests/test-mbsspn.c: New file.
38027
38028 2007-02-11  Bruno Haible  <bruno@clisp.org>
38029
38030         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38031
38032         * modules/mbspbrk-tests: New file.
38033         * tests/test-mbspbrk.sh: New file.
38034         * tests/test-mbspbrk.c: New file.
38035
38036 2007-02-11  Bruno Haible  <bruno@clisp.org>
38037
38038         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38039         unneeded cast.
38040
38041         * modules/mbscspn-tests: New file.
38042         * tests/test-mbscspn.sh: New file.
38043         * tests/test-mbscspn.c: New file.
38044
38045 2007-02-11  Bruno Haible  <bruno@clisp.org>
38046
38047         * modules/mbscasecmp-tests: New file.
38048         * tests/test-mbscasecmp.sh: New file.
38049         * tests/test-mbscasecmp.c: New file.
38050
38051 2007-02-11  Bruno Haible  <bruno@clisp.org>
38052
38053         Ensure O(n) worst-case complexity of mbscasestr.
38054         * lib/mbscasestr.c: Include stdbool.h.
38055         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38056         functions.
38057         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38058         the bookkeeping indicates that it's worth it.
38059         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38060
38061         * modules/mbscasestr-tests: New file.
38062         * tests/test-mbscasestr1.c: New file.
38063         * tests/test-mbscasestr2.sh: New file.
38064         * tests/test-mbscasestr2.c: New file.
38065         * tests/test-mbscasestr3.sh: New file.
38066         * tests/test-mbscasestr3.c: New file.
38067         * tests/test-mbscasestr4.sh: New file.
38068         * tests/test-mbscasestr4.c: New file.
38069         * m4/locale-tr.m4: New file.
38070
38071 2007-02-11  Bruno Haible  <bruno@clisp.org>
38072
38073         Ensure O(n) worst-case complexity of mbsstr.
38074         * lib/mbsstr.c: Include stdbool.h.
38075         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38076         functions.
38077         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38078         bookkeeping indicates that it's worth it.
38079         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38080
38081         * modules/mbsstr-tests: New file.
38082         * tests/test-mbsstr1.c: New file.
38083         * tests/test-mbsstr2.sh: New file.
38084         * tests/test-mbsstr2.c: New file.
38085         * tests/test-mbsstr3.sh: New file.
38086         * tests/test-mbsstr3.c: New file.
38087         * m4/locale-fr.m4: New file.
38088
38089 2007-02-11  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/mbsrchr.c (mbsrchr): Fix bug.
38092
38093         * modules/mbsrchr-tests: New file.
38094         * tests/test-mbsrchr.sh: New file.
38095         * tests/test-mbsrchr.c: New file.
38096
38097 2007-02-11  Bruno Haible  <bruno@clisp.org>
38098
38099         * lib/mbschr.c (mbschr): Fix bug.
38100
38101         * modules/mbschr-tests: New file.
38102         * tests/test-mbschr.sh: New file.
38103         * tests/test-mbschr.c: New file.
38104         * m4/locale-zh.m4: New file.
38105
38106 2007-02-11  Bruno Haible  <bruno@clisp.org>
38107
38108         Support for copying multibyte string iterators.
38109         * lib/mbiter.h: Include <string.h>.
38110         (mbiter_multi_copy): New function.
38111         (mbi_copy): New macro.
38112         * lib/mbuiter.h: Include <string.h>.
38113         (mbuiter_multi_copy): New function.
38114         (mbui_copy): New macro.
38115
38116 2007-02-11  Bruno Haible  <bruno@clisp.org>
38117
38118         New module mbslen.
38119         * modules/mbslen: New file.
38120         * lib/mbslen.c: New file.
38121         * lib/string_.h (mbslen): New declaration.
38122         * m4/mbslen.m4: New file.
38123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38124         GNULIB_MBSLEN.
38125         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38126         * MODULES.html.sh (Internationalization functions): Add mbslen.
38127
38128 2007-02-11  Bruno Haible  <bruno@clisp.org>
38129
38130         Ensure O(n) worst-case complexity of strcasestr substitute.
38131         * lib/strcasestr.c: Include stdbool.h.
38132         (knuth_morris_pratt): New function.
38133         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38134         bookkeeping indicates that it's worth it.
38135         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38136
38137         * modules/strcasestr-tests: New file.
38138         * tests/test-strcasestr.c: New file.
38139
38140 2007-02-11  Bruno Haible  <bruno@clisp.org>
38141
38142         Ensure O(n) worst-case complexity of c_strcasestr.
38143         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38144         (knuth_morris_pratt): New function.
38145         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38146         the bookkeeping indicates that it's worth it.
38147         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38148
38149         * modules/c-strcasestr-tests: New file.
38150         * tests/test-c-strcasestr.c: New file.
38151
38152 2007-02-11  Bruno Haible  <bruno@clisp.org>
38153
38154         Ensure O(n) worst-case complexity of c_strstr.
38155         * lib/c-strstr.c: Include stdbool.h, string.h.
38156         (knuth_morris_pratt): New function.
38157         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38158         bookkeeping indicates that it's worth it.
38159         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38160
38161         * lib/c-strstr.c: Complete rewrite for maintainability.
38162
38163         * modules/c-strstr-tests: New file.
38164         * tests/test-c-strstr.c: New file.
38165
38166 2007-02-11  Bruno Haible  <bruno@clisp.org>
38167
38168         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38169         5.2.1 and earlier, whereby \055 was treated just like the range
38170         delimiter '-'.
38171         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38172
38173 2007-02-08  Bruno Haible  <bruno@clisp.org>
38174
38175         * modules/regex (Depends-on): Add stdbool.
38176         Reported by Dalibor Topic <robilad@kaffe.org>.
38177
38178 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38179
38180         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38181         Prefer returning from main to exiting from it.
38182         Remove unnecessary parens after sizeof.
38183
38184 2007-02-05  Bruno Haible  <bruno@clisp.org>
38185
38186         New module mbssep.
38187         * modules/mbssep: New file.
38188         * lib/mbssep.c: New file.
38189         * lib/string_.h (strsep): Add a conditional link warning.
38190         (mbssep): New declaration.
38191         * m4/mbssep.m4: New file.
38192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38193         GNULIB_MBSSEP.
38194         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38195         * MODULES.html.sh (Internationalization functions): Add mbssep.
38196
38197 2007-02-05  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38200         Optimize search in case of 1 delimiter.
38201
38202 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38203
38204         * lib/acl.h: Include sys/types.h before sys/acl.h.
38205
38206 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38207
38208         Merge upstream fix for glibc bugzilla #3957:
38209
38210         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38211
38212         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38213         bit for RE_HAT_LISTS_NOT_NEWLINE.
38214         (build_charclass_op): Remove bogus comment.
38215
38216 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38217
38218         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38219
38220 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38221
38222         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38223         * lib/memmem.c [!defined _LIBC]: Include config.h.
38224
38225 2007-02-04  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38228         warning message.
38229
38230 2007-02-04  Bruno Haible  <bruno@clisp.org>
38231
38232         New module mbstok_r.
38233         * modules/mbstok_r: New file.
38234         * lib/mbstok_r.c: New file.
38235         * lib/string_.h (strtok_r): Change argument names to match the
38236         comments. Add a conditional link warning.
38237         (mbstok_r): New declaration.
38238         * m4/mbstok_r.m4: New file.
38239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38240         GNULIB_MBSTOK_R.
38241         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38242         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38243
38244 2007-02-04  Bruno Haible  <bruno@clisp.org>
38245
38246         New module mbsspn.
38247         * modules/mbsspn: New file.
38248         * lib/mbsspn.c: New file.
38249         * lib/string_.h (strspn): Add a conditional link warning.
38250         (mbsspn): New declaration.
38251         * m4/mbsspn.m4: New file.
38252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38253         GNULIB_MBSSPN.
38254         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38255         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38256
38257 2007-02-04  Bruno Haible  <bruno@clisp.org>
38258
38259         New module mbspbrk.
38260         * modules/mbspbrk: New file.
38261         * lib/mbspbrk.c: New file.
38262         * lib/string_.h (strpbrk): Add a conditional link warning.
38263         (mbspbrk): New declaration.
38264         * m4/mbspbrk.m4: New file.
38265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38266         GNULIB_MBSPBRK.
38267         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38268         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38269
38270 2007-02-04  Bruno Haible  <bruno@clisp.org>
38271
38272         New module mbscspn.
38273         * modules/mbscspn: New file.
38274         * lib/mbscspn.c: New file.
38275         * lib/string_.h (strcspn): Add a conditional link warning.
38276         (mbscspn): New declaration.
38277         * m4/mbscspn.m4: New file.
38278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38279         GNULIB_MBSCSPN.
38280         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38281         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38282
38283 2007-02-04  Bruno Haible  <bruno@clisp.org>
38284
38285         New module mbscasestr, reduced goal of strcasestr.
38286         * modules/mbscasestr: New file.
38287         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38288         (mbscasestr): Renamed from strcasestr.
38289         * lib/strcasestr.c: Don't include mbuiter.h.
38290         (strcasestr): Remove support for multibyte locales.
38291         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38292         Change the conditional link warning.
38293         (mbscasestr): New declaration.
38294         * m4/mbscasestr.m4: New file.
38295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38296         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38297         REPLACE_STRCASESTR.
38298         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38300         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38301         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38302         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38303         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38304         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38305         (Depends-on): Remove mbuiter.
38306         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38307
38308 2007-02-04  Bruno Haible  <bruno@clisp.org>
38309
38310         Simplify handling of strncasecmp.
38311         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38312         the conditional link warning.
38313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38314         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38315         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38316         * modules/strcase (configure.ac): Don't invoke
38317         gl_STRING_MODULE_INDICATOR.
38318         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38319
38320 2007-02-04  Bruno Haible  <bruno@clisp.org>
38321
38322         New module mbscasecmp, reduced goal of strcasecmp.
38323         * modules/mbscasecmp: New file.
38324         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38325         (mbscasecmp): Renamed from strcasecmp.
38326         * lib/strcasecmp.c: Don't include mbuiter.h.
38327         (strcasecmp): Remove support for multibyte locales.
38328         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38329         Change the conditional link warning.
38330         (mbscasecmp): New declaration.
38331         * m4/mbscasecmp.m4: New file.
38332         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38333         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38334         REPLACE_STRCASECMP.
38335         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38337         GNULIB_MBSCASECMP.
38338         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38339         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38340         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38341         (Depends-on): Remove mbuiter.
38342         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38343
38344 2007-02-04  Bruno Haible  <bruno@clisp.org>
38345
38346         New module mbsstr. Remove module strstr.
38347         * modules/mbsstr: New file.
38348         * modules/strstr: Remove file.
38349         * lib/mbsstr.c: Renamed from lib/strstr.c.
38350         (mbsstr): Renamed from strstr.
38351         * lib/string_.h (strstr): Remove declaration. Change the conditional
38352         link warning.
38353         (mbsstr): New declaration.
38354         * m4/mbsstr.m4: New file.
38355         * m4/strstr.m4: Remove file.
38356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38357         REPLACE_STRSTR.
38358         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38359         Don't initialize GNULIB_STRSTR.
38360         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38361         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38362         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38363         (Support for systems lacking ANSI C 89): Remove strstr.
38364
38365 2007-02-04  Bruno Haible  <bruno@clisp.org>
38366
38367         New module mbsrchr.
38368         * modules/mbsrchr: New file.
38369         * lib/mbsrchr.c: New file.
38370         * lib/string_.h (strrchr): Add a conditional link warning.
38371         (mbsrchr): New declaration.
38372         * m4/mbsrchr.m4: New file.
38373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38374         GNULIB_MBSRCHR.
38375         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38376         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38377
38378 2007-02-04  Bruno Haible  <bruno@clisp.org>
38379
38380         New module mbschr.
38381         * modules/mbschr: New file.
38382         * lib/mbschr.c: New file.
38383         * lib/string_.h (strchr): Add a conditional link warning.
38384         (mbschr): New declaration.
38385         * m4/mbschr.m4: New file.
38386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38387         GNULIB_MBSCHR.
38388         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38389         * MODULES.html.sh (Internationalization functions): Add mbschr.
38390
38391 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38392
38393         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38394
38395         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38396
38397 2007-02-04  Bruno Haible  <bruno@clisp.org>
38398
38399         New module description section 'configure.ac-early'.
38400         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38401         (func_get_autoconf_early_snippet): New function.
38402         (func_import, func_create_testdir): Use it. Remove special cases for
38403         modules 'extensions' and 'lock'.
38404         * modules/extensions (configure.ac-early): Require
38405         gl_USE_SYSTEM_EXTENSIONS.
38406         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38407
38408 2007-02-04  Bruno Haible  <bruno@clisp.org>
38409
38410         Make use of gcj-4.3's -fsource and -ftarget option.
38411         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38412         and if so try the options -fsource and -ftarget.
38413         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38414         source_version, ftarget_option, target_version arguments.
38415         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38416         (is_envjavac_oldgcj_14_14_usable): Renamed from
38417         is_envjavac_gcj_14_14_usable.
38418         (is_envjavac_oldgcj_14_13_usable): Renamed from
38419         is_envjavac_gcj_14_13_usable.
38420         (is_gcj_present): Update.
38421         (is_gcj_43, is_gcj43_usable): New functions.
38422         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38423         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38424         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38425         try the options -fsource and -ftarget.
38426
38427 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38428
38429         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38430         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38431         larger value.
38432
38433 2007-02-03  Jim Meyering  <jim@meyering.net>
38434
38435         Give tools a better chance to allocate space for very large buffers.
38436         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38437
38438         Make pwd and readlink work also when run with an unreadable parent dir
38439         on systems with openat support.
38440         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38441         provided getcwd function, even when we have openat support.
38442         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38443
38444 2007-02-02  Bruno Haible  <bruno@clisp.org>
38445
38446         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38447         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38448         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38449         portability problems if one of these functions is only used on specific
38450         platforms.
38451         Reported by Paul Eggert.
38452
38453 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38454
38455         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38456         is causing more trouble than it's curing.
38457         * lib/regex_internal.h (__mempcpy): Remove.
38458         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38459         (and make the code a tad smaller to boot).
38460         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38461
38462 2007-02-02  Jim Meyering  <jim@meyering.net>
38463
38464         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38465         section, not in the Makefile.am: one.
38466
38467 2007-02-02  Eric Blake  <ebb9@byu.net>
38468
38469         * lib/strchrnul.c: Always include config.h first.
38470
38471         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38472         gnulib strstr is not necessary here.
38473
38474 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38475
38476         * m4/socklen.m4: Fix typo.
38477
38478 2007-02-02  Eric Blake  <ebb9@byu.net>
38479
38480         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38481         * modules/netinet_in (Makefile.am): Likewise.
38482
38483 2007-02-01  Bruno Haible  <bruno@clisp.org>
38484
38485         * lib/string_.h (GL_LINK_WARNING): New macro.
38486         (strcasecmp, strstr, strcasestr): If provided by the system,
38487         conditionally define as a macro that leads to a warning instead of to
38488         an error.
38489         (strncasecmp): Conditionally define as a macro that leads to a warning.
38490
38491 2007-02-01  Karl Berry  <karl@gnu.org>
38492
38493         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38494
38495 2007-02-01  Bruno Haible  <bruno@clisp.org>
38496
38497         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38498         renamings.
38499
38500 2007-02-01  Eric Blake  <ebb9@byu.net>
38501
38502         * modules/regex (Depends-on): Revert dependence on mempcpy.
38503         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38504         module's definition of mempcpy.
38505         Reported by Paul Eggert.
38506
38507 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38508
38509         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38510         the symbol XYZ before redefining it.  This fixes a problem with
38511         programs that don't use XYZ, when compiled on systems that define
38512         XYZ to something else.
38513
38514 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38515
38516         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38517         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38518         writeable to group or other and (2) is intended to have a special
38519         mode bit that is set or cleared.  In such a case, the directory
38520         should be neither group- nor other-writeable until the special
38521         mode bits are right.
38522
38523 2007-01-31  Eric Blake  <ebb9@byu.net>
38524
38525         * modules/mountlist (Depends-on): Add strstr.
38526
38527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38528         bug.
38529         * modules/string (Makefile.am): Remove redundant replacement.
38530         * modules/regex (Depends-on): Add mempcpy.
38531
38532 2007-01-31  Bruno Haible  <bruno@clisp.org>
38533
38534         New module description field 'Link'.
38535         * gnulib-tool (func_usage): Document --extract-link-directive.
38536         (sed_extract_prog): Recognize 'Link' directive.
38537         (func_get_link_directive): New function.
38538         (func_import): Show summary of link directives.
38539         Handle --extract-link-directive option.
38540         * modules/acl (Link): New section.
38541         * modules/clock-time (Link): New section.
38542         * modules/euidaccess (Link): New section.
38543         * modules/gettext (Link): New section.
38544         * modules/iconv (Link): New section.
38545         * modules/lock (Link): New section.
38546         * modules/nanosleep (Link): New section.
38547         * modules/readline (Link): New section.
38548
38549 2007-01-27  Bruno Haible  <bruno@clisp.org>
38550
38551         Enforce the use of gnulib modules for unportable <string.h> functions.
38552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38553         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38554         (gl_HEADER_STRING_H_BODY): Require it.
38555         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38556         the symbol XYZ to one that gives a link error.
38557         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38558         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38559         * modules/mempcpy (configure.ac): Likewise.
38560         * modules/memrchr (configure.ac): Likewise.
38561         * modules/stpcpy (configure.ac): Likewise.
38562         * modules/stpncpy (configure.ac): Likewise.
38563         * modules/strcase (configure.ac): Likewise.
38564         * modules/strcasestr (configure.ac): Likewise.
38565         * modules/strchrnul (configure.ac): Likewise.
38566         * modules/strdup (configure.ac): Likewise.
38567         * modules/strndup (configure.ac): Likewise.
38568         * modules/strnlen (configure.ac): Likewise.
38569         * modules/strpbrk (configure.ac): Likewise.
38570         * modules/strsep (configure.ac): Likewise.
38571         * modules/strstr (configure.ac): Likewise.
38572         * modules/strtok_r (configure.ac): Likewise.
38573
38574 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38575
38576         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38577
38578 2007-01-30  Jim Meyering  <jim@meyering.net>
38579
38580         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38581
38582 2007-01-29  Bruno Haible  <bruno@clisp.org>
38583
38584         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38585         * lib/execute.c: Likewise.
38586         * lib/pipe.c: Likewise.
38587         * lib/printf-args.h: Likewise.
38588         * lib/printf-args.c: Likewise.
38589         * lib/printf-parse.c: Likewise.
38590         * lib/vasnprintf.c: Likewise.
38591
38592 2007-01-29  Eric Blake  <ebb9@byu.net>
38593
38594         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38595         declaration.
38596
38597 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38598
38599         * lib/strptime.h (strptime): Use 'restrict' for args where
38600         POSIX requires this.
38601         * lib/strptime.c (strptime): Likewise.
38602         Change license notice from LGPL to GPL, since gnulib-tool will
38603         change this as needed.
38604         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38605         defined.
38606         Include "strptime.h" first, to check interface.
38607         Do not #undef _LIBC and _NL_CURRENT.
38608         Do not include <stdlib.h>; no longer needed.
38609         Include "time_r.h" and declare ptime_locale_status
38610         only if _LIBC is not defined.
38611         (__P): Remove unused macro.
38612         (match_string): Bring back glibc version, but use it only if _LIBC
38613         is defined.
38614         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38615         Remove unnecessary assertion and abort() call.
38616         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38617         * m4/strptime.m4: Fix serial number comment.
38618         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38619         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38620         (Depends-on): Add time_r.
38621
38622 2007-01-29  Bruno Haible  <bruno@clisp.org>
38623
38624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38625         strptime.
38626         * modules/strptime (Depends-on): Add stdbool.
38627         * lib/strptime.h: Include <time.h> always. Add comments.
38628
38629 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38630
38631         * modules/strptime: New file.
38632         * lib/strptime.h: New file.
38633         * lib/strptime.c: New file.
38634         * m4/strptime.m4: New file.
38635
38636 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38637
38638         * MODULES.html.sh: New module mpsort.
38639         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38640
38641         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38642         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38643         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38644         All uses changed.
38645         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38646         All uses changed.
38647         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38648         to _Restrict_.
38649         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38650         the parameter matches the prototype.
38651
38652 2007-01-28  Jim Meyering  <jim@meyering.net>
38653
38654         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38655         sys/time.h here, reverting that part of the previous patch:
38656         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38657
38658 2007-01-28  Bruno Haible  <bruno@clisp.org>
38659
38660         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38661         value of $(SYS_TIME_H).
38662         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38663         remove it conditionally, too. [added by Jim Meyering]
38664         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38665         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38666         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38667         GETTIMEOFDAY_REPLACEMENT to 1.
38668
38669 2007-01-28  Bruno Haible  <bruno@clisp.org>
38670
38671         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38672         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38674         Set UNISTD_H instead of UNISTD_H2.
38675         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38676
38677 2007-01-28  Bruno Haible  <bruno@clisp.org>
38678
38679         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38680         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38681
38682 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38683
38684         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38685         (func_create_testdir): Ensure C locale for `grep' and `tr'
38686         character ranges.
38687         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38688         ACLOCAL_AMFLAGS parsing state machine.
38689
38690 2007-01-27  Bruno Haible  <bruno@clisp.org>
38691
38692         * modules/unistr/base: Update.
38693
38694 2007-01-27  Bruno Haible  <bruno@clisp.org>
38695
38696         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38697         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38698         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38699         modules/unistr/u32-mbtouc.
38700         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38701         * lib/unistr.h: Update.
38702         * lib/linebreak.c: Update.
38703         * modules/unistr/u32-mbtouc: Renamed from
38704         modules/unistr/u32-mbtouc-safe.
38705         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38706         * lib/unistr.h: Update.
38707         * lib/unistr/u32-to-u8.c: Update.
38708         * lib/unistr/u32-to-u16.c: Update.
38709
38710 2007-01-27  Bruno Haible  <bruno@clisp.org>
38711
38712         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38713         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38714         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38715         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38716         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38717         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38718         modules/unistr/u16-mbtouc.
38719         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38720         * lib/unistr.h: Update.
38721         * lib/linebreak.c: Update.
38722         * modules/linebreak: Update.
38723         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38724         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38725         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38726         * modules/unistr/u16-mbtouc: Renamed from
38727         modules/unistr/u16-mbtouc-safe.
38728         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38729         * lib/unistr.h: Update.
38730         * lib/unistr/u16-to-u8.c: Update.
38731         * modules/unistr/u16-to-u8: Update.
38732         * lib/unistr/u16-to-u32.c: Update.
38733         * modules/unistr/u16-to-u32: Update.
38734
38735 2007-01-27  Bruno Haible  <bruno@clisp.org>
38736
38737         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38738         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38739         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38740         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38741         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38742         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38743         modules/unistr/u8-mbtouc.
38744         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38745         * lib/unistr.h: Update.
38746         * lib/striconveh.c: Update.
38747         * modules/striconveh: Update.
38748         * lib/linebreak.c: Update.
38749         * modules/linebreak: Update.
38750         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38751         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38752         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38753         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38754         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38755         * lib/unistr.h: Update.
38756         * lib/striconveh.c: Update.
38757         * modules/striconveh: Update.
38758         * lib/unistr/u8-to-u16.c: Update.
38759         * modules/unistr/u8-to-u16: Update.
38760         * lib/unistr/u8-to-u32.c: Update.
38761         * modules/unistr/u8-to-u32: Update.
38762
38763 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38764
38765         Sync from Libtool.
38766         * lib/argz.c: Do not include strings.h nor memory.h, include
38767         string.h unconditionally.  Patch by Simon Josefsson.
38768
38769 2007-01-27  Bruno Haible  <bruno@clisp.org>
38770
38771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38772         from gl_HEADER_STRING_H_BODY.
38773         (gl_HEADER_STRING_H_BODY): Require it.
38774         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38775         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38776         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38777         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38779         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38781         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38782         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38783         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38784         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38785         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38786         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38787         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38788         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38789
38790 2007-01-27  Bruno Haible  <bruno@clisp.org>
38791
38792         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38793         check_PROGRAMS into noinst_PROGRAMS.
38794         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38795         check_PROGRAMS in this case.
38796         (func_import): Set for_test to false.
38797         (func_create_testdir): Set for_test to true.
38798
38799 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38800             Bruno Haible  <bruno@clisp.org>
38801
38802         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38803         (Depends-on): Add string.
38804         (Includes): Use <string.h> instead of strcasestr.h.
38805         * modules/string (Makefile.am): Also substitute the value of
38806         REPLACE_STRCASESTR.
38807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38808         assume strcasestr is declared in <string.h> not <strings.h>. Also
38809         set REPLACE_STRCASESTR.
38810         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38811         REPLACE_STRCASESTR.
38812         * lib/strcasestr.h: Remove file.
38813         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38814         * lib/string_.h (strcasestr): New declaration.
38815
38816 2007-01-27  Bruno Haible  <bruno@clisp.org>
38817
38818         * lib/string_.h: Use 'extern'.
38819
38820 2007-01-27  Jim Meyering  <jim@meyering.net>
38821
38822         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38823         of set-but-not-used local, "q".
38824
38825         * lib/mempcpy.c: Include <config.h> before <string.h>.
38826         This fixes a compilation error on HP-UX, due to the system's
38827         "restrict"-using mempcpy prototype.
38828
38829 2007-01-26  Bruno Haible  <bruno@clisp.org>
38830
38831         Small optimization.
38832         * lib/javacomp.c: Include c-strstr.h.
38833          (is_envjavac_gcj): Use c_strstr instead of strstr.
38834         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38835
38836 2007-01-26  Bruno Haible  <bruno@clisp.org>
38837
38838         * MODULES.html.sh (Unicode string functions): Add the new modules.
38839
38840         * modules/uniconv/u32-strconv-to-locale: New file.
38841         * lib/uniconv/u32-strconv-to-locale.c: New file.
38842
38843         * modules/uniconv/u16-strconv-to-locale: New file.
38844         * lib/uniconv/u16-strconv-to-locale.c: New file.
38845
38846         * modules/uniconv/u8-strconv-to-locale: New file.
38847         * lib/uniconv/u8-strconv-to-locale.c: New file.
38848
38849         * modules/uniconv/u32-strconv-from-locale: New file.
38850         * lib/uniconv/u32-strconv-from-locale.c: New file.
38851
38852         * modules/uniconv/u16-strconv-from-locale: New file.
38853         * lib/uniconv/u16-strconv-from-locale.c: New file.
38854
38855         * modules/uniconv/u8-strconv-from-locale: New file.
38856         * lib/uniconv/u8-strconv-from-locale.c: New file.
38857
38858         * modules/uniconv/u32-strconv-to-enc: New file.
38859         * lib/uniconv/u32-strconv-to-enc.c: New file.
38860         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38861         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38862
38863         * modules/uniconv/u16-strconv-to-enc: New file.
38864         * lib/uniconv/u16-strconv-to-enc.c: New file.
38865         * lib/uniconv/u-strconv-to-enc.h: New file.
38866         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38867         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38868
38869         * modules/uniconv/u8-strconv-to-enc: New file.
38870         * lib/uniconv/u8-strconv-to-enc.c: New file.
38871         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38872         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38873
38874         * modules/uniconv/u32-strconv-from-enc: New file.
38875         * lib/uniconv/u32-strconv-from-enc.c: New file.
38876         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38877         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38878
38879         * modules/uniconv/u16-strconv-from-enc: New file.
38880         * lib/uniconv/u16-strconv-from-enc.c: New file.
38881         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38882         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38883
38884         * modules/uniconv/u8-strconv-from-enc: New file.
38885         * lib/uniconv/u8-strconv-from-enc.c: New file.
38886         * lib/uniconv/u-strconv-from-enc.h: New file.
38887         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38888         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38889
38890         * modules/uniconv/u32-conv-from-enc: New file.
38891         * lib/uniconv/u32-conv-from-enc.c: New file.
38892         * modules/uniconv/u32-conv-from-enc-tests: New file.
38893         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38894
38895         * modules/uniconv/u16-conv-from-enc: New file.
38896         * lib/uniconv/u16-conv-from-enc.c: New file.
38897         * lib/uniconv/u-conv-from-enc.h: New file.
38898         * modules/uniconv/u16-conv-from-enc-tests: New file.
38899         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38900
38901         * modules/uniconv/u8-conv-from-enc: New file.
38902         * lib/uniconv/u8-conv-from-enc.c: New file.
38903         * modules/uniconv/u8-conv-from-enc-tests: New file.
38904         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38905
38906         * modules/uniconv/base: New file.
38907         * lib/uniconv.h: New file.
38908
38909 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38910
38911         * doc/gnulib-tool.texi (Initial import): Update to match current
38912         behavior with strdup module.
38913         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38914         * lib/memmem.h: Remove; all uses removed.  This is now done
38915         by <string.h>.
38916         * lib/mempcpy.h: Likewise.
38917         * lib/memrchr.h: Likewise.
38918         * lib/stpcpy.h: Likewise.
38919         * lib/stpncpy.h: Likewise.
38920         * lib/strcase.h: Likewise.
38921         * lib/strchrnul.h: Likewise.
38922         * lib/strdup.h: Likewise.
38923         * lib/strndup.h: Likewise.
38924         * lib/strnlen.h: Likewise.
38925         * lib/strpbrk.h: Likewise.
38926         * lib/strsep.h: Likewise.
38927         * lib/strstr.h: Likewise.
38928         * lib/strtok_r.h: Likewise.
38929         * lib/string_.h: New file.
38930         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38931         Rely on <string.h> instead.
38932         * lib/canon-host.c: Likewise.
38933         * lib/chdir-long.c: Likewise.
38934         * lib/concatpath.c: Likewise.
38935         * lib/exclude.c: Likewise.
38936         * lib/fchdir.c: Likewise.
38937         * lib/getaddrinfo.c: Likewise.
38938         * lib/getcwd.c: Likewise.
38939         * lib/getsubopt.c: Likewise.
38940         * lib/glob.c: Likewise.
38941         * lib/hard-locale.c: Likewise.
38942         * lib/iconvme.c: Likewise.
38943         * lib/javacomp.c: Likewise.
38944         * lib/mempcpy.c: Likewise.
38945         * lib/memrchr.c: Likewise.
38946         * lib/regex_internal.h: Likewise.
38947         * lib/stpncpy.c: Likewise.
38948         * lib/strcasecmp.c: Likewise.
38949         * lib/strchrnul.c: Likewise.
38950         * lib/strdup.c: Likewise.
38951         * lib/striconv.c: Likewise.
38952         * lib/striconveh.c: Likewise.
38953         * lib/striconveha.c: Likewise.
38954         * lib/strncasecmp.c: Likewise.
38955         * lib/strndup.c: Likewise.
38956         * lib/strnlen.c: Likewise.
38957         * lib/strsep.c: Likewise.
38958         * lib/strstr.c: Likewise.
38959         * lib/strtok_r.c: Likewise.
38960         * lib/userspec.c: Likewise.
38961         * lib/w32spawn.h: Likewise.
38962         * lib/xstrndup.c: Likewise.
38963         * lib/mountlist.c (strstr): Remove decl.
38964         * m4/string_h.m4: New file.
38965         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38967         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38968         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38969         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38970         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38971         Set REPLACE_STRCASECMP if necessary.
38972         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38973         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38974         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38976         HAVE_DECL_STRDUP if necessary.
38977         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38978         since gl_FUNC_STRNDUP does that now.
38979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38980         Check for decl here...
38981         (gl_PREREQ_STRNLEN): ... not here.
38982         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38983         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38984         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38986         necessary.
38987         * modules/string: New file.
38988         * modules/memmem (Files): Remove special-purpose include file.
38989         (Depends-on): Add string.
38990         (Include): Include <string.h>, not the removed file.
38991         * modules/mempcpy: Likewise.
38992         * modules/memrchr: Likewise.
38993         * modules/stpcpy: Likewise.
38994         * modules/stpncpy: Likewise.
38995         * modules/strcase: Likewise.
38996         * modules/strchrnul: Likewise.
38997         * modules/strdup: Likewise.
38998         * modules/strndup: Likewise.
38999         * modules/strnlen: Likewise.
39000         * modules/strpbrk: Likewise.
39001         * modules/strsep: Likewise.
39002         * modules/strstr: Likewise.
39003         * modules/strtok_r: Likewise.
39004         * tests/test-dirname.c: Don't include "strdup.h", since
39005         <string.h> now suffices.
39006         * tests/test-memmem.c: Don't include "memmem.h", since
39007         <string.h> now suffices.
39008
39009 2007-01-25  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39012         *resultp is 0.
39013
39014         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39015         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39016         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39017         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39018
39019         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39020         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39021         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39022         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39023         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39024         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39025
39026 2007-01-24  Bruno Haible  <bruno@clisp.org>
39027
39028         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39030         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39031         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39032         gl_FUNC_FTS_CORE.
39033         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39034         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39035         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39036         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39037         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39038         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39039         gl_FUNC_FCHOWNAT.
39040         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39041         gl_FUNC_STRFTIME.
39042         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39043         Reported by Ralf Wildenhues.
39044
39045 2007-01-24  Bruno Haible  <bruno@clisp.org>
39046
39047         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39048         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39049         gl_GETADDRINFO.
39050         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39051         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39052         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39053
39054 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39055
39056         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39057         Don't use 'exit'; just return from 'main'.
39058         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39059
39060         * lib/fnmatch_.h: Readjust white space and comments to match
39061         glibc, to avoid spurious diffs.
39062
39063 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39064
39065         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39066         2004-12-01 change by Jakub Jelinek, since this code won't compile
39067         if !LIBC.  Problem reported by Bob Proulx.
39068
39069 2007-01-23  Bruno Haible  <bruno@clisp.org>
39070
39071         * lib/striconveh.c: Include c-strcaseeq.h.
39072         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39073         * modules/striconveh (Depends-on): Add c-strcaseeq.
39074
39075 2007-01-23  Bruno Haible  <bruno@clisp.org>
39076
39077         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39078
39079         * modules/c-strcaseeq: New file.
39080         * lib/c-strcaseeq.h: New file.
39081
39082         * modules/streq: New file.
39083         * lib/streq.h: New file.
39084
39085 2007-01-23  Bruno Haible  <bruno@clisp.org>
39086
39087         * modules/striconveha-tests: New file.
39088         * tests/test-striconveha.c: New file.
39089
39090         * lib/striconveha.h: Include <stdbool.h>.
39091         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39092         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39093         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39094         (mem_iconveha): New function.
39095         (str_iconveha_notranslit): Renamed from str_iconveha.
39096         (str_iconveha): New function.
39097         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39098         c-strcase.
39099
39100 2007-01-23  Bruno Haible  <bruno@clisp.org>
39101
39102         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39103         encodings without forgiving before trying any encoding with handler.
39104         (str_iconveha): Try all encodings without forgiving before trying any
39105         encoding with handler.
39106
39107 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39108
39109         Import the following changes from libc.
39110
39111         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39112
39113         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39114
39115         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39116
39117         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39118         normal_bracket label.
39119
39120         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39121
39122         [BZ #361]
39123         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39124         to normal_bracket after fetching the next character.
39125
39126 2007-01-22  Bruno Haible  <bruno@clisp.org>
39127
39128         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39129         argument.
39130         * lib/striconveh.c (iconv_carefully_1): New function.
39131         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39132         argument.
39133         (str_cd_iconveh): Update.
39134         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39135         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39136         * tests/test-striconveh.c (MAGIC): New macro.
39137         (new_offsets): New function.
39138         (main): Test call with and without offsets.
39139
39140 2007-01-22  Bruno Haible  <bruno@clisp.org>
39141
39142         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39143         * modules/sys_select (Makefile.am): Likewise.
39144         * modules/sys_socket (Makefile.am): Likewise.
39145         * modules/sys_time (Makefile.am): Likewise.
39146
39147 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39148
39149         * modules/gettimeofday (License): Change from GPL to LGPL, since
39150         gettimeofday is a library function.
39151
39152 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39153
39154         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39155
39156 2007-01-21  Bruno Haible  <bruno@clisp.org>
39157
39158         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39159
39160 2007-01-21  Bruno Haible  <bruno@clisp.org>
39161
39162         * modules/striconveha: New file.
39163         * lib/striconveha.h: New file.
39164         * lib/striconveha.c: New file.
39165         * MODULES.html.sh (Internationalization functions): Add striconveha.
39166         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39167         string.
39168         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39169
39170 2007-01-21  Bruno Haible  <bruno@clisp.org>
39171
39172         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39173         * lib/striconveh.c (str_iconveh): Likewise.
39174
39175 2007-01-21  Bruno Haible  <bruno@clisp.org>
39176
39177         * lib/striconveh.h (mem_iconveh): New declaration.
39178         * lib/striconveh.c (mem_iconveh): New function.
39179         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39180
39181 2007-01-21  Bruno Haible  <bruno@clisp.org>
39182
39183         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39184
39185         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39186         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39187         original result buffer.
39188         (str_cd_iconveh): Update.
39189         * tests/test-striconveh.c (main): Update.
39190
39191         * lib/striconv.h (mem_cd_iconv): Change specification.
39192         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39193         result buffer.
39194         (str_cd_iconv): Update.
39195         * tests/test-striconv.c (main): Update.
39196
39197 2007-01-21  Bruno Haible  <bruno@clisp.org>
39198
39199         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39200
39201 2007-01-20  Jim Meyering  <jim@meyering.net>
39202
39203         * lib/userspec.c (parse_with_separator): If a user or group string
39204         starts with "+", skip the corresponding name-to-ID look-up, since
39205         such a look-up must fail: user and group names may not include "+".
39206
39207 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39208
39209         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39210         since we now assume the sys_time module.
39211         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39212         check for sys/time.h; no longer needed.
39213         * modules/poll (Depends-on): Depend on sys_time.
39214
39215 2007-01-18  Bruno Haible  <bruno@clisp.org>
39216
39217         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39218         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39219
39220         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39221         gettimeofday.
39222
39223         * tests/test-gettimeofday.c: Include <time.h>.
39224         (dummy): Remove variable.
39225
39226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39227         gl_HEADER_SYS_TIME_H.
39228         (gl_HEADER_SYS_TIME_H): New macro.
39229
39230         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39231         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39232         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39233         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39234         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39235         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39236         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39237         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39238         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39239         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39240         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39241
39242         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39243         last change; it caused a compilation error when cross-compiling to
39244         Cygwin.
39245
39246 2007-01-18  Jim Meyering  <jim@meyering.net>
39247
39248         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39249         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39250         than the race-prone "test -d sys || mkdir sys".
39251         (configure.ac): Use AC_PROG_MKDIR_P.
39252         * modules/sys_select: Likewise.
39253         * modules/sys_socket: Likewise.
39254         * modules/sys_time: Likewise.
39255
39256 2007-01-18  Eric Blake  <ebb9@byu.net>
39257
39258         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39259         replace gettimeofday.
39260         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39261         name, to avoid infinite recursion.
39262
39263 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39264
39265         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39266         module sys_time.
39267         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39268         assume timespec.h defines struct timeval.
39269         * lib/settime.c: Likewise.
39270         * lib/utimens.c: Likewise.
39271         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39272         since we now assume the gettimeofday module.
39273         * lib/tempname.c (__gen_tempname): Likewise.
39274         * lib/gettimeofday.h: Remove.
39275         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39276         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39277         Include <time.h>, for 'time()'.
39278         (localtime_buffer_addr): Also use this workaround if
39279         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39280         to simplify the uses.  All uses changed.
39281         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39282         that #undef is inside {}, and 'const' follows type name consistently.
39283         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39284         (gettimeofday): Do not use the maximum possible value for
39285         tv->tv_usec, since that might break usages other than ls.c.
39286         Instead, we'll leave ls.c alone.  This undoes today's patch
39287         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39288         we've never observed the problem but might as well keep the
39289         canary.
39290         * lib/nanosleep.c: Include timespec.h first, for interface check.
39291         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39292         now assume the sys_time module.
39293         * lib/tempname.c: Likewise.
39294         * lib/timespec.h: Likewise.
39295         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39296         needed.
39297         * lib/strftime.c: Likewise.
39298         * lib/timespec.h: Likewise.
39299         * lib/posixtm.c: Include posixtm.h first, for interface check.
39300         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39301         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39302         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39303         * lib/sys_time_.h: New file.
39304         * lib/timespec.h (struct timespec): Use long int, not long.
39305         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39306         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39307         Remove obsolescent call to AC_HEADER_TIME.
39308         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39310         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39311         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39312         Likewise.
39313         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39314         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39316         into the sys_time module.  Check for gettimeofday just once.
39317         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39318         for gettimeofday signature to just check the signature.  Merely
39319         compile it, since linking doesn't test signature.  Improve test for
39320         whether gettimeofday.o is actually needed.
39321         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39322         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39323         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39324         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39325         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39326         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39327         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39328         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39329         than worrying about sys/time.h.
39330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39331         Don't bother worrying about TIME_WITH_SYS_TIME.
39332         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39333         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39334         * m4/sys_time_h.m4: New file.
39335         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39336         Don't include sys/time.h.  Return from main rather than exiting.
39337         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39338         all uses changed.
39339         * modules/gethrxtime (Depends-on): Add sys_time.
39340         * modules/gettime (Depends-on): Likewise.
39341         * modules/gettimeofday (Depends-on): Likewise.
39342         * modules/nanosleep (Depends-on): Likewise.
39343         * modules/settime (Depends-on): Likewise.
39344         * modules/tempname (Depends-on): Likewise.
39345         * modules/utimens (Depends-on): Likewise.
39346         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39347         (Include:) Change back to <sys/time.h>.
39348         (Maintainer:) Add self.
39349         * modules/sys_time: New file.
39350         * modules/tempname (Depends-on): Add gettimeofday.
39351         * tests/test-gettimeofday.c: Include <sys/time.h>
39352         rather than gettimeofday.h.
39353
39354 2007-01-17  Bruno Haible  <bruno@clisp.org>
39355
39356         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39357         the license default to GPL.
39358         (func_create_testdir): Don't complain if a module is LGPL and its
39359         tests module depends on GPLed modules.
39360
39361 2007-01-17  Bruno Haible  <bruno@clisp.org>
39362
39363         * lib/gettimeofday.c (gettimeofday): Add code for the case
39364         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39365         maximum possible value for tv->tv_usec, rather than the minimum one.
39366
39367 2005-10-08  Martin Lambers  <marlam@marlam.de>
39368 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39369 2007-01-16  Bruno Haible  <bruno@clisp.org>
39370
39371         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39372         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39373         gl_FUNC_GETTIMEOFDAY.
39374         (Include): Add gettimeofday.h.
39375         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39376         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39377         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39378         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39379         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39380         * lib/gettimeofday.h: New file.
39381         * lib/gettimeofday.c: Include <sys/timeb.h>.
39382         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39383         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39384         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39385         fall back on time().
39386
39387         * tests/test-gettimeofday.c: New file.
39388         * modules/gettimeofday-tests: New file.
39389
39390 2007-01-16  Eric Blake  <ebb9@byu.net>
39391
39392         * modules/fnmatch (Depends-on): Depend on wchar.
39393         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39394         * m4/fnmatch.m4: Likewise.
39395         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39396         * m4/mbchar.m4: Likewise.
39397         * modules/mbswidth (Depends-on): Depend on wchar.
39398         * lib/mbswidth.c: Assume <wchar.h>.
39399         * m4/mbswidth.m4: Likewise.
39400         * modules/quotearg (Depends-on): Depend on wchar.
39401         * lib/quotearg.c: Assume <wchar.h>.
39402         * m4/quotearg.m4: Likewise.
39403         * modules/regex (Depends-on): Depend on wchar.
39404         * lib/regex_internal.h: Assume <wchar.h>.
39405         * m4/regex.m4: Likewise.
39406         * modules/stdint (Depends-on): Depend on wchar.
39407         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39408         * m4/stdint.m4: Likewise.
39409         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39410         * modules/strftime (Depends-on): Depend on wchar.
39411         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39412         * modules/strtol (Depends-on): Depend on wchar.
39413         * lib/strtol.c: Assume <wchar.h>.
39414         * modules/wcwidth (Depends-on): Depend on wchar.
39415         * lib/wcwidth.h: Assume <wchar.h>.
39416         * m4/wcwidth.m4: Likewise.
39417
39418 2007-01-16  Bruno Haible  <bruno@clisp.org>
39419
39420         * modules/csharpexec-script: New, created from...
39421         * modules/csharpexec: ... this.
39422
39423 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39424
39425         * modules/javaexec-script: New, created from...
39426         * modules/javaexec: ... this.
39427
39428 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39429
39430         * modules/poll (Dependencies): Add sys_select.
39431
39432 2007-01-15  Jim Meyering  <jim@meyering.net>
39433
39434         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39435         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39436         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39437         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39438
39439 2007-01-15  Bruno Haible  <bruno@clisp.org>
39440
39441         * modules/striconveh: New file.
39442         * lib/striconveh.h: New file.
39443         * lib/striconveh.c: New file.
39444         * MODULES.html.sh (Internationalization functions): Add striconveh.
39445
39446         * modules/striconveh-tests: New file.
39447         * tests/test-striconveh.c: New file.
39448
39449 2007-01-15  Bruno Haible  <bruno@clisp.org>
39450
39451         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39452         not from GNU libiconv or GNU libc.
39453
39454 2007-01-15  Bruno Haible  <bruno@clisp.org>
39455
39456         * doc/gnulib-intro.texi (Copyright): Explain the different license
39457         terms for module descriptions, autoconf macros, tests, documentation.
39458
39459 2007-01-14  Bruno Haible  <bruno@clisp.org>
39460
39461         * modules/striconv-tests: New file.
39462         * tests/test-striconv.c: New file.
39463
39464 2007-01-14  Bruno Haible  <bruno@clisp.org>
39465
39466         * modules/iconv-tests: New file.
39467         * tests/test-iconv.c: New file.
39468
39469 2007-01-14  Bruno Haible  <bruno@clisp.org>
39470
39471         * gnulib-tool (func_get_license): For test modules, use the license of
39472         the main module.
39473
39474 2007-01-14  Bruno Haible  <bruno@clisp.org>
39475
39476         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39477         if iconv is found to exist.
39478
39479 2007-01-14  Bruno Haible  <bruno@clisp.org>
39480
39481         * modules/c-ctype-tests: New file.
39482         * tests/test-c-ctype.c: New file.
39483
39484 2007-01-14  Bruno Haible  <bruno@clisp.org>
39485
39486         * modules/binary-io-tests: New file.
39487         * tests/test-binary-io.sh: New file.
39488         * tests/test-binary-io.c: New file.
39489
39490 2007-01-14  Bruno Haible  <bruno@clisp.org>
39491
39492         * modules/array-oset-tests: New file.
39493         * tests/test-array_oset.c: New file.
39494
39495 2007-01-14  Bruno Haible  <bruno@clisp.org>
39496
39497         * modules/array-list-tests: New file.
39498         * tests/test-array_list.c: New file.
39499
39500 2007-01-14  Bruno Haible  <bruno@clisp.org>
39501
39502         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39503         and make.
39504         Reported by Simon Josefsson in
39505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39506
39507 2007-01-14  Bruno Haible  <bruno@clisp.org>
39508
39509         * modules/allocsa-tests: New file.
39510         * tests/test-allocsa.c: New file.
39511
39512 2007-01-14  Bruno Haible  <bruno@clisp.org>
39513
39514         * modules/fchdir (Depends-on): Add absolute-header.
39515         * modules/unistd (Depends-on): Likewise.
39516
39517 2006-12-30  Bruno Haible  <bruno@clisp.org>
39518
39519         * modules/fchdir: New file.
39520         * modules/unistd (Files): Add lib/unistd_.h.
39521         (Makefile.am): Generate unistd.h from unistd_.h.
39522         * lib/fchdir.c: New file.
39523         * lib/dirent_.h: New file.
39524         * lib/unistd_.h: New file.
39525         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39526         * m4/fchdir.m4: New file.
39527         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39528         (gl_HEADER_UNISTD): Invoke it.
39529         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39530         function.
39531         * lib/backupfile.c (opendir, closedir): Undefine.
39532         * lib/chown.c (open, close): Undefine.
39533         * lib/clean-temp.c (open, close): Undefine.
39534         * lib/copy-file.c (open, close): Undefine.
39535         * lib/execute.c (open, close): Undefine.
39536         * lib/fsusage.c (open, close): Undefine.
39537         * lib/gc-gnulib.c (open, close): Undefine.
39538         * lib/getcwd.c (opendir, closedir): Undefine.
39539         * lib/glob.c (opendir, closedir): Undefine.
39540         * lib/javacomp.c (open, close): Undefine.
39541         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39542         * lib/openat-proc.c (open, close): Undefine.
39543         * lib/pagealign_alloc.c (open, close): Undefine.
39544         * lib/pipe.c (open, close): Undefine.
39545         * lib/progreloc.c (open, close): Undefine.
39546         * lib/savedir.c (opendir, closedir): Undefine.
39547         * lib/utime.c (open, close): Undefine.
39548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39549
39550 2007-01-10  Bruno Haible  <bruno@clisp.org>
39551
39552         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39553
39554 2007-01-12  Eric Blake  <ebb9@byu.net>
39555
39556         Provide a robust <wchar.h>.  Further simplifications are now
39557         possible in other modules, but not included here.
39558         * modules/wchar: New module.
39559         * m4/wchar.m4: New file.
39560         * lib/wchar_.h: Likewise.
39561         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39562         of the new module.
39563         * MODULES.html.sh (Extended multibyte and wide character utilities):
39564         New section.
39565
39566 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39567
39568         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39569         to a reasonable default for memory allocation.
39570         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39571         file system that reports garbage st_size values for symlinks.
39572         Problem reported by Liyang Hu.
39573
39574 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39575
39576         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39577         Emacs .#* auto-save files).
39578
39579 2007-01-11  Bruno Haible  <bruno@clisp.org>
39580
39581         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39582         directory.
39583
39584 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39585
39586         Use @...@ consistently in lib/wctype_.h.
39587         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39588         on it being set to 1 or 0.
39589         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39590         go back to AC_SUBSTing it.
39591         * modules/wctype (Makefile.am): Undo previous change.
39592
39593 2007-01-10  Eric Blake  <ebb9@byu.net>
39594
39595         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39596         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39597         * modules/wctype (Makefile.am): Likewise.
39598         Reported by Chris McGuire.
39599
39600 2007-01-10  Jim Meyering  <jim@meyering.net>
39601
39602         fts.c: a small readability/maintainability improvement
39603         * lib/fts.c (fts_read): Make this code slightly more readable and
39604         maintainable by hoisting the "sp->fts_cur = p" assignments to
39605         immediately follow the statements that set P.  Derived from
39606         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39607
39608 2007-01-10  Eric Blake  <ebb9@byu.net>
39609
39610         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39611         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39613         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39614         Reported by Chris McGuire.
39615
39616 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39617
39618         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39619         in sed script.
39620
39621 2007-01-09  Bruno Haible  <bruno@clisp.org>
39622
39623         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39624         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39625         variables.
39626         (func_module): Use them.
39627
39628 2007-01-09  Bruno Haible  <bruno@clisp.org>
39629
39630         * modules/unistr/base: New file.
39631         * lib/unistr.h: New file.
39632
39633         * modules/unistr/u8-to-u16: New file.
39634         * lib/unistr/u8-to-u16.c: New file.
39635
39636         * modules/unistr/u8-to-u32: New file.
39637         * lib/unistr/u8-to-u32.c: New file.
39638
39639         * modules/unistr/u16-to-u8: New file.
39640         * lib/unistr/u16-to-u8.c: New file.
39641
39642         * modules/unistr/u16-to-u32: New file.
39643         * lib/unistr/u16-to-u32.c: New file.
39644
39645         * modules/unistr/u32-to-u8: New file.
39646         * lib/unistr/u32-to-u8.c: New file.
39647
39648         * modules/unistr/u32-to-u16: New file.
39649         * lib/unistr/u32-to-u16.c: New file.
39650
39651         * modules/unistr/u8-check: New file.
39652         * modules/unistr/u16-check: New file.
39653         * modules/unistr/u32-check: New file.
39654         * lib/unistr/u8-check.c: New file.
39655         * lib/unistr/u16-check.c: New file.
39656         * lib/unistr/u32-check.c: New file.
39657
39658         * modules/unistr/u8-chr: New file.
39659         * modules/unistr/u16-chr: New file.
39660         * modules/unistr/u32-chr: New file.
39661         * lib/unistr/u8-chr.c: New file.
39662         * lib/unistr/u16-chr.c: New file.
39663         * lib/unistr/u32-chr.c: New file.
39664
39665         * modules/unistr/u8-cmp: New file.
39666         * modules/unistr/u16-cmp: New file.
39667         * modules/unistr/u32-cmp: New file.
39668         * lib/unistr/u8-cmp.c: New file.
39669         * lib/unistr/u16-cmp.c: New file.
39670         * lib/unistr/u32-cmp.c: New file.
39671
39672         * modules/unistr/u8-cpy: New file.
39673         * modules/unistr/u16-cpy: New file.
39674         * modules/unistr/u32-cpy: New file.
39675         * lib/unistr/u8-cpy.c: New file.
39676         * lib/unistr/u16-cpy.c: New file.
39677         * lib/unistr/u32-cpy.c: New file.
39678         * lib/unistr/u-cpy.h: New file.
39679
39680         * modules/unistr/u8-cpy-alloc: New file.
39681         * modules/unistr/u16-cpy-alloc: New file.
39682         * modules/unistr/u32-cpy-alloc: New file.
39683         * lib/unistr/u8-cpy-alloc.c: New file.
39684         * lib/unistr/u16-cpy-alloc.c: New file.
39685         * lib/unistr/u32-cpy-alloc.c: New file.
39686         * lib/unistr/u-cpy-alloc.h: New file.
39687
39688         * modules/unistr/u8-endswith: New file.
39689         * modules/unistr/u16-endswith: New file.
39690         * modules/unistr/u32-endswith: New file.
39691         * lib/unistr/u8-endswith.c: New file.
39692         * lib/unistr/u16-endswith.c: New file.
39693         * lib/unistr/u32-endswith.c: New file.
39694         * lib/unistr/u-endswith.h: New file.
39695
39696         * modules/unistr/u8-mblen: New file.
39697         * modules/unistr/u16-mblen: New file.
39698         * modules/unistr/u32-mblen: New file.
39699         * lib/unistr/u8-mblen.c: New file.
39700         * lib/unistr/u16-mblen.c: New file.
39701         * lib/unistr/u32-mblen.c: New file.
39702
39703         * modules/unistr/u8-mbtouc: New file.
39704         * modules/unistr/u16-mbtouc: New file.
39705         * modules/unistr/u32-mbtouc: New file.
39706         * lib/unistr/u8-mbtouc.c: New file.
39707         * lib/unistr/u16-mbtouc.c: New file.
39708         * lib/unistr/u32-mbtouc.c: New file.
39709
39710         * modules/unistr/u8-mbtouc-safe: New file.
39711         * modules/unistr/u16-mbtouc-safe: New file.
39712         * modules/unistr/u32-mbtouc-safe: New file.
39713         * lib/unistr/u8-mbtouc-safe.c: New file.
39714         * lib/unistr/u16-mbtouc-safe.c: New file.
39715         * lib/unistr/u32-mbtouc-safe.c: New file.
39716
39717         * modules/unistr/u8-move: New file.
39718         * modules/unistr/u16-move: New file.
39719         * modules/unistr/u32-move: New file.
39720         * lib/unistr/u8-move.c: New file.
39721         * lib/unistr/u16-move.c: New file.
39722         * lib/unistr/u32-move.c: New file.
39723         * lib/unistr/u-move.h: New file.
39724
39725         * modules/unistr/u8-next: New file.
39726         * modules/unistr/u16-next: New file.
39727         * modules/unistr/u32-next: New file.
39728         * lib/unistr/u8-next.c: New file.
39729         * lib/unistr/u16-next.c: New file.
39730         * lib/unistr/u32-next.c: New file.
39731
39732         * modules/unistr/u8-prev: New file.
39733         * modules/unistr/u16-prev: New file.
39734         * modules/unistr/u32-prev: New file.
39735         * lib/unistr/u8-prev.c: New file.
39736         * lib/unistr/u16-prev.c: New file.
39737         * lib/unistr/u32-prev.c: New file.
39738
39739         * modules/unistr/u8-set: New file.
39740         * modules/unistr/u16-set: New file.
39741         * modules/unistr/u32-set: New file.
39742         * lib/unistr/u8-set.c: New file.
39743         * lib/unistr/u16-set.c: New file.
39744         * lib/unistr/u32-set.c: New file.
39745         * lib/unistr/u-set.h: New file.
39746
39747         * modules/unistr/u8-startswith: New file.
39748         * modules/unistr/u16-startswith: New file.
39749         * modules/unistr/u32-startswith: New file.
39750         * lib/unistr/u8-startswith.c: New file.
39751         * lib/unistr/u16-startswith.c: New file.
39752         * lib/unistr/u32-startswith.c: New file.
39753         * lib/unistr/u-startswith.h: New file.
39754
39755         * modules/unistr/u8-stpcpy: New file.
39756         * modules/unistr/u16-stpcpy: New file.
39757         * modules/unistr/u32-stpcpy: New file.
39758         * lib/unistr/u8-stpcpy.c: New file.
39759         * lib/unistr/u16-stpcpy.c: New file.
39760         * lib/unistr/u32-stpcpy.c: New file.
39761         * lib/unistr/u-stpcpy.h: New file.
39762
39763         * modules/unistr/u8-stpncpy: New file.
39764         * modules/unistr/u16-stpncpy: New file.
39765         * modules/unistr/u32-stpncpy: New file.
39766         * lib/unistr/u8-stpncpy.c: New file.
39767         * lib/unistr/u16-stpncpy.c: New file.
39768         * lib/unistr/u32-stpncpy.c: New file.
39769         * lib/unistr/u-stpncpy.h: New file.
39770
39771         * modules/unistr/u8-strcat: New file.
39772         * modules/unistr/u16-strcat: New file.
39773         * modules/unistr/u32-strcat: New file.
39774         * lib/unistr/u8-strcat.c: New file.
39775         * lib/unistr/u16-strcat.c: New file.
39776         * lib/unistr/u32-strcat.c: New file.
39777         * lib/unistr/u-strcat.h: New file.
39778
39779         * modules/unistr/u8-strchr: New file.
39780         * modules/unistr/u16-strchr: New file.
39781         * modules/unistr/u32-strchr: New file.
39782         * lib/unistr/u8-strchr.c: New file.
39783         * lib/unistr/u16-strchr.c: New file.
39784         * lib/unistr/u32-strchr.c: New file.
39785
39786         * modules/unistr/u8-strcmp: New file.
39787         * modules/unistr/u16-strcmp: New file.
39788         * modules/unistr/u32-strcmp: New file.
39789         * lib/unistr/u8-strcmp.c: New file.
39790         * lib/unistr/u16-strcmp.c: New file.
39791         * lib/unistr/u32-strcmp.c: New file.
39792
39793         * modules/unistr/u8-strcpy: New file.
39794         * modules/unistr/u16-strcpy: New file.
39795         * modules/unistr/u32-strcpy: New file.
39796         * lib/unistr/u8-strcpy.c: New file.
39797         * lib/unistr/u16-strcpy.c: New file.
39798         * lib/unistr/u32-strcpy.c: New file.
39799         * lib/unistr/u-strcpy.h: New file.
39800
39801         * modules/unistr/u8-strcspn: New file.
39802         * modules/unistr/u16-strcspn: New file.
39803         * modules/unistr/u32-strcspn: New file.
39804         * lib/unistr/u8-strcspn.c: New file.
39805         * lib/unistr/u16-strcspn.c: New file.
39806         * lib/unistr/u32-strcspn.c: New file.
39807         * lib/unistr/u-strcspn.h: New file.
39808
39809         * modules/unistr/u8-strdup: New file.
39810         * modules/unistr/u16-strdup: New file.
39811         * modules/unistr/u32-strdup: New file.
39812         * lib/unistr/u8-strdup.c: New file.
39813         * lib/unistr/u16-strdup.c: New file.
39814         * lib/unistr/u32-strdup.c: New file.
39815         * lib/unistr/u-strdup.h: New file.
39816
39817         * modules/unistr/u8-strlen: New file.
39818         * modules/unistr/u16-strlen: New file.
39819         * modules/unistr/u32-strlen: New file.
39820         * lib/unistr/u8-strlen.c: New file.
39821         * lib/unistr/u16-strlen.c: New file.
39822         * lib/unistr/u32-strlen.c: New file.
39823         * lib/unistr/u-strlen.h: New file.
39824
39825         * modules/unistr/u8-strmblen: New file.
39826         * modules/unistr/u16-strmblen: New file.
39827         * modules/unistr/u32-strmblen: New file.
39828         * lib/unistr/u8-strmblen.c: New file.
39829         * lib/unistr/u16-strmblen.c: New file.
39830         * lib/unistr/u32-strmblen.c: New file.
39831
39832         * modules/unistr/u8-strmbtouc: New file.
39833         * modules/unistr/u16-strmbtouc: New file.
39834         * modules/unistr/u32-strmbtouc: New file.
39835         * lib/unistr/u8-strmbtouc.c: New file.
39836         * lib/unistr/u16-strmbtouc.c: New file.
39837         * lib/unistr/u32-strmbtouc.c: New file.
39838
39839         * modules/unistr/u8-strncat: New file.
39840         * modules/unistr/u16-strncat: New file.
39841         * modules/unistr/u32-strncat: New file.
39842         * lib/unistr/u8-strncat.c: New file.
39843         * lib/unistr/u16-strncat.c: New file.
39844         * lib/unistr/u32-strncat.c: New file.
39845         * lib/unistr/u-strncat.h: New file.
39846
39847         * modules/unistr/u8-strncmp: New file.
39848         * modules/unistr/u16-strncmp: New file.
39849         * modules/unistr/u32-strncmp: New file.
39850         * lib/unistr/u8-strncmp.c: New file.
39851         * lib/unistr/u16-strncmp.c: New file.
39852         * lib/unistr/u32-strncmp.c: New file.
39853
39854         * modules/unistr/u8-strncpy: New file.
39855         * modules/unistr/u16-strncpy: New file.
39856         * modules/unistr/u32-strncpy: New file.
39857         * lib/unistr/u8-strncpy.c: New file.
39858         * lib/unistr/u16-strncpy.c: New file.
39859         * lib/unistr/u32-strncpy.c: New file.
39860         * lib/unistr/u-strncpy.h: New file.
39861
39862         * modules/unistr/u8-strnlen: New file.
39863         * modules/unistr/u16-strnlen: New file.
39864         * modules/unistr/u32-strnlen: New file.
39865         * lib/unistr/u8-strnlen.c: New file.
39866         * lib/unistr/u16-strnlen.c: New file.
39867         * lib/unistr/u32-strnlen.c: New file.
39868         * lib/unistr/u-strnlen.h: New file.
39869
39870         * modules/unistr/u8-strpbrk: New file.
39871         * modules/unistr/u16-strpbrk: New file.
39872         * modules/unistr/u32-strpbrk: New file.
39873         * lib/unistr/u8-strpbrk.c: New file.
39874         * lib/unistr/u16-strpbrk.c: New file.
39875         * lib/unistr/u32-strpbrk.c: New file.
39876         * lib/unistr/u-strpbrk.h: New file.
39877
39878         * modules/unistr/u8-strrchr: New file.
39879         * modules/unistr/u16-strrchr: New file.
39880         * modules/unistr/u32-strrchr: New file.
39881         * lib/unistr/u8-strrchr.c: New file.
39882         * lib/unistr/u16-strrchr.c: New file.
39883         * lib/unistr/u32-strrchr.c: New file.
39884
39885         * modules/unistr/u8-strspn: New file.
39886         * modules/unistr/u16-strspn: New file.
39887         * modules/unistr/u32-strspn: New file.
39888         * lib/unistr/u8-strspn.c: New file.
39889         * lib/unistr/u16-strspn.c: New file.
39890         * lib/unistr/u32-strspn.c: New file.
39891         * lib/unistr/u-strspn.h: New file.
39892
39893         * modules/unistr/u8-strstr: New file.
39894         * modules/unistr/u16-strstr: New file.
39895         * modules/unistr/u32-strstr: New file.
39896         * lib/unistr/u8-strstr.c: New file.
39897         * lib/unistr/u16-strstr.c: New file.
39898         * lib/unistr/u32-strstr.c: New file.
39899         * lib/unistr/u-strstr.h: New file.
39900
39901         * modules/unistr/u8-strtok: New file.
39902         * modules/unistr/u16-strtok: New file.
39903         * modules/unistr/u32-strtok: New file.
39904         * lib/unistr/u8-strtok.c: New file.
39905         * lib/unistr/u16-strtok.c: New file.
39906         * lib/unistr/u32-strtok.c: New file.
39907         * lib/unistr/u-strtok.h: New file.
39908
39909         * modules/unistr/u8-uctomb: New file.
39910         * modules/unistr/u16-uctomb: New file.
39911         * modules/unistr/u32-uctomb: New file.
39912         * lib/unistr/u8-uctomb.c: New file.
39913         * lib/unistr/u16-uctomb.c: New file.
39914         * lib/unistr/u32-uctomb.c: New file.
39915
39916         * MODULES.html.sh (Unicode string functions): Add the new modules.
39917
39918 2007-01-08  Bruno Haible  <bruno@clisp.org>
39919
39920         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39921         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39922         subdirectories.
39923
39924 2007-01-08  Karl Berry  <karl@gnu.org>
39925
39926         * doc/error.texi: mention that main() fns must set program_name
39927         when progname is used.
39928
39929 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39930
39931         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39932         WCTYPE_H is empty, for the benefit of builds from non-distclean
39933         directories.  Problem reported by Eric Blake in
39934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39935
39936 2007-01-08  Bruno Haible  <bruno@clisp.org>
39937
39938         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39939         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39940         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39941         PROVIDE_CANONICALIZE_FILENAME_MODE.
39942         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39943
39944 2007-01-08  Bruno Haible  <bruno@clisp.org>
39945
39946         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39947         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39948         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39949         * lib/fts.c: Likewise.
39950         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39951
39952 2006-12-25  Bruno Haible  <bruno@clisp.org>
39953
39954         * modules/utf8-ucs4-safe: New file.
39955         * lib/utf8-ucs4-safe.h: New file.
39956         * lib/unistr/utf8-ucs4-safe.c: New file.
39957
39958         * modules/utf16-ucs4-safe: New file.
39959         * lib/utf16-ucs4-safe.h: New file.
39960         * lib/unistr/utf16-ucs4-safe.c: New file.
39961
39962         * MODULES.html.sh (Unicode string functions): Add the new modules.
39963
39964 2007-01-08  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39967         (Depends-on): Add unitypes.
39968         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39969         (u8_mbtouc_aux): Move out to separate file.
39970         (u8_mbtouc): Use ucs4_t, uint8_t types.
39971         * lib/unistr/utf8-ucs4.c: New file.
39972
39973         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39974         (Depends-on): Add unitypes.
39975         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39976         (u16_mbtouc_aux): Move out to separate file.
39977         (u16_mbtouc): Use ucs4_t, uint16_t types.
39978         * lib/unistr/utf16-ucs4.c: New file.
39979
39980         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39981         (Depends-on): Add unitypes.
39982         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39983         (u8_uctomb_aux): Move out to separate file.
39984         (u8_uctomb): Use ucs4_t, uint8_t types.
39985         * lib/unistr/ucs4-utf8.c: New file.
39986
39987         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39988         (Depends-on): Add unitypes.
39989         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39990         (u16_uctomb_aux): Move out to separate file.
39991         (u16_uctomb): Use ucs4_t, uint16_t types.
39992         * lib/unistr/ucs4-utf16.c: New file.
39993
39994 2006-12-25  Bruno Haible  <bruno@clisp.org>
39995
39996         * modules/unitypes: New file.
39997         * lib/unitypes.h: New file.
39998         * MODULES.html.sh (func_all_modules): New section "Unicode string
39999         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40000         this section. Add unitypes.
40001
40002 2007-01-08  Bruno Haible  <bruno@clisp.org>
40003
40004         Avoid variable names that conflict with those from libtool.
40005         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40006         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40007         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40008         library_names_spec to acl_library_names_spec, hardcode_* to
40009         acl_hardcode_*.
40010         Reported by Ralf Wildenhues.
40011
40012 2007-01-08  Bruno Haible  <bruno@clisp.org>
40013
40014         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40015         definition.
40016         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40017         definition.
40018         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40019         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40020         definition.
40021         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40022         definition.
40023         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40024         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40025         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40026         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40027         definition.
40028         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40029         definition.
40030         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40031         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40032         GC_USE_<algorithm>.
40033         * lib/gc-libgcrypt.c: Likewise.
40034         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40035         * modules/gc-arctwo (configure.ac): Likewise.
40036         * modules/gc-des (configure.ac): Likewise.
40037         * modules/gc-hmac-md5 (configure.ac): Likewise.
40038         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40039         * modules/gc-md2 (configure.ac): Likewise.
40040         * modules/gc-md4 (configure.ac): Likewise.
40041         * modules/gc-md5 (configure.ac): Likewise.
40042         * modules/gc-random (configure.ac): Likewise.
40043         * modules/gc-rijndael (configure.ac): Likewise.
40044         * modules/gc-sha1 (configure.ac): Likewise.
40045
40046 2007-01-08  Bruno Haible  <bruno@clisp.org>
40047
40048         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40049         macro definition.
40050         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40051         definition.
40052         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40053         definition.
40054         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40055         * modules/fcntl-safer (configure.ac): Likewise.
40056         * modules/fopen-safer (configure.ac): Likewise.
40057         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40058         GNULIB_FWRITEERROR macro definition.
40059
40060 2007-01-08  Bruno Haible  <bruno@clisp.org>
40061
40062         * m4/gnulib-common.m4: New file.
40063         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40064         (func_get_filelist): Add m4/gnulib-common.m4.
40065
40066 2007-01-08  Bruno Haible  <bruno@clisp.org>
40067
40068         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40069         command.
40070
40071 2007-01-08  Jim Meyering  <jim@meyering.net>
40072
40073         Use a more robust test for a "can't happen" condition.
40074         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40075         narrowed the st_size value.  Presuming the "can't happen" condition
40076         is true, that narrowing could conceivably convert an invalid st_size
40077         value into a valid one.  Instead, use a change based on Matthew
40078         Woehlke's original patch.
40079
40080         Slight readability improvement: use an assert-like macro
40081         in place of literal "abort ()" uses.
40082         * lib/fts.c (fts_assert): Define.
40083         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40084         Use this macro instead of a bare 'abort'.
40085
40086 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40087
40088         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40089         simply work around them.
40090         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40091         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40092         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40093         declaring.
40094         Don't bother to define as macros, since the standard doesn't require it.
40095         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40096         longer worry about IRIX 5.3.
40097         (HAVE_WCTYPE_CTMP_BUG): Remove.
40098
40099 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40100
40101         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40102         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40103         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40104         Problems reported by Georg Schwarz for IRIX 5.3.
40105
40106         * gnulib-tool (autoconf_minversion): Take the maximum version number
40107         found, not the minimum.  Problem reported by James Youngman.
40108
40109 2007-01-03  Karl Berry  <karl@gnu.org>
40110
40111         * doc/error.texi: new file, explaining interaction with progname.
40112         * doc/gnulib.texi: include it.  Update copyright.
40113
40114 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40115
40116         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40117         AC_CANONICAL_HOST, to improve autobuild outputs.
40118
40119 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40120             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40121
40122         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40123         sockets, server sockets, and other file descriptors.  Count errors
40124         to compute the return value.  Reorder the code a bit to be easier
40125         to follow.  Don't set event bits that were not requested (except
40126         POLLERR and POLLHUP).
40127
40128 2007-01-01  Bruno Haible  <bruno@clisp.org>
40129
40130         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40131
40132 2007-01-03  Jim Meyering  <jim@meyering.net>
40133
40134         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40135
40136 2007-01-02  Bruno Haible  <bruno@clisp.org>
40137
40138         * modules/settime (Include): Require timespec.h.
40139         * modules/nanosleep (Include): Likewise.
40140
40141 2007-01-01  Bruno Haible  <bruno@clisp.org>
40142
40143         * gnulib-tool (func_emit_copyright_notice): Bump year.
40144         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40145
40146 2007-01-01  Bruno Haible  <bruno@clisp.org>
40147
40148         Improve support for OpenBSD.
40149         * build-aux/config.rpath (libname_spec): Export.
40150         (library_names_spec): New variable. Export.
40151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40152         library_names_spec from the config.rpath output. Locate shared library
40153         through the name pattern in library_names_spec.
40154
40155 2007-01-01  Eric Blake  <ebb9@byu.net>
40156
40157         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40158
40159 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40160
40161         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40162         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40163         assume the C locale, and avoid an "eval" that could cause trouble.
40164         Problem with SORT reported by Bob Proulx.
40165
40166         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40167         Define.  Trivial patch from Henning Nielsen Lund, originally
40168         sent to bug-grep@gnu.org today.
40169
40170 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40171
40172         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40173         struct stat.  Problem reported by Henning Nielsen Lund.
40174         * lib/acl.c: Include acl.h first, to check interface.  Don't
40175         bother to include sys/types.h and sys/stat.h again.
40176
40177 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40178
40179         Import the following change from libc; problem reported by
40180         Sven Verdoolaege.
40181
40182         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40183
40184         [BZ #1373]
40185         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40186
40187 2006-12-28  Jim Meyering  <jim@meyering.net>
40188
40189         * build-aux/announce-gen: Do not assume that the package
40190         builds any of tar.gz, tar.bz2, and .xdelta files.
40191         Suggestion from Simon Josefsson.
40192
40193 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40194
40195         * modules/announce-gen: New file.
40196
40197 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40198
40199         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40200         handles its gotchas now.
40201         * lib/mbswidth.c: Likewise.
40202         * lib/wcwidth.h: Likewise.
40203         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40204         and iswcntrl; the wctype module does this stuff now.
40205         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40207         * modules/mbchar (Depends-on): Add wctype.
40208         * modules/mbswidth (Depends-on): Likewise.
40209         * modules/wcwidth (Depends-on): Likewise.
40210
40211 2006-12-27  Eric Blake  <ebb9@byu.net>
40212
40213         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40214         module uses more than what <wctype.h> is required to provide.
40215
40216 2006-12-26  Eric Blake  <ebb9@byu.net>
40217
40218         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40219
40220 2006-12-26  Eric Blake  <ebb9@byu.net>
40221
40222         * modules/absolute-header: New module.
40223         * modules/fcntl (Depends-on): Depend on it.
40224         * modules/inttypes (Depends-on): Likewise.
40225         * modules/stdint (Depends-on): Likewise.
40226         * modules/sys_stat (Depends-on): Likewise.
40227         * modules/wctype (Depends-on): Likewise.
40228         * MODULES.html.sh (Support for building libraries and
40229         executables): Document it.
40230
40231 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40232
40233         * gnulib-tool (SED): Remove, undoing previous change.
40234         The problem was that it broke coreutils on Solaris, because
40235         "sed --posix" leaked into a makefile.
40236         (sed): New alias, if 'alias' and GNU sed.
40237
40238 2006-12-24  Jim Meyering  <jim@meyering.net>
40239
40240         Work around an fchownat bug in glibc-2.4:
40241         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40242         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40243         in spite of the -P option.
40244         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40245         New macros.
40246         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40247         * modules/openat (Files): Add lib/fchownat.c.
40248         * lib/openat.c (fchownat): Don't define here.  Move to...
40249         * lib/fchownat.c: ...this new file.
40250
40251 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40252
40253         Fix bug reported by Bruno Haible in
40254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40255         where quotearg.c didn't compile on Mac OS X 10.2 because it
40256         lacks <wchar.h> and wint_t.
40257         * lib/wctype_.h (__wctype_wint_t): New type.
40258         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40259         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40260         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40261         Arg is now of type __wctype_wint_t, not wint_t.
40262         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40263         substitute HAVE_WINT_T.
40264         * modules/wctype (Files): Add m4/wint_t.m4.
40265         (wctype.h): Substitute HAVE_WINT_T.
40266
40267 2006-12-23  Bruno Haible  <bruno@clisp.org>
40268
40269         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40270
40271 2006-12-23  Bruno Haible  <bruno@clisp.org>
40272
40273         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40274         S_ISLNK.
40275         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40276         mingw.
40277
40278 2006-12-22  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/copy-file.c: Include acl.h.
40281         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40282         Close the file descriptors only after being done with copy_acl.
40283         * modules/copy-file (Depends-on): Add acl.
40284
40285 2006-12-22  Bruno Haible  <bruno@clisp.org>
40286
40287         * gnulib-tool (SED): New variable.
40288         Use $SED instead of sed everywhere.
40289
40290 2006-12-22  Bruno Haible  <bruno@clisp.org>
40291
40292         * modules/no-c++: New file.
40293         * m4/no-c++.m4: New file.
40294         * MODULES.html.sh (Support for building libraries and executables):
40295         Add no-c++.
40296
40297 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40298
40299         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40300         Include <limits.h>, and use its INT_MAX to rewrite the
40301         j loop so that it does not overflow 'int'.  Problem reported by
40302         Ralf Wildenhues in
40303         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40304         Play it safe by shifting left by 1 rather than multiplying by 2,
40305         as GCC is less likely to optimize this away when the value
40306         is signed (when it assumes overflow leads to undefined behavior).
40307         Also, don't assume time_t uses two's complement.
40308
40309 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40310
40311         * MODULES.html.sh: New module wctype.
40312         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40313         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40314         <wctype.h>, since the new wctype module should fix this.
40315         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40316         the wctype module should arrange for it.
40317         * lib/regex_internal.h: Likewise.
40318         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40319         since the wctype module should handle this now.
40320         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40321         * modules/fnmatch (Depends-on): Add wctype.
40322         * modules/quotearg (Depends-on): Likewise.
40323         * modules/regex (Depends-on): Likewise.
40324
40325 2006-12-19  Bruno Haible  <bruno@clisp.org>
40326
40327         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40328         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40329
40330 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40331
40332         * modules/savewd (Depends-on): Fix dependency on fcntl.
40333
40334 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40335
40336         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40337         conforms to C99, rather than relying on the user's environment
40338         setting of STDINT_H.
40339
40340 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40341         and Eric Blake  <ebb9@byu.net>
40342
40343         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40344         This is more consistent with the other defines here.
40345         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40346         Port to z/OS.  Problem reported by Paul Gilmartin.
40347         Change local vars to use gl_ prefix rather than ac_.
40348         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40349         with other defines.
40350         * modules/double-slash-root: New module.
40351         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40352         (Depends-on): Add double-slash-root.
40353         * MODULES.html.sh (File system functions): Mention new module.
40354
40355 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40356
40357         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40358         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40359         This is for the benefit of gzip, which doesn't do i18n.
40360
40361 2006-12-12  Jim Meyering  <jim@meyering.net>
40362
40363         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40364         Reported by Andreas Schwab <schwab@suse.de>.
40365
40366 2006-12-12  Bruno Haible  <bruno@clisp.org>
40367
40368         Merge these changes.
40369         2006-09-05  Bruno Haible  <bruno@clisp.org>
40370         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40371         iconv_alloc succeeded.
40372         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40373         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40374         test for " && dest " at the end - dest is always != NULL there. Call
40375         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40376         with 2xNULL arguments, also to flush the state storage. Handle the
40377         IRIX iconv behaviour. Realloc the final result, to throw away unused
40378         memory.
40379
40380 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40381
40382         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40383         and fchmodat unconditionally, since glibc 2.4 has them.
40384         Problem reported by Arkadiusz Miskiewicz.
40385
40386 2006-12-10  Bruno Haible  <bruno@clisp.org>
40387
40388         * gnulib-tool (func_import): Show the include files only for those
40389         modules that are copied and specified.
40390         Reported by Karl Berry.
40391
40392 2006-12-08  Jim Meyering  <jim@meyering.net>
40393
40394         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40395         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40396
40397         * build-aux/announce-gen: Add two new options, both optional:
40398         --bootstrap-tools=TOOL_LIST
40399               a comma-separated list of tools, e.g.,
40400               autoconf,automake,bison,gnulib
40401         --gnulib-snapshot-date=DATE
40402               if gnulib is in the bootstrap tool list,
40403               then report this as the snapshot date.
40404               If not specified, use the current date/time.
40405               If you specify a date here, be sure it's UTC.
40406
40407 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40408
40409         * tests/test-argp-2.sh: Fix test to match actual output.
40410         (func_compare): Fix sed script to be portable.
40411
40412 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40413
40414         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40415         workaround for this case.  It is not autoconfigured now; offhand
40416         it's hard to see how to autoconfigure it.
40417
40418 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40419
40420         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40421         a directory that is about to be chowned.  Such a directory's
40422         initial file permissions should permit the owner only and this
40423         should not be changed until after the chown, since the group and
40424         other bits would be incorrect if they granted permission before
40425         the chown.
40426
40427         Fix porting problem for iswctype reported by Georg Schwarz in:
40428         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40429         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40430         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40431         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40432         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40433
40434 2006-12-03  Jim Meyering  <jim@meyering.net>
40435
40436         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40437         p->fts_statp may not yet be defined.
40438         (fts_read): Instead, set it in the caller, once p->fts_statp is
40439         sure to be defined, and corresponds to a top-level directory.
40440         This bug made du -x fail.  Here's the coreutils test case:
40441         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40442         Reported by Mike Frysinger.
40443
40444 2006-12-01  Jim Meyering  <jim@meyering.net>
40445
40446         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40447         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40448         Reported by Simon Josefsson.
40449
40450 2006-11-30  Jim Meyering  <jim@meyering.net>
40451
40452         * m4/warning.m4: Use the all-permissive copyright notice
40453         recommended by RMS (rather than LGPL).
40454         * m4/vararrays.m4: Likewise.
40455         * m4/flexmember.m4: Likewise.
40456
40457 2006-11-29  Bruno Haible  <bruno@clisp.org>
40458
40459         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40460         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40461         using +=.
40462         Reported by Simon Josefsson <simon@josefsson.org>.
40463
40464 2006-11-28  James Youngman <jay@gnu.org>
40465
40466         * README: Advise users that they might find the bug-gnulib@gnu.org
40467         and autotools-announce@gnu.org mailing lists useful.
40468
40469 2006-11-28  Bruno Haible  <bruno@clisp.org>
40470
40471         * m4/ptrdiff_max.m4: Remove file.
40472
40473 2006-11-21  Bruno Haible  <bruno@clisp.org>
40474
40475         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40476         _AC_COMPUTE_INT.
40477         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40478         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40479         _AC_COMPUTE_INT.
40480         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40481         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40482         _AC_COMPUTE_INT.
40483         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40484
40485 2006-11-28  Jim Meyering  <jim@meyering.net>
40486
40487         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40488         warning from "gcc -Wshadow" about shadowing the builtin.
40489
40490 2006-11-27  Bruno Haible  <bruno@clisp.org>
40491
40492         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40493         _AC_COMPUTE_INT.
40494         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40495
40496 2006-11-27  Bruno Haible  <bruno@clisp.org>
40497             Paul Eggert  <eggert@cs.ucla.edu>
40498
40499         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40500
40501 2006-11-26  Bruno Haible  <bruno@clisp.org>
40502
40503         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40504         noinst_LTLIBRARIES.
40505
40506 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40507             Bruno Haible  <bruno@clisp.org>
40508
40509         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40510         if compiling with "gcc -ansi".
40511
40512 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40513
40514         Fix some incompatibilities with gcc -ansi -pedantic.
40515         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40516         if compiling pedantically with GCC, unless it's C99 or later.
40517         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40518         it mishandles gcc -ansi -pedantic as well.
40519         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40520         if gcc -pedantic.
40521         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40522         initializers for struct if -pedantic, unless it's C99 or later.
40523
40524 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40525
40526         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40527         Don't close an fd more than once. Identical atimes indicate
40528         success, not failure.
40529
40530 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40531
40532         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40533
40534 2006-11-23  Jim Meyering  <jim@meyering.net>
40535
40536         * build-aux/announce-gen: New file.  From coreutils.
40537
40538 2006-11-22  Jim Meyering  <jim@meyering.net>
40539
40540         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40541         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40542         (fts_read): Use a temporary to narrow the overused st_size member
40543         before using it in a switch statement.  Reported by Matthew Woehlke.
40544
40545         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40546         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40547
40548 2006-11-20  Bruno Haible  <bruno@clisp.org>
40549
40550         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40551         changequote instead of pairs of brackets.
40552         Reported by Andreas Schwab <schwab@suse.de>.
40553
40554 2006-11-21  Jim Meyering  <jim@meyering.net>
40555
40556         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40557         so as to remain compatible with older compilers.
40558         Patch from Michael Deutschmann.
40559
40560 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40561
40562         * MODULES.html.sh (File system functions): Add openat.
40563
40564         * lib/openat.h (rpl_fstatat): New macro, if
40565         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40566         (fstatat): Define to rpl_fstatat under the same conditions,
40567         unless COMPILING_FSTATAT.
40568         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40569         seems to have the bug.
40570         * lib/fstatat.c: New file.
40571         * modules/openat (Files): Add it.
40572
40573 2006-11-20  Bruno Haible  <bruno@clisp.org>
40574
40575         * Makefile: New file.
40576
40577 2006-11-20  Jim Meyering  <jim@meyering.net>
40578
40579         The beginnings of syntax-related checks for gnulib.
40580         * lib/Makefile: New file.
40581         * lib/t-idcache: New script.  Ensure that the two halves of
40582         idcache.c stay in sync.
40583
40584         * lib/idcache.c: Adjust comments in user- and group- portions to
40585         be more accurate, and to be consistent with one another.
40586
40587 2006-11-20  Jim Meyering  <jim@meyering.net>
40588
40589         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40590         continue using the flexible array member (thus, this module performs
40591         half as many malloc calls), with the addition that...
40592         (getgroup, getuser): Consistently record a non-match via an empty
40593         "name" string, and map an empty string match to a NULL return value.
40594         * modules/idcache (Depends-on): Re-add flexmember.
40595
40596         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40597         (getuidbyname, getgroup, getgidbyname): Likewise.
40598
40599         Use cleaner syntax: NULL rather than 0.
40600         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40601
40602 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40603
40604         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40605         It mishandled the case where the group was missing.
40606         Problem reported by Greg Schafer.
40607         * modules/idcache: Likewise.
40608
40609 2006-11-18  Jim Meyering  <jim@meyering.net>
40610
40611         * check-module (%exempt_header): Add exception for some
40612         conditionally-included headers.
40613
40614         * modules/i-ring (Depends-on): Add verify.
40615         (License): Change to LGPL.
40616
40617 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40618
40619         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40620         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40621         and inttostr.h.  Use snprintf rather than uinttostr, so that
40622         LGPLed code doesn't depend on GPLed.
40623
40624 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40625
40626         * modules/inline (License): Change from GPL to LGPL.
40627
40628 2006-11-17  Jim Meyering  <jim@meyering.net>
40629
40630         * modules/d-type (License): Switch to LGPL.
40631
40632 2006-11-15  Bruno Haible  <bruno@clisp.org>
40633
40634         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40635
40636 2006-11-15  Eric Blake  <ebb9@byu.net>
40637
40638         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40639         the module dependency.
40640
40641 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40642             Bruno Haible  <bruno@clisp.org>
40643
40644         * gnulib-tool (func_create_testdir): Add license consistency check.
40645
40646 2006-11-15  Eric Blake  <ebb9@byu.net>
40647
40648         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40649         random "(cached)" in configure output.
40650
40651 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40652
40653         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40654         test for conforming inttypes.h is both announced and cached.
40655
40656         * MODULES.html.sh (seen_modules, seen_files): New variables.
40657         (func_module): Rewrite to use a few less gnulib-tool and sed
40658         invocations.  Avoid a couple of quadratic algorithms for ...
40659         (missed_modules, missed_files): ... these, with ...
40660         (func_append, func_tmpdir): ... these new functions, from
40661         gnulib-tool.  Analogously, install traps for cleanup.
40662
40663         * tests/test-gc.c (main): Remove unused variables.
40664         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40665
40666 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40667
40668         * modules/inttostr (License): Change to LGPL.
40669
40670 2006-11-14  Eric Blake  <ebb9@byu.net>
40671
40672         * modules/tempname (License): Change to LGPL.
40673
40674 2006-11-14  Eric Blake  <ebb9@byu.net>
40675
40676         * doc/functions.texi (Function Portability): *printf functions on
40677         Cygwin now understand all POSIX size specifiers.
40678
40679 2006-11-14  Bruno Haible  <bruno@clisp.org>
40680
40681         * modules/c-ctype (License): Change to LGPL.
40682
40683 2006-11-12  Bruno Haible  <bruno@clisp.org>
40684
40685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40686         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40687         for GNOME libraries, for which the include files are installed in
40688         subdirectories of $prefix/include.
40689
40690 2006-11-12  Bruno Haible  <bruno@clisp.org>
40691
40692         * m4/lib-link.m4: Require at least autoconf-2.54.
40693         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40694         name to underscores for the --with option.
40695
40696 2006-11-13  Bruno Haible  <bruno@clisp.org>
40697
40698         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40699         the tests directory.
40700         Reported by Ralf Wildenhues.
40701
40702 2006-11-13  Bruno Haible  <bruno@clisp.org>
40703
40704         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40705         (func_emit_initmacro_end): Undo the override here.
40706         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40707         Works around the famous automake error in coreutils.
40708
40709 2006-11-13  Eric Blake  <ebb9@byu.net>
40710
40711         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40712         element, not its node.
40713
40714 2006-11-12  Bruno Haible  <bruno@clisp.org>
40715
40716         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40717         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40718
40719 2006-11-12  Bruno Haible  <bruno@clisp.org>
40720
40721         * gnulib-tool: New option --local-symlink.
40722         (func_usage): Document it.
40723         (lsymbolic): New variable.
40724         (func_import, func_create_testdir): If --symlink was not specified,
40725         test whether --local-symlink was specified and the file comes from
40726         the local_gnulib_dir.
40727
40728 2006-11-12  Bruno Haible  <bruno@clisp.org>
40729
40730         * gnulib-tool (func_ln): New function.
40731         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40732
40733 2006-11-12  Bruno Haible  <bruno@clisp.org>
40734
40735         Finish support for source files in subdirectories.
40736         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40737         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40738         AUTOMAKE_OPTIONS.
40739         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40740
40741 2006-11-12  Bruno Haible  <bruno@clisp.org>
40742
40743         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40744         EXTRA_lib_SOURCES augmentation.
40745         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40746
40747 2006-11-12  Jim Meyering  <jim@meyering.net>
40748
40749         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40750         file descriptors.  This also averts a failure on systems with
40751         native openat support when a traversed directory lacks "x" access.
40752         * lib/fts_.h: Include "i-ring.h"
40753         (struct FTS) [fts_fd_ring]: New member.
40754         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40755         (FCHDIR): Add parentheses.
40756         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40757         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40758         When descending, rather than simply closing the previous
40759         fts_cwd_fd value, push that file descriptor onto the ring.
40760         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40761         (fts_open): Initialize the new fd_ring member.
40762         (fts_close): Clear the ring.
40763         (fts_safe_changedir): When possible, use our new fd_ring to skip
40764         the diropen and fstat and dev/ino comparison that would normally
40765         accompany a virtual `chdir ("..")'.
40766
40767         * modules/fts (Depends-on): Add i-ring.
40768         * modules/i-ring: New module.
40769         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40770         * m4/i-ring.m4: New file.
40771
40772 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40773
40774         * gnulib-tool (func_create_testdir): Fix replacement of
40775         `build-aux' in configure.ac.  Run autotools in gltests
40776         subdirectory.
40777         (func_create_testdir, func_create_megatestdir, test): There is
40778         no need for '--force' in most autotool invocations in a new
40779         tree.  Actually fail the whole test if any of the tools, or the
40780         configure or make stages fail.
40781
40782         Sync from Automake.
40783         * build-aux/gnupload: Revert last change.  Add pointer to upload
40784         instructions of the GNU Maintenance Instructions.
40785         Suggestion by Karl Berry.
40786
40787 2006-11-10  Jim Meyering  <jim@meyering.net>
40788
40789         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40790
40791 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40792
40793         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40794         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40795         (bind_textdomain_codeset) [! ENABLE_NLS]:
40796         Evaluate all the arguments.  That way, callers get compatible behavior
40797         if the arguments have side effects.  Also, it avoids some GCC
40798         diagnostics in some cases; Joel E. Denny reported problems when Bison
40799         was configured with --enable-gcc-warnigs.
40800
40801 2006-11-10  Jim Meyering  <jim@meyering.net>
40802
40803         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40804         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40805         account.
40806
40807 2006-11-10  Jim Meyering  <jim@meyering.net>
40808
40809         * modules/inline: New file/module.
40810         * modules/xalloc (Files): Remove m4/inline.m4.
40811         (Depends-on): Add inline, instead.
40812         * modules/oset: Likewise.
40813         * modules/list: Likewise.
40814
40815 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40816
40817         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40818         Problem reported by Matthew Woehlke.
40819
40820 2006-11-09  Bruno Haible  <bruno@clisp.org>
40821
40822         * lib/tempname.c (gen_tempname): Remove variant that invokes
40823         __gen_tempname.
40824         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40825         __gen_tempname.
40826
40827 2006-11-08  Bruno Haible  <bruno@clisp.org>
40828
40829         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40830         to 'yes' instead of 'cross-compiling'.
40831
40832 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40833
40834         * lib/quotearg.h (quotearg_free): New decl.
40835         * lib/quotearg.c (quotearg_free): New function.
40836         (slot0, nslots, slotvec0, slotvec):
40837         Now file-scope so that quotearg_free can get at them.
40838
40839 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40840
40841         Sync from Automake.
40842         * build-aux/gnupload: Add missing 'gnu' to example URL.
40843         Report by Karl Berry.
40844
40845 2006-11-08  Bruno Haible  <bruno@clisp.org>
40846
40847         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40848         Suggested by Paul Eggert.
40849
40850 2006-11-08  Jim Meyering  <jim@meyering.net>
40851
40852         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40853         It's already included if !_LIBC.
40854         (fts_safe_changedir): Add a comment.
40855
40856 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40857
40858         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40859         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40860         Matthew Woehlke.
40861
40862         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40863         definitions up, to avoid colliding with change below.
40864         (static_inline) [HAVE_INLINE]: New macro.
40865         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40866         Provide extern decls when !HAVE_INLINE.  Do not define unless
40867         static_inline is defined, either by us or by xmalloc.c.  Use
40868         static_inline rather than static inline.
40869         (XCALLOC): Optimize sizeof(T) = 1 case.
40870         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40871
40872 2006-11-07  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40875         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40876         AC_C_INLINE.
40877         * modules/xalloc (Files): Add m4/inline.m4.
40878
40879 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40880
40881         * README: Fix typo.
40882         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40883         (Miscellanous Notes): ...from this.
40884
40885 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40886
40887         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40888         Mention that offsetof should be used instead of sizeof.
40889         From Bruno Haible.
40890
40891 2006-11-07  Bruno Haible  <bruno@clisp.org>
40892
40893         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40894
40895 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40896
40897         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40898         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40899         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40900         (gl_tree_add_before, gl_tree_add_after):
40901         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40902         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40903         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40904         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40905         (gl_linked_add_after, gl_linked_add_at): Likewise.
40906         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40907         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40908         (gl_tree_add_before, gl_tree_add_after): Likewise.
40909         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40910         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40911         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40912
40913 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40914
40915         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40916
40917 2006-11-06  Bruno Haible  <bruno@clisp.org>
40918
40919         * m4/inline.m4: New file.
40920         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40921         * modules/list (Files): Add m4/inline.m4.
40922         * modules/oset (Files): Likewise.
40923
40924 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40925
40926         * lib/idcache.c: Include <stddef.h>, for offsetof.
40927         (struct userid.name): Change from char * to a flexible array member.
40928         All uses changed.
40929         * modules/idcache (Depends-on): Add flexmember.
40930
40931         * MODULES.html.sh (Core language properties): New module flexmember.
40932         * modules/flexmember, m4/flexmember.m4: New files.
40933
40934         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40935         inline functions that are identical with the old xnmalloc_inline,
40936         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40937         that we can avoid some unnecessary integer multiplications and
40938         divisions in the common case where the element size is known at
40939         compile time.
40940         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40941         needed.
40942         (xnboundedmalloc): Remove.
40943         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40944         arguments, for consistency with rest of this header.
40945         (xcharalloc): Rewrite using XNMALLOC.
40946         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40947         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40948         versions have been moved to lib/xalloc.h and renamed to be the
40949         non-*_inline versions.
40950         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40951         and xnrealloc functions, since those functions are now inline and
40952         now call us.
40953         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40954         renaming described above.
40955         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40956         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40957         captures the dependency in AC_C_INLINE.
40958
40959         New module canonicalize-lgpl, proposed by Charles Wilson in
40960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40961         with a few small changes afterwards.
40962         * MODULES.html.sh (File system functions): New module
40963         canonicalize-lgpl.
40964         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40965         and canonicalize_file_name.
40966         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40967         * modules/canonicalize-lgpl: New files.
40968
40969 2006-11-05  Bruno Haible  <bruno@clisp.org>
40970
40971         * gnulib-tool (func_import, func_create_testdir): Create directories
40972         also for files in subdirectories of lib/.
40973
40974 2006-11-05  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40977         ANSI C compliant.
40978
40979 2006-11-03  Bruno Haible  <bruno@clisp.org>
40980
40981         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40982         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40983         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40984         (xnboundedmalloc): New inline function.
40985         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40986         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40987         xmalloc.
40988         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40989         xmalloc.
40990         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40991         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40992         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40993         xmalloc.
40994         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40995         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40996         xmalloc.
40997         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40998         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40999         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41000         xmalloc.
41001         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41002         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41003         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41004         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41005         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41006         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41007         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41008
41009 2006-11-03  Bruno Haible  <bruno@clisp.org>
41010
41011         * lib/c-ctype.h [C++]: Define functions without name mangling.
41012         * lib/fwriteerror.h [C++]: Likewise.
41013         * lib/gcd.h [C++]: Likewise.
41014         * lib/linebreak.h [C++]: Likewise.
41015
41016 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41017
41018         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41019         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41020         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41021         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41022         Check for functions and headers just once.
41023         Check for declaration of canonicalize_file_name.
41024         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41025
41026 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41027
41028         * gnulib-tool (func_import): Fix typo in actioncmd.
41029
41030 2006-11-02  Bruno Haible  <bruno@clisp.org>
41031
41032         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41033         newline sequence in the Makefile.am snippet as a space, like "make"
41034         does.
41035         Reported by Roger Persson <perrog@gmail.com>.
41036
41037 2006-11-01  Bruno Haible  <bruno@clisp.org>
41038
41039         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41040         already declared in <string.h>.
41041         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41042
41043 2006-11-01  Bruno Haible  <bruno@clisp.org>
41044
41045         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41046         * lib/strcase.h: Include <string.h>.
41047         (strcasecmp): Define to rpl_strcasecmp here.
41048
41049 2006-11-01  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41052
41053 2006-11-01  Eric Blake  <ebb9@byu.net>
41054
41055         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41056
41057         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41058
41059 2006-10-29  Bruno Haible  <bruno@clisp.org>
41060
41061         Make it compile in C++ mode.
41062         * lib/full-write.c (full_rw): Add a cast.
41063
41064 2006-11-01  Bruno Haible  <bruno@clisp.org>
41065
41066         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41067         be POSIX compliant.
41068         Reported by Roger Persson <perrog@gmail.com>.
41069
41070 2006-11-01  Eric Blake  <ebb9@byu.net>
41071
41072         * lib/getopt_.h: Fix comments.
41073
41074 2006-10-31  Eric Blake  <ebb9@byu.net>
41075
41076         * modules/tmpdir (Depends-on): Add sys_stat.
41077         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41078         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41079         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41080         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41081         tempname.
41082
41083 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41084
41085         Avoid some C++ diagnostics reported by Bruno Haible.
41086         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41087         xmalloc.
41088         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41089         (struct slotvec): Move to top level.
41090         (quotearg_n_options): Rewrite to avoid xmalloc.
41091         * lib/xalloc.h (xcharalloc): New function.
41092         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41093         [defined __cplusplus]: Add function template that provides result
41094         type propagation.  This part of the change is from Bruno Haible.
41095
41096 2006-10-29  Bruno Haible  <bruno@clisp.org>
41097
41098         Make it compile in C++ mode.
41099         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41100         * lib/strnlen1.c (strnlen1): Cast memchr result.
41101         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41102         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41103         (create_temp_dir): Rename local variable 'template'.
41104         (compile_csharp_using_sscli): Add cast.
41105         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41106         * lib/findprog.c (find_in_path): Likewise.
41107         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41108         * lib/wait-process.c (register_slave_subprocess): Likewise.
41109
41110 2006-10-22  Bruno Haible  <bruno@clisp.org>
41111
41112         * modules/tsearch: New file.
41113         * lib/tsearch.h: New file.
41114         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41115         * m4/tsearch.m4: New file.
41116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41117
41118 2006-10-29  Eric Blake  <ebb9@byu.net>
41119
41120         * lib/arcfour.c: Assume config.h.
41121         * lib/arctwo.c: Likewise.
41122         * lib/base64.c: Likewise.
41123         * lib/check-version.c: Likewise.
41124         * lib/crc.c: Likewise.
41125         * lib/des.c: Likewise.
41126         * lib/gc-gnulib.c: Likewise.
41127         * lib/gc-libgcrypt.c: Likewise.
41128         * lib/gc-pbkdf2-sha1.c: Likewise.
41129         * lib/getaddrinfo.c: Likewise.
41130         * lib/getdelim.c: Likewise.
41131         * lib/getline.c: Likewise.
41132         * lib/hmac-md5.c: Likewise.
41133         * lib/hmac-sha1.c: Likewise.
41134         * lib/iconvme.c: Likewise.
41135         * lib/md2.c: Likewise.
41136         * lib/md4.c: Likewise.
41137         * lib/memxor.c: Likewise.
41138         * lib/read-file.c: Likewise.
41139         * lib/readline.c: Likewise.
41140         * lib/rijndael-alg-fst.c: Likewise.
41141         * lib/rijndael-api-fst.c: Likewise.
41142         * lib/xgetdomainname.c: Likewise.
41143
41144 2006-10-28  Eric Blake  <ebb9@byu.net>
41145
41146         * lib/xstrndup.c: Assume config.h.
41147
41148 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41149
41150         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41151         stat-macros.h is now for our own macros, whereas stat_h is for
41152         macros in the <sys/stat.h> name space.
41153         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41154         (STAT_MACROS_H): Remove.
41155         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41156         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41157         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41158         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41159         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41160         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41161         Move these macros to ...
41162         * lib/stat_.h: here.  Don't include stat-macros.h.
41163         * lib/canonicalize.c: Don't include stat-macros.h.
41164         * lib/chown.c: Likewise.
41165         * lib/euidaccess.c: Likewise.
41166         * lib/file-type.c: Likewise.
41167         * lib/filemode.c: Likewise.
41168         * lib/glob.c: Likewise.
41169         * lib/isapipe.c: Likewise.
41170         * lib/lchown.c: Likewise.
41171         * lib/lstat.c: Likewise.
41172         * lib/mkdir-p.c: Likewise.
41173         * lib/rmdir.c: Likewise.
41174         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41176         unless mkdir isn't declared, to speed up 'configure'.
41177         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41178         would define all the S_* symbols.
41179         * modules/canonicalize (Depends-on):
41180         Depend on sys_stat, not stat-macros.
41181         * modules/chown: Likewise.
41182         * modules/euidaccess: Likewise.
41183         * modules/filemode: Likewise.
41184         * modules/file-type: Likewise.
41185         * modules/glob: Likewise.
41186         * modules/isapipe: Likewise.
41187         * modules/lchown: Likewise.
41188         * modules/lstat: Likewise.
41189         * modules/mkancesdirs: Likewise.
41190         * modules/rmdir: Likewise.
41191         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41192         * modules/modechange: Likewise.
41193         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41194         (configure.ac): Remove gl_STAT_MACROS.
41195         * modules/sys_stat (Depends-on): Remove stat-macros.
41196
41197 2006-10-27  Bruno Haible  <bruno@clisp.org>
41198
41199         * m4/signed.m4: Remove file.
41200         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41201         invocation.
41202         * modules/vasnprintf (Files): Remove m4/signed.m4.
41203
41204 2006-10-27  Bruno Haible  <bruno@clisp.org>
41205
41206         Update to GNU gettext 0.16.
41207         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41208         m4/inttypes-h.m4, m4/signed.m4.
41209         * m4/gettext.m4: Update to GNU gettext 0.16.
41210         * m4/intl.m4: New file, from GNU gettext.
41211         * m4/intldir.m4: New file, from GNU gettext.
41212         * config/srclist.txt: Update
41213
41214 2006-10-27  Eric Blake  <ebb9@byu.net>
41215
41216         * MODULES.html.sh: Document tempname.
41217         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41218         dependencies.
41219         (Files): Move lib/tempname.c...
41220         * modules/tempname: ...to this new module.
41221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41222         (gl_PREREQ_TEMPNAME): Move...
41223         * m4/tempname.m4: ...to this new file.
41224         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41225         * modules/sys_stat (Depends-on): Add stat-macros.
41226         * lib/stat_.h (includes): Pick up stat macros.
41227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41228         if stat macros are broken.
41229         * lib/tempname.c (includes): No need to include "stat-macros.h".
41230         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41231         (direxists, __path_search) [!_LIBC]: Don't compile these in
41232         gnulib; the tmpdir module covers that.
41233         * lib/tempname.h: New file.
41234
41235 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         * COPYING: Explain how gnulib-tool converts licence headers.
41238         Almost all wording by Eric Blake.
41239
41240 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41241
41242         * lib/mbchar.h (is_basic_table): Make read-only.
41243         * lib/mbchar.c (is_basic_table): Likewise.
41244         Reported by John Darrington.
41245
41246 2006-10-25  Bruno Haible  <bruno@clisp.org>
41247
41248         * lib/progname.h (set_program_name): Undefine before defining.
41249
41250 2006-10-25  Bruno Haible  <bruno@clisp.org>
41251
41252         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41253         false for non-gcc C++ compilers.
41254         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41255
41256 2006-10-24  Bruno Haible  <bruno@clisp.org>
41257
41258         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41259         iconv implementations like Irix iconv.
41260
41261 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41262
41263         * modules/vararrays: New file.
41264         * m4/vararrays.m4: New file, taken from diffutils.
41265         * MODULES.html.sh: New module vararrays.
41266
41267 2006-10-24  Karl Berry  <karl@gnu.org>
41268
41269         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41270         Don't call GNU Unix.
41271
41272 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41273
41274         * users.txt: Add Libtool.
41275
41276         Sync from Libtool:
41277
41278         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41279
41280         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41281         to gnulib's policy of including config.h unconditionally.
41282
41283 2006-10-24  Bruno Haible  <bruno@clisp.org>
41284
41285         * modules/wcwidth (Files): Add m4/wint_t.m4.
41286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41287         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41288
41289 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41290
41291         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41292         to pacify GCC with some -W flags enabled.  Problem reported by
41293         Bruno Haible.
41294
41295 2006-10-24  Jim Meyering  <jim@meyering.net>
41296
41297         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41298         Reported by Karl Berry.
41299
41300 2006-10-23  Bruno Haible  <bruno@clisp.org>
41301
41302         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41303
41304 2006-10-24  Bruno Haible  <bruno@clisp.org>
41305
41306         * lib/gl_list.h: Use C comment style, not C++ comment style.
41307
41308 2006-10-23  Eric Blake  <ebb9@byu.net>
41309
41310         * lib/getaddrinfo.c (includes): Add missing include.
41311
41312 2006-10-23  Bruno Haible  <bruno@clisp.org>
41313             Paul Eggert  <eggert@cs.ucla.edu>
41314
41315         Ability to rename obstack_free.
41316         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41317         obstack_free.
41318         (obstack_free): Invoke the __obstack_free macro.
41319         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41320
41321 2006-10-23  Bruno Haible  <bruno@clisp.org>
41322             Paul Eggert  <eggert@cs.ucla.edu>
41323
41324         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41325         __argc, __argv from the declaration. (They are defined as macros on
41326         mingw.)
41327
41328 2006-10-22  Bruno Haible  <bruno@clisp.org>
41329
41330         * doc/gnulib-intro.texi: New file.
41331         * doc/gnulib.texi: Include it.
41332
41333 2006-10-21  Bruno Haible  <bruno@clisp.org>
41334
41335         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41336         "Introduction", "Miscellanous Notes", "Particular Modules".
41337
41338 2006-10-21  Bruno Haible  <bruno@clisp.org>
41339
41340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41341         Change mostlyclean-local rule to avoid sh syntax error from bash
41342         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41343
41344 2006-10-23  Jim Meyering  <jim@meyering.net>
41345
41346         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41347         in place of snprintf.
41348
41349         * modules/inttostr (Files): Add lib/uinttostr.c.
41350         * lib/uinttostr.c (inttostr): New file/function.
41351         * lib/inttostr.h (uinttostr): Declare.
41352         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41353         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41354         Add uinttostr.
41355         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41356
41357 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41358
41359         * lib/canonicalize.c (ELOOP): Define if not already defined.
41360         Problem reported by Bruno Haible in
41361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41362
41363 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41364
41365         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41366         Problem reported by Perry Smith and Ville Laurikari.
41367
41368         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41369         uses.
41370
41371 2006-10-19  Bruno Haible  <bruno@clisp.org>
41372
41373         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41374         for mingw.
41375
41376 2006-10-19  Bruno Haible  <bruno@clisp.org>
41377
41378         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41379         Needed for mingw.
41380
41381 2006-10-19  Bruno Haible  <bruno@clisp.org>
41382
41383         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41384
41385 2006-10-19  Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41388         it.
41389
41390 2006-10-19  Bruno Haible  <bruno@clisp.org>
41391
41392         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41393         invocation.
41394
41395 2006-10-19  Bruno Haible  <bruno@clisp.org>
41396
41397         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41398         mountlist by default.
41399
41400 2006-10-16  Bruno Haible  <bruno@clisp.org>
41401
41402         * lib/c-strstr.c: Include c-strstr.h.
41403
41404 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41405
41406         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41407         in a slash.
41408
41409 2006-10-18  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/lock.h [C++]: Wrap definitions in extern "C".
41412
41413 2006-10-18  Bruno Haible  <bruno@clisp.org>
41414
41415         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41416         gl_LIBOBJS list.
41417
41418 2006-10-18  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41421
41422 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         * lib/xstrtol.h: Include gettext.h.
41425         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41426         Problem reported by Eric Blake.
41427         * modules/xstrtol (Depends-on): Add gettext-h.
41428
41429 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41430
41431         * lib/strftime.c (advance): New macro.
41432         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41433         incomplete type, so you can't add 0 to it.  Problem and patch
41434         reported by Eelco Dolstra for dietlibc.
41435
41436 2006-10-18  Jim Meyering  <jim@meyering.net>
41437
41438         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41439         type for a local, and rename it: s/up/user_proc/.
41440
41441 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41442
41443         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41444         READ_UTMP_USER_PROCESS.
41445         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41446
41447 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41448
41449         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41450         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41451
41452 2006-10-17  Eric Blake  <ebb9@byu.net>
41453
41454         * lib/sigprocmask.c (sigprocmask): Fix typo.
41455
41456         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41457
41458         * modules/clean-temp (Makefile.am): Don't add to make output...
41459         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41460         config.h.
41461
41462 2006-10-17  Bruno Haible  <bruno@clisp.org>
41463
41464         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41465         differently if DEFAULT_TEXT_DOMAIN is set.
41466
41467 2006-10-16  Bruno Haible  <bruno@clisp.org>
41468
41469         * lib/clean-temp.c: Include fwriteerror.h.
41470
41471 2006-10-16  Bruno Haible  <bruno@clisp.org>
41472
41473         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41474
41475 2006-10-16  Bruno Haible  <bruno@clisp.org>
41476
41477         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41478         * lib/sigprocmask.h: Include <sys/types.h>.
41479         (sigset_t): Use the system's definition if present.
41480
41481 2006-10-17  Eric Blake  <ebb9@byu.net>
41482
41483         * lib/xvasprintf.c (includes): Assume config.h.
41484         * lib/xasprintf.c (includes): Likewise.
41485
41486 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41487
41488         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41489         at least as wide as intmax_t.
41490
41491 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41492
41493         (Imported from Automake.)
41494         * build-aux/gnupload: Update to version 1.1 of directive file.
41495
41496 2006-10-16  Eric Blake  <ebb9@byu.net>
41497
41498         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41499         match Automake 1.10a.
41500
41501 2006-10-14  Bruno Haible  <bruno@clisp.org>
41502
41503         * modules/sigprocmask: New file.
41504         * lib/sigprocmask.h: New file.
41505         * lib/sigprocmask.c: New file.
41506         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41507         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41508         request sigprocmask.o.
41509         (gl_PREREQ_SIGPROCMASK): New macro.
41510         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41511         (Depends-on): Add sigprocmask.
41512         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41513         gt_SIGNALBLOCKING. Test for 'raise' only once.
41514         * lib/fatal-signal.c: Include sigprocmask.h.
41515         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41516         unblock_fatal_signals): Define always.
41517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41518         sigprocmask.
41519
41520 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41521
41522         Sync from Automake.
41523         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41524         which incorrectly sets the mode of an existing destination
41525         directory.  In some cases the unpatched install-sh could do the
41526         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41527         system.  We hope this is rare in practice, but it's clearly worth
41528         fixing.  Problem reported by Alex Unleashed in
41529         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41530         Also, don't bother to check for -m bugs unless we're using -m;
41531         suggested by Stepan Kasal.
41532
41533 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41534
41535         Sync from Automake.
41536         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41537         `-c' flag, so they appear at the same position as in %FASTDEP%
41538         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41539         which ignores unknown options only after the first non-option.
41540         Bug report against M4 by Nelson H. F. Beebe.
41541
41542 2006-10-13  Jim Meyering  <jim@meyering.net>
41543
41544         Fix a bug in yesterday's change.
41545         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41546         p->fts_statp->st_dev would be used uninitialized.
41547         Ensures that we always call fts_stat on the very first entry.
41548         Miklos Szeredi reported that find -xdev stopped working.
41549
41550 2006-10-12  Bruno Haible  <bruno@clisp.org>
41551
41552         * gnulib-tool (func_get_automake_snippet): Append an automatically
41553         computed EXTRA_DIST augmentation.
41554         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41555         * modules/alloca-opt (Makefile.am): Likewise.
41556         * modules/allocsa (Makefile.am): Likewise.
41557         * modules/arcfour (Makefile.am): Likewise.
41558         * modules/arctwo (Makefile.am): Likewise.
41559         * modules/argmatch (Makefile.am): Likewise.
41560         * modules/argz (Makefile.am): Likewise.
41561         * modules/atexit (Makefile.am): Likewise.
41562         * modules/backupfile (Makefile.am): Likewise.
41563         * modules/byteswap (Makefile.am): Likewise.
41564         * modules/c-strtod (Makefile.am): Likewise.
41565         * modules/c-strtold (Makefile.am): Likewise.
41566         * modules/calloc (Makefile.am): Likewise.
41567         * modules/canon-host (Makefile.am): Likewise.
41568         * modules/canonicalize (Makefile.am): Likewise.
41569         * modules/chdir-long (Makefile.am): Likewise.
41570         * modules/chdir-safer (Makefile.am): Likewise.
41571         * modules/check-version (Makefile.am): Likewise.
41572         * modules/chown (Makefile.am): Likewise.
41573         * modules/cloexec (Makefile.am): Likewise.
41574         * modules/close-stream (Makefile.am): Likewise.
41575         * modules/closeout (Makefile.am): Likewise.
41576         * modules/crc (Makefile.am): Likewise.
41577         * modules/csharpexec (Makefile.am): Likewise.
41578         * modules/cycle-check (Makefile.am): Likewise.
41579         * modules/des (Makefile.am): Likewise.
41580         * modules/dev-ino (Makefile.am): Likewise.
41581         * modules/dirfd (Makefile.am): Likewise.
41582         * modules/dirname (Makefile.am): Likewise.
41583         * modules/dup2 (Makefile.am): Likewise.
41584         * modules/eealloc (Makefile.am): Likewise.
41585         * modules/error (Makefile.am): Likewise.
41586         * modules/euidaccess (Makefile.am): Likewise.
41587         * modules/exclude (Makefile.am): Likewise.
41588         * modules/exitfail (Makefile.am): Likewise.
41589         * modules/fcntl-safer (Makefile.am): Likewise.
41590         * modules/fcntl (Makefile.am): Likewise.
41591         * modules/file-type (Makefile.am): Likewise.
41592         * modules/fileblocks (Makefile.am): Likewise.
41593         * modules/filemode (Makefile.am): Likewise.
41594         * modules/filenamecat (Makefile.am): Likewise.
41595         * modules/fnmatch (Makefile.am): Likewise.
41596         * modules/fopen-safer (Makefile.am): Likewise.
41597         * modules/fpending (Makefile.am): Likewise.
41598         * modules/fprintftime (Makefile.am): Likewise.
41599         * modules/free (Makefile.am): Likewise.
41600         * modules/fsusage (Makefile.am): Likewise.
41601         * modules/ftruncate (Makefile.am): Likewise.
41602         * modules/fts (Makefile.am): Likewise.
41603         * modules/gc-arcfour (Makefile.am): Likewise.
41604         * modules/gc-des (Makefile.am): Likewise.
41605         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41606         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41607         * modules/gc-md4 (Makefile.am): Likewise.
41608         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41609         * modules/gc-sha1 (Makefile.am): Likewise.
41610         * modules/gc (Makefile.am): Likewise.
41611         * modules/getaddrinfo (Makefile.am): Likewise.
41612         * modules/getcwd (Makefile.am): Likewise.
41613         * modules/getdelim (Makefile.am): Likewise.
41614         * modules/getdomainname (Makefile.am): Likewise.
41615         * modules/getgroups (Makefile.am): Likewise.
41616         * modules/gethostname (Makefile.am): Likewise.
41617         * modules/gethrxtime (Makefile.am): Likewise.
41618         * modules/getline (Makefile.am): Likewise.
41619         * modules/getloadavg (Makefile.am): Likewise.
41620         * modules/getlogin_r (Makefile.am): Likewise.
41621         * modules/getndelim2 (Makefile.am): Likewise.
41622         * modules/getopt (Makefile.am): Likewise.
41623         * modules/getpagesize (Makefile.am): Likewise.
41624         * modules/getpass-gnu (Makefile.am): Likewise.
41625         * modules/getpass (Makefile.am): Likewise.
41626         * modules/getsubopt (Makefile.am): Likewise.
41627         * modules/gettime (Makefile.am): Likewise.
41628         * modules/gettimeofday (Makefile.am): Likewise.
41629         * modules/getugroups (Makefile.am): Likewise.
41630         * modules/getusershell (Makefile.am): Likewise.
41631         * modules/glob (Makefile.am): Likewise.
41632         * modules/group-member (Makefile.am): Likewise.
41633         * modules/hard-locale (Makefile.am): Likewise.
41634         * modules/hash (Makefile.am): Likewise.
41635         * modules/hmac-md5 (Makefile.am): Likewise.
41636         * modules/hmac-sha1 (Makefile.am): Likewise.
41637         * modules/human (Makefile.am): Likewise.
41638         * modules/idcache (Makefile.am): Likewise.
41639         * modules/imaxabs (Makefile.am): Likewise.
41640         * modules/imaxdiv (Makefile.am): Likewise.
41641         * modules/inet_ntop (Makefile.am): Likewise.
41642         * modules/inet_pton (Makefile.am): Likewise.
41643         * modules/intprops (Makefile.am): Likewise.
41644         * modules/inttostr (Makefile.am): Likewise.
41645         * modules/inttypes (Makefile.am): Likewise.
41646         * modules/isapipe (Makefile.am): Likewise.
41647         * modules/javaversion (Makefile.am): Likewise.
41648         * modules/lchmod (Makefile.am): Likewise.
41649         * modules/lchown (Makefile.am): Likewise.
41650         * modules/localcharset (Makefile.am): Likewise.
41651         * modules/long-options (Makefile.am): Likewise.
41652         * modules/lstat (Makefile.am): Likewise.
41653         * modules/malloc (Makefile.am): Likewise.
41654         * modules/mathl (Makefile.am): Likewise.
41655         * modules/mbchar (Makefile.am): Likewise.
41656         * modules/md2 (Makefile.am): Likewise.
41657         * modules/md4 (Makefile.am): Likewise.
41658         * modules/md5 (Makefile.am): Likewise.
41659         * modules/memcasecmp (Makefile.am): Likewise.
41660         * modules/memchr (Makefile.am): Likewise.
41661         * modules/memcmp (Makefile.am): Likewise.
41662         * modules/memcoll (Makefile.am): Likewise.
41663         * modules/memcpy (Makefile.am): Likewise.
41664         * modules/memmem (Makefile.am): Likewise.
41665         * modules/memmove (Makefile.am): Likewise.
41666         * modules/mempcpy (Makefile.am): Likewise.
41667         * modules/memrchr (Makefile.am): Likewise.
41668         * modules/memset (Makefile.am): Likewise.
41669         * modules/memxor (Makefile.am): Likewise.
41670         * modules/mkancesdirs (Makefile.am): Likewise.
41671         * modules/mkdir-p (Makefile.am): Likewise.
41672         * modules/mkdir (Makefile.am): Likewise.
41673         * modules/mkdtemp (Makefile.am): Likewise.
41674         * modules/mkstemp (Makefile.am): Likewise.
41675         * modules/mktime (Makefile.am): Likewise.
41676         * modules/modechange (Makefile.am): Likewise.
41677         * modules/mountlist (Makefile.am): Likewise.
41678         * modules/nanosleep (Makefile.am): Likewise.
41679         * modules/obstack (Makefile.am): Likewise.
41680         * modules/openat (Makefile.am): Likewise.
41681         * modules/pagealign_alloc (Makefile.am): Likewise.
41682         * modules/pathmax (Makefile.am): Likewise.
41683         * modules/physmem (Makefile.am): Likewise.
41684         * modules/poll (Makefile.am): Likewise.
41685         * modules/posixtm (Makefile.am): Likewise.
41686         * modules/posixver (Makefile.am): Likewise.
41687         * modules/putenv (Makefile.am): Likewise.
41688         * modules/quote (Makefile.am): Likewise.
41689         * modules/quotearg (Makefile.am): Likewise.
41690         * modules/raise (Makefile.am): Likewise.
41691         * modules/read-file (Makefile.am): Likewise.
41692         * modules/readline (Makefile.am): Likewise.
41693         * modules/readlink (Makefile.am): Likewise.
41694         * modules/readtokens (Makefile.am): Likewise.
41695         * modules/readutmp (Makefile.am): Likewise.
41696         * modules/realloc (Makefile.am): Likewise.
41697         * modules/regex (Makefile.am): Likewise.
41698         * modules/rename-dest-slash (Makefile.am): Likewise.
41699         * modules/rename (Makefile.am): Likewise.
41700         * modules/rijndael (Makefile.am): Likewise.
41701         * modules/rmdir (Makefile.am): Likewise.
41702         * modules/rpmatch (Makefile.am): Likewise.
41703         * modules/safe-read (Makefile.am): Likewise.
41704         * modules/safe-write (Makefile.am): Likewise.
41705         * modules/same-inode (Makefile.am): Likewise.
41706         * modules/same (Makefile.am): Likewise.
41707         * modules/save-cwd (Makefile.am): Likewise.
41708         * modules/savedir (Makefile.am): Likewise.
41709         * modules/setenv (Makefile.am): Likewise.
41710         * modules/settime (Makefile.am): Likewise.
41711         * modules/sha1 (Makefile.am): Likewise.
41712         * modules/sig2str (Makefile.am): Likewise.
41713         * modules/snprintf (Makefile.am): Likewise.
41714         * modules/stat-macros (Makefile.am): Likewise.
41715         * modules/stat-time (Makefile.am): Likewise.
41716         * modules/stdbool (Makefile.am): Likewise.
41717         * modules/stdint (Makefile.am): Likewise.
41718         * modules/stdlib-safer (Makefile.am): Likewise.
41719         * modules/stpcpy (Makefile.am): Likewise.
41720         * modules/stpncpy (Makefile.am): Likewise.
41721         * modules/strcase (Makefile.am): Likewise.
41722         * modules/strcasestr (Makefile.am): Likewise.
41723         * modules/strchrnul (Makefile.am): Likewise.
41724         * modules/strcspn (Makefile.am): Likewise.
41725         * modules/strdup (Makefile.am): Likewise.
41726         * modules/strerror (Makefile.am): Likewise.
41727         * modules/strftime (Makefile.am): Likewise.
41728         * modules/strndup (Makefile.am): Likewise.
41729         * modules/strnlen (Makefile.am): Likewise.
41730         * modules/strpbrk (Makefile.am): Likewise.
41731         * modules/strsep (Makefile.am): Likewise.
41732         * modules/strstr (Makefile.am): Likewise.
41733         * modules/strtod (Makefile.am): Likewise.
41734         * modules/strtoimax (Makefile.am): Likewise.
41735         * modules/strtok_r (Makefile.am): Likewise.
41736         * modules/strtol (Makefile.am): Likewise.
41737         * modules/strtoll (Makefile.am): Likewise.
41738         * modules/strtoul (Makefile.am): Likewise.
41739         * modules/strtoull (Makefile.am): Likewise.
41740         * modules/strtoumax (Makefile.am): Likewise.
41741         * modules/strverscmp (Makefile.am): Likewise.
41742         * modules/sys_socket (Makefile.am): Likewise.
41743         * modules/sys_stat (Makefile.am): Likewise.
41744         * modules/sysexits (Makefile.am): Likewise.
41745         * modules/time_r (Makefile.am): Likewise.
41746         * modules/timegm (Makefile.am): Likewise.
41747         * modules/timespec (Makefile.am): Likewise.
41748         * modules/tmpfile-safer (Makefile.am): Likewise.
41749         * modules/trim (Makefile.am): Likewise.
41750         * modules/unistd-safer (Makefile.am): Likewise.
41751         * modules/unlinkdir (Makefile.am): Likewise.
41752         * modules/unlocked-io (Makefile.am): Likewise.
41753         * modules/userspec (Makefile.am): Likewise.
41754         * modules/utime (Makefile.am): Likewise.
41755         * modules/utimecmp (Makefile.am): Likewise.
41756         * modules/utimens (Makefile.am): Likewise.
41757         * modules/vasnprintf (Makefile.am): Likewise.
41758         * modules/vasprintf (Makefile.am): Likewise.
41759         * modules/vsnprintf (Makefile.am): Likewise.
41760         * modules/xalloc (Makefile.am): Likewise.
41761         * modules/xgetcwd (Makefile.am): Likewise.
41762         * modules/xnanosleep (Makefile.am): Likewise.
41763         * modules/xreadlink (Makefile.am): Likewise.
41764         * modules/xstrtod (Makefile.am): Likewise.
41765         * modules/xstrtol (Makefile.am): Likewise.
41766         * modules/xstrtold (Makefile.am): Likewise.
41767         * modules/yesno (Makefile.am): Likewise.
41768         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41769
41770 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41771
41772         * modules/error (Makefile.am): Distribute files through
41773         EXTRA_DIST, not lib_SOURCES.
41774
41775 2006-10-12  Eric Blake  <ebb9@byu.net>
41776
41777         * modules/error (Makefile.am): Distribute files in /lib.
41778         * modules/obstack (Makefile.am): Likewise.
41779
41780 2006-10-12  Bruno Haible  <bruno@clisp.org>
41781
41782         * modules/acl (Makefile.am): Distribute all files in lib/ through
41783         EXTRA_DIST.
41784         * modules/arcfour (Makefile.am): Likewise.
41785         * modules/arctwo (Makefile.am): Likewise.
41786         * modules/argmatch (Makefile.am): Likewise.
41787         * modules/argz (Makefile.am): Likewise.
41788         * modules/atexit (Makefile.am): Likewise.
41789         * modules/backupfile (Makefile.am): Likewise.
41790         * modules/c-strtod (Makefile.am): Likewise.
41791         * modules/c-strtold (Makefile.am): Likewise.
41792         * modules/calloc (Makefile.am): Likewise.
41793         * modules/canon-host (Makefile.am): Likewise.
41794         * modules/canonicalize (Makefile.am): Likewise.
41795         * modules/chdir-long (Makefile.am): Likewise.
41796         * modules/chdir-safer (Makefile.am): Likewise.
41797         * modules/check-version (Makefile.am): Likewise.
41798         * modules/chown (Makefile.am): Likewise.
41799         * modules/cloexec (Makefile.am): Likewise.
41800         * modules/close-stream (Makefile.am): Likewise.
41801         * modules/closeout (Makefile.am): Likewise.
41802         * modules/crc (Makefile.am): Likewise.
41803         * modules/cycle-check (Makefile.am): Likewise.
41804         * modules/des (Makefile.am): Likewise.
41805         * modules/dirfd (Makefile.am): Likewise.
41806         * modules/dirname (Makefile.am): Likewise.
41807         * modules/dup2 (Makefile.am): Likewise.
41808         * modules/euidaccess (Makefile.am): Likewise.
41809         * modules/exclude (Makefile.am): Likewise.
41810         * modules/exitfail (Makefile.am): Likewise.
41811         * modules/fcntl-safer (Makefile.am): Likewise.
41812         * modules/file-type (Makefile.am): Likewise.
41813         * modules/fileblocks (Makefile.am): Likewise.
41814         * modules/filemode (Makefile.am): Likewise.
41815         * modules/filenamecat (Makefile.am): Likewise.
41816         * modules/fnmatch (Makefile.am): Likewise.
41817         * modules/fopen-safer (Makefile.am): Likewise.
41818         * modules/fpending (Makefile.am): Likewise.
41819         * modules/fprintftime (Makefile.am): Likewise.
41820         * modules/free (Makefile.am): Likewise.
41821         * modules/fsusage (Makefile.am): Likewise.
41822         * modules/ftruncate (Makefile.am): Likewise.
41823         * modules/fts (Makefile.am): Likewise.
41824         * modules/gc (Makefile.am): Likewise.
41825         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41826         * modules/getaddrinfo (Makefile.am): Likewise.
41827         * modules/getcwd (Makefile.am): Likewise.
41828         * modules/getdelim (Makefile.am): Likewise.
41829         * modules/getdomainname (Makefile.am): Likewise.
41830         * modules/getgroups (Makefile.am): Likewise.
41831         * modules/gethostname (Makefile.am): Likewise.
41832         * modules/gethrxtime (Makefile.am): Likewise.
41833         * modules/getline (Makefile.am): Likewise.
41834         * modules/getloadavg (Makefile.am): Likewise.
41835         * modules/getlogin_r (Makefile.am): Likewise.
41836         * modules/getopt (Makefile.am): Likewise.
41837         * modules/getpass (Makefile.am): Likewise.
41838         * modules/getpass-gnu (Makefile.am): Likewise.
41839         * modules/getsubopt (Makefile.am): Likewise.
41840         * modules/gettime (Makefile.am): Likewise.
41841         * modules/gettimeofday (Makefile.am): Likewise.
41842         * modules/getugroups (Makefile.am): Likewise.
41843         * modules/getusershell (Makefile.am): Likewise.
41844         * modules/glob (Makefile.am): Likewise.
41845         * modules/group-member (Makefile.am): Likewise.
41846         * modules/hard-locale (Makefile.am): Likewise.
41847         * modules/hash (Makefile.am): Likewise.
41848         * modules/hmac-md5 (Makefile.am): Likewise.
41849         * modules/hmac-sha1 (Makefile.am): Likewise.
41850         * modules/human (Makefile.am): Likewise.
41851         * modules/idcache (Makefile.am): Likewise.
41852         * modules/imaxabs (Makefile.am): Likewise.
41853         * modules/imaxdiv (Makefile.am): Likewise.
41854         * modules/inet_ntop (Makefile.am): Likewise.
41855         * modules/inet_pton (Makefile.am): Likewise.
41856         * modules/inttostr (Makefile.am): Likewise.
41857         * modules/isapipe (Makefile.am): Likewise.
41858         * modules/lchown (Makefile.am): Likewise.
41859         * modules/long-options (Makefile.am): Likewise.
41860         * modules/lstat (Makefile.am): Likewise.
41861         * modules/malloc (Makefile.am): Likewise.
41862         * modules/mathl (Makefile.am): Likewise.
41863         * modules/mbchar (Makefile.am): Likewise.
41864         * modules/md2 (Makefile.am): Likewise.
41865         * modules/md4 (Makefile.am): Likewise.
41866         * modules/md5 (Makefile.am): Likewise.
41867         * modules/memcasecmp (Makefile.am): Likewise.
41868         * modules/memchr (Makefile.am): Likewise.
41869         * modules/memcmp (Makefile.am): Likewise.
41870         * modules/memcoll (Makefile.am): Likewise.
41871         * modules/memcpy (Makefile.am): Likewise.
41872         * modules/memmem (Makefile.am): Likewise.
41873         * modules/memmove (Makefile.am): Likewise.
41874         * modules/mempcpy (Makefile.am): Likewise.
41875         * modules/memrchr (Makefile.am): Likewise.
41876         * modules/memset (Makefile.am): Likewise.
41877         * modules/memxor (Makefile.am): Likewise.
41878         * modules/mkancesdirs (Makefile.am): Likewise.
41879         * modules/mkdir (Makefile.am): Likewise.
41880         * modules/mkdir-p (Makefile.am): Likewise.
41881         * modules/mkdtemp (Makefile.am): Likewise.
41882         * modules/mkstemp (Makefile.am): Likewise.
41883         * modules/mktime (Makefile.am): Likewise.
41884         * modules/modechange (Makefile.am): Likewise.
41885         * modules/mountlist (Makefile.am): Likewise.
41886         * modules/nanosleep (Makefile.am): Likewise.
41887         * modules/openat (Makefile.am): Likewise.
41888         * modules/pagealign_alloc (Makefile.am): Likewise.
41889         * modules/physmem (Makefile.am): Likewise.
41890         * modules/poll (Makefile.am): Likewise.
41891         * modules/posixtm (Makefile.am): Likewise.
41892         * modules/posixver (Makefile.am): Likewise.
41893         * modules/putenv (Makefile.am): Likewise.
41894         * modules/quote (Makefile.am): Likewise.
41895         * modules/quotearg (Makefile.am): Likewise.
41896         * modules/raise (Makefile.am): Likewise.
41897         * modules/read-file (Makefile.am): Likewise.
41898         * modules/readline (Makefile.am): Likewise.
41899         * modules/readlink (Makefile.am): Likewise.
41900         * modules/readtokens (Makefile.am): Likewise.
41901         * modules/readutmp (Makefile.am): Likewise.
41902         * modules/realloc (Makefile.am): Likewise.
41903         * modules/regex (Makefile.am): Likewise.
41904         * modules/rename (Makefile.am): Likewise.
41905         * modules/rename-dest-slash (Makefile.am): Likewise.
41906         * modules/rijndael (Makefile.am): Likewise.
41907         * modules/rmdir (Makefile.am): Likewise.
41908         * modules/rpmatch (Makefile.am): Likewise.
41909         * modules/safe-read (Makefile.am): Likewise.
41910         * modules/safe-write (Makefile.am): Likewise.
41911         * modules/same (Makefile.am): Likewise.
41912         * modules/save-cwd (Makefile.am): Likewise.
41913         * modules/savedir (Makefile.am): Likewise.
41914         * modules/setenv (Makefile.am): Likewise.
41915         * modules/settime (Makefile.am): Likewise.
41916         * modules/sha1 (Makefile.am): Likewise.
41917         * modules/sig2str (Makefile.am): Likewise.
41918         * modules/snprintf (Makefile.am): Likewise.
41919         * modules/stdlib-safer (Makefile.am): Likewise.
41920         * modules/stpcpy (Makefile.am): Likewise.
41921         * modules/stpncpy (Makefile.am): Likewise.
41922         * modules/strcase (Makefile.am): Likewise.
41923         * modules/strcasestr (Makefile.am): Likewise.
41924         * modules/strchrnul (Makefile.am): Likewise.
41925         * modules/strcspn (Makefile.am): Likewise.
41926         * modules/strdup (Makefile.am): Likewise.
41927         * modules/strerror (Makefile.am): Likewise.
41928         * modules/strftime (Makefile.am): Likewise.
41929         * modules/strndup (Makefile.am): Likewise.
41930         * modules/strnlen (Makefile.am): Likewise.
41931         * modules/strpbrk (Makefile.am): Likewise.
41932         * modules/strsep (Makefile.am): Likewise.
41933         * modules/strstr (Makefile.am): Likewise.
41934         * modules/strtod (Makefile.am): Likewise.
41935         * modules/strtoimax (Makefile.am): Likewise.
41936         * modules/strtok_r (Makefile.am): Likewise.
41937         * modules/strtol (Makefile.am): Likewise.
41938         * modules/strtoll (Makefile.am): Likewise.
41939         * modules/strtoul (Makefile.am): Likewise.
41940         * modules/strtoull (Makefile.am): Likewise.
41941         * modules/strtoumax (Makefile.am): Likewise.
41942         * modules/strverscmp (Makefile.am): Likewise.
41943         * modules/time_r (Makefile.am): Likewise.
41944         * modules/timegm (Makefile.am): Likewise.
41945         * modules/tmpfile-safer (Makefile.am): Likewise.
41946         * modules/unistd-safer (Makefile.am): Likewise.
41947         * modules/unlinkdir (Makefile.am): Likewise.
41948         * modules/userspec (Makefile.am): Likewise.
41949         * modules/utime (Makefile.am): Likewise.
41950         * modules/utimecmp (Makefile.am): Likewise.
41951         * modules/utimens (Makefile.am): Likewise.
41952         * modules/vasnprintf (Makefile.am): Likewise.
41953         * modules/vasprintf (Makefile.am): Likewise.
41954         * modules/vsnprintf (Makefile.am): Likewise.
41955         * modules/xalloc (Makefile.am): Likewise.
41956         * modules/xgetcwd (Makefile.am): Likewise.
41957         * modules/xnanosleep (Makefile.am): Likewise.
41958         * modules/xreadlink (Makefile.am): Likewise.
41959         * modules/xstrtod (Makefile.am): Likewise.
41960         * modules/xstrtol (Makefile.am): Likewise.
41961         * modules/xstrtold (Makefile.am): Likewise.
41962         * modules/yesno (Makefile.am): Likewise.
41963
41964 2006-10-12  Jim Meyering  <jim@meyering.net>
41965
41966         * m4/getloadavg.m4: Revert the change below.
41967
41968         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41969         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41970         fail with a symlink, which is what coreutils' ./bootstrap now
41971         creates by default.
41972
41973 2006-10-12  Bruno Haible  <bruno@clisp.org>
41974
41975         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41976         mingw.
41977         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41978         MSVC and mingw explicitly.
41979
41980 2006-10-11  Simon Josefsson  <jas@extundo.com>
41981             Bruno Haible  <bruno@clisp.org>
41982
41983         Add support for multiple gnulib-tool invocations in the scope of a
41984         single configure.ac file.
41985         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41986         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41987         with the same contents as the _LIBADD variable.
41988         (func_emit_initmacro_start, func_emit_initmacro_end,
41989         func_emit_initmacro_done): New functions.
41990         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41991         gl_LIBOBJS and gl_LTLIBOBJS.
41992
41993 2006-10-11  Bruno Haible  <bruno@clisp.org>
41994
41995         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41996         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41997         autoreconf. Instead, invoke autopoint explicitly but move back the
41998         *.m4 files from gnulib.
41999
42000 2006-10-11  Bruno Haible  <bruno@clisp.org>
42001
42002         * gnulib-tool (func_usage): Make module names after --create-testdir
42003         optional.
42004         (func_create_testdir): If no module was specified, use nearly all
42005         modules.
42006
42007 2006-10-12  Jim Meyering  <jim@meyering.net>
42008
42009         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42010         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42011         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42012         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42013         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42014         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42015         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42016         (fts_set_stat_required): New function.
42017         (fts_open): Defer the calls to fts_stat, if possible or requested.
42018         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42019         into fts_stat itself.
42020         (fts_read): Perform any required (deferred) fts_stat call.
42021         (fts_build): Likewise, for the directory we're about to open and read.
42022         In the readdir loop, carefully decide whether each entry will require
42023         an eventual call to fts_stat, using dirent.d_type info if available.
42024         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42025         a command line argument into this function.  Update all callers.
42026         Map a return value of FTS_DOT to FTS_D for a command line argument.
42027         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42028         Thanks to Miklos Szeredi for his tenacity and for the initial
42029         bug report about "find" failing on a FUSE-based file system.
42030
42031         * lib/fts.c (fts_open): Use consistent indentation.
42032
42033 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42034
42035         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42036         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42037         reported by Jim Meyering.  All uses of cache variables renamed
42038         to match Autoconf's.
42039         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42040         the other one.
42041
42042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42043         Fix misspelling in diagnostic.
42044
42045 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42046
42047         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42048         defined.  Problem reported by Matthew Woehlke.
42049
42050         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42051         Add support for Tandem NonStop R series.
42052         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42053         Use new macro.
42054
42055         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42056         (has_trailing_slash): Omit size arg; all callers changed.
42057         Omit 'inline', since it doesn't help performance and we'd
42058         need to configure it.
42059         Don't count //, ///, etc. as having a trailing slash.
42060         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42061         (rpl_rename_dest_slash): On failure, use rename's errno rather
42062         than (in some cases) an incorrect or junk errno.
42063         Simplify code by removing need to compute length; this does
42064         cause it to make two passes instead of one over the file name,
42065         but it's worth it.
42066
42067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42068         change, since Autoconf's version may no longer be appropriate now
42069         that we are using CVS Autoconf's version.  Add support for Tandem.
42070
42071 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42072             Bruno Haible  <bruno@clisp.org>
42073
42074         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42075         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42076         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42077         gl_AC_TYPE_LONG_LONG.
42078
42079         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42080         instead of HAVE_LONG_LONG.
42081         * lib/printf-args.c (printf_fetchargs): Likewise.
42082         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42083         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42084         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42085         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42086         gl_AC_TYPE_LONG_LONG.
42087
42088 2006-10-11  Bruno Haible  <bruno@clisp.org>
42089
42090         * m4/longlong.m4: Add comments.
42091         * m4/ulonglong.m4: Likewise.
42092
42093 2006-10-10  Bruno Haible  <bruno@clisp.org>
42094
42095         Make it possible to #define stpcpy, strdup to aliases.
42096         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42097         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42098
42099 2006-10-10  Bruno Haible  <bruno@clisp.org>
42100
42101         Make it possible to #define gcd to an alias.
42102         * lib/gcd.c: Include config.h.
42103
42104 2006-10-10  Bruno Haible  <bruno@clisp.org>
42105
42106         Make it possible to #define c_isascii to an alias.
42107         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42108         defined. Undefine the macros before defining them, to avoid gcc
42109         warnings.
42110         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42111         define NO_C_CTYPE_MACROS early.
42112
42113 2006-10-10  Bruno Haible  <bruno@clisp.org>
42114
42115         Make it possible to #define set_program_name to an alias.
42116         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42117         ENABLE_RELOCATABLE early.
42118
42119 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42120
42121         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42122         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42123         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42124         More generally, don't assume that 64-bit signed int is available
42125         if unsigned int is, and vice versa.
42126         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42127         unsigned symbols, not on their signed counterparts.
42128         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42129         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42130         (UINT64_C, UINTMAX_C):
42131         Likewise.
42132         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42133         unsigned counterparts.
42134         (Have_long_long, Unsigned): New macros.
42135         (Int): Renamed from INT.
42136         (strtoimax): Use the new macros.
42137         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42138         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42139         * modules/inttypes (inttypes.h): Substitute
42140         HAVE_UNSIGNED_LONG_LONG_INT.
42141         * modules/stdint (stdint.h): Likewise.
42142         (Files): Add m4/ulonglong.m4.
42143
42144 2006-10-10  Bruno Haible  <bruno@clisp.org>
42145
42146         Fix a gcc -Wshadow warning.
42147         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42148         to 'bucket'.
42149         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42150         gl_linked_indexof_from_to): Likewise.
42151         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42152         Likewise.
42153         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42154         Likewise.
42155         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42156         Reported by Eric Blake.
42157
42158 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42159
42160         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42161         for NetBSD.  Problem reported by Bruno Haible.
42162
42163 2006-10-09  Jim Meyering  <jim@meyering.net>
42164
42165         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42166         Patch from Bruno Haible.
42167
42168 2006-10-09  Jim Meyering  <jim@meyering.net>
42169
42170         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42171         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42172         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42173
42174 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42175
42176         Don't include <config.h> twice; this doesn't work in some cases,
42177         e.g., when config.h has "#define intmax_t long long int" and
42178         we include <config.h>, <inttypes.h>, <config.h> in that order.
42179         Problem reported by Matthew Woehlke in:
42180         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42181         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42182         * lib/fts-cycle.c: Don't include config.h.
42183         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42184         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42185         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42186         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42187         inttypes.h.
42188         * lib/xstrtoumax.c: Likewise.
42189         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42190         __strtol and the like, so that this module is more like its siblings.
42191         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42192         Remove; no longer needed now that we assume gnulib inttypes.h.
42193
42194 2006-10-08  Bruno Haible  <bruno@clisp.org>
42195
42196         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42197         option.
42198
42199 2006-10-07  Jim Meyering  <jim@meyering.net>
42200
42201         * modules/inttypes (inttypes.h): Revert what seems to have been
42202         an inadvertent part of today's change: use "|", not "/" in the
42203         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42204
42205 2006-10-07  Bruno Haible  <bruno@clisp.org>
42206
42207         * modules/sublist: New file.
42208
42209 2006-10-07  Bruno Haible  <bruno@clisp.org>
42210
42211         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42212         * modules/argz (argz.h): Likewise.
42213         * modules/arpa_inet (arpa/inet.h): Likewise.
42214         * modules/byteswap (byteswap.h): Likewise.
42215         * modules/configmake (configmake.h): Likewise.
42216         * modules/fcntl (fcntl.h): Likewise.
42217         * modules/fnmatch (fnmatch.h): Likewise.
42218         * modules/getopt (getopt.h): Likewise.
42219         * modules/glob (glob.h): Likewise.
42220         * modules/inttypes (inttypes.h): Likewise.
42221         * modules/netinet_in (netinet/in.h): Likewise.
42222         * modules/poll (poll.h): Likewise.
42223         * modules/stdbool (stdbool.h): Likewise.
42224         * modules/stdint (stdint.h): Likewise.
42225         * modules/sys_select (sys/select.h): Likewise.
42226         * modules/sys_socket (sys/socket.h): Likewise.
42227         * modules/sys_stat (sys/stat.h): Likewise.
42228         * modules/sysexits (sysexits.h): Likewise.
42229         * modules/unistd (unistd.h): Likewise.
42230         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42231         Add a "DO NOT EDIT" comment to the generated file.
42232         (func_import): Likewise for gnulib-comp.m4.
42233
42234 2006-10-07  Bruno Haible  <bruno@clisp.org>
42235
42236         * lib/gl_sublist.h: New file.
42237         * lib/gl_sublist.c: New file.
42238
42239 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42240
42241         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42242         name (relative to the original working directory) and the file
42243         name component (relative to the temporary working directory).  All
42244         callers changed.
42245         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42246         * lib/mkdir-p.c (make_dir_parents): Likewise.
42247         * lib/mkdir-p.h (make_dir_parents): Likewise.
42248
42249 2006-10-06  Eric Blake  <ebb9@byu.net>
42250
42251         Define several macros for use by the clean-temp module.
42252         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42253         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42254         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42255
42256         * lib/clean-temp.h (close_stream_temp): New declaration.
42257         * lib/clean-temp.c (includes): Pull in headers according to what
42258         other modules are in use.
42259         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42260
42261 2006-10-06  Bruno Haible  <bruno@clisp.org>
42262
42263         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42264         instead of fopen, fwriteerror.
42265
42266 2006-10-06  Bruno Haible  <bruno@clisp.org>
42267
42268         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42269         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42270         int.
42271         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42272         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42273         Return an error indicator.
42274         Suggested by Eric Blake.
42275
42276 2006-10-06  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42279         Reported by Eric Blake.
42280
42281 2006-10-06  Bruno Haible  <bruno@clisp.org>
42282
42283         * modules/closeout (Description): Mention stderr too.
42284
42285 2006-10-06  Bruno Haible  <bruno@clisp.org>
42286         and Paul Eggert  <eggert@cs.ucla.edu>
42287
42288         * lib/closeout.c (close_stdout): Also close stderr.
42289         * lib/closeout.h: Update comment.
42290
42291 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42292
42293         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42294         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42295         * lib/dirchownmod.c: Include lchown.h.
42296         * lib/lchown.c: Don't include files that lchown.h now includes.
42297         Don't declare chown, since lchown.h now does that.
42298         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42299         (lchown): Define to rpl_chown if lchown is declared but
42300         does not exist.  Declare using a prototype if lchown is not
42301         declared.  Add a copyright notice.
42302         * lib/mkstemp.h: Include <unistd.h>.
42303         * lib/openat.c: Include lchown.h.
42304
42305         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42306         we now test for that separately.
42307         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42308         rather than O_NOFOLLOW, when testing whether it's possible to
42309         avoid a race condition reliably.
42310         * lib/savewd.c (savewd_chdir): Likewise.
42311
42312         Remove macros that are no longer needed now that stdint.h is
42313         reliable.
42314         * lib/fsusage.c (UINTMAX_MAX): Remove.
42315         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42316         * lib/utimecmp.c (SIZE_MAX): Remove.
42317
42318         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42319
42320         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42321         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42322         O_NOATIME works.
42323
42324 2006-10-05  Bruno Haible  <bruno@clisp.org>
42325
42326         * lib/gl_list.h (gl_sortedlist_search_from_to,
42327         gl_sortedlist_indexof_from_to): New declarations.
42328         (gl_list_implementation): New fields sortedlist_search_from_to,
42329         sortedlist_indexof_from_to.
42330         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42331         inline functions.
42332         * lib/gl_list.c (gl_sortedlist_search_from_to,
42333         gl_sortedlist_indexof_from_to): New functions.
42334         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42335         function.
42336         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42337         (gl_array_sortedlist_search_from_to): New function.
42338         (gl_array_list_implementation): Update.
42339         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42340         function.
42341         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42342         (gl_carray_sortedlist_search_from_to): New function.
42343         (gl_carray_list_implementation): Update.
42344         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42345         gl_linked_sortedlist_indexof_from_to): New functions.
42346         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42347         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42348         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42349         gl_tree_sortedlist_indexof_from_to): New functions.
42350         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42351         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42352         Update.
42353         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42354         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42355         Update.
42356
42357 2006-10-05  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42360         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42361         (struct gl_list_implementation): Add fields search_from_to,
42362         indexof_from_to. Remove fields search, indexof.
42363         (gl_list_search): Use the search_from_to method.
42364         (gl_list_search_from, gl_list_search_from_to): New functions.
42365         (gl_list_indexof): Use the indexof_from_to method.
42366         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42367         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42368         (gl_list_search_from, gl_list_search_from_to): New functions.
42369         (gl_list_indexof): Use the indexof_from_to method.
42370         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42371         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42372         gl_array_indexof. Add start_index, end_index arguments.
42373         (gl_array_search_from_to): Renamed from gl_array_search. Add
42374         start_index, end_index arguments.
42375         (gl_array_remove, gl_array_list_implementation): Update.
42376         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42377         gl_carray_indexof. Add start_index, end_index arguments.
42378         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42379         start_index, end_index arguments.
42380         (gl_carray_remove, gl_carray_list_implementation): Update.
42381         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42382         gl_linked_search. Add start_index, end_index arguments.
42383         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42384         start_index, end_index arguments.
42385         (gl_linked_remove): Update.
42386         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42387         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42388         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42389         field to 'size_t'.
42390         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42391         gl_tree_search. Add start_index, end_index arguments.
42392         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42393         start_index, end_index arguments.
42394         (gl_tree_remove): Update.
42395         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42396         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42397         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42398         function.
42399         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42400         gl_tree_search. Add start_index, end_index arguments.
42401         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42402         start_index, end_index arguments.
42403         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42404         Update.
42405         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42406
42407 2006-10-05  Bruno Haible  <bruno@clisp.org>
42408
42409         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42410
42411         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42412         fwriteerror_temp): New declarations.
42413         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42414         (descriptors): New variable.
42415         (cleanup): First, close the descriptors.
42416         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42417         fclose_temp, fwriteerror_temp): New functions.
42418
42419 2006-10-04  Jim Meyering  <jim@meyering.net>
42420
42421         * lib/fts.c (fts_open): Tiny comment change.
42422
42423 2006-10-04  Bruno Haible  <bruno@clisp.org>
42424
42425         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42426         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42427         gl_LOCK_BODY.
42428         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42429         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42430         gl_LOCK_EARLY_BODY.
42431         (gl_LOCK): Require gl_LOCK_BODY.
42432
42433 2006-10-04  Bruno Haible  <bruno@clisp.org>
42434
42435         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42436         (gl_oset_search_atleast): New declaration.
42437         (struct gl_oset_implementation): Add field 'search_atleast'.
42438         (gl_oset_search_atleast): New inline function.
42439         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42440         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42441         (gl_array_oset_implementation): Update.
42442         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42443         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42444         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42445
42446 2006-10-04  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42449
42450 2006-10-03  Bruno Haible  <bruno@clisp.org>
42451
42452         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42453         from gl_avltreehash_list_implementation.
42454
42455 2006-10-03  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/gl_oset.c (gl_oset_add): Fix return type.
42458
42459 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42460
42461         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42462
42463 2006-10-02  Eric Blake  <ebb9@byu.net>
42464
42465         * modules/strnlen (Depends-on): Add extensions.
42466
42467 2006-10-02  Eric Blake  <ebb9@byu.net>
42468
42469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42470         definition in 2.60+.
42471
42472 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42473
42474         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42475         checks.
42476
42477 2006-10-02  Bruno Haible  <bruno@clisp.org>
42478
42479         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42480         to the AUTOMAKE_OPTIONS.
42481         Reported by Jim Meyering.
42482
42483 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42484
42485         Work around bug in Solaris 10 /proc file system:
42486         /proc/self/fd/NNN/.. isn't the parent directory of
42487         the directory whose file descriptor is NNN.  This needs to
42488         be worked around at run time, not compile time, since a
42489         program might be built on Solaris 8, where things work, and
42490         run on Solaris 10.
42491         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42492         to use the following interface instead:
42493         (OPENAT_BUFFER_SIZE): New macro.
42494         (openat_proc_name): New function.
42495         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42496         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42497         Likewise.
42498         * lib/openat-proc.c: New file.
42499         * modules/openat (Files): Add lib/openat-proc.c.
42500         (Depends-on): Add same-inode, stdbool.
42501         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42502
42503 2006-09-29  Bruno Haible  <bruno@clisp.org>
42504
42505         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42506         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42507         argument. Set stdout_closed before testing for ferror, not after.
42508         (fwriteerror, fwriteerror_no_ebadf): New functions.
42509
42510 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42511
42512         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42513
42514 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42515
42516         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42517         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42518
42519 2006-09-28  Jim Meyering  <jim@meyering.net>
42520
42521         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42522         Include <unistd.h>.
42523
42524 2006-09-28  Bruno Haible  <bruno@clisp.org>
42525
42526         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42527         * modules/linkedhash-list (Depends-on): Likewise.
42528         * modules/rbtreehash-list (Depends-on): Likewise.
42529
42530 2006-09-28  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/strndup.h: Simplify the redefinition of strndup.
42533         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42535
42536 2006-09-28  Bruno Haible  <bruno@clisp.org>
42537
42538         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42539         * lib/gl_linkedhash_list.c: Likewise.
42540         * lib/gl_rbtreehash_list.c: Likewise.
42541
42542 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42543
42544         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42545         getaddrinfo.
42546
42547         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42548         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42549         it causes <stdio_ext.h> to cause a compile-time error.
42550         Problem reported by Nelson H. F. Beebe.
42551         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42552         of HAVE_DECL___PENDING.
42553
42554         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42555         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42556         declaration.
42557
42558 2006-09-27  Jim Meyering  <jim@meyering.net>
42559
42560         This file could end up with a definition for a function
42561         named __strndup, rather than rpl_strndup on a system with
42562         incomplete weak_alias support.
42563         * lib/strndup.c (strndup): Rename from __strndup.
42564         Remove #defines that used to map __strndup to strndup.
42565         Don't use K&R prototypes.
42566         Remove LIBC-related code, since this file is not sync'd with glibc.
42567         * lib/strndup.h: Revamp, accordingly.
42568         * m4/strndup.m4: Modernize.
42569
42570 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42571
42572         * modules/savewd (Depends-on): Add 'raise'.
42573         * lib/savewd.c: Include <signal.h>, for 'raise'.
42574
42575 2006-09-26  Jim Meyering  <jim@meyering.net>
42576
42577         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42578         when we detect Darwin 8.7.0's acl_get_file bug.
42579         Rearrange to perform the new (below) run-test while $LIBS
42580         contains any acl-related library.  Set USE_ACL at the end.
42581         (gl_ACL_GET_FILE): New function.
42582
42583 2006-09-26  Eric Blake  <ebb9@byu.net>
42584
42585         * lib/verror.c: Include <config.h> unconditionally.
42586
42587 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42588
42589         * modules/clock-time (Maintainer): Add self.
42590         * modules/getlogin_r (Depends-on): Add extensions.
42591
42592 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42593
42594         * modules/clock-time: New module.
42595         * modules/nanosleep (Depends-on): Add clock-time.
42596         * modules/gethrxtime (Depends-on): Likewise.
42597         * modules/gettime (Depends-on): Likewise.
42598         * modules/settime (Depends-on): Likewise.
42599
42600         * modules/fts-lgpl: Depend on openat.
42601         * modules/mkancesdirs: Depend on savewd.
42602         * modules/mkdir-p: Likewise.
42603
42604 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42605
42606         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42607
42608         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42609         `gl_have_arbitrary_file_name_length_limit' to
42610         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42611         actually works between configure runs.
42612
42613 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42614             Bruno Haible  <bruno@clisp.org>
42615
42616         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42617
42618 2006-09-25  Jim Meyering  <jim@meyering.net>
42619
42620         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42621         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42622
42623 2006-09-25  Eric Blake  <ebb9@byu.net>
42624
42625         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42626         exec's in 2006-09-18 patch when shuffling fds.
42627
42628 2006-09-25  Bruno Haible  <bruno@clisp.org>
42629
42630         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42631         Reported by Jim Meyering.
42632
42633 2006-09-24  Jim Meyering  <jim@meyering.net>
42634
42635         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42636         compare a pointer against a literal "0".  That caused failures with
42637         at least HP-UX's hpcc.
42638
42639 2006-09-22  Simon Josefsson  <jas@extundo.com>
42640
42641         * modules/gc-sha1:
42642         * modules/gc-md4:
42643         * modules/gc-hmac-sha1:
42644         * modules/gc-hmac-md5:
42645         * modules/gc-des:
42646         * modules/gc-arcfour: Distribute more files.
42647
42648 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42649
42650         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42651         (gl_linked_iterator_from_to): Initialize struct completely.
42652         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42653         (gl_tree_iterator_from_to): Likewise
42654         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42655         * lib/gl_array_list.c [lint] (gl_array_iterator)
42656         (gl_array_iterator_from_to): Likewise.
42657         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42658         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42659         (gl_carray_iterator_from_to): Likewise.
42660
42661         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42662         * lib/md4.c (md4_process_block): Remove unused variable.
42663         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42664         parentheses for clarity.
42665
42666 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42667
42668         * modules/bison-i18n (Depends-on): Add gettext.
42669
42670 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42671
42672         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42673         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42674         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42675         also add missing comma that caused broken test.
42676         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42677         stdlib.h, for `abort'.
42678         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42679         variables.
42680         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42681         include unistd.h if present, for `rmdir'.
42682         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42683         variables.
42684         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42685         in the process include standard headers for prototypes.
42686         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42687         gets declared on GNU/Linux.
42688         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42689         unistd.h, for `rmdir'.
42690         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42691
42692         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42693         always true.
42694         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42695
42696         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42697
42698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42699
42700         * gnulib-tool (func_version): Create output all at once.  This
42701         may help avoid triggering unnecessary SIGPIPEs, and at any
42702         rate it doesn't hurt.
42703
42704 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42705             Bruno Haible  <bruno@clisp.org>
42706
42707         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42708         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42709         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42710
42711         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42712         (gl_FUNC_VASPRINTF): Invoke it.
42713
42714 2006-09-22  Bruno Haible  <bruno@clisp.org>
42715
42716         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42717         getloadavg.c as first argument.
42718
42719 2006-09-22  Bruno Haible  <bruno@clisp.org>
42720
42721         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42722         at the beginning of the gl_INIT macro.
42723         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42724         gl_GETLOADAVG.
42725
42726 2006-09-22  Bruno Haible  <bruno@clisp.org>
42727
42728         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42729         module.
42730         Suggested by Ralf Wildenhues.
42731
42732 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42733
42734         Import this patch from libc:
42735
42736         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42737
42738         * lib/regex_internal.c (re_string_reconstruct): Handle
42739         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42740         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42741         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42742         re_string_context_at.
42743
42744         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42745         now requires it.
42746         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42747         gl_REGEX now does it for us.
42748         (gl_REGEX): Add test taken from
42749         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42750
42751         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42752         Check that large offsets work.  Modernize Autoconf usages.
42753         Prefer "yes" to mean a good thing rather than a bad.
42754         Don't put "#define mkstemp" in config.h, as this might interfere
42755         with standard system headers that "#define mkstemp mkstemp64".
42756
42757         * modules/mkstemp (Depends-on): Add extensions, so that
42758         mkstemp is visible on some platforms.
42759         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42760         (Include): Change to "mkstemp.h" from <stdlib.h>.
42761         (Files): Add mkstemp.h.
42762
42763         * lib/mkstemp.h: New file, since some standard headers
42764         #define mkstemp.
42765         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42766         Include "mkstemp.h".
42767         Make the _LIBC code resemble glibc original more,
42768         e.g., use K&R style.
42769         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42770         (mkstemp): Remove, since mkstemp.h does this for us.
42771         * lib/stdlib--.h: Include mkstemp.h.
42772
42773         Import this patch from libc:
42774
42775         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42776
42777         * lib/tempname.c (__gen_tempname): Change attempts_min
42778         into a macro.  Use preprocessor to decide how to initialize
42779         attempts [Coverity CID 67].
42780
42781 2006-09-20  Bruno Haible  <bruno@clisp.org>
42782
42783         * lib/mkdtemp.c: Import from libc.
42784         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42785                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42786                 attempts_min into a macro.  Use preprocessor to decide how to
42787                 initialize attempts [Coverity CID 67].
42788         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42789                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42790                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42791
42792 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42793
42794         * gnulib-tool (func_exit): New function, to allow to pass the
42795         exit status portably through the trap.  Use everywhere.
42796         (--help, --version): Signal a write error.
42797         (trap): catch SIGPIPE, for write errors.
42798         Exit at the end of the trap, with the correct exit status.
42799
42800 2006-09-19  Karl Berry  <karl@gnu.org>
42801
42802         * doc/gnulib.texi: note about the license texinfo files.
42803
42804 2006-09-19  Eric Blake  <ebb9@byu.net>
42805
42806         * gnulib-tool: Avoid space-tab.
42807
42808 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42809
42810         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42811         that prevented coreutils 6.1 from building.  Problem reported
42812         by Petter Reinholdtsen.
42813
42814 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42815
42816         * gnulib-tool (avoidlist): Fix typo that broke options like
42817         --avoid=lock that are used by coreutils bootstrap.
42818
42819 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42820
42821         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42822         more systematically.
42823
42824 2006-09-18  Jim Meyering  <jim@meyering.net>
42825
42826         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42827
42828 2006-09-18  Bruno Haible  <bruno@clisp.org>
42829
42830         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42831
42832 2006-09-18  Bruno Haible  <bruno@clisp.org>
42833
42834         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42835         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42836         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42837         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42838         * m4/gettext.m4: Require autoconf >= 2.52.
42839         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42840         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42841         of gl_cv_header_inttypes_h.
42842
42843 2006-09-18  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/javaversion.c: Include configmake.h.
42846
42847 2006-09-18  Bruno Haible  <bruno@clisp.org>
42848
42849         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42850         avoid that the while loops be executed in a subshell.
42851
42852 2006-09-18  Bruno Haible  <bruno@clisp.org>
42853
42854         * MODULES.html.sh (func_module): Break long lines.
42855         Suggested by Bruce Korb <bkorb@gnu.org>.
42856
42857 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42858
42859         Speed up by a factor of 1.12.
42860         * gnulib-tool (nl): New variable.
42861         (func_import): Rewrite include directive extraction to only read each
42862         directive once.
42863
42864 2006-09-17  Bruno Haible  <bruno@clisp.org>
42865
42866         * modules/javaversion (Makefile.am): Remove DEFS setting.
42867         (Depends-on): Add configmake, for PKGDATADIR definition.
42868
42869 2006-09-17  Bruno Haible  <bruno@clisp.org>
42870
42871         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42872
42873 2006-09-17  Bruno Haible  <bruno@clisp.org>
42874
42875         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42876         (func_modules_transitive_closure, func_modules_add_dummy,
42877         func_modules_to_filelist, func_import, func_create_testdir,
42878         func_create_megatestdir, ...): Use it wherever possible.
42879         Suggested by Ralf Wildenhues.
42880
42881 2006-09-16  Karl Berry  <karl@gnu.org>
42882
42883         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42884         to avoid sectioning errors.
42885         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42886         [ifinfo]: blank line after @center-ed titles.
42887         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42888         Spell FSF address consistently with others.
42889         (These changes approved by rms.)
42890
42891 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42892
42893         Speed up by a factor of 1.61.
42894         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42895         already checked module names again.
42896
42897 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42898
42899         Speed up by a factor of 1.13.
42900         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42901         for new_files, and the input to func_add_or_update.
42902
42903 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42904
42905         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42906         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42907
42908 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42909
42910         * modules/mkancesdirs (Depends-on): Add fcntl.
42911         * modules/savewd: New file.
42912         * MODULES.html.sh (File system functions): Add savewd.
42913
42914         * modules/configmake (Makefile.am): Add support for the
42915         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42916
42917 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42918
42919         * m4/savewd.m4: New file.
42920
42921 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42922
42923         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42924         (dirchownmod): New arg FD.  All callers changed.
42925         Use FD rather than opening the directory ourself, as opening is
42926         now the caller's responsibility.
42927         * lib/dirchownmod.h: Likewise.
42928         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42929         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42930         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42931         (test_dir): Remove.
42932         (mkancesdirs): Return length of prefix of FILE that has already
42933         been made, or -2 if there is a child doing the work.  Redo
42934         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42935         ".", and treat ".." specially since it might stray back into
42936         already-created areas.  Use a subprocess if necessary.  New arg
42937         WD; all users changed.  MAKE_DIR function should now return 1
42938         if it creates a directory that is not readable.  Return -2 if
42939         a child process is spun off.
42940         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42941         Adjust signature to match code.
42942         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42943         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42944         all users changed.
42945         * lib/savewd.c, lib/savewd.h: New files.
42946
42947 2006-09-15  Jim Meyering  <jim@meyering.net>
42948
42949         * modules/rename-dest-slash: New module.
42950         * MODULES.html.sh (posix_compat): Add it here.
42951
42952         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42953
42954 2006-09-15  Jim Meyering  <jim@meyering.net>
42955
42956         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42957         file.
42958
42959         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42960
42961 2006-09-15  Jim Meyering  <jim@meyering.net>
42962
42963         * lib/rename-dest-slash.c (has_trailing_slash): Use
42964         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42965         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42966         test before testing whether SRC is a directory.
42967         Suggestions from Bruno Haible.
42968
42969         Avoid a warning about an unused variable.
42970         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42971         into the #ifdef block where it's used.
42972
42973         * lib/rename-dest-slash.c: New file.
42974
42975 2006-09-14  Bruno Haible  <bruno@clisp.org>
42976
42977         * lib/allocsa.c: Include <config.h> unconditionally.
42978         * lib/asnprintf.c: Likewise.
42979         * lib/asprintf.c: Likewise.
42980         * lib/c-strcasecmp.c: Likewise.
42981         * lib/c-strcasestr.c: Likewise.
42982         * lib/c-strncasecmp.c: Likewise.
42983         * lib/c-strstr.c: Likewise.
42984         * lib/classpath.c: Likewise.
42985         * lib/clean-temp.c: Likewise.
42986         * lib/concatpath.c: Likewise.
42987         * lib/copy-file.c: Likewise.
42988         * lib/csharpcomp.c: Likewise.
42989         * lib/csharpexec.c: Likewise.
42990         * lib/execute.c: Likewise.
42991         * lib/fatal-signal.c: Likewise.
42992         * lib/findprog.c: Likewise.
42993         * lib/fwriteerror.c: Likewise.
42994         * lib/gl_array_list.c: Likewise.
42995         * lib/gl_array_oset.c: Likewise.
42996         * lib/gl_avltree_list.c: Likewise.
42997         * lib/gl_avltree_oset.c: Likewise.
42998         * lib/gl_avltreehash_list.c: Likewise.
42999         * lib/gl_carray_list.c: Likewise.
43000         * lib/gl_linked_list.c: Likewise.
43001         * lib/gl_linkedhash_list.c: Likewise.
43002         * lib/gl_list.c: Likewise.
43003         * lib/gl_oset.c: Likewise.
43004         * lib/gl_rbtree_list.c: Likewise.
43005         * lib/gl_rbtree_oset.c: Likewise.
43006         * lib/gl_rbtreehash_list.c: Likewise.
43007         * lib/imaxabs.c: Likewise.
43008         * lib/imaxdiv.c: Likewise.
43009         * lib/javacomp.c: Likewise.
43010         * lib/javaexec.c: Likewise.
43011         * lib/javaversion.c: Likewise.
43012         * lib/linebreak.c: Likewise.
43013         * lib/localcharset.c: Likewise.
43014         * lib/lock.c: Likewise.
43015         * lib/mbchar.c: Likewise.
43016         * lib/mbswidth.c: Likewise.
43017         * lib/mkdtemp.c: Likewise.
43018         * lib/pipe.c: Likewise.
43019         * lib/printf-args.c: Likewise.
43020         * lib/printf-parse.c: Likewise.
43021         * lib/progname.c: Likewise.
43022         * lib/progreloc.c: Likewise.
43023         * lib/readlink.c: Likewise.
43024         * lib/sh-quote.c: Likewise.
43025         * lib/stpcpy.c: Likewise.
43026         * lib/stpncpy.c: Likewise.
43027         * lib/strcasecmp.c: Likewise.
43028         * lib/strcasestr.c: Likewise.
43029         * lib/strcspn.c: Likewise.
43030         * lib/striconv.c: Likewise.
43031         * lib/strncasecmp.c: Likewise.
43032         * lib/strnlen1.c: Likewise.
43033         * lib/strstr.c: Likewise.
43034         * lib/strtok_r.c: Likewise.
43035         * lib/tls.c: Likewise.
43036         * lib/tmpdir.c: Likewise.
43037         * lib/unicodeio.c: Likewise.
43038         * lib/unsetenv.c: Likewise.
43039         * lib/vasnprintf.c: Likewise.
43040         * lib/vasprintf.c: Likewise.
43041         * lib/wait-process.c: Likewise.
43042         * lib/xallocsa.c: Likewise.
43043         * lib/xsetenv.c: Likewise.
43044         * lib/xstriconv.c: Likewise.
43045
43046 2006-09-13  Simon Josefsson  <jas@extundo.com>
43047
43048         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43049         that internally, suggested by Ralf Wildenhues
43050         <Ralf.Wildenhues@gmx.de>.
43051
43052 2006-09-13  Simon Josefsson  <jas@extundo.com>
43053
43054         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43055         @LIBOBJS@.
43056         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43057
43058 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43059
43060         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43061         longer worry about uses that don't define HAVE_CONFIG_H.
43062         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43063         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43064         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43065         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43066         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43067         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43068         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43069         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43070         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43071         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43072         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43073         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43074         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43075         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43076         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43077         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43078         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43079         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43080         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43081         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43082         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43083         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43084         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43085         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43086         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43087         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43088         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43089         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43090         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43091         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43092         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43093         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43094         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43095         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43096         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43097         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43098         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43099         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43100         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43101         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43102         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43103         Likewise.
43104
43105 2006-09-13  Eric Blake  <ebb9@byu.net>
43106
43107         * lib/getopt.c: Fix typo in last commit.
43108
43109 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43110
43111         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43112         dgettext.
43113
43114 2006-09-12  Jim Meyering  <jim@meyering.net>
43115
43116         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43117         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43118         Reported by Nelson H. F. Beebe.
43119
43120 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43121
43122         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43123         program_invocation_name and program_invocation_short_name are
43124         initialized.
43125         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43126         and program_invocation_short_name to argp.h, so they are visible
43127         to user programs.
43128         * lib/argp.h: Likewise
43129
43130 2006-09-10  Bruno Haible  <bruno@clisp.org>
43131
43132         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43133         m4/inttypes_h.m4, m4/uintmax_t.m4.
43134
43135 2006-09-10  Bruno Haible  <bruno@clisp.org>
43136
43137         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43138         gl_AC_TYPE_UINTMAX_T.
43139
43140 2006-09-10  Bruno Haible  <bruno@clisp.org>
43141
43142         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43143
43144 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43145
43146         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43147         convention.  Text proposed by Bruno Haible.
43148         (struct argp_option): Document the use of N_() wrappers.
43149
43150         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43151         '\v', and translate the two parts separately, instead of feeding
43152         the whole string to gettext.  This allows to exclude
43153         '\v' from the strings visible to the translator by writing doc
43154         strings as N_("..") "\v" N_("..").
43155
43156 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43157
43158         * config/srclist.txt: Undo latest change; the bug was fixed.
43159
43160 2006-09-09  Bruno Haible  <bruno@clisp.org>
43161
43162         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43163         assignments if building a library without libtool.
43164         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43165         in func_emit_lib_Makefile_am.
43166         (func_import): When building a static library libfoo.a, arrange to
43167         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43168         (func_create_testdir): Likewise.
43169         * modules/gc (configure.ac, Makefile.am): If building statically,
43170         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43171         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43172         * modules/striconv (configure.ac, Makefile.am): Likewise.
43173         Based on a suggestion by Ralf Wildenhues.
43174
43175 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43176
43177         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43178         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43179         Also:
43180
43181         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43182         Add year_2050_test to catch glibc bug 2821
43183         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43184
43185         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43186         Prefer #ifdef to #if.
43187
43188         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43189         Return from 'main' instead of calling 'exit'.
43190
43191 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43192
43193         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43194         returned the maximum time_t value rather than (time_t) -1.
43195         Problem originally reported by William Bardwell
43196         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43197
43198         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43199         Moved to here ...
43200         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43201         ... from here.
43202
43203 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43204
43205         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43206         2821 is fixed.
43207
43208 2006-09-08  Jim Meyering  <jim@meyering.net>
43209
43210         Don't make generated files read-only.  That would bother too many
43211         people.  However, do retain the ability to work when targets are
43212         read-only: remove the destination and temporary files before writing
43213         them (when generated via sed or echo), or by using the -f option for
43214         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43215         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43216         * modules/byteswap, modules/configmake, modules/fcntl:
43217         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43218         * modules/localcharset, modules/netinet_in, modules/poll:
43219         * modules/stdbool, modules/stdint, modules/sys_select:
43220         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43221
43222 2006-09-08  Jim Meyering  <jim@meyering.net>
43223
43224         Avoid new build failure on FreeBSD 6.0.
43225         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43226         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43227         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43228
43229 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43230
43231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43232
43233 2006-09-07  Jim Meyering  <jim@meyering.net>
43234
43235         Fix global typo in last change: use chmod u-w, not chmod u-x.
43236         Spotted by Paul Eggert and Bruce Korb.
43237         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43238         * modules/byteswap, modules/configmake, modules/fcntl:
43239         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43240         * modules/localcharset, modules/netinet_in, modules/poll:
43241         * modules/stdbool, modules/stdint, modules/sys_select:
43242         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43243
43244 2006-09-06  Jim Meyering  <jim@meyering.net>
43245
43246         Make generated files be read-only.
43247         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43248         Ensure that each generated file is now read-only.
43249         * modules/argz: Likewise.
43250         * modules/arpa_inet: Likewise.
43251         * modules/byteswap: Likewise.
43252         * modules/configmake: Likewise.
43253         * modules/fcntl: Likewise.
43254         * modules/fnmatch: Likewise.
43255         * modules/getopt: Likewise.
43256         * modules/glob: Likewise.
43257         * modules/inttypes: Likewise.
43258         * modules/netinet_in: Likewise.
43259         * modules/poll: Likewise.
43260         * modules/stdbool: Likewise.
43261         * modules/stdint: Likewise.
43262         * modules/sys_select: Likewise.
43263         * modules/sys_socket: Likewise.
43264         * modules/sys_stat: Likewise.
43265         * modules/sysexits: Likewise.
43266         * modules/localcharset: Same as above, but continue using temporary
43267         file named "t-$@" (why different?) rather than the "$@-t" used
43268         everywhere else.
43269
43270         * modules/sysexits (Makefile.am): Replace literal occurrences
43271         of "sysexit.h" more readable, and more consistent, "$@".
43272
43273 2006-09-06  Bruno Haible  <bruno@clisp.org>
43274
43275         * modules/striconv: New file.
43276         * modules/xstriconv: New file.
43277         * MODULES.html.sh (Internationalization functions): Add striconv,
43278         xstriconv.
43279
43280 2006-09-06  Bruno Haible  <bruno@clisp.org>
43281
43282         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43283         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43284         not using libtool correctly.
43285
43286 2006-09-06  Bruno Haible  <bruno@clisp.org>
43287
43288         * lib/striconv.h: New file.
43289         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43290         iconvstring.c.
43291         * lib/xstriconv.h: New file.
43292         * lib/xstriconv.c: New file.
43293
43294 2006-09-06  Bruno Haible  <bruno@clisp.org>
43295
43296         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43297         lib_..._LDFLAGS.
43298
43299 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43300
43301         * lib/argz_.h: Sync from Libtool.
43302
43303         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43304                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43305
43306         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43307
43308 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43309
43310         * modules/trim: New file.
43311
43312 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43313
43314         * lib/trim.h: New file.
43315         * lib/trim.c: New file.
43316
43317 2006-09-05  Bruno Haible  <bruno@clisp.org>
43318
43319         * MODULES.html.sh (String handling): Add trim.
43320
43321 2006-09-04  Karl Berry  <karl@gnu.org>
43322
43323         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43324         until next release.
43325
43326 2006-09-03  Bruno Haible  <bruno@clisp.org>
43327
43328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43329         correctly.
43330
43331 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43332
43333         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43334         not gl_GETLOADAVG.  Omit unneeded semicolons.
43335         Problems reported by Ralf Wildenhues in
43336         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43337         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43338         at the end, which is the usual gnulib style.
43339
43340         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43341         of doing all the work ourselves.
43342         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43343         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43344
43345 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43346
43347         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43348         Problem reported by Ralf Wildenhues in
43349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43350
43351         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43352         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43353
43354 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43355
43356         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43357         yesterday's patch by changing test -n to test -z.
43358
43359 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43360
43361         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43362         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43363         the former is now obsolescent.
43364
43365         * modules/chdir-long (Depends-on): Add fcntl.
43366
43367 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43368
43369         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43370         obsolescent, and programs should use gnulib instead.
43371         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43372         but with prefixes changed.
43373
43374 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43375
43376         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43377         or stdbool.h, because they might not exist while configuring.
43378
43379         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43380         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43381         does that for us.
43382         (O_DIRECTORY): Remove.
43383
43384 2006-08-31  Eric Blake  <ebb9@byu.net>
43385
43386         * gnulib-tool: Don't let emacs change spaces to TAB.
43387
43388 2006-08-31  Bruno Haible  <bruno@clisp.org>
43389
43390         * gnulib-tool: When calling func_import more than once, do it in a
43391         subshell.
43392         Reported by Eric Blake <ebb9@byu.net>.
43393
43394 2006-08-31  Bruno Haible  <bruno@clisp.org>
43395
43396         * gnulib-tool (nl): Remove variable.
43397         (sed_transform_lib_file): Use more robust test for config-h module.
43398         (func_import): Fix typo in 2006-08-25 patch.
43399
43400 2006-08-31  Bruno Haible  <bruno@clisp.org>
43401
43402         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43403         specified, augment Makefile.am variables instead of assigning them.
43404
43405 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43406
43407         Work around a bug in both the Linux and SunOS 64-bit kernels:
43408         nanosleep mishandles sleeps for longer than 2**31 seconds.
43409         Problem reported by Frank v Waveren in
43410         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43412         Check for nanosleep bug.
43413         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43414
43415 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43416
43417         Work around a bug in both the Linux and SunOS 64-bit kernels:
43418         nanosleep mishandles sleeps for longer than 2**31 seconds.
43419         Problem reported by Frank v Waveren in
43420         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43421         * lib/nanosleep.c (BILLION): New constant.
43422         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43423         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43424         implementation.
43425
43426 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43427
43428         * modules/nanosleep (Depends-on): Add gettime.
43429
43430 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43431         and Simon Josefsson  <jas@extundo.com>
43432         and Oskar Liljeblad  <oskar@osk.mine.nu>
43433
43434         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43435         * gnulib-tool (func_import): New license type 'unmodifiable license
43436         text'.
43437         * modules/fdl: Use it.  Longer description.
43438         * module/gpl, module/lgpl: New files.
43439
43440 2006-08-30  Jim Meyering  <jim@meyering.net>
43441
43442         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43443         shadowing the parameter.
43444
43445 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43446
43447         Sync from Libtool:
43448
43449         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43450
43451         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43452         sharing with gnulib.  Report by Eric Blake.
43453
43454 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43455
43456         * modules/isapipe: New file.
43457         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43458
43459 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43460
43461         * modules/configmake (Makefile.am): Add a comment, and omit
43462         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43463         by Bruno Haible.
43464
43465 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43466
43467         * m4/isapipe.m4: New file.
43468
43469 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43470
43471         * lib/isapipe.c, lib/isapipe.h: New files.
43472
43473 2006-08-29  Jim Meyering  <jim@meyering.net>
43474
43475         * modules/configmake (Makefile.am): Make configmake.h depend on
43476         Makefile.  Otherwise, a stale configmake.h could hang around.
43477
43478 2006-08-29  Eric Blake  <ebb9@byu.net>
43479
43480         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43481         resolution of upstream bug 3044.
43482
43483 2006-08-29  Bruno Haible  <bruno@clisp.org>
43484
43485         * modules/localcharset (Depends-on): Add configmake.
43486         (Makefile.am): Remove setting of LIBDIR through DEFS.
43487
43488 2006-08-29  Bruno Haible  <bruno@clisp.org>
43489
43490         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43491         defined.
43492
43493 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43494
43495         * modules/fcntl: New file.
43496         * modules/chdir-safer (Depends-on): Add fcntl.
43497         * modules/fts: Likewise.
43498         * modules/mkdir-p: Likewise.
43499
43500         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43501         This undoes the most recent change, since we're now addressing the
43502         problem in a different way.
43503
43504         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43505         into output, since the output might be called Makefile.am even
43506         if $makefile_name is something different.
43507         (func_import): Use $makefile_am rather than
43508         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43509         empty.
43510
43511         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43512
43513 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43514
43515         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43516         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43517         recent change to stdint.m4, since we're now addressing the problem in a
43518         different way.
43519
43520 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43521
43522         * m4/fcntl_h.m4: New file.
43523
43524 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43525
43526         * lib/fcntl_.h: New file.
43527         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43528         the fcntl module.
43529         * lib/dirchownmod.c: Likewise.
43530         * lib/fts.c: Likewise.
43531
43532         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43533         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43534         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43535         just before including <inttypes.h>, to avoid circular inclusion.
43536
43537 2006-08-28  Jim Meyering  <jim@meyering.net>
43538
43539         * doc/visibility.texi: Actually read and correct the grammar of the
43540         sentence affected by yesterday's change.
43541
43542 2006-08-28  Eric Blake  <ebb9@byu.net>
43543
43544         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43545         needs wrapper.
43546
43547 2006-08-28  Eric Blake  <ebb9@byu.net>
43548
43549         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43550
43551 2006-08-28  Eric Blake  <ebb9@byu.net>
43552
43553         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43554
43555 2006-08-28  Bruno Haible  <bruno@clisp.org>
43556
43557         * modules/c-strstr: New file, from GNU gettext.
43558         * MODULES.html.sh (String handling): Add c-strstr.
43559
43560 2006-08-28  Bruno Haible  <bruno@clisp.org>
43561
43562         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43563         macros.
43564         Reported by Eric Blake.
43565
43566 2006-08-28  Bruno Haible  <bruno@clisp.org>
43567
43568         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43569         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43570         * lib/vasprintf.c: Include errno.h, limits.h.
43571         (EOVERFLOW): New fallback definition.
43572         (vasprintf): Test here whether the string length is > INT_MAX.
43573         * lib/vsnprintf.c: Include errno.h, limits.h.
43574         (EOVERFLOW): New fallback definition.
43575         (vsnprintf): Fix bug when generated string was too long for the buffer.
43576         Test here whether the string length is > INT_MAX.
43577
43578 2006-08-28  Bruno Haible  <bruno@clisp.org>
43579
43580         * lib/inttypes_.h (SCNX*): Remove definitions.
43581         Reported by Eric Blake.
43582
43583 2006-08-28  Bruno Haible  <bruno@clisp.org>
43584
43585         * lib/c-strstr.h: New file, from GNU gettext.
43586         * lib/c-strstr.c: New file, from GNU gettext.
43587
43588 2006-08-28  Bruno Haible  <bruno@clisp.org>
43589
43590         * gnulib-tool: Reorder some statements.
43591
43592 2006-08-28  Bruno Haible  <bruno@clisp.org>
43593
43594         * gnulib-tool: New option --makefile-name.
43595         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43596         $makefile_name.
43597         (func_import): Write $makefile_name to the cache file, and read it from
43598         there unless explicitly specified. Use $makefile_name as file name
43599         instead of Makefile.am. Adjust the recommendations accordingly.
43600
43601 2006-08-28  Bruno Haible  <bruno@clisp.org>
43602
43603         * gnulib-tool (func_verify_module): Check against misapplying patch.
43604
43605 2006-08-28  Bruno Haible  <bruno@clisp.org>
43606
43607         * gnulib-tool (func_relativize, func_relconcat): New functions.
43608         Give an error if --local-dir is given with --update.
43609         Remove trailing slashes from $local_gnulib_dir.
43610         (func_import): Store the relativized $local_gnulib_dir in
43611         gnulib-cache.m4, and read it from there if not specified explicitly.
43612
43613 2006-08-28  Bruno Haible  <bruno@clisp.org>
43614
43615         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43616         is the current directory. Respect also $local_gnulib_dir.
43617
43618 2006-08-28  Bruno Haible  <bruno@clisp.org>
43619             Simon Josefsson  <jas@extundo.com>
43620
43621         BeOS portability.
43622         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43623
43624 2006-08-27  Jim Meyering  <jim@meyering.net>
43625
43626         * doc/visibility.texi: Remove duplicate word: "pointer".
43627
43628 2006-08-26  Bruno Haible  <bruno@clisp.org>
43629
43630         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43631         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43632         (Makefile.am): Create inttypes.h from inttypes_.h.
43633         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43634
43635         * modules/imaxabs: New file.
43636
43637         * modules/imaxdiv: New file.
43638
43639 2006-08-26  Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/inttypes.m4: New file.
43642         * m4/_inttypes_h.m4: Remove file.
43643         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43644         PRI_MACROS_BROKEN.
43645         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43646
43647         * m4/imaxabs.m4: New file.
43648
43649         * m4/imaxdiv.m4: New file.
43650
43651 2006-08-26  Bruno Haible  <bruno@clisp.org>
43652
43653         * lib/inttypes_.h: New file.
43654         * lib/inttypes.h: Remove file.
43655         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43656
43657         * lib/imaxabs.c: New file.
43658
43659         * lib/imaxdiv.c: New file.
43660
43661 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         New config-h module, so that "make" output needn't be cluttered
43664         by -DHAVE_CONFIG_H.
43665         * MODULES.html.sh (Support for building libraries and executables):
43666         Add config-h.
43667         * modules/config-h: New file.
43668         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43669         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43670         the config-h module is used.
43671
43672         New configmake module, so that "make" output needn't be cluttered
43673         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43674         * MODULES.html.sh (Support for building libraries and executables):
43675         Add configmake.
43676         * modules/configmake: New file.
43677
43678 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43679
43680         * m4/config-h.m4: New file.
43681
43682 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43683
43684         * config/srclist.txt: Add elisp-comp.
43685
43686 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43687
43688         * MODULES.html.sh (Support for building libraries and executables):
43689         Add elisp-comp.
43690         * build-aux/elisp-comp: New file.
43691         * modules/elisp-comp: New file.
43692
43693 2006-08-24  Bruno Haible  <bruno@clisp.org>
43694
43695         * gnulib-tool (func_create_testdir): Use non-default values of
43696         sourcebase and m4base.
43697
43698 2006-08-24  Bruno Haible  <bruno@clisp.org>
43699
43700         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43701         HTML structure.
43702
43703 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43704
43705         * modules/openat (Depends-on): Add lchown.
43706
43707 2006-08-23  Bruno Haible  <bruno@clisp.org>
43708
43709         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43710         of gl_LOCK_EARLY instead of gl_LOCK.
43711
43712 2006-08-23  Bruno Haible  <bruno@clisp.org>
43713
43714         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43715         on OSF/1 to no.
43716         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43717
43718 2006-08-23  Bruno Haible  <bruno@clisp.org>
43719
43720         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43721         as unusable.
43722
43723         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43724         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43725         (gl_LOCK): New macro.
43726
43727 2006-08-22  Simon Josefsson  <jas@extundo.com>
43728
43729         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43730         to md5 module.
43731
43732 2006-08-22  Simon Josefsson  <jas@extundo.com>
43733
43734         * MODULES.html.sh: Add "Support for maintaining and release
43735         projects".
43736
43737         * build-aux/gnupload: New file, from coreutils.
43738
43739 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43740
43741         Avoid the need for AC_LIBSOURCES in m4 macros.
43742         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43743         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43744         * modules/check-version (EXTRA_DIST): Add check-version.h.
43745         * modules/crc (EXTRA_DIST): Add crc.h.
43746         * modules/des (EXTRA_DIST): Add des.h.
43747         * modules/gc (EXTRA_DIST): Add gc.h.
43748         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43749         * modules/getline (EXTRA_DIST): Add getline.h.
43750         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43751         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43752         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43753         * modules/md2 (EXTRA_DIST): Add md2.h.
43754         * modules/md4 (EXTRA_DIST): Add md4.h.
43755         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43756         * modules/read-file (EXTRA_DIST): Add read-file.h.
43757         * modules/readline (EXTRA_DIST): Add readline.h.
43758         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43759         rijndael-api-fst.h.
43760
43761 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43762
43763         * m4/rijndael.m4 (gl_ARCFOUR):
43764         * m4/arctwo.m4 (gl_ARCTWO):
43765         * m4/check-version.m4 (gl_CHECK_VERSION):
43766         * m4/crc.m4 (gl_CRC):
43767         * m4/des.m4 (gl_DES):
43768         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43769         * m4/gc.m4 (gl_GC):
43770         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43771         * m4/getline.m4 (gl_FUNC_GETLINE):
43772         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43773         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43774         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43775         * m4/md2.m4 (gl_MD2):
43776         * m4/md4.m4 (gl_MD4):
43777         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43778         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43779         * m4/readline.m4 (gl_FUNC_READLINE):
43780         * m4/rijndael.m4 (gl_RIJNDAEL):
43781         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43782         to get the necessary .h files and whatnot.
43783
43784 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43785
43786         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43787         gnulib rather than the other way around.
43788         * config/srclistvars.sh (COREUTILS): Remove.
43789
43790 2006-08-22  Jim Meyering  <jim@meyering.net>
43791
43792         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43793
43794         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43795
43796 2006-08-22  Eric Blake  <ebb9@byu.net>
43797
43798         * modules/regexprops-generic: New file.
43799         * MODULES.html.sh (Support for building documentation): List it.
43800
43801 2006-08-22  Eric Blake  <ebb9@byu.net>
43802
43803         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43804         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43805         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43806         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43807
43808 2006-08-22  Bruno Haible  <bruno@clisp.org>
43809
43810         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43811         and lib_LTLIBRARIES like the other lib_* variables.
43812
43813 2006-08-22  Bruno Haible  <bruno@clisp.org>
43814
43815         * build-aux/x-to-1.in: New file, from GNU gettext.
43816
43817 2006-08-22  Bruno Haible  <bruno@clisp.org>
43818
43819         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43820         <utmpx.h> exists.
43821
43822 2006-08-22  Bruno Haible  <bruno@clisp.org>
43823
43824         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43825         <utmpx.h> exists.
43826
43827 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43828
43829         BeOS portability.
43830         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43831         exist.
43832         Problem reported by Bruno Haible.
43833
43834 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43835
43836         Avoid the need for AC_LIBSOURCES in m4 macros.
43837         * modules/acl (EXTRA_DIST): Add acl.h.
43838         * modules/argmatch (Files): Add m4/argmatch.m4.
43839         (configure.ac): Add gl_ARGMATCH.
43840         (EXTRA_DIST): Renamed from lib_SOURCES, for
43841         consistency with the other modules.  Remove argmatch.c.
43842         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43843         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43844         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43845         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43846         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43847         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43848         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43849         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43850         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43851         * modules/closeout (EXTRA_DIST): Add closeout.h.
43852         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43853         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43854         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43855         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43856         dirname.h; remove basename.c and stripslash.c.
43857         * modules/exclude (EXTRA_DIST): Add exclude.h.
43858         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43859         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43860         * modules/file-type (EXTRA_DIST): Add file-type.h.
43861         * modules/filemode (EXTRA_DIST): Add filemode.h.
43862         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43863         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43864         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43865         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43866         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43867         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43868         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43869         * modules/getdate (EXTRA_DIST): Add getdate.c.
43870         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43871         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43872         * modules/getpass (EXTRA_DIST): Add getpass.h.
43873         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43874         * modules/group-member (EXTRA_DIST): Add group-member.h.
43875         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43876         * modules/hash (EXTRA_DIST): Add hash.h.
43877         * modules/human (EXTRA_DIST): Add human.h.
43878         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43879         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43880         * modules/lchown (EXTRA_DIST): Add lchown.h.
43881         * modules/long-options (EXTRA_DIST): Add long-options.h.
43882         * modules/lstat (EXTRA_DIST): Add lstat.h.
43883         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43884         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43885         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43886         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43887         * modules/memxor (EXTRA_DIST): Add memxor.h.
43888         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43889         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43890         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43891         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43892         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43893         * modules/physmem (EXTRA_DIST): Add physmem.h.
43894         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43895         * modules/posixver (EXTRA_DIST): Add posixver.h.
43896         * modules/quote (EXTRA_DIST): Add quote.h.
43897         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43898         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43899         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43900         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43901         regex_internal.h regexec.c.
43902         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43903         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43904         * modules/same (EXTRA_DIST): Add same.h.
43905         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43906         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43907         * modules/savedir (EXTRA_DIST): Add savedir.h.
43908         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43909         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43910         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43911         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43912         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43913         * modules/strdup (EXTRA_DIST): Add strdup.h.
43914         * modules/strftime (EXTRA_DIST): Add strftime.h.
43915         * modules/strndup (EXTRA_DIST): Add strndup.h.
43916         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43917         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43918         * modules/time_r (EXTRA_DIST): Add time_r.h.
43919         * modules/timespec (EXTRA_DIST): Add timespec.h.
43920         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43921         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43922         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43923         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43924         * modules/userspec (EXTRA_DIST): Add userspec.h.
43925         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43926         * modules/utimens (EXTRA_DIST): Add utimens.h.
43927         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43928         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43929         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43930         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43931         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43932         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43933         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43934         * modules/yesno (EXTRA_DIST): Add yesno.h.
43935
43936 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43937
43938         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43939
43940         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43941         * m4/dev-ino.m4, same-inode.m4: Remove.
43942
43943         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43944         * m4/acl.m4 (AC_FUNC_ACL):
43945         * m4/backupfile.m4 (gl_BACKUPFILE):
43946         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43947         * m4/canon-host.m4 (gl_CANON_HOST):
43948         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43949         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43950         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43951         * m4/cloexec.m4 (gl_CLOEXEC):
43952         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43953         * m4/closeout.m4 (gl_CLOSEOUT):
43954         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43955         * m4/dirname.m4 (gl_DIRNAME):
43956         * m4/exclude.m4 (gl_EXCLUDE):
43957         * m4/exitfail.m4 (gl_EXITFAIL):
43958         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43959         * m4/file-type.m4 (gl_FILE_TYPE):
43960         * m4/filemode.m4 (gl_FILEMODE):
43961         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43962         * m4/fpending.m4 (gl_FUNC_FPENDING):
43963         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43964         * m4/fts.m4 (gl_FUNC_FTS):
43965         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43966         * m4/getdate.m4 (gl_GETDATE):
43967         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43968         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43969         * m4/getpass.m4 (gl_FUNC_GETPASS):
43970         * m4/gettime.m4 (gl_GETTIME):
43971         * m4/getugroups.m4 (gl_GETUGROUPS):
43972         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43973         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43974         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43975         * m4/hash.m4 (gl_HASH):
43976         * m4/idcache.m4 (gl_IDCACHE):
43977         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43978         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43979         * m4/long-options.m4 (gl_LONG_OPTIONS):
43980         * m4/lstat.m4 (gl_FUNC_LSTAT):
43981         * m4/md5.m4 (gl_MD5):
43982         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43983         * m4/memcoll.m4 (gl_MEMCOLL):
43984         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43985         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43986         * m4/memxor.m4 (gl_MEMXOR):
43987         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43988         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43989         * m4/modechange.m4 (gl_MODECHANGE):
43990         * m4/mountlist.m4 (gl_MOUNTLIST):
43991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43992         * m4/openat.m4 (gl_FUNC_OPENAT):
43993         * m4/pathmax.m4 (gl_PATHMAX):
43994         * m4/physmem.m4 (gl_PHYSMEM):
43995         * m4/posixtm.m4 (gl_POSIXTM):
43996         * m4/posixver.m4 (gl_POSIXVER):
43997         * m4/quote.m4 (gl_QUOTE):
43998         * m4/quotearg.m4 (gl_QUOTEARG):
43999         * m4/readtokens.m4 (gl_READTOKENS):
44000         * m4/readutmp.m4 (gl_READUTMP):
44001         * m4/regex.m4 (gl_REGEX):
44002         * m4/safe-read.m4 (gl_SAFE_READ):
44003         * m4/safe-write.m4 (gl_SAFE_WRITE):
44004         * m4/same.m4 (gl_SAME):
44005         * m4/save-cwd.m4 (gl_SAVE_CWD):
44006         * m4/savedir.m4 (gl_SAVEDIR):
44007         * m4/settime.m4 (gl_SETTIME):
44008         * m4/sha1.m4 (gl_SHA1):
44009         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44010         * m4/stat-macros.m4 (gl_STAT_MACROS):
44011         * m4/stat-time.m4 (gl_STAT_TIME):
44012         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44013         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44014         * m4/strdup.m4 (gl_FUNC_STRDUP):
44015         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44016         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44017         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44018         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44019         * m4/time_r.m4 (gl_TIME_R):
44020         * m4/timespec.m4 (gl_TIMESPEC):
44021         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44022         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44023         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44024         * m4/userspec.m4 (gl_USERSPEC):
44025         * m4/utimecmp.m4 (gl_UTIMECMP):
44026         * m4/utimens.m4 (gl_UTIMENS):
44027         * m4/xalloc.m4 (gl_XALLOC):
44028         * m4/xgetcwd.m4 (gl_XGETCWD):
44029         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44030         * m4/xreadlink.m4 (gl_XREADLINK):
44031         * m4/xstrtod.m4 (gl_XSTRTOD):
44032         * m4/yesno.m4 (gl_YESNO):
44033         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44034         to get the necessary .h files and whatnot.
44035
44036 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44037             Bruno Haible  <bruno@clisp.org>
44038
44039         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44040         /bin/sh understanding of '!' conditional negation.
44041
44042 2006-08-21  Jim Meyering  <jim@meyering.net>
44043
44044         * modules/openat (Depends-on): Really alphabetize.
44045
44046         * modules/acl (Depends-on): Add error and quote.
44047
44048         * check-module (find_included_lib_files): Add at-func.c to the
44049         ok-to-include-more-than-once white list.
44050
44051         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44052
44053 2006-08-21  Bruno Haible  <bruno@clisp.org>
44054
44055         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44056         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44057         Reported by Martin Lambers <marlam@marlam.de>.
44058
44059 2006-08-21  Bruno Haible  <bruno@clisp.org>
44060
44061         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44062         specify an installation location, don't emit a noinst_LIBRARIES or
44063         noinst_LTLIBRARIES assignment.
44064
44065 2006-08-21  Bruno Haible  <bruno@clisp.org>
44066
44067         BeOS portability.
44068         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44069         BeOS has mbrtowc() but no <wctype.h>.
44070
44071 2006-08-21  Bruno Haible  <bruno@clisp.org>
44072
44073         BeOS portability.
44074         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44075         exist.
44076
44077 2006-08-21  Bruno Haible  <bruno@clisp.org>
44078
44079         BeOS portability.
44080         * lib/mbchar.h: Include <wctype.h> only if it exists.
44081
44082 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44083
44084         Remove files that are no longer needed by their respective modules.
44085         * m4/obstack.m4: Remove.
44086         * m4/strerror_r.m4: Remove.
44087         * m4/uint32_t.m4: Remove.
44088         * m4/uintptr_t.m4: Remove.
44089         * m4/ullong_max.m4: Remove.
44090         * m4/xstrtoimax.m4: Remove.
44091         * m4/xstrtoumax.m4: Remove.
44092
44093         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44094         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44095         dependencies now capture this.
44096
44097         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44098         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44099         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44100         * m4/human.m4 (gl_HUMAN): Likewise.
44101         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44102         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44103
44104         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44105
44106         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44107         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44108         stdint.
44109         * m4/human.m4 (gl_HUMAN): Likewise.
44110         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44111         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44112         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44113         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44114         * m4/xstrtol (gl_XSTRTOL): Likewise.
44115
44116         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44117         AC_TYPE_LONG_LONG_INT.
44118         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44119         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44120         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44121         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44122
44123         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44124         on stdbool.
44125
44126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44127         (gl_PREREQ_XSTRTOUL): Remove.
44128
44129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44130
44131         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44132         mode.
44133
44134 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         Add and change modules to make it easier for coreutils to use
44137         gnulib-tool.
44138         * modules/backupfile (Files): Remove m4/d-ino.m4.
44139         (Depends-on): Add d-ino.
44140         * modules/cycle-check (Depends-on): Add stdint.
44141         (lib_SOURCES): Add cycle-check.h.
44142         * modules/d-ino: New module.
44143         * modules/d-type: New module.
44144         * modules/error (Files): Remove m4/strerror_r.m4.
44145         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44146         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44147         m4/inttypes_h.m4, m4/uintmax_t.m4.
44148         (Depends-on): Add stdint.
44149         (lib_SOURCES): Add fsusage.h.
44150         * modules/getcwd (Files): Remove d-ino.m4.
44151         (Depends-on): Add d-ino.
44152         * modules/getndelim2 (Depends-on): Add stdint.
44153         * modules/glob (Files): Remove m4/d-type.m4.
44154         (Depends-on): Add d-type.
44155         * modules/host-os: New module.
44156         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44157         m4/inttypes_h.m4, m4/uintmax_t.m4.
44158         * Depends-on: Add stdint.
44159         (lib_SOURCES): Add human.h.
44160         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44161         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44162         m4/uintmax_t.m4, m4/ulonglong.m4.
44163         (Depends-on): Add stdint.
44164         (EXTRA_DIST): Add inttostr.h.
44165         * modules/lchmod: New module.
44166         * modules/link-follow: New module.
44167         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44168         (Depends-on): Add lchmod.
44169         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44170         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44171         (Depends-on): Add stdint.
44172         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44173         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44174         (Depends-on): Add stdint.
44175         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44176         * modules/perl: New module.
44177         * modules/regex (Depends-on): Add stdint.
44178         * modules/rmdir-errno: New module.
44179         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44180         m4/intmax_t.m4.
44181         (Depends-on): Add stdint.
44182         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44183         m4/uintmax_t.m4.
44184         (Depends-on): Add stdint.
44185         * modules/unlink-busy: New module.
44186         * modules/utimecmp (Depends-on): Add stdint.
44187         * modules/uptime: New module.
44188         * modules/winsz-ioctl: New module.
44189         * modules/winsz-termios: New module.
44190         * modules/xnanosleep (Depends-on): Add nanosleep.
44191         * modules/ullong_max: Remove.
44192         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44193         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44194         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44195         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44196         (Depends-on): Add inttypes.
44197         (lib_SOURCES): Add xstrtol.h.
44198         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44199         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44200         * MODULES.html.sh: Move 'assert' into the assert section.
44201         Move 'dummy' into the linking section.
44202         Remove ullong_max.
44203         Add section for compatibility checks for POSIX:2001 functions,
44204         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44205         winsz-ioctl, and winsz-termios into it.
44206         Add lchmod.
44207         Add top-level Misc section and put host-os, perl, and uptime
44208         into it.
44209
44210 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44211
44212         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44213         now assume the stdint module.  Do not include inttypes.h.
44214         * lib/fsusage.h: Likewise.
44215         * lib/getndelim2.c: Likewise.
44216         * lib/human.h: Likewise.
44217         * lib/inttostr.h: Likewise.
44218         * lib/obstack.c: Likewise.
44219         * lib/regex_internal.h: Likewise.
44220         * lib/tempname.c: Likewise.
44221         * lib/utimecmp.c: Likewise.
44222         * lib/xstrtol.h: Likewise.
44223
44224         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44225
44226         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44227         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44228         * lib/xtime.h: Likewise.
44229
44230 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44231
44232         * modules/openat (Files): Add lib/fchmodat.c.
44233         Fixes problem reported by Jay Youngman.
44234
44235 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44236
44237         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44238         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44239
44240 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44241             Bruno Haible  <bruno@clisp.org>
44242
44243         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44244         and is a script that invokes bison. Tighten the code. Add comments.
44245
44246 2006-08-18  Jim Meyering  <jim@meyering.net>
44247
44248         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44249         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44250         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44251         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44252
44253 2006-08-18  Bruno Haible  <bruno@clisp.org>
44254
44255         * modules/bison-i18n: New file.
44256         * MODULES.html.sh (Internationalization functions): Add it.
44257
44258 2006-08-18  Bruno Haible  <bruno@clisp.org>
44259
44260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44261         sys/statvfs.h. When getmntinfo was found, check its declaration and
44262         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44263
44264 2006-08-18  Bruno Haible  <bruno@clisp.org>
44265
44266         * m4/bison-i18n.m4: New file, from bison.
44267
44268 2006-08-18  Bruno Haible  <bruno@clisp.org>
44269
44270         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44271         (ME_DUMMY): Treat "kernfs" as a dummy.
44272         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44273
44274 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44275
44276         Update from coreutils.
44277
44278         2006-08-15  Jim Meyering  <jim@meyering.net>
44279
44280         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44281
44282         2006-01-17  Jim Meyering  <jim@meyering.net>
44283
44284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44285
44286         2006-01-11  Jim Meyering  <jim@meyering.net>
44287
44288         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44289         Check for the lchmod function.
44290
44291 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44292
44293         Update from coreutils.
44294
44295         * lib/__fpending.h: Add copyright notice.
44296         * lib/fprintftime.h: Likewise.
44297         * lib/savedir.c: Use (C) in copyright notice.
44298         * lib/savedir.h: Likewise.
44299
44300         2006-08-15  Jim Meyering  <jim@meyering.net>
44301
44302         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44303         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44304         in support of the EXPECTED_ERRNO macro.
44305         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44306         definitions.  Instead, define the appropriate symbols and include
44307         "at-func.c".
44308         * lib/mkdirat.c (mkdirat): Likewise.
44309         * lib/fchmodat.c (fchmodat): Likewise.
44310         (ENOSYS): Remove definition.
44311         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44312         it.  Don't include "unistd--.h" -- it wasn't ever used.
44313
44314         2006-01-17  Jim Meyering  <jim@meyering.net>
44315
44316         Rewrite fts.c not to change the current working directory,
44317         by using openat, fstatat, fdopendir, etc..
44318
44319         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44320         (HAVE_OPENAT_SUPPORT): Define.
44321         [_LIBC] (fchdir): Don't undef or define; no longer used.
44322         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44323         Now, this `function' always succeeds, and consumes its file descriptor
44324         parameter -- so callers must not close such FDs.  Update callers.
44325         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44326         (diropen): Add parameter, SP.  Adjust all callers.
44327         Implement using diropen_fd, rather than open.
44328         (fts_open): Initialize new member, fts_cwd_fd.
44329         Remove fts_rft-setting code.
44330         (fts_close): Close fts_cwd_fd, if necessary.
44331         (__opendir2): Define in terms of opendir or opendirat,
44332         depending on whether the FST_NOCHDIR flag is set.
44333         (fts_build): Since fts_safe_changedir consumes its FD, and since
44334         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44335         and close the dup'd file descriptor upon failure.
44336         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44337         (fts_safe_changedir): Tweak semantics to reflect that this function
44338         now calls cwd_advance_fd and hence consumes its FD argument.
44339         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44340         [struct FTS] (fts_rft): Remove now-unused member.
44341         [struct FTS] (fts_cycle.state): Improve comment.
44342
44343         * lib/openat.c (openat_needs_fchdir): New function.
44344         * lib/openat.h (openat_needs_fchdir): Declare it.
44345
44346 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44347
44348         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44349         Problem and fix reported by Pádraig Brady in
44350         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44351
44352 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44353
44354         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44355
44356 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44357
44358         * lib/memcoll.c (memcoll): Optimize for the common case where the
44359         arguments are bytewise equal.
44360
44361 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44362
44363         * doc/regexprops-generic.texi: Add a copyright notice.
44364
44365 2006-08-15  Bruno Haible  <bruno@clisp.org>
44366
44367         * modules/tmpdir (License): Change to LGPL.
44368
44369 2006-08-15  Bruno Haible  <bruno@clisp.org>
44370
44371         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44372         module.
44373
44374 2006-08-14  Simon Josefsson  <jas@extundo.com>
44375
44376         * config/srclist.txt: Add gnupload.
44377
44378 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44379
44380         Change copyright notice from LGPL 2 to GPL 2, since that's the
44381         standard form used in the gnulib repository.
44382         * tests/test-lock.c: Likewise.
44383         * tests/test-stdint.c: Likewise.
44384         * tests/test-tls.c: Likewise.
44385
44386         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44387         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44388         Add copyright notice.
44389
44390         * check-module: Add copyright notice.  Output a copyright
44391         notice if "--version" is specified.
44392         * modules/COPYING: New file.
44393         * tests/test-getaddrinfo.c: Add copyright notice.
44394         * tests/test-verify.c: Likewise.
44395
44396 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44397
44398         Change copyright notice from LGPL 2 to GPL 2, since that's the
44399         standard form used in the gnulib repository.
44400         * lib/lock.c: LGPL -> GPL.
44401         * lib/lock.h: Likewise.
44402         * lib/strnlen1.c: Likewise.
44403         * lib/strnlen1.h: Likewise.
44404         * lib/tls.c: Likewise.
44405         * lib/tls.h: Likewise.
44406         * lib/tmpdir.c: Likewise.
44407
44408         * lib/TODO: Remove; this belongs only in coreutils.
44409
44410 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44411
44412         Add copyright notices to long-enough files that lack them, since
44413         otherwise the files aren't clearly free.  Use the same notice that
44414         getdate.texi already uses.
44415         * doc/alloca-opt.texi: Add copyright notice.
44416         * doc/alloca.texi: Likewise.
44417         * doc/ctime.texi: Likewise.
44418         * doc/functions.texi: Likewise.
44419         * doc/gcd.texi: Likewise.
44420         * doc/gnulib-tool.texi: Likewise.
44421         * doc/inet_ntoa.texi: Likewise.
44422         * doc/visibility.texi: Likewise.
44423
44424         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44425         * doc/quote.texi: Add copyright notice.
44426
44427         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44428         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44429         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44430         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44431         is now obsolete, and give a pointer to the Sun list.
44432         Add copyright notice.
44433
44434 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44435
44436         * config/srclistvars.sh: Add copyright notice.
44437
44438 2006-08-14  Eric Blake  <ebb9@byu.net>
44439
44440         Import the following change from libc:
44441
44442         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44443
44444         Upstream bug 2997.
44445         * lib/misc/error.c: Add space between program name and message if file
44446         name is missing.
44447
44448 2006-08-12  Karl Berry  <karl@gnu.org>
44449
44450         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44451         remove, these originate in gnulib now.
44452
44453 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44454
44455         * doc/Makefile (standards.info standards.html standards.dvi):
44456         Also depend on make-stds.texi.
44457
44458 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44461         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44462
44463         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44464         in wchar_t.  Problem reported by Eric Blake.
44465
44466         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44467         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44468         Also, help the compiler to keep LEN in a register.
44469
44470 2006-08-11  Eric Blake  <ebb9@byu.net>
44471
44472         * users.txt: Sort.  Add tar.
44473
44474 2006-08-11  Bruno Haible  <bruno@clisp.org>
44475
44476         * users.txt: New file.
44477
44478 2006-08-11  Bruno Haible  <bruno@clisp.org>
44479
44480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44481         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44482
44483 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44484
44485         * modules/snprintf (Depends-on): Remove minmax.
44486         (Maintainer): Add self and Bruno.
44487
44488 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44489
44490         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44491         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44492         (EOVERFLOW): Define if the system does not.
44493         Do not include "minmax.h"; it wasn't used.
44494         (snprintf): Don't assume size_t promotes to an unsigned type.
44495         Fix bug when generated string was too long for the buffer: the
44496         buffer's contents are supposed to be the initial prefix of the
44497         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44498         exceeds INT_MAX; do the check ourselves.
44499
44500         Import the following changes from libc:
44501
44502         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44503
44504         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44505         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44506         set wc to the byte which couldn't be converted.
44507         (re_string_reconstruct): Don't clear valid_raw_len before calling
44508         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44509         tip_context using re_string_context_at.
44510
44511         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44512
44513         * lib/posix/regex.h: g++ still cannot handled [restrict].
44514
44515         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44516
44517         * lib/posix/regex.h: Remove special handling for VMS.
44518
44519 2006-08-10  Jim Meyering  <jim@meyering.net>
44520
44521         * modules/same-inode: New module.
44522         * modules/dev-ino: New module.
44523         * modules/cycle-check: Depend on these modules, rather than simply
44524         including their .h files.
44525         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44526         required via m4/cycle-check.m4.
44527         * modules/same: Depend on new same-inode module, rather than
44528         including same-inode.h.
44529         * modules/chdir-safer: New file.
44530
44531         * modules/chown (Depends-on): Add stat-macros.
44532
44533 2006-08-10  Jim Meyering  <jim@meyering.net>
44534
44535         * m4/cycle-check.m4: New file.
44536         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44537         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44538
44539 2006-08-10  Eric Blake  <ebb9@byu.net>
44540
44541         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44542         in from original proposal.
44543
44544 2006-08-10  Eric Blake  <ebb9@byu.net>
44545         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44546
44547         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44548         namespace.
44549
44550 2006-08-10  Bruno Haible  <bruno@clisp.org>
44551
44552         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44553         as well.
44554
44555 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44556
44557         Sync from coreutils.
44558
44559         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44560
44561         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44562         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44563
44564 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44565
44566         * modules/restrict: Remove; no longer needed now that we assume
44567         Autoconf 2.59 or later.
44568         * MODULES.html.sh: Remove 'restrict'.
44569         * modules/argp (Depends-on): Remove 'restrict'.
44570         * modules/base64 (Depends-on): Likewise.
44571         * modules/gc (Depends-on): Likewise.
44572         * modules/getaddrinfo (Depends-on): Likewise.
44573         * modules/glob (Depends-on): Likewise.
44574         * modules/inet_ntop (Depends-on): Likewise.
44575         * modules/inet_pton (Depends-on): Likewise.
44576         * modules/memxor (Depends-on): Likewise.
44577         * modules/regex (Depends-on): Likewise.
44578         * modules/strtok_r (Depends-on): Likewise.
44579         * modules/time_r (Depends-on): Likewise.
44580
44581 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44582
44583         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44584         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44585         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44586         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44587         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44588         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44589         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44590         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44591
44592         Merge from coreutils.
44593         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44594         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44596         * m4/time_r.m4 (gl_TIME_R): Likewise.
44597
44598 2006-08-09  Karl Berry  <karl@gnu.org>
44599
44600         * config/srclist.txt: no more gettext-tools, per Bruno.
44601
44602 2006-08-08  Eric Blake  <ebb9@byu.net>
44603
44604         * modules/verror: New module.
44605         * MODULES.html.sh: Document it.
44606
44607 2006-08-08  Eric Blake  <ebb9@byu.net>
44608
44609         * lib/verror.h, lib/verror.c: New files.
44610
44611 2006-08-08  Eric Blake  <ebb9@byu.net>
44612
44613         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44614         verror_at_line output complies with GNU Coding Standards even when
44615         file is NULL.
44616
44617 2006-08-07  Bruno Haible  <bruno@clisp.org>
44618
44619         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44620         versions of AIX.
44621         Reported by Ralf Wildenhues.
44622
44623 2006-08-07  Bruno Haible  <bruno@clisp.org>
44624
44625         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44626         in an AC_DEFUN. Needed so that the autoconf snippets can use
44627         AC_REQUIRE.
44628
44629 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44630
44631         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44632         Initialize pkgdata_DATA.
44633         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44634         overriding it.
44635
44636 2006-08-06  Eric Blake  <ebb9@byu.net>
44637
44638         * lib/error.h: Fold in some upstream changes from glibc.
44639         * lib/error.c: Likewise.
44640
44641 2006-08-04  Bruno Haible  <bruno@clisp.org>
44642
44643         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44644         Make the mostlyclean-local rule depend on mostlyclean-generic.
44645         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44646
44647 2006-07-31  Bruno Haible  <bruno@clisp.org>
44648
44649         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44650         <stdlib.h>, <string.h>.
44651
44652 2006-07-30  Bruno Haible  <bruno@clisp.org>
44653
44654         * modules/readlink (License): Change to LGPL.
44655
44656 2006-07-30  Bruno Haible  <bruno@clisp.org>
44657
44658         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44659         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44660         set PKGDATADIR to point to it.
44661
44662 2006-07-30  Bruno Haible  <bruno@clisp.org>
44663
44664         * modules/csharpexec (configure.ac): Comment out macro invocation.
44665         * modules/javaexec (configure.ac): Likewise.
44666         * modules/javacomp-script (configure.ac): Likewise.
44667
44668         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44669
44670 2006-07-30  Bruno Haible  <bruno@clisp.org>
44671
44672         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44673         linked-list.
44674
44675 2006-07-30  Bruno Haible  <bruno@clisp.org>
44676
44677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44678
44679 2006-07-30  Bruno Haible  <bruno@clisp.org>
44680
44681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44682         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44683         get removed.
44684
44685 2006-07-29  Bruno Haible  <bruno@clisp.org>
44686
44687         Make it possible for gnulib-tool to work with locally modified or
44688         augmented gnulib repositories.
44689         * gnulib-tool (func_usage): Document --local-dir option.
44690         (local_gnulib_dir): New variable.
44691         Handle --local-dir option.
44692         (func_lookup_file): New function.
44693         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44694         (func_get_description, func_get_filelist, func_get_description,
44695         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44696         func_get_automake_snippet, func_get_include_directive,
44697         func_get_license, func_get_maintainer): Use func_lookup_file.
44698         (func_import, func_create_testdir): Use func_lookup_file.
44699
44700 2006-07-29  Bruno Haible  <bruno@clisp.org>
44701
44702         * modules/setenv (Depends-on): Add unistd.
44703
44704 2006-07-29  Bruno Haible  <bruno@clisp.org>
44705
44706         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44707
44708 2006-07-29  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44711
44712 2006-07-29  Bruno Haible  <bruno@clisp.org>
44713
44714         * gnulib-tool (import, update): If there is no Makefile.am, look at
44715         aclocal.m4, instead of bailing out.
44716
44717 2006-07-29  Bruno Haible  <bruno@clisp.org>
44718
44719         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44720         Categorize the options by when they are useful.
44721
44722 2006-07-29  Bruno Haible  <bruno@clisp.org>
44723
44724         * gnulib-tool (func_usage): Document option --no-libtool.
44725         Handle option --no-libtool.
44726         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44727         for changed semantics of $libtool variable.
44728         (func_import): Likewise. If libtool is not used, show this through
44729         an option --no-libtool.
44730         (func_create_testdir): Update.
44731
44732 2006-07-29  Bruno Haible  <bruno@clisp.org>
44733
44734         * gnulib-tool (func_import): Extend error message about missing
44735         --doc-base.
44736
44737 2006-07-29  Bruno Haible  <bruno@clisp.org>
44738
44739         * gnulib-tool (func_import): Don't create the $docbase directory if
44740         there is no file to store there.
44741
44742 2006-07-29  Bruno Haible  <bruno@clisp.org>
44743
44744         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44745         relevant, look for configure.ac there, not in the current directory.
44746         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44747
44748 2006-07-29  Bruno Haible  <bruno@clisp.org>
44749
44750         * gnulib-tool (SORT): New variable.
44751         (func_usage): Undocument --assume-autoconf option.
44752         Remove --assume-autoconf option handling.
44753         (autoconf_minversion): Determine from the contents of configure.ac.
44754         (func_import): Remove autoconf_minversion handling.
44755         Suggested by Eric Blake.
44756
44757 2006-07-29  Bruno Haible  <bruno@clisp.org>
44758
44759         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44760
44761 2006-07-29  Bruno Haible  <bruno@clisp.org>
44762
44763         * config/srclist.txt (*setenv.[ch]): Remove rules.
44764
44765 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44766
44767         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44768
44769 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44770
44771         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44772         arpa/inet.h.
44773
44774 2006-07-28  Simon Josefsson  <jas@extundo.com>
44775
44776         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44777         * modules/inet_pton (Depends-on): Likewise.
44778
44779 2006-07-28  Simon Josefsson  <jas@extundo.com>
44780
44781         * m4/netinet_in_h.m4: New file.
44782
44783 2006-07-28  Simon Josefsson  <jas@extundo.com>
44784
44785         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44786         #include's.
44787
44788 2006-07-28  Simon Josefsson  <jas@extundo.com>
44789
44790         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44791         #include's.
44792
44793 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44794
44795         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44796         setgid on directories only if they set these bits.
44797         * lib/modechange.h: Remove obsolete comment about masks.
44798
44799 2006-07-28  Eric Blake  <ebb9@byu.net>
44800
44801         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44802         macro expansion.
44803
44804 2006-07-28  Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44807
44808 2006-07-28  Bruno Haible  <bruno@clisp.org>
44809
44810         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44811
44812 2006-07-28  Bruno Haible  <bruno@clisp.org>
44813
44814         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44815         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44816         Define fallbacks.
44817         Avoids link error on FreeBSD 4.x.
44818         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44819
44820         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44821         encoding.
44822         * lib/mbswidth.c (iswcntrl): Likewise.
44823
44824 2006-07-27  Bruno Haible  <bruno@clisp.org>
44825
44826         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44827         test.
44828
44829 2006-07-27  Bruno Haible  <bruno@clisp.org>
44830
44831         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44832         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44833         defined.
44834
44835 2006-07-26  Eric Blake  <ebb9@byu.net>
44836
44837         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44838
44839 2006-07-26  Eric Blake  <ebb9@byu.net>
44840
44841         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44842         like mingw that lack mkstemp.
44843         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44844         avoid compilation warning on mingw.
44845
44846 2006-07-26  Bruno Haible  <bruno@clisp.org>
44847
44848         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44849         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44850         INT_FAST*_MIN, INTPTR_MIN.
44851
44852 2006-07-25  Bruno Haible  <bruno@clisp.org>
44853
44854         * modules/version-etc (Depends-on): Add stdarg.
44855
44856 2006-07-25  Bruno Haible  <bruno@clisp.org>
44857
44858         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44859         complex commands.
44860
44861 2006-07-25  Bruno Haible  <bruno@clisp.org>
44862
44863         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44864         defined in <stdarg.h> or config.h.
44865
44866 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44867
44868         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44869         (gl_STDIO_SAFER): Remove.
44870
44871 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44872
44873         * MODULES.html.sh (File stream based Input/Output):
44874         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44875         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44876         * modules/fopen-safer, modules/tmpfile-safer: New files.
44877         * modules/stdio-safer: Remove.
44878
44879 2006-07-24  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/tmpdir: New file.
44882         * MODULES.html.sh (File system functions): Add it.
44883
44884 2006-07-24  Bruno Haible  <bruno@clisp.org>
44885
44886         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44887         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44888
44889 2006-07-24  Bruno Haible  <bruno@clisp.org>
44890
44891         * modules/clean-temp: New file.
44892
44893 2006-07-24  Bruno Haible  <bruno@clisp.org>
44894
44895         * m4/tmpdir.m4: New file, from GNU gettext.
44896
44897 2006-07-24  Bruno Haible  <bruno@clisp.org>
44898
44899         * lib/tmpdir.h: New file, from GNU gettext.
44900         * lib/tmpdir.c: New file, from GNU gettext.
44901
44902 2006-07-24  Bruno Haible  <bruno@clisp.org>
44903
44904         * lib/clean-temp.h: New file, from GNU gettext.
44905         * lib/clean-temp.c: New file, from GNU gettext.
44906
44907 2006-07-23  Eric Blake  <ebb9@byu.net>
44908
44909         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44910         (Depends-on): Add binary-io.
44911
44912 2006-07-23  Eric Blake  <ebb9@byu.net>
44913
44914         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44915
44916 2006-07-23  Eric Blake  <ebb9@byu.net>
44917
44918         * lib/tmpfile-safer.c: New file.
44919         * lib/stdio-safer.h (fopen_safer): Add prototype.
44920         * lib/stdio--.h (tmpfile): Make safer.
44921
44922 2006-07-23  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44925         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44926         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44927         gl_linked_remove_at): Use it.
44928
44929 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44930         and Simon Josefsson <jas@extundo.com>
44931
44932         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44933
44934         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44935
44936 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44937
44938         * modules/close-stream: New file.
44939         * modules/closeout (Description): Make it clear that it exits
44940         with a diagnostic on error.
44941         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44942         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44943
44944 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44945
44946         * m4/close-stream.m4: New file.
44947
44948 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44949
44950         * lib/close-stream.c, lib/close-stream.h: New files.
44951
44952 2006-07-22  Bruno Haible  <bruno@clisp.org>
44953
44954         Merge from GNU gettext 0.15.
44955
44956         2006-05-01  Bruno Haible  <bruno@clisp.org>
44957
44958                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44959
44960         2006-07-22  Bruno Haible  <bruno@clisp.org>
44961
44962                 * modules/javaversion: New file.
44963                 * MODULES.html.sh (Java): Add javaversion.
44964
44965         2006-03-12  Bruno Haible  <bruno@clisp.org>
44966
44967                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44968
44969         2005-12-04  Bruno Haible  <bruno@clisp.org>
44970
44971                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44972                 (untested).
44973
44974         2006-06-21  Bruno Haible  <bruno@clisp.org>
44975
44976                 Avoid warnings from recent versions of mcs.
44977                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44978                 -o, -L, -r any more. Use options documented since mcs-1.0
44979                 instead. Similarly for -g.
44980
44981         2005-12-04  Bruno Haible  <bruno@clisp.org>
44982
44983                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44984                 .resources, not .resource.
44985
44986         2005-07-09  Bruno Haible  <bruno@clisp.org>
44987
44988                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44989                 add a .dll suffix.
44990                 Reported by Mark Junker <mjscod@gmx.de>.
44991
44992         2006-07-22  Bruno Haible  <bruno@clisp.org>
44993
44994                 * modules/gettext: Upgrade to gettext-0.15.
44995                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44996                 m4/visibility.m4.
44997                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44998
44999 2006-07-22  Bruno Haible  <bruno@clisp.org>
45000
45001         Merge from GNU gettext 0.15.
45002
45003         2006-03-25  Bruno Haible  <bruno@clisp.org>
45004
45005                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45006
45007         2006-07-21  Bruno Haible  <bruno@clisp.org>
45008
45009                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45010                 "1.1".
45011
45012         2006-05-09  Bruno Haible  <bruno@clisp.org>
45013
45014                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45015                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45016                 for the conftestver execution.
45017
45018         2006-05-01  Bruno Haible  <bruno@clisp.org>
45019
45020                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45021                 optional target-version argument. Verify that the compiler
45022                 groks source of the specified source-version, or add -source
45023                 option as necessary. Verify that the compiler produces
45024                 bytecode in the specified target-version, or add -target and
45025                 -source options as necessary. Make the result of the test
45026                 available as variable CONF_JAVAC. Also log error output in
45027                 config.log.
45028
45029         2006-03-11  Bruno Haible  <bruno@clisp.org>
45030
45031                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45032
45033         2006-05-09  Bruno Haible  <bruno@clisp.org>
45034
45035                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45036                 CLASSPATH_SEPARATOR to a semicolon.
45037
45038         2006-03-12  Bruno Haible  <bruno@clisp.org>
45039
45040                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45041                 available as variable CONF_JAVA, for subsequent autoconf
45042                 tests. Also log error output in config.log.
45043
45044         2006-07-19  Bruno Haible  <bruno@clisp.org>
45045
45046                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45047                 that getline works on glibc2 systems. Needed to avoid trouble
45048                 in relocatable.c.
45049                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45050
45051         2005-12-04  Bruno Haible  <bruno@clisp.org>
45052
45053                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45054                 launcher (untested).
45055
45056         2005-12-04  Bruno Haible  <bruno@clisp.org>
45057
45058                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45059
45060         2006-07-22  Bruno Haible  <bruno@clisp.org>
45061
45062                 * gettext.m4: Update from GNU gettext-0.15.
45063                 * nls.m4: Likewise.
45064                 * po.m4: Likewise.
45065                 * inttypes-pri.m4: Likewise.
45066                 * inttypes-h.m4: Renamed from inttypes.m4.
45067                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45068
45069 2006-07-22  Bruno Haible  <bruno@clisp.org>
45070
45071         Merge from GNU gettext 0.15.
45072
45073         2005-07-05  Bruno Haible  <bruno@clisp.org>
45074
45075                 * printf-args.c (printf_fetchargs): Work around broken
45076                 definition of wint_t on mingw.
45077
45078         2005-02-12  Bruno Haible  <bruno@clisp.org>
45079
45080                 * xallocsa.h: Add extern "C" for C++.
45081
45082         2006-05-17  Bruno Haible  <bruno@clisp.org>
45083
45084                 Cygwin portability.
45085                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45086
45087         2006-04-30  Bruno Haible  <bruno@clisp.org>
45088
45089                 * progreloc.c: Include <mach-o/dyld.h> if available.
45090                 (find_executable): Use _NSGetExecutablePath when possible.
45091
45092         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45093
45094                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45095                 function.
45096
45097         2005-12-29  Bruno Haible  <bruno@clisp.org>
45098
45099                 * progreloc.c (set_program_name_and_installdir): Fix
45100                 compilation error.
45101
45102         2005-12-04  Bruno Haible  <bruno@clisp.org>
45103
45104                 Cygwin portability.
45105                 * progreloc.c: Include <windows.h> also on Cygwin.
45106                 (find_executable): Add support for Cygwin.
45107                 (set_program_name_and_installdir): Handle also platforms with
45108                 nonempty EXEEXT.
45109
45110         2006-07-11  Bruno Haible  <bruno@clisp.org>
45111
45112                 * javacomp.c: Fix a comment.
45113                 Reported by Jim Meyering.
45114
45115         2006-04-30  Bruno Haible  <bruno@clisp.org>
45116
45117                 * javacomp.h (compile_java_class): Add source_version,
45118                 target_version arguments.
45119                 * javacomp.c: Rewritten to choose only a compiler that
45120                 respects the specified source_version and target_version.
45121
45122         2006-06-27  Bruno Haible  <bruno@clisp.org>
45123
45124                 Assume correct S_ISDIR macro.
45125                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45126
45127         2006-07-22  Bruno Haible  <bruno@clisp.org>
45128
45129                 * javaversion.h: New file, from GNU gettext.
45130                 * javaversion.c: New file, from GNU gettext.
45131                 * javaversion.java: New file, from GNU gettext.
45132                 * javaversion.class: New file, from GNU gettext.
45133
45134         2006-05-17  Bruno Haible  <bruno@clisp.org>
45135
45136                 Cygwin portability.
45137                 * javaexec.c (execute_java_class): Test for jview program
45138                 also on Cygwin.
45139
45140         2006-04-09  Bruno Haible  <bruno@clisp.org>
45141
45142                 * fatal-signal.c: Don't include string.h.
45143                 (at_fatal_signal): Use a copying loop instead of memcpy.
45144
45145         2005-12-04  Bruno Haible  <bruno@clisp.org>
45146
45147                 * csharpexec.c: Add support for 'clix' launcher (untested).
45148                 (execute_csharp_using_sscli): New function.
45149                 (execute_csharp_program): Call it.
45150
45151         2006-06-21  Bruno Haible  <bruno@clisp.org>
45152
45153                 Avoid warnings from recent versions of mcs.
45154                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45155                 -o, -L, -r any more. Use options documented since mcs-1.0
45156                 instead. Similarly for -g.
45157
45158         2005-07-09  Bruno Haible  <bruno@clisp.org>
45159
45160                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45161                 add a .dll suffix.
45162                 Reported by Mark Junker <mjscod@gmx.de>.
45163
45164         2006-06-17  Bruno Haible  <bruno@clisp.org>
45165
45166                 * config.charset: Update for NetBSD 3.0.
45167
45168         2006-05-17  Bruno Haible  <bruno@clisp.org>
45169
45170                 Cygwin portability.
45171                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45172
45173         2006-05-16  Bruno Haible  <bruno@clisp.org>
45174
45175                 * localcharset.c [CYGWIN]: Include <windows.h>.
45176                 (get_charset_aliases): For Cygwin, return the same CPxxx
45177                 aliases list as under WIN32.
45178                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45179                 the environment variables. Fall back to GetACP().
45180
45181         2006-04-05  Bruno Haible  <bruno@clisp.org>
45182
45183                 * config.charset: Update Juan Manuel Guerrero's address.
45184
45185         2005-02-12  Bruno Haible  <bruno@clisp.org>
45186
45187                 * allocsa.h: Add extern "C" for C++.
45188
45189         2005-02-10  Bruno Haible  <bruno@clisp.org>
45190
45191                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45192                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45193
45194         2006-07-22  Bruno Haible  <bruno@clisp.org>
45195
45196                 * gettext.h: Update to GNU gettext-0.15.
45197
45198 2006-07-22  Bruno Haible  <bruno@clisp.org>
45199
45200         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45201         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45202         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45203
45204 2006-07-21  Eric Blake  <ebb9@byu.net>
45205
45206         * modules/stdlib-safer: New file.
45207         * MODULES.html.sh (File stream based Input/Output): Add
45208         stdlib-safer.
45209
45210 2006-07-21  Eric Blake  <ebb9@byu.net>
45211
45212         * lib/stdlib-safer.h: New file from coreutils, required by
45213         stdlib--.h.
45214
45215 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45216
45217         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45218
45219 2006-07-20  Bruno Haible  <bruno@clisp.org>
45220
45221         * gnulib-tool: Recognize new option --assume-autoconf.
45222         (autoconf_minversion): New variable.
45223         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45224
45225 2006-07-20  Bruno Haible  <bruno@clisp.org>
45226
45227         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45228
45229 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45230
45231         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45232         Reindent and repaginate.
45233
45234 2006-07-19  Derek Price  <derek@ximbiot.com>
45235
45236         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45237         Correct grammar.
45238
45239 2006-07-17  Bruno Haible  <bruno@clisp.org>
45240
45241         * modules/list: New file.
45242         * modules/array-list: New file.
45243         * modules/carray-list, modules/carray-list-tests: New files.
45244         * modules/linked-list, modules/linked-list-tests: New files.
45245         * modules/avltree-list, modules/avltree-list-tests: New files.
45246         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45247         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45248         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45249         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45250         * modules/oset: New file.
45251         * modules/array-oset: New file.
45252         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45253         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45254         * tests/test-carray_list.c: New file.
45255         * tests/test-linked_list.c: New file.
45256         * tests/test-avltree_list.c: New file.
45257         * tests/test-rbtree_list.c: New file.
45258         * tests/test-linkedhash_list.c: New file.
45259         * tests/test-avltreehash_list.c: New file.
45260         * tests/test-rbtreehash_list.c: New file.
45261         * tests/test-avltree_oset.c: New file.
45262         * tests/test-rbtree_oset.c: New file.
45263         * MODULES.html.sh (Container data structures): New section.
45264
45265 2006-07-17  Bruno Haible  <bruno@clisp.org>
45266
45267         * m4/gl_list.m4: New file.
45268
45269 2006-07-17  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/gl_list.h: New file.
45272         * lib/gl_list.c: New file.
45273         * lib/gl_array_list.h: New file.
45274         * lib/gl_array_list.c: New file.
45275         * lib/gl_carray_list.h: New file.
45276         * lib/gl_carray_list.c: New file.
45277         * lib/gl_linked_list.h: New file.
45278         * lib/gl_linked_list.c: New file.
45279         * lib/gl_anylinked_list1.h: New file.
45280         * lib/gl_anylinked_list2.h: New file.
45281         * lib/gl_avltree_list.h: New file.
45282         * lib/gl_avltree_list.c: New file.
45283         * lib/gl_anyavltree_list1.h: New file.
45284         * lib/gl_anyavltree_list2.h: New file.
45285         * lib/gl_rbtree_list.h: New file.
45286         * lib/gl_rbtree_list.c: New file.
45287         * lib/gl_anyrbtree_list1.h: New file.
45288         * lib/gl_anyrbtree_list2.h: New file.
45289         * lib/gl_anytree_list1.h: New file.
45290         * lib/gl_anytree_list2.h: New file.
45291         * lib/gl_linkedhash_list.h: New file.
45292         * lib/gl_linkedhash_list.c: New file.
45293         * lib/gl_anyhash_list1.h: New file.
45294         * lib/gl_anyhash_list2.h: New file.
45295         * lib/gl_avltreehash_list.h: New file.
45296         * lib/gl_avltreehash_list.c: New file.
45297         * lib/gl_rbtreehash_list.h: New file.
45298         * lib/gl_rbtreehash_list.c: New file.
45299         * lib/gl_anytreehash_list1.h: New file.
45300         * lib/gl_anytreehash_list2.h: New file.
45301
45302         * lib/gl_oset.h: New file.
45303         * lib/gl_oset.c: New file.
45304         * lib/gl_array_oset.h: New file.
45305         * lib/gl_array_oset.c: New file.
45306         * lib/gl_avltree_oset.h: New file.
45307         * lib/gl_avltree_oset.c: New file.
45308         * lib/gl_rbtree_oset.h: New file.
45309         * lib/gl_rbtree_oset.c: New file.
45310         * lib/gl_anytree_oset.h: New file.
45311
45312 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45313
45314         * m4/mkancesdirs.m4: New file.
45315         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45316         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45317         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45318         it.
45319
45320 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45321
45322         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45323         * lib/mkancesdirs.h: New files.
45324         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45325         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45326         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45327         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45328         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45329         callers changed.  Revamp internals significantly, by not
45330         attempting to create directories that are temporarily more
45331         permissive than the final results.  Do not attempt to use
45332         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45333         This removes some race conditions, fixes some bugs, and simplifies
45334         things.  Use new dirchownmod function to do owner and mode changes.
45335         * lib/mkdir-p.h: Likewise.
45336         * lib/modechange.c (octal_to_mode): New function.
45337         (struct mode_change): New member mentioned.
45338         (make_node_op_equals): New arg mentioned.  All callers changed.
45339         (mode_compile): Keep track of which mode bits the user has explicitly
45340         mentioned.
45341         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45342         New arg PMODE_BITS, to keep track of which mode bits the user
45343         mentioned; it treats S_ISUID and S_ISGID speciall.
45344         All callers changed.
45345         * lib/modechange.h: Likewise.
45346
45347 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45348
45349         * MODULES.html.sh: Add mkancestors.
45350         * modules/mkancesdirs: New module.
45351         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45352         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45353         The chdir-safer and afs files are now orphans; I'll remove them
45354         unless someone speaks up.
45355         Add lib/dirchownmod.c, lib/dirchownmod.h.
45356         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45357         Add lchown, mkancesdirs.
45358         (Maintainer): Add self.
45359
45360 2006-07-15  Karl Berry  <karl@gnu.org>
45361
45362         * gnulib-tool: help message wording/arrangement.
45363
45364 2006-07-14  Simon Josefsson  <jas@extundo.com>
45365
45366         * doc/gnulib.texi (Libtool and Windows): New section.
45367
45368 2006-07-12  Simon Josefsson  <jas@extundo.com>
45369
45370         * modules/gendocs (License): Fix license, approved by Karl.
45371
45372 2006-07-12  Eric Blake  <ebb9@byu.net>
45373
45374         * MODULES.html.sh: Add gendocs.
45375
45376 2006-07-11  Eric Blake  <ebb9@byu.net>
45377
45378         * modules/fdl: New module, to install doc/fdl.texi.
45379         * MODULES.html.sh: Add new section for documentation modules.
45380         * gnulib-tool: Avoid space-tab.
45381         (--doc-base): New option, to manage files from doc.
45382
45383 2006-07-11  Eric Blake  <ebb9@byu.net>
45384
45385         * m4/absolute-header.m4: Fix comments to match recent change.
45386
45387 2006-07-11  Eric Blake  <ebb9@byu.net>
45388
45389         * gnulib-tool: List --doc-base before --tests-base.
45390
45391 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45392
45393         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45394
45395 2006-07-11  Bruno Haible  <bruno@clisp.org>
45396
45397         * README: Mention where to put documentation.
45398
45399 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45400
45401         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45402
45403 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45404
45405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45406         to stdint.m4.
45407
45408 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45409
45410         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45411         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45412         "no/such/file/stdint.h" when there is no such file, so that
45413         the resulting C code can be parsed by dodgy compilers.
45414         Problems reported by Bob Proulx.
45415
45416 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45417
45418         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45419         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45420         macros into the GNU _D_EXACT_NAMLEN.
45421         * lib/savedir.c:  Likewise.
45422         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45423
45424 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45425         and Paul Eggert  <eggert@cs.ucla.edu>
45426
45427         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45428         * m4/savedir.m4:
45429         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45430         macros into the GNU _D_EXACT_NAMLEN.
45431
45432 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45433
45434         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45435         around the absolute name, to work around a problem with the HP-UX
45436         11.23 native C compiler, reported by Bob Proulx.
45437
45438 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45439
45440         * doc/maintain.texi, make-stds.texi: Sync from
45441         <http://savannah.gnu.org/projects/gnustandards>.
45442
45443 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45444
45445         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45446
45447 2006-07-09  Jim Meyering  <jim@meyering.net>
45448
45449         * m4/glob.m4: Remove a doubled word in a comment.
45450
45451 2006-07-09  Jim Meyering  <jim@meyering.net>
45452
45453         * lib/argp-pv.c: Remove a doubled word in a comment.
45454         * lib/check-version.c (check_version): Likewise.
45455         * lib/javacomp.c (compile_java_class): Likewise.
45456
45457 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45458
45459         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45460         for the benefit of people using Autoconf 2.60.  If you want to
45461         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45462         (or m4/onceonly.m4, if pre-2.57) manually.
45463
45464 2006-07-08  Jim Meyering  <jim@meyering.net>
45465
45466         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45467         comment.
45468         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45469         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45470         comment.
45471
45472 2006-07-08  Jim Meyering  <jim@meyering.net>
45473
45474         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45475
45476 2006-07-07  Simon Josefsson  <jas@extundo.com>
45477
45478         * tests/test-crc.c: Change expected crc value, the test vector
45479         were probably computed using the old broken crc.c?
45480
45481 2006-07-06  Simon Josefsson  <jas@extundo.com>
45482
45483         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45484         now the canonical place for the M4 file).
45485
45486         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45487         from the sys_socket dependency now.
45488
45489         * modules/inet_pton (Files): Ditto.
45490
45491         * modules/inet_ntop (Files): Ditto.
45492
45493 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45494
45495         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45496         not gl_PREREQ_GETUSERSHELL.
45497
45498 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45499
45500         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45501         with only one argument, for Autoconf 2.60.
45502         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45503         expand to nothing, so add a shell command to avoid syntax error.
45504         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45505
45506 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45507
45508         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45509
45510 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45511
45512         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45513         no longer needed.  Check for isblank decl.
45514         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45515         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45516         of existence.
45517
45518 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45519
45520         * lib/getloadavg.c: Use __VMS, not VMS.
45521         * lib/getopt.c: Likewise.
45522         * lib/getpagesize.h: Likewise.
45523         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45524         and probably does not work.
45525
45526 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45527
45528         * lib/.cppi-disable: Add wcwidth.
45529         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45530         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45531         (ISGRAPH): Remove.  All uses changed to isgraph.
45532         (FOLD) [!defined _LIBC]: Remove special case.
45533         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45534         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45535         HAVE_ISBLANK.
45536         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45537         case.
45538
45539 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45540
45541         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45542         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45543         brackets.  Other minor changes to suppress some compiler
45544         warnings.
45545
45546 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45547         and Paul Eggert  <eggert@cs.ucla.edu>
45548
45549         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45550         of invoking obsolescent AC_HEADER_DIRENT macro.
45551         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45552         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45553         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45554         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45555         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45556         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45557         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45558         * m4/readdir.m4: Remove; no longer needed.
45559
45560 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45561         and Paul Eggert  <eggert@cs.ucla.edu>
45562
45563         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45564         Don't worry about this obsolete case any more.
45565         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45566         directories.
45567         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45568         worry about this obsolete case any more.
45569         * lib/fts.c: Likewise.
45570         * lib/getcwd.c: Likewise.
45571         * lib/glob.h: Likewise.
45572         * lib/savedir.c: Likewise.
45573
45574 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45575
45576         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45577         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45578         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45579         needed.
45580         All uses removed.
45581         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45582         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45583         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45584         needed.
45585         * m4/getdate.m4 (gl_GETDATE): Likewise.
45586         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45587         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45588         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45589         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45590         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45591         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45592         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45593         needed.
45594
45595 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45596
45597         * lib/memcasecmp.c: Include <limits.h>.
45598         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45599         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45600         Don't assume isdigit succeeds only on '0' through '9'.
45601
45602 2006-07-05  Eric Blake  <ebb9@byu.net>
45603
45604         * modules/getaddrinfo (Depends-on): Add snprintf.
45605
45606 2006-07-05  Eric Blake  <ebb9@byu.net>
45607
45608         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45609         to avoid 'header present but could not be compiled' on cygwin.
45610
45611 2006-07-05  Eric Blake  <ebb9@byu.net>
45612
45613         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45614         missing from netdb.h.
45615         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45616
45617 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45618
45619         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45620         no longer needed.
45621         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45622         * m4/getdate.m4 (gl_GETDATE): Likewise.
45623         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45624         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45625         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45626         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45627         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45628
45629 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45630
45631         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45632         All uses of is_space replaced by isspace.
45633         * lib/exit.h: Don't talk about STDC_HEADERS.
45634         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45635         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45636         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45637         replaced by isprint etc.
45638         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45639         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45640         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45641         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45642         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45643         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45644
45645 2006-07-05  Bruno Haible  <bruno@clisp.org>
45646
45647         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45648         the function exists, before testing against AIX.
45649         Reported by Martin Lambers <marlam@marlam.de>.
45650
45651 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45652
45653         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45654         From Mark D. Baushke.
45655
45656 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45657
45658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45659         to the absolute name, not just one, to bypass Sun C 5.8's
45660         "warning: #include of /usr/include/... may be non-portable".
45661
45662 2006-07-04  Eric Blake  <ebb9@byu.net>
45663
45664         * modules/dirname-tests: New test module.
45665         * tests/test-dirname.c: New file, replacing dirname.c
45666         TEST_DIRNAME section that was recently deleted.
45667
45668 2006-07-04  Bruno Haible  <bruno@clisp.org>
45669
45670         Assume ANSI C header files and <ctype.h> functions.
45671         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45672         (mbsnwidth): Use isprint, iscntrl instead.
45673
45674 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45675
45676         Merge from coreutils.
45677         * MODULES.html.sh: Add xstrtold.
45678         * modules/xstrtold: New file.
45679         * modules/cycle-check (Files): Add lib/same-inode.h.
45680         * modules/dirname (Files): Add m4/double-slash-root.m4.
45681         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45682         * modules/mkdir-p (Files): Add lib/same-inode.h.
45683         * modules/same (Files): Add lib/same-inode.h.
45684
45685 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45686
45687         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45688         This is to keep the terminology clean; POSIX talks about
45689         "absolute pathnames", not "full pathnames", but the GNU
45690         Coding Standards say to use "path" for something else;
45691         so use "absolute" to keep both sides happy.
45692         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45693         Set gl_absolute_header, not gl_full_header_path.
45694         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45695         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45696         All uses changed.
45697
45698         Merge from coreutils.
45699
45700         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45703         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45704         want to require the building of c-strtod.o.
45705         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45706         needs -lm directly.
45707         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45708
45709         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45710
45711         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45712         --as-needed option if available.  Problem reported by Albert Chin in
45713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45714         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45715         cc merely issues a bunch of annoying warnings for --as-needed
45716         (this problem was reported by Bob Proulx).  Also, try linking with
45717         -lm to detect a bug in binutils 2.16 (this problem was reported
45718         by Ralf Wildenhues).
45719
45720         2006-06-18  Jim Meyering  <jim@meyering.net>
45721
45722         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45723         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45724         macro.
45725         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45726         also check for glibc-2.4's abort-inducing bug.
45727
45728         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45729         Low-probability clean-up should be to use rmdir to get rid of
45730         the just-created directory, not unlink.
45731
45732         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45733         configure fail, and request a bug report to inform us about it.
45734         Add a comment that, barring reports to the contrary, in 2007 we'll
45735         assume ftruncate is universally available.
45736
45737         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45738
45739         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45740
45741         2006-03-12  Jim Meyering  <jim@meyering.net>
45742
45743         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45744         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45745         * m4/same.m4 (gl_SAME): Likewise.
45746         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45747
45748         2006-03-11  Eric Blake  <ebb9@byu.net>
45749
45750         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45751         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45752         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45753         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45754
45755 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45756
45757         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45758         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45759         reported by Mark D. Baushke, one in
45760         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45761
45762         Merge from coreutils.
45763
45764         * lib/.cppi-disable: Add stdint_.h.
45765         * lib/.cvsignore: Add stdint.h.
45766
45767         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45768
45769         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45770         both double and long double versions.
45771         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45772         * lib/xstrtold.c: New file.
45773         * lib/xstrtod.h (xstrtold): New decl.
45774
45775         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45776
45777         * lib/filemode.c (setst): Remove.
45778         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45779         (arguably) clearer, and the generated code is a bit smaller on my
45780         Debian GNU/Linux stable x86 host.
45781
45782         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45783
45784         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45785         Assume that filemode.h includes sys/types.h and sys/stat.h.
45786         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45787         (ftypelet): Reorder to put common cases first, for efficiency.
45788         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45789         to do 'M'.
45790         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45791         of 10, for compatibility with FreeBSD.  All callers changed.
45792         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45793         types that can't be deduced solely from st_mode.  First arg is now a
45794         const pointer.
45795         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45796         (strmode): Renamed from mode_string.
45797         (filemodestring): New decl.
45798         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45799         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45800         needed.
45801         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45802
45803         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45804
45805         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45806         fsusage.h now does that.  Include fsusage.h first, to test interface.
45807         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45808         at most one method (the old code could have generated decls that
45809         didn't conform to C89, not that this was ever exercised).
45810         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45811
45812         2006-03-19  Jim Meyering  <jim@meyering.net>
45813
45814         Work even in a chroot where d_ino values for entries in "/"
45815         don't match the stat.st_ino values for the same names.
45816         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45817         number, iterate through all entries again, using lstat instead.
45818         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45819         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45820
45821         * lib/getcwd.c (__getcwd): Clarify a comment.
45822         Use memcpy in place of a call to strcpy.
45823
45824         2006-03-12  Jim Meyering  <jim@meyering.net>
45825
45826         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45827         matches that of the current directory (which we're about to chdir ".."
45828         out of), then save the dev-ino of the parent, instead.
45829
45830         * lib/same-inode.h (SAME_INODE): New file/macro.
45831         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45832         Include "same-inode.h", instead.
45833         * lib/same.c: Likewise.
45834         * lib/cycle-check.h: Include "same-inode.h".
45835         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45836         * lib/cycle-check.c (SAME_INODE): Remove definition.
45837         * lib/root-dev-ino.h: Include "same-inode.h".
45838
45839         2006-03-11  Eric Blake  <ebb9@byu.net>
45840
45841         * lib/same.c (same_name): s/base_name/last_component/
45842         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45843         * lib/filenamecat.c (file_name_concat): Likewise.
45844
45845         2006-03-11  Eric Blake  <ebb9@byu.net>,
45846                     Paul Eggert  <eggert@cs.ucla.edu>
45847
45848         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45849         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45850         drive prefix.
45851         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45852         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45853         (last_component): New method.
45854         * lib/dirname.c (dir_len): Determine when drive letters need a
45855         subsequent slash.  Preserve // when it is special.
45856         (dir_name): Don't append dot when drive letter is absolute.
45857         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45858         * lib/basename.c (base_name): New semantics - malloc the result.
45859         Preserve // when it is special.  Preserve relative files that look
45860         like drive letters.
45861         (base_len): Preserve // when it is special.
45862         (last_component): New method, similar to old base_name semantics.
45863         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45864         base_name.  Strip redundant slashes from ///.
45865
45866 2006-07-03  Jim Meyering  <jim@meyering.net>
45867
45868         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45869         macro is used before the first cycle_check call.
45870
45871 2006-07-03  Eric Blake  <ebb9@byu.net>
45872
45873         * modules/dirname (Depends-on): Add xstrndup.
45874
45875 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45876
45877         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45878         test cases, so that config.log is a bit easier to follow.
45879
45880 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45881
45882         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45883         both are 64 bits, since this seems to be the tradition, and this
45884         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45885         we ever run into a host that prefers long long to long in this
45886         case, we'll need another configure-time test.  Problem reported by
45887         Jim Meyering.
45888
45889 2006-07-02  Eric Blake  <ebb9@byu.net>
45890
45891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45892
45893 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45894
45895         * modules/inttypes (Depends-on): No longer depends on stdint.
45896         * modules/stdint (Description): Say more about assumptions.
45897         Say that the fast types might differ.  Say macros are used.
45898         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45899         (Makefile.am): Revise list of substituted symbols to match
45900         new stdint.m4.
45901         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45902         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45903         * tests/test-stdint.c (verify_same_types)
45904         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45905         the code conforms to C99/C89.
45906         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45907         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45908
45909 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45910
45911         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45912         but fix a bug, by requiring at least 64 bits.
45913         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45914         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45915         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45916         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45917
45918         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45919         changes.  Make 2.59 a prerequisite.  Check and substitute for
45920         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45921         inttypes.h.  Do not use special include files; just use the
45922         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45923         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45924         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45925         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45926         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45927         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45928         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45929         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45930         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45931         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45932         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45933         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45934         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45935         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45936         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45937         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45938         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45939         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45940         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45941         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45942         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45943         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45944         not check for things that C99 does not require, e.g., int8_t.  If
45945         a test isn't needed unless <stdint.h> isn't working, and is
45946         unlikely to be needed for any other reason, then don't do it
45947         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45948         size_t, since we assume C89 freestanding at least.  Do not check
45949         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45950         the right thing even if the types are not defined.  Instead use:
45951         (gl_STDINT_TYPE_PROPERTIES): New macro.
45952         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45953         testing whether <sys/types.h> clashes, as Autoconf does this for
45954         us now.  All uses removed.
45955         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45956         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45957         (gl_CHECK_TYPE_SAME):
45958         Remove; no longer needed.
45959         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45960         exists, since we'll return 0 anyway in that case.
45961         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45962
45963 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45964
45965         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45966         possible collision with system files.
45967         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45968         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45969         WCHAR_MIN and WCHAR_MAX in this case.
45970         (<stddef.h>): Do not include; no longer needed.
45971         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45972         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45973         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45974         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45975         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45976         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45977         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45978         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45979         !defined(__c99))]: Include in this case too, since it's harmless
45980         now.
45981         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45982         dangerous to do so.
45983         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45984         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45985         (_STDINT_MIN, _STDINT_MAX): New macros.
45986         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45987         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45988         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45989         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45990         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45991         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45992         macros, not typedefs; this simplifies things quite a bit.
45993         Use long int for all types narrower than int64_t.
45994         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45995         Define in terms of long long int or int64_t or long int,
45996         not int64_t or int32_t.  This saves some compile-time testing.
45997         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45998         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45999         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46000         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46001         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46002         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46003         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46004         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46005         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46006         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46007         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46008         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46009         undef any previous version and define our own version, for
46010         simplicity and consistency with the new macros for types.
46011         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46012         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46013         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46014         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46015         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46016         @WINT_T_SUFFIX@ to keep things simple here.
46017         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46018         Simplify by assuming typical 8/16/32/64 host, since we're
46019         already doing that elsewhere anyway.
46020         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46021         and assume long long int is 64 bits if available.  This
46022         speeds up 'configure'.
46023
46024 2006-07-01  Eric Blake  <ebb9@byu.net>
46025
46026         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46027         Reported by Andreas Buening.
46028
46029 2006-07-01  Eric Blake  <ebb9@byu.net>
46030
46031         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46032
46033 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46034
46035         * lib/getaddrinfo.c: fixed typo
46036
46037 2006-06-29  Jim Meyering  <jim@meyering.net>
46038
46039         * modules/strftime (Maintainer): Add my name, since with the
46040         FPRINTFTIME changes strftime.c has forked from glibc.
46041
46042 2006-06-29  Eric Blake  <ebb9@byu.net>
46043
46044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46045
46046 2006-06-29  Eric Blake  <ebb9@byu.net>
46047
46048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46049
46050 2006-06-29  Eric Blake  <ebb9@byu.net>
46051
46052         * lib/stat_.h: New file.
46053
46054 2006-06-29  Eric Blake  <ebb9@byu.net>
46055
46056         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46057         unused static function.
46058
46059 2006-06-29  Eric Blake  <ebb9@byu.net>
46060
46061         * doc/functions.texi (Function Portability): Document missing lstat
46062         on mingw.
46063
46064 2006-06-29  Eric Blake  <ebb9@byu.net>
46065
46066         * MODULES.html.sh: Add sys_stat.
46067         * modules/sys_stat: New module.
46068         * modules/mkstemp (Depends-on): Add sys_stat.
46069
46070 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46071
46072         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46073
46074 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46075
46076         * m4/c-bs-a.m4: Removed.
46077
46078 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46079
46080         * lib/strftime.c: Assume strftime() exists.
46081
46082 2006-06-29  Derek Price  <derek@ximbiot.com>
46083
46084         * modules/c-bs-a: Removed - \a is C89.
46085         * MODULES.html.sh: Remove c-bs-a.
46086
46087 2006-06-29  Bruno Haible  <bruno@clisp.org>
46088
46089         * modules/wcwidth (License): Change to LGPL.
46090
46091 2006-06-28  Simon Josefsson  <jas@extundo.com>
46092
46093         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46094         on _WIN32.
46095
46096         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46097         getnameinfo.
46098
46099 2006-06-28  Simon Josefsson  <jas@extundo.com>
46100
46101         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46102
46103 2006-06-28  Simon Josefsson  <jas@extundo.com>
46104
46105         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46106         functions there.  It will succeed on Windows XP, but on Windows
46107         2000 and (presumably) earlier, it will fail, and use the internal
46108         re-implementation.
46109         (use_win32_p): New function.
46110         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46111         Support AI_NUMERICSERV to disable getservbyname.
46112         (getnameinfo): New function, only supports
46113         NI_NUMERICHOST|NI_NUMERICSERV for now.
46114
46115         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46116         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46117         getnameinfo.
46118
46119 2006-06-28  Eric Blake  <ebb9@byu.net>
46120
46121         * modules/wcwidth: New file.
46122         * modules/mbchar (Depends-on): Add wcwidth.
46123         * modules/mbswidth (Depends-on): Add wcwidth.
46124         * MODULES.html.sh: Add wcwidth.
46125
46126 2006-06-28  Eric Blake  <ebb9@byu.net>
46127
46128         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46130
46131 2006-06-28  Eric Blake  <ebb9@byu.net>
46132
46133         * lib/xvasprintf.h: Fix comments.
46134
46135 2006-06-28  Eric Blake  <ebb9@byu.net>
46136
46137         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46138         * lib/mbswidth.c (wcwidth): Move from here...
46139         * lib/wcwidth.h: ...to this new file.
46140
46141 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46142
46143         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46144
46145         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46146         it's obsolete.
46147         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46148
46149 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46150
46151         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46152         Autoconf 2.60 says this stuff was obsolete.
46153
46154 2006-06-28  Bruno Haible  <bruno@clisp.org>
46155
46156         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46157
46158 2006-06-28  Bruno Haible  <bruno@clisp.org>
46159
46160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46161         gt_TYPE_WCHAR_T.
46162
46163 2006-06-28  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46166         declaration for wcwidth.
46167         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46168
46169 2006-06-28  Bruno Haible  <bruno@clisp.org>
46170
46171         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46172         (mkdir): Define using _mkdir.
46173
46174 2006-06-28  Bruno Haible  <bruno@clisp.org>
46175
46176         * lib/getaddrinfo.h: Fix POSIX URL.
46177         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46178         _WIN32.
46179         (use_win32_p): Make static.
46180         (getaddrinfo): Reject service name if it is empty or does not consist
46181         solely of decimal digits, or if its value is > 65535.
46182         (getnameinfo): Remove useless casts.
46183
46184 2006-06-27  Simon Josefsson  <jas@extundo.com>
46185
46186         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46187         Eggert and Martin Lambers.
46188
46189 2006-06-27  Simon Josefsson  <jas@extundo.com>
46190
46191         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46192         Eggert and Martin Lambers.
46193
46194 2006-06-27  Bruno Haible  <bruno@clisp.org>
46195
46196         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46197         result to 0, not to empty.
46198         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46199
46200 2006-06-27  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46203
46204 2006-06-26  Simon Josefsson  <jas@extundo.com>
46205
46206         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46207         present.
46208
46209 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46210
46211         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46212         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46214
46215 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46216
46217         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46218
46219 2006-06-26  Bruno Haible  <bruno@clisp.org>
46220
46221         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46222
46223 2006-06-26  Bruno Haible  <bruno@clisp.org>
46224
46225         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46226
46227 2006-06-26  Bruno Haible  <bruno@clisp.org>
46228
46229         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46230         SGI C compiler in pre-C99 mode.
46231         Suggested by Mark D. Baushke and Larry Jones.
46232
46233 2006-06-26  Bruno Haible  <bruno@clisp.org>
46234
46235         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46236         WCHAR_MAX.
46237         Reported by Mark D. Baushke and Larry Jones.
46238
46239 2006-06-26  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46242         in pre-C99 mode.
46243         Suggested by Mark D. Baushke and Larry Jones.
46244
46245 2006-06-23  Simon Josefsson  <jas@extundo.com>
46246             Bruno Haible  <bruno@clisp.org>
46247
46248         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46249         Emit mostlyclean-local rule.
46250         (func_emit_tests_Makefile_am): Likewise.
46251         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46252
46253 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46254
46255         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46256
46257 2006-06-23  Bruno Haible  <bruno@clisp.org>
46258
46259         * tests/test-stdint.c: Update to match ISO C 99 Technical
46260         Corrigendum 1.
46261
46262 2006-06-23  Bruno Haible  <bruno@clisp.org>
46263
46264         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46265
46266 2006-06-23  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/stdint_.h: Treat IRIX like OpenBSD.
46269
46270 2006-06-23  Bruno Haible  <bruno@clisp.org>
46271
46272         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46273         ISO C 99 Technical Corrigendum 1.
46274
46275 2006-06-22  Simon Josefsson  <jas@extundo.com>
46276
46277         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46278         MinGW.
46279
46280 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46281
46282         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46283         needed.  Some compiler complained about some of them.  Problem reported
46284         by Larry Jones in
46285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46286
46287 2006-06-21  Simon Josefsson  <jas@extundo.com>
46288
46289         * tests/test-getaddrinfo.c: New file.
46290
46291         * modules/getaddrinfo-tests: New file.
46292
46293         * MODULES.html.sh: Add inet_pton.
46294
46295         * modules/inet_pton: New file.
46296
46297 2006-06-21  Simon Josefsson  <jas@extundo.com>
46298
46299         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46300         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46301         of using the (limited) gnulib implementation on Windows XP.
46302
46303         * m4/inet_pton.m4: New file.
46304
46305 2006-06-21  Simon Josefsson  <jas@extundo.com>
46306
46307         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46308         variable.
46309
46310         * lib/socket_.h: Don't define WINVER.
46311
46312         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46313         slightly modified to work in gnulib.
46314
46315 2006-06-21  Simon Josefsson  <jas@extundo.com>
46316
46317         * doc/gnulib.texi (Windows sockets): Add.
46318
46319 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46320
46321         * lib/read-file.c (fread_file): Start with buffer allocation of
46322         0 bytes rather than 1 byte; this simplifies the code.
46323         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46324         code to free buffer and save/restore errno.
46325         (internal_read_file): Remove unused local.
46326
46327 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46328
46329         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46330         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46331         Problem reported by Denis Excoffier in
46332         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46333
46334 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46335
46336         * modules/sys_socket, modules/socklen: Include sys/types since
46337         FreeBSD 4.x's sys/socket.h needs it.
46338
46339 2006-06-19  Simon Josefsson  <jas@extundo.com>
46340
46341         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46342
46343 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46344
46345         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46346
46347 2006-06-19  Bruno Haible  <bruno@clisp.org>
46348
46349         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46350         and FULL_PATH_INTTYPES_H in angle brackets.
46351         Reported by Mark D. Baushke <mdb@gnu.org>.
46352
46353 2006-06-17  Eric Blake  <ebb9@byu.net>
46354
46355         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46356         errno.
46357
46358 2006-06-17  Bruno Haible  <bruno@clisp.org>
46359
46360         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46361         <sys/inttypes.h>.
46362
46363 2006-06-17  Bruno Haible  <bruno@clisp.org>
46364
46365         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46366         whether errno is declared. Assume <errno.h> declares errno.
46367
46368 2006-06-17  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46371
46372 2006-06-17  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46375         problem on Solaris 2.5.1.
46376
46377 2006-06-16  Eric Blake  <ebb9@byu.net>
46378
46379         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46380         * lib/unicodeio.c [!defined errno]: Likewise.
46381         * lib/strtol.c [!defined errno]: Likewise.
46382         * lib/strtod.c [!defined errno]: Likewise.
46383
46384 2006-06-15  Eric Blake  <ebb9@byu.net>
46385
46386         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46387
46388 2006-06-15  Eric Blake  <ebb9@byu.net>
46389
46390         * config/srclist.txt (ssize_t.m4): Lose sync.
46391
46392 2006-06-15  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/stdint (Files): Include m4/full-header-path.m4,
46395         m4/size_max.m4, m4/wchar_t.m4.
46396         (Makefile.am): Many more substitutions.
46397         * modules/stdint-tests: New file.
46398         * tests/test-stdint.c: New file.
46399
46400 2006-06-15  Bruno Haible  <bruno@clisp.org>
46401
46402         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46403         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46404         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46405         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46406         gl_CHECK_TYPE_SAME): New macros.
46407
46408 2006-06-15  Bruno Haible  <bruno@clisp.org>
46409
46410         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46411
46412 2006-06-15  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/stdint_.h: Rewritten to be fully auto-configured.
46415         Fixes bug on HP-UX/IA64.
46416
46417 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46418
46419         * lib/getdate.y (__attribute__): Don't define if already defined.
46420         Problem reported by Larry Jones.
46421         * lib/utimens.c (__attribute__): Likewise.
46422
46423 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46424
46425         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46426         reported by Andreas Schwab.
46427
46428 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46429             Bruno Haible  <bruno@clisp.org>
46430
46431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46432         check for the declaration of strnlen and a run test that exposes the
46433         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46434         rpl_strndup.
46435
46436 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46437             Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46440
46441 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46442
46443         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46444         compile test, for Tru64 4.0D.
46445
46446 2006-05-28  Karl Berry  <karl@gnu.org>
46447
46448         * config/srclist.txt (printf-args.c): lose sync.
46449
46450 2006-05-26  Martin Lambers  <marlam@marlam.de>
46451
46452         * lib/getpass.c: Updates the test for the native W32 API, and adds
46453         missing includes, thus fixing compilation warnings.
46454
46455 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46456
46457         * lib/exclude.c (exclude_fnmatch): New function.
46458         (excluded_file_name): Call exclude_fnmatch.
46459         * lib/exclude.h (excluded_file_name): New prototype
46460
46461 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46462
46463         * lib/tempname.c (small_open, large_open): New macros.
46464         (__open, __open64) [!_LIBC]: Remove.
46465         (__gen_tempname): Use small_open and large_open instead of __open
46466         and __open64.  This fixes a portability bug on HP-UX 11.11i
46467         reported by Simon Wing-Tang in
46468         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46469
46470 2006-05-24  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46473         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46474         Reported by Thorsten Maerz <torte@netztorte.de> via
46475         Aaron Stone <aaron@serendipity.cx>.
46476
46477 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46478
46479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46480         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46481         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46482         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46483         not really conditional on the cache.
46484         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46485
46486 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46487
46488         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46489         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46490         (my_usleep): Don't mishandle maximum value.
46491
46492 2006-05-19  Jim Meyering  <jim@meyering.net>
46493
46494         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46495
46496 2006-05-17  Bruno Haible  <bruno@clisp.org>
46497
46498         Cygwin portability.
46499         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46500
46501 2006-05-17  Bruno Haible  <bruno@clisp.org>
46502
46503         * lib/stdint_.h: Fix recognition of Cygwin.
46504
46505 2006-05-15  Bruno Haible  <bruno@clisp.org>
46506
46507         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46508         on libtool patch by Ralf Wildenhues.
46509
46510 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46511
46512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46513         test for C99 conformance; (bool) 0.5 is an integer constant
46514         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46515         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46516
46517 2006-05-11  Simon Josefsson  <jas@extundo.com>
46518
46519         * m4/xvasprintf.m4: Fix obvious typo.
46520
46521 2006-05-11  Jim Meyering  <jim@meyering.net>
46522
46523         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46524         James Lemley.
46525
46526 2006-05-10  Simon Josefsson  <jas@extundo.com>
46527
46528         * lib/md4.c: Typo fix, update copyright years.
46529         (K1, K2): Don't use L because it turn computations into 64-bit on
46530         64-bit platforms.
46531
46532 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46533
46534         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46535         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46536         unwanted sign propagation, e.g., on hosts with 64-bit int.
46537         There still are some problems with reeelly weird theoretical hosts
46538         (e.g., 33-bit int) but it's not worth worrying about now.
46539         * lib/sha1.c (rol): Likewise.
46540         (K1, K2, K3, K4): Remove unnecessary L suffix.
46541
46542 2006-05-10  Bruno Haible  <bruno@clisp.org>
46543
46544         * lib/des.c: Cast to avoid warnings.
46545
46546 2006-05-09  Bruno Haible  <bruno@clisp.org>
46547
46548         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46549         (Depends-on): Depend also on xsize, stdarg.
46550         (configure.ac): Add gl_XVASPRINTF.
46551
46552 2006-05-09  Bruno Haible  <bruno@clisp.org>
46553
46554         * m4/xvasprintf.m4: New file.
46555
46556 2006-05-09  Bruno Haible  <bruno@clisp.org>
46557
46558         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46559         (EOVERFLOW): Define fallback value.
46560         (xstrcat): New function.
46561         (xvasprintf): Recognize the special case of a string concatenation.
46562
46563 2006-05-08  Eric Blake  <ebb9@byu.net>
46564
46565         * gnulib-tool (func_version): Base copyright year on CVS date.
46566         (func_emit_copyright_notice): New function.
46567         (func_emit_lib_Makefile_am): Use it.
46568         (func_emit_tests_Makefile_am): Likewise.
46569         (func_import): Likewise.
46570
46571 2006-05-08  Bruno Haible  <bruno@clisp.org>
46572
46573         * modules/stdarg: New file.
46574         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46575
46576 2006-05-08  Bruno Haible  <bruno@clisp.org>
46577
46578         * m4/stdarg.m4: New file, from GNU gettext.
46579
46580 2006-05-08  Bruno Haible  <bruno@clisp.org>
46581
46582         * config/srclist.txt (build-aux/config.rpath): different from latest
46583         release.
46584
46585 2006-05-08  Bruno Haible  <bruno@clisp.org>
46586
46587         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46588
46589 2006-05-05  Jim Meyering  <jim@meyering.net>
46590
46591         * m4/warning.m4: New file, derived from bison's file by the same name.
46592
46593 2006-05-03  Bruno Haible  <bruno@clisp.org>
46594
46595         * lib/stdint_.h: Shorter URL.
46596         * lib/inttypes.h: Likewise.
46597
46598 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46599
46600         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46601
46602 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46603
46604         * lib/verify.h: Document the internals better.  Most of this change
46605         was written by Bruno Haible.
46606
46607 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46608
46609         * doc/verify.texi: New file, partly based on a proposal by
46610         Bruno Haible.
46611
46612 2006-05-02  Bruno Haible  <bruno@clisp.org>
46613
46614         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46615         test from here...
46616         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46617
46618 2006-04-29  Bruno Haible  <bruno@clisp.org>
46619
46620         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46621         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46622
46623 2006-04-29  Bruno Haible  <bruno@clisp.org>
46624
46625         * gnulib-tool: Make --update option actually work.
46626
46627 2006-04-29  Bruno Haible  <bruno@clisp.org>
46628
46629         * doc/gcd.texi: New file.
46630         * doc/gnulib.texi: Include it.
46631
46632 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46633
46634         * lib/getdate.y (get_date): When adding relative date, start with the
46635         initial time, not with the result of the first mktime call.
46636
46637 2006-04-25  Bruno Haible  <bruno@clisp.org>
46638
46639         * gnulib-tool (func_import): Output the include directives in three
46640         blocks, sorted separately.
46641         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46642
46643 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46646         to define main with arguments, for C++.  Reported by Eric Blake.
46647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46648         Prefer 'int main ()' to 'int main (void)', for C++.
46649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46650         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46651         for 'main', for C99 and C++.
46652
46653 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46654
46655         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46656         Don't assume that exit status -1 is valid.
46657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46658         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46659         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46660         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46661         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46662         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46663         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46664         functions can be used without declaring them, or that you can
46665         exit with status -1.
46666         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46667
46668 2006-04-24  Karl Berry  <karl@gnu.org>
46669
46670         * config/srclist.txt (longdouble.m4): sync lost.
46671
46672 2006-04-24  Eric Blake  <ebb9@byu.net>
46673
46674         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46675
46676 2006-04-24  Bruno Haible  <bruno@clisp.org>
46677
46678         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46679         poll() implementation in AIX.
46680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46681
46682 2006-04-24  Bruno Haible  <bruno@clisp.org>
46683
46684         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46685         assigned exactly once.
46686
46687 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46688             Bruno Haible  <bruno@clisp.org>
46689
46690         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46691         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46692         for AM_CPPFLAGS.
46693
46694 2006-04-23  Bruno Haible  <bruno@clisp.org>
46695
46696         * modules/copy-file: Depend on unistd.
46697         * modules/execute: Likewise.
46698         * modules/fatal-signal: Likewise.
46699         * modules/findprog: Likewise.
46700         * modules/mkdtemp : Likewise.
46701         * modules/pipe: Likewise.
46702         * modules/wait-process: Likewise.
46703
46704 2006-04-23  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46707         condition was already detected.
46708         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46709
46710 2006-04-23  Bruno Haible  <bruno@clisp.org>
46711
46712         * lib/copy-file.c: Include <unistd.h> unconditionally.
46713         * lib/execute.c: Likewise.
46714         * lib/fatal-signal.c: Likewise.
46715         * lib/findprog.c: Likewise.
46716         * lib/mkdtemp.c: Likewise.
46717         * lib/pipe.h: Likewise.
46718         * lib/pipe.c: Likewise.
46719         * lib/wait-process.h: Likewise.
46720
46721 2006-04-23  Bruno Haible  <bruno@clisp.org>
46722
46723         * gnulib-tool (func_usage): Fix --import description. Document
46724         --update.
46725         (func_import): Create temporary file in a temporary directory, if
46726         --dry-run is specified. Silence errors from 'grep' when there are no
46727         m4 files in $m4dir.
46728         (func_create_testdir): Silence errors from 'grep' when there are no
46729         m4 files in $m4dir.
46730         Reported by Karl Berry <karl@freefriends.org>.
46731
46732 2006-04-20  Bruno Haible  <bruno@clisp.org>
46733
46734         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46735         one argument, so that the code will be portable to Autoconf 2.60.
46736         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46737         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46738         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46739
46740 2006-04-19  Derek Price  <derek@ximbiot.com>
46741             Eric Blake  <ebb9@byu.net>
46742
46743         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46744         rather than "/full/path.h".  Update comment to match.  Shorten &
46745         generalize m4_translit call via AS_TR_CPP.
46746
46747 2006-04-19  Derek Price  <derek@ximbiot.com>
46748             Eric Blake  <ebb9@byu.net>
46749
46750         * lib/inttypes.h: Correct grammar in comment.
46751
46752 2006-04-18  Derek Price  <derek@ximbiot.com>
46753             Paul Eggert  <eggert@cs.ucla.edu>
46754
46755         * modules/inttypes: New file.
46756         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46757
46758 2006-04-18  Derek Price  <derek@ximbiot.com>
46759             Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46762         New files.
46763
46764 2006-04-18  Derek Price  <derek@ximbiot.com>
46765             Paul Eggert  <eggert@cs.ucla.edu>
46766
46767         * lib/inttypes.h: New file.
46768         * lib/strtoimax.c: Assume <inttypes.h>.
46769
46770 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46771
46772         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46773         isn't mounted.  Problem reported by Kir Kolyshkin.
46774
46775 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46776
46777         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46778         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46779         Derek R. Price.
46780         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46781         implementation.
46782
46783 2006-04-12  Eric Blake  <ebb9@byu.net>
46784
46785         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46786         is now done automatically by the corresponding Autoconf macro.
46787
46788 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46789
46790         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46791         time_r.h.
46792
46793 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46794
46795         Merge regex changes from libc, removing some of our
46796         POSIX-conformance changes that were rejected and redoing them in a
46797         less-intrusive way.
46798
46799         * lib/regcomp.c (re_compile_internal, init_dfa):
46800         Length arg is now size_t, not Idx.  All uses changed.
46801         (peek_token): Forward decl now says internal_function.
46802         (__re_error_msgid, __re_error_msgid_idx):
46803         Now static rather than extern with attribute_hidden.
46804         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46805         For some reason libc prefers K&R style defns for external functions.
46806         (regerror) [!defined _LIBC]: Likewise.
46807         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46808         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46809         (build_range_exp, build_collating_symbol):
46810         Use K&R-style defn.
46811         (re_compile_fastmap): Use '\0' to memset, not 0.
46812         (utf8_sb_map): Make the calculations more obvious.
46813         (init_dfa, parse_bracket_exp, build_charclass_op):
46814         Call calloc and cast result, as glibc does.
46815         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46816         (build_range_exp, build_collating_symbol):
46817         Now internal functions.
46818
46819         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46820
46821         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46822         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46823         Don't depend on VMS; depend on __VMS instead, for POSIX
46824         namespace cleanness.
46825         (regoff_t): Define to ssize_t, not long int.
46826
46827         Remove the REG_ macros named below.  Instead, make the old names
46828         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46829         __USE_GNU_REGEX.
46830         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46831         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46832         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46833         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46834         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46835         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46836         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46837         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46838         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46839         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46840         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46841         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46842         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46843         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46844         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46845         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46846         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46847         (REG_NREGS):
46848         Remove.  All uses replaced by the old RE_* names.
46849         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46850         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46851         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46852         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46853         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46854         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46855         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46856         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46857         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46858         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46859         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46860         Don't bother having these macros be independent of each others'
46861         values, since they no longer exist in the POSIX name space.
46862
46863         Rename the following member names back to their old names,
46864         unless !__USE_GNU_REGEX.  All uses changed back.
46865         (buffer): Renamed from re_buffer.
46866         (allocated): Renamed from re_allocated.
46867         (used): Renamed from re_used.
46868         (syntax): Renamed from re_syntax.
46869         (fastmap): Renamed from re_fastmap.
46870         (translate): Renamed from re_translate.
46871         (can_be_null): Renamed from re_can_be_null.
46872         (regs_allocated): Renamed from re_regs_allocated.
46873         (fastmap_accurate): Renamed from re_fastmap_accurate.
46874         (no_sub): Renamed from re_no_sub.
46875         (not_bol): Renamed from re_not_bol.
46876         (not_eol): Renamed from re_not_eol.
46877         (newline_anchor): Renamed from re_newline_anchor.
46878         (num_regs): Renamed from rm_num_regs.
46879         (start): Renamed from rm_start.
46880         (end): Renamed from rm_end.
46881
46882         (free_state): Move up a bit.
46883
46884         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46885         #define to be empty.
46886         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46887         when that is what is intended.
46888         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46889         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46890         (MAX): New macro.
46891         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46892         All uses changed back to re_malloc, etc.  It's now the caller's
46893         responsibility to check for overflow; all callers changed.
46894         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46895         (re_x2nrealloc): Remove.
46896         (free_state): Remove decl.
46897
46898         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46899         (re_set_registers, re_exec):
46900         Use K&R-style defn.
46901
46902         2006-01-31  Roland McGrath  <roland@redhat.com>
46903
46904         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46905         Reported by Mike Frysinger <vapier@gentoo.org>.
46906
46907         2006-01-15  Andreas Jaeger  <aj@suse.de>
46908
46909         [BZ #1950]
46910         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46911         build_wcs_upper_buffer change.
46912         (build_wcs_upper_buffer): Change return type.
46913
46914         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46915
46916         * lib/regex_internal.h: Include <stdint.h> if available.
46917
46918         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46919
46920         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46921
46922         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46923
46924         * lib/regcomp.c: Adjust for changed secondary hash function.
46925
46926         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46927
46928         * lib/regex.h: Pretty printing.
46929         Clean up namespace a bit.
46930
46931         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46932
46933         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46934         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46935
46936         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46937                     Ulrich Drepper  <drepper@redhat.com>
46938
46939         [BZ #1302]
46940         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46941         changed.
46942         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46943
46944         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46945
46946         [BZ #281]
46947         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46948         * lib/regcomp.c: Remove unnecessary uses of
46949         unsigned RE_TRANSLATE_TYPE.
46950         * lib/regex_internal.h: Likewise.
46951         * lib/regex_internal.c: Likewise.
46952         * lib/regexec.c: Likewise.
46953         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46954
46955         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46956
46957         * lib/regexec.c (find_recover_state): Remove unnecessary
46958         initialization.
46959         (transit_state_bkref): Make DFA a const pointer.
46960         (get_subexp): Likewise.
46961         (check_arrival): Likewise.
46962         (update_cur_sifted_state): Likewise.
46963         (re_search_internal): Likewise.
46964         (prune_impossible_nodes): Likewise.
46965         (acquire_init_state_context): Likewise.
46966         (proceed_next_node): Likewise.
46967         (set_regs): Likewise.
46968         (free_fail_stack_return): Likewise.
46969         (check_arrival_expand_ecl): Mark DFA parameter as const.
46970         (check_arrival_expand_ecl_sub): Likewise.
46971         (check_subexp_limits): Likewise.
46972         (sub_epsilon_src_nodes):  Likewise.
46973         (add_epsilon_src_nodes):  Likewise.
46974         (merge_state_array): Likewise.
46975         (update_regs): Likewise.
46976         (build_trtable): Likewise.
46977         (sift_states_backward): Mark MCTX parameter as const.
46978         (build_sifted_states): Likewise.
46979         (update_cur_sifted_state): Likewise.
46980         (sift_states_mkref): Likewise.
46981         (check_arrival_expand_ecl): Mark eclosure as const.
46982         (check_dst_limits_calc_pos_1): Likewise.
46983         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46984         pointer.
46985
46986         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46987
46988         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46989         (transit_state_sb): Likewise.
46990         (transit_state_mb): Likewise.
46991         (sift_states_iter_mb): Likewise.
46992         (check_arrival_add_next_nodes): Likewise.
46993         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46994         [_LIBC] (re_search_2_stub): Use mempcpy.
46995
46996         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46997         mbrtowc for very simple UTF-8 case.
46998
46999         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47000         a pointer-to-const.
47001         (re_acquire_state_context): Likewise.
47002         * lib/regex_internal.h: Adjust prototypes.
47003
47004         * lib/regex.c: Prevent using C++ compilers.
47005
47006         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47007         (re_acquire_state_context): Likewise.
47008
47009 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47010
47011         * modules/regex (Depends-on): Add ssize_t.
47012
47013 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47014
47015         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47016         translation table.
47017
47018 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47019
47020         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47021
47022 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47023             Bruno Haible  <bruno@clisp.org>
47024
47025         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47026         <sys/types.h> and <inttypes.h>.
47027
47028 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47029
47030         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47031         `__error_t_defined', so argp.h will not typedef the former.
47032
47033 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47034
47035         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47036         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47037         glibc names.  Even if glibc is changed to conform to POSIX, the
47038         traditional names will be available anyway, since regex depends on
47039         the extensions module.  Also, fix a longstanding typo in the
47040         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47041         reported by Emanuele Giaquinta.  Also, change sense of cached
47042         variable, so that the message makes sense.
47043
47044 2006-03-24  Simon Josefsson  <jas@extundo.com>
47045
47046         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47047         including some doc fixes.
47048         (base64_encode_alloc): Fix +1 bug on allocation failures.
47049
47050 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47051
47052         * lib/base64.c (base64_encode): Do not read past end of array with
47053         unsanitized input on systems with CHAR_BIT > 8.
47054
47055 2006-03-24  Eric Blake  <ebb9@byu.net>
47056
47057         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47058
47059 2006-03-22  Karl Berry  <karl@gnu.org>
47060
47061         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47062         * config/srclistvars.sh (COREUTILS): new var.
47063
47064 2006-03-17  Jim Meyering  <jim@meyering.net>
47065
47066         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47067         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47068
47069 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47070
47071         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47072         no longer needs it.  Instead, check that regoff_t is as least
47073         as wide as ptrdiff_t.
47074
47075         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47076         so that our regex.h stays compatible with the installed regex.
47077         This is helpful for installers who configure --without-included-regex.
47078         Problem reported by Emanuele Giaquinta.
47079
47080 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47081
47082         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47083         Typedef to long int, not to off_, as POSIX will likely change
47084         in that direction.
47085
47086 2006-03-15  Eric Blake  <ebb9@byu.net>
47087
47088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47089
47090 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47091
47092         * lib/argp-help.c (validate_uparams): Fix typo
47093         * lib/argp-parse.c (argp_default_options): Consistently begin help
47094         messages with a lowercase letter.
47095
47096 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47097
47098         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47099         overrun buffers and shouldn't be used (much as gets shouldn't be
47100         used).
47101         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47102
47103 2006-03-08  Simon Josefsson  <jas@extundo.com>
47104
47105         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47106         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47107
47108 2006-03-08  Simon Josefsson  <jas@extundo.com>
47109
47110         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47111         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47112
47113 2006-03-08  Simon Josefsson  <jas@extundo.com>
47114
47115         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47116         signal that configure disabled the device.
47117
47118 2006-03-08  Simon Josefsson  <jas@extundo.com>
47119
47120         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47121         languages.
47122
47123 2006-03-07  Simon Josefsson  <jas@extundo.com>
47124
47125         * modules/getopt (Depends-on): Add unistd.
47126
47127         * modules/unistd: New file.
47128
47129 2006-03-07  Simon Josefsson  <jas@extundo.com>
47130
47131         * modules/gc-random: New file.
47132
47133 2006-03-07  Simon Josefsson  <jas@extundo.com>
47134
47135         * m4/unistd_h.m4: New file.
47136
47137 2006-03-07  Simon Josefsson  <jas@extundo.com>
47138
47139         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47140         test to be side-effect free by storing the result in the cache
47141         variable gl_cv_lib_readline, and moving the assignment of
47142         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47143         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47144
47145 2006-03-07  Simon Josefsson  <jas@extundo.com>
47146
47147         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47148         error on missing devices (the functions will return an error).
47149
47150         * m4/gc.m4: Move random stuff to gc-random.m4
47151
47152 2006-03-07  Simon Josefsson  <jas@extundo.com>
47153
47154         * lib/unistd_.h: New file.
47155
47156 2006-03-07  Simon Josefsson  <jas@extundo.com>
47157
47158         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47159
47160 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47163         Problem reported by Juan Manuel Guerrero.
47164
47165 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47166
47167         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47168         the unistd module.
47169         * lib/getlogin_r.c: Likewise.
47170         * lib/getlogin_r.h: Likewise.
47171         * lib/glob.c: Likewise.
47172         * lib/pagealign_alloc.c: Likewise.
47173         * lib/unistd_.h: Remove; no longer needed.
47174
47175 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47176
47177         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47178         Add unistd.
47179         * modules/c-stack (Depends-on): Add unistd.
47180         * modules/getlogin_r: Likewise.
47181         * modules/glob: Likewise.
47182         * modules/pagealign_alloc: Likewise.
47183         * modules/unistd (Files): Remove lib/unistd_.h.
47184         (EXTRA_DIST): Remove.
47185         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47186         need unistd_.h.
47187         (MOSTLYCLEANFILES): Remove unistd.h-t.
47188
47189 2006-03-03  Simon Josefsson  <jas@extundo.com>
47190
47191         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47192
47193 2006-03-03  Simon Josefsson  <jas@extundo.com>
47194
47195         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47196         libidn and bison.
47197
47198 2006-03-03  Simon Josefsson  <jas@extundo.com>
47199
47200         * build-aux/maint.mk: Add indent target.
47201
47202 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47203
47204         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47205         our replacement poll.h in any case, to avoid a differing
47206         declaration from a system header.  Seen on AIX.
47207
47208 2006-03-01  Simon Josefsson  <jas@extundo.com>
47209
47210         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47211         <kasal@ucw.cz>.
47212
47213 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47214
47215         * modules/gettime (Depends-on): Add extensions module.
47216         * modules/nanosleep (Depends-on): Likewise.
47217         * modules/settime (Depends-on): Likewise.
47218
47219 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47220
47221         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47222         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47223         pedantically.
47224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47225         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47226
47227         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47228         not "==".  Reported by Ralf Wildenhues.
47229
47230 2006-03-01  Karl Berry  <karl@gnu.org>
47231
47232         * doc/Copyright/request-*: new files, synced from gnuorg.
47233
47234 2006-03-01  Karl Berry  <karl@gnu.org>
47235
47236         * config/srclist.txt (Copyright/*): new entries.
47237
47238 2006-02-28  Simon Josefsson  <jas@extundo.com>
47239
47240         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47241
47242 2006-02-27  Simon Josefsson  <jas@extundo.com>
47243
47244         * lib/base64.h: Indent #define's.  From Jim Meyering
47245         <jim@meyering.net>.
47246
47247 2006-02-27  Jim Meyering  <jim@meyering.net>
47248
47249         Revert the change of 2006-02-24, so these files can continue
47250         to be sync'd from gettext.
47251         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47252         of `config.h'.
47253
47254 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47255
47256         * modules/intprops: New file.
47257         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47258         Add intprops.
47259         * modules/getloadavg (Files): Remove lib/intprops.h.
47260         (Depends-on): Add intprops.
47261         * modules/human: Likewise.
47262         * modules/inttostr: Likewise.
47263         * modules/openat: Likewise.
47264         * modules/sig2str: Likewise.
47265         * modules/userspec: Likewise.
47266         * modules/utimecmp: Likewise.
47267         * modules/xnanosleep: Likewise.
47268         * modules/xstrtol: Likewise.
47269
47270 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47271
47272         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47273         * modules/lock-tests (TESTS): Use $(EXEEXT).
47274         * modules/tls-tests: Likewise.
47275         * modules/argp-tests: Likewise.
47276         (check_PROGRAMS): New var, replacing...
47277         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47278
47279 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47280
47281         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47282         `config.h'.
47283
47284 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47285
47286         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47287
47288 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47289
47290         Sync from coreutils.
47291         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47292         gl_CHDIR_SAFER.
47293
47294 2006-02-22  Jim Meyering  <jim@meyering.net>
47295
47296         Sync from coreutils.
47297         * m4/chdir-safer.m4: New file.
47298
47299 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47300
47301         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47302         AT_FDCWD exceeds INT_MAX.
47303         * lib/openat.h (AT_FDCWD): Likewise.
47304
47305 2006-02-17  Eric Blake  <address@hidden>
47306
47307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47308
47309 2006-02-16  Simon Josefsson  <jas@extundo.com>
47310
47311         * modules/getaddrinfo (Depends-on): Add sys_socket.
47312
47313 2006-02-15  Simon Josefsson  <jas@extundo.com>
47314
47315         * build-aux/maint.mk: Add dsyntax-check rule.
47316
47317 2006-02-15  Eric Blake  <ebb9@byu.net>
47318
47319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47320         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47321         'present but cannot compile' warnings on cygwin.
47322         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47323         use ws2tcpip.h if sys/socket.h works.
47324         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47325         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47326
47327 2006-02-14  Simon Josefsson  <jas@extundo.com>
47328
47329         * modules/maintainer-makefile (Files): Rename.
47330
47331         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47332         and (the local) Makefile.cfg to maint-cfg.mk.
47333
47334         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47335         to the latter.
47336
47337         * modules/maintainer-makefile: New module.
47338
47339         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47340         severaly stripped to make it possible to build it up from scratch
47341         with reliable tests.
47342
47343         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47344         fixes to permit overriding the default actions when configure and
47345         makefile are not available.
47346
47347 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47348
47349         Sync from coreutils.
47350         * modules/lstat (Depends-on): Don't depend on xalloc.
47351         (License): Change from GPL to LGPL, since this is now simply a
47352         replacement for a libc function.
47353
47354 2006-02-14  Jim Meyering  <jim@meyering.net>
47355
47356         Sync from coreutils.
47357
47358         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47359         failure on deficient systems, and simplify gnulib lgpl dependencies.
47360         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47361         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47362
47363         * lib/xalloc-die.c: Remove unused definition of N_.
47364
47365 2006-02-14  Jim Meyering  <jim@meyering.net>
47366
47367         Sync from coreutils.
47368         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47369         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47370         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47371         double-quote uses of that variable, to accommodate the rare case in
47372         which getmntent is available in none of the libraries checked.  This
47373         happens at least on FreeBSD 5.0.
47374
47375 2006-02-13  Simon Josefsson  <jas@extundo.com>
47376
47377         * gnulib-tool (Usage): Fix --import, from
47378         karl@freefriends.org (Karl Berry).
47379
47380 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47381
47382         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47383
47384 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47385
47386         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47387         "autoupdate" on 2005-12-12.
47388
47389 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47390
47391         * modules/closeout (Depends-on): Remove atexit.
47392
47393 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47396         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47397
47398 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47401         __EXTENSIONS__ if this causes compilation to fail.  Problem
47402         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47403         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47404
47405 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47406
47407         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47408         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47410         All uses changed.
47411
47412 2006-01-26  Simon Josefsson  <jas@extundo.com>
47413
47414         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47415         prototype is visible on mingw32.
47416
47417         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47418         for mingw32.
47419
47420         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47421         mingw32).
47422
47423 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47426         attempt to open for write; this always fails, at least on POSIX
47427         hosts.  This reinstates the 2006-01-09 change, which was
47428         inadvertently removed.
47429
47430 2006-01-26  Bruno Haible  <bruno@clisp.org>
47431
47432         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47433         Reported by Paul Eggert.
47434
47435 2006-01-26  Bruno Haible  <bruno@clisp.org>
47436             Paul Eggert  <eggert@cs.ucla.edu>
47437
47438         * lib/stdbool_.h (_Bool)
47439         [(! (defined __cplusplus || defined __BEOS__)
47440           && !defined __GNUC__
47441           && !(defined __HP_cc || defined __xlc__
47442                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47443                || defined __sgi))]:
47444         #define to signed char in these cases too; this simplifies
47445         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47446         etc., separately) and makes it more conservative.
47447
47448 2006-01-25  Simon Josefsson  <jas@extundo.com>
47449
47450         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47451         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47452         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47453
47454 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47455
47456         * lib/argp-namefrob.h: Bugfix. Remove stray #
47457
47458 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47459
47460         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47461         so that we test the test.
47462         Check for yet another HP-UX cc bug involving *bool |= bool.
47463
47464 2006-01-25  Karl Berry  <karl@gnu.org>
47465
47466         * config/srclist.txt (vasnprintf.c): sync lost.
47467
47468 2006-01-25  Jim Meyering  <jim@meyering.net>
47469
47470         Sync from the stable (b5) branch of coreutils:
47471
47472         * lib/fts.c (fts_children): Don't let close() clobber errno from
47473         failed fchdir().
47474
47475         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47476         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47477         a dangling symlink.  That can also happen at least for ELOOP.
47478         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47479         FYI, this bug predates the inclusion of fts.c in coreutils.
47480
47481         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47482         in their own block, so pre-c99 compilers don't object.
47483
47484         Avoid the double-free (first in fts_read, second in fts_close) that
47485         would occur when an `active' directory is made inaccessible (e.g.,
47486         via chmod a-x) during a traversal.
47487         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47488         before returning.  Reproduce this failure by
47489         mkdir -p a/b; cd a; chmod a-x . b
47490         Reported by Stavros Passas.
47491
47492 2006-01-25  Jim Meyering  <jim@meyering.net>
47493
47494         * lib/fileblocks.c: Remove more useless parentheses.
47495         * lib/readutmp.h: Likewise.
47496
47497 2006-01-25  Bruno Haible  <bruno@clisp.org>
47498
47499         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47500         warnings.
47501         Reported by Paul Eggert.
47502
47503 2006-01-25  Bruno Haible  <bruno@clisp.org>
47504
47505         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47506         rid of a trap command. For Solaris sh.
47507         Reported by Mark D. Baushke <mdb@gnu.org>.
47508
47509 2006-01-24  Simon Josefsson  <jas@extundo.com>
47510
47511         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47512         Bruno.
47513
47514 2006-01-24  Karl Berry  <karl@gnu.org>
47515
47516         * config/srclist.txt (argp-namefrob.h): sync lost.
47517
47518 2006-01-24  Jim Meyering  <jim@meyering.net>
47519
47520         * modules/openat (Files): Add lib/intprops.h.
47521         From Mark D. Baushke.
47522
47523 2006-01-24  Jim Meyering  <jim@meyering.net>
47524
47525         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47526         Reported by Mark D. Baushke.
47527
47528 2006-01-24  Jim Meyering  <jim@meyering.net>
47529
47530         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47531
47532 2006-01-24  Bruno Haible  <bruno@clisp.org>
47533
47534         * modules/strnlen (Maintainer): Change from glibc to all.
47535
47536 2006-01-24  Bruno Haible  <bruno@clisp.org>
47537
47538         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47539         Patch by Paul Eggert.
47540
47541 2006-01-24  Bruno Haible  <bruno@clisp.org>
47542
47543         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47544         already has it.
47545         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47546         2005-11-26.
47547
47548         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47549         'signed char' to avoid problems with the built-in _Bool type.
47550         Reported by Paul Eggert on 2005-11-26.
47551
47552 2006-01-24  Bruno Haible  <bruno@clisp.org>
47553
47554         * gnulib-tool (func_import): Avoid constructing complicated sed
47555         expressions inside backquote.
47556         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47557
47558 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47559
47560         These changes imported from libc.
47561         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47562         test and two separate function calls.
47563         * lib/strndup.c (__strndup): Add libc_hidden_def.
47564
47565 2006-01-23  Simon Josefsson  <jas@extundo.com>
47566
47567         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47568         Remove the test_*_SOURCES variable: automake infers it by default.
47569         * modules/tls-tests: Likewise.
47570
47571 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47572
47573         Work around porting bugs reported by Dieter in
47574         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47575         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47576         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47577         Include "getopt.h" first, to check interface.
47578         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47579         !HAVE_DECL_GETENV.
47580         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47581         (__strndup): Revert to K&R-style function dfns, the glibc style.
47582         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47583         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47584         Include strnlen.h first, to get prototype properly.
47585         (strnlen): Renamed from __strnlen.
47586         Remove weak alias.
47587
47588 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47589
47590         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47591
47592 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47593
47594         * config/srclist.txt: Adjust to reflect glibc reorganization.
47595         This affects only comments.
47596
47597 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47598
47599          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47600          Reported by Bruce Korb <bkorb@gnu.org>.
47601
47602 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47603
47604         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47605         to pacify gcc -Wswitch-default.
47606
47607 2006-01-22  Bruno Haible  <bruno@clisp.org>
47608
47609         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47610         temporary buffer for sprintf, take into account the precision also
47611         for 'd', 'i', 'u', 'o', 'x', 'X'.
47612
47613 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47614
47615         * modules/argp-tests: New module
47616         * tests/test-argp.c: New file
47617         * tests/test-argp-2.sh: New file
47618
47619 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47620
47621         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47622         (__argp_base_name): Removed
47623         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47624         typo.
47625         (__argp_base_name): Provide macro definition or extern declaration
47626         depending on the configuration
47627
47628 2006-01-20  Simon Josefsson  <jas@extundo.com>
47629
47630         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47631
47632 2006-01-20  Simon Josefsson  <jas@extundo.com>
47633
47634         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47635
47636 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47637
47638         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47639         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47640         Suggested by Bruno Haible.
47641
47642 2006-01-20  Karl Berry  <karl@gnu.org>
47643
47644         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47645         until changes propagate, I guess.
47646
47647 2006-01-19  Simon Josefsson  <jas@extundo.com>
47648
47649         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47650
47651 2006-01-19  Simon Josefsson  <jas@extundo.com>
47652
47653         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47654
47655 2006-01-19  Simon Josefsson  <jas@extundo.com>
47656
47657         * gnulib-tool: Set check_PROGRAMS.
47658
47659         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47660         modules/des-tests, modules/gc-arcfour-tests,
47661         modules/gc-arctwo-tests, modules/gc-des-tests,
47662         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47663         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47664         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47665         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47666         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47667         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47668         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47669         test_*_SOURCES.
47670
47671 2006-01-18  Simon Josefsson  <jas@extundo.com>
47672
47673         * modules/socklen (Depends-on): Depend on sys_socket.
47674
47675 2006-01-18  Simon Josefsson  <jas@extundo.com>
47676
47677         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47678         modules/des-tests, modules/gc-arcfour-tests,
47679         modules/gc-arctwo-tests, modules/gc-des-tests,
47680         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47681         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47682         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47683         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47684         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47685         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47686         $(EXEEXT) to automake TESTS variable, for mingw32.
47687
47688 2006-01-17  Simon Josefsson  <jas@extundo.com>
47689
47690         * modules/socklen (Include): Need sys/socket.h.
47691
47692 2006-01-17  Bruno Haible  <bruno@clisp.org>
47693
47694         * modules/ssize_t (Include): Add <sys/types.h>.
47695
47696 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47697
47698         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47699         it's not portable and it doesn't work with cross-compiles.
47700         Problem reported by Bruno Haible.  Fix missing-$ typo in
47701         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47702         -zignore from being used with Sun's C compiler.
47703
47704 2006-01-12  Simon Josefsson  <jas@extundo.com>
47705
47706         * lib/base64.c: Fix warning, reported by Bruno Haible
47707         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47708
47709 2006-01-12  Bruno Haible  <bruno@clisp.org>
47710
47711         * modules/ldd: New file.
47712         * build-aux/ldd.sh.in: New file.
47713         * MODULES.html.sh (Support for building libraries and executables): Add
47714         ldd.
47715
47716 2006-01-12  Bruno Haible  <bruno@clisp.org>
47717
47718         * m4/ldd.m4: New file.
47719
47720 2006-01-12  Bruno Haible  <bruno@clisp.org>
47721
47722         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47723         endless loop while replacing $auxdir with build-aux.
47724
47725 2006-01-11  Simon Josefsson  <jas@extundo.com>
47726
47727         * lib/stdint_.h (SIZE_MAX): Add missing (.
47728
47729 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47730
47731         Sync from coreutils.
47732         * lib/md5.c: Fix commentary typos.
47733         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47734         * lib/md5.h (__attribute__): Remove; unused.
47735         * lib/sha1.c: Fix commentary to match md5 better.
47736         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47737         so that we don't need to worry about alignment.  All uses changed.
47738         This merges the 2005-10-28 md5 change into sha1.
47739
47740 2006-01-11  Jim Meyering  <jim@meyering.net>
47741
47742         Sync from coreutils.
47743         * lib/md5.c (OP): Fix spacing.
47744
47745 2006-01-11  Bruno Haible  <bruno@clisp.org>
47746
47747         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47748         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47749         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47750
47751 2006-01-11  Bruno Haible  <bruno@clisp.org>
47752
47753         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47754         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47755         the "early" section as well.
47756
47757 2006-01-11  Bruno Haible  <bruno@clisp.org>
47758
47759         Avoid "ar: no archive members specified" error on MacOS X.
47760         * gnulib-tool (func_modules_add_dummy): New function.
47761         (func_import, func_create_testdir): Invoke it.
47762
47763 2006-01-11  Bruno Haible  <bruno@clisp.org>
47764
47765         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47766         with $auxdir in AC_CONFIG_FILES statements.
47767
47768 2006-01-11  Bruno Haible  <bruno@clisp.org>
47769
47770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47771         Initialize also noinst_HEADERS to empty.
47772
47773 2006-01-11  Bruno Haible  <bruno@clisp.org>
47774
47775         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47776         variables.
47777         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47778         autoreconf.
47779
47780 2006-01-11  Bruno Haible  <bruno@clisp.org>
47781
47782         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47783         overridable by the user.
47784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47785
47786 2006-01-10  Simon Josefsson  <jas@extundo.com>
47787
47788         * modules/sys_socket: New file.
47789
47790 2006-01-10  Simon Josefsson  <jas@extundo.com>
47791
47792         * m4/sys_socket_h.m4: New file.
47793
47794 2006-01-10  Simon Josefsson  <jas@extundo.com>
47795
47796         * lib/socket_.h: New file.
47797
47798 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47799
47800         * modules/readutmp (Maintainer): Add myself.
47801
47802 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47803
47804         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47805         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47806         People who are still concerned with buggy memcmp implementations
47807         can invoke gl_FUNC_MEMCMP themselves.
47808
47809 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         * lib/regex_internal.h (BITSET_WORD_BITS):
47812         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47813         preprocessor mishandles large unsigned values as if they were signed.
47814         Problem reported by Claudio Fontana in
47815         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47816
47817 2006-01-10  Jim Meyering  <jim@meyering.net>
47818
47819         Avoid the double-free (first in fts_read, second in fts_close) that
47820         would occur when an `active' directory is made inaccessible (e.g.,
47821         via chmod a-x) during a traversal.
47822         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47823         before returning.  Reproduce this failure by
47824         mkdir -p a/b; cd a; chmod a-x . b
47825         Reported by Stavros Passas.
47826
47827         Sync from coreutils.
47828         * lib/sha1.c: Tweak grammar in a comment.
47829
47830 2006-01-10  Jim Meyering  <jim@meyering.net>
47831
47832         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47833         Patch by Joerg Sonnenberger.
47834
47835 2006-01-10  Bruno Haible  <bruno@clisp.org>
47836
47837         * modules/readutmp: Depend on module free.
47838         * modules/strtok_r: Depend on module restrict.
47839
47840 2006-01-10  Bruno Haible  <bruno@clisp.org>
47841
47842         * modules/gettext (configure.ac): Add an invocation of
47843         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47844
47845 2006-01-10  Bruno Haible  <bruno@clisp.org>
47846
47847         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47848         Reported by Werner Lemberg <wl@gnu.org>.
47849
47850 2006-01-10  Bruno Haible  <bruno@clisp.org>
47851
47852         * lib/localcharset.c: Update from GNU gettext.
47853
47854 2006-01-10  Bruno Haible  <bruno@clisp.org>
47855
47856         * lib/argp.h (__const): Remove macro. Use const instead.
47857         * lib/argp-fmtstream.h (__const): Likewise.
47858         * lib/glob_.h (__const): Remove macro.
47859         * lib/glob-libc.h: Use const instead of __const.
47860
47861 2006-01-10  Bruno Haible  <bruno@clisp.org>
47862
47863         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47864         variable.
47865         Needed to avoid an automake error regarding the 'gettext' module.
47866
47867 2006-01-09  Simon Josefsson  <jas@extundo.com>
47868
47869         * modules/inet_ntop (Depends-on): Add restrict.
47870
47871 2006-01-09  Simon Josefsson  <jas@extundo.com>
47872
47873         * modules/gc-rijndael-tests (License): Put under LGPL.
47874
47875         * modules/gc-des-tests (License): Likewise.
47876
47877         * modules/gc-arcfour-tests (License): Likewise.
47878
47879         * modules/gc-arctwo-tests (License): Likewise.
47880
47881         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47882
47883         * modules/gc-hmac-sha1-tests (Files): Likewise.
47884
47885         * modules/gc-hmac-md5-tests (License): Likewise.
47886
47887         * modules/gc-sha1-tests (License): Likewise.
47888
47889         * modules/gc-md5-tests (License): Likewise.
47890
47891         * modules/gc-md4-tests (License): Likewise.
47892
47893         * modules/gc-md2-tests (License): Likewise.
47894
47895         * modules/gc-tests (License): Likewise.
47896
47897         * modules/des-tests (License): Likewise.
47898
47899         * modules/md4-tests (License): Likewise.
47900
47901         * modules/md2-tests (License): Likewise.
47902
47903 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47904
47905         Sync from coreutils:
47906
47907         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47908         * modules/lib-ignore: New file.
47909         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47910         chdir-safer.m4, lchmod.m4.
47911         * modules/openat: Add mkdirat.c, openat-priv.h.
47912
47913 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47914
47915         Sync from coreutils.
47916         * m4/lib-ignore.m4: New file.
47917         * m4/lchmod.m4: New file.
47918
47919 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47920
47921         Sync from coreutils.
47922         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47923         for write access: POSIX says that must fail.
47924         * lib/fts.c (diropen): Likewise.
47925         * lib/save-cwd.c (save_cwd): Likewise.
47926         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47927         well, for minor improvements on hosts that lack O_DIRECTORY.
47928         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47929         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47930         Fall back on chown if open failed with EACCES.
47931
47932         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47933         Report an error at compile-time if only a 1-second nominal clock
47934         resolution is found.
47935
47936         * lib/lchmod.h: New file.
47937         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47938         (make_dir_parents): Use lchown rather than chown, and
47939         lchmod rather than chmod.
47940
47941         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47942         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47943         "proc" reported by n0dalus.
47944
47945         * lib/mountlist.c: Include <limits.h>.
47946         (dev_from_mount_options)
47947         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47948         New function.  It no longer assumes "dev=" has the System V meaning
47949         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47950         (read_file_system_list)
47951         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47952         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47953         dev= in that case.
47954
47955         * lib/posixtm.h (PDS_PRE_2000): New macro.
47956         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47957         allow_century.  All usages changed.  Reject dates outside the range
47958         1969-1999 if PDS_PRE_2000 is used.
47959
47960 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47961
47962         Sync from coreutils.
47963         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47964         (Time of day items): Mention the possibility of leap seconds.
47965         Problem reported by Dr. David Alan Gilbert.
47966
47967 2006-01-09  Jim Meyering  <jim@meyering.net>
47968
47969         Sync from coreutils.
47970
47971         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47972
47973         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47974
47975         * lib/modechange.c (mode_compile): Reject an invalid mode string
47976         that starts with an octal digit.  From Andreas Gruenbacher.
47977
47978         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47979         and dup to open_safer and dup_safer, respectively.
47980         (openat_permissive): Fix typo in comment.
47981
47982         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47983         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47984         (_): Remove; no longer needed.
47985         (openat): Renamed from rpl_openat; no need for rpl_openat
47986         since openat.h renames openat for us.
47987         Replace most of the body with a call to openat_permissive,
47988         to avoid duplicate code.
47989         Port to (probably hypothetical) environments were mode_t is
47990         wider than int.
47991         (openat_permissive): Require mode arg, so that we can check
47992         types better.  Put it just after flags.  Change cwd failure
47993         indicator from pointer-to-bool to pointer-to-errno-value.
47994         All callers changed.
47995         Invoke openat_save_fail and/or openat_restore_fail if
47996         cwd_errno is null, so that openat can call us.
47997         (openat_permissive, fdopendir, fstatat, unlinkat):
47998         Simplify errno handling to avoid some duplicate code,
47999         as it's OK to set errno on success.
48000         * lib/openat.h: Revamp code so that function macros depend on
48001         __OPENAT_PREFIX only, not also on AT_FDCWD.
48002         (openat_ro): Remove.  Caller changed to use openat_permissive.
48003         (openat_permissive): Now a macro, if not a function.
48004         (openat_restore_fail, openat_save_fail): Now always functions,
48005         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48006
48007         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48008         and openat.c.
48009         * lib/mkdirat.c: Include openat-priv.h.
48010         Remove definitions of macros defined therein.
48011         * lib/openat.c: Likewise.
48012
48013         * lib/mkdirat.c (mkdirat): New file and function.
48014         * lib/openat.h (mkdirat): Declare.
48015
48016         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48017
48018         * lib/openat.h (openat_permissive): Declare.
48019         (openat_ro): Define.
48020
48021         * lib/openat.c (EXPECTED_ERRNO): New macro.
48022         (openat_permissive): New function -- used in remove.c rewrite.
48023         (all functions): Set errno just before returning, only if there
48024         was an actual failure.
48025         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48026
48027         Emulate openat-family functions using Linux's procfs, if possible.
48028         Idea and some code based on Ulrich Drepper's glibc changes.
48029
48030         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48031         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48032         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48033         before falling back on save_cwd and restore_cwd.
48034         (fdopendir, fstatat, unlinkat): Likewise.
48035
48036         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48037         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48038
48039         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48040         as second argument to va_arg.  Otherwise, some versions of gcc
48041         warn that `if this code is reached, the program will abort'.
48042
48043 2006-01-09  Jim Meyering  <jim@meyering.net>
48044
48045         Sync from coreutils.
48046         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48047         Require openat-priv.h.
48048
48049 2006-01-09  Bruno Haible  <bruno@clisp.org>
48050
48051         * modules/strnlen (Include): Use strnlen.h.
48052
48053 2006-01-09  Bruno Haible  <bruno@clisp.org>
48054
48055         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48056
48057 2006-01-09  Bruno Haible  <bruno@clisp.org>
48058
48059         * lib/sysexit_.h (EX_OK): New macro.
48060         Suggested by Martin Lambers <marlam@marlam.de>.
48061
48062 2006-01-09  Bruno Haible  <bruno@clisp.org>
48063
48064         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48065         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48066
48067 2006-01-09  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48070         numbers.
48071
48072 2006-01-09  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48075         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48076         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48077         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48078
48079 2006-01-09  Bruno Haible  <bruno@clisp.org>
48080
48081         * build-aux/javacomp.sh.in: New file, moved from lib/.
48082         * modules/javacomp-script (Files): Update.
48083         (configure.ac): Add AC_CONFIG_FILES invocation.
48084         (EXTRA_DIST): Remove variable.
48085
48086         * build-aux/javaexec.sh.in: New file, moved from lib/.
48087         * modules/javaexec (Files): Update.
48088         (configure.ac): Add AC_CONFIG_FILES invocation.
48089         (EXTRA_DIST): Remove javaexec.sh.in.
48090
48091         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48092         * modules/csharpcomp-script (Files): Update.
48093         (configure.ac): Add AC_CONFIG_FILES invocation.
48094         (EXTRA_DIST): Remove variable.
48095
48096         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48097         * modules/csharpexec (Files): Update.
48098         (configure.ac): Add AC_CONFIG_FILES invocation.
48099         (EXTRA_DIST): Remove csharpexec.sh.in.
48100
48101 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48102
48103         Sync from coreutils.
48104
48105         Add POSIX ACL support
48106         * lib/acl.h (copy_acl, set_acl): Add declarations.
48107         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48108         systems other than Linux.
48109         (chmod_or_fchmod): New function: use fchmod when possible,
48110         and chmod otherwise.
48111         (file_has_acl): Add a POSIX ACL implementation, with a
48112         Linux-specific subcase.
48113         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48114         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48115         acls are unsupported.
48116         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48117         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48118         are unsupported.
48119
48120 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48121
48122         Sync from coreutils.
48123         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48124
48125 2006-01-07  Bruno Haible  <bruno@clisp.org>
48126
48127         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48128         gl_EARLY.
48129
48130 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48131
48132         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48133         Problem reported for Mingw by Mark Junker.
48134
48135 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48136
48137         * README: Gnulib normally doesn't generate a tarball.
48138
48139 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48140
48141         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48142         long int, not int, for nanosecond counts, so that people who are
48143         used to POSIX struct timespec won't be surprised.  Reported by Jim
48144         Meyering.
48145
48146 2005-12-28  Bruno Haible  <bruno@clisp.org>
48147
48148         * build-aux/config.rpath: Update from GNU gettext.
48149
48150 2005-12-16  Jim Meyering  <jim@meyering.net>
48151
48152         * modules/fprintftime: New module.
48153         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48154
48155 2005-12-16  Jim Meyering  <jim@meyering.net>
48156
48157         * m4/fprintftime.m4: New file.
48158
48159 2005-12-16  Jim Meyering  <jim@meyering.net>
48160
48161         * lib/fprintftime.c, lib/fprintftime.h: New files.
48162
48163 2005-12-15  Simon Josefsson  <jas@extundo.com>
48164
48165         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48166         new m4/socklen.m4.
48167
48168 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48169
48170         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48171         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48172
48173 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48174
48175         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48176         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48177         struct uparams is valid. Fall back to the default values if it is
48178         not.
48179
48180 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48181
48182         * modules/argp (Files): Add argp-pin.c
48183         (Depends-on): dirname
48184         (lib_SOURCES): Add argp-pin.c
48185
48186 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48187
48188         * m4/argp.m4:  Check if program_invocation_name and
48189         program_invocation_short_name are declared and define appropriate
48190         macros if they are not.
48191
48192 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48193
48194         * lib/argp-help.c (__argp_base_name): New function
48195         (__argp_short_program_name): Rewrite using __argp_base_name
48196         * lib/argp-namefrob.h: Define program_invocation_name and
48197         program_invocation_short_name if requested
48198         (__argp_base_name): Add prototype
48199         * lib/argp-parse.c (argp_def): Use gettext wrappers
48200         (argp_default_parser): Use __argp_base_name
48201         * lib/argp-pin.c: New file. Defines program_invocation_name and
48202         program_invocation_short_name on systems that lack them.
48203
48204 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48207         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48208         porting problem reported by Georg Schwarz in
48209         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48210
48211 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48212
48213         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48214         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48215         porting problem reported by Georg Schwarz in
48216         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48217
48218 2005-12-05  Bruno Haible  <bruno@clisp.org>
48219
48220         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48221         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48222         Reported by Mark Junker <mjscod@gmx.de>.
48223
48224 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48225
48226         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48227         Use implementation from Albert Chin, with some
48228         comments/corrections by Stepan Kasal and myself.
48229
48230 2005-12-02  Bruno Haible  <bruno@clisp.org>
48231
48232         * gnulib-tool (func_import): Accept GPLed build tool modules when
48233         --lgpl is given.
48234         * modules/csharpcomp-script: New file.
48235         * modules/csharpcomp: Depend on it.
48236         * modules/javacomp-script: New file.
48237         * modules/javacomp: Depend on it.
48238         Suggested by Simon Josefsson.
48239
48240 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48243         statement, to work around an HP-UX 10.20 compiler bug reported by
48244         Peter O'Gorman.
48245
48246 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         * modules/savedir (Depends-on): Add openat.
48249
48250 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48251
48252         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48253         (uintmax_t) [defined uintmax_t]: Do not declare.
48254         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48255         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48256         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48257         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48258         sake of portability to weird hosts that C allows (though we don't
48259         know of any practical examples).
48260
48261         * lib/savedir.h (fdsavedir): New decl.
48262         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48263         contains most of the former guts of savedir.
48264         (savedir): Use savedirstream.
48265         Include "openat.h".
48266
48267 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48268
48269         * modules/obstack (Files): Add m4/ulonglong.m4.
48270         Problem reported by Davide Angelocola.
48271
48272 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48273
48274         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48275         coreutils no longer futzes with rounding modes.
48276
48277 2005-11-14  Jim Meyering  <jim@meyering.net>
48278
48279         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48280         replacement of mkstemp.
48281
48282 2005-11-10  Simon Josefsson  <jas@extundo.com>
48283
48284         * lib/readline.c: Remove EOL.
48285
48286 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48287
48288         * modules/gethrxtime (Depends-on): Add gettime.
48289
48290 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48291
48292         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48293         or gettimeofday; no longer needed.
48294
48295 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48296
48297         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48298         time business.
48299         (gethrxtime) [! (HAVE_NANOUPTIME
48300         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48301         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48302         our own approximation.
48303
48304 2005-11-08  Eric Blake  <ebb9@byu.net>
48305
48306         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48307
48308 2005-11-08  Eric Blake  <ebb9@byu.net>
48309
48310         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48311
48312 2005-11-04  Bruno Haible  <bruno@clisp.org>
48313
48314         * gnulib-tool: Implement --update mode.
48315
48316 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         Fix porting problem reported by Theodoros V. Kalamatianos.
48319         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48320         Don't assume that futimes failing means we must fail.
48321
48322 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48325         variables to suggest the intended function of the PATH_MAX check.
48326
48327 2005-10-30  Kean Johnston  <jkj@sco.com>
48328
48329         Trivial changes to support SCO systems.
48330         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48331         as PATH_MAX.
48332         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48333         where __ptr is null when no I/O is pending.
48334
48335 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48336
48337         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48338         leave errno alone.  Problem reported by Dmitry V. Levin.
48339
48340 2005-10-28  Simon Josefsson  <jas@extundo.com>
48341
48342         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48343         Test more.
48344
48345         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48346
48347         * modules/md2, modules/md2-tests: New files.
48348
48349 2005-10-28  Simon Josefsson  <jas@extundo.com>
48350
48351         * m4/inet_ntop.m4: More tests.
48352
48353         * m4/gc-md2.m4, md2.m4: New file.
48354
48355 2005-10-28  Simon Josefsson  <jas@extundo.com>
48356
48357         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48358         "restrict" keywords, as per POSIX.  Protect the function
48359         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48360         Don't use K&R prototypes.  Check the sprintf return values.
48361         Re-define EAFNOSUPPORT if not present.  Indent.
48362
48363         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48364         suggested by Bruno Haible <bruno@clisp.org>.
48365
48366         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48367
48368         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48369
48370         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48371         libgcrypt).
48372
48373         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48374
48375         * lib/md2.h, lib/md2.c: New files.
48376
48377 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48378
48379         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48380         errno alone.  Problem reported by Frederic Jolliton.
48381
48382 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48383
48384         * modules/verify (License): Change from GPL to LGPL.  This is a
48385         tiny module and there are apparently near-equivalents that are
48386         under the BSD license.
48387
48388 2005-10-24  Simon Josefsson  <jas@extundo.com>
48389
48390         * modules/sha1: Relicense to LGPL.
48391
48392 2005-10-24  Simon Josefsson  <jas@extundo.com>
48393
48394         * lib/md4.h: Shrink buffer size, now that we changed the type.
48395
48396 2005-10-23  Simon Josefsson  <jas@extundo.com>
48397
48398         * gnulib-tool (func_import): Fix --tests-base.
48399
48400 2005-10-22  Simon Josefsson  <jas@extundo.com>
48401
48402         * modules/arcfour (Depends-on): Need stdint.
48403
48404 2005-10-22  Simon Josefsson  <jas@extundo.com>
48405
48406         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48407         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48408
48409 2005-10-22  Simon Josefsson  <jas@extundo.com>
48410
48411         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48412         suggested by Bruno Haible <bruno@clisp.org>.
48413
48414 2005-10-22  Simon Josefsson  <jas@extundo.com>
48415
48416         * lib/crc.h: Include stddef.h, for size_t.
48417
48418 2005-10-22  Simon Josefsson  <jas@extundo.com>
48419
48420         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48421         arcfour_context struct (simplify test vector testing in GNU
48422         Shishi).
48423
48424 2005-10-21  Simon Josefsson  <jas@extundo.com>
48425
48426         * modules/des, modules/des-tests: New files.
48427
48428         * modules/gc-des, modules/gc-des-tests: New files.
48429
48430         * tests/test-des.c, tests/test-gc-des.c: New file.
48431
48432 2005-10-21  Simon Josefsson  <jas@extundo.com>
48433
48434         * modules/arctwo, modules/arctwo-tests: New files.
48435
48436         * tests/test-arctwo.c: New file.
48437
48438         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48439
48440         * tests/test-gc-arctwo.c: New file.
48441
48442 2005-10-21  Simon Josefsson  <jas@extundo.com>
48443
48444         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48445         Bruno Haible <bruno@clisp.org>.
48446
48447         * m4/gc-des.m4: New file.
48448
48449 2005-10-21  Simon Josefsson  <jas@extundo.com>
48450
48451         * m4/arctwo.m4: New file.
48452
48453         * m4/gc-arctwo.m4: New file.
48454
48455 2005-10-21  Simon Josefsson  <jas@extundo.com>
48456
48457         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48458         block.
48459
48460 2005-10-21  Simon Josefsson  <jas@extundo.com>
48461
48462         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48463         <bruno@clisp.org>.
48464
48465         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48466
48467         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48468         Bruno Haible <bruno@clisp.org>.
48469
48470         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48471         <bruno@clisp.org>.
48472
48473 2005-10-21  Simon Josefsson  <jas@extundo.com>
48474
48475         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48476
48477 2005-10-21  Simon Josefsson  <jas@extundo.com>
48478
48479         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48480
48481 2005-10-21  Simon Josefsson  <jas@extundo.com>
48482
48483         * lib/des.h, lib/des.c: New files.
48484
48485         * lib/gc-gnulib.c: Support DES.c
48486
48487 2005-10-21  Simon Josefsson  <jas@extundo.com>
48488
48489         * lib/arctwo.h, lib/arctwo.c: New files.
48490
48491         * lib/gc-gnulib.c: Support ARCTWO.
48492
48493 2005-10-21  Simon Josefsson  <jas@extundo.com>
48494
48495         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48496         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48497
48498 2005-10-21  Simon Josefsson  <jas@extundo.com>
48499
48500         * gnulib-tool (func_import, func_create_testdir): Define automake
48501         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48502         Makefile.am snippet),
48503         suggested by Bruno Haible <bruno@clisp.org>.
48504
48505         * modules/gc (Makefile.am): Use it.
48506
48507 2005-10-21  Bruno Haible  <bruno@clisp.org>
48508
48509         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48510         patch.
48511
48512 2005-10-19  Simon Josefsson  <jas@extundo.com>
48513
48514         * tests/test-gc-rijndael.c: New file.
48515
48516         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48517
48518 2005-10-19  Simon Josefsson  <jas@extundo.com>
48519
48520         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48521         interface too.
48522
48523 2005-10-19  Simon Josefsson  <jas@extundo.com>
48524
48525         * tests/test-gc-arcfour.c: New file.
48526
48527         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48528
48529 2005-10-19  Simon Josefsson  <jas@extundo.com>
48530
48531         * modules/gc-md4, modules/gc-md4-tests: New file.
48532
48533         * tests/test-gc-md4.c: New file.
48534
48535 2005-10-19  Simon Josefsson  <jas@extundo.com>
48536
48537         * m4/gc-md4.m4: New file.
48538
48539 2005-10-19  Simon Josefsson  <jas@extundo.com>
48540
48541         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48542         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48543         <kasal@ucw.cz>.
48544
48545 2005-10-19  Simon Josefsson  <jas@extundo.com>
48546
48547         * m4/gc-arcfour.m4: New file.
48548
48549         * m4/gc-rijndael.m4: New file.
48550
48551 2005-10-19  Simon Josefsson  <jas@extundo.com>
48552
48553         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48554
48555 2005-10-19  Simon Josefsson  <jas@extundo.com>
48556
48557         * lib/gc-gnulib.c: Support ARCFOUR.
48558
48559 2005-10-19  Simon Josefsson  <jas@extundo.com>
48560
48561         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48562         support.
48563
48564         * lib/gc.h: Add ECB enum type.
48565
48566         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48567
48568 2005-10-18  Simon Josefsson  <jas@extundo.com>
48569
48570         * tests/test-md5.c: New file.
48571
48572         * modules/md5-tests: New file.
48573
48574 2005-10-18  Simon Josefsson  <jas@extundo.com>
48575
48576         * tests/test-md4.c: New file.
48577
48578         * modules/md4, modules/md4-tests: New files.
48579
48580 2005-10-18  Simon Josefsson  <jas@extundo.com>
48581
48582         * m4/md4.m4: New file.
48583
48584 2005-10-18  Simon Josefsson  <jas@extundo.com>
48585
48586         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48587
48588 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48589
48590         * gnulib-tool (func_create_testdir): Omit the second check whether
48591         BUILT_SOURCES in nonempty.
48592
48593 2005-10-17  Simon Josefsson  <jas@extundo.com>
48594
48595         * tests/test-rijndael.c: New file.
48596
48597 2005-10-17  Simon Josefsson  <jas@extundo.com>
48598
48599         * modules/sha1: Depend on stdint instead of md5.
48600
48601         * modules/md5: Depend on stdint, remove uint32_t.
48602
48603 2005-10-17  Simon Josefsson  <jas@extundo.com>
48604
48605         * modules/gc-sha1-tests: New file.
48606
48607         * tests/test-gc-sha1.c: New file.
48608
48609 2005-10-17  Simon Josefsson  <jas@extundo.com>
48610
48611         * m4/md5.m4: Remove call to uint32_t.m4.
48612
48613 2005-10-17  Simon Josefsson  <jas@extundo.com>
48614
48615         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48616
48617         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48618         md5.h.
48619
48620         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48621
48622         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48623
48624 2005-10-17  Simon Josefsson  <jas@extundo.com>
48625
48626         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48627
48628 2005-10-17  Simon Josefsson  <jas@extundo.com>
48629
48630         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48631
48632 2005-10-17  Simon Josefsson  <jas@extundo.com>
48633
48634         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48635
48636         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48637
48638 2005-10-17  Bruno Haible  <bruno@clisp.org>
48639
48640         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48641         that it can also be used in a test.
48642
48643 2005-10-16  Bruno Haible  <bruno@clisp.org>
48644
48645         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48646         TESTS_ENVIRONMENT, so that individual tests can augment it.
48647
48648         * gnulib-tool (func_create_testdir): Use an intermediate target for
48649         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48650         macros, like $(ALLOCA_H), which cannot be passed through the command
48651         line.
48652
48653 2005-10-15  Simon Josefsson  <jas@extundo.com>
48654
48655         * modules/rijndael-tests: New file.
48656
48657         * modules/rijndael: New file.
48658
48659 2005-10-15  Simon Josefsson  <jas@extundo.com>
48660
48661         * m4/rijndael.m4: New file.
48662
48663 2005-10-15  Simon Josefsson  <jas@extundo.com>
48664
48665         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48666
48667         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48668
48669 2005-10-14  Simon Josefsson  <jas@extundo.com>
48670
48671         * tests/test-arcfour.c: New file.
48672
48673         * modules/arcfour, modules/arcfour-tests: New files.
48674
48675 2005-10-14  Simon Josefsson  <jas@extundo.com>
48676
48677         * m4/arcfour.m4: New file.
48678
48679 2005-10-14  Simon Josefsson  <jas@extundo.com>
48680
48681         * lib/arcfour.h, lib/arcfour.c: New files.
48682
48683 2005-10-14  Roland McGrath  <roland@redhat.com>
48684
48685         Import from libc.  [BZ #1331]
48686         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48687         macro argument.
48688         Reported by Matej Vela <vela@debian.org>.
48689
48690 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48691
48692         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48693         include <wchar.h>; no longer needed.
48694
48695 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48698
48699 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48700         and  Ulrich Drepper  <drepper@redhat.com>
48701
48702         Import from libc.
48703         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48704         instead of inline stream orientation test and two separate
48705         function calls.  Pay no attention to USE_IN_LIBIO.
48706
48707 2005-10-13  Simon Josefsson  <jas@extundo.com>
48708
48709         * modules/gc-hmac-md5-tests: New file.
48710
48711         * tests/test-gc-hmac-sha1.c: New file.
48712
48713         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48714
48715         * modules/gc-hmac-md5-tests: New file.
48716
48717         * tests/test-gc-md5.c: New file.
48718
48719         * modules/gc-md5-tests: New file.
48720
48721 2005-10-13  Simon Josefsson  <jas@extundo.com>
48722
48723         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48724         Move memory allocation outside of loop.
48725
48726 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48727
48728         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48729         intermediate directory is in a read-only file system.  Problem
48730         reported by Eric Blake.
48731
48732 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48733
48734         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48735
48736 2005-10-12  Simon Josefsson  <jas@extundo.com>
48737
48738         * tests/test-hmac-sha1.c: New file.
48739
48740         * modules/hmac-sha1-tests: New file.
48741
48742         * modules/hmac-sha1: New file.
48743
48744 2005-10-12  Simon Josefsson  <jas@extundo.com>
48745
48746         * modules/gc-sha1: New file.
48747
48748 2005-10-12  Simon Josefsson  <jas@extundo.com>
48749
48750         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48751
48752         * tests/test-gc-pbkdf2-sha1.c: New file.
48753
48754 2005-10-12  Simon Josefsson  <jas@extundo.com>
48755
48756         * modules/gc-md5, modules/gc-hmac-md5: New files.
48757
48758         * modules/gc (Files): Remove md5, memxor and hmac files.
48759
48760 2005-10-12  Simon Josefsson  <jas@extundo.com>
48761
48762         * m4/gc-pbkdf2-sha1.m4: New file.
48763
48764         * m4/gc-hmac-sha1.m4: New file.
48765
48766         * m4/gc-sha1: New file.
48767
48768         * m4/hmac-sha1.m4: New file.
48769
48770 2005-10-12  Simon Josefsson  <jas@extundo.com>
48771
48772         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48773
48774         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48775
48776 2005-10-12  Simon Josefsson  <jas@extundo.com>
48777
48778         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48779         suggested by Bruno Haible <bruno@clisp.org>.
48780
48781 2005-10-12  Simon Josefsson  <jas@extundo.com>
48782
48783         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48784
48785 2005-10-12  Simon Josefsson  <jas@extundo.com>
48786
48787         * lib/gc-pbkdf2-sha1.c: New file.
48788
48789         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48790
48791 2005-10-12  Simon Josefsson  <jas@extundo.com>
48792
48793         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48794
48795         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48796
48797 2005-10-12  Simon Josefsson  <jas@extundo.com>
48798
48799         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48800         GC_USE_HMAC_MD5, respectively.
48801
48802         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48803         (gc_md5): Fix typo.
48804
48805         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48806
48807         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48808
48809         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48810
48811 2005-10-12  Bruno Haible  <bruno@clisp.org>
48812
48813         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48814         Reported by Stepan Kasal <kasal@ucw.cz>.
48815
48816 2005-10-11  Simon Josefsson  <jas@extundo.com>
48817
48818         * tests/test-crc.c: New file.
48819
48820         * modules/crc, modules/crc-tests: New files.
48821
48822 2005-10-11  Simon Josefsson  <jas@extundo.com>
48823
48824         * m4/crc.m4: New file.
48825
48826 2005-10-11  Simon Josefsson  <jas@extundo.com>
48827
48828         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48829
48830         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48831
48832         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48833
48834 2005-10-11  Simon Josefsson  <jas@extundo.com>
48835
48836         * lib/crc.h, lib/crc.c: New files.
48837
48838         * lib/gc.h (gc_hash_buffer): Add doc.
48839
48840 2005-10-11  Bruno Haible  <bruno@clisp.org>
48841
48842         * modules/c-strcasestr: New file.
48843         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48844
48845 2005-10-11  Bruno Haible  <bruno@clisp.org>
48846
48847         * modules/c-strcase: New file.
48848         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48849
48850 2005-10-11  Bruno Haible  <bruno@clisp.org>
48851
48852         * lib/strcasecmp.c: Include limits.h.
48853         (strcasecmp): Avoid integer overflow on exotic platforms.
48854         * lib/strncasecmp.c: Include limits.h.
48855         (strncasecmp): Avoid integer overflow on exotic platforms.
48856         Reported by Paul Eggert.
48857
48858 2005-10-11  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/c-strcasestr.h: New file, from GNU gettext.
48861         * lib/c-strcasestr.c: New file, from GNU gettext.
48862
48863 2005-10-11  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/c-strcase.h: New file, from GNU gettext.
48866         * lib/c-strcasecmp.c: New file, from GNU gettext.
48867         * lib/c-strncasecmp.c: New file, from GNU gettext.
48868
48869 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48870
48871         * modules/mempcpy (License): GPL -> LGPL.
48872         * modules/strchrnul (License): Likewise.
48873         * modules/sysexits (License): Likewise.
48874
48875 2005-10-08  Simon Josefsson  <jas@extundo.com>
48876
48877         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48878
48879 2005-10-07  Simon Josefsson  <jas@extundo.com>
48880
48881         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48882
48883 2005-10-06  Simon Josefsson  <jas@extundo.com>
48884
48885         * tests/test-hmac-md5.c: New file.
48886
48887         * modules/hmac-md5-tests: New file.
48888
48889         * modules/hmac-md5: New file.
48890
48891 2005-10-06  Simon Josefsson  <jas@extundo.com>
48892
48893         * m4/hmac-md5.m4: New file.
48894
48895         * m4/memxor.m4: Require gl_C_RESTRICT.
48896
48897 2005-10-06  Simon Josefsson  <jas@extundo.com>
48898
48899         * lib/memxor.c (memxor): Avoid casts and warnings.
48900
48901 2005-10-06  Simon Josefsson  <jas@extundo.com>
48902
48903         * lib/hmac-md5.c: New file.
48904
48905         * lib/hmac.h: New file.
48906
48907 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48908
48909         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48910         promotes to int, not unsigned int, to catch the AIX 5.3
48911         compiler bug.
48912
48913 2005-10-05  Simon Josefsson  <jas@extundo.com>
48914
48915         * modules/memxor: New file.
48916
48917         * modules/iconv (Files): Move config.rpath to havelib, it is used
48918         there.
48919
48920         * modules/havelib (Files): Add config.rpath.
48921
48922 2005-10-05  Simon Josefsson  <jas@extundo.com>
48923
48924         * m4/memxor.m4: New file.
48925
48926 2005-10-05  Simon Josefsson  <jas@extundo.com>
48927
48928         * lib/memxor.c (memxor): Fix compiler error.
48929
48930         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48931         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48932
48933         * lib/memxor.h, lib/memxor.c: New files.
48934
48935         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48936         we assume all systems have it, suggested by Jim Meyering
48937         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48938         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48939         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48940         same reasons.
48941
48942 2005-10-05  Simon Josefsson  <jas@extundo.com>
48943
48944         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48945
48946 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48947
48948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48949         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48950         needed, since the source code now assumes these .h files.
48951
48952 2005-10-05  Derek Price  <derek@ximbiot.com>
48953
48954         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48955
48956 2005-10-05  Bruno Haible  <bruno@clisp.org>
48957
48958         * modules/stdint (License): Change to LGPL.
48959
48960 2005-10-04  Simon Josefsson  <jas@extundo.com>
48961
48962         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48963         D. Baushke" <mdb@gnu.org>.
48964
48965 2005-10-04  Bruno Haible  <bruno@clisp.org>
48966
48967         * lib/verify.h (verify_true): Provide alternative definition for C++.
48968
48969 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48970
48971         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48972         (SSIZE_MAX): New macro, if not already defined.
48973         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48974         than 2 GiB.
48975
48976 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48977
48978         Sync from coreutils.
48979         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48980         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48981         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48982         ULLONG_MAX doesn't work with 2.7.2.1.
48983
48984 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48985
48986         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48987         From Ben Pfaff.
48988
48989         * modules/exclude (Depends-on): Depend on verify.
48990         * modules/strtoimax (Depends-on): Likewise.
48991         * modules/utimecmp (Depends-on): Likewise.
48992
48993 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48994
48995         * lib/exclude.c: Include verify.h.
48996         (verify): Remove.  All callers changed to use verify.h's version.
48997         * lib/strtoimax.c: Likewise.
48998         * lib/utimecmp.c: Likewis.e
48999
49000         Sync from coreutils.
49001         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49002         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49003         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49004         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49005         bother returning ENOSYS if settimeofday or stime fails; just let
49006         them return whatever errno they want to return.
49007         * lib/utimens.c: Include unistd.h, for dup2.
49008         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49009         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49010
49011 2005-10-02  Jim Meyering  <jim@meyering.net>
49012
49013         Sync from coreutils.
49014         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49015         from glibc-2.2.5 that fails for read-only files.
49016
49017 2005-10-02  Jim Meyering  <jim@meyering.net>
49018
49019         Sync from coreutils.
49020         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49021         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49022         `#if HAVE_CONFIG_H'.
49023         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49024         Remove AT_FDCWD test.
49025         Do not consume the fd unless successful.
49026         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49027         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49028         block, so that we don't even try to compile it if settimeofday is
49029         available.  This works around a compilation failure on OSF1 V5.1,
49030         due to stime requiring a `long int*' while tv_sec is `int'.
49031
49032 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49033
49034         Sync from coreutils.
49035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49036         against `yes', rather than just testing for nonempty.
49037
49038 2005-10-01  Simon Josefsson  <jas@extundo.com>
49039
49040         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49041         and Darwin.
49042
49043         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49044         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49045         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49046         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49047         Check if struct addrinfo is declared.
49048
49049 2005-10-01  Simon Josefsson  <jas@extundo.com>
49050
49051         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49052         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49053         AI_* and EAI_* definitions.  Protect function declarations.
49054
49055 2005-10-01  Jim Meyering  <jim@meyering.net>
49056
49057         Sync from coreutils.
49058
49059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49060         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49061         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
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  Jim Meyering  <jim@meyering.net>
49066
49067         Sync from coreutils.
49068         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49069         in the inet and nsl libraries.  Required on Solaris 5.7.
49070
49071 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49072
49073         * lib/getdelim.c (getdelim): Remove unused variables.
49074
49075 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49078         so that the code works even with ancient cpp.  Portability problem
49079         with GCC 2.7.2.1 reported by Thomas M.Ott.
49080
49081 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49082
49083         * modules/regex (Depends-on): Add strcase.
49084
49085         * modules/gethostname (Licence): Change from GPL to LGPL, since
49086         gethostname.c is a trivial implementation of a standard library
49087         function.
49088         * modules/poll (License): Change from GPL to LGPL, since it's
49089         derived from LGPL code.
49090
49091 2005-09-27  Jim Meyering  <jim@meyering.net>
49092
49093         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49094         HAVE_CONFIG_H.
49095
49096         * lib/intprops.h (signed_type_or_expr__): Define.
49097         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49098         for unsigned types.
49099
49100 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49101
49102         * lib/verify.h (verify_expr): Remove, replacing with:
49103         (verify_true): New macro that returns true instead of void.
49104         (verify_type__): Remove.
49105         (verify): Use verify_true rather than verify_type__.
49106
49107 2005-09-26  Bruno Haible  <bruno@clisp.org>
49108
49109         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49110         is necessary.
49111         (lib_SOURCES): Remove mbchar.c.
49112         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49113         (Files): Add m4/mbrtowc.m4.
49114         * modules/mbiter: Likewise.
49115         * modules/mbuiter: Likewise.
49116
49117 2005-09-26  Bruno Haible  <bruno@clisp.org>
49118
49119         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49120         compile mbchar.c if they are not both present.
49121         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49122         * m4/mbiter.m4 (gl_MBITER): Likewise.
49123         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49124         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49125         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49126
49127 2005-09-25  Jim Meyering  <jim@meyering.net>
49128
49129         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49130         also uses socklen_t.
49131
49132 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49133
49134         * lib/utimens.c (ENOSYS): Define if not already defined.
49135         (futimens): Support having a null PATH if the file descriptor
49136         is nonnegative.
49137
49138         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49139         Remove.
49140         (__attribute): Define to empty unless GCC 3.1 or later.
49141         This works around a core dump on OpenBSD 3.4, which has GCC
49142         2.95.3, which dumps core when given __attribute__(()).  It also
49143         simplifies other tests, since we really don't want to bother with
49144         worrying about which ancient version of GCC supported what.
49145         Original problem reported by Yoann Vandoorselaere, with part of
49146         the fix suggested by Derek Price.
49147
49148 2005-09-24  Jim Meyering  <jim@meyering.net>
49149
49150         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49151         so we can once again use a positive bitfield width of 1 -- now we
49152         don't have to explain why we were using a bitfield width of 2.
49153
49154 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49155
49156         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49157         and similarly for the other external symbols.  Problem reported
49158         by James Gallager.
49159
49160         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49161         bug reported by Jim Meyering.
49162
49163         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49165         not needed, since socklen is a prerequisite module.
49166
49167 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49168
49169         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49170         Problem reported by Eric Blake.
49171         (getaddrinfo): Initialize se so that it's not garbage.
49172         Redo internal storage allocation so that it doesn't make unportable
49173         assumptions about alignment.
49174         Fix a memory leak.
49175
49176         * lib/utimens.c (futimens): Use futimesat if available.
49177         Prefer it to futimes since it doesn't have the futimes bug.
49178
49179         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49180         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49181         Instead, declare a function that returns a pointer to an array,
49182         and use verify_type__ to declare the size of the array.
49183         Problem and germ of a solution reported by Bruno Haible.
49184         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49185         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49186
49187 2005-09-23  Jim Meyering  <jim@meyering.net>
49188
49189         Sync from coreutils.
49190         Correct build failure (socklen_t not defined) on at least
49191         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49192         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49193
49194 2005-09-23  Jim Meyering  <jim@meyering.net>
49195
49196         * modules/getaddrinfo (Depends-on): Add socklen.
49197
49198 2005-09-23  Bruno Haible  <bruno@clisp.org>
49199
49200         * tests/test-verify.c: New file.
49201
49202 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49203
49204         Sync from coreutils.
49205
49206         * modules/argmatch (Depends-on): Add verify.
49207         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49208         unistd-safer.
49209         * modules/save-cwd (Depends-on): Likewise.
49210
49211         * modules/openat (Files): Add lib/openat-die.c.
49212         (Depends-on): Remove error, exitfail.
49213         Add dirname.
49214
49215         * modules/verify: New file.
49216         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49217         with "verify" module.
49218
49219 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49220
49221         Sync from coreutils.
49222
49223         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49224         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49225         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49226         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49227         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49228         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49229         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49230         Don't bother checking for string.h, stdlib.h, unistd.h.
49231         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49232         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49233         module's job.
49234         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49235         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49236
49237         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49238         (gl_GETDATE): Use it.
49239
49240         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49241
49242 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49243
49244         Sync from coreutils.
49245
49246         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49247         stat-time.h.
49248         * lib/argmatch.h: Include verify.h
49249         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49250         (ARGMATCH_ASSERT): Remove; unused.
49251         * lib/canonicalize.c: Assume STDC_HEADERS.
49252         * lib/exclude.c: Include "strcase.h".
49253         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49254         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49255         and stdio-safer.h.
49256         (getusershell): Call fopen, not fopen_safer.
49257         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49258         Do not include unistd-safer.h.
49259         (save_cwd): Don't call fd_safer; no longer needed
49260         now that we include fcntl--.h.
49261
49262         * lib/getdate.y (relative_time): New type.
49263         (RELATIVE_TIME_0): New constant.
49264         (parser_control): Use relative_time instead of doing it ourselves.
49265         (%union): Add new relative_time rel member.
49266         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49267         Now typeless.
49268         (relunit, relunit_snumber): Now of type rel.
49269         (zone, rel, relunit, get_date): Adjust to above changes.
49270
49271         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49272         Do not include unistd-safer.h.
49273         (getloadavg): Don't call fd_safer; no longer needed
49274         now that we include fcntl--.h.
49275
49276         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49277         (make_dir_parents): Treat ENOSYS like EEXIST.
49278
49279         Improve quality of diagnostics on restore_cwd failure.
49280         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49281         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49282         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49283         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49284         each time through the loop.  Do not diagnose restore_cwd failure;
49285         that is the caller's job (and perhaps the caller does not care).
49286
49287         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49288         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49289         If the file already exists but is not a directory, don't bother
49290         to try to make its parents.
49291         Close potential file descriptor leak if we can't chdir("/") (!).
49292         Don't always return true if chdir($PWD) fails; return true only
49293         if the requested action was done successfully (except for the
49294         chdir($PWD)).
49295         Don't log final directory unless we actually made it.
49296         Refactor to avoid duplicate code to fix up permissions.
49297         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49298
49299         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49300         to make it a bit faster and (I hope) clearer.
49301         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49302         Fix bug in formats like %2N.
49303
49304         * lib/verify.h: New file.
49305
49306 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49307
49308         Sync from coreutils.
49309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49310
49311 2005-09-22  Jim Meyering  <jim@meyering.net>
49312
49313         Sync from coreutils.
49314
49315         * m4/lstat.m4 (gl_FUNC_LSTAT):
49316         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49317         Remove obsolete comment.
49318         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49319         * m4/xstrtod.m4: Likewise.
49320
49321         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49322
49323 2005-09-22  Jim Meyering  <jim@meyering.net>
49324
49325         Sync from coreutils.
49326
49327         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49328
49329         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49330         the .tm_year member, since otherwise gcc-4.0 would now warn about
49331         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49332
49333         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49334         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49335
49336         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49337         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49338         when run in a time zone for which daylight savings time is in effect
49339         for the starting date.
49340
49341         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49342         stop us from restricting permissions of just-created absolute-named
49343         directories.
49344         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49345         to restore initial working directory.
49346         * lib/mkdir-p.c (make_dir_parents): New parameter:
49347         different_working_dir, to tell caller if/when we change the working
49348         directory and are unable to return to the initial one.
49349         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49350         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49351         `return false'.  This fixes a bug introduced on 2004-07-30.
49352
49353         * lib/openat.c (fdopendir): Be sure to close the supplied
49354         file descriptor before returning.  This makes our replacement
49355         implementation a little closer to Solaris's, where fdopendir
49356         ties the file descriptor to the returned DIR* pointer.
49357         * lib/openat.c (unlinkat): New function.
49358         * lib/openat.h (unlinkat): Add prototype.
49359         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49360         (openat_restore_fail): Rename from openat_restore_die.
49361         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49362
49363         Provide an alternative to exiting immediately upon save_cwd or
49364         restore_cwd failure.  Now, an application can arrange e.g.,
49365         to perform a longjump in that case.
49366         * lib/openat.c: Include dirname.h.
49367         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49368         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49369         and openat_restore_die rather than calling error directly.
49370         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49371
49372         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49373         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49374         define.
49375
49376         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49377         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49378                             int utc, int nanoseconds);
49379         Background:
49380         date should not have to allocate a megabyte of virtual memory to
49381         handle a format argument like +%1048575T.  When implemented with
49382         strftime, it must allocate such a buffer, use strftime to fill it
49383         in, print it, then free it.
49384         With fprintftime, it simply prints everything and exits.
49385         With no need for memory allocation, that's one fewer way to fail.
49386         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49387         optional field width, not before, so we accept %9:z, not %:9z.
49388         (my_strftime): Be sure to use L_('x') for literals.
49389
49390         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49391         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49392         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49393         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49394         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49395         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49396         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49397         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49398         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49399         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49400         * lib/xgethostname.c, lib/xreadlink.c:
49401         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49402
49403         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49404         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49405         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49406         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49407         and don't include <sys/file.h>).
49408
49409 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49410
49411         Sync from coreutils.
49412
49413         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49414         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49415         [!LDAV_DONE]: Avoid unused variable warning.
49416
49417 2005-09-21  Bruno Haible  <bruno@clisp.org>
49418
49419         * lib/unicodeio.h (unicode_to_mb): New declaration.
49420
49421 2005-09-20  Derek Price  <derek@ximbiot.com>
49422
49423         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49424         getaddrinfo.h.
49425
49426 2005-09-20  Bruno Haible  <bruno@clisp.org>
49427
49428         * gnulib-tool: Remove trailing slashes from the values specified for
49429         --source-base, --m4-base, --tests-base, --aux-dir.
49430         Suggested by Simon Josefsson <jas@extundo.com>.
49431
49432 2005-09-20  Bruno Haible  <bruno@clisp.org>
49433
49434         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49435         func_modules_to_filelist, func_import, func_create_testdir): Make all
49436         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49437         change when gnulib-tool is invoked in a different locale.
49438
49439 2005-09-19  Simon Josefsson  <jas@extundo.com>
49440
49441         * m4/socklen.m4: Fix typo.
49442
49443 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49444
49445         Use a consistent style for including <config.h>.
49446         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49447         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49448         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49449         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49450         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49451         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49452         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49453         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49454         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49455         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49456         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49457         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49458         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49459         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49460         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49461         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49462         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49463         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49464         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49465         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49466         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49467         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49468         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49469         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49470         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49471         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49472         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49473         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49474         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49475         lib/xstrtoumax.c, lib/yesno.c:
49476         Standardize inclusion of config.h.
49477         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49478         lib/inttostr.h:  Removed inclusion of config.h from header files.
49479         * lib/inttostr.c:  Adjusted in-tree users.
49480         * lib/timespec.h: Remove superfluous warning to include config.h.
49481         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49482         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49483         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49484         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49485         config.h with HAVE_CONFIG_H.
49486
49487 2005-09-19  Jim Meyering  <jim@meyering.net>
49488
49489         * modules/pathmax (License): Change to LGPL.
49490
49491 2005-09-19  Derek Price  <derek@ximbiot.com>
49492
49493         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49494
49495 2005-09-19  Bruno Haible  <bruno@clisp.org>
49496
49497         * gnulib-tool (import): Provide default for --tests-base.
49498
49499 2005-09-19  Bruno Haible  <bruno@clisp.org>
49500
49501         * doc/quote.texi: New file, extracted from gnulib.texi.
49502         * doc/ctime.texi: New file, extracted from gnulib.texi.
49503         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49504         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49505         * doc/gnulib.texi: Include them.
49506
49507 2005-09-18  Bruno Haible  <bruno@clisp.org>
49508
49509         Portability fix.
49510         * gnulib-tool (func_readlink): New function.
49511         (func_ln_if_changed): Use it.
49512
49513 2005-09-18  Bruno Haible  <bruno@clisp.org>
49514
49515         * gnulib-tool: Support --with-tests also with --import.
49516         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49517         (func_import): Use variables $testsbase and $inctests. Emit a
49518         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49519         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49520         SUBDIRS += $testsdir.
49521         (func_create_testdir): Update.
49522
49523 2005-09-18  Bruno Haible  <bruno@clisp.org>
49524
49525         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49526         instead of $dry_run.
49527         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49528         (func_ln_if_changed): Don't handle dry-run here.
49529         (func_import): In dry-run mode, detect more precisely which actions
49530         would be performed, and don't use "...ing" verbs.
49531
49532 2005-09-18  Bruno Haible  <bruno@clisp.org>
49533
49534         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49535         (func_import): Use join on two temporary files instead of three nested
49536         loops, in order to determine which files are new or old.
49537
49538 2005-09-18  Bruno Haible  <bruno@clisp.org>
49539
49540         * gnulib-tool (func_import): Comment out code that spits out the
49541         new files with --dry-run.
49542
49543 2005-09-18  Bruno Haible  <bruno@clisp.org>
49544
49545         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49546
49547 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49548
49549         * lib/stat-time.h: New file.
49550         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49551         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49552         in a different way.
49553         (timespec_cmp): New function.
49554         * lib/utimecmp.c: Include stat-time.h.
49555         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49556         members exist, not on the obsolescent ST_MTIM_NSEC.
49557         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49558
49559 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49560
49561         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49562
49563 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49564
49565         * MODULES.html.sh (File system functions): Add stat-time.
49566         * modules/stat-time: New file.
49567         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49568         is now done in a different way, by the stat-time module.
49569         * modules/utimecmp (Depends-on): Add stat-time.
49570
49571 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49572
49573         * m4/st_mtim.m4: Remove.  Superseded by...
49574         * m4/stat-time.m4: New file.
49575         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49576         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49577
49578 2005-09-15  Derek Price  <derek@ximbiot.com>
49579
49580         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49581
49582 2005-09-15  Derek Price  <derek@ximbiot.com>
49583
49584         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49585         * lib/regex_internal.c: Ditto, using this...
49586         (__GNUC_PREREQ): ...new macro.
49587         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49588         using...
49589         (__GNUC_PREREQ): ...this new macro.
49590
49591         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49592
49593 2005-09-15  Derek Price  <derek@ximbiot.com>
49594             Paul Eggert  <eggert@cs.ucla.edu>
49595
49596         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49597         changes, consolidating in...
49598         * lib/regex_internal.h: ...this file.
49599
49600 2005-09-13  Jim Meyering  <jim@meyering.net>
49601
49602         * lib/canon-host.c: Filter through gnu indent and reword comments
49603         slightly.
49604         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49605
49606 2005-09-13  Derek Price  <derek@ximbiot.com>
49607
49608         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49609         failure.
49610         Reported by Jim Meyering  <jim@meyering.net>.
49611
49612 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49613
49614         * lib/base64.c: Typo.
49615         (base64_encode): Put b64str in initialized data section.
49616
49617 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49618
49619         Merge glibc and coreutils changes into gnulib, plus a few
49620         extra fixes.
49621         * lib/md5.c: Use #error rather than a string.
49622         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49623         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49624         (__attribute__): Define to empty for non recent-GCC.
49625         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49626         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49627         Renamed from their non-__ counterparts, with new macros replacing
49628         them if not _LIBC.  Add __THROW attribute.
49629         (rol): Remove.
49630         (struct md5_ctx): Align buffer if using GCC.
49631         * lib/sha1.h (struct sha1_ctx): Likewise.
49632         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49633         The old name was backwards.
49634         (NOTSWAP): Remove; not used.
49635         (rol): New macro, moved here from md5.h.
49636         (sha1_process_block): Remove a FIXME that doesn't make sense.
49637
49638 2005-09-12  Derek Price  <derek@ximbiot.com>
49639
49640         Return usable errors from canon-host.
49641         * lib/canon-host.h: New file.
49642         * lib/canon-host.c (canon_host): Wrap...
49643         (canon_host_r): ...this new function, which now relies exclusively on
49644         getaddrinfo.
49645         (ch_strerror): New function.
49646         (last_cherror): New global.
49647         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49648         interface.
49649         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49650         void *.
49651         (freeaddrinfo): Free ai->ai_canonname when set.
49652
49653 2005-09-12  Derek Price  <derek@ximbiot.com>
49654
49655         Make canon-host require getaddrinfo.
49656         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49657         AC_LIBSOURCE canon-host.h.  Call...
49658         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49659         gl_GETADDRINFO.
49660         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49661
49662 2005-09-12  Derek Price  <derek@ximbiot.com>
49663
49664         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49665         LGPL.
49666         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49667
49668 2005-09-12  Derek Price  <derek@ximbiot.com>
49669
49670         * lib/gai_strerror.c: Include config.h when available.  Include
49671         getaddrinfo.h before other headers to test interface.
49672         Reported by Larry Jones <lawrence.jones@ugs.com>.
49673
49674 2005-09-12  Derek Price  <derek@ximbiot.com>
49675             Paul Eggert  <eggert@cs.ucla.edu>
49676
49677         * modules/glob (Files): Add glob-libc.h.
49678
49679 2005-09-12  Derek Price  <derek@ximbiot.com>
49680             Paul Eggert  <eggert@cs.ucla.edu>
49681
49682         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49683         glob_.h, glob-libc.h.
49684         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49685
49686 2005-09-12  Derek Price  <derek@ximbiot.com>
49687             Paul Eggert  <eggert@cs.ucla.edu>
49688
49689         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49690         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49691         protecting things that should be done only in gnulib contexts.
49692         * lib/glob_.h: New file, containing only the glob things needed for
49693         gnulib.
49694         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49695         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49696         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49697         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49698         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49699         and to respect the namespace rules better.
49700
49701 2005-09-08  Simon Josefsson  <jas@extundo.com>
49702
49703         * modules/socklen: New file.
49704
49705 2005-09-08  Simon Josefsson  <jas@extundo.com>
49706
49707         * m4/socklen.m4: New file.
49708
49709 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49710
49711         * modules/utimens (Files): Add m4/utimbuf.m4, since
49712         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49713         Reported by Sergey Poznyakoff.
49714
49715 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49716
49717         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49718         definitions, since that's the preferred style in glibc.
49719         Fix a minor spacing issue, and update copyright notice to match
49720         glibc's.
49721
49722 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49725
49726 2005-09-06  Simon Josefsson  <jas@extundo.com>
49727
49728         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49729         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49730
49731 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49734         warning.
49735
49736 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49737
49738         * config/srclist.txt: Add glibc bug 1302.
49739
49740 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49741
49742         Change bitset word type from unsigned int to unsigned long int,
49743         as this has better performance on typical 64-bit hosts.
49744         Port bitset code to hosts with unusual word sizes.
49745         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49746         (build_collating_symbol):
49747         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49748         argument is a bitset.  This is merely a style issue, but it makes
49749         it clearer that an entire array is expected.
49750         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49751         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49752         Port to the case where bitset_word is not the same as unsigned int.
49753         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49754         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49755         Likewise.
49756         * lib/regexec.c (check_dst_limits_calc_pos_1,
49757         check_subexp_matching_top):
49758         (build_trtable, group_nodes_into_DFAstates):
49759         Likewise.
49760         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49761         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49762         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49763         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49764         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49765         * lib/regcomp.c (optimize_subexps, lower_subexp):
49766         Work even if bitset_word has holes in its bitwise representation.
49767         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49768         * lib/regexec.c (check_dst_limits_calc_pos_1,
49769         check_subexp_matching_top):
49770         Likewise.
49771         * lib/regex_internal.c (re_string_reconstruct):
49772         Don't assume UCHAR_MAX == 255.
49773         * lib/regex_internal.h (bitset_set_all): Likewise.
49774         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49775         All uses changed.
49776         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49777         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49778         All uses changed.
49779         (BITSET_WORD_MAX): New macro.
49780         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49781         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49782         (bitset_empty, bitset_copy):
49783         Prefer sizeof (bitset) to multiplying it out ourselves.
49784         (bitset_not_merge): Remove; unused.
49785         (bitset_contain): Return bool, not unsigned int with one bit on.
49786         All callers changed.
49787         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49788         alignment than re_node_set; do this by defining a new internal
49789         type struct dests_alloc and using it to allocate memory.
49790
49791 2005-09-05  Bruno Haible  <bruno@clisp.org>
49792
49793         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49794         links.
49795
49796 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49797
49798         * modules/size_max (Makefile.am): Add size_max.h
49799
49800 2005-09-04  Derek Price  <derek@ximbiot.com>
49801
49802         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49803
49804 2005-09-03  Simon Josefsson  <jas@extundo.com>
49805
49806         * gnulib-tool: Fix typo.
49807
49808 2005-09-03  Simon Josefsson  <jas@extundo.com>
49809
49810         * config/srclist.txt: Add glibc bug 1293.
49811
49812 2005-09-03  Derek Price  <derek@ximbiot.com>
49813
49814         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49815         From Larry Jones <lawrence.jones@ugs.com>.
49816
49817 2005-09-02  Simon Josefsson  <jas@extundo.com>
49818
49819         * modules/socklen: New file.
49820
49821 2005-09-02  Simon Josefsson  <jas@extundo.com>
49822
49823         * modules/havelib: New module.
49824
49825         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49826         Use havelib.
49827
49828 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49829
49830         Check for arithmetic overflow when calculating sizes, to prevent
49831         some buffer-overflow issues.  These patches are conservative, in the
49832         sense that when I couldn't determine whether an overflow was possible,
49833         I inserted a run-time check.
49834         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49835         macros.
49836         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49837         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49838         (re_xnrealloc, re_x2nrealloc): New inline functions.
49839         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49840         parse_bracket_exp):
49841         (build_equiv_class, build_charclass): Check for arithmetic overflow
49842         in size expression calculations.
49843         * lib/regex_internal.c (re_string_realloc_buffers):
49844         (build_wcs_upper_buffer, re_node_set_add_intersect):
49845         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49846         (re_dfa_add_node, register_state): Likewise.
49847         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49848         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49849         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49850         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49851
49852 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49853
49854         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49855         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49856
49857 2005-09-02  Bruno Haible  <bruno@clisp.org>
49858
49859         Support for lib vs. lib64 distinction on biarch platforms.
49860         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49861         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49862         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49863
49864 2005-09-02  Bruno Haible  <bruno@clisp.org>
49865
49866         * gnulib-tool (import): In the other first-use case, provide defaults
49867         as well.
49868
49869 2005-09-02  Bruno Haible  <bruno@clisp.org>
49870
49871         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49872         patches not yet found in the latest gettext release.
49873
49874 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49875
49876         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49877         to avoid a collision with bits/local_lim.h in glibc.
49878         All uses changed.  Problem reported by Dmitry V. Levin in
49879         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49880
49881         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49882         bugs in int versus size_t comparisons.
49883         (re_string_context_at): Fix bug where the code assumed that
49884         Idx is signed.
49885
49886         Use bool where appropriate.
49887         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49888         All callers changed.
49889         (calc_eclosure_iter): Likewise, for ROOT arg.
49890         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49891         (build_charclass_op): Likewise, for NON_MATCH arg.
49892         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49893         (re_string_construct_common): Likewise, for ICASE arg.
49894         * lib/regexec.c (re_search_2_stub, re_search_stub):
49895         Likewise, for RET_LEN arg.
49896         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49897         (set_regs): Likewise, for FL_BACKTRACK arg.
49898         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49899         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49900         (calc_eclosure_iter, parse_bracket_exp):
49901         Use bool for internal variables that are booleans.
49902         * lib/regexec.c (re_search_internal, check_matching,
49903         proceed_next_node):
49904         (set_regs, build_sifted_states, sift_states_bkref):
49905         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49906         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49907         (find_collation_sequence_value):
49908         Likewise.
49909         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49910         (re_node_set_compare):
49911         Return bool, not int. All callers changed.
49912         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49913         (build_trtable, check_node_accept): Likewise.
49914         * lib/regex_internal.h: Include stdbool.h.
49915
49916         Fix bugs uncovered when converting to bool.
49917         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49918         failure instead of charging ahead blindly.
49919         * lib/regex_internal.c (register_state): Likewise.
49920         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49921         for freeing internal storage.
49922         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49923         bitset pieces used as boolean, to avoid undefined behavior
49924         on hosts that do int overflow checking.
49925
49926 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49927
49928         * config/srclist.txt: Add glibc bugs 1285-1287.
49929
49930 2005-09-01  Jim Meyering  <jim@meyering.net>
49931
49932         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49933         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49934         Require gl_STAT_MACROS, too.
49935
49936 2005-09-01  Bruno Haible  <bruno@clisp.org>
49937
49938         * gnulib-tool (import): In the first-use case, provide defaults.
49939
49940 2005-09-01  Bruno Haible  <bruno@clisp.org>
49941
49942         * gnulib-tool (func_import): Remove the .tmp files.
49943
49944 2005-09-01  Bruno Haible  <bruno@clisp.org>
49945
49946         * gnulib-tool (func_import): Fix handling of symbolic links.
49947
49948 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49949
49950         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49951         old glibc regex code mishandles strings longer than 2**31 bytes.
49952         This patch fixes this when the regex code is used in gnulib
49953         (i.e., outside glibc).
49954
49955         This patch should not affect the use of the regex code inside
49956         glibc.  No doubt this problem also needs to be handled for glibc
49957         as well, but the result will be an incompatible change to the
49958         glibc ABI, and the old ABI will have to be supported too.  That
49959         can be the the subject for another patch.
49960
49961         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49962         governing whether the rest of this patch is active.  By default,
49963         the macro is disabled and the patch has no effect.
49964         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49965         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49966         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49967         (re_match_2, re_set_registers): Use the new types.
49968         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49969         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49970         New macros.
49971         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49972         (re_string_context_at, bin_tree_t, re_dfastate_t):
49973         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49974         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49975         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49976         (re_string_char_size_at, re_string_wchar_at):
49977         (re_string_elem_size_at):
49978         Use the new types and macros to port to 64-bit hosts.
49979         Use unsigned types for internal values, so that the code
49980         mostly works even for arrays larger than SSIZE_MAX.
49981         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49982         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49983         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49984         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49985         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49986         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49987         (calc_inveclosure, parse_dup_op, build_range_exp):
49988         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49989         (fetch_number, create_token_tree, mark_opt_subexp):
49990         Likewise.
49991         * lib/regex_internal.c (re_string_construct_common,
49992         create_ci_newstate):
49993         (create_cd_newstate, re_string_allocate, re_string_construct):
49994         (re_string_realloc_buffers, build_wcs_upper_buffer):
49995         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49996         (re_string_reconstruct, re_string_peek_byte_case):
49997         (re_string_fetch_byte_case, re_string_context_at):
49998         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49999         (re_node_set_init_copy, re_node_set_add_intersect):
50000         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50001         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50002         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50003         (re_acquire_state, re_acquire_state_context, register_state):
50004         Likewise.
50005         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50006         search_cur_bkref_entry):
50007         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50008         (re_search_internal, re_search_2_stub, re_search_stub)
50009         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50010         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50011         (update_cur_sifted_state, check_dst_limits):
50012         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50013         (check_subexp_limits, sift_states_bkref, merge_state_array):
50014         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50015         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50016         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50017         (expand_bkref_cache, check_node_accept_bytes):
50018         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50019         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50020         (acquire_init_state_context, check_halt_node_context):
50021         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50022         (sift_states_backward, clean_state_log_if_needed):
50023         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50024         (find_recover_state, transit_state_sb, transit_state_mb):
50025         (transit_state_bkref, build_trtable, match_ctx_clean):
50026         Likewise.
50027         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50028         to work around an assumption that REG_MISSING is negative.
50029
50030         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50031         (seek_collating_symbol_entry) [defined _LIBC]:
50032         (lookup_collation_sequence_value) [defined _LIBC]:
50033         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50034         Use prototypes rather than old-style function definitions.
50035         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50036         (transit_state_sb) [0]:
50037         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50038
50039         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50040         rm_eo.
50041
50042         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50043         (optimize_subexps, lower_subexp):
50044         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50045         since the signed shift might overflow.  Use 1u<<31 instead.
50046         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50047         Likewise.
50048         * lib/regexec.c (check_dst_limits_calc_pos_1,
50049         check_subexp_matching_top): Likewise.
50050
50051         * lib/regcomp.c (optimize_subexps, lower_subexp):
50052         Use CHAR_BIT rather than 8, for clarity.
50053         * lib/regexec.c (check_dst_limits_calc_pos_1):
50054         (check_subexp_matching_top): Likewise.
50055         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50056         have to worry about portability issues when shifting it left.
50057         Remove no-longer-needed test for table_size > 0.
50058         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50059         in a word, as the resulting behavior is undefined.
50060         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50061         in one case, a <= should have been an <, and in another case the
50062         whole test was missing.
50063         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50064         the standard name CHAR_BIT.
50065         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50066         this is not true on one's complement and signed-magnitude hosts.
50067
50068         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50069         next_last_offset.
50070         (struct re_dfa_t): Remove unused member states_alloc.
50071         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50072
50073 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50074
50075         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50076         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50077         and large-file glibc and in 32-bit large-file Solaris.
50078
50079 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50080
50081         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50082         lengths fit in regoff_t; this isn't true if regoff_t is the same
50083         width as size_t.
50084         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50085         (= START + RANGE) instead of RANGE.  This avoids overflow
50086         problems when regoff_t is the same width as size_t.
50087         All callers changed.
50088         (re_search_2_stub): Check for overflow when adding the
50089         sizes of the two strings.
50090         (re_search_stub): Check for overflow when adding START
50091         to RANGE; if it occurs, substitute the extreme value.
50092
50093 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50094
50095         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50096
50097 2005-08-31  Jim Meyering  <jim@meyering.net>
50098
50099         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50100         a pointer-to-const.
50101         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50102         (register_state): Likewise.
50103         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50104         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50105         (group_nodes_into_DFAstates): Likewise.
50106
50107 2005-08-31  Jim Meyering  <jim@meyering.net>
50108
50109         * check-module: Add a FIXME comment.
50110
50111 2005-08-31  Eric Blake  <ebb9@byu.net>
50112
50113         * modules/unistd-safer (Files): Add unistd--.h.
50114         * modules/stdio-safer (Files): Add stdio--.h.
50115
50116 2005-08-31  Derek Price  <derek@ximbiot.com>
50117
50118         * lib/getdelim.c (getdelim): Return EOF on EOF.
50119         Reported by Larry Jones <lawrence.jones@ugs.com>.
50120
50121 2005-08-31  Bruno Haible  <bruno@clisp.org>
50122
50123         Avoid unnecessary diffs in the generated lib/Makefile.am.
50124         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50125         the generated files.
50126         (func_import): Don't set cmd.
50127
50128 2005-08-31  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/strstr.c: Include <stddef.h>, for NULL.
50131         * lib/strcasestr.c: Likewise.
50132         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50133
50134 2005-08-31  Bruno Haible  <bruno@clisp.org>
50135
50136         * gnulib-tool: New option --macro-prefix.
50137         (func_import): Use macro_prefix.
50138         (import): Handle option --macro-prefix.
50139
50140 2005-08-31  Bruno Haible  <bruno@clisp.org>
50141
50142         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50143         Also use new variables cached_lgpl, cached_libtool.
50144
50145 2005-08-31  Bruno Haible  <bruno@clisp.org>
50146
50147         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50148         always instantiating them.
50149
50150 2005-08-31  Bruno Haible  <bruno@clisp.org>
50151
50152         * gnulib-tool (func_import): Read the previous cached settings
50153         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50154         earlier added by gnulib but are now dropped. Warn when a gnulib file
50155         overwrites a non-gnulib file.
50156
50157 2005-08-31  Bruno Haible  <bruno@clisp.org>
50158
50159         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50160         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50161         projects that don't keep autogenerated files in CVS. Put into
50162         actioncmd only the specified modules, not the transitive closure.
50163
50164 2005-08-31  Bruno Haible  <bruno@clisp.org>
50165
50166         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50167         Create directories that shall be filled.
50168         (import): Don't look for gl_* macros in configure.ac. Recurse across
50169         all directories containing a gnulib-cache.m4 files, if meaningful.
50170
50171 2005-08-31  Bruno Haible  <bruno@clisp.org>
50172
50173         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50174         (import): Set seen_libtool when we see gl_LIBTOOL.
50175
50176 2005-08-31  Bruno Haible  <bruno@clisp.org>
50177
50178         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50179         declaration macro definitions from generated gnulib.m4.
50180
50181 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50182
50183         * lib/iconvme.h: Add prototype for iconv_alloc.
50184
50185 2005-08-29  Simon Josefsson  <jas@extundo.com>
50186
50187         * lib/iconvme.c: Fix errno.
50188
50189 2005-08-29  Bruno Haible  <bruno@clisp.org>
50190
50191         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50192         that it works when the directory contains spaces.
50193
50194 2005-08-29  Bruno Haible  <bruno@clisp.org>
50195
50196         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50197
50198 2005-08-29  Bruno Haible  <bruno@clisp.org>
50199
50200         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50201         Emit more advice.
50202
50203 2005-08-29  Bruno Haible  <bruno@clisp.org>
50204         and Stepan Kasal  <kasal@ucw.cz>
50205
50206         * check-module: If more parameters are given, check each of them
50207         separately; add more exceptions, as noted by Jim Meyering.
50208         (check_module): New procedure.
50209         (%exempt_header): Now contains all exceptions.
50210
50211 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50212
50213         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50214
50215 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50216
50217         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50218
50219 2005-08-28  Bruno Haible  <bruno@clisp.org>
50220
50221         * m4/gnulib-tool.m4: New file.
50222
50223 2005-08-27  Jim Meyering  <jim@meyering.net>
50224
50225         * modules/unistd-safer (Files): Add pipe-safer.c.
50226         * modules/fcntl-safer (Files): Add creat-safer.c.
50227
50228 2005-08-27  Jim Meyering  <jim@meyering.net>
50229
50230         * m4/stdlib-safer.m4: New file.  From coreutils.
50231         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50232         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50233         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50234         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50235         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50236
50237 2005-08-27  Jim Meyering  <jim@meyering.net>
50238
50239         * lib/fopen-safer.c: Merge minor changes from coreutils.
50240         * lib/dup-safer.c: Likewise.
50241         * lib/fd-safer.c: Likewise.
50242
50243         Merge from coreutils.
50244         * lib/stdio--.h: New file.
50245         * lib/stdlib--.h: New file.
50246         * lib/mkstemp-safer.c: New file.
50247
50248         GNU tar needs these.
50249         * lib/pipe-safer.c: New file.
50250         * lib/creat-safer.c: New file.
50251         * lib/fcntl--.h (creat): Define to creat_safer.
50252         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50253         * lib/unistd--.h (pipe): Define to pipe_safer.
50254         * lib/unistd-safer.h: Declare pipe_safer.
50255
50256 2005-08-26  Simon Josefsson  <jas@extundo.com>
50257
50258         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50259         Haible <bruno@clisp.org>.
50260
50261 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         * lib/regex_internal.h: Remove all references to
50264         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50265         or better.
50266         (bitset_not, bitset_merge, bitset_not_merge):
50267         (bitset_mask, re_string_allocate, re_string_construct):
50268         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50269         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50270         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50271         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50272         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50273         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50274         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50275         (re_acquire_state_context):
50276         Remove unnecessary forward decls.
50277         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50278         Put __attribute at function definition,
50279         now that the function decl has been removed.
50280         * lib/regex_internal.c (re_string_peek_byte_case):
50281         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50282         Likewise.
50283
50284 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50285
50286         * m4/regex.m4: Add AC_PREREQ(2.50).
50287         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50288
50289 2005-08-25  Simon Josefsson  <jas@extundo.com>
50290
50291         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50292         __fsetlocking.
50293
50294 2005-08-25  Simon Josefsson  <jas@extundo.com>
50295
50296         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50297         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50298         GLIBC specific code.
50299
50300 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50301
50302         Make regex safe for g++.  This fixes one real bug (an "err"
50303         that should have been "*err").  g++ problem reported by
50304         Sam Steingold.
50305         * lib/regex_internal.h (re_calloc): New macro, consistent with
50306         re_malloc etc.  All callers of calloc changed to use re_calloc.
50307         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50308         not int.  All callers changed.
50309         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50310         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50311         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50312         (find_recover_state): Change "err" to "*err"; this fixes what
50313         appears to be a real bug.
50314         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50315         versus int.
50316
50317 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50318
50319         * modules/regex (Depends-on): Add malloc, since the code
50320         assumes that !malloc(0) means failure.
50321
50322 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50323
50324         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50325
50326         alloca modernization/simplification for regex.
50327         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50328         needs to be at the start of the file, and can be moved into
50329         regex_internal.h and simplified.
50330         * lib/regex_internal.h: Include <alloca.h>.
50331         (__libc_use_alloca) [!defined _LIBC]: New macro.
50332         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50333         now works outside glibc.
50334
50335 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50336
50337         * config/srclist.txt: Add glibc bugs 1241, 1245.
50338
50339 2005-08-25  Jim Meyering  <jim@meyering.net>
50340
50341         * lib/open-safer.c: Include <config.h>.
50342         Otherwise, we'd lose LARGEFILE support in any file using
50343         e.g. "fcntl--.h"
50344
50345 2005-08-25  Bruno Haible  <bruno@clisp.org>
50346
50347         * m4/minmax.m4: Require autoconf 2.52.
50348         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50349         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50350         alternatives of translit over the alphabet.
50351         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50352
50353 2005-08-24  Simon Josefsson  <jas@extundo.com>
50354
50355         * tests/test-getpass.c: New file.
50356
50357 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50358
50359         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50360         for GNU regex features.
50361
50362 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50363
50364         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50365         * lib/regex.h (regerror): Likewise.
50366
50367         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50368         requires this.  (The code never needed it.)
50369
50370         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50371         All uses of recently-renamed identifiers changed to use the new,
50372         POSIX-compliant names.  The code will build and run just fine
50373         without these changes, but it's better to eat our own dog food
50374         and use the standard-conforming names.
50375
50376         * lib/regex.h: Fix a multitude of POSIX name space violations.
50377         These changes have an effect only for programs that define
50378         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50379         do not change anything for programs compiled in the normal way.
50380         Also, there is no effect on the ABI.
50381
50382         (_REGEX_SOURCE): New macro.
50383         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50384         defined and _GNU_SOURCE is not; this fixes a name space violation.
50385
50386         Rename the following macros to obey POSIX requirements.
50387         The old names are still visible as macros if _REGEX_SOURCE is defined.
50388         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50389         RE_BACKSLASH_ESCAPE_IN_LISTS.
50390         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50391         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50392         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50393         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50394         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50395         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50396         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50397         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50398         (REG_INTERVALS): renamed from RE_INTERVALS.
50399         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50400         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50401         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50402         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50403         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50404         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50405         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50406         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50407         RE_UNMATCHED_RIGHT_PAREN_ORD.
50408         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50409         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50410         (REG_DEBUG): renamed from RE_DEBUG.
50411         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50412         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50413         unusual, since we can't clash with the POSIX REG_ICASE.
50414         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50415         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50416         (REG_NO_SUB): renamed from RE_NO_SUB.
50417         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50418         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50419         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50420         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50421         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50422         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50423         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50424         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50425         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50426         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50427         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50428         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50429         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50430         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50431         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50432         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50433         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50434         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50435         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50436         (REG_FIXED): Renamed from REGS_FIXED.
50437         (REG_NREGS): Renamed from RE_NREGS.
50438
50439         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50440         of other REG_* macros, since POSIX says the user is allowed to
50441         #undef these macros selectively.
50442
50443         (reg_errcode_t): Update comment stating what other tables need
50444         to be consistent.
50445
50446         Rename the following enum values to obey POSIX requirements.
50447         The old names are still visible as macros.
50448         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50449         is not defined, since GNU is supposed to be a superset of POSIX as
50450         much as possible, and since we want reg_errcode_t to be a signed
50451         type for implementation consistency.
50452         (_REG_NOERROR): Renamed from REG_NOERROR.
50453         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50454         (_REG_BADPAT): Renamed from REG_BADPAT.
50455         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50456         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50457         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50458         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50459         (_REG_EBRACK): Renamed from REG_EBRACK.
50460         (_REG_EPAREN): Renamed from REG_EPAREN.
50461         (_REG_EBRACE): Renamed from REG_EBRACE.
50462         (_REG_BADBR): Renamed from REG_BADBR.
50463         (_REG_ERANGE): Renamed from REG_ERANGE.
50464         (_REG_ESPACE): Renamed from REG_ESPACE.
50465         (_REG_BADRPT): Renamed from REG_BADRPT.
50466         (_REG_EEND): Renamed from REG_EEND.
50467         (_REG_ESIZE): Renamed from REG_ESIZE.
50468         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50469         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50470         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50471         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50472         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50473
50474         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50475         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50476         changed.  But support the old name if the new one is not defined
50477         and if _REGEX_SOURCE.
50478
50479         Change the following member names in struct re_pattern_buffer.
50480         The old names are still supported if !_REGEX_SOURCE.
50481         The new names are always supported, regardless of _REGEX_SOURCE.
50482         (re_buffer): Renamed from buffer.
50483         (re_allocated): Renamed from allocated.
50484         (re_used): Renamed from used.
50485         (re_syntax): Renamed from syntax.
50486         (re_fastmap): Renamed from fastmap.
50487         (re_translate): Renamed from translate.
50488         (re_can_be_null): Renamed from can_be_null.
50489         (re_regs_allocated): Renamed from regs_allocated.
50490         (re_fastmap_accurate): Renamed from fastmap_accurate.
50491         (re_no_sub): Renamed from no_sub.
50492         (re_not_bol): Renamed from not_bol.
50493         (re_not_eol): Renamed from not_eol.
50494         (re_newline_anchor): Renamed from newline_anchor.
50495
50496         Change the following member names in struct re_registers.
50497         The old names are still supported if !_REGEX_SOURCE.
50498         The new names are always supported, regardless of _REGEX_SOURCE.
50499         (rm_num_regs): Renamed from num_regs.
50500         (rm_start): Renamed from start.
50501         (rm_end): Renamed from end.
50502
50503         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50504         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50505         Prepend __ to parameter names.
50506
50507         Undo yesterday's changes.
50508
50509 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50510
50511         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50512         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50513         lib/regex.c.
50514
50515 2005-08-24  Jim Meyering  <jim@meyering.net>
50516
50517         Sync from coreutils.
50518         * m4/fcntl-safer.m4: New file.
50519
50520         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50521         and object files for this module.
50522
50523 2005-08-24  Jim Meyering  <jim@meyering.net>
50524
50525         Sync from coreutils.
50526         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50527
50528 2005-08-24  Jim Meyering  <jim@meyering.net>
50529
50530         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50531         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50532
50533 2005-08-24  Jim Meyering  <jim@meyering.net>
50534
50535         * modules/fcntl-safer: New module.
50536         * modules/fts (Depends-on): Add fcntl-safer.
50537         * MODULES.html.sh (File descriptor based Input/Output):
50538         Add fcntl-safer.
50539
50540 2005-08-24  Bruno Haible  <bruno@clisp.org>
50541
50542         Support for unit test modules.
50543         * modules/README: Mention tests modules.
50544         * modules/TEMPLATE-TESTS: New file.
50545         * gnulib-tool: New options --extract-tests-module, --with-tests and
50546         --tests-base (unused for the moment).
50547         (testsbase, inctests): New variables.
50548         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50549         (func_verify_module): Exclude TEMPLATE-TESTS.
50550         (func_verify_nontests_module, func_verify_tests_module): New functions.
50551         (func_get_dependencies): Add implicit dependency for tests modules.
50552         (func_get_tests_module): New function.
50553         (func_modules_transitive_closure): When --with-tests was specified,
50554         include the unit tests as well, unless explicitly avoided.
50555         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50556         (func_emit_tests_Makefile_am): New function.
50557         (func_create_testdir): When --with-tests was specified, emit a
50558         tests/ directory.
50559         * MODULES.html.sh (Future developments): Update.
50560
50561 2005-08-24  Bruno Haible  <bruno@clisp.org>
50562
50563         * modules/tls-tests: New file.
50564         * tests/test-tls.c: New file, from GNU gettext.
50565
50566 2005-08-24  Bruno Haible  <bruno@clisp.org>
50567
50568         * modules/lock-tests: New file.
50569         * tests/test-lock.c: New file, from GNU gettext.
50570
50571 2005-08-24  Bruno Haible  <bruno@clisp.org>
50572
50573         * lib/lock.h: Add multiple inclusion guard.
50574         * lib/tls.h: Add multiple inclusion guard.
50575
50576 2005-08-24  Bruno Haible  <bruno@clisp.org>
50577
50578         * gnulib-tool: Add support for the --aux-dir option to
50579         --create-testdir, --create-megatestdir, --test, --megatest.
50580         (func_create_testdir, func_create_megatestdir): Optionally emit a
50581         AC_CONFIG_AUX_DIR directive.
50582         (create-testdir, create-megatestdir, test, megatest): Provide a
50583         default value for $auxdir.
50584
50585 2005-08-24  Bruno Haible  <bruno@clisp.org>
50586
50587         * gnulib-tool (import): Use compound statement instead of subshell
50588         where possible.
50589
50590 2005-08-24  Bruno Haible  <bruno@clisp.org>
50591
50592         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50593
50594 2005-08-24  Bruno Haible  <bruno@clisp.org>
50595
50596         * gnulib-tool (func_version): Update.
50597
50598 2005-08-24  Bruno Haible  <bruno@clisp.org>
50599
50600         * gnulib-tool (func_import, func_create_testdir,
50601         func_create_megatestdir): Quote all autoconf macro arguments.
50602
50603 2005-08-24  Bruno Haible  <bruno@clisp.org>
50604
50605         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50606         option --force, because --force causes the aclocal.m4 of each
50607         subdirectory to be newer than the corresponding config.h.in.
50608
50609 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50612         All contents moved to gl_REGEX.
50613         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50614         assume that it does.
50615
50616 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50617
50618         * lib/regex.h (REG_NOSYS)
50619         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50620         Define, since POSIX requires it as of 2001.
50621         (_REG_ENOSYS)
50622         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50623         New private symbol, used to keep the enum signed in all cases.
50624         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50625         Youngman in
50626         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50627
50628         * lib/regex_internal.c (re_string_skip_chars, register_state):
50629         (calc_state_hash):
50630         Remove forward decls; no longer needed now that we use prototypes.
50631         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50632         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50633         (clean_state_log_if_needed): Likewise.
50634
50635 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         * config/srclist.txt: Add glibc bugs 1231-1233.
50638
50639 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50640
50641         Fix problems reported by Sam Steingold in
50642         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50643         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50644         assumed that reg_errcode_t is a signed type, which is not
50645         necessarily true if _XOPEN_SOURCE is not defined.
50646         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50647         since some compilers warn about it otherwise.
50648
50649 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50650
50651         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50652         (init_word_char, create_initial_state, duplicate_node_closure):
50653         (fetch_token, peek_token_bracket, build_range_exp):
50654         (build_collating_symbol): Remove forward decls; no longer needed
50655         now that we use prototypes.
50656
50657         * lib/regcomp.c:
50658         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50659         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50660         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50661         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50662         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50663         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50664         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50665         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50666         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50667         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50668         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50669         (build_charclass, build_charclass_op, fetch_number, create_tree):
50670         (create_token_tree, mark_opt_subexp, duplicate_tree):
50671         Use prototypes rather than old-style definitions.
50672
50673         * lib/regex_internal.c:
50674         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50675         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50676         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50677         (re_string_reconstruct, re_string_peek_byte_case):
50678         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50679         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50680         (re_node_set_init_copy, re_node_set_add_intersect):
50681         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50682         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50683         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50684         (re_acquire_state, re_acquire_state_context, register_state):
50685         (create_ci_newstate, create_cd_newstate, free_state):
50686         Likewise.
50687         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50688         re_search_2):
50689         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50690         (re_search_internal, prune_impossible_nodes):
50691         (acquire_init_state_context, check_matching, static):
50692         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50693         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50694         (update_regs, sift_states_backward, build_sifted_states):
50695         (clean_state_log_if_needed, merge_state_array):
50696         (update_cur_sifted_state, add_epsilon_src_nodes):
50697         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50698         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50699         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50700         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50701         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50702         (check_arrival, check_arrival_add_next_nodes):
50703         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50704         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50705         (check_node_accept_bytes, check_node_accept, extend_buffers):
50706         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50707         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50708         (sift_ctx_init):
50709         Likewise.
50710
50711         * lib/regex_internal.h:
50712         (re_string_allocate, re_string_construct, re_string_reconstruct):
50713         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50714         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50715         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50716         (re_string_context_at, re_string_peek_byte_case):
50717         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50718         is defined, since we now use prototypes always.
50719
50720         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50721         C89 or better.  All uses removed.
50722
50723 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50724
50725         * config/srclist.txt: Add glibc bugs 1220-1227.
50726
50727 2005-08-20  Jim Meyering  <jim@meyering.net>
50728
50729         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50730         of unused local, dfa.
50731
50732 2005-08-20  Bruno Haible  <bruno@clisp.org>
50733
50734         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50735
50736 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50739         (re_node_set_insert_last, re_dfa_add_node):
50740         Rename local variables to avoid GCC shadowing warnings.
50741
50742 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50743
50744         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50745         [defined lint]: Suppress bogus uninitialized-variable warnings.
50746
50747         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50748         and let the caller return REG_ESPACE if out of space.  This
50749         removes an uninitialied-variable warning with GCC 4.0.1, and also
50750         avoids taking the address of a local variable.  All callers
50751         changed.
50752
50753 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50754
50755         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50756         $LIBCSRC/posix/regexec.c.
50757         Add glibc bug 1217 for regcomp.c.
50758
50759 2005-08-19  Jim Meyering  <jim@meyering.net>
50760
50761         * lib/regexec.c (proceed_next_node): Redo local variables to
50762         avoid GCC shadowing warnings.
50763
50764 2005-08-18  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/strstr.c (strstr): Fix return value in multibyte case.
50767         * lib/strcasestr.c (strcasestr): Likewise.
50768
50769 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50770
50771         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50772
50773 2005-08-17  Jim Meyering  <jim@meyering.net>
50774
50775         Make the %s format (seconds since the epoch) work for a negative
50776         number and when used with a zero-padded field width, e.g. %015s.
50777
50778         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50779         label so that it precedes the code to set `digits'.  Otherwise,
50780         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50781         print `00-22'.  Now, it prints `-0022', as it should.
50782
50783 2005-08-17  Bruno Haible  <bruno@clisp.org>
50784
50785         * modules/strstr (Files): Add m4/mbrtowc.m4.
50786         (Depends-on): Add mbuiter.
50787
50788 2005-08-17  Bruno Haible  <bruno@clisp.org>
50789
50790         * modules/strcasestr: New file.
50791         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50792         strcasestr.
50793
50794 2005-08-17  Bruno Haible  <bruno@clisp.org>
50795
50796         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50797
50798 2005-08-17  Bruno Haible  <bruno@clisp.org>
50799
50800         * modules/mbuiter: New file.
50801         * MODULES.html.sh (Extended multibyte and wide character utilities):
50802         Add mbuiter.
50803
50804 2005-08-17  Bruno Haible  <bruno@clisp.org>
50805
50806         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50807         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50808
50809 2005-08-17  Bruno Haible  <bruno@clisp.org>
50810
50811         * m4/strcasestr.m4: New file.
50812
50813 2005-08-17  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50816         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50817
50818 2005-08-17  Bruno Haible  <bruno@clisp.org>
50819
50820         * lib/strcasestr.h: New file.
50821         * lib/strcasestr.c: New file.
50822
50823 2005-08-17  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/strcasecmp.c: Use mbuiter.h.
50826
50827 2005-08-17  Bruno Haible  <bruno@clisp.org>
50828
50829         * lib/mbuiter.h: New file.
50830
50831 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50832
50833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50834         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50835         and gl_GETOPT are both invoked via different paths (as happens
50836         with GNU tar CVS because it uses both argp and getopt), the former
50837         wins.
50838
50839 2005-08-16  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/tls: New file.
50842         * MODULES.html.sh (Multithreading): Add tls.
50843
50844 2005-08-16  Bruno Haible  <bruno@clisp.org>
50845
50846         * modules/strnlen1: New file.
50847         * MODULES.html.sh (String handling): Add strnlen1.
50848
50849 2005-08-16  Bruno Haible  <bruno@clisp.org>
50850
50851         * modules/strcase (Files): Add m4/mbrtowc.m4.
50852         (Depends-on): Add strnlen1, mbchar.
50853
50854 2005-08-16  Bruno Haible  <bruno@clisp.org>
50855
50856         * modules/mbiter: New file.
50857         * MODULES.html.sh (Extended multibyte and wide character utilities):
50858         Add mbiter.
50859
50860 2005-08-16  Bruno Haible  <bruno@clisp.org>
50861
50862         * modules/mbfile: New file.
50863         * MODULES.html.sh (Extended multibyte and wide character utilities):
50864         Add mbfile.
50865
50866 2005-08-16  Bruno Haible  <bruno@clisp.org>
50867
50868         * modules/mbchar: New file.
50869         * MODULES.html.sh (Extended multibyte and wide character utilities):
50870         New section.
50871
50872 2005-08-16  Bruno Haible  <bruno@clisp.org>
50873
50874         * m4/tls.m4: New file, from GNU gettext.
50875
50876 2005-08-16  Bruno Haible  <bruno@clisp.org>
50877
50878         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50879         always.
50880         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50881
50882 2005-08-16  Bruno Haible  <bruno@clisp.org>
50883
50884         * m4/mbiter.m4: New file.
50885
50886 2005-08-16  Bruno Haible  <bruno@clisp.org>
50887
50888         * m4/mbfile.m4: New file.
50889
50890 2005-08-16  Bruno Haible  <bruno@clisp.org>
50891
50892         * m4/mbchar.m4: New file.
50893
50894 2005-08-16  Bruno Haible  <bruno@clisp.org>
50895
50896         * lib/tls.h: New file, from GNU gettext.
50897         * lib/tls.c: New file, from GNU gettext.
50898
50899 2005-08-16  Bruno Haible  <bruno@clisp.org>
50900
50901         * lib/strnlen1.h: New file.
50902         * lib/strnlen1.c: New file.
50903
50904 2005-08-16  Bruno Haible  <bruno@clisp.org>
50905
50906         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50907         (mbi_init): Update.
50908         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50909         NUL byte, not after it.
50910
50911 2005-08-16  Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/strcase.h (strcasecmp): Add note in comments.
50914         * lib/strncasecmp.c: Use code from strcasecmp.c.
50915         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50916         (strcasecmp): Work correctly in multibyte locales.
50917
50918 2005-08-16  Bruno Haible  <bruno@clisp.org>
50919
50920         * lib/mbiter.h: New file.
50921
50922 2005-08-16  Bruno Haible  <bruno@clisp.org>
50923
50924         * lib/mbfile.h: New file.
50925
50926 2005-08-16  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/mbchar.h: New file.
50929         * lib/mbchar.c: New file.
50930
50931 2005-08-16  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50934         the valid ones. Makes the comparison operations transitive:
50935         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50936         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50937
50938 2005-08-15  Simon Josefsson  <jas@extundo.com>
50939
50940         * modules/ssize_t (License): Change to 'unlimited'.
50941
50942         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50943
50944 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50945
50946         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50947         Add comments for each pending glibc patch.
50948
50949 2005-08-15  Bruno Haible  <bruno@clisp.org>
50950
50951         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50952         __cplusplus is defined.
50953
50954 2005-08-14  Jim Meyering  <jim@meyering.net>
50955
50956         Sync from coreutils.
50957
50958         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50959         Use the hash-table-based cycle-detection code not just when
50960         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50961         Reported by James Youngman in
50962         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50963         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50964         FTS_TIGHT_CYCLE_CHECK.
50965         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50966         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50967         once again.
50968         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50969         * lib/fts.c (fd_safer): Remove decl.
50970         Include fcntl--.h rather than unistd-safer.h
50971         (fts_safe_changedir): Don't call fd_safer; no longer needed
50972         now that we include fcntl--.h.
50973
50974 2005-08-12  Simon Josefsson  <jas@extundo.com>
50975
50976         * modules/getndelim2: Use ssize_t module.
50977         * modules/getnline: Likewise.
50978         * modules/safe-read: Likewise.
50979         * modules/xreadlink: Likewise.
50980
50981         * modules/ssize_t: New file.
50982
50983 2005-08-12  Simon Josefsson  <jas@extundo.com>
50984
50985         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50986
50987 2005-08-12  Simon Josefsson  <jas@extundo.com>
50988
50989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50990         ssize_t.
50991
50992 2005-08-12  Simon Josefsson  <jas@extundo.com>
50993
50994         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50995         readline, getdelim and check_version.
50996         (Support for systems lacking ISO C 99: Sizes of integer types):
50997         Add size_max.
50998
50999 2005-08-12  Bruno Haible  <bruno@clisp.org>
51000
51001         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51002
51003 2005-08-11  Simon Josefsson  <jas@extundo.com>
51004
51005         * modules/readline: New file.
51006
51007         * modules/strnlen (Files): Add strnlen.h.
51008
51009 2005-08-11  Simon Josefsson  <jas@extundo.com>
51010
51011         * m4/readline.m4: New file.
51012
51013 2005-08-11  Simon Josefsson  <jas@extundo.com>
51014
51015         * lib/readline.h, readline.c: New file.
51016
51017 2005-08-11  Simon Josefsson  <jas@extundo.com>
51018
51019         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51020         gl_AVOID.
51021
51022 2005-08-11  Bruno Haible  <bruno@clisp.org>
51023
51024         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51025
51026 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51027
51028         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51029
51030 2005-08-10  Simon Josefsson  <jas@extundo.com>
51031
51032         * tests/test-iconvme.c: New file.
51033
51034 2005-08-10  Simon Josefsson  <jas@extundo.com>
51035
51036         * m4/strnlen.m4: New file.
51037
51038         * m4/strndup.m4: Don't check for strnlen declaration, done in
51039         strnlen.m4.
51040
51041 2005-08-10  Simon Josefsson  <jas@extundo.com>
51042
51043         * lib/strndup.c: Use strnlen.h.
51044
51045         * lib/strnlen.h: New file.
51046
51047 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51048
51049         * README: Typos.
51050
51051 2005-08-02  Simon Josefsson  <jas@extundo.com>
51052
51053         * modules/readline: New file.
51054
51055 2005-08-02  Simon Josefsson  <jas@extundo.com>
51056
51057         * modules/getdelim: New file.
51058
51059         * modules/getline: Rewrite, don't use getndelim2.
51060
51061 2005-08-02  Simon Josefsson  <jas@extundo.com>
51062
51063         * m4/getline.m4: Separate out getdelim stuff into separate module.
51064
51065         * m4/getdelim.m4: New file.
51066
51067 2005-08-02  Simon Josefsson  <jas@extundo.com>
51068
51069         * lib/getline.h, getline.c: Rewrite.
51070
51071         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51072
51073 2005-07-31  Bruno Haible  <bruno@clisp.org>
51074
51075         * lib/lock.h (gl_lock_initializer): New macro.
51076         (gl_lock_define_initialized): Use it.
51077         (gl_rwlock_initializer): New macro.
51078         (gl_rwlock_define_initialized): Use it.
51079         (gl_recursive_lock_initializer): New macro.
51080         (gl_recursive_lock_define_initialized): Use it.
51081
51082 2005-07-30  Karl Berry  <karl@gnu.org>
51083
51084         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51085         Report from Ben Pfaff, regarding getopt.
51086
51087 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51088
51089         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51090         normal way.
51091         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51092         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51093         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51094         (gl_GETOPT): Use the new macros.  Most of the implementation
51095         is moved to the new macros.  This is for programs like Emacs
51096         that don't want all the functionality of gl_GETOPT.
51097
51098 2005-07-26  Bruno Haible  <bruno@clisp.org>
51099
51100         * m4/lock.m4: Update from GNU gettext.
51101
51102 2005-07-26  Bruno Haible  <bruno@clisp.org>
51103
51104         * lib/lock.h: Update from GNU gettext.
51105         * lib/lock.c: Update from GNU gettext.
51106
51107 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51108
51109         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51110         obsolescent AC_TRY_RUN.  Include the default includes files, for
51111         'exit'.
51112
51113 2005-07-24  Bruno Haible  <bruno@clisp.org>
51114
51115         * modules/visibility: New file.
51116         * MODULES.html.sh (Misc): Add visibility.
51117
51118 2005-07-24  Bruno Haible  <bruno@clisp.org>
51119
51120         * m4/visibility.m4: New file.
51121
51122 2005-07-24  Bruno Haible  <bruno@clisp.org>
51123
51124         * doc/visibility.texi: New file.
51125
51126 2005-07-22  Bruno Haible  <bruno@clisp.org>
51127
51128         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51129         $(ALLOCA_H), redundant through BUILT_SOURCES.
51130         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51131         redundant through BUILT_SOURCES.
51132         * modules/byteswap (Makefile.am): Remove explicit dependency on
51133         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51134         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51135         $(FNMATCH_H), redundant through BUILT_SOURCES.
51136         * modules/getopt (Makefile.am): Remove explicit dependency on
51137         $(GETOPT_H), redundant through BUILT_SOURCES.
51138         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51139         redundant through BUILT_SOURCES.
51140         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51141         redundant through BUILT_SOURCES.
51142         * modules/stdbool (Makefile.am): Remove explicit dependency on
51143         $(STDBOOL_H), redundant through BUILT_SOURCES.
51144         * modules/stdint (Makefile.am): Remove explicit dependency on
51145         $(STDINT_H), redundant through BUILT_SOURCES.
51146         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51147         Remove explicit dependency on $(SYSEXITS_H).
51148         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51149
51150 2005-07-18  Simon Josefsson  <jas@extundo.com>
51151
51152         * lib/check-version.c (check_version): Accept identical versions too.
51153
51154 2005-07-18  Bruno Haible  <bruno@clisp.org>
51155
51156         * modules/lock: New file.
51157         * MODULES.html.sh (Multithreading): New section.
51158
51159 2005-07-18  Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/lock.m4: New file, from GNU gettext.
51162
51163 2005-07-18  Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/lock.h: New file, from GNU gettext.
51166         * lib/lock.c: New file, from GNU gettext.
51167
51168 2005-07-18  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/lock.h (gl_once_t): New type.
51171         (gl_once_define, gl_once): New macros.
51172         * lib/lock.c (fresh_once): New variable.
51173         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51174         functions.
51175
51176 2005-07-16  Simon Josefsson  <jas@extundo.com>
51177
51178         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51179         workaround, suggested by Bruno.
51180
51181 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51182
51183         * modules/xalloc (Depends-on): Add xalloc-die.
51184         * modules/xvasprintf (Depends-on): Add xalloc-die.
51185
51186 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51187
51188         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51189         with a minor change.
51190
51191 2005-07-15  Bruno Haible  <bruno@clisp.org>
51192
51193         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51194         When using lib/poll.c, define poll as rpl_poll.
51195
51196 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51197
51198         * modules/argp (Depends-on): Remove unlocked-io.
51199
51200 2005-07-14  Derek Price  <derek@ximbiot.com>
51201
51202         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51203         for glob symlink bug.
51204
51205 2005-07-14  Bruno Haible  <bruno@clisp.org>
51206
51207         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51208         Instead, test for *_unlocked function declarations directly.
51209
51210 2005-07-11  Simon Josefsson  <jas@extundo.com>
51211
51212         * modules/size_max: New file.
51213
51214         * modules/xsize: Depend on size_max module for size_max.m4.
51215
51216 2005-07-11  Simon Josefsson  <jas@extundo.com>
51217
51218         * lib/size_max.h: New file.
51219
51220 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51221
51222         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51223         copyright symbol and the year.
51224         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51225         (version_etc_va): Use parameterized copyright notice.
51226         Reword to conform to the current GNU coding standards.
51227
51228 2005-07-11  Karl Berry  <karl@gnu.org>
51229
51230         * doc/gnulib.texi (Quoting): new node.
51231         (Initial import): more info, from Patrice.
51232
51233 2005-07-11  Bruno Haible  <bruno@clisp.org>
51234
51235         * gnulib-tool (func_usage): Document option --avoid.
51236         (Command line options): Handle --avoid.
51237         (func_acceptable): New function.
51238         (func_modules_transitive_closure): Use it.
51239
51240 2005-07-11  Bruno Haible  <bruno@clisp.org>
51241
51242         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51243         Reported by Jim Meyering.
51244
51245 2005-07-10  Bruno Haible  <bruno@clisp.org>
51246
51247         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51248         Needed when size_t is smaller than 'unsigned int'.
51249         Reported by Paul Eggert.
51250
51251 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51252
51253         * modules/argp (Depends-on): Add unlocked-io
51254
51255 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51256
51257         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51258         block of defines.
51259
51260 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51261
51262         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51263         fix now.
51264
51265 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51266         and Paul Eggert  <eggert@cs.ucla.edu>
51267
51268         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51269         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51270
51271 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51272
51273         * modules/regex (Files): Add lib/regex_internal.c,
51274         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51275         (Depends-on): Add extensions.
51276         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51277
51278 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51281         pathconf.
51282         * m4/same.m4 (gl_SAME): Likewise.
51283         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51284
51285         * m4/regex.m4: Adjust to new libc regex implementation.
51286         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51287         all the .c and .h parts of (the new) regex.
51288         Quote the m4 stuff better.
51289         Check for RE_ICASE bug of old gnulib.
51290         Check for REG_STARTEND of recent libc.
51291         Rename local variables from jm_* to gl_*.
51292         Quote operand of "test -f".
51293         Say "recent enough" version of libc, not "version 2".
51294         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51295         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51296         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51297         Remove check for btowc, isascii.
51298         Require AM_LANGINFO_CODESET.
51299
51300 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51301
51302         * lib/regex.c, regex.h: Sync from libc.
51303         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51304         * lib/regexec.c:
51305         New files, synced from libc, except that regex_internal.h
51306         currently has a small porting fix.
51307
51308 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51309
51310         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51311         regex_internal.c, regexec.c.
51312         Add regex_internal.h too, but as a comment, since the libc version
51313         is currently broken in gnulib mode.
51314
51315 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         Support programs like Emacs that use gnulib but not gettext.
51318         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51319         * modules/gettext-h: New file.
51320         * modules/gettext (Files): Remove lib/gettext.h.
51321         (Depends-on): Add gettext-h.
51322         (Makefile.am): Remove lib_SOURCES.
51323         * modules/argmatch, modules/c-stack, modules/closeout:
51324         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51325         * modules/execute, modules/file-type, modules/getaddrinfo:
51326         * modules/getopt, modules/human, modules/javacomp:
51327         * modules/javaexec, modules/mkdir-p, modules/obstack:
51328         * modules/openat, modules/pagealign_alloc, modules/pipe:
51329         * modules/quotearg, modules/regex, modules/rpmatch:
51330         * modules/unicodeio, modules/userspec, modules/version-etc:
51331         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51332         * modules/xsetenv:
51333         Depend on gettext-h, not gettext.
51334
51335 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51336
51337         * gnulib-tool (func_import): Add support for 'public domain' license.
51338         * modules/alloca, modules/atexit, modules/memmove:
51339         Now public domain, not GPL.
51340         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51341         * modules/realloc, modules/strerror, modules/strtod:
51342         Now LGPL, not GPL.
51343
51344 2005-07-05  Bruno Haible  <bruno@clisp.org>
51345
51346         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51347         autoconf CVS. Needed for mingw.
51348
51349 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51350
51351         Remove the dependency of the strftime module on the tzset module.
51352         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51358         gl_FUNC_TZSET_CLOBBER.
51359
51360 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51361
51362         Remove the dependency of the strftime module on the tzset module.
51363         * lib/strftime.c (my_strftime)
51364         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51365         Copy the input structure, to work around some of the bug with
51366         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51367         Solaris releases, you should also use the tzset module, but we won't
51368         require it as a dependency any more since we don't want LGPLed code
51369         to depend on GPLed code.
51370
51371 2005-07-02  Jim Meyering  <jim@meyering.net>
51372
51373         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51374         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51375         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51376         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51377
51378 2005-07-02  Jim Meyering  <jim@meyering.net>
51379
51380         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51381
51382 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51383
51384         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51385         declares only 'struct timespec;' (!).
51386
51387 2005-07-01  Jim Meyering  <jim@meyering.net>
51388
51389         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51390         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51391         * lib/save-cwd.c, tempname.c:
51392         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51393         and don't include <sys/file.h>).
51394
51395 2005-06-29  Jim Meyering  <jim@meyering.net>
51396
51397         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51398         type name.  Use the variable name instead.
51399         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51400         Likewise.
51401
51402 2005-06-28  Simon Josefsson  <jas@extundo.com>
51403
51404         * modules/check-version (Files): Add check-version.m4.
51405
51406 2005-06-28  Simon Josefsson  <jas@extundo.com>
51407
51408         * m4/check-version.m4: New file, suggested by Jim Meyering
51409         <jim@meyering.net>.
51410
51411 2005-06-28  Simon Josefsson  <jas@extundo.com>
51412
51413         * lib/check-version.h, lib/check-version.c: New files.
51414
51415 2005-06-28  Simon Josefsson  <jas@extundo.com>
51416
51417         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51418         collision with global variable.  Better indentation.  Don't
51419         increment buffer pointer beyond buffer end.  Based on comments
51420         from Paul Eggert <eggert@cs.ucla.edu>.
51421
51422         * lib/base64.h: Indent.
51423
51424 2005-06-28  Simon Josefsson  <jas@extundo.com>
51425
51426         * doc/gnulib.texi (Library version handling): New section.
51427
51428 2005-06-28  Jim Meyering  <jim@meyering.net>
51429
51430         * check-module (find_included_lib_files): Hard-code another
51431         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51432         but modules/fts-lgpl (correctly) does not list those files.
51433
51434         * modules/canonicalize (Files): Add lib/pathmax.h.
51435
51436 2005-06-25  Simon Josefsson  <jas@extundo.com>
51437
51438         * modules/check-version: New file.
51439
51440 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51441
51442         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51443         initializer of struct addrinfo, as an indication that we don't
51444         care how many members the structure has.
51445
51446 2005-06-24  Derek Price  <derek@ximbiot.com>
51447         and Bruno Haible  <bruno@clisp.org>
51448
51449         Remove stat module & update lstat.
51450         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51451         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51452         * m4/stat.m4: Remove this file.
51453
51454 2005-06-24  Derek Price  <derek@ximbiot.com>
51455         and Bruno Haible  <bruno@clisp.org>
51456
51457         Remove stat module & update lstat.
51458         * lib/stat.c: Remove this file...
51459         (slash_aware_lstat): ...moving this content and its support...
51460         * lib/lstat.c (rpl_lstat): ...into here.
51461         * lib/lstat.h: New file.
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         * config/srclist.txt (libc sources): Remove stat.
51468
51469 2005-06-24  Derek Price  <derek@ximbiot.com>
51470         and Bruno Haible  <bruno@clisp.org>
51471
51472         Remove stat module & update lstat.
51473         * MODULES.html.sh (stat): Remove.
51474         * MODULES.html: Regenerated.
51475         * modules/lstat (Description): Correct function name.
51476         (Files): Add "lstat.h".
51477         (Depends-on): Remove stat, add xalloc, stat-macros.
51478         * modules/stat: Remove this file.
51479         (Include): Add "lstat.h", remove <sys/stat.h>.
51480
51481 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51482
51483         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51484         (ranged_convert): Don't save conversion in a temporary struct.
51485         This causes a warning with GCC 4.0.0, and anyway in the typical
51486         case it's not worth the extra 100 bytes or so of code.
51487         (ranged_convert, __mktime_internal): When calling a function via a
51488         pointer P, use P () rather than (*P) (), as we now assume C89 or
51489         better.
51490
51491 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51492
51493         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51494         "who -r" failed to give output.  Problem reported by Tim Waugh.
51495
51496         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51497         (xcalloc): Use it to avoid needless tests.
51498         Problem reported by Jim Meyering.
51499
51500 2005-06-20  Derek Price  <derek@ximbiot.com>
51501
51502         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51503         unnecessary for Autoconfs > 2.59c.
51504
51505 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51506
51507         * lib/argp.h (__option_is_short): Check upper limit of
51508         __key. Isprint() requires its argument to have the value
51509         of an unsigned char or EOF.
51510
51511 2005-06-16  Jim Meyering  <jim@meyering.net>
51512
51513         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51514         when either N or S is zero.
51515
51516 2005-06-16  Derek Price  <derek@ximbiot.com>
51517
51518         * m4/bison.m4: Declare YACC & YFLAGS precious.
51519
51520 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51521
51522         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51523         multibyte string or pattern, fall back on unibyte matching.
51524         Problem reported by James Youngman.
51525
51526 2005-06-08  Bruno Haible  <bruno@clisp.org>
51527
51528         * modules/csharpcomp: New file.
51529         * MODULES.html.sh (C#): Add csharpcomp.
51530
51531 2005-06-08  Bruno Haible  <bruno@clisp.org>
51532
51533         * m4/csharpcomp.m4: New file, from GNU gettext.
51534
51535 2005-06-08  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/csharpcomp.h: New file, from GNU gettext.
51538         * lib/csharpcomp.c: New file, from GNU gettext.
51539         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51540
51541 2005-06-08  Bruno Haible  <bruno@clisp.org>
51542
51543         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51544         warning on mingw.
51545
51546 2005-06-07  Derek Price  <derek@ximbiot.com>
51547
51548         Sync from CVS.
51549         * lib/glob_.h: Indent nested #ifdef.
51550
51551 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         Sync from coreutils.
51554         Use "file name" when talking about file names, instead of "filename"
51555         or "path", as per the GNU coding standards.
51556         * lib/mkdir-p.c: Renamed from makepath.c.
51557         (make_dir_parents): Renamed from make_path.  All callers changed.
51558         * lib/mkdir-p.h: Likewise.  All includers changed.
51559         * lib/filenamecat.c: Renamed from path-concat.c.
51560         (file_name_concat): Renamed from path_concat.  All callers changed.
51561         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51562         * lib/filenamecat.h: Likewise.  All includers changed.
51563         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51564         in comments or local variable names.
51565         * lib/basename.c: Likewise.
51566         * lib/canonicalize.c, canonicalize.h: Likewise.
51567         * lib/dirname.c, dirname.h: Likewise.
51568         * lib/euidaccess.c: Likewise.
51569         * lib/exclude.c: Likewise
51570         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51571         * lib/fsusage.c, fsuage.h: Likewise.
51572         * lib/fts.c, fts_.h: Likewise.
51573         * lib/getcwd.c: Likewise.
51574         * lib/getloadavg.c: Likewise.
51575         * lib/mkstemp.c: Likewise.
51576         * lib/mountlist.c, mountlist.h: Likewise.
51577         * lib/openat.c, openat.h: Likewise.
51578         * lib/readlink-stub.c: Likewise.
51579         * lib/readutmp.c, readutmp.h: Likewise.
51580         * lib/rename.c: Likewise.
51581         * lib/rmdir.c: Likewise.
51582         * lib/same.c: Likewise.
51583         * lib/savedir.c: Likewise.
51584         * lib/stripslash.c: Likewise.
51585         * lib/tempname.c: Likewise.
51586         * lib/xreadlink.c: Likewise.
51587         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51588         All uses changed.
51589         * lib/exclude.h: Likewise.
51590
51591         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51592         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51593         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51594         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51595         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51596         files have been getting away with it for years (MORE/BSD 4.3
51597         is extinct now).
51598         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51599         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51600
51601         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51602         Define to 256, not 255, as per modern POSIX.
51603
51604 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51605
51606         Sync from coreutils.
51607         Use "file name" when talking about file names, instead of "filename"
51608         or "path", as per the GNU coding standards.
51609         * MODULES.html.sh: mkdir-p renamed from makepath.
51610         filenamecat renamed from path-concat.
51611         * modules/filenamecat: Renamed from modules/path-concat.
51612         (Files): filenamecat.h and filenamecat.c renamed from
51613         path-concat.h and path-concat.c.
51614         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51615         (Include): filenamecat.h, not path-concat.h.
51616         * modules/mkdir-p: Renamed from modules/makepath.
51617         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51618         makepath.c.
51619         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51620         (Include): mkdir-p.h, not makepath.h.
51621
51622 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51623
51624         Sync from coreutils.
51625         * m4/mkdir-p.m4: Renamed from makepath.m4.
51626         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51627         Rename files from makepath.c to mkdir-p.c, and from
51628         makepath.h to mkdir-p.h.
51629         * m4/filenamecat.m4: Renamed from path-concat.m4.
51630         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51631         Rename files from path-concat.c to filenamecat.c,
51632         and from path-concat.h to filenamecat.h.
51633         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51634         "file name" in local variables or comments.
51635         * m4/rename.m4: Likewise.
51636
51637 2005-06-01  Bruno Haible  <bruno@clisp.org>
51638
51639         * modules/csharpexec: New file.
51640         * MODULES.html.sh (C#): New section.
51641
51642 2005-06-01  Bruno Haible  <bruno@clisp.org>
51643
51644         * m4/csharp.m4: New file, from GNU gettext.
51645         * m4/csharpexec.m4: New file, from GNU gettext.
51646
51647 2005-06-01  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/csharpexec.h: New file, from GNU gettext.
51650         * lib/csharpexec.c: New file, from GNU gettext.
51651         * lib/csharpexec.sh.in: New file, from GNU gettext.
51652
51653 2005-05-31  Derek Price  <derek@ximbiot.com>
51654             Paul Eggert  <eggert@cs.ucla.edu>
51655
51656         Sync from cvs.
51657         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51658
51659 2005-05-31  Derek Price  <derek@ximbiot.com>
51660             Paul Eggert  <eggert@cs.ucla.edu>
51661
51662         Sync from cvs.
51663         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51664
51665 2005-05-29  Derek Price  <derek@ximbiot.com>
51666
51667         * config/srclist.txt (glob_.h, glob.c): Add these files.
51668
51669 2005-05-29  Derek Price  <derek@ximbiot.com>
51670
51671         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51672         * modules/glob: New file.
51673         * modules/getlogin_r: Add link to POSIX spec in description.
51674
51675 2005-05-29  Derek Price  <derek@ximbiot.com>
51676             Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * m4/glob.m4: New file.
51679
51680 2005-05-29  Derek Price  <derek@ximbiot.com>
51681             Paul Eggert  <eggert@cs.ucla.edu>
51682
51683         * lib/glob_.h, lib/glob.c: New files.
51684
51685 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51686
51687         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51688         * modules/fts-lgpl (Depends-on): Remove gettext.
51689
51690 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51691
51692         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51693         and don't require gt_INTTYPES_PRI.
51694
51695 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51698
51699         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51700         the configuration hassle isn't worth it.
51701         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51702         (LONGEST_MODIFIER, PRIuMAX): Remove.
51703
51704 2005-05-27  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51707
51708 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51709
51710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51711         _POSIX_PTHREAD_SEMANTICS for Solaris.
51712
51713 2005-05-25  Derek Price  <derek@ximbiot.com>
51714
51715         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51716
51717 2005-05-25  Derek Price  <derek@ximbiot.com>
51718             Paul Eggert  <eggert@cs.ucla.edu>
51719
51720         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51721         * lib/getlogin_r.c, getlogin_r.h: New files.
51722
51723 2005-05-25  Bruno Haible  <bruno@clisp.org>
51724             Derek Price  <derek@ximbiot.com>
51725
51726         * lib/getlogin_r.h: Simplify API documentation.
51727
51728 2005-05-23  Derek Price  <derek@ximbiot.com>
51729
51730         * modules/minmax (Files): Add m4/minmax.m4.
51731         (configure.ac): Add gl_MINMAX.
51732
51733 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51734
51735         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51736         so that unistd-safer.h (GPL'ed code) need not be included.
51737
51738 2005-05-22  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/minmax.m4: New file.
51741         Based on a patch by Derek Price <derek@ximbiot.com>.
51742
51743 2005-05-22  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51746         (INT64_MIN): Fix definition.
51747         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51748
51749         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51750         NEED_SIGNED_INT_TYPES.
51751
51752         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51753         HAVE_SYSTEM_INTTYPES.
51754
51755 2005-05-22  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51758         Also include <sys/param.h> if it defines MIN, MAX.
51759         Based on a patch by Derek Price <derek@ximbiot.com>.
51760
51761 2005-05-21  Jim Meyering  <jim@meyering.net>
51762
51763         * modules/fts (Files): Add m4/inttypes-pri.m4.
51764         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51765
51766 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51767
51768         New fts module.
51769         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51770         (setup_dir, free_dir): New functions.
51771         (enter_dir, leave_dir): Define trivial
51772         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51773         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51774         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51775         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51776         Move to fts-cycle.c.
51777         (fts_open): Use setup_dir.
51778         (fts_close): Use free_dir.
51779         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51780         This adds a label and some gotos, but the alternatives were messier.
51781         Check for memory allocation failure when entering a dir.
51782         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51783         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51784         (FTS): New member fts_cycle, that is a union that contains the
51785         old active_dir_ht and cycle_state.  All uses changed to mention
51786         fts_cycle.ht and fts_cycle.state.
51787         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51788         fts.c, with the following changes:
51789         (setup_dir, free_dir): New functions.
51790         (enter_dir): Now returns bool.  Return true if successful, false
51791         if memory exhausted.  All callers changed.
51792         Do not bother partly cleaning up on
51793         memory allocation failure; that is free_dir's job.
51794         However, free ad if hash_insert fails, to avoid memory leak.
51795         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51796         fts->fts_options to see which union member to use.
51797
51798 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51801         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51802
51803 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51806
51807 2005-05-20  Jim Meyering  <jim@meyering.net>
51808
51809         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51810         Now a macro, to pacify GCC.
51811
51812 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51813
51814         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51815         of -1.
51816
51817 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51818
51819         * lib/chown.c (rpl_chown): Return -1 on failure.
51820
51821 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51822
51823         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51824         Don't check for stddef.h.
51825         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51826         don't use its results.
51827         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51828         since we include them unconditionally.  Don't require
51829         AM_STDBOOL_H, since stdbool is a prerequisite.
51830         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51831         since we assume C89 or better.
51832         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51833         as we don't use their results.
51834         Don't check for fchdir, memmove, memset, strrchr, as we use
51835         them unconditionally.
51836         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51837         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51838
51839 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51842         Include <stddef.h> unconditionally, since we assume C89 now.
51843         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51844         * lib/fts.c: Include fts_.h first, to check interface.
51845         Do not include intprops.h; no longer needed.
51846         Include cycle-check.h and hash.h, since fts_.h no longer does.
51847         Remove unnecessary casts of closedir to void.
51848         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51849         decide whether to decrement nlinks.
51850         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51851         (FTS): Use struct hash_table * instead of Hash_table, so that
51852         we no longer need to include hash.h here.
51853
51854 2005-05-18  Jim Meyering  <jim@meyering.net>
51855
51856         * modules/dirfd (License): Change to LGPL.  Most of the code
51857         is already in the public domain.
51858
51859 2005-05-18  Jim Meyering  <jim@meyering.net>
51860
51861         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51862         Reported by Yoann Vandoorselaere.
51863
51864 2005-05-17  Jim Meyering  <jim@meyering.net>
51865
51866         * m4/fts.m4: New file, from coreutils.
51867
51868 2005-05-17  Jim Meyering  <jim@meyering.net>
51869
51870         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51871
51872 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         Sync from coreutils.
51875         * m4/unlinkdir.m4: New file.
51876
51877 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51878
51879         Sync from coreutils.
51880         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51881         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51882         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51883         White space changes only.
51884         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51885         special.
51886         * lib/yesno.c: Include getline.h, not ctype.h.
51887         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51888         Use getline to remove arbitrary restriction on response length.
51889
51890 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51891
51892         * config/srclist-update: Spell out "Street" in FSF postal
51893         mail address; this is the style the FSF seems to prefer.
51894
51895         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51896         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51897         this updates FSF postal mail address.
51898
51899         Sync from coreutils.
51900         * modules/unlinkdir: New file.
51901         * modules/yesno (Depends-on): Add getline.
51902         * MODULES.html.sh (File system functions): Add unlinkdir.
51903
51904 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51907         lib/strsep.h:
51908         Change the initial comment to refer to GPL, not LGPL.
51909         gnulib-tool will change it to LGPL as needed.
51910
51911         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51912         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51913         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51914         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51915         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51916         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51917         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51918         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51919         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51920         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51921         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51922         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51923         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51924         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51925         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51926         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51927         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51928         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51929         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51930         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51931         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51932         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51933         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51934         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51935         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51936         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51937         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51938         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51939         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51940         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51941         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51942         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51943         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51944         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51945         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51946         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51947         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51948         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51949         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51950         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51951         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51952         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51953         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51954         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51955         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51956         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51957         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51958         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51959         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51960         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51961         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51962         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51963         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51964         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51965         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51966         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51967         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51968         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51969         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51970         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51971         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51972         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51973         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51974         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51975         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51976         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51977         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51978         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51979         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51980         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51981         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51982         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51983         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51984         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51985         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51986         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51987         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51988         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51989         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51990         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51991         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51992         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51993         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51994         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51995         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51996         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51997         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51998         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51999         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52000         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52001         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52002         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52003         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52004         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52005         lib/yesno.c, lib/yesno.h:
52006         Update FSF postal mail address.
52007
52008 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52009
52010         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52011         tests/test-memmem.c, tests/test-stpncpy.c:
52012         Update FSF postal mail address.
52013
52014 2005-05-13  Bruno Haible  <bruno@clisp.org>
52015
52016         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52017         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52018         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52019         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52020         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52021         Add support for 64-bit integers in the MSVC compiler.
52022
52023 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52024
52025         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52026
52027 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52028
52029         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52030
52031 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52032
52033         * doc/getdate.texi (General date syntax): Don't say that date
52034         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52035         Problem reported by Nic Ferrier.
52036
52037 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52038
52039         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52040         specified in ai_socktype. Fix invalid ai_protocol
52041         check. ai_protocol is usually set to 0 or depending on
52042         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52043         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52044         ai_socktype / ai_protocol in the returned addrinfo structure.
52045
52046 2005-05-10  Simon Josefsson  <jas@extundo.com>
52047
52048         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52049         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52050
52051 2005-05-10  Karl Berry  <karl@gnu.org>
52052
52053         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52054         (from http://www.gnu.org/licenses).
52055         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52056         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52057         fdl.texi suffices.
52058
52059 2005-05-10  Karl Berry  <karl@gnu.org>
52060
52061         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52062         (COPYING.DOC): remove.
52063
52064         * config/srclist-update: new FSF address.
52065
52066 2005-05-10  Derek Price  <derek@ximbiot.com>
52067
52068         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52069         possible.
52070
52071 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52072             Bruno Haible  <bruno@clisp.org>
52073
52074         * modules/inet_ntop: New file.
52075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52076         inet_ntop.
52077
52078 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52079             Bruno Haible  <bruno@clisp.org>
52080
52081         * m4/inet_ntop.m4: New file.
52082
52083 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52084             Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/inet_ntop.h: New file.
52087         * lib/inet_ntop.c: New file, from glibc with modifications.
52088
52089 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52090
52091         * modules/time_r (License): Change to LGPL.
52092         * modules/extensions (License): Change to LGPL.  Actually,
52093         the license is more permissive than that, but currently gnulib-tool
52094         doesn't know how to handle more-permissive licenses.
52095
52096         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52097         Problem reported by Dave Love.
52098
52099 2005-05-08  Jim Meyering  <jim@meyering.net>
52100
52101         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52102         blank.
52103
52104 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * modules/argmatch (Depends-on): Add stdbool.
52107         * modules/backupfile (Depends-on): Likewise.
52108         * modules/chdir-long (Depends-on): Likewise.
52109         * modules/closeout (Depends-on): Likewise.
52110         * modules/cycle-check (Depends-on): Likewise.
52111         * modules/dirname (Depends-on): Likewise.
52112         * modules/fnmatch (Depends-on): Likewise.
52113         * modules/fsusage (Depends-on): Likewise.
52114         * modules/fwriteerror (Depends-on): Likewise.
52115         * modules/getcwd (Depends-on): Likewise.
52116         * modules/getloadavg (Depends-on): Likewise.
52117         * modules/hard-locale (Depends-on): Likewise.
52118         * modules/makepath (Depends-on): Likewise.
52119         * modules/mountlist (Depends-on): Likewise.
52120         * modules/nanosleep (Depends-on): Likewise.
52121         * modules/posixtm (Depends-on): Likewise.
52122         * modules/quotearg (Depends-on): Likewise.
52123         * modules/readtokens (Depends-on): Likewise.
52124         * modules/readtokens0 (Depends-on): Likewise.
52125         * modules/readutmp (Depends-on): Likewise.
52126         * modules/save-cwd (Depends-on): Likewise.
52127         * modules/strftime (Depends-on): Likewise.
52128         * modules/userspec (Depends-on): Likewise.
52129         * modules/utimecmp (Depends-on): Likewise.
52130         * modules/xgetcwd (Depends-on): Likewise.
52131         * modules/xnanosleep (Depends-on): Likewise.
52132         * modules/xstrtod (Depends-on): Likewise.
52133         * modules/yesno (Depends-on): Likewise.
52134
52135 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52138         needless checks.
52139
52140 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         Merge from coreutils.  Among other things,
52143         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52144         * lib/fd-safer.c: New file.
52145         * lib/fcntl-safer.h, open-safer.c: Remove.
52146         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52147         * lib/dup-safer.c: Include unistd-safer.h first.
52148         Don't include errno.h.
52149         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52150         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52151         * lib/file-type.c: Rely on file-type.h change.
52152         * lib/getloadavg.c: Include unistd-safer.h.
52153         (getloadavg): Use safer open.
52154         * lib/getusershell.c: Include "stdio-safer.h".
52155         (getusershell): Use safer fopen.
52156         * lib/long-options.c (long_options): Use NULL rather than 0.
52157         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52158         'free'.
52159         * lib/modechange.c: Likewise.
52160         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52161         (MODE_DONE): New constant.
52162         (struct mode_change): Remove 'next' member.
52163         (make_node_op_equals): New function; like the old one of the
52164         same name, except it allocates an array.
52165         (mode_compile, mode_create_from_ref): Use it.
52166         (mode_compile): Allocate result as an array, not a linked list.
52167         Parse octal string ourself, so that we catch mistakes like "+0".
52168         (mode_adjust): Arg is an array, not a linked list.
52169         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52170         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52171         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52172         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52173         Remove.  This is now stat-macros.h's job.
52174         (talloc): Remove.  All callers replaced by xalloc, so that
52175         our invokers don't have to worry about reporting memory failures.
52176         (make_node_op_equals): Remove.
52177         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52178         New constants.
52179         (struct mode_change): Moved here from modechange.h.
52180         (mode_append_entry): Remove.
52181         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52182         apps to have incorrect behavior.  Use simpler algorithm for head
52183         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52184         Detect more invalid usages rather than having somewhat-random behavior.
52185         Don't insert an "a=" action, as that leads to incorrect behavior.
52186         (mode_compile, mode_create_from_ref): Return NULL on error instead
52187         of an enum, since now there's only one way to have an error.  All
52188         callers changed.
52189         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52190         at the correct time.  Simplify calculation of "+u" and its ilk.
52191         Don't mishandle "+X".
52192         (mode_free): Remove "register" and localize decls.
52193         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52194         (struct mode_change): Move to modechange.c; callers don't
52195         need to see this stuff.
52196         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52197         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52198         (mode_change, mode_adjust): Reflect the new signatures noted above.
52199         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52200         that might redefine system include files.
52201         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52202         (my_usleep): Use NULL rather than (void *) 0.
52203         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52204         Use siginterrupt to specify that system calls should be interrupted.
52205         (rpl_nanosleep): Move initialization of suspended closer to call of
52206         my_usleep.
52207         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52208         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52209         (desirable_utmp_entry): New function.
52210         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52211         using x2nrealloc, to simplify logic.
52212         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52213         size calculation.  Do not assume utmp file is a regular file.
52214         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52215         (READ_UTMP_CHECK_PIDS): New constant.
52216         * lib/save-cwd.c: Include unistd-safer.h.
52217         (save_cwd): Use fd_safer.
52218         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52219         [!_LIBC] Include "stat-macros.h" instead.
52220         * lib/unistd-safer.h (fd_safer): New decl.
52221
52222 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52223
52224         * modules/getloadavg (Depends-on): Add unistd-safer.
52225         * modules/getusershell (Depends-on): Add stdio-safer.
52226         * modules/lstat (Depends-on): Remove xalloc.
52227         * modules/mkstemp (Depends-on): Add stat-macros.
52228         * modules/modechange (Depends-on): Remove xstrtol.
52229         Add stat-macros, xalloc.
52230         * modules/save-cwd (Depends-on): Add unistd-safer.
52231         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52232         * modules/unistd-safer (Files): Add lib/fd-safer.c
52233         (Makefile.am): Remove lib_SOURCES.
52234
52235         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52236         Remove fcntl-safer; unistd-safer supersedes it.
52237
52238 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52239
52240         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52241         AC_HEADER_STAT.
52242         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52243         (gl_PREREQ_CHOWN): Remove.
52244         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52245         it.  Don't require AC_HEADER_STAT.
52246         (gl_PREREQ_LSTAT): Remove.
52247         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52248         Don't require AC_HEADER_STAT.
52249         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52250         (gl_PREREQ_RMDIR): Remove.
52251         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52252         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52253         the stat-macros module a prerequisite.
52254         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52255         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52256         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52257         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52258         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52259         variable names.
52260         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52261         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52262         variable prefixes.
52263         * m4/fcntl-safer.m4: Remove.
52264         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52265         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52266         Invoke gl_PREREQ_FD_SAFER.
52267         (gl_PREREQ_FD_SAFER): New macro.
52268         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52269         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52270         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52271         Remove duplicate call to AC_LIBOBJ(readutmp).
52272         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52273
52274         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52275         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52276
52277 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52278
52279         * MODULES.html.sh (Misc): Add byteswap.
52280
52281 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52282
52283         * modules/getcwd (Depends-on): Add extensions.
52284         * modules/openat (Depends-on): Likewise.
52285
52286 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52287
52288         * modules/byteswap: New file.
52289
52290 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52291
52292         * m4/byteswap.m4: New file.
52293
52294 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52295
52296         * lib/byteswap_.h: New file.
52297
52298 2005-04-25  Karl Berry  <karl@gnu.org>
52299
52300         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52301
52302 2005-04-25  Albert Chin  <china@thewrittenword.com>
52303
52304         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52305         Toolkit C bug.
52306
52307 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52308
52309         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52310         (func_ln_if_changed) Remove forcibly for no error message
52311         in case file does not exist.
52312
52313 2005-04-19  Simon Josefsson  <jas@extundo.com>
52314
52315         * gnulib-tool (Options): Make --symlink mean --symbolic.
52316
52317 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52318
52319         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52320
52321 2005-04-16  Simon Josefsson  <jas@extundo.com>
52322
52323         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52324
52325 2005-04-15  Simon Josefsson  <jas@extundo.com>
52326
52327         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52328
52329 2005-04-15  Simon Josefsson  <jas@extundo.com>
52330
52331         * gnulib-tool: Rename --symlink to --symbolic.
52332
52333 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52334
52335         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52336         symbolic links to files instead of copying/moving.  Add --aux-dir,
52337         specifying directory relative --dir where auxiliary build tools
52338         are placed.
52339
52340 2005-04-14  Bruno Haible  <bruno@clisp.org>
52341
52342         * modules/allocsa (License): Change to LGPL.
52343         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52344
52345 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52346
52347         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52348         that "UTC +1 second" continues to work.  Problem reported
52349         by Dmitry V. Levin.
52350         (relunit_snumber): New rule.
52351         (relunit): Use it.
52352
52353 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52354
52355         * lib/getdate.y (universal_time_zone_table): New constant.
52356         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52357         universal_time_zone_table.
52358         (lookup_zone): Prefer universal_time_zone_table to
52359         local_time_zone_table, so that "GMT" time stamps are allowed in
52360         London during the summer.  Problem reported by Ian Abbott.
52361
52362 2005-04-12  Jim Meyering  <jim@meyering.net>
52363
52364         * lib/human.c (humblock): Set *options even when returning due to
52365         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52366         warning from gcc-4.
52367
52368 2005-04-09  Jim Meyering  <jim@meyering.net>
52369
52370         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52371         -Wuninitialized: initialize tm0.tm_year.
52372
52373 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52374
52375         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52376         count, since there's no maximum.  All uses changed.
52377         Add member dsts_seen.
52378         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52379         not being INT_MAX.
52380         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52381         Use pc_rels_seen to decide whther a date is absolute.
52382
52383         * lib/getdate.y (number): Don't overwrite year.
52384         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52385         check.
52386
52387 2005-04-02  Simon Josefsson  <jas@extundo.com>
52388
52389         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52390         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52391
52392 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52393
52394         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52395         where no absolute path name can be longer than PATH_MAX.
52396
52397 2005-03-27  Jim Meyering  <jim@meyering.net>
52398
52399         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52400
52401 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52402
52403         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52404         "one's complement" -> "ones' complement" in comment, as per Knuth.
52405         "value of type" -> "type or expression" in comment.
52406         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52407
52408 2005-03-26  Jim Meyering  <jim@meyering.net>
52409
52410         Comment nits.
52411         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52412         Correct typos: s/or/of/.
52413
52414 2005-03-26  Jim Meyering  <jim@meyering.net>
52415
52416         * modules/check-include-files: Move to ../ and rename to...
52417         * check-module: ...this.
52418
52419 2005-03-25  Jim Meyering  <jim@meyering.net>
52420
52421         * modules/xvasprintf (Files): Add xalloc.h.
52422
52423 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52424
52425         * modules/gettext (Files): config/config.rpath ->
52426         build-aux/config.rpath
52427         * modules/iconv (Files): Likewise.
52428         Problem reported by Oskar Liljeblad.
52429
52430 2005-03-23  Jim Meyering  <jim@meyering.net>
52431
52432         * modules/check-include-files: New script to check for
52433         missing dependencies, multiple includes, etc.
52434
52435         * modules/c-strtold (Depends-on): Add xalloc.
52436         * modules/c-strtod (Depends-on): Add xalloc.
52437         * modules/hash (Depends-on): Add xalloc.
52438         (Files): Remove lib/xalloc.h.
52439
52440         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52441         * modules/userspec (Files): Add lib/inttostr.h.
52442
52443 2005-03-23  Jim Meyering  <jim@meyering.net>
52444
52445         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52446
52447 2005-03-22  Jim Meyering  <jim@meyering.net>
52448
52449         * modules/stat-macros: New module.
52450         * modules/canonicalize, modules/euidaccess, modules/file-type,
52451         * modules/filemode, modules/lchown, modules/makepath,
52452         * modules/rmdir, modules/stat: Depend on new stat-macros module
52453         rather than listing lib/stat-macros.h manually.
52454         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52455
52456 2005-03-22  Jim Meyering  <jim@meyering.net>
52457
52458         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52459
52460 2005-03-22  Bruno Haible  <bruno@clisp.org>
52461
52462         * config/srclist.txt: Replace target directory 'config' with
52463         'build-aux'.
52464         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52465         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52466         ../build-aux/.
52467
52468 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52469
52470         * modules/chdir-long (Depends-on): Add mempcpy.
52471
52472         * modules/acl, modules/backupfile, modules/c-strtod,
52473         modules/c-strtold, modules/canon-host, modules/canonicalize,
52474         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52475         modules/exclude, modules/exitfail, modules/file-type,
52476         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52477         modules/getdate, modules/getline, modules/getpagesize,
52478         modules/getpass, modules/getugroups, modules/group-member,
52479         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52480         modules/inttostr, modules/long-options, modules/makepath,
52481         modules/md5, modules/memcasecmp, modules/memcoll,
52482         modules/modechange, modules/mountlist, modules/path-concat,
52483         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52484         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52485         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52486         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52487         modules/strftime, modules/strndup, modules/strverscmp,
52488         modules/timespec, modules/unlocked-io, modules/userspec,
52489         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52490         modules/yesno:
52491         Remove lib_SOURCES line from Makefile.am section, as this is now
52492         done automatically by the corresponding Autoconf macro.
52493
52494 2005-03-21  Jim Meyering  <jim@meyering.net>
52495
52496         Changes imported from coreutils.
52497
52498         * lib/cycle-check.c: Don't include xalloc.h.
52499
52500         * lib/path-concat.c: Don't include assert.h.
52501         (path_concat): Remove assertion that would have triggered
52502         for ABASE starting with more than one slash.
52503         Reported by Andreas Schwab.
52504
52505         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52506         properly when ABASE is an absolute file name.
52507         Correct the description of this function.
52508         Include <assert.h>.
52509         Add an assertion and a test driver.
52510         This fixes a bug introduced on 2004-07-02.
52511         Andreas Schwab reported the resulting failure of cp --parents:
52512         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52513
52514 2005-03-21  Jim Meyering  <jim@meyering.net>
52515
52516         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52517         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52518
52519 2005-03-21  Jim Meyering  <jim@meyering.net>
52520         and  Paul Eggert  <eggert@cs.ucla.edu>
52521
52522         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52523         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52524         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52525         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52526         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52527         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52528         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52529         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52530         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52531         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52532         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52533         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52534         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52535         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52536         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52537         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52538         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52539         for these modules.
52540
52541 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52544         (which shouldn't happen), generate nothing instead of returning 0
52545         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52546
52547 2005-03-16  Bruno Haible  <bruno@clisp.org>
52548
52549         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52550         HAVE_LONGLONG_64BIT.
52551
52552 2005-03-16  Bruno Haible  <bruno@clisp.org>
52553
52554         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52555         HAVE_LONGLONG_64BIT.
52556
52557 2005-03-16  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52560         HAVE_LONGLONG_64BIT.
52561
52562 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52565         reliably distinguish strftime failure from empty output on POSIX
52566         hosts.
52567
52568 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52569
52570         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52571         (iconv_string): Don't guess a size-zero buffer, as that might cause
52572         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52573         result would be 'too large', where 'too large' is (heuristically)
52574         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52575         overflow concerns.  This will prevent some unwanted malloc failures
52576         when the inputs are very large.
52577
52578 2005-03-15  Karl Berry  <karl@gnu.org>
52579
52580         * config/srclist.txt (config.rpath): from gettext.
52581         * config/config.rpath: update.
52582
52583 2005-03-15  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52586         to 'negate'.
52587
52588         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52589         variable.
52590
52591         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52592         results.
52593
52594 2005-03-14  Simon Josefsson  <jas@extundo.com>
52595
52596         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52597         <fx@gnu.org>.
52598
52599 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52600
52601         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52602         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52603         intprops.h.
52604         * lib/strtol.c: Likewise.
52605
52606 2005-03-14  Jim Meyering  <jim@meyering.net>
52607
52608         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52609         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52610         to be nonzero so that we (and caller) can detect the difference
52611         between a valid zero-length expansion and an error return, even
52612         when the underlying strftime fails before writing anything into
52613         that location.
52614
52615 2005-03-14  Bruno Haible  <bruno@clisp.org>
52616
52617         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52618         Update from GNU gettext 0.14.3.
52619
52620 2005-03-10  Jim Meyering  <jim@meyering.net>
52621
52622         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52623
52624 2005-03-10  Jim Meyering  <jim@meyering.net>
52625
52626         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52627         so that this module works on systems without fchdir.
52628
52629 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52630
52631         Factor int-properties macros into a single file, except for
52632         glibc-related files.
52633         * lib/intprops.h: New file.
52634         * lib/getloadavg.c: Include it instead of limits.h.
52635         (INT_STRLEN_BOUND): Remove.
52636         * lib/human.c: Include intprops.h.
52637         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52638         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52639         302/1000.
52640         * lib/inttostr.h: Include intprops.h instead of limits.h.
52641         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52642         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52643         for consistency with intprops.h.
52644         (time_t_is_integer, twos_complement_arithmetic): Use them.
52645         * lib/sig2str.h: Include <signal.h>, intprops.h.
52646         (INT_STRLEN_BOUND): Remove.
52647         * lib/strftime.c (TYPE_SIGNED): Remove.
52648         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52649         * lib/strtol.c: Adjust comments to match intprops.h.
52650         * lib/userspec.c: Include intprops.h.
52651         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52652         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52653         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52654         instead of rolling our own expressions.
52655         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52656
52657         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52658         instead of int.
52659         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52660         the right thing even if adding 1900 would overflow.  Similarly
52661         for tm_mon + 1 and tm_yday + 1.
52662         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52663         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52664         (DO_SIGNED_NUMBER): New macro.
52665         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52666
52667 2005-03-07  Bruno Haible  <bruno@clisp.org>
52668
52669         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52670
52671 2005-03-07  Bruno Haible  <bruno@clisp.org>
52672
52673         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52674
52675 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52676
52677         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52678         (func_import): Only replace files via --import when they have actually
52679         changed.
52680
52681 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52682
52683         * m4/mmap-anon.m4: New file.
52684         * m4/pagealign_alloc.m4: New file.
52685
52686 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52687             Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/pagealign_alloc: New file.
52690         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52691
52692 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52693             Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/pagealign_alloc.h: New file.
52696         * lib/pagealign_alloc.c: New file.
52697
52698 2005-03-03  Bruno Haible  <bruno@clisp.org>
52699
52700         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52701         Use an all-permissive copyright notice, recommended by RMS.
52702
52703 2005-03-02  Bruno Haible  <bruno@clisp.org>
52704
52705         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52706         of AIX, the replacement has to be done only after <string.h> is
52707         included, therefore not in config.h. stpncpy.h does the replacement,
52708         and stpncpy.c uses it.
52709
52710 2005-03-02  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52713         stpncpy.c uses it.
52714
52715 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52716
52717         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52718         The workaround isn't strictly needed for POSIX conformance, and
52719         it's too much of a pain to configure and maintain.  We'll ask
52720         people to fix their kernels instead.
52721         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52722         (NANOSLEEP_BUG_WORKAROUND): Remove.
52723         (xnanosleep): Remove the workaround.
52724
52725 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52726
52727         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52728         Reported by Derek Price.
52729         (Include): Add "timespec.h".
52730
52731         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52732
52733 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52736         to detect nanosleep bug.
52737
52738 2005-03-01  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52741
52742 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52743
52744         * modules/gethrxtime: New file.
52745         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52746         (Depends-on): Add gethrxtime.
52747         (configure.ac): Add gl_XNANOSLEEP.
52748         (Makefile.am): Remove lib_SOURCES line.
52749
52750 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52751
52752         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52753         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52754
52755 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52758         * lib/timespec.h (gettime): Return void, since it always
52759         succeeds now.  All uses changed.
52760         * lib/gettime.c (gettime) Likewise.
52761         [HAVE_NANOTIME]: Prefer nanotime.
52762         Assume gettimeofday succeeds, as POSIX requires.
52763         Assime time () succeeds, since other code already does.
52764         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52765         (timespec_subtract): Remove.
52766         (NANOSLEEP_BUG_WORKAROUND): New constant.
52767         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52768         things considerably.  Use it only on GNU/Linux hosts, since the
52769         workaround shouldn't be needed elsewhere.
52770
52771 2005-02-24  Bruno Haible  <bruno@clisp.org>
52772
52773         * modules/gettext (Files): Add m4/glibc2.m4.
52774
52775 2005-02-24  Bruno Haible  <bruno@clisp.org>
52776
52777         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52778         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52779         * m4/progtest.m4:
52780         Update from GNU gettext 0.14.2.
52781         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52782
52783 2005-02-24  Bruno Haible  <bruno@clisp.org>
52784
52785         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52786         * lib/config.charset: Update from GNU gettext 0.14.2.
52787
52788 2005-02-24  Bruno Haible  <bruno@clisp.org>
52789
52790         * lib/gettext.h: Update from GNU gettext 0.14.2.
52791
52792 2005-02-23  Simon Josefsson  <jas@extundo.com>
52793
52794         * m4/iconvme.m4: New file.
52795
52796 2005-02-23  Jim Meyering  <jim@meyering.net>
52797
52798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52799         change.
52800         Thanks to Bruno Haible for catching it.
52801
52802 2005-02-22  Simon Josefsson  <jas@extundo.com>
52803
52804         * modules/iconvme: New file.
52805
52806         * MODULES.html.sh: Add iconvme.
52807
52808 2005-02-22  Simon Josefsson  <jas@extundo.com>
52809
52810         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52811
52812 2005-02-22  Simon Josefsson  <jas@extundo.com>
52813
52814         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52815
52816 2005-02-22  Jim Meyering  <jim@meyering.net>
52817
52818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52819         s/ifndef/ifdef/.
52820
52821 2005-02-20  Neil Conway  <neilc@samurai.com>
52822
52823         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52824         returned by OSX/Darwin if the specified buffer is not large
52825         enough for the hostname.
52826
52827 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52828
52829         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52830         pass it to _help, otherwise the latter coredumps trying to
52831         dereference state.root_argp.
52832
52833 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * modules/chdir-long (Depends-on): Add memrchr.
52836         * modules/memrchr (Files): Add lib/memrchr.h.
52837         (Include): "memrchr.h".
52838
52839 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52842
52843 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52844
52845         * lib/memrchr.h: New file.
52846         * lib/chdir-long.c: Include it.
52847         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52848         Don't bother including stddef.h.
52849
52850 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52851
52852         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52853         inclusion.
52854         Include <sys/types.h>, for dev_t.
52855         (ME_DUMMY, ME_REMOTE): Move from here....
52856         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52857         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52858         Dmitry V. Levin.
52859         Include mountlist.h first, to test the interface.
52860
52861 2005-01-29  Bruno Haible  <bruno@clisp.org>
52862
52863         * lib/progname.c (program_name): Initialize.
52864         Needed when linking statically on MacOS X.
52865
52866 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52867
52868         Sync from coreutils.
52869         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52870         (Depends-on): Add c-strtod.
52871         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52872
52873 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52874
52875         Sync from coreutils.
52876         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52877
52878         Remove files that are specific to coreutils.
52879         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52880
52881 2005-01-28  Bruno Haible  <bruno@clisp.org>
52882
52883         * modules/javacomp: New file.
52884         * MODULES.html.sh (Java): Add javacomp.
52885
52886 2005-01-28  Bruno Haible  <bruno@clisp.org>
52887
52888         * m4/javacomp.m4: New file, from GNU gettext.
52889
52890 2005-01-28  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/javacomp.sh.in: New file, from GNU gettext.
52893         * lib/javacomp.h: New file, from GNU gettext.
52894         * lib/javacomp.c: New file, from GNU gettext.
52895
52896 2005-01-26  Simon Josefsson  <jas@extundo.com>
52897
52898         * lib/gai_strerror.c: Use GPL in header.
52899
52900 2005-01-26  Bruno Haible  <bruno@clisp.org>
52901
52902         * modules/javaexec: New file.
52903         * MODULES.html.sh (Java): Add javaexec.
52904
52905 2005-01-26  Bruno Haible  <bruno@clisp.org>
52906
52907         * m4/javaexec.m4: New file, from GNU gettext.
52908
52909 2005-01-26  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/javaexec.sh.in: New file, from GNU gettext.
52912         * lib/javaexec.h: New file, from GNU gettext.
52913         * lib/javaexec.c: New file, from GNU gettext.
52914
52915 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52916
52917         * modules/lchown (Depends-on): Remove lchown.h
52918
52919 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52920
52921         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52922         must be defined if the header file was not found, in order
52923         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52924
52925 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52926
52927         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52928         initializers for struct pentry_state.
52929         (__argp_error): Check return value of __asprintf
52930         (__argp_failure): Translate error message
52931
52932         * lib/argp-parse.c: Removed braces around the expansion of N_()
52933
52934 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52935
52936         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52937         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52938         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52939         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52940         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52941         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52942         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52943         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52944         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52945         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52946         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52947         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52948         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52949         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52950         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52951         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52952         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52953         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52954         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52955         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52956         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52957         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52958         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52959         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52960         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52961         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52962         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52963         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52964         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52965         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52966         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52967         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52968         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52969         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52970         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52971         Use an all-permissive copyright notice, recommended by RMS.
52972
52973 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * modules/chdir-long (Depends-on): Remove mempcpy.
52976
52977 2005-01-21  Jim Meyering  <jim@meyering.net>
52978
52979         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52980         same value as for Solaris 9.
52981
52982         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52983         component length.  This included changing the parameter to be
52984         of type `char *' rather than `char const *'.
52985         * lib/chdir-long.h (chdir_long): Update prototype.
52986
52987         * lib/openat.c (fdopendir, fstatat): New functions.
52988         * lib/openat.h: Include headers required for use of DIR and struct
52989         stat.
52990         [AT_SYMLINK_NOFOLLOW]: Define.
52991         (fdopendir, fstatat): Add prototypes.
52992
52993 2005-01-21  Bruno Haible  <bruno@clisp.org>
52994
52995         * modules/classpath: New file.
52996         * MODULES.html.sh (Java): Add classpath.
52997
52998 2005-01-21  Bruno Haible  <bruno@clisp.org>
52999
53000         * lib/classpath.h: New file, from GNU gettext.
53001         * lib/classpath.c: New file, from GNU gettext.
53002
53003 2005-01-20  Simon Josefsson  <jas@extundo.com>
53004
53005         * modules/version-etc-fsf: New file.
53006
53007 2005-01-20  Simon Josefsson  <jas@extundo.com>
53008
53009         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53010         * lib/version-etc.c: Remove version_etc_copyright.
53011         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53012         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53013
53014 2005-01-20  Simon Josefsson  <jas@extundo.com>
53015
53016         * lib/base64.h (isbase64): Add.
53017
53018         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53019         using a unsigned prototype, don't inline.
53020         (base64_decode): Use it.
53021
53022 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53023
53024         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53025         it.
53026
53027 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53028
53029         * lib/save-cwd.c (save_cwd): Remove code to support the case
53030         where fchdir is missing or flaky.
53031
53032 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53035
53036 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53037
53038         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53039         AC_LIBSOURCES now does this.
53040         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53041         with new ullong_max module.
53042
53043 2005-01-19  Bruno Haible  <bruno@clisp.org>
53044
53045         * modules/sh-quote: New file.
53046         * MODULES.html.sh (Executing programs): Add sh-quote.
53047
53048 2005-01-19  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/sh-quote.h: New file, from GNU gettext.
53051         * lib/sh-quote.c: New file, from GNU gettext.
53052
53053 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53054
53055         Merge from coreutils.
53056         * m4/ullong_max.m4: New file.
53057         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53058         (gl_MACROS): Assume localeconv exists.
53059
53060 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53061
53062         Merge changes from coreutils, as described below in several
53063         changelogs dated today.
53064
53065         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53066         (O_DIRECTORY): Remove; not needed here, since "." must be
53067         a directory.  All uses removed.
53068         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53069         universal on Suns, and we also need to test for IRIX.
53070         Revamp code to use 'if' rather than '#if'.
53071         Avoid unnecessary comparison of cwd->desc to 0.
53072
53073         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53074         for known valid error numbers rather than observed invalid ones.
53075
53076 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         * modules/ullong_max: New file.
53079
53080         * modules/chdir-long, modules/openat: New files.
53081         * modules/save-cwd (Depends-on): Depend on chdir-long.
53082         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53083
53084 2005-01-18  Jim Meyering  <jim@meyering.net>
53085
53086         Merge from coreutils.
53087         * m4/chdir-long.m4, m4/openat.m4: New files.
53088         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53089         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53090         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53091         is sane and DOES follow symlinks.  Besides, testing 20 different
53092         systems found no broken chown implementations.
53093         Prompted by a change in rsync's copy of this macro.
53094         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53095
53096         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53097
53098         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53099         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53100         NULL-means-set-to-current-time semantics.
53101         Remove temporary file immediately, rather than waiting
53102         for configure's at-exit trap code to do it.
53103
53104 2005-01-18  Jim Meyering  <jim@meyering.net>
53105
53106         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53107
53108         * lib/utimens.c (futimens): Account for the fact that futimes
53109         can also fail with errno == ENOSYS or errno == ENOENT.
53110         Patch from Dmitry V. Levin.
53111
53112         Change the name of the robust chdir function from chdir to chdir_long.
53113         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53114         (restore_cwd): Use chdir_long, not chdir.
53115         * lib/chdir-long.c: Renamed from chdir.c.
53116         * lib/chdir-long.h: Renamed from chdir.h.
53117         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53118         Hurd.
53119
53120 2005-01-18  Bruno Haible  <bruno@clisp.org>
53121
53122         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53123         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53124         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53125         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53126         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53127         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53128         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53129         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53130         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53131         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53132         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53133         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53134         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53135         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53136         Use an all-permissive copyright notice, recommended by RMS.
53137
53138 2005-01-18  Bob Proulx  <bob@proulx.com>
53139
53140         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53141         simplify offsetof() macro construct to avoid compile failure with
53142         native HP-UX 11.0 ANSI C compiler.
53143
53144 2005-01-17  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53147         redundant because stpncpy.m4 takes care of it.
53148
53149 2005-01-17  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53152
53153 2005-01-17  Bruno Haible  <bruno@clisp.org>
53154
53155         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53156         used.
53157
53158 2005-01-17  Bruno Haible  <bruno@clisp.org>
53159
53160         * lib/fwriteerror.h (fwriteerror): Change specification to include
53161         fclose.
53162         * lib/fwriteerror.c: Include <stdbool.h>.
53163         (fwriteerror): At the end, close the file stream. Record whether
53164         stdout was already closed.
53165
53166 2005-01-17  Bruno Haible  <bruno@clisp.org>
53167
53168         * lib/execute.c (environ): Declare if needed.
53169         * lib/pipe.c (environ): Likewise.
53170         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53171
53172 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53173
53174         * modules/argp: Depend on vsnprintf
53175
53176 2005-01-10  Jim Meyering  <jim@meyering.net>
53177
53178         * modules/closeout (Depends-on): Add atexit.
53179
53180 2005-01-06  Bruno Haible  <bruno@clisp.org>
53181
53182         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53183
53184 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53185
53186         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53187         definitions to be after all include files, to avoid collisions.
53188         Problem reported by Bob Proulx.
53189
53190 2005-01-04  Jim Meyering  <jim@meyering.net>
53191
53192         Changes imported from coreutils.
53193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53194         as the mkstemp template, use a temporary directory and an
53195         8.3-friendly template to avoid trouble on systems like DJGPP.
53196         Reported by Juan M. Guerrero via Stepan Kasal.
53197         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53198         close. Remove the temporary directory right away, rather than waiting
53199         for configure's at-exit trap code to do it.
53200         Suggestion from Stepan Kasal.
53201
53202 2005-01-01  Simon Josefsson  <jas@extundo.com>
53203
53204         * gnulib-tool: Print #include directives when --import'ing.
53205
53206 2004-12-28  Simon Josefsson  <jas@extundo.com>
53207
53208         * tests/test-base64.c: Include required header files.  Remove
53209         unused variables.
53210
53211 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53212
53213         * modules/error (Depends-on): Remove gettext.
53214
53215 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53216
53217         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53218         not needed.  This removes a dependency on the gettext module.
53219         [defined _LIBC]: Do not include <libintl.h>; not needed.
53220
53221 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53224         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53225
53226 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53227
53228         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53229         HAVE_DECL_STRTOLD.
53230
53231 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53232
53233         * modules/getdate (Depends-on): Remove alloca-opt.
53234
53235 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53238
53239 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53240
53241         * lib/argp-parse.c: Include <stddef.h>.
53242         (alignof, alignto): New macros.
53243         (parser_init): Don't assume that void * is aligned sufficiently
53244         for struct option.
53245
53246         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53247         need to extend the stack.
53248         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53249         large.
53250
53251 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53252
53253         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53254
53255 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53256
53257         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53258         (2004-10-24) change.  Apparently this was a false alarm.
53259
53260         * modules/getdate: Depend on alloca-opt, not alloca.
53261
53262 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53263
53264         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53265         Remove now-obsolete comment about AIX.
53266         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53267         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53268         (YYMAXDEPTH): New macro.
53269
53270 2004-12-18  Simon Josefsson  <jas@extundo.com>
53271
53272         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53273
53274 2004-12-18  Bruno Haible  <bruno@clisp.org>
53275
53276         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53277
53278 2004-12-18  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/fatal-signal.c (fatal_signals): Make non-const.
53281         (init_fatal_signals): New function.
53282         (uninstall_handlers, install_handlers): Ignore signals that were set to
53283         SIG_IGN.
53284         (at_fatal_signal): Call init_fatal_signals.
53285         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53286         SIG_IGN.
53287         Reported by Paul Eggert.
53288
53289 2004-12-18  Bruno Haible  <bruno@clisp.org>
53290
53291         * doc/alloca.texi: New file.
53292         * doc/alloca-opt.texi: New file.
53293
53294 2004-12-17  Jim Meyering  <jim@meyering.net>
53295
53296         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53297         Otherwise, install-sh could exit with improper exit status when
53298         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53299
53300 2004-12-16  Simon Josefsson  <jas@extundo.com>
53301
53302         * tests/test-base64.c: Add license.
53303
53304 2004-12-15  Stepan Kasal  <address@hidden>
53305
53306         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53307
53308 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53309
53310         * modules/getcwd (Files): Add m4/d-ino.m4.
53311         Suggested by Mark D. Baushke.
53312
53313 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53314
53315         * lib/getdate.y (textint): New member "negative".
53316         (time_zone_hhmm): New function.
53317         Expect 14 shift-reduce conflicts, not 13.
53318         (o_colon_minutes): New rule.
53319         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53320         (yylex): Set the "negative" member of signed numbers.
53321
53322 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         * doc/getdate.texi (Time of day items, Time zone items):
53325         Describe new formats +00:00, UTC+00:00.
53326
53327 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53328
53329         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53330         spurious "-l"s.  Problem reported by Stepan Kasal.
53331
53332 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53333
53334         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53335         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53336
53337 2004-12-04  Simon Josefsson  <jas@extundo.com>
53338
53339         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53340         Vandoorselaere <yoann@prelude-ids.org>.
53341
53342 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53343
53344         Changes imported from coreutils.
53345         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53346         exist.
53347         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53348
53349 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53350
53351         Changes imported from coreutils.
53352         * lib/hard-locale.c: Assume <locale.h> exists.
53353         Include "strdup.h".
53354         (GLIBC_VERSION): New macro.
53355         (hard_locale): Assume setlocale exists.
53356         Rewrite to avoid #ifdef.
53357         Use strdup rather than malloc + strcpy.
53358         * lib/human.c: Assume <locale.h> exists.
53359         (human_readable): Assume localeconv exists.
53360
53361 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53362
53363         * modules/hard-locale (Depends-on): Add strdup.
53364
53365 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53366
53367         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53368         convert T2, not T.  (Imported from libc.)
53369
53370 2004-11-30  Simon Josefsson  <jas@extundo.com>
53371
53372         * modules/restrict (License): Change to LGPL.
53373
53374 2004-11-30  Simon Josefsson  <jas@extundo.com>
53375
53376         * m4/restrict.m4: Add copyright and copying conditions.
53377
53378 2004-11-30  Simon Josefsson  <jas@extundo.com>
53379
53380         * m4/base64.m4: New file.
53381
53382 2004-11-30  Simon Josefsson  <jas@extundo.com>
53383
53384         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53385         base64.
53386
53387         * tests/test-base64.c: New file.
53388
53389         * modules/base64: New file.
53390
53391 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53394         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53395
53396         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53397
53398 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53401         (__getcwd.c): Don't restore errno; glibc doesn't.
53402         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53403         first, falling back to our code only if its results look suspicious.
53404         Ensure that the resulting buffer is only as large as necessary.
53405
53406         * lib/readutmp.c: Include readutmp.h first.
53407         Include <errno.h>, since readutmp.h no longer does that.
53408         * lib/readutmp.h: Don't include <errno.h>,
53409         <sys/param.h>, <time.h>; not needed to establish interface.
53410         (errno): Remove decl.
53411         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53412         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53413         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53414
53415 2004-11-28  Simon Josefsson  <jas@extundo.com>
53416
53417         * lib/base64.h, base64.c: New file.
53418
53419 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53420
53421         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53422
53423 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53426         (Depends-on): Remove pathmax, same.  Add mempcpy.
53427         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53428         (Makefile.am): Append getcwd.h to lib_SOURCES.
53429         (Include): Add getcwd.h.
53430         (Maintainer): Change from Jim Meyering to "all, glibc",
53431         since getdate now uses intended-for-glibc code.
53432         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53433         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53434
53435 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53438         HP's ANSI C compiler.
53439         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53440         Declaring int functions causes warnings on some modern systems and
53441         shouldn't be needed to compile on ancient ones.
53442         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53443         defined.
53444
53445         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53446         with the following changes.
53447         (__set_errno): Parenthesize properly.
53448         Include <stdbool.h>.
53449         (MIN, MAX, MATCHING_INO): New macros.
53450         (__getcwd): Define with prototype, not K&R form.
53451         Use heuristics to allocate default buffer on stack if possible.
53452         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53453         behavior, and to avoid the PATH_MAX limit when computing
53454         ../../../../...
53455         Use MATCHING_INO to compare inode number to file.
53456         Check for arithmetic overflow in size calculations.
53457         Fix bug in reallocation of dot array that caused getcwd to fail
53458         on directories nested deeper than 75.
53459         Be more careful about saving errno on error.
53460         Do not use realloc; use only free+malloc, as this is a bit
53461         more flexible and avoids a needless copy operation.
53462         Do not inspect st_dev and st_ino for symbolic links; POSIX
53463         doesn't specify the latter.
53464         Check for closedir errors.
53465         Avoid needless casts.
53466         Use "#ifdef weak_alias" around weak_alias, to be like other
53467         glibc code.
53468         The following changes to getcwd.c have effect only when used in
53469         gnulib; they have no effect inside glibc proper.
53470         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53471         as alloca isn't used.
53472         (alloca, __alloca): Likewise.
53473         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53474         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53475         unconditionally, as gnulib assumes C89 or better.
53476         Do not include <sys/param.h>.
53477         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53478         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53479         better.
53480         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53481         Include <dirent.h> in a way that is compatible with modern Autoconf.
53482         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53483         New macros, if not already defined.
53484         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53485         Use "_LIBC", not "defined _LIBC", for consistency.
53486         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53487         a mempcpy module.
53488         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53489         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53490         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53491         credit only to Jim Meyering and adjust the copyright dates.
53492         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53493         <stdlib.h>, <unistd.h>, "pathmax.h".
53494         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53495         (INITIAL_BUFFER_SIZE): Remove.
53496         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53497
53498 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53499
53500         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53501         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53502         Use the _ONCE methods, for efficiency.
53503         Check for fcntl.h.  In test program, include <errno.h>
53504         and <fcntl.h> if available.  Remove old K&R cruft from
53505         test program.  Check for common errors in GNU/Linux,
53506         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53507         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53508         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53509         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53510         name accordingly.
53511         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53512         accommodate new getcwd.c.
53513         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53514         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53515         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53516         that's all we need now.
53517
53518 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53519
53520         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53521         argp-parse.c depends on getopt internals, that means we should
53522         always use our getopt, to be on the safe side.
53523         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53524         order not to spoil the result of an eventual previous invocation
53525         of gl_GETOPT_SUBSTITUTE.
53526
53527 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53528
53529         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53530         redefinition warnings. To avoid them, include the defines
53531         in `#if !defined __need_getopt ... #endif'. The only place
53532         where __getopt_argv_const is used is in definitions
53533         of getopt_long and getopt_long_only below, which are as well
53534         protected by `#ifndef __need_getopt'.
53535         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53536         __need_getopt after including <stdio.h> and <unistd.h> These
53537         headers might have defined it.
53538
53539 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53542
53543 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53544
53545         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53546         (futimens): New function, which uses futimes if available.
53547         (futimens, utimens): Support timespec==NULL, with same semantics
53548         as utime and utimens.
53549         * lib/utimens.h (futimens): New decl.
53550
53551 2004-11-23  Jim Meyering  <jim@meyering.net>
53552
53553         * lib/getopt_.h: Remove trailing blanks.
53554
53555 2004-11-23  Jim Meyering  <jim@meyering.net>
53556
53557         * lib/__fpending.c: Add comment.
53558
53559 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * modules/canonicalize (Depends-on): Add xreadlink.
53562         Problem reported by James Youngman.
53563
53564 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53565
53566         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53567         New macros.
53568         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53569         optopt): Use them instead of invoking ## directly; otherwise, the
53570         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53571
53572 2004-11-19  Bruno Haible  <bruno@clisp.org>
53573
53574         * lib/strtok_r.c: Move comments from here...
53575         * lib/strtok_r.h: ... to here.
53576
53577 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53578
53579         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53580         implementations that mishandle size_t overflow.
53581
53582 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53583
53584         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53585         might fail.  Problem reported by Yoann Vandoorselaere.
53586         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53587         implementations that mishandle size_t overflow.
53588
53589 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53590
53591         * modules/canon-host (Depends-on): Add strdup.
53592
53593 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53596
53597 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53598
53599         * lib/canon-host.c: Include "strdup.h".
53600         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53601         Use strdup instead of malloc/strcpy to duplicate strings.
53602
53603         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53604         (human_space_before_unit): New constant.
53605         * lib/human.c (human_readable): Support it.
53606
53607         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53608         (xgetcwd): Set errno correctly when failing.
53609         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53610         the failure is actually due to a PATH_MAX problem.
53611
53612         Further getopt changes to make it more likely that glibc will
53613         buy the changes back.
53614         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53615         (getopt): Use it, so to preserve glibc semantic
53616         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53617         when compiling for libc.
53618         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53619         (getopt_long, getopt_long_only): Use it.
53620
53621         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53622         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53623         (getopt): Argv is now char * const *, as per standard.
53624         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53625         not char *__getopt_argv_const *.
53626         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53627         _getopt_long_only_r): Likewise.
53628         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53629         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53630         _getopt_long_r, _getopt_long_only_r): Likewise.
53631         * lib/getopt_.h (__getopt_argv_const): Remove.
53632         (getopt): Argv is now char * const *, as per standard.
53633
53634         * lib/getdate.y (tORDINAL): New token.
53635         (day, relunit): Allow it for relative times.
53636         (relative_time_table): Use tORDINAL for ordinals.
53637
53638 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53639
53640         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53641         Document that "second" isn't allowed as an ordinal number.
53642
53643 2004-11-16  Jim Meyering  <jim@meyering.net>
53644
53645         * modules/closeout (Depends-on): Add fpending.
53646
53647 2004-11-15  Jim Meyering  <jim@meyering.net>
53648
53649         * lib/closeout.c: Include "__fpending.h" once again.
53650         Include <stdbool.h>.
53651         (close_stdout): Don't fail just because stdout was closed initially,
53652         since some programs don't write to stdout in the normal course of
53653         operation (other than --version and --help), and we don't want this
53654         function to make e.g. `touch file >&-' fail.
53655         But do fail if it was closed and someone has tried to write to it.
53656         E.g., `printf foo >&-' must fail.
53657
53658 2004-11-13  Jim Meyering  <jim@meyering.net>
53659
53660         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53661
53662 2004-11-12  Simon Josefsson  <jas@extundo.com>
53663
53664         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53665         small doc fix is still pending.
53666
53667 2004-11-11  Simon Josefsson  <jas@extundo.com>
53668
53669         * modules/strtok_r: New file.
53670
53671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53672         strtok_r.
53673
53674 2004-11-11  Simon Josefsson  <jas@extundo.com>
53675
53676         * m4/strtok_r.m4: New file.
53677
53678         * m4/getopt.m4: Replace opterr.
53679
53680 2004-11-11  Simon Josefsson  <jas@extundo.com>
53681
53682         * lib/strtok_r.h, strtok_r.c: New file.
53683
53684 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53687         of replacing opterr, getopt, etc.  This should handle the
53688         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53689
53690 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53693         we can stop lying to compilers about the constness of argv when we
53694         are compiled outside glibc.
53695         (getopt, getopt_long, getopt_long_only): Use it.
53696         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53697         _getopt_internal, getopt): Likewise.
53698         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53699         _getopt_long_only_r): Likewise.
53700         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53701         _getopt_long_r, _getopt_long_only_r): Likewise.
53702
53703         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53704         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53705         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53706         the other external symbols.
53707         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53708         declaration, since the above renaming now works around collisions.
53709
53710 2004-11-11  Jim Meyering  <jim@meyering.net>
53711
53712         * lib/linebreak.c: Remove trailing blanks.
53713         * lib/alloca_.h: Likewise.
53714         * lib/acosl.c: Likewise.
53715         * lib/euidaccess.c: Likewise.
53716         * lib/allocsa.h: Likewise.
53717
53718 2004-11-10  Simon Josefsson  <jas@extundo.com>
53719
53720         * m4/getaddrinfo.m4: New file.
53721
53722 2004-11-10  Simon Josefsson  <jas@extundo.com>
53723
53724         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53725
53726 2004-11-10  Simon Josefsson  <jas@extundo.com>
53727
53728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53729         getaddrinfo.
53730
53731         * modules/getaddrinfo: New file.
53732
53733 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53734
53735         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53736
53737 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53738
53739         * lib/mktime.c (SHR): New macro, which is a portable
53740         substitute for >> that should work even on Crays.
53741         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53742         Problem reported by Mark D. Baushke in
53743         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53744         * lib/getdate.y (SHR): Likewise.
53745         (tm_diff): Use it.
53746         * lib/strftime.c (SHR): Likewise.
53747         (tm_diff): Use it.
53748         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53749         quote_these_too, so that right shifts are well defined.  All uses
53750         changed.
53751
53752 2004-11-10  Jim Meyering  <jim@meyering.net>
53753
53754         Ensure that no close failure goes unreported.
53755         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53756         return early when it seems there's nothing to flush.
53757         Don't include __fpending.h.
53758
53759 2004-11-10  Jim Meyering  <jim@meyering.net>
53760
53761         * modules/closeout (Depends-on): Remove fpending.
53762
53763 2004-11-10  Jim Meyering  <jim@meyering.net>
53764
53765         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53766
53767 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53770         gl_FUNC_STRFTIME.
53771         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53772         and AC_REQUIRE when possible, to avoid duplicate checks.
53773         Check for <wchar.h>.
53774
53775 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53776
53777         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53778
53779 2004-11-09  Bruno Haible  <bruno@clisp.org>
53780
53781         * m4/sockpfaf.m4: New file.
53782
53783 2004-11-05  Bruno Haible  <bruno@clisp.org>
53784
53785         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53786         Reported by Mark D. Baushke <mdb@cvshome.org>.
53787
53788 2004-11-04  Bruno Haible  <bruno@clisp.org>
53789
53790         2004-09-11  Bruno Haible  <bruno@clisp.org>
53791                 * allocsa.valgrind: New file.
53792         2004-02-06  Bruno Haible  <bruno@clisp.org>
53793                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53794                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53795                 Reported by Christopher Seip <chris.seip@hp.com>.
53796
53797 2004-11-04  Bruno Haible  <bruno@clisp.org>
53798
53799         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53800         (Makefile.am): Distribute it.
53801
53802 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53803
53804         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53805         with errno == ERANGE if the buffer is too small.
53806         Problem reported by Mark D. Baushke.
53807
53808 2004-11-03  Albert Chin  <china@thewrittenword.com>
53809             Paul Eggert  <eggert@cs.ucla.edu>
53810
53811         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53812         equivalent, substitute $ac_type for equivalent type rather than
53813         blindly using uint32_t *always* which won't work if uint32_t is not
53814         available.  Define _UINT32_T to work around typedef of uint32_t if
53815         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53816         2.5.1.
53817
53818 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53819
53820         * m4/jm-macros.m4: Sync from coreutils.
53821         (gl_MACROS): Check for mbrlen, for pathchk.
53822         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53823
53824 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         * lib/xreadlink.c (MAXSIZE): New macro.
53827         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53828         size does not exceed MAXSIZE.  Avoid cast.
53829         As suggested by Mark D. Baushke in
53830         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53831         if readlink fails with buffer size just under MAXSIZE, try again
53832         with MAXSIZE.
53833
53834 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53837
53838 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53839         and  Paul Eggert  <eggert@cs.ucla.edu>
53840
53841         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53842         (get_date): Overparenthesize to avoid GCC warning.
53843
53844 2004-11-02  Bruno Haible  <bruno@clisp.org>
53845
53846         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53847         returns void.
53848
53849 2004-11-02  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53852         function returns void.
53853
53854 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53857         fflush_unlocked, flockfile, funlockfile, funlockfile,
53858         fputs_unlocked, putc_unlocked.
53859
53860 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53863         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53864         already declared.
53865
53866 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         * modules/getdate (Files): Add doc/getdate.texi.
53869         (Depends-on): Add setenv, xalloc.
53870
53871 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53872
53873         * lib/getdate.y: Add support for TZ="foo" within a date string.
53874         Fix some bugs near time_t boundaries.  Reject dates with
53875         out-of-range components, e.g., "Sept 31".
53876         Include <stdlib.h>, "setenv.h", "xalloc.h".
53877         (ISDIGIT_LOCALE): Remove; unused.
53878         Note that the TZ and time functions used here are not reentrant.
53879         (mktime_ok, get_tz): New functions.
53880         (TZBUFSIZE): New constant.
53881         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53882         This requires that we sometimes generate our own TZ="XXX..." setting.
53883
53884 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53885
53886         * doc/getdate.texi: New file, from coreutils with modifications for
53887         the new TZ parsing.
53888
53889 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53890
53891         * lib/mktime.c (not_equal_tm): Remove redundant check.
53892
53893 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53894
53895         * modules/regex (lib_SOURCES): Add regex.c.
53896         Reported by James Youngman in
53897         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53898
53899 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53900
53901         * lib/getdate.y: Use Bison 1.875 features, and some minor
53902         code cleanups.  This change does not affect semantics.
53903         Don't include <stdlib.h>; no longer needed.
53904         Don't include unlocked-io.h; only the "#if TEST" code uses
53905         stdio, and performance isn't crucial there.
53906         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53907         Bison 1.875 features as described below.
53908         All uses of "PC." replaced by "pc->".
53909         (YYSTYPE): Add a forward declaration.
53910         (yylex, yyerror): Use full prototypes in forward decls.
53911         Use "%pure-parser" rather than obsolescent "%pure_parser".
53912         Use %parse-param and %lex-param instead of obsolescent
53913         YYPARSE_PARAM and YYLEX_PARAM.
53914         (meridian_table, month_and_day_table, time_units_table,
53915         relative_time_table, time_zone_table, military_table,
53916         lookup_zone, lookup_word, get_date):
53917         Use NULL instead of 0 where appropriate.
53918         (to_hour): Avoid abort (), to avoid a dependency on
53919         stdlib.h.
53920         (yyerror, yylex): Now accepts parser_control * arg.
53921         (main) [TEST]: Use '\0' rather than 0 for char.
53922
53923 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53926
53927 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53928
53929         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53930         It's now the caller's responsibility to handle the case where
53931         !HAVE_GETPAGESIZE && !defined getpagesize.
53932
53933         * lib/mktime.c (leapyear): Arg is long int, not int.
53934
53935 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53936
53937         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53938
53939 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53942         missing.  Problem reported by James Youngman.
53943
53944 2004-10-16  Simon Josefsson  <jas@extundo.com>
53945
53946         * gnulib-tool: Fix comments.  Fix parse problem.
53947         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53948
53949 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53950
53951         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53952         implementation of getopt_long.  Problem reported by Alexander Taler in:
53953         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53954
53955 2004-10-15  Bruno Haible  <bruno@clisp.org>
53956
53957         * gnulib-tool: Untabify. Initialize supplied_libname.
53958         (func_usage): More homogenous output.
53959         (func_modules_transitive_closure, func_modules_to_filelist,
53960         func_emit_lib_Makefile_am): New functions.
53961         (func_import): New function, extracted from big case statement. Use
53962         func_get_license, func_modules_transitive_closure,
53963         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53964         opt_lgpl. Don't use test -a, as it's not portable.
53965         (func_create_testdir): Use func_modules_transitive_closure,
53966         func_modules_to_filelist, func_emit_lib_Makefile_am.
53967
53968 2004-10-15  Bruno Haible  <bruno@clisp.org>
53969
53970         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53971
53972 2004-10-15  Bruno Haible  <bruno@clisp.org>
53973
53974         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53975         the portions belonging to each module.
53976         Suggested by Derek Robert Price <derek@ximbiot.com>.
53977
53978 2004-10-12  Simon Josefsson  <jas@extundo.com>
53979
53980         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53981         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53982         to real functions.
53983
53984 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53985
53986         * modules/vsnprintf: New file.
53987
53988 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53989
53990         * m4/vsnprintf.m4: New file.
53991
53992 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53993
53994         * lib/vsnprintf.h: New file.
53995         * lib/vsnprintf.c: New file.
53996
53997 2004-10-11  Bruno Haible  <bruno@clisp.org>
53998
53999         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54000         vsnprintf.
54001
54002 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54003
54004         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54005
54006 2004-10-07  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54009         fits into the provided buffer.
54010
54011 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54012
54013         * lib/diacrit.c, diacrit.h: Add GPL notice.
54014
54015         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54016         notice.
54017         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54018         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54019         This avoids a potential constant-folding bug.
54020
54021 2004-10-05  Bruno Haible  <bruno@clisp.org>
54022
54023         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54024         for the declaration of strsep.
54025
54026 2004-10-05  Bruno Haible  <bruno@clisp.org>
54027
54028         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54029
54030 2004-10-04  Simon Josefsson  <jas@extundo.com>
54031
54032         * modules/memmem: New file.
54033         * tests/test-memmem.c: New file.
54034         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54035
54036 2004-10-04  Simon Josefsson  <jas@extundo.com>
54037
54038         * m4/memmem.m4: New file.
54039
54040 2004-10-04  Simon Josefsson  <jas@extundo.com>
54041
54042         * lib/memmem.h: New file.
54043         * lib/memmem.c: New file, taken from glibc.
54044
54045 2004-10-04  Simon Josefsson  <jas@extundo.com>
54046
54047         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54048         '#ifdef USE_UNLOCKED_IO'.
54049
54050 2004-10-04  Simon Josefsson  <jas@extundo.com>
54051
54052         * config/srclist.txt: Add memmem from glibc.
54053
54054 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54055
54056         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54057
54058         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54059         modules/exclude, modules/getdate, modules/getline,
54060         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54061         modules/getusershell, modules/linebuffer, modules/md5,
54062         modules/mountlist, modules/posixtm, modules/readtokens,
54063         modules/readutmp, modules/regex, modules/sha1,
54064         modules/version-etc, modules/yesno:
54065         Remove dependency on unlocked-io.
54066
54067 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54070
54071         * m4/unlocked-io.m4: Add copyright notice.
54072         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54073
54074 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54075
54076         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54077         * lib/xmalloc.c (xmemdup): Likewise.
54078         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54079         XFREE): Remove these long-obsolescent macros.
54080         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54081         * lib/xstrdup.c: Remove.
54082
54083         * lib/regex.c (re_comp): Cast gettext return value to char *,
54084         Problem reported by Martin Neitzel via Mark D. Baushke.
54085
54086 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54087
54088         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54089         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54090         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54091         regex.c, sha1.c, version-etc.c, yesno.c:
54092         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54093         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54094         the includer's responsibility.
54095
54096         Sync from coreutils.
54097
54098         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54099         points to the start of a string, as the C Standard says the
54100         resulting behavior is undefined.
54101
54102         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54103         simple -> simple_backups, numbered_existing ->
54104         numbered_existing_backups, numbered -> numbered_backups
54105         to avoid shadowing problems.  All uses changed.
54106         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54107         * lib/backupfile.c (check_extension, numbered_backup):
54108         Rename locals to avoid shadowing 'basename'.
54109         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54110         once.
54111
54112         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54113         * lib/.cvsignore: Add getopt.h.
54114
54115 2004-10-04  Bruno Haible  <bruno@clisp.org>
54116
54117         * modules/README: New file.
54118         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54119         not a module.
54120
54121 2004-10-02  Jim Meyering  <jim@meyering.net>
54122
54123         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54124
54125 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54126
54127         * modules/strsep: New file.
54128
54129 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54130
54131         * m4/strsep.m4: New file.
54132
54133 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54134
54135         * lib/strsep.h: New file.
54136         * lib/strsep.c: New file.
54137
54138 2004-10-01  Simon Josefsson  <jas@extundo.com>
54139
54140         * lib/snprintf.c (snprintf): Handle size==0.
54141
54142 2004-10-01  Simon Josefsson  <jas@extundo.com>
54143             Bruno Haible  <bruno@clisp.org>
54144
54145         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54146         (snprintf): Declare 'args'.
54147
54148 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54149
54150         * lib/snprintf.c: Remove comments as to why each header is needed.
54151
54152 2004-10-01  Bruno Haible  <bruno@clisp.org>
54153
54154         * MODULES.html.sh: Add strsep.
54155
54156 2004-09-30  Simon Josefsson  <jas@extundo.com>
54157
54158         * modules/snprintf: New file.
54159
54160 2004-09-30  Simon Josefsson  <jas@extundo.com>
54161
54162         * m4/snprintf.m4: New file.
54163
54164 2004-09-30  Simon Josefsson  <jas@extundo.com>
54165
54166         * lib/snprintf.h, lib/snprintf.c: New files.
54167
54168 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54169
54170         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54171         (hol_entry_help): Never translate an empty string.
54172         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54173         * lib/argp.h (OPTION_NO_TRANS): New option.
54174
54175 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54176
54177         * modules/argp (Maintainer): Replace Simon Josefsson
54178         by Sergey Poznyakoff.
54179
54180 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54183         changes merged back into glibc.
54184
54185 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54186
54187         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54188
54189 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54190
54191         * lib/xvasprintf.c: Include xalloc.h.
54192         (xvasprintf): Use xalloc_die, not xmalloc_die.
54193
54194 2004-09-29  Bruno Haible  <bruno@clisp.org>
54195
54196         * modules/alloca-opt: New file, derived from modules/alloca.
54197         * modules/allocsa: Depend on alloca-opt instead of alloca.
54198         * modules/setenv: Likewise.
54199         * modules/vasnprintf: Likewise.
54200         * MODULES.html.sh: Add alloca-opt.
54201
54202 2004-09-28  Simon Josefsson  <jas@extundo.com>
54203
54204         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54205         LGPL, and to replace license template from GPL to LGPL.
54206
54207 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54208
54209         * modules/dummy: Change license to LGPL.
54210
54211 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54212
54213         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54214
54215 2004-09-24  Simon Josefsson  <jas@extundo.com>
54216
54217         * modules/minmax (License): Change from GPL to LGPL.
54218
54219 2004-09-23  Simon Josefsson  <jas@extundo.com>
54220
54221         * gnulib-tool (--import): Typo.
54222
54223 2004-09-23  Simon Josefsson  <jas@extundo.com>
54224
54225         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54226
54227 2004-09-22  Bruno Haible  <bruno@clisp.org>
54228
54229         * modules/*: Add 'License' field.
54230         * gnulib-tool: Accept --extract-license option.
54231         (func_get_license): New function.
54232
54233 2004-09-21  Bruno Haible  <bruno@clisp.org>
54234
54235         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54236         Reported by Simon Josefsson.
54237
54238 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54239
54240         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54241         gl_AC_TYPE_LONG_LONG.
54242
54243 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54246
54247 2004-09-18  Simon Josefsson  <jas@extundo.com>
54248         and  Paul Eggert  <eggert@cs.ucla.edu>
54249
54250         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54251         calls with autoreconf.  Define GL_LIB.
54252
54253 2004-09-14  Karl Berry  <karl@gnu.org>
54254
54255         * config/srclist.txt: unsync setenv.c, sigh.
54256
54257 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54260         Problem reported by Bruno Haible in:
54261         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54262
54263 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54264
54265         * config/srclist.txt: Comment out argp-pvh.c.
54266
54267 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54268
54269         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54270         in case some system header has #define'd it.  Problem reported by
54271         Soeren D. Schulze in
54272         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54273
54274 2004-09-09  Karl Berry  <karl@gnu.org>
54275
54276         * regex.[ch]: delete from the root.  These were supposed to be
54277                 synced with emacs cvs, but this has not happened for about
54278                 a year, and anyway nothing else uses emacs regex.[ch].
54279                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54280                 lib/regex[.ch] is untouched.
54281
54282 2004-09-09  Bruno Haible  <bruno@clisp.org>
54283
54284         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54285
54286 2004-09-09  Bruno Haible  <bruno@clisp.org>
54287
54288         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54289         modifications.
54290         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54291
54292 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54293
54294         * modules/xvasprintf: New file.
54295         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54296
54297 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54298
54299         * lib/xvasprintf.h: New file.
54300         * lib/xvasprintf.c: New file.
54301         * lib/xasprintf.c: New file.
54302
54303 2004-09-08  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54306
54307 2004-09-08  Bruno Haible  <bruno@clisp.org>
54308
54309         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54310         length is > INT_MAX.
54311         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54312         more.
54313
54314 2004-09-08  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/stdint_.h: New file, taken from GNU clisp.
54317
54318 2004-09-08  Bruno Haible  <bruno@clisp.org>
54319             Oskar Liljeblad  <oskar@osk.mine.nu>
54320
54321         * modules/stdint: New file.
54322         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54323
54324 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54325
54326         Import from coreutils.
54327         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54328         strings on unbounded length.  alloca's performance benefits aren't
54329         that important here.
54330         (V_STRDUP): Remove.
54331         (parse_with_separator): New function, with most of the internals
54332         of the old parse_user_spec.  Allow user to omit both user and group,
54333         for compatibility with FreeBSD.
54334         Clone only the user name, not the entire spec.
54335         Do not set *uid, *gid unless entirely successful.
54336         Avoid memory leak in some failing cases.
54337         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54338         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54339         (parse_user_spec): Rewrite to use parse_with_separator.
54340
54341 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         * modules/userspec: Don't depend on alloca.
54344
54345 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54346
54347         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54348
54349 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54350
54351         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54352         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54353         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54354
54355 2004-08-16  Simon Josefsson  <jas@extundo.com>
54356
54357         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54358         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54359         Add --dry-run for --import.
54360         Let user provided command line parameters override configure.ac
54361         settings.
54362
54363 2004-08-12  Simon Josefsson  <jas@extundo.com>
54364
54365         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54366         as discussed with Paul Eggert in threads rooted at
54367         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54368         and
54369         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54370         Before, the test was empty, and relied on ELIDE_CODE in source
54371         code.)
54372         (gl_PREREQ_GETOPT): New macro.
54373         (gl_GETOPT): Use them.
54374
54375 2004-08-12  Simon Josefsson  <jas@extundo.com>
54376
54377         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54378         * lib/getopt_.h: Renamed from getopt.h.
54379
54380 2004-08-12  Simon Josefsson  <jas@extundo.com>
54381
54382         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54383         Change default library name from libfoo to libgnu.
54384         Now, if you have a configure.ac that says:
54385                 gl_SOURCE_BASE(gl)
54386                 gl_M4_BASE(gl/m4)
54387                 gl_MODULES(error getopt etcetera)
54388                 gl_INIT
54389         you can import all you need by running:
54390                 ../gnulib/gnulib-tool --import
54391
54392         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54393         (Makefile.am): Rewrite, use logic from argz.
54394         (Include): Use <getopt.h> instead of "getopt.h".
54395
54396 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54397
54398         * modules/argp (Files): Add m4/unlocked-io.m4.
54399         (Depends-on): Add extensions.
54400
54401 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54402
54403         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54404         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54405         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54406         Check for program_invocation_name, program_invocation_short_name,
54407         flockfile, funlockfile, features.h, _getopt_long_only_r.
54408
54409 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54410
54411         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54412         its complicated substitute.
54413         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54414         and program_invocation_name.
54415         (__argp_basename) [!_LIBC]: Remove; the only use was
54416         replaced by its body.
54417         (__argp_short_program_name): Change condition from
54418         !defined __argp_short_program_name to
54419         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54420         to match argp-namefrob.h.
54421         (__argp_failure): Don't assume strerror_r returns char *.
54422         * lib/argp-parse.c (N_): Define unconditionally.
54423         (argp_default_options): Fill out initializers with 0 to avoid
54424         gcc warnings.
54425
54426 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54429         getopt1.c.
54430
54431 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         Merge from coreutils.
54434
54435         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54436
54437         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54438         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54439
54440 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         Merge from coreutils.
54443
54444         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54445         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54446         for Reliant Unix 5.43.
54447
54448         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54449         (union fooround): Use uintmax_t, not long int.
54450         The rest is a merge from libc:
54451         [defined _LIBC]: Include <shlib-compat.h>.
54452         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54453
54454         * lib/settime.c (settime): Recode to avoid warning with
54455         Sun Forte C 6U2.
54456
54457         * lib/strverscmp.c: Convert to UTF-8.
54458
54459 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54460
54461         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54462         m4/uintmax_t.m4.
54463
54464 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54465
54466         * modules/xalloc-die: New file.
54467         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54468
54469         * modules/md5 (Files): Add m4/uint32_t.m4.
54470         * modules/sha1: Renamed from modules/sha.
54471         (Files):
54472         Rename lib/sha.h to lib/sha1.h.
54473         Rename lib/sha.c to lib/sha1.c.
54474         Rename m4/sha.m4 to m4/sha1.m4.
54475         (lib_SOURCES): Likewise.
54476         (configure.ac): Rename gl_SHA to gl_SHA1.
54477         (Include): sha.h -> sha1.h.
54478
54479 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54482         * m4/sha1.m4: Renamed from sha.m4.
54483         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54484
54485 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         * lib/obstack.h (obstack_empty_p):
54488         Don't assume that chunk->contents is suitably aligned.
54489         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54490         Likewise. Problem reported by Benno in
54491         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54492
54493         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54494         readable.  This could be improved further but it'd take some work.
54495
54496 2004-08-08  Simon Josefsson  <jas@extundo.com>
54497
54498         * modules/xgethostname (Depends-on): Remove exit and error (not
54499         used).
54500
54501         * modules/getpass-gnu: Add getpass.h.
54502         (Depends-on): Add stdbool.
54503         * modules/getpass: Add getpass.h.
54504
54505 2004-08-08  Simon Josefsson  <jas@extundo.com>
54506
54507         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54508         Check getpass declaration.
54509
54510 2004-08-08  Simon Josefsson  <jas@extundo.com>
54511
54512         * lib/xgethostname.c: Don't include error.h (not used).
54513
54514         * lib/getpass.h: Add.
54515         * lib/getpass.c: Include getpass.h first.
54516
54517 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * lib/xalloc-die.c: New file.
54520         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54521         All uses removed.
54522         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54523         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54524         xalloc-die.c.
54525         (_, N_, xalloc_die): Move to xalloc-die.c.
54526         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54527         so that we needn't mess with xalloc_msg_memory_exhausted.
54528
54529         * lib/sha1.h: Renamed from sha.h.
54530         (SHA1_H): Renamed from _SHA_H.
54531         (sha1_ctx): Renamed from sha_ctx.
54532         (sha1_init_ctx): Renamed from sha_init_ctx.
54533         (sha1_process_block): Renamed from sha_process_block.
54534         (sha1_process_bytes): Renamed from sha_process_bytes.
54535         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54536         (sha1_read_ctx): Renamed from sha_read_ctx.
54537         (sha1_stream): Renamed from sha_stream.
54538         (sha1_buffer): Renamed from sha_buffer.
54539         * lib/sha1.c: Likewise; renamed from sha.c.
54540         Do not include <sys/types.h>.
54541         Include <stddef.h> rather than <stdlib.h>.
54542
54543 2004-08-08  Bruno Haible  <bruno@clisp.org>
54544
54545         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54546         FILESYSTEM_PREFIX_LEN.
54547         * lib/progreloc.c: Likewise.
54548         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54549
54550 2004-08-06  Simon Josefsson  <jas@extundo.com>
54551
54552         * modules/progname (Depends-on): Don't depend on stdbool.
54553
54554 2004-08-06  Simon Josefsson  <jas@extundo.com>
54555
54556         * modules/getsubopt: New file.
54557         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54558         getsubopt.
54559
54560 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         More merge from coreutils.
54563
54564         * m4/utimens.m4, m4/utimecmp.m4: New files.
54565         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54566         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54567         prereq.m4, sha.m4: Import changes from coreutils.
54568
54569 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54570
54571         More merge from coreutils.
54572         * modules/raise, modules/readtokens0, modules/utimens:
54573         * modules/utimecmp, module/xnanosleep: New files.
54574         * modules/strftime: Add lib/strftime.h.
54575         Change include from <time.h> to "strftime.h".
54576         * modules/yesno: Add lib/yesno.h.
54577         * modules/backupfile: Remove lib/addext.c.
54578         * modules/euidaccess: Add stat-macros.h.
54579         * modules/canonicalize, modules/euidaccess,
54580         modules/filemode, modules/lchown, modules/makepath,
54581         modules/rmdir, modules/stat: Likewise.
54582
54583 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         Merge from tar.
54586         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54587         SIZE_MAX is a valid preprocessor constant.
54588         (__argp_basename): Change from "#ifndef _LIBC"
54589         to "#ifndef __argp_short_program_name", so that
54590         we don't compile these functions for tar.
54591
54592         More merges from coreutils.
54593         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54594         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54595         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54596         * lib/addext.c: Remove; no longer needed.
54597         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54598         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54599         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54600         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54601         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54602         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54603         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54604         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54605         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54606         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54607         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54608         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54609         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54610         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54611         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54612         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54613         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54614         Import changes from coreutils.
54615
54616 2004-08-05  Simon Josefsson  <jas@extundo.com>
54617
54618         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54619
54620 2004-08-05  Simon Josefsson  <jas@extundo.com>
54621
54622         * m4/getsubopt.m4: New file.
54623
54624 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         Merge from coreutils.
54627
54628         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54629         * m4/getcwd-path-max.m4: New files.
54630
54631         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54632         FILESYSTEM_PREFIX_LEN ->
54633         FILE_SYSTEM_PREFIX_LEN.
54634         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54635         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54636         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54637         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54638
54639         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54640         prerequisite modules now handle the DOS stuff.
54641         Don't check for unistd.h.
54642
54643 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         Merge from coreutils.
54646
54647         * lib/.gdb-history: Remove; this doesn't belong here.
54648
54649         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54650         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54651         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54652         * lib/getcwd.c: New files.
54653
54654         * lib/dirname.h: Include <stdbool.h>.
54655         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54656         for consistency with POSIX terminology.  All uses changed.
54657         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54658         (strip_trailing_slashes): Use bool for booleans.
54659         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54660
54661         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54662         sometimes returns a positive errno value even when it succeeds.
54663         (print_errno_message) [!LIBC]: Fall back on strerror if
54664         __strerror_r fails.
54665
54666         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54667         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54668         (longest_relative_suffix): New function.
54669         (path_concat): Use it.  Assume first argument is not NULL.
54670         Port to DOS.  Omit redundant separators.
54671         Report an error instead of returning NULL.
54672         Use mempcpy instead of memcpy.
54673         (xpath_concat): Remove: not declared or used.
54674
54675         * lib/same.h: Include <stdbool.h>
54676         (same_name): Return bool, not int.
54677         * lib/same.c (same_name): Likewise.
54678         (errno): Don't declare; we assume C89 or better now.
54679
54680         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54681         if not already defined.
54682
54683         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54684         * lib/dup-safer.c (errno): Likewise.
54685
54686 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         Merge from coreutils.
54689         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54690         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54691         * modules/path-concat: Don't depend on strdup.
54692
54693 2004-08-03  Simon Josefsson  <jas@extundo.com>
54694
54695         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54696         * lib/progname.h: Don't include stdbool.h.
54697
54698 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54699
54700         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54701         * MODULES.html.sh (func_all_modules): Remove fatal.
54702
54703 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54706
54707 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54708
54709         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54710         working.
54711
54712 2004-08-02  Simon Josefsson  <jas@extundo.com>
54713
54714         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54715         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54716         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54717
54718 2004-08-01  Simon Josefsson  <jas@extundo.com>
54719
54720         * lib/xgetdomainname.c: Include stdlib.h, for free().
54721
54722 2004-07-19  Bruno Haible  <bruno@clisp.org>
54723
54724         * MODULES.html.sh (func_all_modules): Add dummy.
54725
54726 2004-07-16  Simon Josefsson  <jas@extundo.com>
54727
54728         * modules/dummy: New file.
54729
54730 2004-07-16  Simon Josefsson  <jas@extundo.com>
54731
54732         * lib/dummy.c: New file.
54733
54734 2004-07-16  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/backupfile.h: Add extern "C" for C++.
54737         * lib/closeout.h: Likewise.
54738         * lib/copy-file.h: Likewise.
54739         * lib/findprog.h: Likewise.
54740         * lib/full-write.h: Likewise.
54741         * lib/pathname.h: Likewise.
54742         * lib/progname.h: Likewise.
54743         * lib/stpcpy.h: Likewise.
54744         * lib/stpncpy.h: Likewise.
54745         * lib/strcase.h: Likewise.
54746         * lib/strstr.h: Likewise.
54747         * lib/xalloc.h: Likewise.
54748
54749         * lib/mbswidth.h: Add extern "C" for C++.
54750         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54751
54752 2004-07-13  Robert Millan  <robertmh@gnu.org>
54753
54754         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54755
54756 2004-07-09  Simon Josefsson  <jas@extundo.com>
54757
54758         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54759         failed without this.)
54760
54761 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         * modules/chown (Files): Add lib/fchown-stub.c, since
54764         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54765
54766 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54767
54768         * lib/fchown-stub.c: New file.
54769
54770 2004-06-24  Jim Meyering  <jim@meyering.net>
54771
54772         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54773
54774 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * modules/argz: Omit "#include".
54777
54778         * MODULES.html.sh (func_all_modules): Add calloc, to match
54779         2004-06-01 addition of calloc module.
54780
54781 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         * m4/argz.m4: New file, which is autoupdated from libtool.
54784
54785 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54786
54787         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54788         libtool.
54789
54790 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54791
54792         * config/srclist-update: Don't insist on "USA." before the
54793         close-comment, as libtool omits the period and puts the */ on a
54794         separate line.
54795         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54796         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54797
54798 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54799
54800         * modules/argz: New file.
54801         * MODULES.html.sh (func_all_modules): Add argz.
54802
54803 2004-06-12  Jim Meyering  <jim@meyering.net>
54804         and  Paul Eggert  <eggert@cs.ucla.edu>
54805
54806         * modules/hash (Files): Add lib/xalloc.h.
54807         * modules/pipe (Depends-on): Add wait-process.
54808         * modules/stat (Depends-on): Add xalloc.
54809         * modules/userspec (Files): Add lib/userspec.h.
54810         * modules/xstrto
54811
54812         Upgrade from gettext-0.13.
54813         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54814         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54815         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54816
54817 2004-06-10  Jim Meyering  <jim@meyering.net>
54818
54819         * lib/calloc.c: New file.
54820
54821 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54822
54823         * lib/getdate.y (yylex): Allow space between sign and number.
54824         Problem reported by Dan Jacobson.
54825
54826 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54827
54828         Merge from coreutils CVS.
54829
54830         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54831         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54832         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54833         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54834         xstrtol.m4: Fix copyright date and/or serial number.
54835
54836         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54837         See if we need an fchown replacement.
54838         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54839         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54840         and use the replacement function if we detect either defect.
54841
54842         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54843         gl_UTIMECMP.
54844
54845 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54846         and  Jim Meyering  <jim@meyering.net>
54847
54848         Merge from coreutils CVS.
54849
54850         * lib/stat-macros.h: New file, with contents from file-type.h
54851         and coreutils' system.h.
54852         * lib/file-type.c: Include "stat-macros.h".
54853         * lib/file-type.h (file_type): Move all macro definitions to new file,
54854         stat-macros.h.
54855
54856         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54857         Wrap old code with this conditional.
54858         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54859         function that does not dereference symlinks.
54860         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54861
54862         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54863         dependency problems.
54864         (xreadlink): Accept new arg SIZE, for efficiency.
54865         All decls and uses changed.
54866         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54867
54868         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54869         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54870
54871         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54872         sysexits.h.
54873
54874 2004-06-01  Jim Meyering  <jim@meyering.net>
54875
54876         * m4/calloc.m4: New file.
54877
54878 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54879
54880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54881         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54882         Also, fix a typo in a diagnostic.
54883
54884 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54885
54886         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54887         or AC_FUNC_REALLOC.
54888
54889 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54890
54891         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54892         macros to be defined.
54893         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54894         the allocator returns NULL because the requested size is zero.
54895
54896 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54897
54898         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54899         var.  Add comment explaining why libc still defines it.  This
54900         merges the following patch from glibc:
54901         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54902
54903 2004-05-20  Andreas Schwab  <schwab@suse.de>
54904
54905         * m4/free.m4: Replace free if it not known to work, not the other
54906         way round.
54907
54908 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54909
54910         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54911         present in glibc since revision 1.1 of this file.
54912         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54913         obstack_alignment_mask, obstack_alloc, obstack_base,
54914         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54915         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54916         obstack_grow0, obstack_init, obstack_int_grow,
54917         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54918         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54919         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54920         nonexistent functions.
54921
54922 2004-05-18  Karl Berry  <karl@gnu.org>
54923
54924         * config/srclist.txt: break link for vasnprintf.c.
54925
54926 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54927
54928         Port obstack to the AS/400, where pointers are 16 bytes wide and
54929         you cannot cast an integer to a valid pointer.  This patch is
54930         currently waiting to be integrated into glibc; see
54931         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54932
54933         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54934         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54935         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54936         (struct obstack): temp member is now a union of a pointer and
54937         an integer, instead of an integer.  All integer uses changed.
54938         This does not affect the physical layout of struct obstack,
54939         except on hosts (like the AS/400) where the size or alignment of
54940         void * is greater than that of ptrdiff_t.
54941         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54942         __STDC__)]: Store temporary in pointer member of union, not
54943         integer member.
54944         * lib/obstack.c: Include <stddef.h>, for offsetof.
54945         (struct fooalign): Remove; it doesn't need a name.
54946         (union fooround): Change double to long double, and add void *.
54947         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54948         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54949         not a macro.  Hence the values are always int; so remove all
54950         casts-to-int in uses.
54951
54952 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54953
54954         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54955         we can get this patch merged into glibc.
54956
54957 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54958             Paul Eggert  <eggert@cs.ucla.edu>
54959
54960         * m4/argp: Depend on alloca.
54961
54962 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54963             Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54966         freecoding.
54967
54968 2004-05-17  Bruno Haible  <bruno@clisp.org>
54969
54970         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54971         precision that consists of a '.' followed by an empty digit string.
54972         Patch by Tor Lillqvist <tml@iki.fi>.
54973
54974 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54975
54976         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54977         for backward compatibility with older code.  We need our own
54978         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54979         it under some other name, and our alloca.h will define it.
54980
54981 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54982             Derek Price  <derek@ximbiot.com>
54983
54984         * lib/alloca.c: Include <alloca.h>, to get our interface.
54985         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54986         include <alloca.h> first.  Use C89 prototype for alloca; this
54987         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54988         Use #elif for simplicity, since we can assume C89 now.
54989         Don't try to source the system alloca.h since it will not be found
54990         and to prevent recursively including its replacement.
54991         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54992         * lib/regex.c: Likewise.
54993
54994 2004-05-16  Derek Price  <derek@ximbiot.com>
54995             Paul Eggert  <eggert@cs.ucla.edu>
54996
54997         getline cleanup.  This changes the getndelim2 API: both order of
54998         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54999         no delimiter).
55000
55001         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55002         interface does that.
55003         (getline): Always use getdelim, so that we don't have two
55004         copies of this code.
55005         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55006         if available.
55007         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55008         (GETNDELIM2_MAXIMUM): New macro.
55009         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55010         instead of the old practice of delim2==0.  All callers changed.
55011         Return -1 on overflow, instead of returning junk.
55012         Do not set *linesize unless allocation succeeds.
55013         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55014         that we include sys/types.h.
55015         * lib/getnline.h: Likewise.
55016         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55017         (getndelim2): Reorder arguments.
55018         * lib/getnline.c (getnline, getndelim):
55019         Don't discard the NMAX argument.
55020         (getnline): Invoke getndelim, to avoid code duplication.
55021         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55022         of (size_t) -1 by callers of the getnline family.
55023
55024 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55025
55026         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55027         Check for gettimeofday.
55028         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55029         Check for settimeofday, stime.
55030
55031 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * lib/nanosleep.c (suspended): Change its type from int to
55034         sig_atomic_t volatile.
55035         (first_call): Make it private to rpl_nanosleep, and have it
55036         be zero initially as that's a bit faster.
55037         (my_usleep): Round up fractional times instead of truncating them,
55038         as this is the usual meaning for 'sleep'.
55039
55040         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55041         doesn't work.
55042         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55043         (ENOSYS): Define if not defined.
55044         (settime): Fall back on stime if it exists and settimeofday fails.
55045         But don't bother with fallbacks if a method fails with errno == EPERM.
55046
55047 2004-05-11  Jim Meyering  <jim@meyering.net>
55048
55049         Prior to this change, the save_cwd caller required read access to the
55050         current directory on most systems (ones with the fchdir function).
55051
55052         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55053         fails, try write-only, and finally, resort to using xgetcwd.
55054
55055 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55056
55057         * lib/obstack.c, obstack.h: Import changes from libc.
55058
55059 2004-04-28  Bruno Haible  <bruno@clisp.org>
55060
55061         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55062         also implicitly appends .exe to executables.
55063         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55064         accepts Windows pathnames.
55065         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55066         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55067         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55068         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55069         Reported by Derek Robert Price <derek@ximbiot.com>.
55070
55071 2004-04-21  Karl Berry  <karl@gnu.org>
55072
55073         * config/srclist.txt (localcharset.c): break sync.
55074
55075 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55076
55077         * m4/host-os.m4: Add a copyright notice.
55078
55079 2004-04-20  Jim Meyering  <jim@meyering.net>
55080
55081         Change UTILS_ to gl_ in AC_DEFINE'd names.
55082         Change utils_- and jm_-prefixed variables, too.
55083         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55084         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55085         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55086
55087         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55088         Don't emit trailing blanks.
55089         Also rename jm_-prefixed variables to have gl_ prefix.
55090
55091         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55092         Also rename jm_-prefixed variables to have gl_ prefix.
55093
55094         * m4/jm-macros.m4: Reflect the renamings.
55095         * m4/prereq.m4: Likewise.
55096
55097 2004-04-20  Jim Meyering  <jim@meyering.net>
55098
55099         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55100         memory.
55101
55102 2004-04-20  Jim Meyering  <jim@meyering.net>
55103             Bruno Haible  <bruno@clisp.org>
55104
55105         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55106         memory when realloc fails.
55107
55108 2004-04-19  Jim Meyering  <jim@meyering.net>
55109
55110         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55111         now that readutmp.c may call `free (0)'.
55112
55113 2004-04-19  Bruno Haible  <bruno@clisp.org>
55114
55115         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55116         * m4/inttypes_h.m4: Likewise.
55117         * m4/stdint_h.m4: Likewise.
55118         * m4/intmax_t.m4: Likewise.
55119         * m4/uintmax_t.m4: Likewise.
55120
55121 2004-04-18  Jim Meyering  <jim@meyering.net>
55122
55123         * m4/prereq.m4: Don't forbid jm_ prefix.
55124
55125         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55126         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55127         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55128         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55129         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55130         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55131         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55132         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55133         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55134         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55135         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55136         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55137         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55138         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55139         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55140         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55141         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55142         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55143         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55144
55145 2004-04-18  Jim Meyering  <jim@meyering.net>
55146
55147         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55148         failure, don't leak memory and do call END_UTMP_ENT.
55149
55150 2004-04-16  Jim Meyering  <jim@meyering.net>
55151
55152         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55153         coreutils' stat program.
55154         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55155
55156 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55157
55158         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55159         C89.
55160         (CHAR_BIT): Remove, since we assume C89.
55161         Include <stdint.h> if available, as per current Autoconf CVS advice.
55162
55163 2004-03-31  Jim Meyering  <jim@meyering.net>
55164
55165         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55166         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55167         * m4/xalloc.m4: Likewise.
55168
55169 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55170
55171         Merge from coreutils.
55172
55173         * m4/inttostr.m4: New file.
55174         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55175         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55176         Require gl_CLOCK_TIME.
55177         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55178
55179 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55180
55181         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55182         not bool, to be more consistent with Unix conventions.
55183         Suggested by Bruno Haible.
55184
55185         Merge from coreutils.
55186
55187         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55188         * lib/umaxtostr.c: New files.
55189
55190         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55191         the usual <time.h> dance.
55192         (get_date): Change signature to support fractional time stamps.
55193         All callers changed.
55194         * lib/getdate.y: Include "getdate.h" first, as we can now
55195         assume C89 and don't need to worry about 'const'.
55196         Similarly, include "unlocked-io.h" near start, not in middle.
55197         Include <limits.h>.
55198         (textint.value): Use long int rather than int.
55199         (textint.digits): Use size_t rather than int.
55200         (BILLION, LOG10_BILLION): New constants.
55201         (parser_control): New member rel_ns.  Members day_ordinal,
55202         time_zone, month, day, hour, minutes, rel_year, rel_month,
55203         rel_day, rel_hour, rel_minutes, rel_seconds
55204         are now long int, not int.  Member seconds is now struct timespec,
55205         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55206         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55207         not int.
55208         (%union.intval): Now long int, not int.
55209         New member timespec.
55210         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55211         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55212         (spec): Now is a timespec or an item list.
55213         (timespec, items): New nonterminals.
55214         (time, rel, relunit, number, get_date):
55215         Add support for fractional seconds.
55216         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55217         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55218         (to_hour): First arg is now long int, not int.
55219         (to_year): Returns long int, not int.
55220         Don't treat year -70 like 70.
55221         (tm_diff): Returns long int, not int.
55222         (lookup_word): Use bool instead of int when appropriate.
55223         (yylex): Use size_t for count, not int.
55224         Detect overflow when parsing large integer constants.
55225         Add support for fractions.
55226         (get_date): Make pointers 'const' if possible.
55227         Use more-portable code to detect integer overflow.
55228         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55229         Don't use ctime; it's not reliable if the year has >4 digits.
55230
55231         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55232         This is for compatibility with BSD.
55233
55234         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55235         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55236         From coreutils' system.h.
55237
55238         * lib/userspec.c: Don't include "posixver.h".
55239         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55240         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55241         compatible extension.  Simplify code by removing a boolean int
55242         that was always nonzero if a string was nonnull.
55243
55244 2004-03-30  Jim Meyering  <jim@meyering.net>
55245
55246         Merge from coreutils.
55247
55248         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55249         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55250         on some systems one must include <grp.h> before it.
55251         Reported by Christian Krackowizer.
55252
55253 2004-03-30  Jim Meyering  <jim@meyering.net>
55254
55255         Merge from coreutils.
55256
55257         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55258
55259         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55260         an empty input stream.
55261
55262         * lib/readtokens.c: Include <stdbool.h>.
55263         (readtoken): Use `size_t' rather than int/long.
55264         All callers adjusted.
55265         Use `bool' rather than `int' where appropriate.
55266         Use memset rather than an explicit loop.
55267         Use x2nrealloc rather than xrealloc.
55268         Allow the use of `\0' as a delimiter.
55269         (readtokens): Likewise.
55270         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55271
55272 2004-03-30  Jim Meyering  <jim@meyering.net>
55273
55274         * m4/realloc.m4: Remove file, since now it does no more than
55275         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55276         the `configure.ac' section of module/realloc.
55277         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55278
55279 2004-03-30  Bruno Haible  <bruno@clisp.org>
55280
55281         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55282         nonnull.
55283
55284 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55285
55286         Merge changes to getloadavg.c from coreutils and Emacs.
55287
55288         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55289         Define to an expression, not to the empty string.
55290         Include cloexec.h and xalloc.h.
55291         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55292         Use set_cloexec_flag rather than rolling our own.
55293         * lib/cloexec.c, lib/cloexec.h: New files.
55294
55295 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55296
55297         * m4/cloexec.m4: New file.
55298
55299 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55300
55301         * lib/getopt.h: Sync with libc CVS.
55302
55303 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55304             Bruno Haible  <bruno@clisp.org>
55305
55306         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55307         mbswidth.
55308
55309 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55310             Bruno Haible  <bruno@clisp.org>
55311
55312         * lib/mbswidth.h: Include <wchar.h> only if
55313         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55314         <wchar.h>.
55315         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55316
55317 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55318
55319         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55320         Sync with libc CVS.
55321         * lib/getopt_int.h: New file, also synced from libc.
55322
55323 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55324
55325         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55326         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55327         Bring back getopt.c, getopt.h, getopt1.c.
55328
55329 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55330
55331         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55332         All uses changed.  Check for sa_sigaction member; this fixes
55333         a bug first reported by Jason Andrade in
55334         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55335
55336 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55337
55338         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55339         '#if' expressions.  Unlike the code it replaces, it does not
55340         depend on (defined _SC_PAGESIZE).  However, it does depend on
55341         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55342         first reported by Jason Andrade in
55343         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55344
55345 2004-02-25  Simon Josefsson  <jas@extundo.com>
55346
55347         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55348
55349 2004-02-25  Simon Josefsson  <jas@extundo.com>
55350
55351         * lib/strdup.h: New file.
55352         * lib/strdup.c: Include it.
55353         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55354         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55355
55356 2004-02-23  Karl Berry  <karl@gnu.org>
55357
55358         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55359         (from fencepost.gnu.org:/gd/gnuorg).
55360
55361 2004-02-23  Karl Berry  <karl@gnu.org>
55362
55363         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55364         * config/srclist.txt: add maintain/standards documents.
55365
55366 2004-02-18  Bruno Haible  <bruno@clisp.org>
55367
55368         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55369         Reported by Derek Robert Price <derek@ximbiot.com>.
55370
55371 2004-02-16  Karl Berry  <karl@gnu.org>
55372
55373         * config/mkinstalldirs, install-sh: update from automake.
55374
55375 2004-02-06  Karl Berry  <karl@gnu.org>
55376
55377         * m4/po.m4: update from gettext 0.14.1.
55378
55379 2004-02-06  Karl Berry  <karl@gnu.org>
55380
55381         * lib/config.charset: update from gettext 0.14.1.
55382
55383 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55384
55385         Add comments and code, prompted by suggestions from Bruno Haible
55386         for sh-quote.
55387         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55388         describing the enum quoting_style values.
55389         * lib/quotearg.c (quotearg_alloc): New function.
55390         (quotearg_buffer_restyled): Treat lone { and } as special.
55391         Treat = as special.  Work around bug with older shells
55392         that "see" a '\' that is really the 2nd byte of a multibyte char.
55393         Quote empty string with shell_quoting_style.
55394
55395 2004-02-03  Bruno Haible  <bruno@clisp.org>
55396
55397         * m4/pipe.m4: New file, from GNU gettext.
55398
55399 2004-02-03  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/pipe.h: New file, from GNU gettext.
55402         * lib/pipe.c: New file, from GNU gettext.
55403
55404 2004-01-27  Bruno Haible  <bruno@clisp.org>
55405
55406         * m4/execute.m4: New file, from GNU gettext.
55407
55408 2004-01-27  Bruno Haible  <bruno@clisp.org>
55409
55410         * lib/execute.h: New file, from GNU gettext.
55411         * lib/execute.c: New file, from GNU gettext.
55412         * lib/w32spawn.h: New file, from GNU gettext.
55413
55414 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55415
55416         Merge from diffutils.
55417
55418         * lib/file-type.c (file_type): Add typed memory objects.
55419         * lib/file-type.h (S_TYPEISTMO): New macro.
55420
55421         * lib/c-stack.h (c_stack_action): Remove argv argument.
55422         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55423         (die): Don't calculate message unless segv_action returns.
55424         (get_stack_location, min_address_from_argv, max_address_from_argv,
55425         volatile stack_base, volatile_stack_size): Remove.
55426         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55427         that every segmentation violation is a stack overflow.  (Ouch!)
55428         See Debian bug 136249 (still outstanding) for more info about why
55429         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55430
55431 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55432
55433         Exit-status fix from coreutils.
55434
55435         Use exit_failure consistently in place of EXIT_FAILURE,
55436         so that program exit statuses are consistent on failure.
55437
55438         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55439         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55440         * lib/argmatch.h: Comment fix to match the above.
55441         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55442         Now a macro referring to exit_failure, instead of a separate
55443         variable.  Include "exitfail.h" to get it.
55444         * lib/xstrtol.h: Include "exitfail.h".
55445         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55446
55447         * lib/long-options.c (parse_long_options): Use prototype
55448         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55449         for clarity.
55450
55451 2004-01-21  Jim Meyering  <jim@meyering.net>
55452
55453         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55454         so as not to conflict with a different-sized __mktime_internal
55455         function in GNU libc.
55456         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55457         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55458
55459 2004-01-20  Karl Berry  <karl@gnu.org>
55460
55461         * config/config.guess: update from config.
55462
55463         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55464
55465 2004-01-20  Bruno Haible  <bruno@clisp.org>
55466
55467         Safer stack allocation.
55468         * lib/setenv.c: Include allocsa.h.
55469         (alloca): Remove fallback definition.
55470         (freea): Remove macro.
55471         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55472         instead of freea.
55473
55474 2004-01-20  Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/eealloc.m4: New file, from GNU gettext.
55477
55478 2004-01-20  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/allocsa.m4: New file, from GNU gettext.
55481
55482 2004-01-20  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/xallocsa.h: New file, from GNU gettext.
55485         * lib/xallocsa.c: New file, from GNU gettext.
55486
55487 2004-01-20  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55490
55491 2004-01-20  Bruno Haible  <bruno@clisp.org>
55492
55493         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55494         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55495         specially.
55496
55497 2004-01-20  Bruno Haible  <bruno@clisp.org>
55498
55499         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55500         patch.
55501
55502 2004-01-20  Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55505
55506 2004-01-20  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/eealloc.h: New file.
55509
55510 2004-01-20  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/binary-io.h: Avoid warnings on Cygwin.
55513
55514 2004-01-20  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/allocsa.h: New file, from GNU gettext.
55517         * lib/allocsa.c: New file, from GNU gettext.
55518
55519 2004-01-18  Karl Berry  <karl@gnu.org>
55520
55521         * doc/gpl.texi, doc/lgpl.texi: new files.
55522
55523 2004-01-18  Karl Berry  <karl@gnu.org>
55524
55525         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55526         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55527
55528 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55529
55530         Merge from coreutils.
55531
55532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55533         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55534         (gl_DEFAULT_POSIX2_VERSION): Move
55535         the documentation from 'configure' into 'config.hin',
55536         so that 'configure --help' isn't burdened by it and
55537         we don't have to worry about its formatting there.
55538         Reword the documentation so that it's more succinct
55539         and can be run together into a single paragraph.
55540         * m4/same.m4 (gl_SAME): Check for pathconf.
55541
55542 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55543
55544         Merge from coreutils.
55545
55546         * lib/posixver.c: Include posixver.h.
55547
55548         * lib/same.c: Include <stdbool.h>, <limits.h>.
55549         (_POSIX_NAME_MAX): Define if not defined.
55550         (MIN): New macro.
55551         (same_name): If file names are silently truncated, report
55552         that the file names are the same if they are the same after
55553         the silent truncation.
55554
55555         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55556         conversion function.
55557         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55558         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55559         longer needed.
55560
55561 2004-01-15  Jim Meyering  <jim@meyering.net>
55562
55563         Merge from coreutils.
55564
55565         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55566         if no library is required.
55567         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55568         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55569         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55570         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55571         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55572         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55573         value, $ac_cv_search_crypt, if it's "none required".
55574         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55575         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55576         not gl_FUNC_GETLOADAVG.
55577         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55578         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55579
55580 2004-01-15  Jim Meyering  <jim@meyering.net>
55581
55582         Merge from coreutils.
55583
55584         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55585         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55586         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55587
55588         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55589         optional configure-time default.
55590
55591         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55592
55593         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55594
55595 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55596
55597         Merge from coreutils.
55598
55599         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55600         value, $ac_cv_search_nanosleep, if it's "none required".
55601
55602 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55603
55604         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55605         with like-named macro in fnmatch.c.
55606         (EXT): Use an internal constant instead.
55607
55608         Merge fnmatch patches from glibc.
55609         * lib/fnmatch.c (mbsinit): Remove define.
55610         Add libc_hidden_ver (__fnmatch, fnmatch).
55611         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55612         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55613
55614 2004-01-14  Karl Berry  <karl@gnu.org>
55615
55616         * config/install-sh: update from automake.
55617
55618 2004-01-13  Karl Berry  <karl@gnu.org>
55619
55620         * config/install-sh: update from automake.
55621
55622 2004-01-09  Karl Berry  <karl@gnu.org>
55623
55624         * config/install-sh: update from automake.
55625
55626 2004-01-05  Karl Berry  <karl@gnu.org>
55627
55628         * config/config.{sub,guess}: update from config.
55629
55630 2003-12-31  Karl Berry  <karl@gnu.org>
55631
55632         * config/depcomp: update from automake.
55633
55634 2003-12-14  Karl Berry  <karl@gnu.org>
55635
55636         * lib/config.charset: update from gettext-runtime.
55637
55638 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55639
55640         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55641         Bug reported by Alfred M. Szmidt.
55642
55643 2003-12-03  Bruno Haible  <bruno@clisp.org>
55644
55645         * m4/gettext.m4: Upgrade from gettext-0.13.
55646         * m4/po.m4: Upgrade from gettext-0.13.
55647         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55648         * m4/intmax.m4: New file, from gettext-0.13.
55649         * m4/printf-posix.m4: New file, from gettext-0.13.
55650
55651 2003-11-29  Karl Berry  <karl@gnu.org>
55652
55653         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55654
55655 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55656             Bruno Haible  <bruno@clisp.org>
55657
55658         * lib/printf-parse.h: Don't include sys/types.h.
55659         (ARG_NONE): New macro.
55660         (char_directive): Change type of *arg_index fields to size_t.
55661         * lib/printf-parse.c: Don't include sys/types.h.
55662         (SSIZE_MAX): Remove macro.
55663         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55664         Remove unnecessary overflow check.
55665         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55666         fields.
55667
55668 2003-11-25  Bruno Haible  <bruno@clisp.org>
55669
55670         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55671
55672 2003-11-25  Bruno Haible  <bruno@clisp.org>
55673
55674         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55675         gt_TYPE_SSIZE_T.
55676
55677 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55678
55679         * modules/alloca: Remove dependency on xalloc.
55680
55681 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55682
55683         * lib/alloca.c: Remove dependency on xalloc module.
55684         (xalloc_die): Remove.
55685         (memory_full) [!defined emacs]: New macro.
55686         [!defined emacs]: Don't include xalloc.h.
55687         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55688         address arithmetic overflows.  Change datatypes a bit to avoid
55689         unnecessary casts.
55690
55691 2003-11-22  Jim Meyering  <jim@meyering.net>
55692
55693         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55694         s/size/size_t/.
55695
55696 2003-11-21  Karl Berry  <karl@gnu.org>
55697
55698         * config/config.{sub,guess}: update from config.
55699
55700 2003-11-18  Karl Berry  <karl@gnu.org>
55701
55702         * config/config.{sub,guess}: update from config.
55703
55704         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55705
55706 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55707
55708         * README: Mention that S+T cannot overflow if S is the size of
55709         an existing object and T is sufficiently small.
55710
55711 2003-11-17  Jim Meyering  <jim@meyering.net>
55712
55713         On systems without utime and without a utimes function capable of
55714         dealing with a NULL struct utimbuf* argument, this utime replacement
55715         could -- in unusual circumstances -- leak a file descriptor.
55716         * lib/utime.c: Include <unistd.h> and <errno.h>.
55717         (utime_null): Be sure to close `fd' and to preserve errno.
55718         Reported by Geoff Collyer via Arnold Robbins.
55719
55720 2003-11-17  Bruno Haible  <bruno@clisp.org>
55721
55722         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55723         (Depends-on): Add xsize.
55724
55725 2003-11-17  Bruno Haible  <bruno@clisp.org>
55726
55727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55728
55729 2003-11-17  Bruno Haible  <bruno@clisp.org>
55730
55731         * lib/vasnprintf.c (alloca): Remove fallback definition.
55732         (freea): Remove definition.
55733         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55734         Reported by Paul Eggert.
55735
55736 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55737             Bruno Haible  <bruno@clisp.org>
55738
55739         Protect against address arithmetic overflow.
55740         * lib/printf-args.h: Include stddef.h.
55741         (arguments): Change type of field 'count' to size_t.
55742         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55743         'unsigned int' where appropriate.
55744         * lib/printf-parse.h: Include sys/types.h.
55745         (char_directive): Change type of *arg_index fields to ssize_t.
55746         (char_directives): Change type of fields 'count', max_*_length to
55747         size_t.
55748         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55749         (SSIZE_MAX): Define fallback value.
55750         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55751         instead of 'int' where appropriate. Check a_allocated, d_allocated
55752         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55753         * lib/vasnprintf.c: Include xsize.h.
55754         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55755         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55756         overflow. Avoid wraparound when converting a width or precision from
55757         decimal to binary.
55758
55759 2003-11-16  Bruno Haible  <bruno@clisp.org>
55760
55761         Update from GNU gettext.
55762         * lib/printf-parse.c: Generalize to it can be compiled for wide
55763         strings.
55764         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55765         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55766         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55767         SNPRINTF): New macros.
55768         Don't include <alloca.h> if the file is used inside libintl.
55769         (local_wcslen): New function, for Solaris 2.5.1.
55770         (VASNPRINTF): Use it instead of wcslen.
55771
55772 2003-11-16  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/xsize.h (xmax): New function.
55775         (xsum, xsum3, xsum4): Declare as "pure" functions.
55776
55777 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55778
55779         * modules/xalloc (Files): Undo latest change, since xalloc.h
55780         no longer needs SIZE_MAX or PTRDIFF_MAX.
55781
55782 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55783
55784         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55785         gl_PTRDIFF_MAX.
55786
55787 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55788
55789         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55790         "return", to pacify some unknown compiler.  Problem reported
55791         by Joerg Schilling.
55792
55793 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55794
55795         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55796         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55797         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55798         heuristic is just as accurate as far as we know, and it removes a
55799         dependency on size_max.m4 and ptrdiff_max.m4.
55800
55801 2003-11-11  Bruno Haible  <bruno@clisp.org>
55802
55803         * modules/xsize (Files): Add m4/size_max.m4.
55804         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55805
55806 2003-11-11  Bruno Haible  <bruno@clisp.org>
55807
55808         * m4/size_max.m4: New file.
55809         * m4/ptrdiff_max.m4: New file.
55810         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55811         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55812         (gl_XALLOC): Invoke it.
55813
55814 2003-11-11  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55817         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55818         defined.
55819
55820 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55821
55822         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55823         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55824         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55825         From Bruno Haible.
55826         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55827         not (size_t) -1, since it's defined here.
55828
55829 2003-11-09  Karl Berry  <karl@gnu.org>
55830
55831         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55832
55833 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55834
55835         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55836         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55837         Reject sizes of exactly SIZE_MAX bytes.
55838         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55839         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55840
55841 2003-11-05  Bruno Haible  <bruno@clisp.org>
55842
55843         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55844         SIZE_MAX defined in <limits.h> on Solaris.
55845
55846 2003-11-04  Jim Meyering  <jim@meyering.net>
55847
55848         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55849         variable names, rather than @VAR@.
55850         * modules/poll: Likewise.
55851
55852 2003-11-04  Bruno Haible  <bruno@clisp.org>
55853
55854         * modules/xsize: New file.
55855         * modules/linebreak: Depend on xsize.
55856         * MODULES.html.sh (func_all_modules): Add xsize.
55857
55858 2003-11-04  Bruno Haible  <bruno@clisp.org>
55859
55860         * m4/xsize.m4: New file.
55861
55862 2003-11-04  Bruno Haible  <bruno@clisp.org>
55863
55864         * lib/xsize.h: New file.
55865         * lib/linebreak.c: Include xsize.h.
55866         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55867         argument for overflow.
55868         Suggested by Paul Eggert.
55869
55870 2003-11-03  Karl Berry  <karl@gnu.org>
55871
55872         * config/config.{guess,sub}: update from config.
55873
55874 2003-11-03  Jim Meyering  <jim@meyering.net>
55875
55876         * modules/userspec (lib_SOURCES): Add userspec.h.
55877         (Include): Add "userspec.h".
55878         Improve description.
55879
55880 2003-11-03  Jim Meyering  <jim@meyering.net>
55881
55882         * lib/userspec.c: Include "userspec.h".
55883         * lib/userspec.h: New file.
55884
55885 2003-11-03  Bruno Haible  <bruno@clisp.org>
55886
55887         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55888
55889 2003-11-03  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55892         available, to avoid (extremely rare) race condition.
55893         Suggested by Paul Eggert.
55894
55895 2003-11-02  Karl Berry  <karl@gnu.org>
55896
55897         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55898
55899 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55900
55901         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55902         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55903         (read_filesystem_list): Set and use me_type_malloced.
55904         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55905         whatever the type happens to be), for brevity and consistency.
55906         Check for size calculation overflow on Alphas running OSF/1.
55907
55908 2003-10-31  Jim Meyering  <jim@meyering.net>
55909
55910         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55911
55912         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55913
55914 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55915             Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55918         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55919
55920 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55921
55922         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55923         netbsd*-gnu*.  Suggested by Robert Millan.
55924
55925 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55926
55927         * modules/group-member: Depend on stdbool.
55928
55929 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55930
55931         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55932
55933 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55934
55935         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55936         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55937         after the 'gnu' in these cases.  This fixes some bugs in the
55938         previous change, and is based on suggestions by Robert Millan.
55939
55940 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55941
55942         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55943         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55944         no longer needed.
55945         * lib/quotearg.c (quotearg_n_options): Use it.
55946         * lib/group-member.c: Include <stdbool.h>.
55947         (free_group_info): Arg is now const *; don't free arg.
55948         (get_group_info): Now returns bool and accepts struct group_info *,
55949         rather than returning a malloc'ed struct group_info *.
55950         All uses changed.  Check for overflow in internal size calculation.
55951
55952         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55953         rather than xmalloc/xrealloc.
55954         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55955         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55956         conformance bug: the old code used a pointer after freeing the
55957         storage that it addressed.
55958         * lib/hash.c (hash_initialize): Simplify the code by using
55959         xalloc_oversized rather than doing it by hand.
55960         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55961         the buffer preserved.  Use free and xmalloc instead.
55962         * lib/quotearg.c (quotearg_n_options): Likewise.
55963         Use a simpler test for size overflow.  Don't use xalloc_oversized
55964         because unsigned int might be wider than size_t (!); this suggests
55965         that we should switch from unsigned int to size_t for slot numbers.
55966
55967 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55968
55969         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55970         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55971         NetBSD kernels.  Requested by Richard Stallman.
55972
55973 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55974
55975         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55976         to allocate the returned structure.  Do not allocate a subarray,
55977         as x2nrealloc will do that.
55978         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55979         instead of xnrealloc.
55980         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55981
55982 2003-10-27  Bruno Haible  <bruno@clisp.org>
55983
55984         * lib/stdbool_.h: Better support for BeOS.
55985
55986 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55987
55988         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55989         now uses inline.
55990
55991 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55992
55993         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55994         callers that want to do their own size-overflow checking.  Include
55995         <stdbool.h>, since xalloc_oversized returns bool.
55996         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55997         to use xalloc_oversized.
55998
55999         Add two functions x2realloc, x2nrealloc, for programs that grow
56000         arrays dynamically by doubling their sizes.
56001         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56002         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56003         New functions.
56004
56005         Port to C99 semantics for 'inline' of external functions.
56006         Bug reported by Bruno Haible.
56007         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56008         with the old contents of xnmalloc.
56009         (xnmalloc, xmalloc): Use it.
56010         (xnrealloc_inline): New static inline function,
56011         with the old contents of xnrealloc.
56012         (xnrealloc, xrealloc): Use it.
56013
56014         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56015         that.
56016
56017 2003-10-26  Karl Berry  <karl@gnu.org>
56018
56019         * config/srclist.txt (COPYING.DOC): no longer available from
56020         /gd/gnuorg; don't know where the ultimate source is.
56021
56022 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56023
56024         Fix several address-calculation bugs in the hash modules,
56025         plus some minor code cleanup.
56026
56027         * lib/hash.h: Include <stdbool.h>, for bool.
56028         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56029         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56030         hash_get_n_entries, hash_get_max_bucket_length,
56031         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56032         hash_rehash): Use size_t rather than unsigned.
56033         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56034         hash_get_n_buckets_used, hash_get_n_entries,
56035         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56036         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56037         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56038         Likewise.
56039         (SIZE_MAX): Define if not defined.
56040         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56041         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56042         hash_print):
56043         Use const * when possible.
56044         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56045         (check_tuning): Fix bug: if tuning parameters were very close to
56046         0 or 1, rounding errors could have caused subscript violations.
56047         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56048         (hash_initialize): Add 'fail:' label
56049         to free table and return NULL, and use it to simplify code.
56050         Use calloc rather than clearing the storage ourself.
56051         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56052         buffer size calculations.
56053         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56054         Include <stddef.h>, for size_t.
56055         * lib/hash-pjw.c (hash_pjw): Likewise.
56056         Switch to method described by Bruno Haible.
56057         Include <limits.h>, for CHAR_BIT.
56058         (SIZE_BITS): New macro.
56059
56060 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56061
56062         * m4/getline.m4 (AM_FUNC_GETLINE):
56063         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56064         hosts.  Problem reported by Derek Robert Price in
56065         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56066         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56067         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56068
56069 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56070
56071         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56072         ceiling the allocation at NMAX bytes rather than silently
56073         discarding input bytes before NMAX is reached.  This makes
56074         a difference only if NMAX exceeds SIZE_MAX / 2.
56075
56076         * lib/obstack.c: Merge from glibc.
56077         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56078         Add libc_hidden_def (_obstack_newchunk).
56079         (_obstack_free) [! defined _LIBC]: Remove.
56080         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56081         a clone of the function body.
56082         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56083         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56084
56085         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56086         glibc.
56087         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56088         arg to memcpy.
56089
56090         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56091         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56092         Don't use lvalue casts, as GCC plans to remove support for them
56093         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56094         was also present in the non-GCC version, indicating that this
56095         code had always been buggy and had never been widely used.
56096         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56097         Use the fast variant of each macro, rather than copying the
56098         definiens of the fast variant; that way, we'll be more likely to
56099         catch future bugs in the fast variants.
56100
56101 2003-10-20  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/wait-process: New file.
56104         * MODULES.html.sh (func_all_modules): Add wait-process.
56105
56106 2003-10-20  Bruno Haible  <bruno@clisp.org>
56107
56108         * m4/wait-process.m4: New file.
56109
56110 2003-10-20  Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/wait-process.h: New file, from GNU gettext.
56113         * lib/wait-process.c: New file, from GNU gettext.
56114
56115 2003-10-19  Jim Meyering  <jim@meyering.net>
56116
56117         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56118         HPUX 10.20.
56119
56120 2003-10-18  Karl Berry  <karl@gnu.org>
56121
56122         * config/config.guess: update from config.
56123
56124 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56125
56126         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56127         (getgroups): First arg is int, not size_t.
56128         Don't let 'free' mangle errno.
56129
56130 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56131
56132         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56133
56134 2003-10-16  Karl Berry  <karl@gnu.org>
56135
56136         * config/config.{guess,sub}: update from config.
56137
56138 2003-10-16  Jim Meyering  <jim@meyering.net>
56139
56140         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56141         memcpy.
56142
56143 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56144
56145         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56146         (SIZE_MAX): Remove.
56147         (new_exclude, add_exclude_file): Initial size no longer needs to
56148         be a power of 2.
56149         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56150         our own address arithmetic overflow checking.
56151
56152         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56153         (fnmatch): Do not alloca more than 2000 wide characters;
56154         instead, use malloc for large buffers.
56155         Check for address arithmetic overflow, and return -1
56156         with errno set to ENOMEM in that case.
56157         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56158         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56159         instead, return -1.  Check for address arithmetic overflow.
56160
56161 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56162
56163         Handle invalid suffixes and overflow independently, so that
56164         callers can treat them independently as needed.  Fix some bugs in
56165         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56166         suffix for a human-readable blocksize.  The major caller-visible
56167         change is the addition of a new
56168         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56169         that both overflow and suffix chars were found.
56170
56171         * lib/human.c (humblock): Don't check separately for invalid suffix
56172         char; that is xstrtoumax's job (now that its bug is fixed).
56173         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56174         INTMAX_MAX]: New macros.
56175         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56176         TYPE_MAXIMUM): New macros.
56177         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56178         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56179         if overflow occurs, as it's what __strtol does and it's more useful
56180         in practice.
56181         (__xstrtol): If __strtol reports some error other than ERANGE,
56182         reflect it to the caller as LONGINT_INVALID.  If it reports
56183         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56184         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56185         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56186         value.
56187         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56188         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56189         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56190         [defined UINTMAX_MAX]: New macros.
56191
56192 2003-10-14  Bruno Haible  <bruno@clisp.org>
56193
56194         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56195
56196 2003-10-14  Bruno Haible  <bruno@clisp.org>
56197
56198         * m4/sig_atomic_t: New file, from GNU gettext.
56199         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56200
56201 2003-10-14  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56204         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56205         Also use volatile where needed.
56206
56207 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56208
56209         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56210         Change maintainer from Bruno Haible to 'all'.
56211
56212 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56213
56214         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56215
56216 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56217
56218         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56219         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56220         and define in terms of the other primitives.
56221         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56222         (SIZE_MAX): Define if not already defined.
56223         (array_size_overflow): New function.
56224         (xalloc_die): Abort instead of exiting if 'error' returns.
56225         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56226         (xmalloc, xrealloc): Use them.
56227         (xcalloc): Check for address arithmetic overflow.
56228         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56229         a bit faster than strcpy.
56230
56231 2003-10-10  Simon Josefsson  <jas@extundo.com>
56232
56233         * modules/argp (Depends-on): Add restrict and strcase.
56234
56235 2003-10-10  Simon Josefsson  <jas@extundo.com>
56236
56237         * m4/argp.m4: Add AC_C_INLINE.
56238
56239 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56240
56241         Merge getpass from libc, plus a few fixes.
56242
56243         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56244         Include <stdbool.h>.
56245         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56246         __fsetlocking to empty.
56247         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56248         do include <bits/libc-lock.h>.
56249         Do not include <fcntl.h>; not needed.
56250         [_LIBC]: Include <wchar.h>.
56251         (NOTCANCEL_MODE): New macro.
56252         (flockfile, funlockfile) [_LIBC]: New macros.
56253         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56254         [!_LIBC]: New macros.
56255         (call_fclose): New function.
56256         (getpass): Use it.  Save tty stream separately; this simplifies the
56257         code and makes it more reliable if stdin happens to equal stdout.
56258         Invoke __fsetlocking on tty.
56259         Handle thread cancellation if needed.
56260         Namespace cleanup (use __tcgetattr, __getline).
56261         Use bool for Booleans.
56262         [USE_IN_LIBIO]: Handle wide streams.
56263         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56264         stream might go where.
56265
56266         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56267         doesn't have to include <stdio.h> before us.
56268         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56269         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56270         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56271         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56272         if not declared, so that we can use getpass.c code from libc without
56273         rewriting it.
56274         (flockfile, ftrylockfile, funlockfile): New macros.
56275
56276 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56277
56278         * modules/getpass: Depend on stdbool.
56279
56280 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56281
56282         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56283
56284 2003-10-07  Karl Berry  <karl@gnu.org>
56285
56286         * config/config.{guess,sub}: update from config.
56287
56288 2003-10-06  Jim Meyering  <jim@meyering.net>
56289             Bruno Haible  <bruno@clisp.org>
56290
56291         This lets translators provide better translations for the
56292         "Written by ..." part of --version output.
56293         * lib/version-etc.h: Include stdarg.h.
56294         (version_etc_copyright): Declare as readonly.
56295         (version_etc): Make this function variadic with a NULL-terminated list
56296         of author name strings.
56297         (version_etc_va): New declaration.
56298         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56299         (version_etc_copyright): Declare as readonly.
56300         (version_etc_va): New function. Provide a different translatable string
56301         for each possible number of authors < 10. Abbreviate when there are 10
56302         authors or more.
56303         (version_etc): Make this function variadic. Call version_etc_va.
56304         Suggestion from Gary V. Vaughan.
56305
56306         * lib/long-options.h (parse_long_options): Change prototype: the
56307         authors string is moved to the end and becomes variadic.
56308         * lib/long-options.c: Include stdarg.h.
56309         (parse_long_options): Make this function variadic, too.
56310         Call version_etc_va, not version_etc.
56311
56312 2003-10-06  Bruno Haible  <bruno@clisp.org>
56313
56314         * modules/version-etc-2: Remove file.
56315         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56316
56317 2003-10-06  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/fatal-signal: New file.
56320         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56321
56322 2003-10-06  Bruno Haible  <bruno@clisp.org>
56323
56324         * m4/fatal-signal.m4: New file.
56325         * m4/signalblocking.m4: New file, from GNU gettext.
56326
56327 2003-10-06  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/version-etc-2.h: Remove file.
56330         * lib/version-etc-2.c: Remove file.
56331
56332 2003-10-06  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/fatal-signal.h: New file, from GNU gettext.
56335         * lib/fatal-signal.c: New file, from GNU gettext.
56336
56337 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56338
56339         * README: Rework advice for preventing empty .o files.
56340         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56341         not <sys/types.h>.
56342
56343 2003-10-04  Karl Berry  <karl@gnu.org>
56344
56345         * lib/argp*: update from libc.
56346
56347 2003-10-04  Karl Berry  <karl@gnu.org>
56348
56349         * config/config.{guess,sub}: update from config.
56350
56351 2003-10-02  Bruno Haible  <bruno@clisp.org>
56352
56353         * modules/lchown (Include): Add lchown.h.
56354         * modules/time_r (Include): Use "..." syntax.
56355         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56356
56357 2003-10-01  Simon Josefsson  <jas@extundo.com>
56358
56359         * MODULES.html.sh (func_all_modules): Move gethostname from section
56360         'based on' to section 'lacking' POSIX:2001.
56361
56362 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56363
56364         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56365         to output mode on the same stream.
56366
56367 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56368
56369         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56370         Fix arg typo in previous patch.
56371
56372 2003-09-28  Jim Meyering  <jim@meyering.net>
56373
56374         * lib/error.c: Correct cpp indentation.
56375
56376 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56377
56378         * modules/free: New file.
56379
56380 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56381
56382         * m4/free.m4: New file.
56383
56384 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56385
56386         * lib/minmax.h (MIN, MAX)
56387         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56388         Omit the special code that used __typeof__, since we worry that
56389         it could be more trouble than it's worth.  See:
56390         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56391         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56392
56393         * lib/free.c: New file.
56394
56395 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56396
56397         Trivial fixes to Makefile.am parts of module listings.
56398         * modules/strstr: Append strstr.h to lib_SOURCES.
56399         * modules/strcase: Likewise, for strcase.h.
56400
56401 2003-09-27  Karl Berry  <karl@gnu.org>
56402
56403         * config/mkinstalldirs: update from automake.
56404
56405 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56406
56407         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56408         (error_tail): Do not loop, reallocating temporary buffer, since
56409         the output cannot contain more wide characters than the input
56410         contains bytes, the size must be big enough already.  This avoids
56411         one potential size overflow calculation.  Check for size overflow
56412         when calculating temporary buffer size.  Free temporary buffer
56413         when done, if it was allocated with malloc; this plugs a memory
56414         leak.  Remove casts from void * to pointers, that are no longer
56415         needed now that we're assuming C89 or better.
56416
56417         Merge error changes from glibc.
56418
56419         * lib/error.c, error.h: Update copyright notice header to match glibc.
56420         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56421         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56422         Disable cancellation while printing error.
56423         * lib/error.h: Prepend __ to parameter names.
56424
56425 2003-09-26  Jim Meyering  <jim@meyering.net>
56426
56427         * lib/error.c (error_tail): Move some declarations
56428         into inner scope where the local variables are used.
56429
56430 2003-09-26  Bruno Haible  <bruno@clisp.org>
56431
56432         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56433         stpncpy().
56434         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56435
56436 2003-09-26  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56439         (stpncpy): Define as alias for gnu_stpncpy.
56440         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56441
56442 2003-09-25  Simon Josefsson  <jas@extundo.com>
56443
56444         * lib/xgetdomainname.h: New file.
56445         * lib/xgetdomainname.c: New file.
56446
56447 2003-09-25  Simon Josefsson  <jas@extundo.com>
56448             Bruno Haible  <bruno@clisp.org>
56449
56450         * modules/getdomainname: New file.
56451         * modules/xgetdomainname: New file.
56452         * MODULES.html.sh (func_all_modules): Add getdomainname,
56453         xgetdomainname.
56454
56455 2003-09-25  Simon Josefsson  <jas@extundo.com>
56456             Bruno Haible  <bruno@clisp.org>
56457
56458         * m4/getdomainname.m4: New file.
56459
56460 2003-09-25  Simon Josefsson  <jas@extundo.com>
56461             Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/getdomainname.h: New file.
56464         * lib/getdomainname.c: New file.
56465
56466 2003-09-25  Karl Berry  <karl@gnu.org>
56467
56468         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56469
56470 2003-09-25  Karl Berry  <karl@gnu.org>
56471
56472         * config/install-sh: update from automake.
56473
56474 2003-09-25  Bruno Haible  <bruno@clisp.org>
56475
56476         * modules/version-etc-2: New file, from modules/version-etc with
56477         modifications.
56478         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56479
56480 2003-09-25  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56483         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56484
56485 2003-09-24  Simon Josefsson  <jas@extundo.com>
56486
56487         * modules/xgethostname: Add xgethostname.h.
56488
56489 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56490
56491         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56492         the buffer associated with the argument.  Bug reported by
56493         Simon Josefsson.
56494
56495 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56496
56497         * README: Document assumptions that 'int' is at least 32 bits
56498         wide, that integer arithmetic is 2's complement without overflow,
56499         that there are no holes in integer values, that adding sizes of
56500         two nonoverlapping objects can't overflow, and that all-bits-zero
56501         yields scalar zero.  Fix spelling and capitalization typos.
56502
56503 2003-09-19  Karl Berry  <karl@gnu.org>
56504
56505         * lib/argp.h: update from libc.
56506
56507 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56508
56509         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56510         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56511         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56512
56513 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56514
56515         * gnulib-tool: Use "test -h", not "test -L", for portability
56516         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56517         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56518         (sed_extract_prog): Issue s commands one-by-one, rather than
56519         using \| in one s command.
56520
56521 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56522
56523         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56524         input error, instead of returning NULL the next time we are called
56525         (and therefore losing track of errno).
56526
56527 2003-09-16  Bruno Haible  <bruno@clisp.org>
56528
56529         * gnulib-tool (func_create_testdir): Warn about duplicated
56530         dependencies.
56531
56532 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56533
56534         * modules/argmatch, modules/fatal, modules/obstack,
56535         modules/xalloc, modules/xgethostname: Sort dependencies by
56536         importance, not alphabetically.
56537
56538 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56539
56540         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56541         fails, so that the caller gets the proper errno.
56542
56543         * lib/readutmp.c (read_utmp): Likewise.
56544         Check for fstat error.  Close stream and free storage
56545         when failing.
56546
56547 2003-09-14  Karl Berry  <karl@gnu.org>
56548
56549         * config/srclist.txt (strdup.c): disable for c89 changes.
56550
56551 2003-09-14  Jim Meyering  <jim@meyering.net>
56552
56553         * lib/getloadavg.c: Correct cpp indentation.
56554         * lib/strdup.c: Likewise.
56555         * lib/vasnprintf.c: Likewise.
56556
56557 2003-09-14  Bruno Haible  <bruno@clisp.org>
56558
56559         * modules/fwriteerror: New file.
56560         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56561
56562 2003-09-14  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/fwriteerror.h: New file.
56565         * lib/fwriteerror.c: New file.
56566
56567 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56568
56569         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56570         modules/xgethostname, modules/xalloc: Depend on exit.
56571
56572 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56573
56574         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56575
56576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56577         and AC_MINIX, too, so that their extensions are available.
56578
56579         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56580         This macro has been superseded by gl_BACKUPFILE.
56581
56582         More patches to assume C89 or better.
56583
56584         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56585
56586         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56587         unconditionally.
56588         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56589         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56590         Include <string.h>, <stdlib.h> unconditionally.
56591         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56592         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56593         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56594         headers or for string.h.
56595         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56596         or strtoul.
56597
56598         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56599         headers.
56600         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56601         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56602         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56603         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56605         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56606         memcpy, memset.
56607         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56608         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56609         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56610         strtol.
56611         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56612         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56613         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56614         strtoul.
56615
56616 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56617
56618         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56619         * lib/obstack.c [!defined _LIBC]: Likewise.
56620         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56621         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56622         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56623
56624         More changes to assume C89 or better.
56625
56626         * lib/error.c (error_tail): Assume vprintf.
56627
56628         * lib/argmatch.c (getenv): Remove decl.
56629         * lib/progreloc.c (get_full_program_name): Define via prototype.
56630         * lib/setenv.c (clearenv): Likewise.
56631         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56632         needed.
56633         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56634         (malloc, memcpy): Remove decls.
56635         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56636         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56637         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56638         (memcpy): Remove macro.
56639         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56640         (__P): Remove.  All uses removed.
56641         (PTR): Remove.  All uses changed to void *.
56642         (CHAR_BIT, NULL): Remove.
56643         (spaces, zeros, memset_space, memset_zero)
56644         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56645         Remove.
56646         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56647         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56648         Define with prototype.
56649         Remove now-unnecessary prototype decl.
56650         (extra_args_spec): Assume ANSI C.  All uses changed.
56651         (extra_args_spec_iso): Remove.
56652         (my_strftime, emacs_strftimeu): Define via prototype.
56653         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56654         unconditionally.
56655         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56656         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56657         (strtoul, strtol): Remove decls.
56658         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56659         LONG_MAX): Remove.
56660         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56661         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56662         (LOCALE_PARAM_PROTO): New macro.
56663         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56664         (INTERNAL (strtol), strtol): Define with a prototype.
56665         (PARAMS): Remove.  All uses removed.
56666         * lib/tempname.c: Include <string.h> unconditionally.
56667         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56668         * lib/xgethostname.c (main): Define with a prototype.
56669         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56670         Include <stdlib.h> unconditionally.
56671         (calloc, malloc, realloc, free): Remove decls.
56672         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56673         Include <stdlib.h> unconditionally.  Sort include file names.
56674         (strtod): Remove.
56675         (xstrtod): Define with a prototype.
56676         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56677         (strtol, strtoul): Remove decls.
56678
56679 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56680
56681         More patches to assume C89 or better.
56682         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56683         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56684         string.h, memchr, STDC_HEADERS.
56685
56686 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56687
56688         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56689         Include <stdlib.h>, <string.h> unconditionally.
56690         Remove now-unnecessary cast to char *.
56691         * lib/strnlen.c: Include <string.h> unconditionally.
56692         * lib/yesno.c (yesno): Define with a prototype.
56693
56694 2003-09-11  Bruno Haible  <bruno@clisp.org>
56695
56696         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56697
56698 2003-09-10  Jim Meyering  <jim@meyering.net>
56699
56700         * lib/error.c: Correct indentation of cpp directives.
56701
56702 2003-09-10  Bruno Haible  <bruno@clisp.org>
56703
56704         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56705         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56706         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56707         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56708         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56709         <stdlib.h> and <string.h> checks.
56710         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56711         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56712
56713 2003-09-10  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/strcspn.c: Include <string.h> unconditionally.
56716         * lib/strpbrk.c: Include <string.h> unconditionally.
56717         * lib/strstr.c: Include <string.h> unconditionally.
56718         * lib/unicodeio.c: Include <string.h> unconditionally.
56719         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56720         * lib/unsetenv.c: Likewise.
56721         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56722         * lib/yesno.c: Include <stdlib.h> unconditionally.
56723         (rpmatch): Add prototype.
56724
56725 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56726
56727         More patches to assume C89 or better.
56728         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56729         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56730         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56731         or for string.h.
56732         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56733         stdlib.h.
56734         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56735         C headers.
56736         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56737         string.h.
56738         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56739         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56740         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56741         or for string.h.
56742         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56743         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56744         C headers.
56745         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56746         memcpy.
56747         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56748         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56749         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56750         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56751         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56752         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56753         string.h, free.
56754         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56755         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56756         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56757         C headers, or for string.h.
56758         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56759         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56760         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56761         headers, memory.h, stdlib.h, string.h, strings.h.
56762         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56763         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56764         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56765         strchr.
56766         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56767         headers, memory.h, string.h.
56768         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56769         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56770         free.
56771         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56772         headers.
56773         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56774         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56775         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56776         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56777         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56778
56779 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56780
56781         More K&R removal.
56782
56783         * lib/acosl.c (main): Use a prototype.
56784         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56785         tanl.c: Likewise.
56786
56787         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56788
56789         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56790         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56791         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56792         with a prototype.
56793         * lib/getopt.c (const): Remove macro.
56794         Include <string.h> unconditionally.
56795         (my_index): Remove; all uses changed to strchr.
56796         (strlen): Remove decl.
56797         (exchange): Remove forward decl; no longer needed.
56798         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56799         Define with prototype.
56800         * lib/getopt1.c (const): Remove macro.
56801         (getopt_long, getopt_long_only, main): Define with prototype.
56802
56803         * lib/getugroups.c: Include <string.h> unconditionally.
56804
56805         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56806         (getusershell, setusershell, endusershell, readname, main):
56807         Define with prototypes.
56808
56809         * lib/group-member.c: Include group-member.h first.
56810         Include <stdlib.h> unconditionally.
56811
56812         * lib/hard-locale.c: Include hard-locale.h first.
56813         Include <stdlib.h>, <string.h> unconditionally.
56814
56815         * lib/hash.c (free, malloc): Remove decls.
56816         Include <stdlib.h> unconditionally.
56817
56818         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56819         (getenv): Do not declare.
56820
56821         * lib/idcache.c: Include <string.h> unconditionally.
56822
56823         * lib/long-options.c: Include long-options.h first, to test interface.
56824         Include <stdlib.h> unconditionally.
56825
56826         * lib/makepath.c: Include makepath.h first, to test interface.
56827         Include <stdlib.h> and <string.h> unconditionally.
56828
56829         * lib/linebuffer.c: Include <stdlib.h>.
56830         (free): Remove decl.
56831
56832         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56833         stddef.h. rpl_malloc returns void *, not char *.
56834         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56835         prototype.
56836
56837         * lib/md5.h: Include <limits.h> unconditionally.
56838         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56839         (__P): Remove; all uses removed.
56840         * lib/md5.c: Include "md5.h" first.
56841         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56842         md5_buffer, md5_process_bytes, md5_process_block):
56843         Define with prototypes.
56844         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56845         * lib/sha.c: Include "sha.h" first.
56846         Include <stdlib.h>, <string.h> unconditionally.
56847
56848         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56849         * lib/memcmp.c (__ptr_t): Likewise.
56850         * lib/memrchr.c (__ptr_t): Likewise.
56851         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56852         Include <string.h> unconditionally.
56853         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56854         * lib/memchr.c: Include <stdlib.h> unconditionally.
56855         * lib/memchr.c (LONG_MAX): Remove.
56856         * lib/memrchr.c (LONG_MAX): Likewise.
56857         * lib/memchr.c (__memchr): Define via a prototype.
56858         * lib/memrchr.c (__memrchr): Likewise.
56859         * lib/memcmp.c (__P): Remove, and remove all uses.
56860         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56861         Remove forward decls; no longer needed.
56862         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56863         Use types required by C89 in prototype.
56864
56865         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56866         * lib/savedir.c: Likewise.
56867         * lib/mkdir.c (free): Remove decl.
56868         * lib/rmdir.c (rmdir): Define with a prototype.
56869         * lib/savedir.c: Include savedir.h first, to test interface.
56870
56871         * lib/mktime.c (STDC_HEADERS): Remove.
56872         Include <stdlib.h>, <string.h> unconditionally.
56873
56874         * lib/modechange.c: Include <stdlib.h> unconditionally.
56875         (malloc): Remove decl.
56876
56877         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56878         (free): Remove decl.
56879
56880         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56881         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56882         (This type really should be intptr_t, but that's a C99ism.)
56883         (_obstack_memcpy): Remove: all uses changed to memcpy.
56884         Include <string.h> unconditionally.
56885         (struct obstack): Assume __STDC__ for types of members
56886         chunkfun, freefun, extra_arg.
56887         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56888         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56889         obstack_begin, obstack_specify_allocation,
56890         obstack_specify_allocation_with_arg, obstack_chunkfun,
56891         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56892         Remove unprototyped decls and the macros that use them.
56893         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56894         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56895         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56896         (defined __STDC__ && __STDC__)]:
56897         Remove nonprototyped code.
56898         Include <stdlib.h> unconditionally.
56899         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56900         _obstack_allocated_p, _obstack_free, obstack_free,
56901         _obstack_memory_used, print_and_abort):
56902         Define using prototypes.
56903         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56904         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56905         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56906         obstack_next_free, obstack_object_size, obstack_room) [0]:
56907         Remove unused, unprototyped code.
56908
56909         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56910
56911         * lib/physmem.c (physmem_total, physmem_available, main): Define
56912         with prototypes.
56913
56914         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56915         (main): Define with a prototype.
56916
56917         * lib/posixver.c (getenv): Remove decl.
56918
56919         * lib/putenv.c (malloc): Returns void *, not char *.
56920         Include <string.h> unconditionally.
56921         (strchr, memcpy, NULL): Do not define.
56922
56923         * lib/readtokens.c: Include readtokens.h first, to test interface.
56924         Include <stdlib.h>, <string.h> unconditionally.
56925         (init_tokenbuffer): Define with a prototype.
56926
56927         * lib/regex.c (PARAMS): Remove.  All uses removed.
56928         All uses of _RE_ARGS removed, too.
56929         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56930         unconditionally.
56931         (bzero): Assume memset exists.
56932         (memcmp, memcpy, NULL): Remove.
56933         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56934         char, or assignments to local vars of type signed char.
56935         (init_syntax_once, PREFIX(extract_number_and_incr),
56936         PREFIX(print_partial_compiled_pattern),
56937         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56938         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56939         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56940         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56941         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56942         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56943         wcs_compile_range, byte_compile_range, truncate_wchar,
56944         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56945         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56946         count_mbs_length, wcs_re_match_2_internal,
56947         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56948         PREFIX(alt_match_null_string_p),
56949         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56950         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56951         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56952         now-unnecessary declaration, if any.
56953         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56954         regcomp, regexec):
56955         Remove now-unnecessary casts among pointer types.
56956         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56957
56958         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56959         (free): Remove decl.
56960
56961         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56962
56963         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56964         (free): Remove decl.
56965
56966         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56967         * lib/xgetcwd.c: Likewise.
56968
56969         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56970         (free): Remove decl.
56971
56972         * lib/strchrnul.c (strchrnul): Define with a prototype.
56973         Fix bug: c_in was not converted to char before searching.
56974
56975         The following changes are not K&R related:
56976
56977         * lib/group-member.h: Include <sys/types.h>, so that this file is
56978         self-contained.
56979         * lib/makepath.h: Likewise.
56980
56981         * lib/getusershell.c (readname, default_index, line_size, readname):
56982         Use size_t, not int, for sizes.
56983         (readname): If the size overflows, report an error instead of
56984         looping forever.
56985
56986 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56987
56988         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56989         libc.
56990
56991 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56992
56993         * README: New section: portability guidelines.
56994
56995 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56996
56997         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56998         C89 spec.
56999
57000 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57001
57002         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57003
57004 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57005
57006         Assume C89 or better; remove K&R cruft.
57007         A few of these changes were first proposed by Derek Robert Price
57008         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57009
57010         * lib/addext.c: Include <string.h> unconditionally.
57011         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57012         Don't declare getenv or malloc.
57013
57014         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57015         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57016         (NULL): Remove.
57017         (find_stack_direction, alloca): Use prototypes.
57018
57019         * lib/atexit.c (atexit): Define using a prototype.
57020
57021         * lib/basename.c, dirname.c, stripslash.c:
57022         Include <string.h> unconditionally.
57023
57024         * lib/bcopy.c: Include <stddef.h>.
57025         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57026
57027         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57028
57029         * lib/error.h (error, error_at_line, error_print_progname)
57030         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57031         * lib/error.c: Include error.h first, to check interface.
57032         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57033         (VA_START): Remove; all uses changeed to va_start.
57034         (exit, strerror): Remove decls.
57035         (error_print_progname): Prototype uncondionally.
57036         Don't include <errno.h>; no longer needed.
57037         (private_strerror): Remove.
57038         (error_tail): Always define.
57039         (error, error_at_line): Assume C89 or better; always use prototypes.
57040         * lib/fatal.c: Include "fatal.h" first, to test interface.
57041         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57042         (VA_START): Remove; all uses changed to va_start.
57043         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57044         this case.
57045         (exit): Remove decl.
57046         (fatal): Prototype unconditionally.  Assume va_start works.
57047         Abort at end, to pacify gcc.
57048
57049         * lib/euidaccess.c (main): Define with a prototype.
57050
57051         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57052
57053         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57054
57055         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57056         prototypes.
57057         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57058         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57059         (getenv): Remove decl.
57060         (fnmatch): Define using a prototype.
57061         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57062         (FCT): Define using a prototype.
57063
57064         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57065
57066         * lib/gethostname.c: Include <stddef.h>.
57067         (gethostname): Define with prototype.  Length is size_t, not int.
57068
57069 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57070
57071         Assume C89 or better; remove K&R cruft.
57072         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57073         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57074         string.h, getenv, malloc.
57075         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57076         headers.
57077         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57078         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57079         do not check for strerror.
57080         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57081         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57082         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57083         do not check for doprnt or vprintf.
57084         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57085         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57086
57087 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57088
57089         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57090         getversion.c should have been removed then, but was accidentally
57091         preserved.
57092
57093         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57094         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57095
57096 2003-09-08  Karl Berry  <karl@gnu.org>
57097
57098         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57099                 config, forget about prep.
57100
57101         * config/depcomp, missing: update from automake.
57102
57103 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57104
57105         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57106         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57107
57108 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57109
57110         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57111         copy_tm_result.  Bug reported by Simon Josefsson in
57112         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57113
57114 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57115
57116         * m4/time_r.m4: New file.
57117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57118         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57119         is. Check for timegm declaration.
57120         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57121         Do not check for gmtime_r.
57122         Replace mktime if __mktime_internal does not exist and if mktime
57123         hasn't been replaced already.
57124
57125 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57126
57127         * lib/time_r.c, lib/time_r.h: New files.
57128
57129         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57130         __localtime_r.
57131         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57132         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57133
57134         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57135         __gmtime_r.
57136         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57137         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57138         Include <time_r.h>.
57139
57140         * lib/timegm.c: Switch to glibc implementation, with the following
57141         changes:
57142         [defined HAVE_CONFIG_H]: Include <config.h>.
57143         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57144         (__mktime_internal) [!defined _LIBC]: New decl.
57145         (__gmtime_r) [!defined _LIBC]: New macro and function.
57146         (timegm): Use a prototype, since gnulib assumes C89.
57147         Do not bother declaring tmp to be const, as it's not really usefu.
57148         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57149         (timegm): Declare only if HAVE_DECL_TIMEGM.
57150
57151 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57152
57153         * MODULES.html.sh (func_all_modules): Add time_r.
57154         * modules/time_r: New file.
57155         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57156         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57157
57158 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57159
57160         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57161         Bug reported by Lute Kamstra in
57162         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57163
57164         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57165         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57166         course with correspondingly smaller numbers for tomorrow and
57167         yesterday.  From Tadayoshi Funaba.  Originally installed into
57168         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57169         coreutils merge?).
57170
57171 2003-08-31  Simon Josefsson  <jas@extundo.com>
57172
57173         * modules/timegm: New file.
57174         * MODULES.html.sh (func_all_modules): Add timegm.
57175
57176 2003-08-31  Simon Josefsson  <jas@extundo.com>
57177
57178         * m4/timegm.m4: New file.
57179
57180 2003-08-31  Simon Josefsson  <jas@extundo.com>
57181
57182         * lib/timegm.h: New file.
57183         * lib/timegm.c: New file.  Based on
57184         wget-1.8.2/src/http.c:mktime_from_utc.
57185
57186 2003-08-31  Karl Berry  <karl@gnu.org>
57187
57188         * lib/argp.h: update from libc.
57189
57190 2003-08-28  Bruno Haible  <bruno@clisp.org>
57191
57192         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57193         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57194         followed by '#define fnmatch fnmatch_posix' gives an error.
57195
57196 2003-08-28  Bruno Haible  <bruno@clisp.org>
57197
57198         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57199         warning on QNX, which defines O_BINARY to 000000.
57200
57201 2003-08-27  Jim Meyering  <jim@meyering.net>
57202
57203         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57204         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57205         would fail after 32.  Reported by Danny Levinson.  Details here:
57206         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57207
57208 2003-08-24  Bruno Haible  <bruno@clisp.org>
57209
57210         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57211         MSVC7 <stdio.h> is included later.
57212
57213 2003-08-22  Simon Josefsson  <jas@extundo.com>
57214
57215         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57216
57217 2003-08-20  Karl Berry  <karl@gnu.org>
57218
57219         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57220
57221 2003-08-20  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/progname: New file.
57224         * MODULES.html.sh (func_all_modules): Add progname.
57225
57226 2003-08-20  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/progname.h: New file, from GNU gettext.
57229         * lib/progname.c: New file, from GNU gettext.
57230         * lib/progreloc.c: New file, from GNU gettext.
57231
57232 2003-08-19  Jim Meyering  <jim@meyering.net>
57233
57234         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57235         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57236
57237 2003-08-19  Bruno Haible  <bruno@clisp.org>
57238
57239         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57240         more.
57241
57242 2003-08-19  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/xstrdup.c: Assume <string.h> exists.
57245
57246 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57247
57248         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57249         in makefile rules.
57250
57251 2003-08-18  Jim Meyering  <jim@meyering.net>
57252
57253         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57254         * m4/lib-ld.m4: Likewise.
57255
57256 2003-08-18  Jim Meyering  <jim@meyering.net>
57257
57258         * lib/setenv.h: Indent nested cpp directive.
57259         * lib/vasnprintf.c: Remove trailing blanks.
57260
57261 2003-08-17  Simon Josefsson  <jas@extundo.com>
57262
57263         * modules/xstrndup: New file.
57264         * MODULES.html.sh (func_all_modules): Add xstrndup.
57265
57266 2003-08-17  Simon Josefsson  <jas@extundo.com>
57267
57268         * modules/argp: Fix autoconf macro name. Add more dependencies.
57269
57270 2003-08-17  Simon Josefsson  <jas@extundo.com>
57271
57272         * m4/xstrndup.m4: New file.
57273
57274 2003-08-17  Simon Josefsson  <jas@extundo.com>
57275
57276         * m4/argp.m4: New file.
57277
57278 2003-08-17  Simon Josefsson  <jas@extundo.com>
57279             Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/xstrndup.h: New file.
57282         * lib/xstrndup.c: New file.
57283
57284 2003-08-17  Bruno Haible  <bruno@clisp.org>
57285
57286         * modules/strndup (Files, Include): Add lib/strndup.h.
57287
57288 2003-08-17  Bruno Haible  <bruno@clisp.org>
57289
57290         * modules/euidaccess (Files): Add lib/euidaccess.h.
57291
57292 2003-08-17  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/strndup.h: New file.
57295
57296 2003-08-17  Bruno Haible  <bruno@clisp.org>
57297
57298         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57299         like AC_GNU_SOURCE.
57300         * modules/extensions (configure.ac): Comment out the invocation of
57301         gl_USE_SYSTEM_EXTENSIONS.
57302
57303 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57304
57305         Merges from coreutils, etc.
57306         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57307         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57308         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57309         fixing a typo.
57310         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57311         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57312
57313 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57314
57315         Document merge from coreutils.
57316         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57317         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57318         * modules/utime: Add m4/utimes-null.m4.
57319
57320 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57321
57322         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57323         space, undoing this 2003-08-12 change:
57324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57325
57326 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57327
57328         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57329         strtoul.c from libc, undoing this 2003-08-12 change:
57330         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57331
57332 2003-08-16  Jim Meyering  <jim@meyering.net>
57333
57334         Merges from coreutils.
57335         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57336         prefix.  Adjust cache variables similarly.  Create 500 rather than
57337         just 300 files, to exercise bug on Darwin6.5, too.
57338         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57339         $missing_dir.
57340         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57341         AM_SYS_POSIX_TERMIOS.
57342         Reported by mkc@mathdogs.com.
57343         Also change use of $am_cv_sys_posix_termios
57344         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57345         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57346         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57347         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57348         in /proc/mounts until it finds one with matching device number.  This
57349         is unnecessary when the FILE argument *is* a mount point.  No stat call
57350         is necessary in that case.  So, disable the statvfs-testing code on
57351         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57352         as RedHat bug# 84846.
57353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57354         to 1MB, so as not to render systems with no stack size limit (e.g.,
57355         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57356         Include <unistd.h>.  On some systems,
57357         it is required for the definition of _SC_PAGESIZE.
57358
57359 2003-08-16  Jim Meyering  <jim@meyering.net>
57360
57361         Merge from coreutils.
57362         * lib/xstrtoimax.c: #else #if -> #elif.
57363         * lib/xstrtoumax.c: Likewise.
57364
57365 2003-08-16  Jim Meyering  <jim@meyering.net>
57366
57367         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57368         * m4/utimes.m4: Removed.
57369         * m4/utimes-null.m4: Renamed from utimes.m4.
57370
57371         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57372         to 1MB, so as not to render systems with no stack size limit (e.g.,
57373         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57374         Include <unistd.h>.  On some systems,
57375         it is required for the definition of _SC_PAGESIZE.
57376
57377 2003-08-16  Jim Meyering  <jim@meyering.net>
57378         and Paul Eggert  <eggert@cs.ucla.edu>
57379
57380         Merges from coreutils, etc.
57381
57382         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57383         using the latest version from cvs.  This avoids problems with #line
57384         directives using a vendor (Sun) compiler.
57385         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57386         Don't set GETGROUPS_LIB here; now it's
57387         done via getgroups.m4's wrapper function.
57388         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57389         rather than just in sh-util/configure.in, so that the
57390         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57391         same.
57392         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57393         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57394         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57395         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57396         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57397         Remove code that is now done by the newly-required macros.
57398         Append $(EXEEXT) to DF_PROG.
57399         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57400         Do not invoke or require the following here,
57401         since prereq.m4 or some gnulib .m4 now does this for us:
57402         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57403         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57404         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57405         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57406         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57407         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57408         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57409         AC_FUNC_OBSTACK.
57410         Do not replace the following functions, as this is now the job
57411         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57412         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57413         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57414         atexit getpass, strdup, getpagesize.
57415         Replace 'raise'.
57416         Do not check for the following functions, as this is now the job
57417         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57418         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57419         setregid.
57420         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57421         Check for sys/sysctl.h.
57422         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57423         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57424         of checking for ssize_t ourselves.
57425
57426         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57427         Require every macro that gnulib/modules/* suggests for us.
57428         (jm_PREREQ_ADDEXT): New macro.
57429         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57430         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57431
57432         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57433         (gl_PHYSMEM): Use it.
57434         Also check for `table' function.
57435         Check for new headers and functions.
57436         Add check for sys/sysmp.h.
57437         With suggestions from Kaveh Ghazi.
57438         Ignore headers that are present but cannot be compiled.  This
57439         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57440         C 5.4.
57441
57442 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57443
57444         Document merge from coreutils.
57445         * modules/userspec: Depend on posixver.
57446         * modules/strftime: Depend on tzset.
57447
57448 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57449
57450         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57451         rather than tab, after '#' in shell-script copyright notices.
57452         Suggested by Bruno Haible.
57453
57454 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57455
57456         * config/srclist-update: Use three spaces, rather than tab, after '#'
57457         in shell-script copyright notices.  Suggested by Bruno Haible.
57458         Remove unnecessary parenthesization in regular expression.
57459
57460 2003-08-15  Jim Meyering  <jim@meyering.net>
57461
57462         Merge from coreutils.
57463         * lib/xgethostname.c: Include <stdlib.h>.
57464         (xghostname): Don't exit for anything other than memory-related
57465         failure; just return NULL.
57466         * lib/userspec.c: Include "posixver.h".
57467         (parse_user_spec): Accept `.' as a separator only
57468         in pre-POSIX-200112 mode.
57469         * lib/strtoimax.c: Use #elif rather than #else #if.
57470         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57471         Remove function, now that we can rely on a working tzset function.
57472         [!_LIBC]: Ensure that the required autoconf test has been run.
57473         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57474         Use underlying_strftime for %r.
57475         * lib/sha.c: Merge in some clean-up and optimization changes from
57476         glibc.
57477         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57478         Ensure that it is a multiple of 64.
57479         Rearrange loop exit tests so as to avoid performing an
57480         additional fread after encountering an error or EOF.
57481         * lib/realloc.c: Update copyright date.
57482
57483 2003-08-15  Jim Meyering  <jim@meyering.net>
57484         and Paul Eggert  <eggert@twinsun.com>
57485
57486         Merge from coreutils.
57487         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57488         member but strut utmpx does not.  Needed for AIX 4.3.3.
57489         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57490
57491 2003-08-15  Jim Meyering  <jim@meyering.net>
57492         and Paul Eggert  <eggert@cs.ucla.edu>
57493
57494         Merges from coreutils, etc.
57495         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57496         Require gl_FUNC_TZSET_CLOBBER.
57497         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57498         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57499         members.
57500
57501 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57502
57503         Help the merge from coreutils.
57504         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57505         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57506         * m4/tzset.m4: Use it too.
57507
57508 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57509
57510         * modules/tzset: New file.
57511
57512 2003-08-14  Jim Meyering  <jim@meyering.net>
57513
57514         Merges from coreutils.
57515         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57516         variable names, rather than @FNMATCH_H@.
57517         * modules/alloca: Likewise for $(ALLOCA_H).
57518
57519         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57520         the three copies of the literal target, `fnmatch.h'.
57521         * modules/alloca (alloca.h): Likewise.
57522
57523 2003-08-14  Jim Meyering  <jim@meyering.net>
57524
57525         Merge from coreutils.
57526         * m4/tzset.m4: New file.
57527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57528         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57529         otherwise, AIX 5.1 systems would end up using the latter.
57530         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57531         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57532         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57533         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57534
57535 2003-08-14  Jim Meyering  <jim@meyering.net>
57536
57537         Merge from coreutils.
57538         * lib/obstack.h: Whitespace changes.
57539         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57540         and xcalloc return values.
57541         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57542         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57543         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57544         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57545         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57546         error from mntctl.
57547         Use mntctl's return value to drive the entry-processing loop, since
57548         we can't rely on the value of the vmt_length member in the last
57549         entry.  On some systems doing so could result in exhausting
57550         virtual memory.  Based in part on a patch from Mike Jetzer.
57551
57552 2003-08-14  Jim Meyering  <jim@meyering.net>
57553         and Paul Eggert  <eggert@twinsun.com>
57554
57555         Merges from coreutils, plus other fixes.
57556         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57557         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57558         for credits and details.  Thanks to Kaveh Ghazi for helping
57559         to keep these files in sync.
57560         (ARRAY_SIZE): Define it.
57561         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57562         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57563         (memcasecmp): Don't assume size_t fits in unsigned int.
57564         Remove casts and duplicate code.
57565         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57566         (memcpy): Remove definition.
57567         Merge in some clean-up and optimization changes from glibc.
57568         [BLOCKSIZE]: Move definition to top of file.
57569         Ensure that it is a multiple of 64.
57570         Rearrange loop exit tests so as to avoid performing an
57571         additional fread after encountering an error or EOF.
57572         * lib/md5.h (md5_uintptr): Define.
57573         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57574         return to the initial working directory.  Preserve errno
57575         for caller.
57576         * lib/idcache.c: Include "xalloc.h".
57577         (xmalloc, xrealloc): Remove decls.
57578         (getuser): Remove casts no longer required in C89.
57579         * lib/human.c: Include stdio.h, for sprintf.
57580         * lib/group-member.c: Include "xalloc.h".
57581         (xmalloc, xrealloc): Remove decls.
57582         (get_group_info): Remove casts no longer required in C89.
57583         * lib/getusershell.c (readname): Remove casts no longer required in
57584         C89.
57585         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57586         * lib/getline.c: Whitespace fix, from coreutils.
57587
57588 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57589
57590         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57591         Check for isascii.
57592
57593         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57594         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57595         Undo previous (whitespace-only) change.
57596
57597 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57598
57599         * lib/exclude.c: Include <ctype.h>
57600         (IN_CTYPE_DOMAIN): New macro.
57601         (is_space): New fn.
57602         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57603         and empty lines.
57604
57605         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57606         Undo previous (whitespace-only) change.
57607
57608 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57609
57610         * config/srclist-update: Change update back to the old behavior,
57611         leaving whitespace alone.  Use one 'sed' command rather than a
57612         pipeline.
57613         (fixlicense): Now a variable, not a function.
57614         (remove_trailing_blanks): Remove.
57615         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57616         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57617         Undo previous (whitespace-only) change.
57618
57619 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57620
57621         Merge from coreutils.
57622         * modules/euidaccess: Add lib_SOURCES, include for new
57623         file euidaccess.h
57624
57625 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57626
57627         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57628         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57629         Normalize leading white space and remove trailing white space.
57630
57631         Merge from coreutils
57632         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57633
57634         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57635         0.12.1.  These files are now being upgraded automatically by
57636         ../config/srclist-update.
57637
57638 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57639
57640         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57641         Normalize leading white space and remove trailing white space.
57642         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57643         notice, as per ../config/srclist-update.
57644
57645         Merge from coreutils.
57646         * lib/euidaccess.h: New file.
57647         * lib/euidaccess.c: Include it.
57648         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57649         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57650         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57651
57652 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57653
57654         * config/srclist-update: Add copyright notice.
57655         (remove_id_lines, remove_trailing_blanks): New constants.
57656         (fixfile): Use them to normalize spacing a bit in copied files.
57657         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57658         Normalize leading white space and remove trailing white space.
57659
57660         * config/texinfo.tex: Sync with texinfo.
57661
57662         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57663         strtoul.c from libc, to merge coreutils whitespace changes.
57664
57665         * config/srclist.txt: Get the following m4 files from gettext:
57666         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57667         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57668         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57669         wint_t.m4.
57670
57671 2003-08-12  Karl Berry  <karl@gnu.org>
57672
57673         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57674         been made.
57675
57676 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57677
57678         * modules/gnu-source, m4/gnu-source.m4:
57679         Remove; we're assuming Autoconf 2.54 or later now.
57680         Suggested by Bruno Haible.
57681         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57682
57683 2003-08-11  Bruno Haible  <bruno@clisp.org>
57684
57685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57686
57687 2003-08-11  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57690         (vasnprintf): Use it instead of wcslen.
57691
57692 2003-08-11  Bruno Haible  <bruno@clisp.org>
57693
57694         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57695         value to ensure that _Bool promotes to int. Use #define for _Bool when
57696         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57697
57698 2003-08-10  Karl Berry  <karl@gnu.org>
57699
57700         * lib/regex.h: update from libc (whitespace fix).
57701
57702 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57703
57704         Merge some files from coreutils.  These changes were
57705         originally made by Jim Meyering.
57706         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57707         many older Unixes require this.
57708         * lib/alloca.c (alloca): Remove cast to argument of free;
57709         no longer needed in C89.
57710         * lib/alloca_.h, regex.h: Fix white space to match
57711         what GNU indent does.
57712
57713 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57714
57715         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57716         apparently Emacs's Unicode mode got confused before my 2003-08-05
57717         checkin.
57718
57719 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57720
57721         * m4/extensions.m4: New file.
57722         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57723         Require gl_USE_SYSTEM_EXTENSIONS.
57724         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57725         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57726
57727 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57728
57729         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57730         * modules/extensions, modules/gnu-source: New files.
57731         * modules/timespec, modules/unlocked-io: Depend on extensions.
57732
57733 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57734
57735         * modules/restrict: New file.
57736         * MODULES.html.sh (func_all_modules): Add restrict.
57737         * modules/regex: Depend on restrict.
57738
57739 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57740
57741         * m4/restrict.m4: New file.
57742         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57743
57744 2003-08-07  Bruno Haible  <bruno@clisp.org>
57745
57746         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57747         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57748
57749 2003-08-07  Bruno Haible  <bruno@clisp.org>
57750
57751         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57752         makes the module 'getndelim2' compatible with the module 'getline'.
57753
57754 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57755
57756         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57757         byte with "\201" to avoid glitches when editing that source file
57758         with multi-gnome-terminal.
57759
57760 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57761
57762         * lib/bumpalloc.h: Remove.
57763
57764 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57765
57766         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57767         * modules/bumpalloc: Remove.
57768
57769 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57770
57771         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57772         GNU coding style.
57773
57774         Merge from coreutils.
57775         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57776         1. From glibc.
57777         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57778         from Karl Berry, implemented by Jim Meyering.
57779         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57780         from Dmitry V. Levin.
57781         Remove anachronistic cast of xrealloc.
57782         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57783         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57784         type. Otherwise, it wouldn't compile with at least /bin/cc on
57785         ymp-cray-unicos9.0.2.X.
57786         Combine two mostly-identical uses of alloca into one.
57787         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57788
57789 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57790
57791         [From Emacs.]
57792
57793         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57794         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57795         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57796         obsolete NLIST_NAME_UNION.
57797         [__GNU__]: Undef BSD and FSCALE.
57798         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57799
57800 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57801
57802         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57803         an enum type, so that it's guaranteed to promote to int.  See:
57804         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57805
57806 2003-08-03  Karl Berry  <karl@gnu.org>
57807
57808         * config/depcomp: update from automake.
57809
57810 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57811
57812         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57813         (strerror): Don't assume that a printable int fits in 14 bytes.
57814
57815 2003-07-31  Bruno Haible  <bruno@clisp.org>
57816
57817         * modules/getpass-gnu: New file.
57818         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57819
57820 2003-07-31  Bruno Haible  <bruno@clisp.org>
57821
57822         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57823
57824 2003-07-24  Karl Berry  <karl@gnu.org>
57825
57826         * config/missing: update from automake.
57827
57828 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57829             Bruno Haible  <bruno@clisp.org>
57830
57831         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57832         * lib/getline.c (getline, getdelim): Likewise.
57833         Remove _GNU_SOURCE define; now it's defined in config.h through
57834         m4/getline.m4.
57835
57836 2003-07-23  Karl Berry  <karl@gnu.org>
57837
57838         * config/config.sub: update from prep.
57839
57840 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57841
57842         * modules/xalloc (Depends-on): Add exitfail.
57843         * modules/xmemcoll: Likewise.
57844
57845 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57846
57847         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57848         over-parenthesization in macros.
57849
57850         Sync with coreutils.
57851
57852         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57853         required by C99.
57854
57855         Use `exit_failure' for xalloc and xmemcoll instead of their own
57856         private exit-failure variables.
57857         * lib/xalloc.h (xalloc_exit_failure): Remove.
57858         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57859         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57860         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57861         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57862         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57863
57864 2003-07-20  Jim Meyering  <jim@meyering.net>
57865
57866         * modules/closeout (Depends-on): Add exitfail.
57867         Suggestion from Bruno Haible.
57868
57869 2003-07-19  Karl Berry  <karl@gnu.org>
57870
57871         * config/config.sub: update from prep.
57872
57873 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57874
57875         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57876         Remove.
57877         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57878         to test that it can stand by itself.  Include "exitfail.h".
57879         Clients should set exit_failure instead.
57880         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57881
57882 2003-07-18  Bruno Haible  <bruno@clisp.org>
57883
57884         * modules/getndelim2: New file.
57885         * modules/getline: Share files with module getndelim2.
57886         * modules/getnline: Depend on getndelim2 instead of sharing files with
57887         it. Add getnline.c to lib_SOURCES.
57888         * MODULES.html.sh (func_all_modules): Add getndelim2.
57889
57890 2003-07-18  Bruno Haible  <bruno@clisp.org>
57891
57892         * m4/getndelim2.m4: New file.
57893         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57894         invoke gl_PREREQ_GETNDELIM2.
57895         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57896         gl_PREREQ_GETNDELIM2.
57897         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57898         gl_GETNDELIM2.
57899
57900 2003-07-18  Bruno Haible  <bruno@clisp.org>
57901
57902         * lib/getndelim2.h: New file.
57903         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57904         getndelim2.h.
57905         (getndelim2): Make non-static. Change return type to ssize_t.
57906         * lib/getline.h: Change argument names.
57907         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57908         * lib/getnline.c: Include getndelim2.h.
57909
57910 2003-07-18  Andreas Schwab  <schwab@suse.de>
57911
57912         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57913
57914 2003-07-17  Karl Berry  <karl@gnu.org>
57915
57916         * config/config.sub: update from prep.
57917
57918 2003-07-17  Bruno Haible  <bruno@clisp.org>
57919
57920         * modules/getnline: New file.
57921         * modules/getline: Add lib/getndelim2.c to source file list.
57922         * MODULES.html.sh (func_all_modules): Add getnline.
57923
57924 2003-07-17  Bruno Haible  <bruno@clisp.org>
57925
57926         * m4/getnline.m4: New file.
57927
57928 2003-07-17  Bruno Haible  <bruno@clisp.org>
57929
57930         * m4/Makefile.am.in: Remove file.
57931         * m4/Makefile.am: Remove file.
57932         * m4/Makefile.in: Remove file.
57933
57934 2003-07-17  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/getnline.h: New file.
57937         * lib/getnline.c: New file.
57938         * lib/getndelim2.c: New file, extracted from getline.c.
57939         (getndelim2): Renamed from getdelim2, with added nmax argument.
57940         * lib/getline.c: Include getndelim2.c.
57941         (getdelim2): Moved out to getndelim2.c.
57942         (getline, getdelim): Update.
57943
57944 2003-07-17  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/Makefile.am: Remove file.
57947         * lib/Makefile.in: Remove file.
57948
57949 2003-07-17  Bruno Haible  <bruno@clisp.org>
57950
57951         * configure.in: Remove file.
57952         * Makefile.in: Remove file.
57953
57954 2003-07-17  Bruno Haible  <bruno@clisp.org>
57955
57956         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57957
57958 2003-07-16  Karl Berry  <karl@gnu.org>
57959
57960         * config/srclist-update: was running fixlicense twice, which caused
57961                 texinfo.tex to be nullified for some reason.  Simplify,
57962                 $gplsrc is no longer needed as far as I can see?
57963
57964 2003-07-16  Jim Meyering  <jim@meyering.net>
57965
57966         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57967
57968 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57969
57970         * config/srclist.txt: Get the following files from gettext-runtime/intl
57971         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57972         ref-del.sin.  From Bruno Haible.
57973         * config/srclist-update (fixfile): Change grep pattern again, since the
57974         previous fix didn't work (there was another trailing $).  Use
57975         '[$]' to escape the $s.
57976
57977 2003-07-15  Karl Berry  <karl@gnu.org>
57978
57979         * lib/vasnprintf.c: update from gettext.
57980
57981 2003-07-15  Karl Berry  <karl@gnu.org>
57982
57983         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57984         gets expanded when surrounded by '$'.
57985
57986 2003-07-15  Jim Meyering  <jim@meyering.net>
57987
57988         * modules/save-cwd: Don't depend on error.  From Derek Price.
57989
57990 2003-07-15  Jim Meyering  <jim@meyering.net>
57991
57992         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57993
57994 2003-07-14  Simon Josefsson  <jas@extundo.com>
57995
57996         * modules/mempcpy: New file.
57997         * MODULES.html.sh (func_all_modules): Add mempcpy.
57998
57999 2003-07-14  Simon Josefsson  <jas@extundo.com>
58000
58001         * m4/mempcpy.m4: New file.
58002
58003 2003-07-14  Simon Josefsson  <jas@extundo.com>
58004
58005         * lib/mempcpy.h: New file.
58006         * lib/mempcpy.c: New file.
58007
58008 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58009
58010         * modules/getdate, modules/posixtm: Depend on mktime.
58011
58012 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58013
58014         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58015         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58016         unicodeio.c, unicodeio.h, unlocked-io.h:
58017         Switch from LGPL to GPL.
58018
58019 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58020
58021         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58022         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58023         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58024         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58025         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58026         updated automatically by ../config/srclist-update.  This changes
58027         their license from LPGL to GPL.
58028
58029 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58030
58031         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58032         assumed to refer to the root of the most recent stable gettext version.
58033         * config/srclistvars.sh: Add defaults for eggert.
58034         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58035         Match "This program" as well as "The program".  This is needed
58036         for gettext.
58037
58038 2003-07-14  Jim Meyering  <jim@meyering.net>
58039
58040         Don't emit diagnostics.  Let callers do that.
58041         * lib/save-cwd.c: Don't include "error.h".
58042         (save_cwd): Don't call error.  Ensure that errno is valid
58043         when returning nonzero.
58044
58045         * lib/save-cwd.h (restore_cwd): Update prototype.
58046         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58047         Simplify.  Don't call error upon failure.  Let callers do that.
58048         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58049         when auditing is enabled.  But don't bother updating the #if.
58050
58051 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58052
58053         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58054         it breaks C++ compilation.
58055         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58056
58057 2003-07-10  Simon Josefsson  <jas@extundo.com>
58058
58059         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58060
58061 2003-07-10  Jim Meyering  <jim@meyering.net>
58062
58063         * m4/clock_time.m4: Remove trailing blank.
58064         * m4/intmax_t.m4: Likewise.
58065
58066 2003-07-10  Jim Meyering  <jim@meyering.net>
58067
58068         * lib/vasnprintf.c: Remove trailing blanks.
58069         Make cpp indentation consistent.
58070
58071 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58072
58073         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58074         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58075         Switch from LGPL to GPL.
58076
58077 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58078
58079         * config/srclist.txt: Sort sublists.  Add
58080         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58081         that differ from gnulib for one reason or another; we'd like this list
58082         to be smaller but for now let's document what we have.
58083
58084 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58085
58086         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58087         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58088         and sweeter "eval x=$x".
58089         * config/srclist.txt: Get lib/argp* from glibc.
58090
58091 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58092
58093         * lib/mktime.c: Fix some boundary cases and remove need for floating
58094         point.
58095
58096         Issue a compile-time diagnostic if time_t is floating point, or if
58097         two's complement arithmetic is not in effect, or if arithmetic
58098         right shift does not propagate the sign.  These assumptions were
58099         all in the original code but they weren't checked.
58100
58101         (TIME_T_MIDPOINT, verify): New macros.
58102         (__isleap): Remove; it has integer overflow problems.
58103         (leapyear): New function, without those problems.
58104         (ydhms_tm_diff): Remove; splitting into two parts.
58105         (ydhms_diff): New function, containing the arithmetic part of
58106         the old ydhms_tm_diff function.  Issue a compile-time
58107         diagnostic if we are not using C99 integer division.
58108         Avoid casts when possible.
58109         (guess_time_tm): New function, containing the checking part of
58110         the old ydhms_tm_diff function.  Return the new value, rather than
58111         the difference between it and the old.  Accept a new argument T
58112         so that *T specifies the old value.  Check for overflow in the result.
58113
58114         (__mktime_internal): Use a time_t offset, not a long int offset.
58115         This undoes the 2003-06-04 change, which is no longer needed now
58116         that we have better overflow checking.
58117         (localtime_offset): Likewise.
58118
58119         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58120         and long are 64-bit but int is only 32-bit.
58121         (ydhms_diff): Use long int to store year1 and yday1.
58122         Issue a compile-time diagnostic if long int is not wide enough.
58123
58124         (__mktime_internal): Use long int to store adjusted year and yday.
58125         Use plain C rather than preprocessor commands, if that doesn't
58126         affect efficiency.
58127         Check for overflow (and try to repair) after each probe
58128         rather than checking only at the very end.  This avoids some bugs
58129         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58130         does not equal GMT offset at maximum time).
58131         Use integer to check for overflow rather than floating point; this
58132         is more portable to non-IEEE hosts, and is a tad faster.
58133         When we detect that we are oscillating between two values,
58134         don't check whether tm_isdst has the requested value, since
58135         we already know the answer.  When tm_isdst has the wrong value,
58136         use a different heuristic to find the right one, based on the
58137         extreme values actually observed in practice in tz2003a,
58138         rather than the (overly optimistic) "previous 3 calendar quarters".
58139
58140         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58141         "T const" to accommodate glibc style.
58142         (check_result): Use less-confusing report format.  "long" -> "long int.
58143         (main): Likewise.
58144         Don't loop if the iteration overflows time_t.
58145         Allow a negative step in the iteration.
58146
58147 2003-07-06  Karl Berry  <karl@gnu.org>
58148
58149         * config/depcomp: update from automake.
58150         * config/config.sub: update from prep.
58151
58152 2003-07-03  Karl Berry  <karl@gnu.org>
58153
58154         * config/config.guess: update from prep.
58155
58156 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58157
58158         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58159         xreadlink.c now includes it unconditionally.
58160
58161 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58162
58163         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58164         having it depend on HAVE_SYS_TYPES_H.
58165
58166 2003-07-01  Bruno Haible  <bruno@clisp.org>
58167
58168         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58169         <sys/types.h> should be sufficient.
58170         Reported by Paul Eggert.
58171
58172 2003-06-26  Karl Berry  <karl@gnu.org>
58173
58174         * config/depcomp: update from automake.
58175
58176 2003-06-26  Bruno Haible  <bruno@clisp.org>
58177
58178         * modules/human: Depend on module stdbool.
58179
58180 2003-06-25  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/readlink: New file.
58183         * modules/xreadlink: Depend on it.
58184         * MODULES.html.sh (func_all_modules): Add readlink.
58185
58186 2003-06-25  Bruno Haible  <bruno@clisp.org>
58187
58188         * m4/readlink.m4: New file.
58189
58190 2003-06-25  Bruno Haible  <bruno@clisp.org>
58191
58192         * lib/readlink.c: New file.
58193
58194 2003-06-22  Karl Berry  <karl@gnu.org>
58195
58196         * config/srclist.txt: update mkinstalldirs from automake.
58197         * config/mkinstalldirs: update.
58198
58199 2003-06-22  Bruno Haible  <bruno@clisp.org>
58200
58201         Portability to mingw32.
58202         * m4/ssize_t.m4: New file, from GNU gettext.
58203         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58204         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58205
58206 2003-06-22  Bruno Haible  <bruno@clisp.org>
58207
58208         * modules/safe-read: Add m4/ssize_t.m4.
58209         * modules/xreadlink: Add m4/ssize_t.m4.
58210
58211 2003-06-20  Bruno Haible  <bruno@clisp.org>
58212
58213         Assume C89, so PARAMS isn't needed.
58214         * lib/unicodeio.h (PARAMS): Remove.
58215         * lib/unicodeio.c: Don't use PARAMS.
58216
58217 2003-06-18  Karl Berry  <karl@gnu.org>
58218
58219         * config/config.{guess,sub}: update from prep.
58220
58221 2003-06-18  Jim Meyering  <jim@meyering.net>
58222
58223         Merge changes from coreutils.
58224         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58225         Remove explicit declarations of xmalloc and realloc.
58226         Include xalloc.h.
58227         (read_utmp): Remove anachronistic cast of xmalloc.
58228
58229 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58230
58231         Assume C89, so PARAMS isn't needed.
58232         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58233         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58234         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58235         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58236         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58237         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58238         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58239         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58240         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58241         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58242         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58243         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58244         no longer needed. Anyway, config.h should always be included before any
58245         other file.
58246
58247 2003-06-11  Simon Josefsson  <jas@extundo.com>
58248
58249         * modules/sysexits: New file.
58250         * MODULES.html.sh (func_all_modules): Add sysexits.
58251
58252 2003-06-11  Simon Josefsson  <jas@extundo.com>
58253
58254         * lib/sysexit_.h: New file.
58255
58256 2003-06-11  Derek Price  <derek@ximbiot.com>
58257
58258         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58259         necessary.
58260
58261 2003-06-11  Bruno Haible  <bruno@clisp.org>
58262
58263         * m4/sysexits.m4: New file.
58264
58265 2003-06-10  Simon Josefsson  <jas@extundo.com>
58266
58267         * lib/argp.h: New file, from glibc.
58268         * lib/argp-ba.c: New file, from glibc.
58269         * lib/argp-eexst.c: New file, from glibc.
58270         * lib/argp-fmtstream.c: New file, from glibc.
58271         * lib/argp-fmtstream.h: New file, from glibc.
58272         * lib/argp-fs-xinl.c: New file, from glibc.
58273         * lib/argp-help.c: New file, from glibc.
58274         * lib/argp-namefrob.h: New file, from glibc.
58275         * lib/argp-parse.c: New file, from glibc.
58276         * lib/argp-pv.c: New file, from glibc.
58277         * lib/argp-pvh.c: New file, from glibc.
58278         * lib/argp-xinl.c: New file, from glibc.
58279
58280 2003-06-10  Simon Josefsson  <jas@extundo.com>
58281
58282         * modules/strchrnul: New file.
58283
58284 2003-06-10  Simon Josefsson  <jas@extundo.com>
58285
58286         * modules/argp: New file.
58287
58288 2003-06-10  Simon Josefsson  <jas@extundo.com>
58289
58290         * m4/strchrnul.m4: New file.
58291
58292 2003-06-10  Simon Josefsson  <jas@extundo.com>
58293
58294         * lib/strchrnul.h: New file.
58295         * lib/strchrnul.c: New file.
58296
58297 2003-06-10  Bruno Haible  <bruno@clisp.org>
58298
58299         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58300
58301 2003-06-07  Karl Berry  <karl@gnu.org>
58302
58303         * config/config.{guess,sub}: update from prep.
58304
58305 2003-06-07  Jim Meyering  <jim@meyering.net>
58306
58307         * modules/strtod: Use $(...) notation, not @...@ for
58308         AC_REPLACE'd variables.
58309         * modules/localcharset: Likewise.
58310
58311 2003-06-07  Jim Meyering  <jim@meyering.net>
58312
58313         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58314         in place of my name in the copyright comment.
58315         Remove definition and uses of __P.
58316
58317         From coreutils.
58318         * lib/stat.c: Don't declare xmalloc explicitly.
58319         Instead, include "xalloc.h".
58320         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58321         xrealloc, and xcalloc return values.
58322         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58323         Improve comment.
58324         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58325
58326 2003-06-07  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58329         avoid AC_CONFIG_LINKS.
58330         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58331         fnmatch.h, to avoid AC_CONFIG_LINKS.
58332         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58333
58334 2003-06-07  Bruno Haible  <bruno@clisp.org>
58335
58336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58337         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58338         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58339         directory.
58340         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58341         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58342         directory.
58343
58344 2003-06-06  Jim Meyering  <jim@meyering.net>
58345
58346         Merge from coreutils.
58347         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58348         Consolidate declarations and initializations of *_base* locals.
58349
58350         Merge from coreutils.
58351         This avoids a core dump on systems without GNU putenv,
58352         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58353         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58354         (unsetenv): New static function, from GNU libc.
58355         (rpl_putenv): Use it.
58356
58357         * lib/modechange.c: Remove trailing blanks.
58358
58359         Merge from coreutils.
58360         * lib/fsusage.c: Remove declaration of statfs.
58361         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58362
58363         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58364
58365 2003-06-06  Jim Meyering  <jim@meyering.net>
58366
58367         * lib/stdbool_.h: Renamed from stdbool.h.in.
58368
58369 2003-06-06  Jim Meyering  <jim@meyering.net>
58370             Bruno Haible  <bruno@clisp.org>
58371
58372         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58373         Adjust Makefile.am snippet not to redirect directly to target.
58374         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58375
58376 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58377
58378         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58379         mismatch, look in future quarters as well as past.  This fixes a
58380         bug when processing fall-backwards gaps immediately after a long
58381         period of daylight-saving time.
58382
58383         * lib/mktime.c: Assume freestanding C89 or better.
58384         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58385         (__P): Remove; not used.
58386         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58387         (mktime, not_equal_tm, print_tm, check_result,
58388         main): Use prototypes.  Use const * where appropriate.
58389         (main): Fix typo in testing code that uncovered by above changes.
58390         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58391
58392 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58393
58394         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58395         locale.h, localeconv.  This merges changes from coreutils.
58396
58397         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58398         It can be removed after the next Autoconf is released.
58399         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58400         needed.
58401
58402 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58403
58404         * lib/mktime.c: Fix Debian bug 177940
58405         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58406         (localtime_offset): Now long int, not time_t, because we want it
58407         to be guaranteed to be signed.  All uses changed.
58408         (__mktime_internal): If overflow would occur when adding offset,
58409         don't add it.
58410
58411         Merge 'human' changes from coreutils.  Rewrite to support
58412         locale-specific notations like thousands separators.
58413         * lib/human.c: Simplify authorship notice.
58414         Include human.h immediately after config.h.
58415         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58416         <limits.h>: Do not include, since human.h does.
58417         (SIZE_MAX, UINTMAX_MAX): New macros.
58418         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58419         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58420         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58421         (power_letter): Renamed from suffixes.
58422         (generate_suffix_backwards): Remove.
58423         (adjust_value): Now takes int style (because of human.h changes)
58424         and long double value (for greater precision on some platforms).
58425         (group_number): New function.
58426         (human_readable): Use it.  Use integer options, not enum.
58427         Put the options before the sizes in the arg list.
58428         Support all the new options.
58429         The old human_readable function has been removed;
58430         use inttostr.h instead.
58431         (human_readable, default_block_size, humblock):
58432         Use uintmax_t, not int, for block sizes.
58433         (human_readable_inexact, block_size_types): Remove.
58434         (block_size_opts): New constant.
58435         (human_options): Renamed from human_block_size, with new signature
58436         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58437         * lib/human.h: Add copyright and authorship notice.
58438         Include <limits.h> and <stdbool.h> unconditionally.
58439         (PARAMS): Remove.  All uses removed.
58440         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58441         (enum human_inexact_style): Remove tag; now a nameless enum.
58442         (human_floor, human_ceiling, human_round_to_even): Now have
58443         values 2, 0, 1 rather than -1, 1, 0.
58444         (human_group_digits, human_suppress_point_zero, human_autoscale,
58445         human_base_1024, human_SI, human_B): New constants.
58446         (human_readable_inexact, human_block_size): Remove.
58447         (human_readable): Size args are now uintmax_t, not int.
58448         (human_options): New decl.
58449
58450         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58451         unnecessary now that we assume C89 or better.  This change
58452         imported from coreutils.
58453
58454         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58455         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58456         in the 2003-05-30 sync from glibc.
58457
58458         .h files should stand alone, but we shouldn't include <sys/types.h>
58459         if we can get away with just <stddef.h>.
58460
58461         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58462         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58463         rather than <sys/types.h>, as we merely need size_t.
58464         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58465         to get size_t.
58466         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58467         Include <stdio.h>, to get FILE.
58468         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58469         memcasecmp.h has included <stddef.h> and all we need is size_t.
58470         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58471         our interface, instead of including <sys/types.h>
58472
58473 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58474
58475         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58476         now, as glibc mktime is buggy on non-glibc systems.
58477
58478 2003-06-03  Karl Berry  <karl@gnu.org>
58479
58480         * config/config.sub: update from prep.
58481
58482 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58483
58484         [from coreutils]
58485         Fix some minor time-related bugs with POSIX time arguments.
58486         Some valid time stamps were being rejected (notably -1, and
58487         time stamps before 1900 on 64-bit hosts).  And some invalid
58488         time stamps were being accepted, e.g. September 31.
58489
58490         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58491         that we can return (time_t) -1 successfully.
58492         * lib/posixtm.c: Likewise.
58493         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58494         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58495         (t): Remove static var.
58496         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58497         of static var.  All uses changed.
58498         (year): Do not reject years before 1900; they can occur with
58499         64-bit time_t.
58500         (posix_time_parse): Do not check for out-of-range components;
58501         that is now the caller's responsibility, since our checks were
58502         only approximations.
58503         (posixtime): Use mktime to check for out-of-range components,
58504         since it knows them exactly.
58505         If mktime returns (time_t) -1, check whether an error actually occurred
58506         by invoking localtime on -1.
58507         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58508         posixtime failures better.
58509         Improve the test data (in comments only).
58510
58511 2003-06-02  Karl Berry  <karl@gnu.org>
58512
58513         * config/mkinstalldirs (version): new variable.
58514         (--version): new option.
58515         (usage): improve message.
58516
58517 2003-05-30  Karl Berry  <karl@gnu.org>
58518
58519         * lib/mktime.c: update from libc.
58520
58521 2003-05-30  Bruno Haible  <bruno@clisp.org>
58522
58523         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58524         * config/config.rpath: Upgrade to gettext-0.12.1.
58525
58526 2003-05-30  Bruno Haible  <bruno@clisp.org>
58527
58528         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58529         * m4/nls.m4: New file, from gettext-0.12.1.
58530         * m4/po.m4: New file, from gettext-0.12.1.
58531         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58532
58533 2003-05-30  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58536         * lib/localcharset.h: Likewise.
58537         * lib/localcharset.c: Likewise.
58538
58539 2003-05-29  Karl Berry  <karl@gnu.org>
58540
58541         * config/config.rpath: update from gettext.
58542
58543 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58544
58545         Assume the headers required for C89 freestanding compilers.
58546         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58547         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58548         * m4/human.m4 (gl_HUMAN): Likewise.
58549         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58550         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58551         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58552         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58553         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58554         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58555
58556 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58557
58558         Assume the headers required for C89 freestanding compilers.
58559         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58560         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58561         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58562         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58563         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58564         define, since <limits.h> is guaranteed to do that.
58565         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58566         * lib/exclude.c: Include <stdbool.h> unconditionally.
58567         * lib/tempname.c: Include <stddef.h> unconditionally.
58568         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58569         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58570         <stddef.h> does that.
58571         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58572         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58573         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58574         needed.
58575         * lib/xstrtol.c: Likewise.
58576         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58577         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58578
58579         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58580         warnings on some platforms.
58581
58582         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58583         arbitrarily.
58584
58585 2003-05-26  Jim Meyering  <jim@meyering.net>
58586
58587         Merge in a change from coreutils:
58588         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58589         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58590         that condition, rather than `-1' which is slightly misleading.
58591         Change the name of the cache variable to have the gl_ prefix.
58592         Prompted by a patch from Richard Dawe for DJGPP.
58593
58594 2003-05-24  Karl Berry  <karl@gnu.org>
58595
58596         * config/config.guess: update from prep.
58597
58598 2003-05-22  Karl Berry  <karl@gnu.org>
58599
58600         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58601
58602 2003-05-20  Karl Berry  <karl@gnu.org>
58603
58604         * config/config.guess: update from prep.
58605
58606 2003-05-18  Karl Berry  <karl@gnu.org>
58607
58608         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58609         might actually be set by the user.
58610
58611         * config/depcomp, install-sh, mdate-sh: update from automake.
58612
58613 2003-05-17  Bruno Haible  <bruno@clisp.org>
58614
58615         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58616         invalid expansion for AC_EGREP_CPP.
58617         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58618         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58619         Suggested by Akim Demaille <akim@epita.fr> in
58620         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58621
58622 2003-05-12  Jim Meyering  <jim@meyering.net>
58623
58624         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58625         the space-padded-by-default conversion specifiers, %e, %k, %l.
58626
58627 2003-05-12  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58630         the string is longer than 4 KB.
58631
58632 2003-05-11  Karl Berry  <karl@gnu.org>
58633
58634         * config/config.{guess,sub}: update from prep.
58635
58636 2003-05-09  Bruno Haible  <bruno@clisp.org>
58637
58638         * modules/error: Add m4/strerror_r.m4 to file list.
58639
58640 2003-05-03  Bruno Haible  <bruno@clisp.org>
58641
58642         Upgrade to Unicode-4.0.
58643         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58644         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58645         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58646         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58647         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58648         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58649         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58650         Change width of U+E0100..U+E01EF from 1 to 0.
58651
58652 2003-04-25  Jim Meyering  <jim@meyering.net>
58653
58654         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58655         of type size_t, not int.
58656
58657 2003-04-25  Bruno Haible  <bruno@clisp.org>
58658
58659         * lib/copy-file.c: Include <stddef.h>, for size_t.
58660
58661 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58662
58663         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58664         code which expansion is under static control.  Patch imported from
58665         Akim Demaille's patch to Bison; see
58666         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58667
58668 2003-04-14  Bruno Haible  <bruno@clisp.org>
58669
58670         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58671
58672 2003-04-11  Jim Meyering  <jim@meyering.net>
58673
58674         Merge changes from Coreutils.
58675
58676         2003-03-22  Jim Meyering  <jim@meyering.net>
58677
58678         * lib/strftime.c (widen): Cast alloca return value to proper type.
58679
58680         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58681
58682         From GNU libc.
58683         * lib/strftime.c (my_strftime): Handle very large width
58684         specifications for numeric values correctly.  Improve checks for
58685         overflow.
58686
58687         2003-01-19  Jim Meyering  <jim@meyering.net>
58688
58689         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58690         definitions.
58691         (nl_get_alt_digit) [! defined my_strftime]: Define.
58692         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58693         _nl_get_alt_digit and _nl_get_walt_digit.
58694
58695         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58696         libc. These changes have no effect outside of _LIBC.
58697
58698 2003-04-10  Bruno Haible  <bruno@clisp.org>
58699
58700         * modules/findprog: New file.
58701         * MODULES.html.sh (func_all_modules): Add it.
58702
58703 2003-04-10  Bruno Haible  <bruno@clisp.org>
58704
58705         * m4/findprog.m4: New file.
58706         * m4/eaccess.m4: New file.
58707
58708 2003-04-10  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/findprog.h: New file, from GNU gettext.
58711         * lib/findprog.c: New file, from GNU gettext.
58712
58713 2003-04-05  Jim Meyering  <jim@meyering.net>
58714
58715         Merge changes from Coreutils.
58716
58717         * lib/exclude.h (PARAMS): Remove definition and uses.
58718         * lib/exclude.c: Remove uses of `PARAMS'.
58719
58720         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58721         Add test-cases for DOS filenames. Declare program_name.
58722         (main): Set up program_name.  Patch by Rich Dawe.
58723
58724         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58725         error from mntctl.
58726         Use mntctl's return value to drive the entry-processing loop, since
58727         we can't rely on the value of the vmt_length member in the last
58728         entry.  On some systems doing so could result in exhausting
58729         virtual memory.  Based in part on a patch from Mike Jetzer.
58730
58731 2003-04-04  Bruno Haible  <bruno@clisp.org>
58732
58733         * modules/linebreak: New file.
58734         * MODULES.html.sh (func_all_modules): Add it.
58735
58736 2003-04-04  Bruno Haible  <bruno@clisp.org>
58737
58738         * m4/linebreak.m4: New file.
58739
58740 2003-04-04  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/linebreak.h: New file, from GNU gettext.
58743         * lib/linebreak.c: New file, from GNU gettext with slight
58744         modifications.
58745         * lib/lbrkprop.h: New file, from GNU gettext.
58746
58747 2003-04-03  Bruno Haible  <bruno@clisp.org>
58748
58749         * modules/utf8-ucs4: New file.
58750         * modules/utf16-ucs4: New file.
58751         * modules/ucs4-utf8: New file.
58752         * modules/ucs4-utf16: New file.
58753         * MODULES.html.sh (func_all_modules): Add them.
58754
58755 2003-04-03  Bruno Haible  <bruno@clisp.org>
58756
58757         * m4/utf-ucs4.m4: New file.
58758         * m4/ucs4-utf.m4: New file.
58759
58760 2003-04-03  Bruno Haible  <bruno@clisp.org>
58761
58762         * lib/utf8-ucs4.h: New file, from GNU gettext.
58763         * lib/utf16-ucs4.h: New file, from GNU gettext.
58764         * lib/ucs4-utf8.h: New file, from GNU gettext.
58765         * lib/ucs4-utf16.h: New file, from GNU gettext.
58766
58767 2003-04-02  Bruno Haible  <bruno@clisp.org>
58768
58769         * modules/binary-io: New file.
58770         * MODULES.html.sh (func_all_modules): Add it.
58771
58772 2003-04-02  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/binary-io.h: New file, from GNU gettext.
58775
58776 2003-04-01  Bruno Haible  <bruno@clisp.org>
58777
58778         * modules/pathname: New file.
58779         * MODULES.html.sh (func_all_modules): Add it.
58780
58781 2003-04-01  Bruno Haible  <bruno@clisp.org>
58782
58783         * lib/pathname.h: New file, from GNU gettext.
58784         * lib/concatpath.c: New file, from GNU gettext.
58785
58786 2003-03-30  Bruno Haible  <bruno@clisp.org>
58787
58788         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58789
58790 2003-03-30  Bruno Haible  <bruno@clisp.org>
58791
58792         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58793         function chown() doesn't exist.
58794
58795 2003-03-28  Bruno Haible  <bruno@clisp.org>
58796
58797         * modules/copy-file: New file.
58798         * MODULES.html.sh (func_all_modules): Add it.
58799
58800 2003-03-28  Bruno Haible  <bruno@clisp.org>
58801
58802         * m4/copy-file.m4: New file.
58803
58804 2003-03-28  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/copy-file.h: New file, from GNU gettext.
58807         * lib/copy-file.c: New file, from GNU gettext.
58808
58809 2003-03-18  Jim Meyering  <jim@meyering.net>
58810
58811         * lib/quote.c (quote_n): Fix typo in comment.
58812
58813 2003-03-18  Bruno Haible  <bruno@clisp.org>
58814
58815         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58816         checking.
58817         * m4/onceonly_2_57.m4: Likewise.
58818
58819 2003-03-17  Bruno Haible  <bruno@clisp.org>
58820
58821         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58822         (m4_quote): Remove macro.
58823         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58824
58825 2003-03-14  Jim Meyering  <jim@meyering.net>
58826
58827         Merge changes from Coreutils.
58828         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58829         to be const, in order to avoid warnings.
58830         (obstack_room): Likewise.
58831         (obstack_empty_p): Likewise.
58832
58833 2003-03-14  Bruno Haible  <bruno@clisp.org>
58834
58835         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58836         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58837
58838 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58839
58840         Merge changes from Bison.
58841         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58842         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58843         when compiling Bison 1.875's `bitset bset = obstack_alloc
58844         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58845         * lib/hash.c: Include <stdbool.h> unconditionally.
58846
58847 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58848
58849         * m4/onceonly.m4 (m4_quote): New macro.
58850         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58851         Quote AC_FOREACH variable-expansions properly.
58852
58853 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58854
58855         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58856
58857 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58858
58859         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58860         Reported by Bruce Becker; see:
58861         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58862
58863 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58864             Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58867         Reported by John Hughes, see
58868         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58869
58870 2003-02-20  Bruno Haible  <bruno@clisp.org>
58871
58872         * MODULES.html.sh (func_all_modules): Add poll.
58873
58874 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58875
58876         * modules/poll: New file.
58877
58878 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58879
58880         * lib/poll_.h: New file.
58881         * lib/poll.c: New file.
58882
58883 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58884
58885         * m4/poll.m4: New file.
58886
58887 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58888
58889         * modules/mathl: New file.
58890
58891 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58892
58893         * lib/mathl.h: New file.
58894         * lib/acosl.c: New file.
58895         * lib/asinl.c: New file.
58896         * lib/atanl.c: New file.
58897         * lib/ceill.c: New file.
58898         * lib/cosl.c: New file.
58899         * lib/expl.c: New file.
58900         * lib/floorl.c: New file.
58901         * lib/frexpl.c: New file.
58902         * lib/ldexpl.c: New file.
58903         * lib/logl.c: New file.
58904         * lib/sincosl.c: New file.
58905         * lib/sinl.c: New file.
58906         * lib/sqrtl.c: New file.
58907         * lib/tanl.c: New file.
58908         * lib/trigl.c: New file.
58909         * lib/trigl.h: New file.
58910
58911 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58912
58913         * m4/mathl.m4: New file.
58914
58915 2003-02-18  Bruno Haible  <bruno@clisp.org>
58916
58917         * MODULES.html.sh (func_all_modules): Add mathl.
58918
58919 2003-02-17  Bruno Haible  <bruno@clisp.org>
58920
58921         * modules/mkdtemp: New module.
58922         * MODULES.html.sh (func_all_modules): Add it.
58923
58924 2003-02-17  Bruno Haible  <bruno@clisp.org>
58925
58926         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58927
58928 2003-02-17  Bruno Haible  <bruno@clisp.org>
58929
58930         * lib/mkdtemp.h: New file, from GNU gettext.
58931         * lib/mkdtemp.c: New file, from GNU gettext.
58932
58933 2003-02-02  Jim Meyering  <jim@meyering.net>
58934
58935         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58936         e.g. glibc-2.2.93.
58937
58938 2003-01-31  Bruno Haible  <bruno@clisp.org>
58939
58940         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58941         'rpl_rename'.
58942         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58943         'rpl_strnlen'.
58944         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58945         'rpl_strtod'.
58946         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58947         'rpl_utime'.
58948
58949 2003-01-31  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/rename.c: #undef rename before defining rpl_rename.
58952         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58953
58954 2003-01-30  Bruno Haible  <bruno@clisp.org>
58955
58956         * modules/vasnprintf, modules/vasprintf: New modules.
58957         * MODULES.html.sh (func_all_modules): Add them.
58958
58959 2003-01-30  Bruno Haible  <bruno@clisp.org>
58960
58961         * m4/signed.m4: New file, from GNU gettext.
58962         * m4/longdouble.m4: New file, from GNU gettext.
58963         * m4/wchar_t.m4: New file, from GNU gettext.
58964         * m4/wint_t.m4: New file, from GNU gettext.
58965         * m4/vasnprintf.m4: New file.
58966         * m4/vasprintf.m4: New file.
58967
58968 2003-01-30  Bruno Haible  <bruno@clisp.org>
58969
58970         * lib/printf-args.h: New file, from GNU gettext.
58971         * lib/printf-args.c: New file, from GNU gettext.
58972         * lib/printf-parse.h: New file, from GNU gettext.
58973         * lib/printf-parse.c: New file, from GNU gettext.
58974         * lib/vasnprintf.h: New file, from GNU gettext.
58975         * lib/vasnprintf.c: New file, from GNU gettext.
58976         * lib/asnprintf.c: New file, from GNU gettext.
58977         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58978         * lib/vasprintf.c: New file, from GNU gettext.
58979         * lib/asprintf.c: New file, from GNU gettext.
58980
58981 2003-01-29  Bruno Haible  <bruno@clisp.org>
58982
58983         * modules/stpncpy: New module.
58984         * MODULES.html.sh (func_all_modules): Add it.
58985
58986 2003-01-29  Bruno Haible  <bruno@clisp.org>
58987
58988         * m4/stpncpy.m4: New file.
58989
58990 2003-01-29  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58993         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58994
58995 2003-01-28  Bruno Haible  <bruno@clisp.org>
58996
58997         * modules/c-ctype: New module.
58998         * MODULES.html.sh (func_all_modules): Add it.
58999
59000 2003-01-28  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59003         Paul Eggert.
59004         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59005         Paul Eggert.
59006
59007 2003-01-27  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/xsetenv: New module.
59010         * MODULES.html.sh (func_all_modules): Add it.
59011
59012 2003-01-27  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/xsetenv.h: New file, from GNU gettext.
59015         * lib/xsetenv.c: New file, from GNU gettext.
59016
59017 2003-01-23  Jim Meyering  <jim@meyering.net>
59018
59019         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59020         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59021
59022 2003-01-23  Bruno Haible  <bruno@clisp.org>
59023
59024         * modules/minmax: New module.
59025         * MODULES.html.sh (func_all_modules): Add it.
59026
59027 2003-01-23  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59030         Eggert.
59031
59032 2003-01-22  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/exit: New module.
59035         * MODULES.html.sh (func_all_modules): Add it.
59036
59037 2003-01-22  Bruno Haible  <bruno@clisp.org>
59038
59039         * lib/exit.h: New file, from GNU gettext.
59040
59041 2003-01-19  Bruno Haible  <bruno@clisp.org>
59042
59043         * gnulib-tool: Recognize option --extract-maintainer.
59044         (func_get_maintainer): New function.
59045         * modules/*: Add Maintainer entry.
59046
59047 2003-01-16  Jim Meyering  <jim@meyering.net>
59048
59049         * m4/regex.m4: The `regex' struct is both input and output.
59050         Initialize it before each use.  Patch by Tim Waugh.
59051
59052 2003-01-16  Bruno Haible  <bruno@clisp.org>
59053
59054         * MODULES.html.sh: Add a table of contents. Add the module name as
59055         leftmost column. Add hyperlinks.
59056
59057 2003-01-15  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59060
59061 2003-01-15  Bruno Haible  <bruno@clisp.org>
59062
59063         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59064         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59065         suffix.
59066
59067 2003-01-15  Bruno Haible  <bruno@clisp.org>
59068
59069         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59070
59071 2003-01-15  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59074         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59075
59076 2003-01-14  Jim Meyering  <jim@meyering.net>
59077
59078         * lib/same.c (same_name): Tweak a comment.
59079
59080 2003-01-14  Bruno Haible  <bruno@clisp.org>
59081
59082         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59083         when a string comparison is sufficient.
59084
59085 2003-01-14  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59088         'unsigned int'.
59089
59090 2003-01-14  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/hash-pjw.c: Add comment about low quality of this function.
59093
59094 2003-01-13  Bruno Haible  <bruno@clisp.org>
59095
59096         * modules/stpcpy: Distribute lib/stpcpy.h.
59097         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59098
59099 2003-01-13  Bruno Haible  <bruno@clisp.org>
59100
59101         * modules/*: Add a description.
59102         * modules/strpbrk: Fix Makefile.am snippet.
59103         * modules/strtoimax: Fix dependencies.
59104         * modules/strtoumax: Likewise.
59105
59106 2003-01-13  Bruno Haible  <bruno@clisp.org>
59107
59108         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59109         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59110         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59111
59112 2003-01-13  Bruno Haible  <bruno@clisp.org>
59113
59114         * gnulib-tool (func_create_testdir): Store config/* files in the main
59115         directory.
59116         * config.rpath: Move to ...
59117         * config/config.rpath: ... here.
59118         * modules/gettext: Contains config/config.rpath, not config.rpath.
59119         * modules/iconv: Likewise.
59120
59121 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59122
59123         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59124         to avoid collisions with libcurses and libreadline.
59125
59126         * m4/getstr.m4: Remove.
59127         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59128
59129 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59130
59131         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59132         to avoid collisions with libcurses and libreadline.
59133
59134         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59135         * lib/getstr.h, getstr.c: Remove.
59136         * lib/getline.c: Include "getline.h", to check interface.
59137         Move body of old getstr.c here: this defines MIN_CHUNK and
59138         declares getdelim2, which is renamed from getstr.
59139         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59140
59141         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59142         All uses changed.
59143         * lib/linebuffer.h: Likewise.
59144         (readline): Remove backward-compatibility macro.
59145
59146 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59147
59148         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59149         to avoid collisions with libcurses and libreadline.
59150         * getstr: Remove.
59151         * MODULES.html.sh: Remove getstr.
59152         * modules/getline: Depend on unlocked-io, not getstr.
59153
59154 2003-01-12  Jim Meyering  <jim@meyering.net>
59155
59156         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59157
59158 2003-01-10  Bruno Haible  <bruno@clisp.org>
59159
59160         * modules/alloca: Change Makefile.am requirements. Simplify Include
59161         requirements. Add lib/alloca_.h to file list.
59162
59163 2003-01-10  Bruno Haible  <bruno@clisp.org>
59164
59165         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59166
59167 2003-01-10  Bruno Haible  <bruno@clisp.org>
59168
59169         * lib/alloca_.h: New file.
59170         * lib/getdate.y: Unconditionally include alloca.h.
59171         * lib/makepath.c: Likewise.
59172         * lib/setenv.c: Likewise.
59173         * lib/userspec.c: Likewise.
59174
59175 2003-01-09  Karl Berry  <karl@gnu.org>
59176
59177         * MODULES.html.sh: include `dirname $0` in PATH, to find
59178         gnulib-tool.
59179
59180 2003-01-09  Bruno Haible  <bruno@clisp.org>
59181
59182         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59183         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59184
59185 2003-01-09  Bruno Haible  <bruno@clisp.org>
59186
59187         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59188
59189 2003-01-09  Bruno Haible  <bruno@clisp.org>
59190
59191         * lib/stdbool.h.in: New file.
59192
59193 2003-01-09  Bruno Haible  <bruno@clisp.org>
59194
59195         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59196         * MODULES.html.sh: Likewise.
59197
59198 2003-01-08  Jim Meyering  <jim@meyering.net>
59199
59200         * lib/full-write.c: Undefine and define-away `const' after inclusion
59201         of errno.h, not before.  Suggestion from Bruno Haible.
59202
59203 2003-01-08  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/full-read: Depend on full-write.
59206
59207 2003-01-08  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/safe-read.c: Include specification header first, to ensure its
59210         selfcontainedness.
59211         * lib/full-write.c: Likewise.
59212
59213 2003-01-07  Jim Meyering  <jim@meyering.net>
59214
59215         * lib/full-write.c: Rework so that it may serve to define full_read,
59216         too.
59217         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59218
59219 2003-01-07  Bruno Haible  <bruno@clisp.org>
59220
59221         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59222         <inttypes.h>.
59223         * lib/xstrtol.h: Likewise.
59224         * lib/xstrtoimax.c: Likewise.
59225         * lib/xstrtoumax.c: Likewise.
59226         * lib/human.h: Likewise.
59227
59228         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59229         on systems that have <inttypes.h> but not <stdint.h>.
59230
59231 2003-01-07  Bruno Haible  <bruno@clisp.org>
59232
59233         * MODULES.html.sh: Add copyright notice.
59234         (missed_files): Omit CVS directory entries.
59235         (func_module): Make it work with sed-3.02.
59236         * MODULES.txt: Remove file.
59237
59238 2003-01-06  Jim Meyering  <jim@meyering.net>
59239
59240         * lib/version-etc.c: Update year in translatable copyright string.
59241
59242 2003-01-03  Karl Berry  <karl@gnu.org>
59243
59244         * config/config.{guess,sub}: update from prep.
59245
59246 2003-01-02  Karl Berry  <karl@gnu.org>
59247
59248         * doc/COPYING.DOC: belatedly updated to 1.2.
59249
59250 2003-01-01  Karl Berry  <karl@gnu.org>
59251
59252         * gnulib-tool (func_verify_module): report module name $module in
59253         error message, not $1.
59254         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59255         be created, only if it doesn't exist.
59256         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59257
59258 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59259
59260         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59261
59262 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59263
59264         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59265         memcmp if strcoll doesn't work.
59266
59267 2002-12-31  Bruno Haible  <bruno@clisp.org>
59268
59269         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59270         nonempty.
59271
59272 2002-12-31  Bruno Haible  <bruno@clisp.org>
59273
59274         * lib/memcoll.c (STRCOLL): New macro.
59275         (memcoll): Use it.
59276
59277 2002-12-31  Bruno Haible  <bruno@clisp.org>
59278
59279         * lib/localcharset.h: New file.
59280         * lib/localcharset.c: Include it.
59281         * lib/unicodeio.c: Likewise.
59282
59283 2002-12-31  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59286         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59287
59288 2002-12-31  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/getline.h: Include <stddef.h>, for size_t.
59291
59292         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59293         * lib/unicodeio.c: Don't include <stddef.h>.
59294
59295 2002-12-31  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59298         HAVE_TM_ZONE.
59299
59300 2002-12-24  Karl Berry  <karl@gnu.org>
59301
59302         * config/config.guess: update from prep.
59303
59304 2002-12-24  Bruno Haible  <bruno@clisp.org>
59305
59306         General infrasructure.
59307         * m4/README: Rewritten.
59308         * m4/onceonly.m4: New file.
59309         * m4/onceonly_2_57.m4: New file.
59310
59311         Module atexit.
59312         * m4/atexit.m4: New file.
59313
59314         Module strtod.
59315         * m4/strtod.m4: New file.
59316
59317         Module strtol.
59318         * m4/strtol.m4: New file.
59319
59320         Module strtoul.
59321         * m4/strtoul.m4: New file.
59322
59323         Module memchr.
59324         * m4/memchr.m4: New file.
59325
59326         Module memcmp.
59327         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59328         (jm_FUNC_MEMCMP): Invoke it.
59329
59330         Module memcpy.
59331         * m4/memcpy.m4: New file.
59332
59333         Module memmove.
59334         * m4/memmove.m4: New file.
59335
59336         Module memset.
59337         * m4/memset.m4: New file.
59338
59339         Module strcspn.
59340         * m4/strcspn.m4: New file.
59341
59342         Module strpbrk.
59343         * m4/strpbrk.m4: New file.
59344
59345         Module strstr.
59346         * m4/strstr.m4: New file.
59347
59348         Module strerror.
59349         * m4/strerror.m4: New file.
59350
59351         Module mktime.
59352         * m4/mktime.m4: Renamed from jm-mktime.m4.
59353         (gl_PREREQ_MKTIME): New macro.
59354         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59355
59356         Module malloc.
59357         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59358         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59359         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59360
59361         Module realloc.
59362         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59363         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59364         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59365
59366         Module strftime.
59367         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59368         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59369         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59370         gl_TM_GMTOFF.
59371         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59372
59373         Module xalloc.
59374         * m4/xalloc.m4: New file.
59375
59376         Module alloca.
59377         * m4/alloca.m4: New file.
59378
59379         Module putenv.
59380         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59381         (jm_FUNC_PUTENV): Invoke it.
59382
59383         Module setenv.
59384         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59385         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59386         when invoked twice.
59387         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59388         gt_FUNC_SETENV.
59389
59390         Module memrchr.
59391         * m4/memrchr.m4: New file.
59392
59393         Module stpcpy.
59394         * m4/stpcpy.m4: New file.
59395
59396         Module strcase.
59397         * m4/strcase.m4: New file.
59398
59399         Module strdup.
59400         * m4/strdup.m4: New file.
59401
59402         Module strnlen.
59403         * m4/strnlen.m4: New file.
59404
59405         Module strndup.
59406         * m4/strndup.m4: New file.
59407
59408         Module xstrtod.
59409         * m4/xstrtod.m4: New file.
59410
59411         Module xstrtol.
59412         * m4/xstrtol.m4: New file.
59413
59414         Module getdate.
59415         * m4/getdate.m4: New file.
59416
59417         Module unlocked-io.
59418         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59419         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59420         * m4/jm-glibc-io.m4n: Remove file.
59421
59422         Module long-options.
59423         * m4/long-options.m4: New file.
59424
59425         Module md5.
59426         * m4/md5.m4: New file.
59427
59428         Module sha.
59429         * m4/sha.m4: New file.
59430
59431         Module getstr.
59432         * m4/getstr.m4: New file.
59433
59434         Module getline.
59435         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59436         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59437         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59438         simply getline. Infoke gl_PREREQ_GETLINE.
59439
59440         Module obstack.
59441         * m4/obstack.m4: New file.
59442
59443         Module hash.
59444         * m4/hash.m4: New file.
59445
59446         Module readtokens.
59447         * m4/readtokens.m4: New file.
59448
59449         Module strverscmp.
59450         * m4/strverscmp.m4: New file.
59451
59452         Module stdbool.
59453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59454         OSF/1.
59455
59456         Module strtoll.
59457         * m4/strtoll.m4: New file.
59458
59459         Module strtoull.
59460         * m4/strtoull.m4: New file.
59461
59462         Module strtoimax.
59463         * m4/strtoimax.m4: New file.
59464
59465         Module strtoumax.
59466         * m4/strtoumax.m4: New file.
59467
59468         Module xstrtoimax.
59469         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59470         jm_AC_PREREQ_XSTRTOIMAX.
59471         Moved the strtol prerequisites to strtol.m4.
59472         Moved the strtoll prerequisites to strtoll.m4.
59473         Moved the strtoimax prerequisites to strtoimax.m4.
59474
59475         Module xstrtoumax.
59476         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59477         jm_AC_PREREQ_XSTRTOUMAX.
59478         Moved the strtoul prerequisites to strtoul.m4.
59479         Moved the strtoull prerequisites to strtoull.m4.
59480         Moved the strtoumax prerequisites to strtoumax.m4.
59481
59482         Module chown.
59483         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59484         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59485
59486         Module dup2.
59487         * m4/dup2.m4: New file.
59488
59489         Module ftruncate.
59490         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59491         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59492
59493         Module getgroups.
59494         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59495         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59496
59497         Module gettimeofday.
59498         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59499         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59500         gl_PREREQ_GETTIMEOFDAY.
59501
59502         Module mkdir.
59503         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59504         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59505
59506         Module mkstemp.
59507         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59508         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59509         jm_AC_TYPE_UINTMAX_T.
59510         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59511
59512         Module stat.
59513         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59514         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59515
59516         Module lstat.
59517         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59518         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59519
59520         Module timespec.
59521         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59522         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59523         * m4/st_mtim.m4: Indentation.
59524
59525         Module nanosleep.
59526         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59527         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59528         gl_PREREQ_NANOSLEEP.
59529
59530         Module regex.
59531         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59532         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59533         (gl_REGEX): New macro.
59534
59535         Module rename.
59536         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59537         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59538
59539         Module rmdir.
59540         * m4/rmdir.m4: New file.
59541
59542         Module utime.
59543         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59544         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59545         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59546
59547         Module dirname.
59548         * m4/dirname.m4: New file.
59549
59550         Module getopt.
59551         * m4/getopt.m4: New file.
59552
59553         Module unistd-safer.
59554         * m4/unistd-safer.m4: New file.
59555
59556         Module fnmatch.
59557         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59558         declaration.
59559         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59560         (gl_FUNC_FNMATCH_POSIX): New macro.
59561         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59562         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59563         simply fnmatch.
59564
59565         Module exclude.
59566         * m4/exclude.m4: New file.
59567
59568         Module human.
59569         * m4/human.m4: New file.
59570
59571         Module acl.
59572         * m4/acl.m4: Nop.
59573
59574         Module backupfile.
59575         * m4/backupfile.m4: New file.
59576         * m4/d-ino.m4: Indentation.
59577
59578         Module fsusage.
59579         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59580         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59581         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59582
59583         Module dirfd.
59584         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59585         requirements.
59586
59587         Module euidaccess.
59588         * m4/euidaccess.m4: New file.
59589
59590         Module file-type.
59591         * m4/file-type.m4: New file.
59592
59593         Module fileblocks.
59594         * m4/fileblocks.m4: New file.
59595
59596         Module filemode.
59597         * m4/filemode.m4: New file.
59598
59599         Module isdir.
59600         * m4/isdir.m4: New file.
59601
59602         Module lchown.
59603         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59604         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59605
59606         Module makepath.
59607         * m4/makepath.m4: New file.
59608
59609         Module modechange.
59610         * m4/modechange.m4: New file.
59611
59612         Module mountlist.
59613         * m4/mountlist.m4: New file.
59614         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59615         Indentation.
59616
59617         Module path-concat.
59618         * m4/path-concat.m4: New file.
59619
59620         Module pathmax.
59621         * m4/pathmax.m4: New file.
59622
59623         Module same.
59624         * m4/same.m4: New file.
59625
59626         Module save-cwd.
59627         * m4/save-cwd.m4: New file.
59628
59629         Module savedir.
59630         * m4/savedir.m4: New file.
59631
59632         Module xgetcwd.
59633         * m4/xgetcwd.m4: New file.
59634         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59635
59636         Module xreadlink.
59637         * m4/xreadlink.m4: New file.
59638
59639         Module safe-read.
59640         * m4/safe-read.m4: New file.
59641
59642         Module safe-write.
59643         * m4/safe-write.m4: New file.
59644
59645         Module closeout.
59646         * m4/closeout.m4: New file.
59647
59648         Module stdio-safer.
59649         * m4/stdio-safer.m4: New file.
59650
59651         Module getpass.
59652         * m4/getpass.m4: New file.
59653
59654         Module getugroups.
59655         * m4/getugroups.m4: New file.
59656
59657         Module group-member.
59658         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59659         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59660
59661         Module idcache.
59662         * m4/idcache.m4: New file.
59663
59664         Module userspec.
59665         * m4/userspec.m4: New file.
59666
59667         Module gettime.
59668         * m4/clock_time.m4: New file.
59669         * m4/gettime.m4: New file.
59670
59671         Module settime.
59672         * m4/settime.m4: New file.
59673
59674         Module posixtm.
59675         * m4/posixtm.m4: New file.
59676
59677         Module gethostname.
59678         * m4/gethostname.m4: New file.
59679
59680         Module canon-host.
59681         * m4/canon-host.m4: New file.
59682
59683         Module gettext.
59684         * m4/codeset.m4: New file, from gettext-0.11.5.
59685         * m4/gettext.m4: New file, from gettext-0.11.5.
59686         * m4/glibc21.m4: New file, from gettext-0.11.5.
59687         * m4/iconv.m4: New file, from gettext-0.11.5.
59688         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59689         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59690         * m4/inttypes.m4: New file, from gettext-0.11.5.
59691         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59692         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59693         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59694         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59695         * m4/lib-link.m4: New file, from gettext-0.11.5.
59696         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59697         * m4/progtest.m4: New file, from gettext-0.11.5.
59698         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59699         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59700         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59701
59702         Module localcharset.
59703         * m4/localcharset.m4: New file.
59704
59705         Module hard-locale.
59706         * m4/hard-locale.m4: New file.
59707
59708         Module mbswidth.
59709         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59710         onceonly macros.
59711         * m4/mbrtowc.m4: Add comment.
59712
59713         Module memcasecmp.
59714         * m4/memcasecmp.m4: New file.
59715
59716         Module memcoll.
59717         * m4/memcoll.m4: New file.
59718
59719         Module unicodeio.
59720         * m4/unicodeio.m4: New file.
59721
59722         Module rpmatch.
59723         * m4/rpmatch.m4: New file.
59724
59725         Module yesno.
59726         * m4/yesno.m4: New file.
59727
59728         Module exitfail.
59729         * m4/exitfail.m4: New file.
59730
59731         Module c-stack.
59732         * m4/c-stack.m4 (gl_C_STACK): New macro.
59733         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59734
59735         Module error.
59736         * m4/error.m4 (gl_ERROR): New macro.
59737         (jm_PREREQ_ERROR): Use onceonly macros.
59738
59739         Module fatal.
59740         * m4/fatal.m4: New file.
59741
59742         Module getloadavg.
59743         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59744         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59745
59746         Module getpagesize.
59747         * m4/getpagesize.m4: New file.
59748
59749         Module getusershell.
59750         * m4/getusershell.m4: New file.
59751
59752         Module physmem.
59753         * m4/physmem.m4: New file.
59754
59755         Module posixver.
59756         * m4/posixver.m4: New file.
59757
59758         Module quotearg.
59759         * m4/quotearg.m4: New file.
59760
59761         Module quote.
59762         * m4/quote.m4: New file.
59763
59764         Module readutmp.
59765         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59766
59767         Module sig2str.
59768         * m4/sig2str.m4: New file.
59769
59770         Other.
59771         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59772         ulonglong.m4.
59773         * m4/intmax_t.m4: New file.
59774         * m4/d-type.m4: Indentation.
59775         * m4/jm-macros.m4: Update.
59776         * m4/prereq.m4 (jm_PREREQ): Update.
59777         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59778         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59779         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59780         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59781         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59782         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59783         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59784         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59785         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59786         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59787         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59788         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59789         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59790         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59791         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59792         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59793         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59794         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59795         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59796
59797 2002-12-24  Bruno Haible  <bruno@clisp.org>
59798
59799         * MODULES.txt: Update according to m4/ changes.
59800
59801         Module gettext.
59802         * config.rpath: New file, from gettext-0.11.5.
59803
59804         * modules/*: New module descriptions.
59805         * gnulib-tool: New file.
59806         * MODULES.html.sh: New file.
59807
59808 2002-12-21  Karl Berry  <karl@gnu.org>
59809
59810         * doc/fdl.texi: update to version 1.2.
59811
59812 2002-12-19  Karl Berry  <karl@gnu.org>
59813
59814         * config/config.guess: update from prep.
59815
59816 2002-12-18  Bruno Haible  <bruno@clisp.org>
59817
59818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59819         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59820
59821 2002-12-17  Bruno Haible  <bruno@clisp.org>
59822
59823         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59824         stdlib.h, string.h.
59825
59826 2002-12-17  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/canon-host.c (strdup): Remove unused declaration.
59829
59830         * lib/fsusage.c: Include full_read.h.
59831         (get_fs_usage): Use full_read instead of safe_read.
59832
59833         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59834
59835 2002-12-12  Karl Berry  <karl@gnu.org>
59836
59837         * config/config.guess: update from prep.
59838
59839 2002-12-11  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/setenv.m4: New file, from gettext-0.11.5.
59842
59843 2002-12-11  Bruno Haible  <bruno@clisp.org>
59844
59845         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59846         not unsetenv().
59847         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59848         modifications:
59849
59850         2002-12-11  Bruno Haible  <bruno@clisp.org>
59851
59852                 * setenv.c (alloca): Fall back to malloc.
59853                 (freea): New macro.
59854                 (setenv): Use freea() to free memory allocated with alloca().
59855
59856         2002-11-13  Bruno Haible  <bruno@clisp.org>
59857
59858                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59859                 function declarations.
59860                 * unsetenv.c (unsetenv): Likewise.
59861
59862         2002-03-04  Bruno Haible  <bruno@clisp.org>
59863
59864                 Portability to AIX 4.3.3.
59865                 * unsetenv.c: New file, extracted from setenv.c.
59866                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59867
59868         2001-12-20  Bruno Haible  <bruno@clisp.org>
59869
59870                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59871                 use malloc instead. For SunOS 4.
59872
59873         2001-12-11  Bruno Haible  <bruno@clisp.org>
59874
59875                 * setenv.c: Declare alloca.
59876                 (compar_fn_t): New typedef.
59877                 (KNOWN_VALUE, STORE_VALUE): Use it.
59878
59879         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59880         setenv.h.
59881
59882 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59883
59884         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59885         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59886         Choose values that are less likely to collide with system fnmatch
59887         options.
59888         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59889         defined (e.g., a pure POSIX system).
59890         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59891         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59892
59893 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59894
59895         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59896         a pain in practice to deal with generated m4 files.  This change
59897         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59898
59899         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59900         and jm-glibc-io.m4, as they are no longer a special case.
59901         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59902         kludge and the auto-generation stuff.  Check only whether the
59903         functions are declared, not whether they exist, since older hosts
59904         that don't declare the functions can't use the optimization anyway.
59905
59906 2002-12-06  Jim Meyering  <jim@meyering.net>
59907
59908         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59909
59910         Merge in changes from libc's misc/error.c, in preparation
59911         for the merge of gnulib's changes back into libc.
59912
59913         * lib/error.c (_): Define only if not already defined.
59914         Move definition to follow all #include directives.
59915         Include unlocked-io.h only if !_LIBC.
59916         [_LIBC]: Include <libio/libioP.h>.
59917         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59918         (fflush): Tweak definition to use INTUSE.
59919         (putc): Define.
59920
59921 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59922
59923         * lib/alloca.c [defined emacs]: Include "lisp.h".
59924         (xalloc_die) [defined emacs]: New macro.
59925         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59926         [! defined emacs]: Include <xalloc.h>.
59927         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59928         (pointer): Typedef to POINTER_TYPE *.
59929         (malloc): Remove decl; we now always use xmalloc.
59930         (alloca): Use old-style definition, since Emacs needs this.
59931         Check for arithmetic overflow when computing combined size.
59932
59933 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59934
59935         Do not generate unlocked-io.h automatically, since it's easier to
59936         maintain it by hand.
59937
59938         * lib/unlocked-io.h: New file, from GNU diffutils,
59939         but with proper copyright notice and attribution.
59940         * lib/gen-uio: Remove.
59941         * lib/Makefile.am: Add copyright notice.
59942         (libfetish_a_SOURCES): Add unlocked-io.h.
59943         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59944         (DISTCLEANFILES, io_functions): Remove macros.
59945         (EXTRA_DIST): Remove gen_uio.
59946         (unlocked-io.h): Remove rule.
59947
59948 2002-12-04  Jim Meyering  <jim@meyering.net>
59949
59950         Reflect the fact that stat.c and lstat.c are no longer generated.
59951         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59952         (DISTCLEANFILES): Likewise.
59953         (EXTRA_DIST): Likewise.
59954         (all_local): Don't depend on stat.c or lstat.c.
59955         (stat.c, lstat.c): Remove rules.
59956         (EXTRA_DIST): Remove xstat.in.
59957
59958         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59959         * lib/stat.c: New file.  Contents mostly from xstat.in.
59960         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59961         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59962
59963         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59964         too.
59965         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59966
59967 2002-12-03  Jim Meyering  <jim@meyering.net>
59968
59969         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59970         but not semantics, to minimize the differences between these two files.
59971         (safe_read): Change comment to mention SAFE_READ_ERROR.
59972
59973         * lib/safe-read.c (IS_EINTR): Define.
59974         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59975
59976 2002-12-02  Jim Meyering  <jim@meyering.net>
59977
59978         * lib/safe-read.c (EINTR): Define.
59979         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59980         (INT_MAX): Provide fallback.
59981         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59982
59983         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59984
59985 2002-12-02  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59988         Define, taken from safe-read.c.
59989         (INT_MAX): Provide fallback.
59990         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59991         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59992
59993         * lib/safe-read.c (EINTR): Remove definition.
59994         (safe_read): Don't use EINTR if it is absent.
59995
59996 2002-12-01  Jim Meyering  <jim@meyering.net>
59997
59998         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59999         zero.
60000         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60001
60002 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60003
60004         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60005         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60006         with `if (! (value < limit)) abort ();', for readability.
60007
60008 2002-11-26  Karl Berry  <karl@gnu.org>
60009
60010         * lib/strdup.c: copy from libc again, with jim's ok.
60011         * lib/.cppi-disable: re-add strdup.c
60012
60013 2002-11-25  Karl Berry  <karl@gnu.org>
60014
60015         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60016         instead of "strtol.c".
60017
60018 2002-11-25  Karl Berry  <karl@gnu.org>
60019
60020         * config/install-sh: update from automake for variable quoting, $0 in
60021         error msgs, etc.
60022
60023         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60024         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60025         entry.
60026
60027 2002-11-25  Jim Meyering  <jim@meyering.net>
60028
60029         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60030
60031 2002-11-24  Karl Berry  <karl@gnu.org>
60032
60033         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60034         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60035
60036 2002-11-24  Jim Meyering  <jim@meyering.net>
60037
60038         Update from coreutils:
60039
60040         * lib/mktime.c: Merge in changes from libc.
60041
60042         Avoid a link-time failure on some Linux systems.
60043         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60044         (otherwise).
60045         (__mon_yday): Declare with the STATIC attribute.
60046         (__mktime_internal): Likewise.
60047         Based on a report from Greg Schafer.
60048
60049 2002-11-23  Jim Meyering  <jim@meyering.net>
60050
60051         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60052         Use `unsigned', not `int', as type of index.
60053
60054         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60055
60056         * lib/fsusage.c: Remove unneeded parentheses around operands of
60057         `defined'.
60058
60059 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60060
60061         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60062         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60063         so that we can be included first.
60064         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60065         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60066         No need to include stddef.h or sys/types.h any more.
60067         Surround local include files with "", not "<>".
60068         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60069         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60070         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60071         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60072         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60073         (ISPRINT): Remove; no longer needed now that we assume C89.
60074
60075         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60076         Preserve errno.
60077
60078         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60079         quotearg_char): Use SIZE_MAX rather than
60080         (size_t) -1 when we are talking about "infinity".
60081
60082         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60083
60084 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60085
60086         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60087         hint that one should use `if (! x) abort ();' rather than `assert
60088         (x);', and anyway it's one less thing to worry about configuring.
60089         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60090         hash_rehash, hash_insert): Use abort rather than assert.
60091
60092 2002-11-22  Bruno Haible  <bruno@clisp.org>
60093
60094         * lib/safe-read.h: Assume C89. Add comments.
60095         (safe_read): Change return type to size_t.
60096         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60097         byte counts > SSIZE_MAX correctly.
60098         * lib/safe-write.h: New file.
60099         * lib/safe-write.c: New file.
60100         * lib/full-read.h: New file.
60101         * lib/full-read.c: New file.
60102         * lib/full-write.h: Assume C89. Add comments.
60103         * lib/full-write.c: Include safe-write.h.
60104         (full_write): Rewritten to use safe_write.
60105         Suggested by Jim Meyering and Paul Eggert.
60106
60107 2002-11-21  Jim Meyering  <jim@meyering.net>
60108
60109         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60110
60111         Merge in changes from the coreutils.
60112
60113         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60114         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60115         <stdint.h>.
60116         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60117         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60118         int.  Work more efficiently if X is the same width as uintmax_t.
60119         Do not compare X to -1, to avoid bogus compiler warning.
60120         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60121         Don't assume that f_frsize and f_bsize are the same type.
60122
60123         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60124         warning on FreeBSD.
60125
60126         * lib/makepath.c (make_path): Restore umask *before* creating the final
60127         component.
60128         (make_path): Minor reformatting.
60129
60130         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60131         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60132         HAVE_MALLOC/HAVE_REALLOC.
60133
60134         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60135         dummy ones.  At least on GNU/Linux systems, `auto' means something
60136         else.
60137         From Michael Stone.
60138
60139 2002-11-21  Bruno Haible  <bruno@clisp.org>
60140
60141         Remove case insensitive option matching.
60142         * lib/argmatch.h (argcasematch): Remove declaration.
60143         (ARGCASEMATCH): Remove macro.
60144         (__xargmatch_internal): Remove case_sensitive argument.
60145         (XARGMATCH): Update.
60146         (XARGCASEMATCH): Remove macro.
60147         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60148         case_sensitive argument.
60149         (argcasematch): Remove function.
60150         (__xargmatch_internal): Remove case_sensitive argument.
60151         (main): Use XARGMATCH instead of XARGCASEMATCH.
60152
60153         * lib/xmalloc.c: Change compile-time error message. Add comment about
60154         required autoconf version.
60155
60156 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60157
60158         Merge argmatch cleanups from Bison.  Assume C89.
60159
60160         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60161         Include stdlib.h, for EXIT_FAILURE.
60162         Always include <string.h>, since we assume C89.
60163         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60164         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60165         Include <stddef.h> instead, since it's all we need for size_t.
60166         (PARAMS): Remove.  All uses removed.
60167         (ARRAY_CARDINALITY): Do not bother to #undef.
60168         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60169         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60170         Remove unnecessary parentheses.
60171         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60172         Insert necessary parentheses.
60173         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60174         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60175
60176 2002-11-19  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60179         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60180
60181         * lib/mbswidth.h (PARAMS): Remove macro.
60182         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60183         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60184
60185         * lib/gcd.h (PARAMS): Remove macro.
60186         (gcd): Use ANSI C function declarations.
60187         * lib/gcd.c (gcd): Likewise.
60188
60189 2002-11-15  Bruno Haible  <bruno@clisp.org>
60190
60191         * lib/strcspn.c: Include <stddef.h>.
60192         (strcspn): Use ANSI C function declaration. Change return type to
60193         size_t. Use NULL.
60194         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60195         (strpbrk): Use NULL.
60196         * lib/strpbrk.h (PARAMS): Remove macro.
60197         (strpbrk): Use ANSI C function declaration.
60198         * lib/strstr.c: Don't include <sys/types.h>.
60199         * lib/strstr.h (PARAMS): Remove macro.
60200         (strstr): Use ANSI C function declarations.
60201
60202 2002-11-14  Karl Berry  <karl@gnu.org>
60203
60204         * config/mkinstalldirs: `do' on separate line, instead of
60205         `for var; do'.
60206
60207 2002-11-06  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60210         * lib/gcd.c (gcd): Likewise.
60211
60212 2002-11-05  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/gcd.h: New file, from gettext-0.11.5.
60215         * lib/gcd.c: New file, from gettext-0.11.5.
60216
60217 2002-11-05  Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60220         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60221         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60222         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60223
60224         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60225         <libintl.h>.
60226         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60227         <libintl.h>.
60228
60229         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60230         * lib/human.c: Include gettext.h instead of <libintl.h>.
60231         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60232         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60233         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60234         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60235         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60236         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60237         (textdomain): Remove definition.
60238         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60239
60240         * lib/long-options.c: Remove include of <libintl.h> and definition of
60241         _.
60242         * lib/same.c: Remove include of <libintl.h> and definition of _.
60243
60244 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60245
60246         * lib/config.charset: A few additions for Solaris.
60247
60248 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60249
60250         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60251         * lib/localcharset.c (locale_charset): Declare as extern "C".
60252
60253 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60254
60255         * lib/config.charset: msdos in uk_UA uses CP1125.
60256
60257 2002-11-04  Bruno Haible  <bruno@clisp.org>
60258
60259         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60260         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60261         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60262         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60263         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60264
60265 2002-11-04  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/localcharset.c (locale_charset): Don't return an empty string.
60268
60269 2002-11-04  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60272         aliases.
60273
60274 2002-11-04  Bruno Haible  <bruno@clisp.org>
60275
60276         * lib/config.charset: Update for newest glibc. Add canonical names
60277         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60278
60279 2002-11-04  Bruno Haible  <bruno@clisp.org>
60280
60281         * lib/config.charset: Add support for NetBSD.
60282
60283 2002-11-04  Bruno Haible  <bruno@clisp.org>
60284
60285         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60286
60287 2002-11-01  Bruno Haible  <bruno@clisp.org>
60288
60289         * configure.in: Add AC_CONFIG_AUX_DIR call.
60290         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60291         test/Makefile.
60292         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60293
60294 2002-09-28  Karl Berry  <karl@gnu.org>
60295
60296         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60297         installed automake until the next release, since changes have been
60298         made.
60299
60300 2002-09-25  Karl Berry  <karl@gnu.org>
60301
60302         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60303         * lib/getopt*: copy from libc/posix.
60304         * lib/gettext.h: copy from gettext.
60305         * lib/.cppi-disable: add strdup.c, gettext.h.
60306
60307 2002-09-25  Karl Berry  <karl@gnu.org>
60308
60309         * config/srclist.txt: enable gettext.h check.
60310         * config/config.{guess,sub}: update from prep.
60311         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60312                 from automake 1.6.3.
60313         See srclist*.
60314
60315 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60316
60317         * regex.c (PATFETCH): Remove the translating fetch.
60318         (PATFETCH_RAW): Rename to PATFETCH.
60319         (set_image_of_range): New fun.
60320         (SET_RANGE_TABLE_WORK_AREA): Use it.
60321         (regex_compile): Don't translate the pattern chars so eagerly.
60322         Only do it when inserting an `exactn' bytecode or when handling
60323         a char-range.
60324         (mutually_exclusive_p): Avoid empty statement.
60325
60326 2002-07-06  Jim Meyering  <meyering@lucent.com>
60327
60328         * m4/README: Don't mention Makefile.am.in.
60329         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60330
60331 2002-07-01  Jim Meyering  <meyering@lucent.com>
60332
60333         * lib/c-stack.c: Include sys/time.h.
60334         From Volker Borchert.
60335
60336 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60337
60338         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60339
60340 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60341
60342         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60343         New macro.  Use it uniformly instead of
60344         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60345         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60346         reported by Vin Shelton.
60347
60348 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60349
60350         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60351         Do not assume SA_SIGINFO behavior.
60352         Bug reported by Jim Meyering on NetBSD 1.5.2.
60353
60354 2002-06-22  Jim Meyering  <meyering@lucent.com>
60355
60356         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60358
60359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60360         now that configure.ac uses AC_GNU_SOURCE.
60361         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60362         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60363
60364         Update to latest tools.  Suggestions from Paul Eggert.
60365         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60366         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60367         * m4/fnmatch.m4: Likewise.
60368         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60369         to AC_HEADER_STDBOOL
60370
60371 2002-06-22  Jim Meyering  <meyering@lucent.com>
60372
60373         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60374         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60375
60376 2002-06-22  Jim Meyering  <meyering@lucent.com>
60377
60378         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60379
60380         * lib/exitfail.c, exitfail.h: Likewise.
60381         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60382
60383         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60384         of fnmatch.h.
60385         (EXTRA_DIST): Add fnmatch_loop.c.
60386         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60387
60388         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60389         * lib/fnmatch.c: Update from diffutils-2.8.2.
60390         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60391         * lib/fnmatch.h: Remove file.
60392
60393 2002-06-21  Jim Meyering  <meyering@lucent.com>
60394
60395         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60396         * m4/mbrtowc.m4: Likewise.
60397
60398         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60399         * m4/mbswidth.m4: Reflect name change:
60400         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60401         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60402
60403         * m4/lib-link.m4: Update from gettext-0.11.2.
60404         * m4/gettext.m4: Likewise.
60405
60406         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60407         From Alfred M. Szmidt.
60408
60409 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60410
60411         * lib/file-type.h: Report an error if neither S_ISREG nor
60412         S_IFREG is defined, instead of using a test specific to glibc
60413         2.2.  This should be safe, since POSIX requires S_ISREG and
60414         Unix Version 7 had S_IFREG.  We don't need to check for
60415         <sys/types.h> since we don't use any symbols that it defines.
60416
60417 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60418
60419         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60420         $@-t, so that each temporary file name is unique and valid in the first
60421         8 characters, for operation under DOS.
60422
60423 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60424
60425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60426
60427 2002-06-15  Jim Meyering  <meyering@lucent.com>
60428
60429         Work even with DJGPP 2.03, which lacks support for symlinks.
60430         From Richard Dawe.
60431         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60432         is defined.
60433         * lib/lchown.c (S_ISLNK): Likewise.
60434
60435 2002-06-15  Jim Meyering  <meyering@lucent.com>
60436
60437         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60438         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60439         have been included before this file.
60440
60441 2002-06-14  Jim Meyering  <meyering@lucent.com>
60442
60443         * lib/file-type.h: Use the version from diffutils-2.8.2.
60444         * lib/file-type.c: Likewise.
60445
60446 2002-06-07  Jim Meyering  <meyering@lucent.com>
60447
60448         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60449         They're needed at least for NetBSD 1.5.2.
60450         ($statxfs_includes): Include those same headers.
60451         ($statxfs_includes): Include sys/vfs.h if available.
60452         ($statxfs_includes): Likewise for sys/statvfs.h.
60453         Check for the following members in both structs statfs and statvfs:
60454         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60455
60456 2002-06-01  Jim Meyering  <meyering@lucent.com>
60457
60458         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60459         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60460
60461 2002-05-28  Jim Meyering  <meyering@lucent.com>
60462
60463         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60464         Reported by Volker Borchert.
60465
60466 2002-05-27  Jim Meyering  <meyering@lucent.com>
60467
60468         Fix a problem seen only on nonconforming systems whereby ls.c's
60469         use of localtime, and then of gettimeofday would cause trouble:
60470         the localtime call used to initialize rpl_gettimeofday's save
60471         mechanism would clobber ls's current local time information so
60472         that in any long listing the first file would always be listed
60473         with date 1970-01-01.  Analysis by Volker Borchert.
60474
60475         * lib/gettimeofday.c (localtime): Undefine.
60476         (rpl_localtime): New function.
60477
60478 2002-05-27  Jim Meyering  <meyering@lucent.com>
60479
60480         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60481         localtime.
60482
60483         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60484         use the replacement function; it wouldn't resolve at link time.
60485         Reported by Volker Borchert.
60486
60487 2002-05-22  Jim Meyering  <meyering@lucent.com>
60488
60489         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60490         file-type.h.
60491         * lib/file-type.h: New file.
60492         * lib/file-type.c (file_type): New file/function.  Extracted from
60493         diffutils.
60494
60495 2002-04-30  Jim Meyering  <meyering@lucent.com>
60496
60497         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60498
60499 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60500
60501         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60502
60503 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60504
60505         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60506         Do not check for alloca.h (no longer used) or stdbool.h (was never
60507         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60508
60509 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60510
60511         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60512
60513 2002-04-29  Jim Meyering  <meyering@lucent.com>
60514
60515         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60516         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60517         Use AC_FUNC_STRNLEN here instead.
60518
60519         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60520         With autoconf-2.53a, it's part of AC_PROG_CC.
60521
60522 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60523
60524         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60526
60527 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60528
60529         * lib/sig2str.h, lib/sig2str.c: New files.
60530         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60531
60532 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60533
60534         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60535         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60536         of 127, since 64 is the largest conceivable number for ancient
60537         nonstandard hosts.
60538         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60539
60540 2002-04-28  Jim Meyering  <meyering@lucent.com>
60541
60542         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60543
60544 2002-04-24  Jim Meyering  <meyering@lucent.com>
60545
60546         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60547         (jm_PREREQ): Use it.
60548
60549         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60550         mach/mach.h fcntl.h.
60551         Check for this function: setlocale.
60552
60553 2002-04-24  Jim Meyering  <meyering@lucent.com>
60554
60555         * lib/gettext.h: New file, from Gettext.
60556         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60557         (libfetish_a_SOURCES): Add gettext.h.
60558
60559 2002-04-16  Jim Meyering  <meyering@lucent.com>
60560
60561         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60562         ut_pid, ut_id, ut_exit.
60563
60564 2002-04-16  Jim Meyering  <meyering@lucent.com>
60565
60566         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60567         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60568         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60569
60570 2002-04-12  Jim Meyering  <meyering@lucent.com>
60571
60572         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60573         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60574         existence of the getmntinfo function.  Needed for Darwin 5.3.
60575
60576         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60577         This is necessary at least on Darwin 5.3.
60578
60579         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60580         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60581         strnlen.o in the library, and that makes some versions of ranlib
60582         object.
60583
60584 2002-04-12  Jim Meyering  <meyering@lucent.com>
60585
60586         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60587
60588 2002-04-09  Jim Meyering  <meyering@lucent.com>
60589
60590         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60591         to be more precise.  Rather than saying we're checking whether the
60592         function `works', say what we're testing.
60593         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60594         Reported by Bruno Haible.
60595
60596 2002-03-10  Jim Meyering  <meyering@lucent.com>
60597
60598         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60599         Suggestion from Santiago Vila.
60600
60601 2002-03-08  Jim Meyering  <meyering@lucent.com>
60602
60603         * lib/rename.c: Mention that this wrapper is needed also on
60604         mips-dec-ultrix4.4 systems.
60605
60606 2002-03-02  Jim Meyering  <meyering@lucent.com>
60607
60608         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60609         not HAVE_CLOCK_SETTIME.
60610
60611 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60612
60613         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60614         Check for clock_settime.
60615
60616 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60617
60618         * lib/nanosleep.h: Rename to....
60619         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60620
60621         * lib/gettime.c: New file.
60622         * lib/settime.c: New file.
60623         * lib/stime.c: Remove.
60624
60625         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60626         timespec.h.  Remove nanosleep.h.
60627
60628 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60629
60630         * m4/acl.m4: New file.
60631         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60632         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60633
60634 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60635
60636         * lib/acl.c, lib/acl.h: New files.
60637         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60638
60639 2002-02-24  Jim Meyering  <meyering@lucent.com>
60640
60641         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60642         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60643         cause trouble.  Reported by Nelson Beebe.
60644
60645 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60646
60647         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60648         compilers that don't know that xalloc_die never returns.
60649
60650 2002-02-20  Jim Meyering  <meyering@lucent.com>
60651
60652         * lib/getdate.c: Regenerate using bison-1.33.
60653
60654 2002-02-17  Jim Meyering  <meyering@lucent.com>
60655
60656         * config/config.guess (main): Don't use `head -1'; it's no longer
60657         portable. Use `sed 1q' instead.
60658
60659 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60660
60661         * m4/codeset.m4: Upgrade to gettext-0.11.
60662         * m4/gettext.m4: Upgrade to gettext-0.11.
60663         * m4/glibc21.m4: Upgrade to gettext-0.11.
60664         * m4/iconv.m4: Upgrade to gettext-0.11.
60665         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60666         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60667         * m4/lib-ld.m4: New file, from gettext-0.11.
60668         * m4/lib-link.m4: New file, from gettext-0.11.
60669         * m4/lib-prefix.m4: New file, from gettext-0.11.
60670         * m4/progtest.m4: Upgrade to gettext-0.11.
60671
60672 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60673
60674         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60675         (jm_PREREQ): Use it.
60676
60677 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60678
60679         * lib/posixver.c, lib/posixver.h: New files.
60680         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60681
60682 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60683             Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60686         (fwrite_success_callback): New declaration.
60687         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60688         print_unicode_char. Call failure callback instead of error.
60689         (fwrite_success_callback): New function.
60690         (exit_failure_callback): New function.
60691         (fallback_failure_callback): New function.
60692         (print_unicode_char): Call unicode_to_mb.
60693
60694 2002-01-26  Jim Meyering  <meyering@lucent.com>
60695
60696         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60697         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60698
60699 2002-01-26  Jim Meyering  <meyering@lucent.com>
60700
60701         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60702
60703 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60704
60705         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60706
60707 2002-01-22  Jim Meyering  <meyering@lucent.com>
60708
60709         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60710         Otherwise, some versions of automake would omit the rule that makes
60711         Makefile from Makefile.in.
60712
60713 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60714
60715         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60716         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60717         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60718         (memcoll): Set errno to zero if there is no error.
60719
60720         * lib/quotearg.c (quotearg_buffer_restyled):
60721         Fix bug with quoting buffers containing NUL when backslashing escapes.
60722         This bug was exposed by the other changes in this patch.
60723         (quotearg_n_options): New arg ARGSIZE.
60724         All callers changed.
60725         (quoting_options_from_style): New function.
60726         (quotearg_n_style): Use it.
60727         (quotearg_n_style_mem): New function.
60728
60729         * lib/quotearg.h (quotearg_n_style_mem): New function.
60730
60731 2002-01-19  Jim Meyering  <meyering@lucent.com>
60732
60733         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60734         Remove useless quotes: DF_PROG="df".
60735         * m4/strnlen.m4: New file.
60736
60737 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60738
60739         * lib/backupfile.c (ISDIGIT): Comment fix.
60740         * lib/getdate.y (ISDIGIT): Likewise.
60741         * lib/posixtm.c (ISDIGIT, year): Likewise.
60742         * lib/strverscmp.c (ISDIGIT): Likewise.
60743         * lib/userspec.c (ISDIGIT): Likewise.
60744
60745 2002-01-16  Jim Meyering  <meyering@lucent.com>
60746
60747         * lib/getdate.y: Add three semicolons, each just before a closing
60748         brace. Bison (as of version 1.31) no longer papers over that mistake.
60749
60750 2002-01-05  Jim Meyering  <meyering@lucent.com>
60751
60752         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60753
60754 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60755
60756         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60757         not silently exit merely because the output buffer happens to
60758         have nothing pending.
60759
60760 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60761
60762         See the big note in ../ChangeLog.
60763         * lib/human.c (suffixes): Prefer K to k for 1024.
60764         (generate_suffix_backwards): New function.
60765         (human_readable_inexact): Use it.
60766         * lib/xstrtol.c (__xstrtol): If there is no number but there
60767         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60768         Accept 'K' as well as 'k'.
60769
60770 2001-12-15  Jim Meyering  <meyering@lucent.com>
60771
60772         * lib/regex.h (__restrict_arr): Update from libc.
60773
60774         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60775         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60776         (STREQ): Define.
60777
60778 2001-12-14  Jim Meyering  <meyering@lucent.com>
60779
60780         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60781         Suggestion from Bruno Haible.
60782
60783 2001-12-10  Jim Meyering  <meyering@lucent.com>
60784
60785         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60786         xrealloc, Instead, include "xalloc.h".
60787         (initbuffer): Don't cast xmalloc return value to char*.
60788         (readline): Reword comment.
60789         Don't cast xrealloc return value to char*
60790         Return NULL, not 0.
60791
60792 2001-12-09  Jim Meyering  <meyering@lucent.com>
60793
60794         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60795         about `signed and unsigned type in conditional expression'.
60796         * lib/posixtm.c (posix_time_parse): Likewise.
60797
60798         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60799
60800         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60801         to avoid a pedantic warning.
60802
60803         * lib/getstr.c: Don't include assert.h.
60804         (getstr): Remove warning-evoking assertions.
60805         Return -1 if offset parameter is out of bounds.
60806         Change the type of a local from int to size_t.
60807
60808         * lib/strftime.c (my_strftime_localtime_r): Include this function
60809         definition in the `#if ! HAVE_TM_GMTOFF' block.
60810
60811         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60812         Include xalloc.h instead.
60813
60814 2001-12-02  Jim Meyering  <meyering@lucent.com>
60815
60816         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60817         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60818         included.
60819
60820         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60821         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60822
60823 2001-11-30  Akim Demaille  <akim@epita.fr>
60824
60825         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60826         before being defined.
60827
60828 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60829
60830         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60831         First arg is int, not unsigned.
60832         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60833         (SIZE_MAX, UINT_MAX): New macros.
60834         (quotearg_n_options): Abort if N is negative.
60835         Avoid overflow check on hosts where size_t is 64 bits and int
60836         is 32 bits, as overflow is impossible there.
60837         Fix off-by-one typo that caused unnecessary reallocation.
60838
60839 2001-11-27  Jim Meyering  <meyering@lucent.com>
60840
60841         * lib/tempname.c: Merge with version from libc.
60842         * lib/regex.c: Likewise.
60843
60844         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60845         systems for which STDC_HEADERS is 0, it was not included, resulting in
60846         a warning about an integer-to-pointer conversion problem with getenv.
60847         Reported by Volker Borchert.
60848
60849 2001-11-26  Jim Meyering  <meyering@lucent.com>
60850
60851         * lib/gtod.h: Remove file.
60852         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60853         * lib/gettimeofday.c: Don't include gtod.h.
60854         (GTOD_init): Remove function.
60855         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60856         Suggestion from Volker Borchert.
60857
60858 2001-11-23  Jim Meyering  <meyering@lucent.com>
60859
60860         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60861         it.
60862         * lib/hash.c (struct hash_table): Define it here instead.
60863
60864 2001-11-22  Jim Meyering  <meyering@lucent.com>
60865
60866         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60867
60868 2001-11-20  Jim Meyering  <meyering@lucent.com>
60869
60870         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60871         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60872
60873 2001-11-19  Jim Meyering  <meyering@lucent.com>
60874
60875         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60876         directory.  Use "conftestXXXXXX" as the template.
60877         Suggestion from Paul Eggert.
60878
60879         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60880         immediately, so the test doesn't mistakenly hit the max-open-files
60881         limit.
60882
60883 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60884
60885         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60886         (TEMPORARIES): New macro.
60887         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60888         removes an artificial limitation (e.g. HP-UX 10.20, where
60889         TMP_MAX is 17576).
60890
60891 2001-11-18  Jim Meyering  <meyering@lucent.com>
60892
60893         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60894
60895 2001-11-18  Jim Meyering  <meyering@lucent.com>
60896
60897         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60898         on SunOS 4.
60899
60900         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60901         files will be created before anything else.
60902
60903 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60904
60905         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60906         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60907
60908 2001-11-17  Jim Meyering  <meyering@lucent.com>
60909
60910         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60911         Prompted by a report from Bob Proulx.
60912
60913         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60914         Instead, require UTILS_FUNC_MKSTEMP.
60915
60916 2001-11-17  Jim Meyering  <meyering@lucent.com>
60917
60918         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60919         Now, that's done as part of AC_FUNC_STRTOD.
60920
60921 2001-11-17  Jim Meyering  <meyering@lucent.com>
60922
60923         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60924         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60925         rather than group writable.  Patch by Juan F. Codagnone.
60926
60927         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60928         xrealloc, Instead, include "xalloc.h".
60929
60930         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60931         Remove explicit declarations of xmalloc, xrealloc,
60932         and xstrdup.  Instead, include "xalloc.h".
60933
60934         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60935         unlocked-io.h.
60936         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60937         Likewise.
60938         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60939
60940         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60941         Reported by Padraig Brady.
60942
60943         * lib/mkstemp.c: #undef mkstemp.
60944         Include config.h.
60945         (rpl_mkstemp): Rename from mkstemp.
60946         Protoize.
60947
60948 2001-11-16  Jim Meyering  <meyering@lucent.com>
60949
60950         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60951         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60952         determine the amount of total physical memory, use pstat_getstatic.
60953         HPUX-11 doesn't define _SC_PHYS_PAGES.
60954         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60955         If sysconf couldn't be used to determine the amount of available
60956         physical memory, use both pstat_getstatic and pstat_getdynamic.
60957         Based on a patch from Bob Proulx.
60958
60959 2001-11-10  Jim Meyering  <meyering@lucent.com>
60960
60961         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60962         (jm_PREREQ): Use it.
60963
60964 2001-11-09  Jim Meyering  <meyering@lucent.com>
60965
60966         * m4/jm-macros.m4: Require autoconf-2.52f.
60967         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60968         Use these AC_-prefixed names, not the AM_-prefixed ones.
60969
60970         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60971
60972 2001-11-05  Jim Meyering  <meyering@lucent.com>
60973
60974         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60975
60976 2001-11-04  Jim Meyering  <meyering@lucent.com>
60977
60978         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60979         $DEFS.
60980
60981 2001-11-03  Jim Meyering  <meyering@lucent.com>
60982
60983         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60984         of AC_DEFUN.
60985
60986         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60987         know the name of the variable in the macro definition.
60988
60989 2001-11-03  Jim Meyering  <meyering@lucent.com>
60990
60991         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60992         in argmatch_to_argument call.
60993
60994         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60995         argument.
60996
60997         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60998         e.g., a fault due to an attempt to free a NULL pointer.
60999
61000 2001-11-01  Jim Meyering  <meyering@lucent.com>
61001
61002         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61003         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61004
61005 2001-11-01  Jim Meyering  <meyering@lucent.com>
61006
61007         * lib/dirfd.c, lib/dirfd.h: New files.
61008         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61009
61010         * lib/hash.c (hash_print) [TESTING]: Clean up.
61011
61012 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61013
61014         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61015         to avoid a warning if -Wall.
61016
61017 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61018
61019         * README: New file
61020         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61021         (per RMS's instructions, this is now the canonical source)
61022         * lgpl/, gpl/: New directories.
61023
61024 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61025
61026         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61027
61028 2001-10-21  Jim Meyering  <meyering@lucent.com>
61029
61030         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61031         this code would end up calling gettext even in packages built
61032         with --disable-nls.
61033         * lib/getopt.c (_): Likewise.
61034         * lib/regex.c (_): Likewise.
61035
61036 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61037
61038         * m4/error.m4 (jm_PREREQ_ERROR):
61039         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61040         AC_FUNC_STRERROR_R does that.
61041         Check for strerror declaration.
61042
61043         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61044         are supposed to have them these days.
61045         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61046         Merge changes from latest Autoconf CVS.
61047         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61048         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61049         POSIX decided to standardize on the int flavor of strerror_r.
61050
61051 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61052
61053         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61054         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61055         Use strerror_r that is only a macro, even if it is not a function.
61056         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61057         (private_strerror): Use prototypes, not old-style function definition.
61058         (print_errno_message): New function.
61059         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61060         char*-flavored one.
61061         (error_tail, error, error_at_line): Use it.
61062
61063 2001-10-11  Jim Meyering  <meyering@lucent.com>
61064
61065         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61066         and quote_n (1, ... to avoid clobbering a buffer.
61067
61068 2001-10-05  Jim Meyering  <meyering@lucent.com>
61069
61070         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61071         hash-pjw.h.
61072         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61073         * lib/hash-pjw.h: New file.
61074
61075 2001-09-30  Jim Meyering  <meyering@lucent.com>
61076
61077         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61078         `struct fsstat' has the `f_fstypename' member.
61079         Use that to define FS_TYPE, which is now used to make
61080         the getfsstat link test tighter.
61081
61082 2001-09-30  Jim Meyering  <meyering@lucent.com>
61083
61084         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61085         Include <sys/ucred.h>, for Apple Darwin.
61086         Include sys/mount.h and sys/fs_types.h only if available.
61087         (FS_TYPE): Define.
61088         (read_filesystem_list): Use FS_TYPE.
61089
61090 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61091
61092         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61093         a boolean context.
61094
61095 2001-09-29  Jim Meyering  <meyering@lucent.com>
61096
61097         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61098         [one-argument getmntent function]): Include stdio.h before mntent.h.
61099         SunOS 4.1.x needs it for the declaration of `FILE'.
61100         Patch by Volker Borchert.
61101
61102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61103         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61104         sys/fs_types.h, and make the link-test for getfsstat guard #include
61105         directives with appropriate #if HAVE_*_H tests so that we can
61106         detect getfsstat on Apple Darwin1.3.7 systems.
61107         Reported by Nelson Beebe.
61108         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61109
61110 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61111
61112         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61113         #defines strtoimax.  Also treat the other strto* functions
61114         like strtoimax.
61115
61116         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61117         Check for strtoul and strtoumax,
61118         as those declarations are made even in the signed case.
61119         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61120         Likewise, for strtol and strtoimax.
61121
61122 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61123
61124         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61125         #defines strtoimax.  Also treat the other strto* functions
61126         like strtoimax.
61127
61128         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61129         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61130         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61131
61132 2001-09-26  Jim Meyering  <meyering@lucent.com>
61133
61134         Most macros in unlocked-io.h had the wrong number of arguments.
61135         * lib/gen-uio: New script.
61136         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61137         * lib/unlocked-io.hin: Remove file.
61138         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61139         rather than trying to embed it here.
61140         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61141         Reported by Padraig Brady.
61142
61143 2001-09-25  Volker Borchert  <bt@teknon.de>
61144
61145         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61146         `result'.
61147
61148 2001-09-24  Jim Meyering  <meyering@lucent.com>
61149
61150         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61151
61152 2001-09-23  Jim Meyering  <meyering@lucent.com>
61153
61154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61155         instead of the mere test for existence of mntent.h.  The latter
61156         would get a false-positive on AIX 3.4 systems.
61157         In the outer getmntent if-block, don't die if neither of the getmntent
61158         tests succeeds.  Instead, just fall through and continue with the
61159         remaining tests.
61160
61161 2001-09-23  Jim Meyering  <meyering@lucent.com>
61162
61163         * lib/mountlist.c: Remove useless parentheses in #if directives.
61164         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61165         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61166
61167 2001-09-22  Jim Meyering  <meyering@lucent.com>
61168
61169         * m4/gettext.m4: New file.  From gettext.
61170         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61171         * m4/progtest.m4: Likewise
61172         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61173         * m4/glibc21.m4: Likewise.
61174
61175         * m4/libintl.m4: Remove.  No longer used.
61176
61177 2001-09-22  Jim Meyering  <meyering@lucent.com>
61178
61179         * lib/localcharset.c: Update from latest gettext.
61180         * lib/config.charset: Likewise.
61181
61182 2001-09-20  Jim Meyering  <meyering@lucent.com>
61183
61184         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61185         strtoimax.
61186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61187         strtoumax.
61188
61189 2001-09-20  Jim Meyering  <meyering@lucent.com>
61190
61191         * lib/xstrtol.c (strtoimax): Guard declaration with
61192         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61193         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61194         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61195         (strtoumax): Likewise, for completeness (it wasn't necessary).
61196
61197 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61198
61199         * lib/strtoimax.c (HAVE_LONG_LONG):
61200         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61201         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61202         to work around bug in IBM C compiler.
61203
61204 2001-09-17  Jim Meyering  <meyering@lucent.com>
61205
61206         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61207         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61208         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61209         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61210         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61211         whenever the right hand side need not be expanded by the shell.
61212
61213 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61214
61215         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61216         library.  It's not correct, as some older glibcs are buggy.
61217         fnmatch wasn't fixed until glibc 2.2.
61218
61219         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61220         special shell magic here.
61221
61222 2001-09-16  Jim Meyering  <meyering@lucent.com>
61223
61224         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61225         * m4/jm-macros.m4: Require it.
61226
61227 2001-09-16  Jim Meyering  <meyering@lucent.com>
61228
61229         * lib/mkdir.c: New file.
61230
61231 2001-09-15  Jim Meyering  <meyering@lucent.com>
61232
61233         * m4/jm-macros.m4: Check for help2man.
61234
61235 2001-09-11  Jim Meyering  <meyering@lucent.com>
61236
61237         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61238         The body, by Paul Eggert, was moved here from configure.in.
61239         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61240
61241 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61242
61243         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61244         (jm_PREREQ): Use it.
61245
61246 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61247
61248         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61249         Use ssize_t, not int, to store result of readlink.
61250         Check for ssize_t overflow as well as size_t overflow,
61251         as POSIX says the result of readlink is implementation-defined
61252         when ssize_t overflows.
61253         Remove unnecessary cast to char*.
61254         Use free+malloc instead of realloc, as the storage doesn't need
61255         to be preserved and it's clearer and can be more efficient that way.
61256         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61257         * lib/xreadlink.h (xreadlink): Update prototype.
61258
61259 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61260
61261         * lib/xgetcwd.c: Revert some of the previous change; intead,
61262         fix the HAVE_GETCWD_NULL code to behave more like the
61263         !HAVE_GETCWD_NULL code used to.
61264
61265         Include "xalloc.h".
61266         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61267         invoke xalloc_die.
61268
61269 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61270
61271         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61272         sys/param.h, as pathmax.h includes them.
61273
61274 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61275
61276         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61277         (jm_PREREQ_XGETCWD): New macro.
61278
61279         * m4/getcwd.m4: New file.
61280
61281 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61282
61283         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61284         like the HAVE_GETCWD_NULL code.
61285         Include pathmax.h if not HAVE_GETCWD.
61286         Do not include xalloc.h.
61287         (INITIAL_BUFFER_SIZE): New symbol.
61288         Do not use xmalloc / xrealloc, since the caller is responsible for
61289         handling errors.  Preserve errno around `free' during failure.
61290         Do not overrun buffer when using getwd.
61291
61292 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61293
61294         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61295         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61296         getcwd (NULL, 0).
61297
61298 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61299
61300         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61301         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61302         spotted by Jim Meyering.
61303
61304 2001-09-03  Jim Meyering  <meyering@lucent.com>
61305
61306         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61307         failure.
61308
61309 2001-09-02  Jim Meyering  <meyering@lucent.com>
61310
61311         * lib/error.c: Update from GNU libc.
61312
61313 2001-09-01  Jim Meyering  <meyering@lucent.com>
61314
61315         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61316         Used by df.
61317
61318 2001-09-01  Jim Meyering  <meyering@lucent.com>
61319
61320         * lib/xreadlink.c: New file.
61321         * lib/xreadlink.h: New file.
61322         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61323         xreadlink.h.
61324
61325         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61326         doesn't conflict with sparc Solaris 7's definition in
61327         /usr/include/sys/int_types.h.
61328
61329         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61330         files.
61331         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61332         and strncasecmp as r-values.  Unixware didn't have declarations.
61333
61334 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61335
61336         * lib/xstrtol.h: Add copyright notice.
61337         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61338         LONGINT_INVALID_SUFFIX_CHAR.
61339
61340 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61341
61342         * lib/xstrtol.c (strtoimax): New decl.
61343
61344 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61345
61346         * lib/xgetcwd.c: Don't include pathmax.h.
61347         Include stdlib.h and unistd.h if available.
61348         Include xalloc.h.
61349         (xmalloc, xstrdup, free): Remove decls.
61350         (xgetcwd): Don't assume sizes fit in unsigned.
61351         Check for overflow when computing sizes.
61352         Simplify reallocation code.
61353
61354 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61355
61356         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61357         a directory's st_size can have an arbitrary value, so the old
61358         usage could waste an arbitrary amount of memory.  All uses
61359         changed.
61360         * lib/savedir.h: Update prototype.
61361
61362 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61363
61364         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61365
61366         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61367         old strtoimax.c.
61368
61369         Also, make the following further changes to make this file's
61370         configuration more similar to that of strtol.c:
61371         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61372         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61373         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61374         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61375         changed to signed values.
61376
61377         And make the following changes as well:
61378         Fix copyright notice, as 1999 was missing.
61379         (verify): New macro.
61380         (strtoimax): Check sizes at compile-time, not run-time.
61381         Prefer strtol to strtoll if both work.
61382         (main): Remove; it was not that useful and was a pain to maintain.
61383
61384         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61385
61386 2001-08-31  Jim Meyering  <meyering@lucent.com>
61387
61388         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61389         Use an initial, malloc'd, buffer of length 128 rather than
61390         a statically allocated one of length 1024.
61391
61392 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61393
61394         Simplify code, partly by assuming autoconf 2.52 semantics.
61395
61396         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61397
61398         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61399         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61400         All uses removed.
61401         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61402         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61403         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61404         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61405         jm_AC_HEADER_INTTYPES_H.
61406         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61407
61408         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61409
61410         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61411         Quote first arg of AC_DEFUN.
61412         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61413         since they are needed to parse the include file even if we need
61414         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61415         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61416         but with opposite signedness.
61417
61418 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61419
61420         Merge 'exclude' changes from tar 1.13.22.
61421         This fixes one or two unlikely storage allocation overflow bugs,
61422         but doesn't change user-visible behavior otherwise.
61423
61424 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61425
61426         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61427         (jm_PREREQ_EXCLUDE): New macro.
61428
61429 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61430
61431         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61432         tm to be declared.
61433
61434 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61435
61436         * lib/hash.c: Remove '2001' from copyright notice.
61437
61438 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61439
61440         * lib/full-write.h: New file.
61441         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61442         * lib/full-write.c: Correct credits, as cccp.c no longer
61443         exists and anyway it was so heavily changed from the old cccp
61444         code as to be unrecognizable.  Include full-write.h.
61445         (full_write) Return size_t, with short writes meaning failure.
61446         All callers changed.  This fixes a bug with large buffers
61447         on 64-bit hosts.
61448         * lib/utime.c: Include full-write.h.
61449
61450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61451
61452         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61453         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61454         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61455         Include if available.
61456         (<xalloc.h>): Include
61457         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61458         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61459         collide with FNM macros.
61460         (struct patopts): New struct.
61461         (struct exclude): Use it, as exclude patterns now come with options.
61462         (new_exclude): Support above changes.
61463         (new_exclude, add_exclude_file):
61464         Initial size must now be a power of two to simplify overflow checking.
61465         (free_exclude, fnmatch_no_wildcards): New function.
61466         (excluded_filename): No longer requires options arg, as the options
61467         are determined by add_exclude.  Now returns bool, not int.
61468         (excluded_filename, add_exclude):
61469         Add support for the fancy new exclusion options.
61470         (add_exclude, add_exclude_file): Now takes int options arg.
61471         Check for arithmetic overflow when computing sizes.
61472         (add_exclude_file): xrealloc might modify errno, so don't
61473         realloc until after errno might be used.
61474
61475         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61476         New macros.
61477         (free_exclude): New decl.
61478         (add_exclude, add_exclude_file): Now takes int options arg.
61479         (excluded_filename): No longer requires options arg, as the options
61480         are determined by add_exclude.  Now returns bool, not int.
61481
61482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61483
61484         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61485
61486 2001-08-27  Jim Meyering  <meyering@lucent.com>
61487
61488         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61489
61490         * lib/version-etc.c (N_): Remove definition.
61491         Revert most of last change.
61492         Instead, simply don't mark the `Copyright...' string for translation.
61493         Based on advice from Paul Eggert.
61494
61495         * lib/strtoxmax.c: Tweak comment.
61496
61497 2001-08-26  Jim Meyering  <meyering@lucent.com>
61498
61499         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61500
61501         * m4/xstrtoimax.m4: New file.
61502         * m4/xstrtoumax.m4: Add comments explaining why we
61503         AC_REPLACE_FUNCS(strtol).
61504
61505 2001-08-26  Jim Meyering  <meyering@lucent.com>
61506
61507         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61508         of copyright with `%s' so translators don't get an untranslated
61509         message in 2002.
61510         (COPYRIGHT_YEAR): Define.
61511         (version_etc): Use fprintf rather than fputs.
61512         Suggestion from Ulrich Drepper.
61513
61514         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61515
61516         * lib/strtoll.c: New file, from GNU libc.
61517         * lib/xstrtoimax.c: New file.
61518
61519         * lib/xstrtol.h: Add xstrtoimax.
61520         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61521         * lib/strtoimax.c: New file.  Likewise, but first define
61522         STRTOUXMAX_SIGNED.
61523
61524         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61525         ...
61526         * lib/strtoxmax.c: ... then renamed to this.
61527
61528 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61529
61530         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61531         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61532         (jm_AC_TYPE_INTMAX_T): New macro.
61533         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61534
61535         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61536
61537         * m4/longlong.m4: Renamed from ulonglong.m4.
61538         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61539         * m4/uintmax_t.m4: Removed.
61540
61541 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61542
61543         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61544         Port to Solaris 8, where 'sed' requires a space after the 'r'
61545         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61546         Redirect output to $tmp just once.
61547
61548 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61549
61550         * lib/addext.c (<errno.h>): Include.
61551         (errno): Declare if not defined.
61552         (addext): Work correctly when pathconf returns -1 and leaves
61553         errno alone because there is no limit.  Also, work even if
61554         pathconf returns a value greater than SIZE_MAX.
61555
61556 2001-08-12  Jim Meyering  <meyering@lucent.com>
61557
61558         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61559         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61560         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61561         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61562         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61563         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61564         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61565         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61566         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61567         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61568         utime.m4, utimes.m4, xstrtoumax.m4:
61569         Quote the first argument in each use of AC_DEFUN.
61570
61571 2001-08-12  Jim Meyering  <meyering@lucent.com>
61572
61573         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61574         Simply `return getcwd (NULL, 0);'.
61575         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61576         Use 1300 as initial value for length, not PATH_MAX.
61577
61578         * lib/pathmax.h: Clean up cpp syntax.
61579
61580 2001-08-12  Jim Meyering  <meyering@lucent.com>
61581
61582         * lib/gettimeofday.c: New file.
61583         * lib/gtod.h: New file.
61584         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61585
61586 2001-08-05  Jim Meyering  <meyering@lucent.com>
61587
61588         * m4/jm-macros.m4: Require autoconf-2.52.
61589
61590 2001-08-04  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61593         stmt, to get in sync with glibc.
61594
61595 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61596
61597         The following changes are from gettext 0.10.39 as maintained by
61598         Bruno Haible.
61599
61600         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61601         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61602         with inverted sense.  All uses changed.
61603
61604         * lib/mbswidth.c: Don't include <limits.h>.
61605         Include <stdlib.h> and <string.h> unconditionally.
61606         (iswcntrl, mbsinit, ISCNTRL): New macros.
61607         (mbsnwidth): Use K&R style function declarations.
61608         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61609         can optimize it when MB_CUR_MAX == 1.
61610         The width of control characters is zero, not 1.
61611
61612 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61613
61614         The following changes are from gettext 0.10.39 as maintained by
61615         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61616
61617         * m4/codeset.m4: Upgrade to serial AM1.
61618         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61619         all uses changed.  Quote first arg of AC_DEFUN.
61620         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61621
61622         * m4/iconv.m4: Upgrade to serial AM2.
61623         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61624         Add --with-libconv-prefix.
61625         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61626         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61627         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61628         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61629         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61630
61631         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61632         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61633         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61634         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61635         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61636         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61637         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61638         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61639         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61640
61641         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61642         string.h any more.
61643
61644         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61645         not the default value.
61646
61647         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61648         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61649         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61650         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61651         Also check for iswcntrl, used for wcwidth fallback.
61652         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61653         to Autoconf 2.13.
61654
61655 2001-08-03  Jim Meyering  <meyering@lucent.com>
61656
61657         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61658         as it was in the original.  Reported by Paul Eggert.
61659
61660 2001-07-16  Jim Meyering  <meyering@lucent.com>
61661
61662         * m4/gettimeofday.m4: New file.
61663         Prompted by a report from Bernhard Baehr.
61664
61665 2001-07-15  Jim Meyering  <meyering@lucent.com>
61666
61667         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61668         stuff. Now it's in ../Makefile.cfg.
61669
61670 2001-07-15  Jim Meyering  <meyering@lucent.com>
61671
61672         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61673         (BUILT_SOURCES): Add unlocked-io.h.
61674         (io_functions): Define.
61675         (unlocked-io.h): New rule.
61676         (DISTCLEANFILES): Add unlocked-io.h.
61677         (all-local): Depend on unlocked-io.h, to ensure it is created.
61678
61679         * lib/unlocked-io.hin: New file
61680
61681         * lib/regex.c: Update from glibc.
61682
61683 2001-07-05  Jim Meyering  <meyering@lucent.com>
61684
61685         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61686         recommendation.
61687         (libfetish_a_SOURCES): Put all .h files here instead.
61688         Remove a thus-exposed (better checks in automake) duplicate and
61689         two unnecessary .h files.
61690
61691 2001-07-04  Jim Meyering  <meyering@lucent.com>
61692
61693         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61694         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61695         distcheck failure.
61696
61697 2001-07-02  Jim Meyering  <meyering@lucent.com>
61698
61699         The following changes were prompted by suggestions from Bruno Haible.
61700
61701         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61702         is now generated.
61703         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61704         definition of EXTRA_DIST.
61705         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61706         ensure that the generated file is created/updated whenever the list
61707         of $(unlocked_functions) is changed.
61708         (jm-glibc-io.m4): New rule.
61709         (unlocked-io.h): New rule -- currently unused.
61710
61711 2001-06-24  Jim Meyering  <meyering@lucent.com>
61712
61713         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61714         unmatched right bracket, rather than kludging it with an extra,
61715         falsely-matching quote in a comment.  Patch by Akim Demaille.
61716
61717 2001-06-11  Jim Meyering  <meyering@lucent.com>
61718
61719         * lib/regex.c: Update from GNU libc.
61720
61721 2001-05-27  Jim Meyering  <meyering@lucent.com>
61722
61723         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61724         Check for ut_type in struct utmp.
61725
61726 2001-05-27  Jim Meyering  <meyering@lucent.com>
61727
61728         * lib/readutmp.h (UT_TYPE): Define.
61729
61730 2001-05-24  Jim Meyering  <meyering@lucent.com>
61731
61732         * lib/argmatch.c: Include "quote.h".
61733         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61734         quote function.  Reported by Göran Uddeborg.
61735
61736 2001-05-22  Jim Meyering  <meyering@lucent.com>
61737
61738         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61739         now that we use the package-supplied version unconditionally.
61740         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61741
61742 2001-05-21  Jim Meyering  <meyering@lucent.com>
61743
61744         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61745         shell syntax errors.
61746
61747 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61748
61749         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61750
61751 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61752
61753         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61754         Don't bother to check library strftime, since
61755         we'll be using our own my_strftime function anyway.
61756         Define my_strftime instead of strftime.
61757
61758 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61759
61760         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61761         which is not yet declared.
61762
61763 2001-05-15  Jim Meyering  <meyering@lucent.com>
61764
61765         * m4/regex.m4: Use proper quoting so brackets appear in the test
61766         program.
61767         Reported by, and with help from, Bruno Haible.
61768
61769 2001-05-13  Jim Meyering  <meyering@lucent.com>
61770
61771         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61772         undefined.
61773
61774 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61775
61776         dirname code cleanup.  base_name now behaves more compatibly
61777         with POSIX basename when given file names that have trailing
61778         slashes, and similarly for dir_name.  Add new primitives
61779         base_len and dir_len.  Put the directory-name-related decls
61780         into dirname.h.
61781
61782         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61783         * lib/backupfile.c (base_name): Likewise.
61784         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61785         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61786         * lib/makepath.c (strip_trailing_slashes): Likewise.
61787         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61788         ISSLASH): Likewise.
61789         * lib/rename.c (strip_trailing_slashes): Likewise.
61790         * lib/same.c (base_name): Likewise.
61791         * lib/stripslash.c (ISSLASH): Likewise.
61792
61793         * lib/addext.c: Include <dirname.h> after size_t is defined.
61794         * lib/backupfile.c: Likewise.
61795
61796         * lib/addext.c (addext): Use base_len to trim redundant
61797         trailing slashes instead of doing it ourselves.
61798         But do not trim the last slash if it is not redundant.
61799
61800         * lib/backupfile.c (find_backup_file_name,
61801         max_backup_version): Use base_len instead of rolling it ourselves.
61802         Handle the case of "" and (on DOS) "C:" correctly.
61803
61804         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61805         needed. Include <string.h>, <dirname.h>.
61806         (base_name): Allow file names ending in slashes, other than names
61807         that are all slashes.  In this case, return the basename followed
61808         by the slashes.  This is more general, and can be used in places
61809         where the original base_name purposely had an assertion failure.
61810         (base_len): New function.
61811
61812         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61813         Do not include <assert.h>; no longer needed.
61814         Include xalloc.h.
61815         (memrchr): Remove decl.
61816         (dir_name_r): Remove.
61817         (dir_len): Renamed from dirlen.  All callers changed.
61818         Rewrite in terms of base_name, for simplicity and consistency.
61819         (dir_name): Never return NULL.  All callers changed.
61820         Do not include <stdlib.h> in test program; no longer needed.
61821         return 0; is fine for test program.
61822
61823         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61824         New macros.
61825         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61826
61827         * lib/path-concat.c (path_concat): Use base_len to compute
61828         base length, not strlen; this means we cannot rely on memcpy
61829         to null-terminate.
61830
61831         * lib/same.c (STREQ): Remove.
61832         (same_name): Handle the case where the basename ends in trailing '/'.
61833
61834         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61835         a slash was stripped.  Do not strip the last slash after a
61836         file system prefix.
61837
61838 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61839
61840         * lib/Makefile.am (libfetish_a_SOURCES):
61841         Add strftime.c, since we now compile it on all hosts.
61842
61843         * lib/strftime.c (my_strftime):
61844         Define to nstrftime if emacs, but only if my_strftime is not defined.
61845         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61846         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61847         Add one more extra argument: a nanoseconds value.
61848         All uses changed.
61849         (ns): New macro.
61850         (my_strftime function): Add %N format.
61851         (emacs_strftimeu): Renamed from emacs_strftime,
61852         with extra ut argument.
61853
61854 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61855
61856         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61857
61858 2001-04-21  Jim Meyering  <meyering@lucent.com>
61859
61860         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61861         doesn't interfere.
61862
61863 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61864
61865         * m4/ftruncate.m4: Check for chsize.
61866         Link with ftruncate.o unconditionally if ftruncate is missing.
61867         This was required when cross-compiling to i586-mingw32msvc.
61868
61869 2001-04-08  Jim Meyering  <meyering@lucent.com>
61870
61871         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61872         recomputed; that's necessary when the offset spans a DST transition.
61873         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61874
61875 2001-04-02  Jim Meyering  <meyering@lucent.com>
61876
61877         * lib/regex.h, regex.c: Update from GNU libc.
61878
61879 2001-03-24  Jim Meyering  <meyering@lucent.com>
61880
61881         * m4/jm-macros.m4: Require autoconf-2.49d.
61882
61883 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61884
61885         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61886
61887 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61888
61889         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61890
61891 2001-03-17  Jim Meyering  <meyering@lucent.com>
61892
61893         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61894         now that the version in autoconf is equivalent.
61895         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61896
61897         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61898         Suggestion from Akim Demaille.
61899
61900         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61901         (jm_PREREQ_TEMPNAME): New function.
61902
61903 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61904
61905         * lib/tempname.c (uint64_t): Define to uintmax_t if
61906         not defined, and if UINT64_MAX is not defined.
61907         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61908         Reported by John David Anglin.
61909
61910 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61911
61912         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61913         resolve alias if codeset is empty.
61914         * lib/config.charset (BeOS): Use wildcard syntax.
61915
61916 2001-03-13  Jim Meyering  <meyering@lucent.com>
61917
61918         * lib/path-concat.c (path_concat)
61919         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61920         concatenating e.g., `C:' and `foo'.
61921         From Bruno Haible.
61922
61923 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61924
61925         * lib/localcharset.c (locale_charset): Don't use
61926         setlocale(LC_CTYPE,NULL). Don't return NULL.
61927         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61928
61929 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61930
61931         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61932         support for DOS/DJGPP.
61933
61934 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61935
61936         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61937         lacks mkstemp.  Compile our own tempname.c if we compile our own
61938         mkstemp.c, as mkstemp relies on tempname.
61939
61940 2001-03-01  Jim Meyering  <meyering@lucent.com>
61941
61942         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61943         AH_VERBATIM really does output its argument verbatim.
61944
61945 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61946
61947         * lib/Makefile.am (libfetish_a_SOURCES):
61948         Add dup-safer.c, fopen-safer.c.
61949         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61950
61951         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61952         * lib/unistd-safer.h: New files.
61953
61954 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61955
61956         The mkstemp replacement is taken from glibc 2.2.2, with some
61957         portability fixes for use outside glibc, as follows:
61958
61959         * lib/tempname.c (struct_stat64): New macro.
61960         (direxists, __gen_tempname): Use it.
61961         This avoids a portability problem with Solaris 8.
61962
61963         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61964         (<stddef.h>, <stdint.h>, <string.h>):
61965         Include only if STDC_HEADERS || _LIBC.
61966         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61967         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61968         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61969         (__set_errno): Define this macro if <errno.h> doesn't.
61970         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61971         Define these macros if <stdio.h> doesn't.
61972         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61973         Define these macros if <sys/stat.h>
61974         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61975         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61976         __xstat64): Define if not _LIBC.
61977         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61978         (__gen_tempname): Invoke gettimeofday only if
61979         HAVE_GETTIMEOFDAY || _LIBC;
61980         otherwise, fall back on plain "time".
61981         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61982
61983         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61984
61985         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61986
61987 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61988
61989         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61990
61991 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61992
61993         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61994         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61995         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61996         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61997
61998 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61999
62000         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62001         Remove workaround macros for hosts that have mbrtowc but not
62002         mbstate_t, as we now insist on proper declarations for both
62003         before using mbrtowc.
62004
62005 2001-02-17  Jim Meyering  <meyering@lucent.com>
62006
62007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62008         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62009         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62010         UnixWare 7.1.1.
62011
62012         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62013         rather than AC_CACHE_VAL.
62014
62015 2001-02-17  Jim Meyering  <meyering@lucent.com>
62016
62017         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62018         around included file name.
62019
62020         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62021
62022         * lib/strftime.c: Update from GNU libc (the only changes were to
62023         comments).
62024
62025 2001-02-17  Jim Meyering  <meyering@lucent.com>
62026
62027         * lib/regex.c: Update from libc.
62028
62029 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62030
62031         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62032         clash.
62033
62034 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62035
62036         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62037         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62038         Reported by Mark Hounschell via Paul Eggert.
62039
62040 2001-02-07  Jim Meyering  <meyering@lucent.com>
62041
62042         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62043
62044 2001-02-05  Jim Meyering  <meyering@lucent.com>
62045
62046         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62047         it includes the patch required for `large file' support with at least
62048         HP-UX's 10.20 /bin/cc.
62049
62050 2001-02-03  Jim Meyering  <meyering@lucent.com>
62051
62052         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62053         AS_IF, now that it works once again (mysteriously).
62054         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62055
62056 2001-01-30  Jim Meyering  <meyering@lucent.com>
62057
62058         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62059         * m4/chown.m4: Rename conftestchown to conftest.chown.
62060         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62061         s/conftestdir2/conftest.d2/.
62062         * m4/utimes.m4: s/conftestdata/conftest.data/
62063         Inspired by Pavel Roskin's change in autoconf.
62064
62065 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62066
62067         * lib/config.charset: Update for FreeBSD 4.2.
62068
62069 2001-01-27  Jim Meyering  <meyering@lucent.com>
62070
62071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62072         a use of AS_IF.
62073         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62074
62075 2001-01-26  Jim Meyering  <meyering@lucent.com>
62076
62077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62078         quotearg.c includes it.
62079
62080 2001-01-26  Jim Meyering  <meyering@lucent.com>
62081
62082         * lib/quotearg.c: Include stddef.h.
62083         * lib/quote.c: Include stddef.h.
62084         Reported by Axel Kittenberger.
62085
62086         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62087         line in double quotes so that it evokes a better diagnostic.
62088         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62089         Reported by Axel Kittenberger.
62090
62091 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62092
62093         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62094         as if it was a `charset'.
62095
62096 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62097
62098         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62099         has const.
62100
62101 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62102
62103         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62104         to avoid a warning.  Add back 'const' to inptr.
62105
62106 2001-01-20  Jim Meyering  <meyering@lucent.com>
62107
62108         Be sure that headers are checked before used in code compiled
62109         for the type checks.
62110         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62111         In place of that, invoke jm_CHECK_ALL_TYPES.
62112         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62113         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62114         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62115         The check for ssize_t was mistakenly run before the test for unistd.h.
62116
62117         The configure-time check for stdbool.h was missing.
62118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62119         (jm_PREREQ_HASH): New function.
62120
62121 2001-01-17  Jim Meyering  <meyering@lucent.com>
62122
62123         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62124         for autoconf-2.49c.
62125         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62126
62127 2001-01-16  Jim Meyering  <meyering@lucent.com>
62128
62129         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62130         From Bruno Haible.
62131
62132 2001-01-14  Jim Meyering  <meyering@lucent.com>
62133
62134         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62135         foo and bar.  Create conftestdir/ in the script, not in the C code.
62136         Remove directories in the script, not in the C code.
62137         Remove conftestdir{,2} before trying to create the directory.
62138         Make the entire configure script fail if the mkdir fails.
62139
62140 2001-01-14  Jim Meyering  <meyering@lucent.com>
62141
62142         * lib/rename.c: New file.  From Volker Borchert.
62143         Include stdlib.h, string.h or strings.h, and xalloc.h.
62144         Use strip_trailing_slashes rather than open-coding it.
62145
62146 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62147
62148         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62149
62150 2001-01-03  Jim Meyering  <meyering@lucent.com>
62151
62152         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62153         of local `inptr' to avoid warning with some system declarations of
62154         iconv.
62155
62156 2001-01-02  Volker Borchert  <bt@teknon.de>
62157
62158         * m4/rename.m4: New file.
62159         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62160
62161 2001-01-01  Jim Meyering  <meyering@lucent.com>
62162
62163         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62164         even on systems with utmpx.h.  It's necessary for the declaration of
62165         utmp's ut_user member.  Reported by Andreas Jaeger.
62166
62167         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62168         available. They are required for the declarations of getgrgid and
62169         getpwuid resp.
62170         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62171         Reported by Andreas Jaeger.
62172
62173 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62174
62175         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62176         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62177         so `make install' also works in VPATH builds.
62178
62179 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62180
62181         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62182         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62183         can be used in subdirectories.
62184
62185 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62186
62187         * lib/modechange.c: Do not assume that mode_t uses the
62188         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62189         the other-execute bit of FOO even if S_IXOTH != 1.
62190
62191         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62192         WOTH, XOTH, ALLM): New macros.
62193         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62194          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62195         Use them.
62196         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62197         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62198         (mode_compile):
62199         No need to use uintmax_t; unsigned long is long enough.
62200         Don't bother to get suffix since we don't use it.
62201
62202 2000-12-26  Jim Meyering  <meyering@lucent.com>
62203
62204         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62205         better with autoheader.
62206
62207 2000-12-24  Jim Meyering  <meyering@lucent.com>
62208
62209         * lib/hash.c (is_prime): Return explicit boolean values.
62210         (hash_get_first): Return NULL to appease Irix5.6's 89.
62211         Reported by Nelson Beebe.
62212
62213 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62214
62215         * lib/localcharset.c (locale_charset): Add support for Win32.
62216
62217 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62218
62219         * lib/physmem.h, lib/physmem.c: New files.
62220
62221         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62222         (noinst_HEADERS): Add physmem.h.
62223
62224         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62225         't' for compatibility with Solaris 8 sort.
62226
62227 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62228
62229         * lib/config.charset: Add support for BeOS.
62230
62231 2000-12-17  Jim Meyering  <meyering@lucent.com>
62232
62233         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62234         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62235
62236 2000-12-16  Jim Meyering  <meyering@lucent.com>
62237
62238         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62239         N and M) would have treated it like `chown N:N FILE'.
62240
62241         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62242
62243 2000-12-16  Jim Meyering  <meyering@lucent.com>
62244
62245         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62246         SHELLS_FILE to a file name that's useful on djgpp systems.
62247         Include stdlib.h.
62248         (ADDITIONAL_DEFAULT_SHELLS): Define.
62249         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62250         Based mostly on a patch from Prashant TR.
62251
62252 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62253
62254         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62255         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62256         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62257
62258 2000-12-08  Andreas Schwab  <schwab@suse.de>
62259
62260         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62261         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62262
62263 2000-12-07  Jim Meyering  <meyering@lucent.com>
62264
62265         * lib/stripslash.c (ISSLASH): Define.
62266         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62267         `/'.
62268         From Prashant TR.
62269
62270         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62271         (dir_name_r): Declare this function as static.
62272         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62273         manifest itself on a name containing a mix of slashes and
62274         backslashes.
62275         Make this function work with names starting with a DOS-style
62276         drive letter and colon prefix.
62277         (dir_name): Append `.' if necessary.
62278         Based mostly on patches from Prashant TR and Eli Zaretskii.
62279
62280         * lib/dirname.h (dir_name_r): Remove prototype.
62281
62282 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62283
62284         * m4/off_t-format.m4: Remove this file.
62285         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62286
62287 2000-12-06  Jim Meyering  <meyering@lucent.com>
62288
62289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62290         replacement strtoull, we may well need the replacement strtoul, too.
62291         Check for declarations of strtoul and strtoull.
62292         Check for strtol.  Mainly as a cue to cause automake to include
62293         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62294         Check for limits.h -- strtol.c needs it.
62295
62296 2000-12-05  Jim Meyering  <meyering@lucent.com>
62297
62298         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62299
62300 2000-12-04  Jim Meyering  <meyering@lucent.com>
62301
62302         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62303         Also include memory.h, stdlib.h, unistd.h if appropriate.
62304         Reported by Andreas Jaeger (conflicting declaration of malloc).
62305
62306 2000-12-02  Jim Meyering  <meyering@lucent.com>
62307
62308         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62309         * m4/jm-macros.m4 (jm_MACROS): require it.
62310
62311 2000-12-02  Jim Meyering  <meyering@lucent.com>
62312
62313         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62314
62315 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62316
62317         * lib/memrchr.c: Include <config.h> before any system include file.
62318
62319 2000-11-30  Jim Meyering  <meyering@lucent.com>
62320
62321         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62322
62323 2000-11-30  Jim Meyering  <meyering@lucent.com>
62324
62325         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62326
62327 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62328
62329         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62330
62331 2000-11-26  Jim Meyering  <meyering@lucent.com>
62332
62333         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62334
62335 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62336
62337         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62338         size of (size_t) -1; it's not portable.
62339
62340 2000-11-17  Jim Meyering  <meyering@lucent.com>
62341
62342         * lib/strstr.c: Update from GNU libc.
62343
62344 2000-11-17  Akim Demaille  <akim@epita.fr>
62345
62346         * lib/obstack.h: Formatting changes.
62347         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62348         prevent type checking.
62349         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62350         cast the value to (void *): assigning a `foo *' to a `void *'
62351         variable is valid.
62352         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62353
62354 2000-11-16  Jim Meyering  <meyering@lucent.com>
62355
62356         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62357
62358 2000-11-11  Jim Meyering  <meyering@lucent.com>
62359
62360         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62361
62362 2000-11-10  Jim Meyering  <meyering@lucent.com>
62363
62364         * lib/obstack.h: Update from GNU libc.
62365         * lib/obstack.c: Likewise.
62366
62367 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62368
62369         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62370
62371 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62372
62373         * lib/getusershell.c (setusershell): Use rewind rather than
62374         fseek/fseeko, to avoid configuration hassles with fseeko.
62375         Don't bother opening SHELLS_FILE if shellstream is NULL;
62376         it's not necessary.
62377
62378 2000-11-05  Jim Meyering  <meyering@lucent.com>
62379
62380         * lib/makepath.h (make_dir): Declare.
62381         * lib/makepath.c (make_dir): Remove `static' attribute.
62382         Tweak a comment.
62383
62384 2000-11-04  Jim Meyering  <meyering@lucent.com>
62385
62386         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62387
62388 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62389
62390         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62391         last one in a bucket, advance to the next bucket.
62392
62393 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62394
62395         * lib/fnmatch.c: Do not comment out all the code if we are using
62396         the GNU C library, because in some cases we are replacing buggy
62397         code in the GNU C library itself.
62398
62399 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62400
62401         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62402         (regex_compile): Catch bogus \(\1\).
62403
62404 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62405
62406         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62407         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62408         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62409
62410 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62411
62412         * lib/error.h, getline.h, modechange.h:
62413         Remove "2000" from Copyright line, as the file hasn't been
62414         changed this year other than in the copyright notice.
62415
62416         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62417         was changed this year.
62418
62419 2000-10-29  Jim Meyering  <meyering@lucent.com>
62420
62421         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62422         renaming.
62423         * m4/ls-mntd-fs.m4: Likewise
62424
62425 2000-10-29  Jim Meyering  <meyering@lucent.com>
62426
62427         * lib/xstat.in: Fix grammar in comment.
62428
62429 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62430
62431         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62432         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62433         doesn't define __restrict_arr.
62434
62435 2000-10-28  Jim Meyering  <meyering@lucent.com>
62436
62437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62438         (jm_PREREQ_MEMCHR): New function.
62439
62440 2000-10-28  Jim Meyering  <meyering@lucent.com>
62441
62442         * lib/memchr.c: Update from libc.
62443         Adjust for portability:
62444         [HAVE_STDLIB_H]: Include stdlib.h.
62445         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62446         Undef __memchr, too.
62447         [!weak_alias]: Define __memchr to memchr.
62448
62449         * lib/regex.c: Update from libc.
62450         * lib/regex.h: Likewise.
62451         * lib/getopt1.c: Likewise.
62452         * lib/memcmp.c: Likewise.
62453
62454         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62455         Avoid using fseek, when possible -- it's broken by design.
62456         Patch by Ulrich Drepper.
62457
62458 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62459
62460         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62461         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62462         Giving in to popular pressure to shut up the compiler with casts.
62463
62464 2000-10-26  Jim Meyering  <meyering@lucent.com>
62465
62466         * lib/strftime.c: Update from libc.
62467
62468 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62469
62470         * regex.c: More `unsigned char' -> `re_char' changes.
62471         Also change several `int' into `re_wchar_t'.
62472         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62473         (PUSH_FAILURE_POINTER): Don't cast any more.
62474         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62475         We want GCC to complain, since this piece of code makes
62476         re_match non-reentrant, which *should* be fixed.
62477         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62478         (EXTEND_BUFFER): Use RETALLOC.
62479         (SET_LIST_BIT): Don't cast.
62480         (re_wchar_t): New type.
62481         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62482         that those two functions will always properly return.
62483         (IMMEDIATE_QUIT_CHECK): Cast to void.
62484         (analyse_first): Use recursion rather than an explicit stack.
62485         (re_compile_fastmap): Can't fail anymore.
62486         (re_search_2): Don't check re_compile_fastmap for failure.
62487         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62488         Now also sets the new value (passed in a new argument).
62489         (re_match_2_internal): Use it.
62490         Also, use a new var `reg' of type size_t when looping through regs
62491         rather than reuse the inappropriate `mcnt'.
62492
62493 2000-10-25  Jim Meyering  <meyering@lucent.com>
62494
62495         * lib/obstack.c: Update from libc.
62496
62497 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62498
62499         * regex.c (regex_compile): Change the way of handling a range from
62500         a char less than 256 to a char not less than 256.
62501
62502 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62503
62504         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62505         NT-Emacs only.
62506         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62507         so that re_search functions only quit when callers expect them to.
62508
62509 2000-10-23  Jim Meyering  <meyering@lucent.com>
62510
62511         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62512         wrong.  That set_locale call must not have any side effects.
62513         From Paul Eggert.
62514
62515 2000-10-22  Jim Meyering  <meyering@lucent.com>
62516
62517         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62518         [CYCLIC]: Remove now-unused definition.
62519
62520         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62521         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62522         Suggestion from Ulrich Drepper.
62523
62524 2000-10-21  Jim Meyering  <meyering@lucent.com>
62525
62526         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62527         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62528         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62529
62530 2000-10-21  Jim Meyering  <meyering@lucent.com>
62531
62532         * lib/dirname.c (memrchr): Declare if necessary.
62533         (dir_name): Remove the restriction that there be no
62534         trailing slashes.  Now, this code skips past them, effectively
62535         ignoring them.
62536         [TEST_DIRNAME] (main): New unit tests.
62537
62538         * lib/memrchr.c: New file from GNU libc.
62539         Undef __memrchr, too.
62540         [!weak_alias]: Define __memrchr to memrchr.
62541         Guard weak_alias use with `#ifdef weak_alias'.
62542
62543 2000-10-21  Jim Meyering  <meyering@lucent.com>
62544
62545         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62546         (dir_name): Use dir_name_r.
62547         * lib/dirname.h (dir_name_r): Declare it.
62548
62549 2000-10-17  Jim Meyering  <meyering@lucent.com>
62550
62551         * lib/quote.h (PARAMS): Define and use.
62552         Reported by Akim Demaille.
62553
62554         * lib/getopt.c: Update from libc.
62555
62556 2000-10-16  Jim Meyering  <meyering@lucent.com>
62557
62558         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62559         setlocale.
62560         From Jan Fedak.
62561
62562 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62563
62564         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62565
62566 2000-09-25  Jim Meyering  <meyering@lucent.com>
62567
62568         * lib/md5.h (rol): Define (from GnuPG).
62569
62570         * lib/sha.c: Give credit (GnuPG) where due.
62571         (M): Use rol rather than open-coding it.
62572         Add a FIXME comment.
62573
62574 2000-09-21  Jim Meyering  <meyering@lucent.com>
62575
62576         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62577         Reported by Michael Stone.
62578
62579 2000-09-20  Jim Meyering  <meyering@lucent.com>
62580
62581         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62582         (noinst_HEADERS): Add sha.h.
62583         Based on code from Scott G. Miller and from GnuPG.
62584
62585 2000-09-18  Jim Meyering  <meyering@lucent.com>
62586
62587         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62588         LIBS. Otherwise, everyone ends up linking with -lelf for some
62589         configurations.
62590         Reported by Mike Stone.
62591
62592 2000-09-15  Jim Meyering  <meyering@lucent.com>
62593
62594         * lib/regex.c: Update from libc.
62595
62596 2000-09-10  Jim Meyering  <meyering@lucent.com>
62597
62598         * lib/getopt.c (_getopt_internal): Update from glibc.
62599
62600 2000-09-09  Jim Meyering  <meyering@lucent.com>
62601
62602         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62603         think it should be used as a general replacement for isascii.
62604         * lib/fnmatch.c: Likewise.
62605         * lib/mbswidth.c: Likewise
62606         * lib/regex.c: Likewise.
62607
62608         Don't use atoi.
62609         * lib/userspec.c: Include sys/param.h and limits.h.
62610         Include xstrtol.h.
62611         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62612         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62613         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62614         UID, GID.  Check range.
62615
62616 2000-09-06  Jim Meyering  <meyering@lucent.com>
62617
62618         * lib/getopt.c (_getopt_internal): Update from glibc.
62619
62620 2000-08-30  Jim Meyering  <meyering@lucent.com>
62621
62622         * lib/strftime.c: Merge in changes from GNU libc.
62623
62624 2000-08-26  Jim Meyering  <meyering@lucent.com>
62625
62626         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62627         * m4/fpending.m4: New file.
62628
62629 2000-08-26  Jim Meyering  <meyering@lucent.com>
62630
62631         * lib/closeout.c: Include "__fpending.h".
62632         (close_stdout_status): Return right away if there's nothing to flush.
62633
62634         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62635         * lib/__fpending.c: New file.
62636         * lib/__fpending.h: New file.
62637
62638 2000-08-20  Jim Meyering  <meyering@lucent.com>
62639
62640         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62641         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62642         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62643
62644 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62645
62646         Improve fileutils installation on systems where running
62647         programs (like install) can't be unlinked.
62648         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62649         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62650
62651 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62652
62653         Standardize on "memory exhausted" instead of "Memory exhausted"
62654         or "virtual memory exhausted".
62655         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62656         "virtual memory exhausted".
62657         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62658         our own message.
62659         * lib/userspec.c (parse_user_spec): Likewise.
62660         * lib/bumpalloc.h: comment fix
62661         * lib/same.c, userspec.c: Include xalloc.h.
62662
62663         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62664         not char *const and pointing to a constant array.
62665         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62666         (xrealloc): Comment fix.
62667
62668         * lib/userspec.c (parse_user_spec):
62669         Don't translate a message until just before returning,
62670         to avoid unnecessary translation.
62671
62672 2000-08-07  Jim Meyering  <meyering@lucent.com>
62673
62674         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62675         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62676         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62677         getgroups.c, gethostname.c, getopt.h, group-member.c,
62678         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62679         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62680         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62681         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62682         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62683         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62684         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62685         yesno.c: Back out Copyright date changes for each file with no change
62686         this year.  This eases coordination with other programs using the same
62687         source code modules.  From Paul Eggert.
62688
62689 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62690
62691         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62692         not char, for compatibility with glibc 2.1.3 strftime.c.
62693
62694 2000-08-03  Greg McGary  <greg@mcgary.org>
62695
62696         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62697         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62698         (EXTEND_BUFFER): Use them.
62699
62700 2000-08-01  Jim Meyering  <meyering@lucent.com>
62701
62702         * lib/dirname.c (ISSLASH): Define.
62703         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62704         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62705         both `\' and `/' may be use as path separators.
62706         Based on a patch from Prashant TR.
62707
62708 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62709
62710         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62711         slot vector a constant, since it might get modified.
62712
62713 2000-07-31  Jim Meyering  <meyering@lucent.com>
62714
62715         * lib/xmalloc.c: Use `virtual memory exhausted', not
62716         `Memory exhausted'.
62717         * lib/obstack.c (print_and_abort): Likewise.
62718
62719 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62720
62721         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62722         buffer, so that the caller can always quote one small
62723         component of a "memory exhausted" message in slot 0.
62724         From a suggestion by Jim Meyering.
62725
62726 2000-07-30  Jim Meyering  <meyering@lucent.com>
62727
62728         * lib/makepath.c (make_path): Quote the other instance, too.
62729
62730         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62731         (STATIC_BUF_SIZE): Define.
62732         (quotearg_n_options): Use only statically allocated storage when
62733         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62734         than STATIC_BUF_SIZE.
62735
62736 2000-07-29  Jim Meyering  <meyering@lucent.com>
62737
62738         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62739         * lib/dirname.c (dir_name): Likewise.
62740
62741         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62742         `/'.
62743
62744         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62745         (dir_name): Assert that there are no trailing slashes.
62746
62747 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62748
62749         * lib/mbswidth.h (mbswidth): Add a flags argument.
62750         (mbswidth): New declaration.
62751         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62752         * lib/mbswidth.c (mbswidth): Add a flags argument.
62753         (mbsnwidth): New function.
62754
62755 2000-07-24  Jim Meyering  <meyering@lucent.com>
62756
62757         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62758
62759 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62760
62761         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62762
62763 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62764
62765         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62766         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62767         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62768         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62769         invoke multibyte primitives.
62770
62771 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62772
62773         * lib/quotearg.c:
62774         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62775         so that mbstate_t is always defined.
62776
62777         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62778         be 1 in at least one GCC installation, and this configuration
62779         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62780         performance on hosts that have mbrtowc but have only unibyte
62781         locales, but I assume these hosts are rare.
62782
62783 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62784
62785         * lib/mbswidth.c (_XOPEN_SOURCE):
62786         Don't define; this causes problems on Solaris 7.
62787         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62788
62789 2000-07-23  Jim Meyering  <meyering@lucent.com>
62790
62791         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62792         too: getgrgid, getpwuid, getuid.
62793
62794 2000-07-23  Jim Meyering  <meyering@lucent.com>
62795
62796         * lib/basename.c (base_name): Add an assertion.
62797
62798 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62799
62800         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62801         shadow its mbsinit function.
62802
62803 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62804
62805         * lib/mbswidth.h: New file.
62806         * lib/mbswidth.c: New file.
62807         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62808         (noinst_HEADERS): Add mbswidth.h.
62809
62810 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62811
62812         * lib/config.charset: Add support for FreeBSD. Improve support for
62813         HP-UX and IRIX 6.
62814
62815 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62816
62817         * m4/mbswidth.m4: New file.
62818         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62819
62820 2000-07-15  Jim Meyering  <meyering@lucent.com>
62821
62822         * lib/makepath.c: Include quote.h.
62823         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62824         corresponding argument in a `quote (...)' call.
62825         Give better diagnostics.
62826
62827         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62828         (noinst_HEADERS): Add quote.h.
62829
62830         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62831         from tar's src/misc.c.
62832         * lib/quote.h: New file.  Prototypes for same.
62833
62834 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62835
62836         From a suggestion by Bruno Haible.
62837         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62838         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62839         to decide whether to define the BeOS workaround macro;
62840         this adjusts to the change to AC_MBSTATE_T.
62841
62842 2000-07-14  Jim Meyering  <meyering@lucent.com>
62843
62844         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62845         jm_AC_TYPE_UINTMAX_T.
62846
62847 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62848
62849         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62850
62851         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62852         quotearg_buffer_restyled): Add support for
62853         clocale_quoting_style.  Undo previous change to
62854         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62855         and "{RIGHT QUOTATION MARK}" msgids.
62856
62857 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62858
62859         From a suggestion by Bruno Haible.
62860         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62861         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62862         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62863         and mbstate_t, to a single-part test that simply defines mbstate_t.
62864         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62865         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62866
62867 2000-07-10  Jim Meyering  <meyering@lucent.com>
62868
62869         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62870
62871         * m4/gnu-source.m4: Output to confdefs.h directly.
62872         Suggestion from Akim Demaille.
62873
62874 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62875
62876         The old behavior of quoting `like this' doesn't look good with
62877         newer, ISO-style fonts.  See:
62878         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62879
62880         Instead, quote "like this" by default.  Let the translator
62881         tailor the locale-specific quoting behavior by providing
62882         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62883
62884         * lib/quotearg.c (N_): New macro.
62885         (gettext_default): New function.
62886         (quotearg_buffer_restyled): Use
62887         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62888         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62889
62890 2000-07-09  Jim Meyering  <meyering@lucent.com>
62891
62892         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62893         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62894
62895         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62896         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62897
62898 2000-07-09  Jim Meyering  <meyering@lucent.com>
62899
62900         * lib/Most files: Update copyright dates to include 2000.
62901
62902 2000-07-08  Jim Meyering  <meyering@lucent.com>
62903
62904         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62905         if not defined.
62906         (xgethostname): Remove now-unnecessary #ifdef.
62907         Move declaration of `err' into loop where it's used.
62908
62909 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62910         and Bruno Haible  <haible@clisp.cons.org>
62911
62912         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62913         only if the test for an object-type mbstate_t fails.  This
62914         prevents us from mistakenly reporting that mbstate_t is a
62915         system object type after we "#define mbstate_t int" to work
62916         around its lack.
62917
62918 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62919         and Bruno Haible  <haible@clisp.cons.org>
62920
62921         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62922
62923 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62924
62925         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62926         to strerror_r.
62927         Include <ctype.h> for use of isalpha.
62928
62929 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62930
62931         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62932         by allocating a larger buffer. Test the gethostname return value for
62933         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62934         returns an error and ENAMETOOLONG isn't defined.
62935
62936 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62937
62938         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62939         dimension.
62940
62941 2000-07-04  Jim Meyering  <meyering@lucent.com>
62942
62943         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62944         of the deprecated AC_CHECKING.
62945
62946 2000-07-04  Jim Meyering  <meyering@lucent.com>
62947
62948         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62949         Reported by Bruno Haible.
62950
62951 2000-07-04  Jim Meyering  <meyering@lucent.com>
62952
62953         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62954         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62955         lacks mbrtowc.
62956
62957 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62958
62959         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62960         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62961
62962 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62963         and Bruno Haible  <haible@clisp.cons.org>
62964
62965         * lib/quotearg.c (mbrtowc):
62966         Assign to *pwc, and return 1 only if result is nonzero.
62967         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62968
62969 2000-07-03  Jim Meyering  <meyering@lucent.com>
62970
62971         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62972
62973 2000-07-03  Jim Meyering  <meyering@lucent.com>
62974
62975         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62976         This is necessary to get a definition of e.g., UTMP_FILE on
62977         HP-UX 10.20.
62978         From Bob Proulx.
62979
62980 2000-07-02  Jim Meyering  <meyering@lucent.com>
62981
62982         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62983
62984         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62985         AC_LIBOBJ(function_name).
62986         * m4/chown.m4: Likewise.
62987         * m4/fnmatch.m4: Likewise.
62988         * m4/ftruncate.m4: Likewise.
62989         * m4/getgroups.m4: Likewise.
62990         * m4/getline.m4: Likewise.
62991         * m4/group-member.m4: Likewise.
62992         * m4/jm-macros.m4: Likewise.
62993         * m4/lstat.m4: Likewise.
62994         * m4/malloc.m4: Likewise.
62995         * m4/memcmp.m4: Likewise.
62996         * m4/nanosleep.m4: Likewise.
62997         * m4/putenv.m4: Likewise.
62998         * m4/realloc.m4: Likewise.
62999         * m4/regex.m4: Likewise.
63000         * m4/stat.m4: Likewise.
63001         * m4/strftime.m4: Likewise.
63002
63003 2000-07-02  Jim Meyering  <meyering@lucent.com>
63004
63005         * lib/quotearg.c (mbstate_t): Don't define here.
63006
63007 2000-07-02  Jim Meyering  <meyering@lucent.com>
63008
63009         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63010
63011 2000-07-01  Jim Meyering  <meyering@lucent.com>
63012
63013         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63014
63015 2000-07-01  Jim Meyering  <meyering@lucent.com>
63016
63017         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63018         problem.
63019
63020 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63021
63022         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63023         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63024
63025 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63026
63027         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63028         per change in ../m4/ls-mntd-fs.m4.
63029         (read_filesystem_list): Ignore symbolic links.
63030
63031 2000-06-29  Jim Meyering  <meyering@lucent.com>
63032
63033         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63034         for declaration of strcmp.
63035
63036         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63037
63038         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63039         Avoid warning by casting result to `char *' to remove `const'.
63040
63041 2000-06-28  Jim Meyering  <meyering@lucent.com>
63042
63043         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63044         included by quotearg.c, for which we perform this test.  From
63045         Bruno Haible.
63046
63047 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63048
63049         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63050         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63051         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63052
63053 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63054
63055         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63056
63057 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63058
63059         savedir now sets errno on failure and invokes xmalloc to get memory.
63060         Fix a couple of other minor bugs while we're at it.
63061
63062         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63063         (NAMLEN): Remove macro.
63064         (malloc, realloc): Remove decls.
63065         (stpcpy): Likewise.
63066         ("xalloc.h"): Include.
63067         (NAME_SIZE_DEFAULT): New macro.
63068         (savedir): Use xmalloc / xrealloc to allocate memory.
63069         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63070         Skip "" directory entries.
63071         Use strlen to calculate directory entry length, since the old method
63072         is rarely used these days and isn't worth supporting.
63073         Don't use a pointer after freeing it.
63074         Check for integer overflow when calculating allocation size.
63075         Use memcpy to copy entries, instead of stpcpy.
63076         Set errno properly when returning NULL.
63077         Check for readdir error.
63078
63079 2000-06-26  Jim Meyering  <meyering@lucent.com>
63080
63081         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63082
63083 2000-06-25  Jim Meyering  <meyering@lucent.com>
63084
63085         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63086         Linux header bug when _XOPEN_SOURCE is defined to 500.
63087
63088 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63089
63090         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63091         deficiency.
63092
63093 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63094
63095         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63096         Include xalloc.h.
63097         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63098
63099 2000-06-24  Jim Meyering  <meyering@lucent.com>
63100
63101         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63102         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63103         for which strerror does return char*, but which lacks a conveniently
63104         accessible declaration of the function.  If the compile-test says
63105         strerror_r doesn't work, then resort to a `run'-test that works on
63106         BeOS and segfaults on DEC Unix.
63107
63108 2000-06-24  Jim Meyering  <meyering@lucent.com>
63109
63110         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63111
63112 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63113
63114         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63116
63117 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63118
63119         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63120         (mbrtowc, mbstate_t): Define substitutes if
63121         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63122         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63123         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63124
63125 2000-06-23  Jim Meyering  <meyering@lucent.com>
63126
63127         * m4/afs.m4: Add missing AC_MSG_RESULT.
63128         Reported by Bruno Haible.
63129
63130         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63131         Suggestion from Bruno Haible.
63132
63133 2000-06-23  Jim Meyering  <meyering@lucent.com>
63134
63135         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63136
63137 2000-06-21  Jim Meyering  <meyering@lucent.com>
63138
63139         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63140
63141 2000-06-21  Jim Meyering  <meyering@lucent.com>
63142
63143         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63144         (noinst_HEADERS): Add getstr.h.
63145
63146         * lib/getline.c (getstr): Move into a separate file.
63147         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63148         the following changes: new parameter, delim2; both delim[12]
63149         parameters have type `int', not `char'.  The latter would lose
63150         with 8-bit delimiters.
63151         * lib/getstr.h: New file.
63152
63153 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63154
63155         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63156         than 1024, return a memory chunk of least possible size, instead
63157         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63158         Use free/xmalloc instead of xrealloc to avoid copying for very long
63159         paths.
63160
63161 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63162
63163         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63164         the empty string.
63165
63166 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63167
63168         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63169         address, not strdup.  Include <stdlib.h> and don't declare free().
63170
63171 2000-06-19  Jim Meyering  <meyering@lucent.com>
63172
63173         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63174
63175 2000-06-18  Jim Meyering  <meyering@lucent.com>
63176
63177         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63178
63179         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63180         `checking whether...' message to be consistent with that of the
63181         lstat test.
63182
63183 2000-06-18  Jim Meyering  <meyering@lucent.com>
63184
63185         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63186         Besides, these days every porting target provides a mkdir function.
63187
63188         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63189         needed. (this snippet comes from src/system.h).
63190
63191 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63192
63193         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63194
63195 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63196
63197         * lib/human.c (adjust_value): New function.
63198         (human_readable_inexact): Apply rounding style even when
63199         printing approximate values.
63200
63201 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63202
63203         * lib/human.c (human_readable_inexact): Allow an input block
63204         size that is not a multiple of the output block size, and vice versa.
63205         Reported by Piergiorgio Sartor.
63206
63207 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63208
63209         * lib/getdate.y (get_date): Apply relative times after time
63210         zone indicator, not before.  Reported by Todd A. Jacobs.
63211
63212 2000-06-13  Jim Meyering  <meyering@lucent.com>
63213
63214         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63215
63216         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63217
63218 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63219
63220         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63221
63222 2000-06-12  Jim Meyering  <meyering@lucent.com>
63223
63224         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63225         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63226         optional argument.
63227         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63228         the optional argument, `lib'.
63229
63230 2000-06-08  Jim Meyering  <meyering@lucent.com>
63231
63232         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63233
63234 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63235
63236         Rewrite largefile configuration so that we don't need to run
63237         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63238         AC_CANONICAL_HOST in configure.in -- jmm]
63239
63240         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63241         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63242         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63243         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63244         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63245         All uses changed.
63246         Instead of inspecting the output of getconf, try to compile the
63247         test program without and with the macro definition.
63248         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63249         for getconf.  Instead, check for the needed flags by compiling
63250         test programs.
63251
63252 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63253
63254         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63255
63256 2000-06-04  Jim Meyering  <meyering@lucent.com>
63257
63258         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63259         SunOS 4.1.4 for which gid_t is an unsigned type.
63260
63261 2000-06-03  Jim Meyering  <meyering@lucent.com>
63262
63263         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63264         now that autoconf requires that.
63265
63266         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63267         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63268         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63269
63270 2000-06-03  Jim Meyering  <meyering@lucent.com>
63271
63272         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63273
63274 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63275
63276         * m4/glibc21.m4: New file.
63277         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63278
63279 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63280
63281         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63282         newer, don't install charset.alias.
63283         * lib/config.charset: Change the Linux/glibc rules so they become empty
63284         on glibc-2.1 or newer.
63285
63286 2000-06-02  Jim Meyering  <meyering@lucent.com>
63287
63288         * lib/mountlist.c: Back out last change.  Instead, do this...
63289         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63290         me_dummy member using the same `ignore'-testing code.
63291         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63292         fs_type strings.
63293         From Mark D. Roth.
63294
63295 2000-05-29  Jim Meyering  <meyering@lucent.com>
63296
63297         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63298         mounts with the `ignore' attribute.  Based on a patch from
63299         Mark D. Roth.
63300
63301 2000-05-28  Jim Meyering  <meyering@lucent.com>
63302
63303         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63304         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63305         * m4/stat.m4: Likewise.
63306         * m4/lstat.m4: Likewise.
63307         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63308
63309         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63310         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63311
63312 2000-05-26  Jim Meyering  <meyering@lucent.com>
63313
63314         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63315
63316 2000-05-24  Jim Meyering  <meyering@lucent.com>
63317
63318         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63319         autoconf requires that.
63320         * m4/lib-check.m4: Likewise.
63321         * m4/jm-macros.m4: Likewise.
63322         * m4/strftime.m4: Likewise.
63323
63324         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63325         AC_CHECK_DECLS, now that autoconf requires that.
63326
63327 2000-05-22  Jim Meyering  <meyering@lucent.com>
63328
63329         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63330         * m4/lstat.m4: Likewise.
63331
63332 2000-05-22  Jim Meyering  <meyering@lucent.com>
63333
63334         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63335
63336 2000-05-20  Jim Meyering  <meyering@lucent.com>
63337
63338         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63339         (jm_PREREQ): Use it.
63340
63341 2000-05-18  Jim Meyering  <meyering@lucent.com>
63342
63343         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63344         back, too, since it may have been modified by allocate_entry.
63345         (hash_delete): Rewrite to use neither the assignment operator
63346         nor the comma operator in an if-expression.
63347
63348 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63349
63350         * lib/closeout.c:
63351         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63352         Remove; no longer needed.
63353         "quotearg.h": Add include.
63354         (file_name): Do not bother to explicitly initialize to NULL; it's less
63355         efficient on some hosts.
63356         (close_stdout_status): Remove test as to whether stdout was already
63357         closed; it breaks for the case "echo x | sort >&-".
63358         Quote file name colons.
63359         Do not assume that _("write error") lacks format strings.
63360
63361 2000-05-15  Jim Meyering  <meyering@lucent.com>
63362
63363         * lib/version-etc.c (version_etc_copyright): Update the copyright
63364         string used in all --version output.
63365
63366 2000-05-14  Jim Meyering  <meyering@lucent.com>
63367
63368         * lib/closeout.c (close_stdout_set_file_name): New function.
63369         (close_stdout_status): Use new file-scoped global.
63370         Return right away if fstat says the stdout file descriptor is invalid.
63371         * lib/closeout.h (close_stdout_set_file_name): Declare.
63372
63373 2000-05-10  Jim Meyering  <meyering@lucent.com>
63374
63375         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63376         (close_stdout_set_status): New function.
63377         * lib/closeout.h (close_stdout_set_status): Declare.
63378
63379 2000-05-09  Jim Meyering  <meyering@lucent.com>
63380
63381         * m4/gettext.m4: Rename this...
63382         * m4/libintl.m4: ...to this.
63383
63384 2000-05-08  Jim Meyering  <meyering@lucent.com>
63385
63386         * lib/long-options.c: Don't include closeout.h.
63387         (parse_long_options): Don't call close_stdout for --version.
63388
63389 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63390
63391         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63392         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63393         2.1.3 bug.  This avoids a clash when files like regex.c define
63394         _GNU_SOURCE.
63395
63396 2000-05-06  Jim Meyering  <meyering@lucent.com>
63397
63398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63399         (AC_REPLACE_FUNCS): Add strnlen.
63400
63401         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63402         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63403
63404         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63405         AC_SEARCH_LIBS call for nanosleep.
63406         (LIB_NANOSLEEP): Set and AC_SUBST.
63407
63408 2000-05-06  Jim Meyering  <meyering@lucent.com>
63409
63410         * lib/strnlen.c: Undefine __strnlen and strnlen.
63411         [!weak_alias]: Define __strnlen to strnlen.
63412
63413         * lib/atexit.c: New file, from libiberty.
63414
63415 2000-05-06  Jim Meyering  <meyering@lucent.com>
63416
63417         * lib/closeout.c (close_stdout_status): Also check for errors on the
63418         stderr stream.
63419
63420 2000-05-05  Jim Meyering  <meyering@lucent.com>
63421
63422         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63423         AC_SEARCH_LIBS call for clock_gettime.
63424         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63425
63426         * m4/search-libs.m4: Update from autoconf.
63427
63428         su doesn't work on Solaris 2.6.
63429         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63430         <shadow.h>.  Reported by Dragos Harabor.
63431
63432 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63433
63434         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63435         memcpy instead of xmalloc, xrealloc, path_concat.
63436         (locale_charset): Treat empty environment variables as absent.
63437         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63438
63439 2000-05-04  Jim Meyering  <meyering@lucent.com>
63440
63441         * lib/getopt.c: Update from glibc.
63442         * lib/obstack.c: Likewise.
63443         * lib/obstack.h: Likewise.
63444         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63445         file
63446
63447         * lib/regex.h: Likewise.
63448         * lib/strndup.c: Likewise.
63449         * lib/strnlen.c: New file, from glibc.
63450
63451 2000-05-03  Jim Meyering  <meyering@lucent.com>
63452
63453         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63454
63455 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63456
63457         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63458         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63459         compile-time test, rather than inspecting host and OS, to
63460         decide whether to define _LARGEFILE_SOURCE.
63461
63462 2000-05-01  Jim Meyering  <meyering@lucent.com>
63463
63464         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63465
63466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63467         Based on a patch from Bruno Haible.
63468
63469 2000-05-01  Jim Meyering  <meyering@lucent.com>
63470
63471         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63472
63473 2000-04-29  Jim Meyering  <meyering@lucent.com>
63474
63475         * lib/path-concat.c: Declare strdup only if it's not defined.
63476         * lib/canon-host.c: Likewise.
63477
63478 2000-04-28  Jim Meyering  <meyering@lucent.com>
63479
63480         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63481         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63482         is included first, then limits.h is included by locale.h by libintl.h.
63483         From John David Anglin.
63484
63485 2000-04-25  Jim Meyering  <meyering@lucent.com>
63486
63487         * lib/makepath.c (S_IRWXUGO): Define.
63488         (make_path): Always perform explicit chmod if MODE specifies any
63489         of the `special' permission bits.  Prompted by a bug report against
63490         install from Mate Wierdl and Joost van Baal.
63491
63492 2000-04-18  Jim Meyering  <meyering@lucent.com>
63493
63494         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63495         (jm_PREREQ): Use it.
63496
63497 2000-04-18  Jim Meyering  <meyering@lucent.com>
63498
63499         * lib/README: New file.
63500
63501         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63502         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63503
63504 2000-04-17  Jim Meyering  <meyering@lucent.com>
63505
63506         Get it right :-)
63507         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63508         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63509         Suggestion from Akim Demaille.
63510
63511 2000-04-17  Jim Meyering  <meyering@lucent.com>
63512
63513         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63514         the definition of it to rpl_strftime also defined-away the system's
63515         declaration.
63516
63517 2000-04-15  Jim Meyering  <meyering@lucent.com>
63518
63519         Use `C' to denote so-called `contiguous' files, the same way
63520         that tar does.
63521         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63522         (ftypelet): Use S_ISCTG.
63523         From Michael Deutschmann.
63524
63525 2000-04-14  Jim Meyering  <meyering@lucent.com>
63526
63527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63528         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63529         clobbered.
63530
63531 2000-04-14  Jim Meyering  <meyering@lucent.com>
63532
63533         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63534
63535 2000-04-13  Jim Meyering  <meyering@lucent.com>
63536
63537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63538         AH_VERBATIM to insert required #ifndef into config.h.in.
63539         Suggestion from Akim Demaille.
63540
63541 2000-04-12  Jim Meyering  <meyering@lucent.com>
63542
63543         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63544         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63545         Christian Krackowizer.
63546
63547         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63548         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63549         (AC_SYS_LARGEFILE): Require.
63550         (AM_C_PROTOTYPES): Require.
63551
63552 2000-04-08  Jim Meyering  <meyering@lucent.com>
63553
63554         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63555         names don't conflict.  Reported by Eli Zaretskii.
63556
63557 2000-04-07  Jim Meyering  <meyering@lucent.com>
63558
63559         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63560         sys/types.h, to work around system header problems on AIX 3.2.5.
63561         From Bruno Haible.
63562
63563 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63564
63565         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63566         bug.  Deal with the different error behavior of Irix iconv.
63567
63568 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63569
63570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63571         IRIX if the installer said otherwise.
63572
63573 2000-04-05  Jim Meyering  <meyering@lucent.com>
63574
63575         Portability tweaks required for ultrix4.3.
63576         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63577         (jm_CHECK_DECLS): Add getutent to the list of functions.
63578         (_jm_DECL_HEADERS): Add utmpx.h.
63579         From John David Anglin.
63580
63581         * m4/strftime.m4: Back out the 2000-04-02 change.
63582         Instead of that change, simply undefine putenv in the test program.
63583
63584 2000-04-05  Jim Meyering  <meyering@lucent.com>
63585
63586         Portability tweaks required for ultrix4.3.
63587         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63588         getutent.
63589         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63590         * lib/canon-host.c: Declare strdup.
63591         * lib/path-concat.c: Likewise.
63592         From John David Anglin.
63593
63594 2000-04-04  Jim Meyering  <meyering@lucent.com>
63595
63596         Be more DOS 8.3-friendly.
63597         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63598         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63599         * lib/Makefile.am: Reflect renaming.
63600         Reported by Eli Zaretskii.
63601
63602         Use a temporary file name that won't clash with `charset.alias'
63603         in the DOS 8.3 name space.
63604         * lib/Makefile.am (charset_tmp): Define.
63605         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63606         (uninstall-local): Likewise.
63607         Reported by Eli Zaretskii.
63608
63609 2000-04-03  Jim Meyering  <meyering@lucent.com>
63610
63611         * m4/gettext.m4: Fix typo in comment.
63612
63613         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63614         textutils/configure.in).  Suggestion from Paul Eggert.
63615         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63616
63617 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63618
63619         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63620         variable in the shell rather than using putenv, which isn't
63621         portable.  This avoids the configure-time inter-test dependency
63622         on the potentially-renamed putenv function.
63623
63624 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63625
63626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63627         before checking struct stat.st_blksize, so that
63628         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63629
63630 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63631
63632         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63633         since strftime.c uses HAVE_STRFTIME to decide whether to use
63634         the underlying strftime.
63635
63636 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63637
63638         * lib/time/strftime.c (my_strftime): Make sure we call the system
63639         strftime, not ourselves, when invoking the underlying strftime.
63640
63641 2000-03-24  Jim Meyering  <meyering@lucent.com>
63642
63643         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63644         (charset_alias): Define.
63645         (install-exec-local): Factor out common code.
63646         (uninstall-local): Split lines longer than 80.
63647         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63648         (SUFFIXES): Define.
63649         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63650         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63651
63652 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63653
63654         * lib/config.charset: Output a line containing "Packages using this
63655         file".
63656         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63657         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63658         ref-del.sed): New rules.
63659
63660 2000-03-17  Jim Meyering  <meyering@lucent.com>
63661
63662         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63663         Otherwise, include <strings.h>
63664
63665 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63666
63667         * lib/unicodeio.c (utf8_wctomb): New function.
63668         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63669         format instead of in UCS-4 with platform dependent endianness.
63670
63671 2000-03-10  Jim Meyering  <meyering@lucent.com>
63672
63673         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63674         From Marco Franzen.
63675
63676 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63677
63678         * lib/savedir.c (savedir): Work even if directory size is
63679         negative; this can happen with some screwy NFS configurations.
63680
63681 2000-03-06  Jim Meyering  <meyering@lucent.com>
63682
63683         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63684         if it's NULL (because we ran out of memory).  From Bruno Haible.
63685
63686 2000-03-05  Jim Meyering  <meyering@lucent.com>
63687
63688         * lib/localcharset.c ("path-concat.h"): Include.
63689         (get_charset_aliases): Use path_concat instead of ANSI string
63690         concatenation.
63691
63692         * lib/unicodeio.h (PARAMS): Define.
63693         Use it to guard prototype.
63694
63695 2000-03-04  Jim Meyering  <meyering@lucent.com>
63696
63697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63698         for lib/localcharset.c.
63699
63700 2000-03-04  Jim Meyering  <meyering@lucent.com>
63701
63702         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63703         installing into it.
63704         (uninstall-local): Uncomment this rule so `make distcheck' works
63705         once again.
63706
63707         * lib/unicodeio.c (<errno.h>): Include it.
63708         (errno): Declare if not defined.
63709
63710         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63711
63712         * lib/config.charset: New version, incorporating remarks from a linux
63713         i18n mailing list.  From Bruno Haible.
63714
63715 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63716
63717         * m4/codeset.m4: New file.
63718         * m4/iconv.m4: New file.
63719         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63720
63721 2000-03-03  Jim Meyering  <meyering@lucent.com>
63722
63723         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63724
63725 2000-03-02  Jim Meyering  <meyering@lucent.com>
63726
63727         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63728         the messages come out on separate lines.
63729
63730         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63731         rather than jm_CHECK_DECLARATIONS.
63732         * m4/decl.m4: Remove now-unused file.
63733
63734         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63735         geteuid.
63736
63737 2000-03-02  Jim Meyering  <meyering@lucent.com>
63738
63739         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63740
63741 2000-03-01  Jim Meyering  <meyering@lucent.com>
63742
63743         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63744         * lib/unicodeio.c: Likewise.
63745
63746 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63747
63748         * lib/config.charset: New file.
63749         * lib/localcharset.c: New file.
63750         * lib/unicodeio.h, lib/unicodeio.c: New files.
63751         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63752         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63753         (noinst_HEADERS): Add unicodeio.h.
63754         (all-local, install-exec-local, charset.alias): New targets.
63755
63756 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63757
63758         * lib/quotearg.c (ALERT_CHAR): New macro.
63759         (quotearg_buffer_restyled): Use it.
63760
63761 2000-02-27  Jim Meyering  <meyering@lucent.com>
63762
63763         * m4/check-decl.m4: Add getenv to the list.
63764
63765 2000-02-27  Jim Meyering  <meyering@lucent.com>
63766
63767         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63768         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63769
63770         * lib/backupfile.c: Guard inclusion of stdlib.h with
63771         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63772         Declare malloc if needed.
63773
63774         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63775         `#ifndef HAVE_DECL..'
63776         now that autoconf always defines the HAVE_DECL_ symbols.
63777         * lib/human.c: Likewise.
63778         * lib/same.c: Likewise.
63779         * lib/strtoumax.c: Likewise.
63780
63781         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63782         declaration check was not run.
63783         * lib/hash.c: Likewise.
63784         * lib/human.c: Likewise.
63785         * lib/same.c: Likewise.
63786         * lib/strtoumax.c: Likewise.
63787
63788         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63789         `.', then first look up the entire `.'-containing string as a login
63790         name.
63791
63792 2000-02-23  Jim Meyering  <meyering@lucent.com>
63793
63794         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63795         in place of my hack.
63796
63797 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63798
63799         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63800         (textint): New typedef.
63801         (parser_control): Member year changed from int to textint.
63802         All uses changed.
63803         (YYSTYPE): Removed; replaced by %union with int and textint members.
63804         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63805         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63806         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63807         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63808         (date, number, to_year): Use width of number in digits, not its value,
63809         to determine whether it's a 2-digit year, or a 2-digit time.
63810         (yylex): Store number of digits of numeric tokens.
63811         Reported by John Kendall.
63812
63813         (parser_control): Changed from struct parser_control to typedef (for
63814         consistency).  All uses changed.
63815
63816         (tID): Removed; not used.
63817         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63818
63819 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63820
63821         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63822         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63823
63824 2000-02-12  Jim Meyering  <meyering@lucent.com>
63825
63826         * lib/userspec.c (ISDIGIT): Define it.
63827         (isdigit): Remove definition.
63828         (is_number): Use ISDIGIT, not isdigit.
63829         <libintl.h>: Include.
63830         (_ and N_): Define.
63831         (parse_user_spec): Mark translatable strings.
63832
63833 2000-02-10  Jim Meyering  <meyering@lucent.com>
63834
63835         With these changes, nanosleep.[ch] are finally enough like the other
63836         lib/* replacement files to compile on a few more losing systems.
63837
63838         * lib/nanosleep.h: Don't include config.h.
63839         Remove prototype from declaration of nanosleep.
63840         (PARAMS): Remove now-unneeded definition.
63841         * lib/nanosleep.c: #undef nanosleep.
63842         (rpl_nanosleep): Rename from nanosleep.
63843
63844 2000-02-10  Jim Meyering  <meyering@lucent.com>
63845
63846         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63847         gnu_nanosleep to rpl_nanosleep.
63848
63849 2000-02-09  Jim Meyering  <meyering@lucent.com>
63850
63851         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63852         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63853
63854 2000-02-08  Akim Demaille  <akim@epita.fr>
63855
63856         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63857         `[' and `]' and remove uses of `changequote'.
63858         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63859         (AC_SYS_LARGEFILE): Likewise.
63860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63861         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63862         of changequote.
63863         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63864         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63865         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63866         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63867
63868 2000-02-05  Jim Meyering  <meyering@lucent.com>
63869
63870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63871         Remove explicit use of AC_HEADER_TIME.  It is required by
63872         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63873         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63874         in autoconf whereby the expansion of the latter ended up preceding
63875         the expansion of its prerequisite, AC_HEADER_TIME.
63876         Reported by Volker Borchert.
63877
63878 2000-02-03  Jim Meyering  <meyering@lucent.com>
63879
63880         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63881
63882 2000-02-03  Jim Meyering  <meyering@lucent.com>
63883
63884         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63885         rather than with `#if HAVE_UTMPNAME'.
63886
63887 2000-02-02  Jim Meyering  <meyering@lucent.com>
63888
63889         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63890         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63891         Reported by Eli Zaretskii.
63892
63893 2000-02-01  Jim Meyering  <meyering@lucent.com>
63894
63895         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63896
63897 2000-01-31  Jim Meyering  <meyering@lucent.com>
63898
63899         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63900         functions.  Add the time.h and sys/time.h headers along with the
63901         AC_REQUIRE'ment of AC_HEADER_TIME.
63902
63903 2000-01-31  Jim Meyering  <meyering@lucent.com>
63904
63905         * lib/nanosleep.h (nanosleep): Guard declaration with
63906         `#if ! HAVE_DECL_NANOSLEEP'.
63907         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63908         the declaration in that vendor's sys/timers.h.
63909         Reported by Christian Krackowizer.
63910
63911         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63912         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63913         (ISPRINT): Likewise.
63914         Reported by Tom Tromey.
63915
63916 2000-01-30  Jim Meyering  <meyering@lucent.com>
63917
63918         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63919
63920         * m4/prereq.m4 (utmp_includes): Define.
63921         Check for ut_user and ut_name members in both struct utmpx
63922         and struct utmp.
63923
63924 2000-01-30  Jim Meyering  <meyering@lucent.com>
63925
63926         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63927         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63928         header files where only utmpx.ut_user is declared.
63929
63930         * lib/readutmp.h (UT_USER): Define.
63931
63932 2000-01-29  Jim Meyering  <meyering@lucent.com>
63933
63934         * m4/lib-check.m4: New file containing library-related checks from
63935         fileutils and sh-utils (textutils had none).
63936
63937 2000-01-28  Jim Meyering  <meyering@lucent.com>
63938
63939         * m4/perl.m4: Change format of warning message to look more like that
63940         from the missing script.  Suggestion from François Pinard.
63941
63942 2000-01-25  Jim Meyering  <meyering@lucent.com>
63943
63944         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63945         well as time.h in the compile check.
63946         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63947         Fix typo in cross-compiling case: s/yes/no/.
63948
63949 2000-01-23  Jim Meyering  <meyering@lucent.com>
63950
63951         * m4/jm-macros.m4: Move df-related tests here from
63952         fileutils/configure.in
63953
63954         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63955         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63956
63957         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63958         s/space/ac_fsusage_space/.
63959         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63960
63961         * m4/ftruncate.m4: New file (derived from part of
63962         fileutils/configure.in).
63963         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63964         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63965
63966         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63967         AC_SUBST these here, rather than just in sh-util/configure.in, so
63968         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63969         all the same.
63970         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63971         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63972         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63973         (AC_SUBST(POW_LIBM)): Likewise.
63974         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63975
63976 2000-01-23  Jim Meyering  <meyering@lucent.com>
63977
63978         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63979         obstack.c.
63980
63981 2000-01-22  Jim Meyering  <meyering@lucent.com>
63982
63983         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63984
63985         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63986
63987         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63988         configure.in
63989         (AC_CHECK_HEADERS): Likewise for sh-utils.
63990         (AC_CHECK_HEADERS): Likewise for textutils.
63991         Merge the three lists of headers.
63992
63993         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63994         from fileutils' configure.in.
63995
63996         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63997         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63998         check-decl.m4.
63999
64000         * m4/check-decl.m4: Use #if rather than #ifdef.
64001         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64002         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64003         (_jm_DECL_HEADERS): Define new function.
64004         (jm_CHECK_DECLARATIONS): Require it.
64005
64006 2000-01-22  Jim Meyering  <meyering@lucent.com>
64007
64008         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64009         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64010         Required for some AIX systems.  Reported by Christian Krackowizer.
64011         [TESTING] (main): New function.
64012
64013         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64014         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64015         letters.
64016
64017         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64018         iswprint.
64019
64020         * lib/strverscmp.c (ISDIGIT): Define.
64021         (strverscmp): Use ISDIGIT, not isdigit.
64022
64023 2000-01-19  Jim Meyering  <meyering@lucent.com>
64024
64025         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64026         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64027         defines `struct timespec' in <sys/time.h>
64028
64029         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64030         Thanks to Akim for explaining.
64031
64032 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64033
64034         * lib/nanosleep.c (nanosleep):
64035         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64036         POSIX.1 doesn't require SA_INTERRUPT and some systems
64037         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64038         it's been part of POSIX.1 since day 1 (in 1988).
64039
64040 2000-01-17  Jim Meyering  <meyering@lucent.com>
64041
64042         * lib/interlock: Remove unused file.  Reported by François Pinard.
64043
64044 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64045
64046         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64047         alert, backslash, formfeed, and vertical tab unnecessarily in
64048         shell quoting style.
64049
64050 2000-01-16  Jim Meyering  <meyering@lucent.com>
64051
64052         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64053         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64054         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64055         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64056
64057 2000-01-16  Jim Meyering  <meyering@lucent.com>
64058
64059         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64060         because the latter didn't work.
64061
64062 2000-01-15  Jim Meyering  <meyering@lucent.com>
64063
64064         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64065         (AC_REPLACE_FUNCS): Add memcpy and memset.
64066         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64067         Add strpbrk.
64068         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64069
64070 2000-01-12  Jim Meyering  <meyering@lucent.com>
64071
64072         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64073         (jm_PREREQ): Use it.
64074         (jm_PREREQ_READUTMP): New macro.
64075         (jm_PREREQ): Use it.
64076
64077 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64078
64079         Quote multibyte characters correctly.
64080         * m4/c-bs-a.m4: New file.
64081         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64082         (jm_PREREQ): Use it.
64083
64084 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64085
64086         * m4/uintmax_t.m4: Port to autoconf 2.13.
64087
64088 2000-01-08  Jim Meyering  <meyering@ascend.com>
64089
64090         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64091         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64092
64093 2000-01-04  Jim Meyering  <meyering@ascend.com>
64094
64095         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64096         jm_STRUCT_DIRENT_D_TYPE.
64097         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64098         jm_STRUCT_DIRENT_D_INO.
64099         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64100         jm_STRUCT_UTIMBUF.
64101         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64102         renamings.
64103         * m4/utime.m4: Likewise.
64104
64105         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64106         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64107
64108 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64109
64110         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64111         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64112
64113 2000-01-02  Jim Meyering  <meyering@ascend.com>
64114
64115         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64116         remember if this is necessary.
64117
64118 1999-12-26  Jim Meyering  <meyering@ascend.com>
64119
64120         * m4/jm-macros.m4: Use it here.
64121         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64122
64123 1999-12-23  Jim Meyering  <meyering@ascend.com>
64124
64125         * m4/jm-macros.m4: Check for clock_gettime (moved from
64126         fileutils/configure.in)
64127         Check for gettimeofday.
64128
64129 1999-12-20  Jim Meyering  <meyering@ascend.com>
64130
64131         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64132         autoconf-2.14a-1999-12-20.
64133
64134 1999-12-19  Jim Meyering  <meyering@ascend.com>
64135
64136         * m4/lstat-slash.m4: New file.
64137         * m4/jm-macros.m4: Use the new macro:
64138         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64139
64140 1999-12-07  Jim Meyering  <meyering@ascend.com>
64141
64142         * m4/perl.m4: Require that File::Compare be available, too.
64143         Too many systems seem to lack it.
64144
64145         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64146         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64147
64148 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64149
64150         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64151         problem with the QNX 4.25 shell, which doesn't propagate exit
64152         status of failed commands inside shell assignments.
64153
64154 1999-11-17  Jim Meyering  <meyering@ascend.com>
64155
64156         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64157
64158 1999-11-07  Jim Meyering  <meyering@ascend.com>
64159
64160         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64161
64162 1999-11-06  Jim Meyering  <meyering@ascend.com>
64163
64164         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64165         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64166
64167 1999-11-05  Jim Meyering  <meyering@ascend.com>
64168
64169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64170         configure.in of textutils, fileutils, and sh-utils into this one
64171         (shared between those packages) file.
64172         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64173         AC_STRUCT_ST_BLKSIZE.
64174
64175 1999-11-03  Jim Meyering  <meyering@ascend.com>
64176
64177         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64178         of AC_CHECK_TYPE checks includes unistd.h.
64179         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64180         Suggestion from Akim Demaille.
64181
64182 1999-10-30  Jim Meyering  <meyering@ascend.com>
64183
64184         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64185         m4-quoted string.
64186         * m4/ls-mntd-fs.m4: Likewise.
64187         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64188         * m4/jm-winsz1.m4: Likewise.
64189
64190         * m4/const.m4: Remove file, since the fix made it into the experimental
64191         version of autoconf.
64192         * m4/mktime.m4: Likewise.
64193
64194         * m4/check-type.m4: Remove file, now that the latest version of
64195         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64196
64197         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64198         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64199         AC_CHECK_TYPE.
64200
64201 1999-10-04  Jim Meyering  <meyering@ascend.com>
64202
64203         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64204
64205 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64206
64207         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64208         2.95.1 bug with HP-UX 10.20.
64209
64210 1999-09-17  Jim Meyering  <meyering@ascend.com>
64211
64212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64213         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64214         due to missing strdup (against sh-utils-2.0).
64215
64216 1999-08-29  Jim Meyering  <meyering@ascend.com>
64217
64218         * m4/jm-macros.m4: Require jm_BISON.
64219         * m4/bison.m4: New file.
64220
64221 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64222
64223         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64224         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64225
64226 1999-08-05  Jim Meyering  <meyering@ascend.com>
64227
64228         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64229         to avoid conflicts with `conftest' on 8+3 filesystems.
64230         Suggestion from Eli Zaretskii.
64231
64232 1999-08-04  Jim Meyering  <meyering@ascend.com>
64233
64234         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64235         fileutils and sh-utils (textutils's getline test was inadequate).
64236         (AM_FUNC_GETLINE): Run this test.
64237         (AC_CHECK_FUNCS): Check for getdelim.
64238         Reported by Bob Proulx.
64239
64240 1999-08-02  Jim Meyering  <meyering@ascend.com>
64241
64242         * m4/jm-macros.m4: Add a comment.
64243
64244 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64245
64246         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64247         <inttypes.h> defines strtoumax as a macro (and not as a
64248         function).
64249
64250 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64251
64252         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64253         that we can shift, multiply and divide unsigned long long
64254         values; Ultrix cc can't do it.
64255
64256 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64257
64258         * m4/mktime.m4: New file, which is a preview of what should appear
64259         in the next public autoconf release.
64260
64261 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64262
64263         * m4/lfs.m4: Remove this file.
64264         * m4/largefile.m4: New file.  It contains the old contents of
64265         lfs.m4, except that all names with prefix AC_LFS have been
64266         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64267         compatible with future autoconf versions.  Also, some minor m4
64268         quoting problems have been fixed.
64269
64270 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64271
64272         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64273         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64274         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64275         and simplify the shell code.
64276
64277 1999-08-01  Jim Meyering  <meyering@ascend.com>
64278
64279         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64280         m4.
64281
64282 1999-07-20  Jim Meyering  <meyering@ascend.com>
64283
64284         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64285
64286 1999-07-15  Jim Meyering  <meyering@ascend.com>
64287
64288         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64289
64290 1999-05-22  Jim Meyering  <meyering@ascend.com>
64291
64292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64293
64294 1999-05-20  Jim Meyering  <meyering@ascend.com>
64295
64296         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64297         Add a colon after each `then' in case $4 is empty.
64298
64299 1999-05-16  Jim Meyering  <meyering@ascend.com>
64300
64301         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64302
64303 1999-05-10  Jim Meyering  <meyering@ascend.com>
64304
64305         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64306
64307         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64308         AC_FUNC_MKTIME.
64309
64310 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64311
64312         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64313
64314 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64315
64316         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64317         not CPPFLAGS, so that linking works correctly in IRIX.
64318
64319 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64320
64321         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64322
64323 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64324
64325         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64326         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64328         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64329         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64330
64331         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64332
64333 1999-04-20  Jim Meyering  <meyering@ascend.com>
64334
64335         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64336         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64337         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64338
64339 1999-04-18  Jim Meyering  <meyering@ascend.com>
64340
64341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64342         * m4/jm-macros.m4: Use it.
64343
64344 1999-04-06  Jim Meyering  <meyering@ascend.com>
64345
64346         * m4/strftime.m4: Remove test for %f.
64347
64348 1999-03-29  Jim Meyering  <meyering@ascend.com>
64349
64350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64351         superset of the AC_TYPE_* checks in the textutils, fileutils,
64352         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64353         AC_TYPE_PID_T.
64354
64355 1999-03-28  Jim Meyering  <meyering@ascend.com>
64356
64357         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64358         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64359         replaced e.g., in the *.sh files of the sh-utils.
64360
64361 1999-03-20  Jim Meyering  <meyering@ascend.com>
64362
64363         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64364         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64365         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64366
64367 1999-03-19  Jim Meyering  <meyering@ascend.com>
64368
64369         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64370
64371 1999-03-12  Jim Meyering  <meyering@ascend.com>
64372
64373         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64374
64375 1999-03-07  Jim Meyering  <meyering@ascend.com>
64376
64377         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64378         declared.
64379
64380 1999-02-17  Jim Meyering  <meyering@ascend.com>
64381
64382         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64383         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64384
64385 1999-02-07  Jim Meyering  <meyering@ascend.com>
64386
64387         * m4/group-member.m4: New file -- extracted from sh-utils'
64388         configure.in.
64389
64390         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64391         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64392
64393 1999-02-06  Jim Meyering  <meyering@ascend.com>
64394
64395         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64396         * m4/fnmatch.m4: Likewise.
64397         * m4/getgroups.m4: Likewise.
64398         * m4/lstat.m4: Likewise.
64399         * m4/malloc.m4: Likewise.
64400         * m4/putenv.m4: Likewise.
64401         * m4/realloc.m4: Likewise.
64402         * m4/regex.m4: Likewise.
64403         * m4/stat.m4: Likewise.
64404         * m4/strftime.m4: Likewise.
64405         Suggestion from Alain Magloire.
64406
64407         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64408         * m4/fnmatch.m4: Likewise.
64409         * m4/getgroups.m4: Likewise.
64410         * m4/getline.m4: Likewise.
64411         * m4/lstat.m4: Likewise.
64412         * m4/malloc.m4: Likewise.
64413         * m4/memcmp.m4: Likewise.
64414         * m4/putenv.m4: Likewise.
64415         * m4/realloc.m4: Likewise.
64416         * m4/regex.m4: Likewise.
64417         * m4/stat.m4: Likewise.
64418         * m4/strftime.m4: Likewise.
64419         Suggestion from Alain Magloire.
64420
64421         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64422         an argument.
64423
64424         * m4/regex.m4: Add a run-time Test for proper operation of
64425         re_compile_pattern.
64426
64427 1999-01-31  Jim Meyering  <meyering@ascend.com>
64428
64429         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64430
64431 1999-01-30  Jim Meyering  <meyering@ascend.com>
64432
64433         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64434
64435         * m4/jm-mktime.m4: Make this a wrapper around the official
64436         AM_FUNC_MKTIME rather than my private copy, now that the official one
64437         is up to date.
64438         * m4/mktime.m4: Remove file.
64439
64440         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64441         * m4/uptime.m4: Likewise.
64442         * m4/uintmax_t.m4: Likewise.
64443
64444 1999-01-28  Jim Meyering  <meyering@ascend.com>
64445
64446         * m4/jm-macros.m4: Use jm_AFS.
64447         * m4/afs.m4: New file (from fileutils' configure.in).
64448
64449         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64450         * m4/chown.m4: Likewise.
64451         * m4/d-ino.m4: Likewise.
64452         * m4/d-type.m4: Likewise.
64453         * m4/fnmatch.m4: Likewise.
64454         * m4/getgroups.m4: Likewise.
64455         * m4/gettext.m4: Likewise.
64456         * m4/jm-mktime.m4: Likewise.
64457         * m4/jm-winsz2.m4: Likewise.
64458         * m4/lcmessage.m4: Likewise.
64459         * m4/ls-mntd-fs.m4: Likewise.
64460         * m4/malloc.m4: Likewise.
64461         * m4/memcmp.m4: Likewise.
64462         * m4/putenv.m4: Likewise.
64463         * m4/realloc.m4: Likewise.
64464         * m4/st_mtim.m4: Likewise.
64465         * m4/strftime.m4: Likewise.
64466
64467 1999-01-16  Jim Meyering  <meyering@ascend.com>
64468
64469         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64470         (ARGMATCH_DIE_DECL): Define.
64471
64472 1999-01-12  Jim Meyering  <meyering@ascend.com>
64473
64474         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64475         Reported by Lars Hecking.
64476
64477 1999-01-10  Jim Meyering  <meyering@ascend.com>
64478
64479         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64480         gross kludge.
64481         * m4/inttypes_h.m4: Likewise.
64482         * m4/lstat.m4: Likewise.
64483         * m4/malloc.m4: Likewise.
64484         * m4/readdir.m4: Likewise.
64485         * m4/realloc.m4: Likewise.
64486         * m4/st_dm_mode.m4: Likewise.
64487         * m4/stat.m4: Likewise.
64488         * m4/utimbuf.m4: Likewise.
64489         * m4/utimes.m4: Likewise.
64490
64491         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64492         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64493         comments in config.h.in are meaningful.
64494
64495         * m4/jm-macros.m4: Require autoconf-2.13 here.
64496
64497         * m4/regex.m4: By default, don't use the included regex.c on systems
64498         with glibc 2.  Suggestion from Uli Drepper.
64499
64500 1999-01-02  Jim Meyering  <meyering@ascend.com>
64501
64502         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64503
64504 1998-12-18  Jim Meyering  <meyering@ascend.com>
64505
64506         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64507         Based on a suggestion from Lars Hecking.
64508
64509 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64510
64511         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64512
64513 1998-11-16  Jim Meyering  <meyering@ascend.com>
64514
64515         * m4/lfs.m4: Double-quote the `uname...` expression.
64516
64517 1998-11-14  Jim Meyering  <meyering@ascend.com>
64518
64519         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64520         * m4/stat.m4: Likewise.
64521
64522 1998-11-03  Jim Meyering  <meyering@ascend.com>
64523
64524         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64525         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64526
64527 1998-10-18  Jim Meyering  <meyering@ascend.com>
64528
64529         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64530
64531 1998-10-17  Jim Meyering  <meyering@ascend.com>
64532
64533         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64534         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64535         calls for those previously hard-coded headers.  Instead, take a new
64536         parameter.
64537         (jm_CHECK_DECLARATIONS): Reflect interface change.
64538         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64539         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64540
64541         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64542
64543 1998-10-14  Jim Meyering  <meyering@ascend.com>
64544
64545         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64546         instead of "TZ=America/Vancouver".  From Paul Eggert.
64547
64548 1998-10-11  Jim Meyering  <meyering@ascend.com>
64549
64550         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64551         This adds a test for a recently added compatibility fix for mktime.c.
64552         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64553
64554 1998-09-27  Jim Meyering  <meyering@ascend.com>
64555
64556         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64557
64558         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64559         ../configure.in, including a change from Gordon Matzigkeit to allow
64560         cross-compiling for the Hurd.
64561
64562         * m4/glibc.m4: New file/macro to test for the GNU C Library
64563         versions 1 and 2.  From Gordon Matzigkeit.
64564         Indent.
64565
64566 1998-09-21  Jim Meyering  <meyering@ascend.com>
64567
64568         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64569
64570 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64571
64572         Port nanosecond-resolution times to UnixWare 2.1.2 and
64573         pedantic Solaris 2.6.
64574
64575         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64576         AC_STRUCT_ST_MTIM.
64577         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64578         Generate name of ns member, instead of just 1 or undef.
64579         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64580
64581 1998-08-15  Jim Meyering  <meyering@ascend.com>
64582
64583         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64584         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64585         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64586         instead of jm_TYPE_SSIZE_T.
64587
64588 1998-08-12  Jim Meyering  <meyering@ascend.com>
64589
64590         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64591
64592 1998-08-02  Jim Meyering  <meyering@ascend.com>
64593
64594         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64595         in acconfig.h manually.
64596
64597 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64598
64599         * m4/st_mtim.m4: New file.
64600
64601 1998-07-28  Jim Meyering  <meyering@ascend.com>
64602
64603         * m4/utimes.m4: Undef stat.
64604
64605 1998-07-25  Jim Meyering  <meyering@ascend.com>
64606
64607         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64608         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64609
64610 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64611
64612         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64613         uid and gid actually remain unchanged.
64614
64615 1998-07-07  Jim Meyering  <meyering@ascend.com>
64616
64617         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64618
64619 1998-07-04  Jim Meyering  <meyering@ascend.com>
64620
64621         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64622         to prove that this macro can be used in packages without regex.c.
64623
64624 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64625
64626         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64627         is to be used.
64628
64629 1998-07-03  Jim Meyering  <meyering@ascend.com>
64630
64631         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64632
64633         * m4/gettext.m4: New file -- from gettext-0.10.35.
64634         * m4/lcmessage.m4: Likewise.
64635         * m4/progtest.m4: Likewise.
64636
64637         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64638         * m4/jm-macros.m4: Require the new macro.
64639
64640 1998-06-29  Jim Meyering  <meyering@ascend.com>
64641
64642         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64643         for the definition of NGROUPS (used in a system header included
64644         by sys/mount.h).
64645
64646 1998-06-28  Jim Meyering  <meyering@ascend.com>
64647
64648         * m4/ls-mntd-fs.m4: New file.
64649         * m4/fstypename.m4: New file.
64650
64651         * m4/jm-macros.m4: Require the new macro.
64652         * m4/jm-glibc-io.m4: New file.
64653
64654 1998-05-19  Jim Meyering  <meyering@ascend.com>
64655
64656         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64657         * m4/lchown.m4: New file.
64658
64659         * m4/Makefile.am.in: New file.
64660         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64661
64662 1998-05-14  Jim Meyering  <meyering@ascend.com>
64663
64664         * m4/Makefile.am (EXTRA_DIST): Add them.
64665         * m4/jm-macros.m4: New file.
64666         * m4/utimbuf.m4: New file.
64667
64668 1998-05-12  Jim Meyering  <meyering@ascend.com>
64669
64670         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64671
64672 1998-05-11  Jim Meyering  <meyering@ascend.com>
64673
64674         * m4/isc-posix.m4: New file.
64675
64676 1998-05-10  Jim Meyering  <meyering@ascend.com>
64677
64678         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64679
64680 1998-05-09  Jim Meyering  <meyering@ascend.com>
64681
64682         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64683         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64684         with automake.
64685
64686         * m4/ssize_t.m4: New file.
64687         * m4/mktime.m4: Remove file -- the new automake has this now.
64688
64689 1998-04-26  Jim Meyering  <meyering@ascend.com>
64690
64691         * m4/assert.m4: New file.
64692         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64693
64694 1998-04-05  Jim Meyering  <meyering@ascend.com>
64695
64696         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64697         (jm_PREREQ): Use it here.
64698
64699 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64700
64701         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64702         in acconfig.h.
64703
64704 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64705
64706         * m4/prereq.m4: New file.
64707         * m4/error.m4: New file.
64708         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64709
64710 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64711
64712         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64713         cache-check for the same variable -- that defeated the purpose of
64714         the test; the test program was never run.  This was a problem only
64715         on systems with losing getline functions -- HP-UX 10.20 is one.
64716         Reported by Bjorn Helgaas.
64717
64718 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64719
64720         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64721
64722 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64723
64724         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64725
64726         * m4/const.m4: New file.  Use an initializer in this declaration
64727         typedef int charset[2]; const charset x;
64728         Reported by Bob Glickstein.
64729
64730 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64731
64732         * m4/chown.m4: Fix reversed types on -1 args to chown.
64733         From Kaveh Ghazi.
64734
64735 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64736
64737         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64738         Add lseek and memchr.
64739
64740         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64741         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64742         have a 20-character limit on names.
64743
64744 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64745
64746         * m4/inttypes_h.m4: New file.
64747         * m4/uintmax_t.m4: New file.
64748         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64749
64750
64751         -----
64752
64753         Local Variables:
64754         coding: utf-8
64755         End:
64756
64757         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64758
64759         Copying and distribution of this file, with or without
64760         modification, are permitted provided the copyright notice
64761         and this notice are preserved.