3eea2cee15845f08986e70551ca352ed3ad91000
[gnulib.git] / ChangeLog
1 2011-09-20  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'listen'.
4         * modules/listen-tests: New file.
5         * tests/test-listen.c: New file.
6
7         Tests for module 'getsockopt'.
8         * modules/getsockopt-tests: New file.
9         * tests/test-getsockopt.c: New file.
10
11         Tests for module 'getsockname'.
12         * modules/getsockname-tests: New file.
13         * tests/test-getsockname.c: New file.
14
15         Tests for module 'getpeername'.
16         * modules/getpeername-tests: New file.
17         * tests/test-getpeername.c: New file.
18
19         Tests for module 'connect'.
20         * modules/connect-tests: New file.
21         * tests/test-connect.c: New file.
22
23         Tests for module 'bind'.
24         * modules/bind-tests: New file.
25         * tests/test-bind.c: New file.
26
27         accept4 tests: Fix for native Windows.
28         * tests/test-accept4.c: Include sockets.h.
29         (main): Invoke gl_sockets_startup.
30         * modules/accept4-tests (Depends-on): Add sockets.
31
32         accept tests: Fix for native Windows.
33         * tests/test-accept.c: Include sockets.h.
34         (main): Invoke gl_sockets_startup.
35         * modules/accept-tests (Depends-on): Add sockets.
36
37 2011-09-19  Bruno Haible  <bruno@clisp.org>
38
39         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
40         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
41         do...while(0).
42         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
43         Suggested by Paul Eggert.
44
45 2011-09-19  Bruno Haible  <bruno@clisp.org>
46
47         sched: Ensure pid_t is defined.
48         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
49         not define pid_t.
50         * lib/sched.in.h: Include <sys/types.h>.
51         * doc/posix-headers/sched.texi: Mention the pid_t problem.
52         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53
54 2011-09-19  Bruno Haible  <bruno@clisp.org>
55
56         msvc-inval: Ensure the entire expansion is a single statement.
57         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
58         of braces.
59
60 2011-09-19  Jim Meyering  <meyering@redhat.com>
61
62         tests: use printf, not echo in init.sh's warn_ function
63         * tests/init.sh (warn_): Use printf, not echo.  The latter would
64         misbehave when given strings containing a backslash or starting
65         with e.g., -n.  James Youngman suggested setting IFS.
66
67 2011-09-19  Eric Blake  <eblake@redhat.com>
68
69         futimens: enhance test
70         * tests/test-futimens.h (test_futimens): Also check for EBADF on
71         closed non-negative fd.
72
73         date: accept 'hence' as opposite of 'ago'
74         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
75         * tests/test-parse-datetime.c (main): Enhance test.
76         Suggested by Jesse Wilson.
77
78 2011-09-19  Jim Meyering  <meyering@redhat.com>
79
80         getcwd: don't fail in a deep directory on a system without openat
81         Before this change, getcwd would fail when called from a directory
82         of depth PATH_MAX / 3 or greater.  That was due to the fact that
83         the non-openat implementation used "..", "../..", "../../..", etc.
84         to access ancestor directories.  With too many, that string would
85         be longer than PATH_MAX.
86         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
87         using gnulib's openat replacement.
88         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
89         we're using the replacement function.
90
91 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
92
93         maint.mk: avoid warnings from perl about missing files
94         * top/maint.mk (def_sym_regex): Ignore files listed in
95         $(gl_other_headers_) that do not exist, say because a project
96         does not use a corresponding module.
97
98 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
99
100         stat: use pathmax.h only if needed
101         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
102         This is better for Emacs, which does not have a mingw port and
103         therefore can avoid the pathmax module.
104
105         utimens: remove dependency on dup2
106         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
107         to work around the Linux kernel bug.
108         * modules/utimens (Depends-on): Remove dup2.
109
110 2011-09-18  Bruno Haible  <bruno@clisp.org>
111
112         inet_ntop, inet_pton: Look for it also in libresolv.
113         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
114         libnsl, search for it in libresolv.
115         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
116         Needed on Solaris 7.
117
118 2011-09-18  Bruno Haible  <bruno@clisp.org>
119
120         accept, accept4 tests: Avoid link error on Solaris.
121         * modules/accept-tests (Makefile.am): Link test-accept against
122         $(LIBSOCKET).
123         * modules/accept4-tests (Makefile.am): Link test-accept4 against
124         $(LIBSOCKET).
125
126         accept4: Avoid link error on Solaris.
127         * modules/accept4 (Link): New section.
128
129         socket functions: Avoid link errors on Solaris.
130         * modules/accept (Depends-on): Add socketlib.
131         (Link): New section.
132         * modules/bind (Depends-on): Add socketlib.
133         (Link): New section.
134         * modules/connect (Depends-on): Add socketlib.
135         (Link): New section.
136         * modules/getpeername (Depends-on): Add socketlib.
137         (Link): New section.
138         * modules/getsockname (Depends-on): Add socketlib.
139         (Link): New section.
140         * modules/getsockopt (Depends-on): Add socketlib.
141         (Link): New section.
142         * modules/listen (Depends-on): Add socketlib.
143         (Link): New section.
144         * modules/recv (Depends-on): Add socketlib.
145         (Link): New section.
146         * modules/recvfrom (Depends-on): Add socketlib.
147         (Link): New section.
148         * modules/send (Depends-on): Add socketlib.
149         (Link): New section.
150         * modules/sendto (Depends-on): Add socketlib.
151         (Link): New section.
152         * modules/setsockopt (Depends-on): Add socketlib.
153         (Link): New section.
154         * modules/shutdown (Depends-on): Add socketlib.
155         (Link): New section.
156         * modules/socket (Depends-on): Add socketlib.
157         (Link): New section.
158
159 2011-09-18  Bruno Haible  <bruno@clisp.org>
160
161         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
162         * tests/test-ptsname.c (main): Terminate the test if it takes longer
163         than 5 seconds.
164         * modules/ptsname-tests (configure.ac): Test for alarm.
165
166 2011-09-18  Bruno Haible  <bruno@clisp.org>
167
168         posix_spawn_file_actions_add*: Fix module dependencies.
169         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
170         posix_spawn_file_actions_init.
171         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
172         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
173
174 2011-09-18  Bruno Haible  <bruno@clisp.org>
175
176         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
177         * tests/test-rename.h (test_rename): Allow error code EEXIST.
178         * tests/test-renameat.c (main): Likewise.
179
180 2011-09-18  Bruno Haible  <bruno@clisp.org>
181
182         Tests for module 'accept4'.
183         * modules/accept4-tests: New file.
184         * tests/test-accept4.c: New file.
185
186 2011-09-18  Bruno Haible  <bruno@clisp.org>
187
188         Tests for module 'accept'.
189         * modules/accept-tests: New file.
190         * tests/test-accept.c: New file.
191
192 2011-09-18  Bruno Haible  <bruno@clisp.org>
193
194         dup2: Support for MSVC.
195         * lib/dup2.c: Include msvc-inval.h.
196         (rpl_dup2): Handle invalid parameter notifications during dup2 and
197         _get_osfhandle calls.
198         * modules/dup2 (Depends-on): Add msvc-inval.
199         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
200
201         New module 'msvc-inval'.
202         * lib/msvc-inval.h: New file.
203         * lib/msvc-inval.c: New file.
204         * m4/msvc-inval.m4: New file.
205         * modules/msvc-inval: New file.
206
207 2011-09-17  Bruno Haible  <bruno@clisp.org>
208
209         Tests for module 'pclose'.
210         * modules/pclose-tests: New file.
211
212         New module 'pclose'.
213         * lib/stdio.in.h (pclose): New declaration.
214         * lib/pclose.c: New file.
215         * m4/pclose.m4: New file.
216         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
217         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
218         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
219         * modules/pclose: New file.
220         * modules/popen-tests (Depends-on): Add pclose.
221         * modules/popen-safer-tests (Depends-on): Likewise.
222         * doc/posix-functions/pclose.texi: Mention the new module.
223
224 2011-09-17  Bruno Haible  <bruno@clisp.org>
225
226         popen: Support for MSVC.
227         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
228         * lib/popen.c (popen): Provide alternate definition for native Windows.
229         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
231         * modules/popen (Depends-on, configure.ac): Update condition.
232         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
233         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
234         fixed.
235
236 2011-09-17  Bruno Haible  <bruno@clisp.org>
237
238         isnanl, isnand, isnanf: Work around MSVC bug.
239         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
240
241 2011-09-17  Bruno Haible  <bruno@clisp.org>
242
243         sys_socket tests: Fix recent mistake.
244         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
245
246 2011-09-17  Bruno Haible  <bruno@clisp.org>
247
248         putenv: Support for MSVC.
249         * modules/putenv (Depends-on): Add environ.
250         * lib/putenv.c (environ): Disable declaration.
251         * lib/unistd.in.h: Update comment.
252
253 2011-09-17  Bruno Haible  <bruno@clisp.org>
254
255         math: Avoid macro redefinition warnings on MSVC.
256         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
257         Undefine before redefining.
258
259 2011-09-17  Bruno Haible  <bruno@clisp.org>
260
261         doc: Mention functions which are declared as macros.
262         * doc/posix-functions/*[fl].texi: Mention that some functions are
263         defined as macros with arguments only.
264
265 2011-09-17  Bruno Haible  <bruno@clisp.org>
266
267         Add dependencies to new dirent related modules.
268         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
269         * modules/fts (Depends-on): Likewise.
270         * modules/glob (Depends-on): Likewise.
271         * modules/savedir (Depends-on): Likewise.
272         * modules/scandir (Depends-on): Likewise.
273         * modules/dirent-safer (Depends-on): Add opendir, closedir.
274         * modules/fdopendir (Depends-on): Add opendir.
275
276 2011-09-17  Bruno Haible  <bruno@clisp.org>
277
278         inet_pton: Support for MSVC on Windows Vista or newer.
279         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
280         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
281         HAVE_DECL_INET_PTON is defined.
282         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
283         On platforms with <winsock2.h>, test whether inet_pton is declared in
284         <ws2tcpip.h>. If so, arrange to replace it.
285         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
286         REPLACE_INET_PTON.
287         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
288         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
289         (Depends-on, configure.ac): Update condition.
290         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
291
292 2011-09-17  Bruno Haible  <bruno@clisp.org>
293
294         inet_ntop: Support for MSVC on Windows Vista or newer.
295         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
296         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
297         HAVE_DECL_INET_NTOP is defined.
298         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
299         On platforms with <winsock2.h>, test whether inet_ntop is declared in
300         <ws2tcpip.h>. If so, arrange to replace it.
301         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
302         REPLACE_INET_NTOP.
303         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
304         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
305         (Depends-on, configure.ac): Update condition.
306         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
307
308 2011-09-16  Eric Blake  <eblake@redhat.com>
309
310         test-fsync: yet another enhancement
311         * tests/test-fsync.c (main): Also test behavior on read-only text
312         file.
313
314 2011-09-16  Bruno Haible  <bruno@clisp.org>
315
316         Enhance fsync, fdatasync tests.
317         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
318         * tests/test-fdatasync.c (main): Likewise.
319
320 2011-09-16  Bruno Haible  <bruno@clisp.org>
321
322         Support for MSVC compiler: Ensure mode_t gets defined.
323         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
324         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
326         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
327         * tests/test-fcntl-h.c: Check that mode_t is defined.
328         * tests/test-sys_stat.c: Likewise.
329         * tests/test-sys_types.c: Likewise.
330         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
331         * doc/posix-headers/sys_stat.texi: Likewise.
332         * doc/posix-headers/sys_types.texi: Likewise.
333
334 2011-09-16  Bruno Haible  <bruno@clisp.org>
335
336         sys_stat: Support for MSVC.
337         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
338         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
339         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
340         MSVC.
341
342 2011-09-16  Bruno Haible  <bruno@clisp.org>
343
344         Support for MSVC compiler: Ensure off_t gets defined.
345         * lib/unistd.in.h: Include <sys/types.h>.
346         * tests/test-fcntl-h.c: Check that off_t is defined.
347         * tests/test-sys_stat.c: Likewise.
348         * tests/test-sys_types.c: Likewise.
349
350 2011-09-16  Eric Blake  <eblake@redhat.com>
351
352         fdatasync: port to Solaris
353         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
354         * modules/fdatasync (Link): Document it.
355         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
356
357         fdatasync: port to MacOS X 10.7
358         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
359         declared.
360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
361         * modules/unistd (Makefile.am): Substitute it.
362         * lib/unistd.in.h (fdatasync): Declare on MacOS.
363         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
364
365         fdatasync: minor improvements
366         * modules/fdatasync (Depends-on): Add condition for fsync.
367         * lib/fdatasync.c (fdatasync): Add comment.
368         * tests/test-unistd-c++.cc: Test fdatasync.
369
370         unistd: update refs to newer POSIX
371         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
372         Suggested by Bruno Haible.
373
374         fdatasync: new module
375         * modules/fsync (Description): Document difference to fdatasync.
376         * modules/fdatasync: New module.
377         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
378         * lib/fdatasync.c (fdatasync): Likewise.
379         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
380         defaults.
381         * modules/unistd (Makefile.am): Set witnesses.
382         * lib/unistd.in.h (fdatasync): Declare.
383         * MODULES.html.sh: Document it.
384         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
385         * modules/fdatasync-tests: New test.
386         * tests/test-fdatasync.c: Likewise.
387
388 2011-09-16  Eric Blake  <eblake@redhat.com>
389
390         test-fsync: enhance tests
391         * modules/fsync-tests (Depends-on): Add errno, for mingw.
392         * tests/test-fsync.c (main): Enhance test.
393
394 2011-09-15  Bruno Haible  <bruno@clisp.org>
395
396         Support for MSVC compiler: Ensure ssize_t gets defined.
397         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
398         * doc/posix-headers/stdio.texi: Likewise.
399         * modules/stdio (Depends-on): Add ssize_t.
400         * modules/sys_socket (Depends-on): Likewise.
401         * modules/sys_types (Depends-on): Likewise.
402         * modules/sys_uio (Depends-on): Likewise.
403         * modules/unistd (Depends-on): Likewise.
404         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
405         * tests/test-sys_types.c: Check that ssize_t is defined.
406
407 2011-09-14  Bruno Haible  <bruno@clisp.org>
408
409         Avoid using #, the m4 comment starter character, near brackets.
410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
411         delimiter character in sed expressions.
412         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
413         Suggested by Eric Blake.
414
415         Properly quote AC_CHECK_DECLS' 4th argument.
416         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
417         argument.
418         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
419         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
420         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
421         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
422         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
423         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
425         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
426         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
427         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
428         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
429         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
430         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
431         * m4/isinf.m4 (gl_ISINF): Likewise.
432         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
433         * m4/readutmp.m4 (gl_READUTMP): Likewise.
434         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
435         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
436         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
438         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
439         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
440         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
441         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
442         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
443         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
445         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
447         Reported by Eric Blake.
448
449         Properly quote AC_CHECK_DECL's 4th argument.
450         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
451         argument.
452         * m4/argp.m4 (gl_ARGP): Likewise.
453         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
454         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
455         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
456         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
457         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
458         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
460         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
461         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
462         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
463         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
464         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
465         Reported by Eric Blake.
466
467 2011-09-14  Eric Blake  <eblake@redhat.com>
468
469         opendir: avoid compile warning
470         * lib/opendir.c (includes): Always include errno.h.
471         Reported by Tatsuro MATSUOKA.
472
473 2011-09-14  Jim Meyering  <meyering@redhat.com>
474
475         maint.mk: sc_tight_scope: propagate failure from sub-make
476         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
477         Reported by Martin von Gagern.
478
479 2011-09-13  Bruno Haible  <bruno@clisp.org>
480
481         tempname: Support for MSVC.
482         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
483         MSVC.
484         * modules/tempname (Depends-on): Add fcntl-h.
485
486 2011-09-13  Bruno Haible  <bruno@clisp.org>
487
488         sys_time: Support for MSVC.
489         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
490         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
491         include <winsock2.h>.
492         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
493         function declarations that collide with POSIX.
494         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
495         (Makefile.am): Substitute HAVE_WINSOCK2_H.
496
497 2011-09-13  Bruno Haible  <bruno@clisp.org>
498
499         stat: Support for MSVC.
500         * lib/stat.c: Include pathmax.h.
501         * modules/stat (Depends-on): Add pathmax.
502
503         pathmax: Support for native Windows.
504         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
505
506 2011-09-12  Bruno Haible  <bruno@clisp.org>
507
508         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
509         * lib/dirent.in.h (struct dirent): New type.
510         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
511         DT_WHT): New macros.
512         (DIR): New type.
513         (opendir, closedir): Declare only if the module 'opendir' is enabled.
514         (readdir, rewinddir): New declarations.
515         * lib/dirent-private.h: New file.
516         * lib/opendir.c: New file.
517         * lib/readdir.c: New file.
518         * lib/rewinddir.c: New file.
519         * lib/closedir.c: New file.
520         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
521         * m4/opendir.m4: New file.
522         * m4/readdir.m4: New file.
523         * m4/rewinddir.m4: New file.
524         * m4/closedir.m4: New file.
525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
526         REPLACE_CLOSEDIR here.
527         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
528         readdir, rewinddir are declared.
529         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
530         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
531         HAVE_REWINDDIR, HAVE_CLOSEDIR.
532         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
533         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
534         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
535         * modules/opendir: New file.
536         * modules/readdir: New file.
537         * modules/rewinddir: New file.
538         * modules/closedir: New file.
539         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
540         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
541         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
542         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
543         * NEWS: Mention the 'fchdir' change.
544
545 2011-09-11  Bruno Haible  <bruno@clisp.org>
546
547         asm-underscore.m4: Support for MSVC.
548         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
549         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
550
551 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
552
553         Doc about crypt functions.
554         * doc/posix-functions/crypt.texi: Expand range of glibc versions
555         needing for _GNU_SOURCE to get crypt.
556         * doc/posix-functions/encrypt.texi: Likewise.
557         * doc/posix-functions/setkey.texi: Likewise.
558
559 2011-09-11  Bruno Haible  <bruno@clisp.org>
560
561         doc: Update regarding MSVC 9.
562         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
563         tested".
564         * doc/posix-functions/*.texi: Update with info about MSVC 9.
565         * doc/posix-headers/*.texi: Likewise.
566         * doc/pastposix-functions/*.texi: Likewise.
567         * doc/glibc-functions/*.texi: Likewise.
568         * doc/glibc-headers/*.texi: Likewise.
569
570 2011-09-11  Bruno Haible  <bruno@clisp.org>
571
572         unistd et al.: Don't assume <unistd.h> exists.
573         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
574         does not exist.
575         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
576         exist. But include <stdlib.h>.
577         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
578         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
579         symlink() does not exist.
580         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
581         include <io.h> instead.
582         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
583         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
584         include <direct.h> instead.
585         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
587         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
588         <io.h> instead.
589         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
590         correctly if the system does not have hard links.
591         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
592         <direct.h> instead.
593         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
594         it when looking for function declarations.
595         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
596         <direct.h> and <io.h> instead.
597         * doc/posix-headers/unistd.texi: More details about MSVC problem.
598
599 2011-09-11  Bruno Haible  <bruno@clisp.org>
600
601         strcase: Support for MSVC.
602         * modules/strcase (Status, Notice): Remove obsoletion mark.
603         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
604         * doc/posix-functions/strncasecmp.texi: Likewise.
605
606         strings: Don't assume <strings.h> exists.
607         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
608         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
609         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
610         * doc/posix-headers/strings.texi: Mention the MSVC problem.
611
612 2011-09-11  Bruno Haible  <bruno@clisp.org>
613
614         dirent: Don't assume <dirent.h> exists.
615         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
616         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
617         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
618         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
619
620 2011-09-11  Bruno Haible  <bruno@clisp.org>
621
622         Fix wint_t on MSVC.
623         * lib/wchar.in.h (wint_t): On MSVC, override it.
624         * lib/wctype.in.h (wint_t): Likewise.
625         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
626         MSVC.
627         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
628         * doc/posix-headers/wctype.texi: Likewise.
629
630 2011-09-11  Bruno Haible  <bruno@clisp.org>
631
632         sys_types: Fix typo.
633         * lib/sys_types.in.h: Fix typo in comment.
634         Reported by Paul Eggert.
635
636         Support for MSVC compiler: Ensure size_t gets defined.
637         * modules/strings (Depends-on): Add 'sys_types'.
638         * modules/sys_uio (Depends-on): Likewise.
639         * lib/sys_uio.in.h: Update comment.
640
641         C++ tests for module 'sys_types'.
642         * modules/sys_types-c++-tests: New file.
643         * tests/test-sys_types-c++.cc: New file.
644
645         Tests for module 'sys_types'.
646         * modules/sys_types-tests: New file.
647         * tests/test-sys_types.c: New file.
648
649         New module 'sys_types'.
650         * lib/sys_types.in.h: New file.
651         * m4/sys_types_h.m4: New file.
652         * modules/sys_types: New file.
653         * doc/posix-headers/sys_types.texi: Mention the new module and the
654         size_t problem on MSVC 9.
655
656 2011-09-11  Bruno Haible  <bruno@clisp.org>
657
658         Support for MSVC compiler: Avoid division by a literal 0.
659         * lib/math.in.h (NAN): Define through a function call also on MSVC.
660         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
661         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
662         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
663         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
664         * tests/infinity.h: New file.
665         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
666         on MSVC.
667         * tests/test-ceilf1.c: Include infinity.h.
668         (main): Use Infinityf.
669         * tests/test-ceil1.c: Include infinity.h.
670         (main): Use Infinityd.
671         * tests/test-ceill.c: Include infinity.h.
672         (main): Use Infinityl.
673         * tests/test-dprintf-posix.c: Include infinity.h.
674         (test_function): Use Infinityd.
675         * tests/test-floorf1.c: Include infinity.h.
676         (main): Use Infinityf.
677         * tests/test-floor1.c: Include infinity.h.
678         (main): Use Infinityd.
679         * tests/test-floorl.c: Include infinity.h.
680         (main): Use Infinityl.
681         * tests/test-fprintf-posix.c: Include infinity.h.
682         (test_function): Use Infinityd.
683         * tests/test-frexp.c: Include infinity.h.
684         (main): Use Infinityd.
685         * tests/test-frexpl.c: Include infinity.h.
686         (main): Use Infinityl.
687         * tests/test-isfinite.c: Include infinity.h.
688         (test_isfinitef): Use Infinityf.
689         (test_isfinited): Use Infinityd.
690         (test_isfinitel): Use Infinityl.
691         * tests/test-isinf.c: Include infinity.h.
692         (test_isinff): Use Infinityf.
693         (test_isinfd): Use Infinityd.
694         (test_isinfl): Use Infinityl.
695         * tests/test-isnan.c: Include infinity.h.
696         (test_float): Use Infinityf.
697         (test_double): Use Infinityd.
698         (test_long_double): Use Infinityl.
699         * tests/test-isnanf.h: Include infinity.h.
700         (main): Use Infinityf.
701         * tests/test-isnand.h: Include infinity.h.
702         (main): Use Infinityd.
703         * tests/test-isnanl.h: Include infinity.h.
704         (main): Use Infinityl.
705         * tests/test-ldexpl.c: Include infinity.h.
706         (main): Use Infinityl.
707         * tests/test-printf-posix.h: Include infinity.h.
708         (test_function): Use Infinityd.
709         * tests/test-roundf1.c: Include infinity.h.
710         (main): Use Infinityf.
711         * tests/test-round1.c: Include infinity.h.
712         (main): Use Infinityd.
713         * tests/test-roundl.c: Include infinity.h.
714         (main): Use Infinityl.
715         * tests/test-signbit.c: Include infinity.h.
716         (test_signbitf): Use Infinityf.
717         (test_signbitd): Use Infinityd.
718         (test_signbitl): Use Infinityl.
719         * tests/test-snprintf-posix.h: Include infinity.h.
720         (test_function): Use Infinityd, Infinityl.
721         * tests/test-sprintf-posix.h: Include infinity.h.
722         (test_function): Use Infinityd, Infinityl.
723         * tests/test-truncf1.c: Include infinity.h.
724         (main): Use Infinityf.
725         * tests/test-trunc1.c: Include infinity.h.
726         (main): Use Infinityd.
727         * tests/test-truncl.c: Include infinity.h.
728         (main): Use Infinityl.
729         * tests/test-vasnprintf-posix.c: Include infinity.h.
730         (test_function): Use Infinityd, Infinityl.
731         * tests/test-vasprintf-posix.c: Include infinity.h.
732         (test_function): Use Infinityd, Infinityl.
733         * modules/ceilf-tests (Files): Add tests/infinity.h.
734         * modules/ceil-tests (Files): Likewise.
735         * modules/ceill-tests (Files): Likewise.
736         * modules/dprintf-posix-tests (Files): Likewise.
737         * modules/floorf-tests (Files): Likewise.
738         * modules/floor-tests (Files): Likewise.
739         * modules/floorl-tests (Files): Likewise.
740         * modules/fprintf-posix-tests (Files): Likewise.
741         * modules/frexp-tests (Files): Likewise.
742         * modules/frexp-nolibm-tests (Files): Likewise.
743         * modules/frexpl-tests (Files): Likewise.
744         * modules/frexpl-nolibm-tests (Files): Likewise.
745         * modules/isfinite-tests (Files): Likewise.
746         * modules/isinf-tests (Files): Likewise.
747         * modules/isnan-tests (Files): Likewise.
748         * modules/isnanf-tests (Files): Likewise.
749         * modules/isnanf-nolibm-tests (Files): Likewise.
750         * modules/isnand-tests (Files): Likewise.
751         * modules/isnand-nolibm-tests (Files): Likewise.
752         * modules/isnanl-tests (Files): Likewise.
753         * modules/isnanl-nolibm-tests (Files): Likewise.
754         * modules/ldexpl-tests (Files): Likewise.
755         * modules/printf-posix-tests (Files): Likewise.
756         * modules/roundf-tests (Files): Likewise.
757         * modules/round-tests (Files): Likewise.
758         * modules/roundl-tests (Files): Likewise.
759         * modules/signbit-tests (Files): Likewise.
760         * modules/snprintf-posix-tests (Files): Likewise.
761         * modules/sprintf-posix-tests (Files): Likewise.
762         * modules/truncf-tests (Files): Likewise.
763         * modules/trunc-tests (Files): Likewise.
764         * modules/truncl-tests (Files): Likewise.
765         * modules/vasnprintf-posix-tests (Files): Likewise.
766         * modules/vasprintf-posix-tests (Files): Likewise.
767         * modules/vdprintf-posix-tests (Files): Likewise.
768         * modules/vfprintf-posix-tests (Files): Likewise.
769         * modules/vprintf-posix-tests (Files): Likewise.
770         * modules/vsnprintf-posix-tests (Files): Likewise.
771         * modules/vsprintf-posix-tests (Files): Likewise.
772         * modules/xprintf-posix-tests (Files): Likewise.
773
774 2011-09-11  Bruno Haible  <bruno@clisp.org>
775
776         Ensure pid_t gets defined.
777         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
778         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
779         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
780         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
781         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
782         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
783         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
784         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
785         * tests/test-fcntl-h.c: Check that pid_t is defined.
786         * tests/test-sched.c: Likewise.
787         * tests/test-termios.c: Likewise.
788         * tests/test-time.c: Likewise.
789         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
790         * doc/posix-headers/signal.texi: Likewise.
791         * doc/posix-headers/sys_types.texi: Likewise.
792         * doc/posix-headers/time.texi: Likewise.
793
794 2011-09-11  Bruno Haible  <bruno@clisp.org>
795
796         acl: Fix compilation on Solaris 10 (older version).
797         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
798         of ACE_EVERYONE.
799         * lib/set-mode-acl.c (qset_acl): Likewise.
800         Reported by Christian Jullien <eligis@orange.fr>.
801
802 2011-09-10  Bruno Haible  <bruno@clisp.org>
803
804         iconv, unsetenv: Add support for MSVC compiler.
805         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
806         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
807
808 2011-09-10  Bruno Haible  <bruno@clisp.org>
809
810         *printf: Add support for MSVC compiler.
811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
812         handles the exception caused by the %n directive. When cross-compiling,
813         guess no on native Windows.
814         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
815         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
816         emulate it through vsnprintf.
817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
818         * doc/posix-functions/dprintf.texi: Update documentation regarding
819         MSVC 9.
820         * doc/posix-functions/fprintf.texi: Likewise.
821         * doc/posix-functions/printf.texi: Likewise.
822         * doc/posix-functions/snprintf.texi: Likewise.
823         * doc/posix-functions/sprintf.texi: Likewise.
824         * doc/posix-functions/swprintf.texi: Likewise.
825         * doc/posix-functions/vdprintf.texi: Likewise.
826         * doc/posix-functions/vfprintf.texi: Likewise.
827         * doc/posix-functions/vprintf.texi: Likewise.
828         * doc/posix-functions/vsnprintf.texi: Likewise.
829         * doc/posix-functions/vsprintf.texi: Likewise.
830         * doc/glibc-functions/asprintf.texi: Likewise.
831         * doc/glibc-functions/obstack_printf.texi: Likewise.
832         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
833         * doc/glibc-functions/vasprintf.texi: Likewise.
834
835 2011-09-10  Bruno Haible  <bruno@clisp.org>
836
837         nocrash: Add support for native Windows.
838         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
839
840 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
841             Bruno Haible  <bruno@clisp.org>
842
843         absolute-header, include-next: Add support for MSVC compiler.
844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
845         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
846         directory separator in #line directives.
847         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
848         recognize also backslash as directory separator in #line directives.
849
850 2011-09-08  Jim Meyering  <meyering@redhat.com>
851
852         maint.mk: mark the post-release commit log with "maint: " prefix
853         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
854         one-line commit-log summary.
855
856 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
857             Bruno Haible  <bruno@clisp.org>
858
859         Doc about crypt functions.
860         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
861         systems.
862         * doc/posix-functions/encrypt.texi: Likewise.
863         * doc/posix-functions/setkey.texi: Likewise.
864
865 2011-09-08  Simon Josefsson  <simon@josefsson.org>
866
867         * lib/gc.h: Fix copyright header.
868
869 2011-09-07  Bruno Haible  <bruno@clisp.org>
870
871         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
872         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
873         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
874
875 2011-09-07  Bruno Haible  <bruno@clisp.org>
876
877         openat: Work around compilation error with OSF/1 5.1 DTK cc.
878         * lib/fopen.c: Use different syntax for include of <stdio.h>.
879         * lib/freopen.c: Likewise.
880         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
881         * lib/lstat.c: Likewise.
882         * lib/stat.c: Likewise.
883         * lib/open.c: Use different syntax for include of <fcntl.h>.
884         * lib/openat.c: Include fcntl.h again, explicitly.
885
886 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
887
888         parse-datetime: document the newly accepted format
889         * doc/parse-datetime.texi (Combined date and time of day items):
890         New section.
891
892 2011-09-06  Bruno Haible  <bruno@clisp.org>
893
894         acl: Fix a test failure on newer Solaris 10 with ZFS.
895         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
896         ENOSYS as no ACL.
897         Reported by Jim Meyering.
898
899 2011-09-06  Bruno Haible  <bruno@clisp.org>
900
901         acl: Update for AIX >= 5.3 with NFS.
902         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
903         ENOSYS as no ACL.
904
905         acl: Fix a test failure on AIX >= 5.3 with NFS.
906         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
907         as no ACL.
908
909 2011-09-06  Bruno Haible  <bruno@clisp.org>
910
911         acl: Fix a test failure on IRIX 6.5 with NFS.
912         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
913         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
914         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
915         * lib/copy-acl.c (qcopy_acl): Likewise.
916
917 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
918
919         openat: port to AIX 7.1 with large files
920         AIX 7.1 does a "#define openat open64at" if large files are in use,
921         so we can't simply #undef openat.  Use the orig_openat trick (similar
922         to orig_open in lib/open.c) to work around the problem.  Problem
923         reported by Kevin Brott for GNU tar, in the thread containing
924         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
925         * lib/openat.c (__need_system_fcntl_h): Define first.
926         Include <fcntl.h> and <sys/types.h> before undefining.
927         (orig_openat) [HAVE_OPENAT]: New inline function.
928         (openat) [HAVE_OPENAT]: Do not undef.
929         (rpl_openat): Use orig_openat, not openat.
930
931 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
932             Bruno Haible  <bruno@clisp.org>
933
934         acl: Avoid errors on NonStop Kernel.
935         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
936         ENOTSUP errors.
937
938 2011-09-05  Bruno Haible  <bruno@clisp.org>
939
940         acl: Clean up Solaris code.
941         * lib/acl-internal.h: Remove no-op #if.
942         * lib/file-has-acl.c: Likewise.
943         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
944         * lib/copy-acl.c (qcopy_acl): Likewise.
945
946 2011-09-05  Bruno Haible  <bruno@clisp.org>
947
948         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
949         binaries built on the original Solaris 10.
950         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
951         trivial.
952
953 2011-09-05  Bruno Haible  <bruno@clisp.org>
954
955         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
956         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
957         10.
958         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
959         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
960         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
961         instead of acl_get, facl_get, acl_set, facl_set.
962
963 2011-09-05  Bruno Haible  <bruno@clisp.org>
964
965         copy-file: Try unit tests on more file systems.
966         * tests/test-copy-file-1.sh: New file.
967         * tests/test-copy-file-2.sh: New file.
968         * modules/copy-file-tests (Files): Add them.
969         (Makefile.am): Add them to TESTS.
970
971         acl: Try unit tests on more file systems.
972         * tests/test-file-has-acl-1.sh: New file.
973         * tests/test-file-has-acl-2.sh: New file.
974         * tests/test-set-mode-acl-1.sh: New file.
975         * tests/test-set-mode-acl-2.sh: New file.
976         * tests/test-copy-acl-1.sh: New file.
977         * tests/test-copy-acl-2.sh: New file.
978         * modules/acl-tests (Files): Add them.
979         (Makefile.am): Add them to TESTS.
980
981 2011-09-04  Bruno Haible  <bruno@clisp.org>
982
983         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
984         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
985         10.
986         (OLD_ALLOW, OLD_DENY): New macros.
987         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
988         ACE_ACCESS_ALLOWED_ACE_TYPE.
989         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
990         ACE_ACCESS_DENIED_ACE_TYPE.
991         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
992         (NEW_ACE_EXECUTE): Fix value.
993         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
994         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
995         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
996         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
997         NEW_ACE_SYNCHRONIZE): New macros.
998         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
999         instead of acl_fromtext, acl_set, facl_set.
1000         Fixes a coreutils/tests/cp/perm failure.
1001
1002 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1003
1004         openat: test for fstatat (..., 0) bug
1005         Further testing with tar suggests that fstatat (..., 0)
1006         does not work in general, on AIX 7.1; see
1007         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1008         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1009         replacement fstatat (which is what older AIX releases were using
1010         anyway).
1011         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1012         use is now changed to orig_fstatat.  This was probably the right
1013         thing to do anyway.
1014         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1015         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1016         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1017         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1018         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1019         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1020         if the bug is found.
1021
1022         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1023         This tests for another fstatat bug on AIX 7.1:
1024         fstatat (AT_FDCWD, ..., 0) does not work.  See
1025         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1026         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1027         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1028         (rpl_fstatat): Adjust so that it works around either (or both)
1029         bugs if present.
1030         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1031
1032 2011-09-03  Karl Berry  <karl@gnu.org>
1033
1034         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1035         in index entries.
1036
1037 2011-09-02  Bruno Haible  <bruno@clisp.org>
1038
1039         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1040         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1041         values of AR, ARFLAGS, RANLIB.
1042         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1043
1044 2011-09-02  Bruno Haible  <bruno@clisp.org>
1045
1046         Find 'ar' program that fits with --host argument.
1047         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1048
1049 2011-09-02  Bruno Haible  <bruno@clisp.org>
1050
1051         tests: init.sh: Support any non-GNU diff.
1052         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1053         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1054         Solaris 8.
1055
1056 2011-09-02  Bruno Haible  <bruno@clisp.org>
1057
1058         tests: init.sh: work also with any non-GNU diff that supports -u
1059         * tests/init.sh: Relax check for diff -u support.
1060         Rather than checking for GNU diff via --version, simply check
1061         for support for -u itself.  Useful at least on OpenBSD 4.9,
1062         AIX 7.1, IRIX 6.5, and Solaris 10.
1063
1064 2011-09-01  Bruno Haible  <bruno@clisp.org>
1065
1066         strtoimax, strtoumax: Document problem on HP-UX 11.
1067         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1068         * doc/posix-functions/strtoumax.texi: Likewise.
1069
1070 2011-09-01  Bruno Haible  <bruno@clisp.org>
1071
1072         strtoumax: Avoid link error on OSF/1 with DTK cc.
1073         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1074         defined as a function.
1075         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1076         strtoumax is defined, not whether it is declared.
1077
1078 2011-09-01  Bruno Haible  <bruno@clisp.org>
1079
1080         strtoimax: Avoid link error on OSF/1 with DTK cc.
1081         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1082         defined as a function.
1083         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1084         strtoimax is defined, not whether it is declared.
1085
1086 2011-09-01  Bruno Haible  <bruno@clisp.org>
1087
1088         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1089         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1090         as a function.
1091         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1092         whether it is declared.
1093
1094 2011-09-01  Bruno Haible  <bruno@clisp.org>
1095
1096         imaxabs: Avoid link error on OSF/1 with DTK cc.
1097         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1098         as a function.
1099         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1100         whether it is declared.
1101
1102 2011-09-01  Bruno Haible  <bruno@clisp.org>
1103
1104         Tests for module 'strtoumax'.
1105         * modules/strtoumax-tests: New file.
1106         * tests/test-strtoumax.c: New file.
1107
1108         Tests for module 'strtoimax'.
1109         * modules/strtoimax-tests: New file.
1110         * tests/test-strtoimax.c: New file.
1111
1112         Tests for module 'imaxdiv'.
1113         * modules/imaxdiv-tests: New file.
1114         * tests/test-imaxdiv.c: New file.
1115
1116         Tests for module 'imaxabs'.
1117         * modules/imaxabs-tests: New file.
1118         * tests/test-imaxabs.c: New file.
1119
1120 2011-09-01  Bruno Haible  <bruno@clisp.org>
1121
1122         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1123         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1124         pthread_create.
1125
1126 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1127
1128         openat: work around AIX 7.1 fstatat issue
1129         This should fix the problem that was not properly fixed
1130         in the previous change, dated 2011-08-30.
1131         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1132         __need_system_stat_h defined.
1133         (orig_fstatat) [HAVE_FSTATAT]: New function.
1134         (rpl_fstatat): Go back to the old way of doing things,
1135         except call orig_fstatat instead of fstatat.
1136         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1137         Remove unnecessary check whether fstatat fills in st_size etc.
1138
1139 2011-09-01  Bruno Haible  <bruno@clisp.org>
1140
1141         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1142         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1143         just include the system's header.
1144
1145 2011-08-31  Jim Meyering  <meyering@redhat.com>
1146
1147         tests: avoid spurious assertion failure in test-float.c on ppc64
1148         * tests/test-float.c (test_long_double): Comment out an assertion,
1149         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1150         with gcc-4.4.4.
1151
1152         maint: indent with spaces, not TABs
1153         I need to get in the habit of running gnulib's "make check".
1154         Both of these would have been caught.
1155         * m4/largefile.m4: Indent with spaces, not TABs.
1156         * lib/parse-datetime.y (iso_8601_time): Likewise.
1157         Spotted by Pádraig Brady.
1158
1159         test-parse-datetime.c: accommodate a relatively strict gcc warning
1160         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1161         to avoid a warning from gcc's -Werror=missing-declarations.
1162         Insert a few spaces-before-funcall-parenthesis.
1163
1164 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1165
1166         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1167         The parser now accepts ISO 8601 date-time strings with "T" as the
1168         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1169         with a space between the date and time strings.  Now it also parses
1170         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1171         variants like "2004-02-29T16:21:42.333-07:00"
1172         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1173         of day representation using the 'T' separator character.
1174         * doc/parse-datetime.texi (General date syntax): replace use of
1175         deprecated --iso-8601 option with --rfc-3339 in example of date
1176         command output formats that can be parsed.
1177         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1178         lib/parse-datetime.y.
1179         (gmt_offset): New function.
1180         (main): Add additional test cases to validate ISO8601 extended
1181         date and time of day parsing.
1182
1183 2011-08-31  Bruno Haible  <bruno@clisp.org>
1184
1185         freopen: Documentation.
1186         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1187         name.
1188         Reported by Claudio Bley <claudio.bley@gmail.com>.
1189
1190 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1191
1192         freopen: Don't crash if the filename argument is NULL.
1193         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1194         NULL.
1195
1196 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1197
1198         openat: work around AIX 7.1 fstatat bug
1199         Problem reported by Kevin Brott for GNU tar, in the thread containing
1200         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1201         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1202         FSTATAT_ST_SIZE_ETC_BROKEN.
1203         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1204         rpl_fstatat.
1205         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1206         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1207         AC_CHECK_FUNCS_ONCE for fstatat.
1208         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1209         fchmodat, mkdirat, openat and unlinkat.
1210
1211 2011-08-30  Bruno Haible  <bruno@clisp.org>
1212
1213         Avoid endless recursions if config.h includes some header files.
1214         * lib/fopen.c (__need_FILE): Define already before including config.h.
1215         * lib/freopen.c (__need_FILE): Likewise.
1216         * lib/open.c (__need_system_fcntl_h): Likewise.
1217         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1218         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1219         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1220
1221 2011-08-25  Karl Berry  <karl@gnu.org>
1222
1223         * config/srclist.txt (ylwrap): new try.
1224         * build-aux/ylwrap: new file.
1225
1226 2011-08-23  Bruno Haible  <bruno@clisp.org>
1227
1228         tmpdir: Use a good default directory on native Windows.
1229         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1230         (P_tmpdir): Default to _P_tmpdir on native Windows.
1231         (path_search): On native Windows, try the value returned by GetTempPath
1232         before trying P_tmpdir.
1233         * modules/tmpdir (Depends-on): Add pathmax.
1234         Suggested by John Darrington <john@darrington.wattle.id.au>.
1235
1236 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1237
1238         doc: fix typo in README-release
1239         * top/README-release: Capitalize first word of a sentence.
1240
1241 2011-08-19  Jim Meyering  <meyering@redhat.com>
1242
1243         fts: do not exhaust memory when processing million-entry directories
1244         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1245         directory would require about 256*N bytes of memory.  Thus, it was
1246         easy to construct a directory too large to be processed by any of
1247         those tools.  With this change, fts' maximum memory utilization is
1248         now limited to around 30MB.
1249         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1250         (fts_read): When we've processed the final entry (i.e., when
1251         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1252         using the parent entry to read any remaining entries.  Dispatch
1253         depending on what fts_build returns:
1254         - NULL+stop, aka failure: stop
1255         - NULL otherwise: move up in the dir hierarchy
1256         - non-NULL: handle this new entry
1257         (fts_build): Declare and use new local, continue_readdir.
1258         Prepare to be called from fts_read, when the entries
1259         from a partially-read directory have just been exhausted.
1260         In that case, we'll skip the opendir and instead use the parent's
1261         fts_dirp and derive dir_fd from that.
1262         Finally, in the readdir loop, if we read max_entries entries,
1263         exit the loop ensuring *not* to call closedir.  This is required
1264         so that fts_dirp can be reused on a subsequent call.
1265         Prompted by Ben England's report of memory exhaustion in find
1266         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1267
1268         maint: fts: move decl of `dp' down into while loop; split a long line
1269         * lib/fts.c (fts_build): No semantic change.
1270
1271         fts: add/use new struct member, fts_dirp
1272         We are about to use this to manage any directory with
1273         too many entries to read all of them into memory at once.
1274         To do that, we'll need to save the DIR* pointer in each
1275         affected FTSENT struct.
1276         * lib/fts_.h: Include <dirent.h>.
1277         (struct FTSENT) [fts_dirp]: New member.
1278         * lib/fts.c (closedir_and_clear): Define.
1279         Use it in place of closedir so that we are sure to
1280         clear the new fts_dirp member when done with it.
1281         (fts_alloc): Initialize the new member.
1282         (fts_lfree): Free, if needed.
1283
1284         maint: fts: give __opendir2 a new parameter and rename
1285         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1286         than surreptitiously using sole caller's "dir_fd".
1287         (fts_opendir): Rename from __opendir2.
1288
1289         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1290         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1291
1292         maint: fts.c: correct off-by-one indentation
1293         * lib/fts.c (fts_build): Correct indentation, change style
1294         of a couple of block comments, and bracing style.
1295
1296         maint: fts.c: move __opendir2 #define "up" out of function body
1297         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1298
1299         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1300         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1301         out for a long time and besides was useful only on BSD systems.
1302
1303 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1304
1305         regex: port to Stratus OpenVOS
1306         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1307         define to empty, rather than attempting nonportable optimizations.
1308         Problem reported by Paul Green in:
1309         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1310         and fix suggested by Eric Blake in:
1311         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1312
1313 2011-08-17  Eric Blake  <eblake@redhat.com>
1314
1315         getcwd: fix test failures on mingw
1316         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1317         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1318         test if long directory cannot be created, and allow mingw errno.
1319
1320         getcwd-lgpl: fix m4 to match relaxed test for BSD
1321         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1322         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1323         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1324         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1325         signature problem.
1326
1327         getcwd: fix compilation on mingw64
1328         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1329         getcwd.
1330         Reported by Marc-André Lureau.
1331
1332         pipe2: silence compiler warning
1333         * lib/pipe2.c (pipe2): Hide label if it is not used.
1334
1335 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1336
1337         relocatable-prog: fix link error
1338         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1339         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1340         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1341         into modules/relocatable-lib without noticing that
1342         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1343         also needs to build relocatable.c.
1344
1345 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1346
1347         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1349         shell code: it contained a 'break' that was not in a loop.
1350         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1351         via a shell-language loop; this may have been true in old Autoconf
1352         versions, but it's not true in Autoconf 2.68.  I found this bug
1353         when testing coreutils git on Solaris 8, whose shell complains
1354         about the syntax error.
1355
1356 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1357
1358         * lib/base64.c: Fix comment to reference RFC 4648.
1359         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1360         <gvtulder@gmail.com>.
1361
1362 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1365
1366         po/Makefile.in.in: fix make -q problem
1367         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1368         rule, since there's no file named 'check-macro-version' and its
1369         use as a file breaks make -q.
1370         (all): Don't depend on check-macro-version.
1371         (CHECK_MACRO_VERSION): New macro.
1372         (stamp-po): Use it.
1373
1374         configmake: fix make -q problem
1375         * modules/configmake (configmake.h): Update configmake.h's time stamp
1376         even if the file does not change.  Otherwise, 'make -q' fails.
1377         Problem reported by Simon Josefsson in
1378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1379
1380 2011-08-11  Jim Meyering  <meyering@redhat.com>
1381
1382         git-version-gen: correct the advice in a comment
1383         * build-aux/git-version-gen: Correct comment.
1384         Don't recommend to list .tarball-version in .gitignore.
1385
1386 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1387
1388         base64: fix off-by-one buffer size bug
1389         Problem and (trivial) fix reported by Gijs van Tulder in
1390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1391         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1392         * tests/test-base64.c (main): Catch the bug.
1393
1394 2011-08-10  Eric Blake  <eblake@redhat.com>
1395
1396         closein: correct comments
1397         * lib/closein.c (close_stdin): Improve comments.
1398
1399 2011-08-09  Bruno Haible  <bruno@clisp.org>
1400
1401         More tests for 'fseeko'.
1402         * tests/test-fseeko3.c: New file, from Eric Blake.
1403         * tests/test-fseeko3.sh: New file.
1404         * modules/fseeko-tests (Files): Add them.
1405         (TESTS): Add test-fseeko3.sh.
1406         (check_PROGRAMS): Add test-fseeko3.
1407
1408 2011-08-09  Eric Blake  <eblake@redhat.com>
1409
1410         fseeko: remove unneeded hack
1411         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1412
1413         fseeko: fix bug on glibc
1414         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1415         Reported by John W. Eaton.
1416
1417 2011-08-08  Bruno Haible  <bruno@clisp.org>
1418
1419         unictype/base: Fix interoperability with preinstalled libunistring.
1420         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1421         Reported by Simon Josefsson.
1422
1423 2011-08-08  Bruno Haible  <bruno@clisp.org>
1424
1425         iswblank: Detect declaration correctly.
1426         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1427         AC_CHECK_DECLS invocation.
1428
1429 2011-08-08  Bruno Haible  <bruno@clisp.org>
1430
1431         tcgetsid: Detect declaration correctly.
1432         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1433         AC_CHECK_DECLS invocation.
1434         Reported by Simon Josefsson.
1435
1436 2011-08-08  Eric Blake  <eblake@redhat.com>
1437
1438         largefile: fix typo that regressed large file support
1439         * modules/largefile (configure.ac-early): Fix section name.
1440
1441 2011-08-06  Karl Berry  <karl@gnu.org>
1442
1443         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1444         a separate module.
1445
1446 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1447
1448         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1449         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1450         get prototype for free.
1451
1452 2011-08-04  Bruno Haible  <bruno@clisp.org>
1453
1454         Tests for module 'pathmax'.
1455         * modules/pathmax-tests: New file.
1456         * tests/test-pathmax.c: New file.
1457
1458         canonicalize-lgpl: Support larger filenames on the Hurd.
1459         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1460         Reported by Paul Eggert.
1461
1462         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1463         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1464         * lib/chdir-long.h: Include pathmax.h.
1465         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1466         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1467         (PATH_MAX): Remove code that is done by pathmax.h.
1468         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1469         * lib/tmpfile.c: Add a comment.
1470         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1471         * modules/chdir-long (Depends-on): Add pathmax.
1472         * modules/getcwd (Depends-on): Add pathmax.
1473         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1474         is not defined.
1475         * doc/posix-headers/limits.texi: Mention the pathmax module.
1476         * NEWS: Mention the change.
1477
1478 2011-08-02  Bruno Haible  <bruno@clisp.org>
1479
1480         pthread_sigmask: Actually use results of gl_THREADLIB.
1481         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1482         gl_THREADLIB, not gl_[]THREADLIB.
1483         Reported by Eric Blake.
1484
1485 2011-08-02  Jim Meyering  <meyering@redhat.com>
1486
1487         maint.mk: relax the default _gl_TS_function_match regexp
1488         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1489         space between function name and "(" in an "extern" declaration.
1490         That would fail to match a decl with no space there: extern void foo();
1491
1492 2011-07-31  Iain Nicol  <iain@thenicols.net>
1493
1494         git-version-gen: document that EXTRA_DIST must include .version
1495         * build-aux/git-version-gen: In the how-to-use comment, document
1496         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1497         will fail when run from an unpacked distribution tarball.
1498
1499 2011-08-01  Bruno Haible  <bruno@clisp.org>
1500
1501         wctype-h: Fix last change.
1502         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1503         REPLACE_TOWLOWER to 0.
1504         Reported by Sam Steingold <sds@gnu.org>.
1505
1506 2011-07-31  Bruno Haible  <bruno@clisp.org>
1507
1508         frexpl: Update autoconf test.
1509         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1510         according to changes of 2011-06-20.
1511
1512 2011-07-31  Bruno Haible  <bruno@clisp.org>
1513
1514         sys_utsname: Add support for Minix.
1515         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1516         <sys/utsname.h>.
1517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1518         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1519
1520 2011-07-31  Bruno Haible  <bruno@clisp.org>
1521
1522         strings: Add support for Minix.
1523         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1524         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1525         * doc/posix-headers/strings.texi: Document the Minix problem.
1526
1527 2011-07-31  Bruno Haible  <bruno@clisp.org>
1528
1529         wctype-h: Add support for Minix.
1530         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1531         REPLACE_TOWLOWER.
1532         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1533         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1534         REPLACE_ISWCNTRL.
1535
1536 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1537
1538         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1539         This is a performance improvement for 64-bit hosts: it causes the
1540         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1541
1542 2011-07-31  Bruno Haible  <bruno@clisp.org>
1543
1544         stdioext: Add support for Minix.
1545         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1546         * lib/fpurge.c (fpurge): Likewise.
1547         * lib/freadahead.c (freadahead): Likewise.
1548         * lib/freadable.c (freadable): Likewise.
1549         * lib/freading.c (freading): Likewise.
1550         * lib/freadptr.c (freadptr): Likewise.
1551         * lib/freadseek.c (freadptrinc): Likewise.
1552         * lib/fseeko.c (rpl_fseeko): Likewise.
1553         * lib/fseterr.c (fseterr): Likewise.
1554         * lib/fwritable.c (fwritable): Likewise.
1555         * lib/fwriting.c (fwriting): Likewise.
1556         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1557         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1558
1559 2011-07-31  Bruno Haible  <bruno@clisp.org>
1560
1561         errno: Port to Minix.
1562         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1563         ECONNABORTED are defined.
1564         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1565         GNULIB_defined_ECONNABORTED): New macros.
1566         * lib/strerror-override.h (strerror_override): Test also
1567         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1568         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1569         ECONNABORTED.
1570         * doc/posix-headers/errno.texi: Mention the Minix problem.
1571
1572 2011-07-31  Bruno Haible  <bruno@clisp.org>
1573
1574         Work around declaration collisions on Minix.
1575         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1576         defined, set REPLACE_MBSINIT.
1577         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1578         defined, set REPLACE_MBRTOWC.
1579         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1580         set REPLACE_MBRLEN.
1581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1582         defined, set REPLACE_MBSRTOWCS.
1583         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1584         defined, set REPLACE_WCRTOMB.
1585         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1586         defined, set REPLACE_WCSRTOMBS.
1587
1588 2011-07-31  Bruno Haible  <bruno@clisp.org>
1589
1590         Add support for Minix with ACK compiler.
1591         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1592         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1593         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1594
1595 2011-07-31  Bruno Haible  <bruno@clisp.org>
1596
1597         Documentation about Minix.
1598         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1599         * doc/glibc-headers/*.texi: Likewise.
1600         * doc/posix-functions/*.texi: Likewise.
1601         * doc/glibc-functions/*.texi: Likewise.
1602
1603 2011-07-31  Bruno Haible  <bruno@clisp.org>
1604
1605         snippet/warn-on-use: Fix indentation.
1606         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1607
1608 2011-07-25  Jim Meyering  <meyering@redhat.com>
1609
1610         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1611         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1612         commands.
1613
1614 2011-07-27  Jim Meyering  <meyering@redhat.com>
1615
1616         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1617         * top/maint.mk (gl_extract_significant_defines_): Now that
1618         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1619         gnulib/lib/signal.in.h, and now that we recommend to
1620         define-if-undefined those two symbols in application code,
1621         we must filter them out of the "significant" list.
1622         This avoids a "make syntax-check" failure in coreutils.
1623
1624 2011-07-26  Eric Blake  <eblake@redhat.com>
1625
1626         warnings: add comments about previous patch
1627         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1628         * m4/include_next.m4: Likewise.
1629         * m4/warn-on-use.m4: Likewise.
1630         * m4/warnings.m4: Likewise, and simplify use.
1631         Suggested by Stefano Lattarini.
1632
1633         include-next, warnings: support older autoconf
1634         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1635         AS_VAR_PUSHDEF in a way that works with older autoconf.
1636         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1637         Reported by Daniel P. Berrange.
1638
1639 2011-07-25  Bruno Haible  <bruno@clisp.org>
1640
1641         fseek, ftell: Fix doc.
1642         * doc/posix-functions/fseek.texi: Reword statement about
1643         AC_SYS_LARGEFILE.
1644         * doc/posix-functions/ftell.texi: Likewise.
1645
1646 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1647             Bruno Haible  <bruno@clisp.org>
1648
1649         Add dependencies to the 'largefile' module.
1650         * modules/fopen (Depends-on): Add 'largefile'.
1651         * modules/freopen (Depends-on): Likewise.
1652         * modules/fseeko (Depends-on): Likewise.
1653         * modules/ftello (Depends-on): Likewise.
1654         * modules/glob (Depends-on): Likewise.
1655         * modules/lseek (Depends-on): Likewise.
1656         * modules/lstat (Depends-on): Likewise.
1657         * modules/mkostemp (Depends-on): Likewise.
1658         * modules/mkostemps (Depends-on): Likewise.
1659         * modules/mkstemp (Depends-on): Likewise.
1660         * modules/mkstemps (Depends-on): Likewise.
1661         * modules/open (Depends-on): Likewise.
1662         * modules/openat (Depends-on): Likewise.
1663         * modules/pread (Depends-on): Likewise.
1664         * modules/pwrite (Depends-on): Likewise.
1665         * modules/scandir (Depends-on): Likewise.
1666         * modules/stat (Depends-on): Likewise.
1667         * modules/tmpfile (Depends-on): Likewise.
1668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1669         since the containing module now depends on the largefile module.
1670         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1671         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1672         off_t is fixed by gnulib.
1673         * doc/posix-functions/freopen.texi: Likewise.
1674         * doc/posix-functions/fseeko.texi: Likewise.
1675         * doc/posix-functions/fstatat.texi: Likewise.
1676         * doc/posix-functions/ftello.texi: Likewise.
1677         * doc/posix-functions/glob.texi: Likewise.
1678         * doc/posix-functions/lseek.texi: Likewise.
1679         * doc/posix-functions/lstat.texi: Likewise.
1680         * doc/posix-functions/mkstemp.texi: Likewise.
1681         * doc/posix-functions/open.texi: Likewise.
1682         * doc/posix-functions/openat.texi: Likewise.
1683         * doc/posix-functions/pread.texi: Likewise.
1684         * doc/posix-functions/pwrite.texi: Likewise.
1685         * doc/posix-functions/scandir.texi: Likewise.
1686         * doc/posix-functions/stat.texi: Likewise.
1687         * doc/posix-functions/tmpfile.texi: Likewise.
1688         * doc/glibc-functions/mkostemp.texi: Likewise.
1689         * doc/glibc-functions/mkostemps.texi: Likewise.
1690         * doc/glibc-functions/mkstemps.texi: Likewise.
1691
1692 2011-07-25  Bruno Haible  <bruno@clisp.org>
1693
1694         fcntl: Move AC_LIBOBJ invocation to module description.
1695         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1696         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1697
1698         fcntl: Remove call-in from fchdir.m4.
1699         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1701
1702         dup3: Remove potential call-in from fchdir.m4.
1703         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1705
1706         dup2: Move AC_LIBOBJ invocation to module description.
1707         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1708         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1709         Don't invoke AC_LIBOBJ.
1710         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1711
1712         dup2: Remove call-in from fchdir.m4.
1713         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1715
1716         fclose: Move AC_LIBOBJ invocation to module description.
1717         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1718         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1719         to 1.
1720         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1721
1722         fclose: Remove call-in from close.m4.
1723         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1724         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1725
1726         close: Move AC_LIBOBJ invocation to module description.
1727         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1728         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1729         1.
1730         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1731
1732         close: Remove call-in from fchdir.m4.
1733         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1735
1736         open: Move AC_LIBOBJ invocation to module description.
1737         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1738         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1739         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1740
1741         open: Remove call-in from fchdir.m4.
1742         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1744
1745         fchdir: Start to remove gl_REPLACE_* idiom.
1746         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1747         (gl_FUNC_FCHDIR): Invoke it.
1748
1749 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1750
1751         * lib/ftell.c (ftell): Comment out cast.
1752
1753         close: use gl_REPLACE_FCLOSE only if defined
1754         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1755         is defined.  The close module doesn't depend on the fclose module
1756         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1758         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1759
1760 2011-07-24  Jim Meyering  <meyering@redhat.com>
1761
1762         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1763         * tests/test-select.h (test_function): Declare as "static".
1764
1765 2011-07-24  Bruno Haible  <bruno@clisp.org>
1766
1767         doc: Mention the effects of AC_SYS_LARGEFILE.
1768         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1769         on this function.
1770         * doc/posix-functions/aio_error.texi: Likewise.
1771         * doc/posix-functions/aio_fsync.texi: Likewise.
1772         * doc/posix-functions/aio_read.texi: Likewise.
1773         * doc/posix-functions/aio_return.texi: Likewise.
1774         * doc/posix-functions/aio_suspend.texi: Likewise.
1775         * doc/posix-functions/aio_write.texi: Likewise.
1776         * doc/posix-functions/fgetpos.texi: Likewise.
1777         * doc/posix-functions/fopen.texi: Likewise.
1778         * doc/posix-functions/freopen.texi: Likewise.
1779         * doc/posix-functions/fsetpos.texi: Likewise.
1780         * doc/posix-functions/fstatvfs.texi: Likewise.
1781         * doc/posix-functions/ftruncate.texi: Likewise.
1782         * doc/posix-functions/ftw.texi: Likewise.
1783         * doc/posix-functions/getrlimit.texi: Likewise.
1784         * doc/posix-functions/glob.texi: Likewise.
1785         * doc/posix-functions/lio_listio.texi: Likewise.
1786         * doc/posix-functions/lockf.texi: Likewise.
1787         * doc/posix-functions/mkstemp.texi: Likewise.
1788         * doc/posix-functions/mmap.texi: Likewise.
1789         * doc/posix-functions/nftw.texi: Likewise.
1790         * doc/posix-functions/openat.texi: Likewise.
1791         * doc/posix-functions/opendir.texi: Likewise.
1792         * doc/posix-functions/posix_fadvise.texi: Likewise.
1793         * doc/posix-functions/posix_fallocate.texi: Likewise.
1794         * doc/posix-functions/pread.texi: Likewise.
1795         * doc/posix-functions/pwrite.texi: Likewise.
1796         * doc/posix-functions/readdir.texi: Likewise.
1797         * doc/posix-functions/readdir_r.texi: Likewise.
1798         * doc/posix-functions/rewinddir.texi: Likewise.
1799         * doc/posix-functions/scandir.texi: Likewise.
1800         * doc/posix-functions/seekdir.texi: Likewise.
1801         * doc/posix-functions/setrlimit.texi: Likewise.
1802         * doc/posix-functions/statvfs.texi: Likewise.
1803         * doc/posix-functions/telldir.texi: Likewise.
1804         * doc/posix-functions/tmpfile.texi: Likewise.
1805         * doc/posix-functions/truncate.texi: Likewise.
1806         * doc/glibc-functions/fallocate.texi: Likewise.
1807         * doc/glibc-functions/fstatfs.texi: Likewise.
1808         * doc/glibc-functions/fts_children.texi: Likewise.
1809         * doc/glibc-functions/fts_read.texi: Likewise.
1810         * doc/glibc-functions/getdirentries.texi: Likewise.
1811         * doc/glibc-functions/mkostemp.texi: Likewise.
1812         * doc/glibc-functions/mkostemps.texi: Likewise.
1813         * doc/glibc-functions/mkstemps.texi: Likewise.
1814         * doc/glibc-functions/preadv.texi: Likewise.
1815         * doc/glibc-functions/pwritev.texi: Likewise.
1816         * doc/glibc-functions/sendfile.texi: Likewise.
1817         * doc/glibc-functions/statfs.texi: Likewise.
1818
1819 2011-07-24  Bruno Haible  <bruno@clisp.org>
1820
1821         doc: Fix typo.
1822         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1823
1824 2011-07-24  Bruno Haible  <bruno@clisp.org>
1825
1826         doc: Mention fsusage.
1827         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1828
1829 2011-07-24  Bruno Haible  <bruno@clisp.org>
1830
1831         doc: Mention new glibc headers and functions.
1832         * doc/glibc-headers/gshadow.texi: New file.
1833         * doc/glibc-functions/endsgent.texi: New file.
1834         * doc/glibc-functions/fgetsgent.texi: New file.
1835         * doc/glibc-functions/fgetsgent_r.texi: New file.
1836         * doc/glibc-functions/getsgent.texi: New file.
1837         * doc/glibc-functions/getsgent_r.texi: New file.
1838         * doc/glibc-functions/getsgnam.texi: New file.
1839         * doc/glibc-functions/getsgnam_r.texi: New file.
1840         * doc/glibc-functions/putsgent.texi: New file.
1841         * doc/glibc-functions/setsgent.texi: New file.
1842         * doc/glibc-functions/sgetsgent.texi: New file.
1843         * doc/glibc-functions/sgetsgent_r.texi: New file.
1844         * doc/glibc-functions/malloc_info.texi: New file.
1845         * doc/glibc-functions/preadv.texi: New file.
1846         * doc/glibc-functions/pwritev.texi: New file.
1847         * doc/glibc-functions/register_printf_modifier.texi: New file.
1848         * doc/glibc-functions/register_printf_specifier.texi: New file.
1849         * doc/glibc-functions/register_printf_type.texi: New file.
1850         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1851         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1852         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1853         * doc/glibc-functions/pthread_getname_np.texi: New file.
1854         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1855         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1856         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1857         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1858         * doc/glibc-functions/pthread_setname_np.texi: New file.
1859         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1860         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1861         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1862         * doc/glibc-functions/qsort_r.texi: New file.
1863         * doc/glibc-functions/quick_exit.texi: New file.
1864         * doc/glibc-functions/syncfs.texi: New file.
1865         * doc/gnulib.texi: Include them.
1866         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1867         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1868         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1869         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1870         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1871         * doc/glibc-functions/execvpe.texi: Likewise.
1872
1873 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1874
1875         ftell: don't include <unistd.h>
1876         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1877         guaranteed to define off_t, and the ftell module depends on the
1878         stdio module.
1879
1880         ftell: do not assume wraparound signed arithmetic
1881         * lib/ftell.c: Include <limits.h>.
1882         (ftell): Don't assume wraparound signed arithmetic.
1883
1884 2011-07-24  Bruno Haible  <bruno@clisp.org>
1885
1886         close: No longer depend on module 'fclose'.
1887         * modules/close (Depends-on): Remove fclose.
1888         * NEWS: Mention the change.
1889         Suggested by Sam Steingold <sds@gnu.org>.
1890
1891 2011-07-24  Bruno Haible  <bruno@clisp.org>
1892
1893         fsusage: Enable large volume support on AIX >= 5.2.
1894         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1895         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1896         instead of STAT_STATVFS.
1897         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1898
1899         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1901         f_blocks field only on MacOS X.
1902
1903         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1905         * modules/fsusage (Depends-on): Add largefile.
1906
1907 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1908
1909         * README: Modernize discussion of signed integers.
1910         Assuming overflow wraparound is no longer safe.
1911         Mention ones' complement and signed magnitude.
1912
1913 2011-07-22  Bruno Haible  <bruno@clisp.org>
1914
1915         select tests, pselect tests: Refactor.
1916         * tests/test-select.h: New file, extracted from tests/test-select.c.
1917         (select_fn): New type.
1918         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1919         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1920         test_pipe): Add my_select argument.
1921         (test_function): Renamed from main. Add my_select argument.
1922         * tests/test-select.c: Move most code to tests/test-select.h. Include
1923         test-select.h.
1924         * modules/select-tests (Files): Add tests/test-select.h.
1925         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1926         (my_select, main): New functions.
1927         * modules/pselect-tests (Files): Add tests/test-select.h,
1928         tests/macros.h, tests/signature.h.
1929         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1930         (configure.ac): Check for <sys/wait.h>.
1931
1932 2011-07-22  Bruno Haible  <bruno@clisp.org>
1933
1934         sys_select tests: Check the signature of FD_*.
1935         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1936         signature tests from here...
1937         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1938         here.
1939         * modules/sys_select-tests (Files): Add tests/signature.h.
1940
1941 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1942
1943         largefile: new module, replacing large-inode
1944         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1945         * MODULES.html.sh: Add largefile, remove large-inode.
1946         * modules/largefile, m4/largefile.m4: New files.
1947         * modules/large-inode, m4/large-inode.m4: Remove.
1948
1949         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1950         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1951         implementations that use only 32 bits to count blocks.
1952         On typical hosts with 1024-byte blocks, this fails with file
1953         systems as small as 4 TiB.  Problem reported by Herb Wartens
1954         <http://debbugs.gnu.org/9140> and this should also fix a similar
1955         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1956
1957         large-inode: New module
1958         * MODULES.html.sh: Add it.
1959         * modules/large-inode, m4/large-inode.m4: New files.
1960
1961         extensions: Enable extensions on MacOS X 10.5 and later.
1962         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1963
1964 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1965
1966         file-has-acl: use acl_extended_file_nofollow if available
1967         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1968         (acl_extended_file): New macro.
1969         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1970         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1971
1972 2011-07-21  Bruno Haible  <bruno@clisp.org>
1973
1974         Declare system functions in a way that works with C++.
1975         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1976         declare fdopendir as extern "C".
1977         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1978         declare frexpl as extern "C".
1979         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1980         declare gai_strerror as extern "C".
1981         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1982         programs, declare gai_strerror as extern "C".
1983         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1984         declare getlogin_r as extern "C".
1985         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1986         as extern "C".
1987         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1988         declare ldexpl as extern "C".
1989         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1990         as extern "C".
1991         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1992         program, declare getmntinfo as extern "C".
1993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1994         stpncpy as extern "C".
1995         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1996         program, declare __xpg_strerror_r as extern "C".
1997         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1998         strndup as extern "C".
1999         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2000         declare memset and bzero as extern "C".
2001         Reported by Sam Steingold <sds@gnu.org>.
2002
2003 2011-07-12  Jim Meyering  <meyering@redhat.com>
2004
2005         maint.mk: prohibit inclusion of "verify.h" without use
2006         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2007
2008 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2009
2010         timer-time: A new module to check for timer_settime()
2011         * m4/timer_time.m4: Check for the posix function.
2012         * modules/timer-time: Add the new module.
2013         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2014         Mention it.
2015
2016 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2017             Bruno Haible  <bruno@clisp.org>
2018
2019         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2020         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2021         not defined, assume POSIX threads and look for pthread_sigmask in
2022         $LIBS, without changing $CPPFLAGS.
2023
2024 2011-07-19  Bruno Haible  <bruno@clisp.org>
2025
2026         strstr: Update cross-compilation guess.
2027         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2028         CPUs, guess no, in view of glibc
2029         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2030         Suggested by Eric Blake. Reported by Reuben Thomas.
2031
2032 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2033
2034         getopt-gnu: suppress core dumps from detection code
2035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2036         to suppress core dumps that may well occur on glibc systems.
2037         * modules/getopt-gnu: Depend on nocrash.
2038
2039 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2040
2041         pthread_sigmask: ensure usleep is declared
2042         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2043         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2044
2045 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         doc: Document NonStop portability issues.
2048         * doc/posix-functions/sigaction.texi (sigaction):
2049         * doc/posix-headers/signal.texi (signal.h):
2050         Document NonStop.  See Joachim Schmitz in
2051         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2052
2053 2011-07-15  Bruno Haible  <bruno@clisp.org>
2054
2055         ffsl, ffsll: Avoid unportable behaviour.
2056         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2057
2058 2011-07-15  Bruno Haible  <bruno@clisp.org>
2059
2060         ffs: More tests.
2061         * tests/test-ffs.c (NBITS): New macro.
2062         (main): Add more tests.
2063         * tests/test-ffsl.c (NBITS): New macro.
2064         (main): Add more tests.
2065         * tests/test-ffsll.c (NBITS): New macro.
2066         (main): Add more tests.
2067
2068 2011-07-15  Eric Blake  <eblake@redhat.com>
2069
2070         ffsl, ffsll: new modules
2071         * modules/ffsl: New file.
2072         * modules/ffsll: Likewise.
2073         * m4/ffsl.m4: Likewise.
2074         * m4/ffsll.m4: Likewise.
2075         * lib/ffsl.c: Likewise.
2076         * lib/ffsl.h: Likewise.
2077         * lib/ffsll.c: Likewise.
2078         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2079         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2080         * modules/string (Makefile.am): Substitute witnesses.
2081         * lib/strings.in.h (ffsl, ffsll): Declare.
2082         * modules/ffsl-tests: New test file.
2083         * modules/ffsll-tests: Likewise.
2084         * tests/test-ffsl.c: Likewise.
2085         * tests/test-ffsll.c: Likewise.
2086         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2087         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2088         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2089
2090         ffs: fix m4 prerequisite
2091         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2092
2093         ffs: avoid undefined behavior
2094         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2095         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2096         Reported by Bruno Haible.
2097
2098 2011-07-12  Bruno Haible  <bruno@clisp.org>
2099
2100         pthread_sigmask: Rely on module 'threadlib'.
2101         * modules/pthread_sigmask (Depends-on): Add threadlib.
2102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2103         is defined.
2104
2105 2011-07-12  Bruno Haible  <bruno@clisp.org>
2106
2107         regex: Depend on module 'strcase'.
2108         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2109
2110 2011-07-12  Jim Meyering  <meyering@redhat.com>
2111
2112         warn-on-use: fix typo in file name
2113         * modules/snippet/warn-on-use (Files): Correct file name:
2114         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2115
2116 2011-07-12  Bruno Haible  <bruno@clisp.org>
2117
2118         strings: Document module.
2119         * doc/posix-headers/strings.texi: Mention module 'strings'.
2120
2121 2011-07-12  Bruno Haible  <bruno@clisp.org>
2122
2123         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2124         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2125         (Files, Makefile.am): Update.
2126         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2127         * modules/stdlib (Depends-on): Update.
2128
2129 2011-07-12  Bruno Haible  <bruno@clisp.org>
2130
2131         * NEWS: Mention the changes.
2132
2133         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2134         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2135         (Files, Makefile.am): Update.
2136         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2137         * modules/arpa_inet (Depends-on): Update.
2138         * modules/ctype (Depends-on): Update.
2139         * modules/dirent (Depends-on): Update.
2140         * modules/fcntl-h (Depends-on): Update.
2141         * modules/glob (Depends-on): Update.
2142         * modules/iconv-h (Depends-on): Update.
2143         * modules/inttypes-incomplete (Depends-on): Update.
2144         * modules/langinfo (Depends-on): Update.
2145         * modules/locale (Depends-on): Update.
2146         * modules/math (Depends-on): Update.
2147         * modules/netdb (Depends-on): Update.
2148         * modules/poll-h (Depends-on): Update.
2149         * modules/pty (Depends-on): Update.
2150         * modules/search (Depends-on): Update.
2151         * modules/signal (Depends-on): Update.
2152         * modules/spawn (Depends-on): Update.
2153         * modules/stdio (Depends-on): Update.
2154         * modules/stdlib (Depends-on): Update.
2155         * modules/string (Depends-on): Update.
2156         * modules/strings (Depends-on): Update.
2157         * modules/sys_file (Depends-on): Update.
2158         * modules/sys_ioctl (Depends-on): Update.
2159         * modules/sys_select (Depends-on): Update.
2160         * modules/sys_socket (Depends-on): Update.
2161         * modules/sys_stat (Depends-on): Update.
2162         * modules/sys_time (Depends-on): Update.
2163         * modules/sys_times (Depends-on): Update.
2164         * modules/sys_utsname (Depends-on): Update.
2165         * modules/sys_wait (Depends-on): Update.
2166         * modules/termios (Depends-on): Update.
2167         * modules/time (Depends-on): Update.
2168         * modules/unistd (Depends-on): Update.
2169         * modules/wchar (Depends-on): Update.
2170         * modules/wctype-h (Depends-on): Update.
2171         * MODULES.html.sh (Support for building libraries and executables):
2172         Update.
2173
2174         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2175         * modules/snippet/unused-parameter: Renamed from
2176         modules/unused-parameter.
2177         (Files, Makefile.am): Update.
2178         * build-aux/snippet/unused-parameter.h: Renamed from
2179         build-aux/unused-parameter.h.
2180         * modules/selinux-h (Depends-on): Update.
2181         * modules/unistr/base (Depends-on): Update.
2182         * MODULES.html.sh (Core language properties): Update.
2183
2184         Rename module 'link-warning' to 'snippet/link-warning'.
2185         * modules/snippet/link-warning: Renamed from modules/link-warning.
2186         (Files, Makefile.am): Update.
2187         * build-aux/snippet/link-warning.h: Renamed from
2188         build-aux/link-warning.h.
2189         * MODULES.html.sh (Support for building libraries and executables):
2190         Update.
2191
2192         Rename module 'c++defs' to 'snippet/c++defs'.
2193         * modules/snippet/c++defs: Renamed from modules/c++defs.
2194         (Files, Makefile.am): Update.
2195         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2196         * modules/arpa_inet (Depends-on): Update.
2197         * modules/ctype (Depends-on): Update.
2198         * modules/dirent (Depends-on): Update.
2199         * modules/fcntl-h (Depends-on): Update.
2200         * modules/glob (Depends-on): Update.
2201         * modules/iconv-h (Depends-on): Update.
2202         * modules/langinfo (Depends-on): Update.
2203         * modules/locale (Depends-on): Update.
2204         * modules/math (Depends-on): Update.
2205         * modules/netdb (Depends-on): Update.
2206         * modules/poll-h (Depends-on): Update.
2207         * modules/pty (Depends-on): Update.
2208         * modules/search (Depends-on): Update.
2209         * modules/signal (Depends-on): Update.
2210         * modules/spawn (Depends-on): Update.
2211         * modules/stdio (Depends-on): Update.
2212         * modules/stdlib (Depends-on): Update.
2213         * modules/string (Depends-on): Update.
2214         * modules/strings (Depends-on): Update.
2215         * modules/sys_ioctl (Depends-on): Update.
2216         * modules/sys_select (Depends-on): Update.
2217         * modules/sys_socket (Depends-on): Update.
2218         * modules/sys_stat (Depends-on): Update.
2219         * modules/sys_time (Depends-on): Update.
2220         * modules/sys_wait (Depends-on): Update.
2221         * modules/termios (Depends-on): Update.
2222         * modules/time (Depends-on): Update.
2223         * modules/unistd (Depends-on): Update.
2224         * modules/wchar (Depends-on): Update.
2225         * modules/wctype-h (Depends-on): Update.
2226
2227         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2228         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2229         (Files, Makefile.am): Update.
2230         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2231         * modules/argv-iter (Depends-on): Update.
2232         * modules/arpa_inet (Depends-on): Update.
2233         * modules/dirent (Depends-on): Update.
2234         * modules/fcntl-h (Depends-on): Update.
2235         * modules/fnmatch (Depends-on): Update.
2236         * modules/getopt-posix (Depends-on): Update.
2237         * modules/glob (Depends-on): Update.
2238         * modules/iconv-h (Depends-on): Update.
2239         * modules/inttypes-incomplete (Depends-on): Update.
2240         * modules/locale (Depends-on): Update.
2241         * modules/math (Depends-on): Update.
2242         * modules/netdb (Depends-on): Update.
2243         * modules/search (Depends-on): Update.
2244         * modules/signal (Depends-on): Update.
2245         * modules/spawn (Depends-on): Update.
2246         * modules/stdio (Depends-on): Update.
2247         * modules/stdlib (Depends-on): Update.
2248         * modules/string (Depends-on): Update.
2249         * modules/strings (Depends-on): Update.
2250         * modules/sys_socket (Depends-on): Update.
2251         * modules/sys_stat (Depends-on): Update.
2252         * modules/sys_time (Depends-on): Update.
2253         * modules/sys_times (Depends-on): Update.
2254         * modules/sys_utsname (Depends-on): Update.
2255         * modules/time (Depends-on): Update.
2256         * modules/unistd (Depends-on): Update.
2257         * modules/wchar (Depends-on): Update.
2258         * MODULES.html.sh (Support for building libraries and executables):
2259         Update.
2260
2261 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2262
2263         Improvements on _Noreturn and related modules.
2264
2265         modules/_Exit-tests: test _Noreturn too
2266         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2267         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2268         (main): Use them.
2269
2270         stdnoreturn, stdnoreturn-tests: remove modules
2271         They're not needed here and a bit premature for use elsewhere.  See
2272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2273         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2274         * tests/test-stdnoreturn.c: Remove files.
2275         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2276         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2277         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2278         and using noreturn.
2279         * modules/openat, modules/sigpipe-die, modules/xalloc:
2280         * modules/xmemdup0, modules/xstrtol:
2281         Remove dependency on stdnoreturn.
2282
2283         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2284         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2285         Reparenthesize to avoid GCC warning.
2286         Support Microsoft's syntax.
2287         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2288
2289         _Noreturn-tests: remove module
2290         * modules/_Noreturn-tests: Remove.
2291         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2292         * tests/test-_Noreturn.c: Remove.
2293         * tests/test-stdnoreturn.c: Merge from the old
2294         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2295
2296 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2297
2298         _Noreturn, stdnoreturn, and related modules.
2299
2300         * top/maint.mk: Adjust to new noreturn support.
2301         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2302         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2303
2304         xalloc: use stdnoreturn.h
2305         * lib/xalloc.h: Include <stdnoreturn.h>.
2306         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2307         * modules/xalloc (Depends-on): Add stdnoreturn.
2308
2309         xstrtol: use stdnoreturn.h
2310         * lib/xstrtol.h: Include <stdnoreturn.h>.
2311         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2312         * modules/xstrtol (Depends-on): Add stdnoreturn.
2313
2314         xmemdup0: use stdnoreturn.h
2315         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2316         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2317         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2318
2319         sigpipe-die: use stdnoreturn.h
2320         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2321         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2322         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2323
2324         openat: use stdnoreturn.h
2325         * lib/openat.h: Include <stdnoreturn.h>.
2326         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2327         * modules/openat (Depends-on): Add stdnoreturn.
2328
2329         * lib/openat-die.c (openat_save_fail): Modernize comment.
2330
2331         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2332
2333         * lib/glthread/thread.h: Modernize comment.
2334
2335         obstack: use _Noreturn
2336         * lib/obstack.c (__attribute__): Remove macro.
2337         (print_and_abort): Use _Noreturn.
2338
2339         c-stack: use _Noreturn
2340         * lib/c-stack.c (die, overflow_handler, segv_handler):
2341         Use _Noreturn rather than __attribute__((noreturn)).
2342
2343         argmatch-tests, exclude_tests: use _Noreturn
2344         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2345         Remove.
2346         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2347
2348         stdlib: use _Noreturn
2349         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2350         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2351         * modules/stdlib (Depends-on): Add _Noreturn.
2352         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2353
2354         stdnoreturn-tests: new module
2355         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2356
2357         stdnoreturn: new module
2358         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2359         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2360
2361         _Noreturn-tests: new module
2362         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2363
2364         _Noreturn: new module
2365         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2366         New section, mentioning it.
2367         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2368
2369         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2370
2371 2011-07-11  Eric Blake  <eblake@redhat.com>
2372
2373         ffs: new module
2374         * modules/ffs: New file.
2375         * m4/ffs.m4: Likewise.
2376         * lib/ffs.c: Likewise.
2377         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2378         * modules/strings (Makefile.am): Substitute witness.
2379         (Depends-on): Add c++defs.
2380         * lib/strings.in.h (ffs): Declare.
2381         * modules/ffs-tests: New test file.
2382         * tests/test-ffs.c: Test new module.
2383         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2384         * doc/posix-functions/ffs.texi (ffs): Likewise.
2385
2386         regex: avoid compiler warning
2387         * lib/regex.c (includes): Include <strings.h>, for use of
2388         strcasecmp in regcomp.c.
2389         Reported by Joachim Schmitz.
2390
2391 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2392
2393         stdint: respect system's intmax_t if INTMAX_MAX
2394         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2395         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2396         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2397         long but int64_t is long long, and where we will clash with the
2398         system intmax_t if we override it.  See
2399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2400         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2401         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2402         similarly for UINTMAX_C.
2403
2404 2011-07-08  Bruno Haible  <bruno@clisp.org>
2405
2406         pthread_sigmask tests: Avoid a compiler warning.
2407         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2408         non-zero.
2409
2410         sigprocmask tests: A better way to avoid a compiler warning.
2411         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2412         (main): Complain if system() returns non-zero.
2413         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2414
2415 2011-07-08  Bruno Haible  <bruno@clisp.org>
2416
2417         pthread_sigmask: Work around IRIX bug.
2418         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2419         bug.
2420         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2421         there may be unblocked pending signals.
2422         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2423
2424 2011-07-08  Bruno Haible  <bruno@clisp.org>
2425
2426         pthread_sigmask: Work around Cygwin bug.
2427         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2428         bug.
2429         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2430         the system's pthread_sigmask function.
2431         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2432
2433 2011-07-08  Bruno Haible  <bruno@clisp.org>
2434
2435         pthread_sigmask: Work around bug in single-threaded implementation.
2436         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2437         FreeBSD, HP-UX, Solaris bug.
2438         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2439         * lib/pthread_sigmask.c: Include <stddef.h>.
2440         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2441         the system's pthread_sigmask function.
2442         * modules/pthread_sigmask (configure.ac): Invoke
2443         gl_PREREQ_PTHREAD_SIGMASK.
2444         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2445         HP-UX, Solaris.
2446
2447 2011-07-08  Eric Blake  <eblake@redhat.com>
2448
2449         test-sigprocmask: avoid compiler warning
2450         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2451         * tests/test-sigprocmask.c (main): Use it to silence warning.
2452         Reported by Jim Meyering.
2453
2454         test-snprintf: avoid compiler warning
2455         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2456         * tests/test-vsnprintf.c (main): Likewise.
2457         Reported by Jim Meyering.
2458
2459 2011-07-08  Bruno Haible  <bruno@clisp.org>
2460
2461         Tests for module 'pthread_sigmask'.
2462         * modules/pthread_sigmask-tests: New file.
2463         * tests/test-pthread_sigmask1.c: New file, based on
2464         tests/test-sigprocmask.c.
2465         * tests/test-pthread_sigmask2.c: New file.
2466
2467 2011-07-08  Jim Meyering  <meyering@redhat.com>
2468
2469         test-getopt.h: avoid warning about an unused variable
2470         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2471
2472 2011-07-07  Jim Meyering  <meyering@redhat.com>
2473
2474         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2475         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2476         now that it no longer contains leading TABs.
2477         Remove unused "url=FIXME" statement.
2478
2479 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2480
2481         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2482         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2483         When gl_THREADLIB is not in use, assume that the POSIX sematics
2484         are desired.  This is better for Emacs, which uses POSIX semantics
2485         on GNUish and/or POSIXish platforms, and does not use threads at
2486         all otherwise.
2487
2488         pthread_sigmask: fix typo when testing for libraries
2489         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2490         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2491
2492 2011-07-08  Eric Blake  <eblake@redhat.com>
2493
2494         fts: introduce FTS_NOATIME
2495         * lib/fts_.h (FTS_NOATIME): New bit flag.
2496         (FTS_OPTIONMASK): Adjust.
2497         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2498         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2499
2500 2011-07-08  Bruno Haible  <bruno@clisp.org>
2501
2502         Tests for module 'thread'.
2503         * modules/thread-tests: New file.
2504         * tests/test-thread_self.c: New file.
2505         * tests/test-thread_create.cc: New file.
2506
2507 2011-07-08  Bruno Haible  <bruno@clisp.org>
2508
2509         thread: Avoid gcc warnings when using gl_thread_self().
2510         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2511         'void *'.
2512         (gl_thread_self_pointer): Update.
2513
2514 2011-07-07  Bruno Haible  <bruno@clisp.org>
2515
2516         signal-c++-tests: Check declaration of pthread_sigmask.
2517         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2518         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2519         $(LIB_PTHREAD_SIGMASK).
2520
2521 2011-07-07  Bruno Haible  <bruno@clisp.org>
2522
2523         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2524         * lib/signal.in.h (pthread_sigmask): Override if
2525         REPLACE_PTHREAD_SIGMASK is 1.
2526         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2527         REPLACE_PTHREAD_SIGMASK.
2528         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2529         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2530         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2531         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2532         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2533
2534 2011-07-07  Bruno Haible  <bruno@clisp.org>
2535
2536         pthread_sigmask: Ensure declaration in <signal.h>.
2537         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2538         include <pthread.h>.
2539         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2540         problem.
2541
2542 2011-07-07  Bruno Haible  <bruno@clisp.org>
2543
2544         pthread_sigmask: Document the module.
2545         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2546
2547 2011-07-07  Bruno Haible  <bruno@clisp.org>
2548
2549         pthread_sigmask: Follow gnulib conventions.
2550         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2551         gl_PTHREAD_SIGMASK.
2552         * modules/pthread_sigmask (configure.ac): Update.
2553
2554 2011-07-07  Bruno Haible  <bruno@clisp.org>
2555
2556         pthread_sigmask: Make declaration C++ safe.
2557         * lib/signal.in.h: In two special conditions, just do an #include_next.
2558         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2559         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2560         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2561         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2562         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2563         not REPLACE_PTHREAD_MASK.
2564         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2565         not REPLACE_PTHREAD_MASK.
2566         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2567
2568 2011-07-07  Bruno Haible  <bruno@clisp.org>
2569
2570         pthread_sigmask: Fix return value.
2571         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2572         * lib/pthread_sigmask.c: New file.
2573         * modules/pthread_sigmask (Files): Add it.
2574         (configure.ac): Invoke AC_LIBOBJ.
2575
2576 2011-07-07  Eric Blake  <eblake@redhat.com>
2577
2578         getopt: more portable argv creation
2579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2580         const, use char arrays rather than strings.
2581         Suggested by Paul Eggert.
2582
2583 2011-07-07  Bruno Haible  <bruno@clisp.org>
2584
2585         Tests for module 'sigprocmask'.
2586         * modules/sigprocmask-tests: New file.
2587         * tests/test-sigprocmask.c: New file.
2588
2589 2011-07-07  Bruno Haible  <bruno@clisp.org>
2590
2591         float tests: Tweak.
2592         * tests/test-float.c (main): Tweak skip message.
2593
2594 2011-07-07  Eric Blake  <eblake@redhat.com>
2595
2596         getopt: avoid compiler warning during configure
2597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2598         assigning string literals to non-const pointer.
2599
2600         getopt-gnu: avoid crash in glibc getopt
2601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2602         * tests/test-getopt.h (test_getopt): Enhance test.
2603         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2604         * doc/posix-functions/getopt.texi (getopt): Document it.
2605         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2606         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2607         Likewise.
2608
2609 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2610
2611         getopt: handle W; without long options in getopt [BZ #12922]
2612         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2613         but no long options are defined, just return 'W'.
2614
2615 2011-07-07  Bruno Haible  <bruno@clisp.org>
2616
2617         Avoid literal tabs.
2618         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2619         variable containing a tab instead of a literal tab.
2620         Reported by Jim Meyering.
2621
2622 2011-07-07  Bruno Haible  <bruno@clisp.org>
2623
2624         Comments.
2625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2626
2627 2011-07-06  Bruno Haible  <bruno@clisp.org>
2628
2629         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2630         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2631         <winsock2.h>.
2632         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2633         lib/sys_socket.in.h.
2634         (close, gethostname): Hide declarations from <winsock2.h>.
2635         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2636         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2637         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2638         (select): Don't override if gnulib's <sys/select.h> was already
2639         included.
2640         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2641         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2642         setsockopt, shutdown, select): Tweak indentation.
2643
2644 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2645
2646         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2647         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2648         in an application that does not use the sys_select module.
2649
2650 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2651
2652         poll: do not return 0 on timeout=-1
2653         * lib/poll.c: Loop with yield if no events occured
2654
2655 2011-07-06  Eric Blake  <eblake@redhat.com>
2656
2657         pthread_sigmask: always replace when not using pthread
2658         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2659         replacement when using some threading other than pthread.  Fix
2660         logic bug.
2661
2662 2011-07-06  Bruno Haible  <bruno@clisp.org>
2663
2664         Comments.
2665         * m4/printf.m4: Update comments about mingw.
2666
2667 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2668
2669         sys_select: define sigset_t more portably
2670         * lib/sys_select.in.h: Always include <sys/types.h>, since
2671         we now need sigset_t and mingw defines it there.
2672         Include <signal.h> before split inclusion guard, to avoid
2673         mishaps on Solaris, whose <signal.h> eventually includes us.
2674         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2675         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2676         which come from ...
2677         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2678         gl_CHECK_TYPE_SIGSET_T.
2679         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2680         does the real work.
2681         * modules/sys_select (Depends-on): Add 'signal'.
2682
2683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2684         Suggested by Bruno Haible.
2685
2686         pselect: Use pthread_sigmask, not sigprocmask.
2687         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2688         multithreaded apps better than sigprocmask does.
2689         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2690         sigprocmask directly.
2691
2692 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2693
2694         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2695         Don't #undef,  since we don't need any underlying pselect.
2696         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2697         (Depends-on): Add select.
2698         (Link): Add $(LIBSOCKET).
2699         These changes suggested by Bruno Haible.
2700
2701         pselect: document better
2702         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2703         * doc/posix-functions/pselect.texi (pselect): Document new module.
2704
2705         pthread_sigmask: new module
2706         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2707         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2708         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2709         This is done only as a macro; I don't know how well that'll
2710         work for C++.  Move <sys/types.h> include before the include_next,
2711         to avoid mishap on Solaris.
2712         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2713         * modules/signal (Makefile.am): Substitute the check's results.
2714         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2715
2716         test-pselect: new module
2717         * modules/pselect-tests, tests/test-pselect.c: New files.
2718         * tests/test-select.c, tests/test-sys_select-c++.cc:
2719         If TEST_PSELECT is defined, test pselect instead of testing select.
2720
2721         * tests/test-sys_select.c (sigset_t): Test for it, too.
2722         Suggested by Bruno Haible.
2723
2724 2011-07-05  Eric Blake  <eblake@redhat.com>
2725
2726         snprintf: guarantee %1$d, for libintl
2727         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2728         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2729         * doc/posix-functions/snprintf.texi (snprintf): Update.
2730         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2731         * tests/test-snprintf.c (main): Enhance test.
2732         * tests/test-vsnprintf.c (main): Likewise.
2733
2734 2011-07-05  Jim Meyering  <meyering@redhat.com>
2735
2736         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2737         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2738         per Bruno's request, to accommodate this idiom (no space after "#")
2739         even when the function is inside an #if block:
2740         char *
2741         gets (char *s)
2742         #undef gets
2743         {
2744           ...
2745         }
2746
2747 2011-07-04  Jim Meyering  <meyering@redhat.com>
2748
2749         maint: indent with spaces, not TABs, and add a rule to check this
2750         * tests/test-userspec.c: Indent with spaces, not TABs.
2751         * tests/test-argp.c: Likewise.
2752         * tests/test-c-stack2.sh: Likewise.
2753         * tests/test-parse-duration.sh: Likewise
2754         * m4/strtod.m4: Likewise.
2755         * m4/alloca.m4: Likewise.
2756         * m4/pselect.m4: Likewise.
2757         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2758
2759 2011-07-03  Jim Meyering  <meyering@redhat.com>
2760
2761         maint.mk: correct omissions in prohibit_argmatch_without_use check
2762         This rule would mistakenly report that argmatch.h is included without
2763         use even when both the argmatch and invalid_arg macro were used.
2764         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2765         of argmatch and invalid_arg.
2766
2767 2011-07-03  Bruno Haible  <bruno@clisp.org>
2768
2769         Comments about EINTR.
2770         * lib/safe-read.h: Explain the purpose of this module.
2771         * lib/safe-write.h: Likewise.
2772         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2773         module.
2774         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2775         module.
2776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2777
2778 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2779
2780         xnanosleep: Rewrite to use new dtotimespec module.
2781         It has the conversion code that used to be in xnanosleep.
2782         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2783         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2784         (TIME_T_MAX): Remove.
2785         (xnanosleep): Rewrite in terms of dtotimespec.
2786         * modules/xnanosleep (Depends-on): Add dtotimespec.
2787         Remove intprops, stdbool.
2788
2789         timespec-add, timespec-sub: new modules
2790         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2791         * lib/timespec-add.c, lib/timespec-sub.c:
2792         * modules/timespec-add, modules/timespec-sub: New files.
2793
2794         dtotimespec: new module
2795         * lib/timespec.h (dtotimespec): New decl.
2796         * lib/dtotimespec.c, modules/dtotimespec: New files.
2797
2798         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2799
2800         pselect: new module
2801         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2802         (pselect): New decls.
2803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2804         since the standard pselect decl uses 'restrict'.
2805         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2806         HAVE_PSELECT, REPLACE_PSELECT.
2807         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2808         HAVE_PSELECT, REPLACE_PSELECT.
2809         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2810
2811         sys_select: don't depend on sys_socket
2812         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2814         This fix works on GNU and GNU-like platforms, but has not been tested
2815         on native Windows.
2816         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2818         gl_HEADER_SYS_SOCKET.
2819         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2820         gl_PREREQ_SYS_H_WINSOCK2.
2821
2822 2011-06-29  Eric Blake  <eblake@redhat.com>
2823
2824         pipe2: fix C89 compile problem
2825         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2826         Reported by Bruno Haible.
2827
2828         pipe, pipe2: don't corrupt fd on error
2829         * lib/pipe.c (pipe): Leave fd unchanged on error.
2830         * lib/pipe2.c (pipe2): Likewise.
2831         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2832         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2833
2834 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2835
2836         mmap-anon: do not use regular expressions inadvertently
2837         * m4/mmap-anon.m4: Remove trailing period from strings sought
2838         in the output.
2839
2840 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2841
2842         nanosleep: fix integer overflow problem
2843         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2844         arithmetic wraps around on overflow.
2845
2846         nanosleep: simplify carrying
2847         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2848         first call to the underyling nanosleep, not for the last one.
2849         This doesn't fix any bugs, but it simplifies the computation of
2850         the remaining delay.  Found while auditing integer overflow issues.
2851
2852         dup2: remove test for existence of fcntl
2853         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2854         "#if HAVE_FCNTL", in the configure-time test program.
2855         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2856         and therefore speeds up "configure" a bit.  Found while
2857         adding the dup2 module to Emacs.
2858
2859 2011-06-24  Eric Blake  <eblake@redhat.com>
2860
2861         maint.mk: enhance useless header checks
2862         * top/maint.mk (_sc_header_without_use): Check both include
2863         styles.
2864         (sc_prohibit_assert_without_use)
2865         (sc_prohibit_close_stream_without_use)
2866         (sc_prohibit_getopt_without_use)
2867         (sc_prohibit_quotearg_without_use)
2868         (sc_prohibit_quote_without_use)
2869         (sc_prohibit_long_options_without_use)
2870         (sc_prohibit_inttostr_without_use)
2871         (sc_prohibit_ignore_value_without_use)
2872         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2873         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2874         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2875         (sc_prohibit_hash_pjw_without_use)
2876         (sc_prohibit_safe_read_without_use)
2877         (sc_prohibit_argmatch_without_use)
2878         (sc_prohibit_canonicalize_without_use)
2879         (sc_prohibit_root_dev_ino_without_use)
2880         (sc_prohibit_openat_without_use)
2881         (sc_prohibit_c_ctype_without_use)
2882         (sc_prohibit_signal_without_use)
2883         (sc_prohibit_stdio--_without_use)
2884         (sc_prohibit_stdio-safer_without_use)
2885         (sc_prohibit_strings_without_use)
2886         (sc_prohibit_intprops_without_use)
2887         (sc_prohibit_stddef_without_use)
2888         (sc_prohibit_xfreopen_without_use): Update clients.
2889
2890 2011-06-24  Jim Meyering  <meyering@redhat.com>
2891
2892         syntax-check: keep one maint.mk rule in sync with its header
2893         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2894         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2895         I prefer to avoid temporary files here, so use <(...), but that
2896         is not supported by /bin/sh, so...
2897         (SHELL): Define to /bin/bash.
2898
2899 2011-06-24  Eric Blake  <eblake@redhat.com>
2900
2901         maint.mk: update sc_prohibit_intprops_without_use
2902         * top/maint.mk (_intprops_names): Match recent changes.
2903
2904 2011-06-24  Bruno Haible  <bruno@clisp.org>
2905
2906         strerror-override: No-op tweak.
2907         * lib/strerror-override.h (strerror_override): Reorder conditions,
2908         for consistency with lib/strerror-override.c.
2909
2910 2011-06-23  Eric Blake  <eblake@redhat.com>
2911
2912         maint.mk: test further PATH_MAX issues
2913         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2914         (sc_prohibit_path_max_allocation): ...and also test alloca.
2915         Suggested by Jim Meyering.
2916
2917 2011-06-22  Eric Blake  <eblake@redhat.com>
2918
2919         maint.mk: add syntax-check to avoid char[PATH_MAX]
2920         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2921
2922         stat: be robust to PATH_MAX definition
2923         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2924         * modules/stat (Depends-on): Add verify.
2925
2926         link: work around IRIX bug
2927         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2928         * lib/link.c (rpl_link): Work around it.
2929         * tests/test-link.h (test_link): Enhance test.
2930         * doc/posix-functions/link.texi (link): Document the bug.
2931
2932         getopt: silence clang warning
2933         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2934         dereference.
2935         Reported by Gustavo Martin Domato.
2936
2937 2011-06-22  Jim Meyering  <meyering@redhat.com>
2938
2939         bootstrap: do not insert a blank line into each .gitignore file
2940         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2941
2942 2011-06-21  Eric Blake  <eblake@redhat.com>
2943
2944         perror: test for output mismatch
2945         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2946         perror on IRIX.
2947
2948         strerror_r: fix OpenBSD behavior on out-of-range
2949         * lib/strerror_r.c (strerror_r): Always use maximal string.
2950         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2951
2952         strerror_r: fix OpenBSD behavior on 0
2953         * lib/strerror-override.c (strerror_override): Also override 0
2954         when needed.
2955         * lib/strerror-override.h (strerror_override): Likewise.
2956         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2957         earlier.
2958         * lib/strerror_r.c (strerror_r): Likewise.
2959         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2960         behavior...
2961         (gl_FUNC_STRERROR_0): ...into new macro.
2962         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2963         is overridden.
2964         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2965         * modules/strerror-override (Files): Add strerror.m4.
2966         (configure.ac): Also provide override for 0 when needed.
2967         * doc/posix-functions/strerror.texi (strerror): Document this.
2968         * doc/posix-functions/perror.texi (perror): Likewise.
2969
2970         perror: adjust array size
2971         * modules/perror (Depends-on): Add strerror-override.
2972         * lib/perror.c (perror): Use it to avoid magic number.
2973
2974         strerror-override: reduce size
2975         * lib/strerror-override.c (strerror_override): Use fewer lines.
2976
2977 2011-06-20  Bruno Haible  <bruno@clisp.org>
2978
2979         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2980         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2981
2982 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2983
2984         alloca: port to compilers that can optimize like GCC 4.6.0
2985         * lib/alloca.c (find_stack_direction): New signature, taken from
2986         Autoconf git.  This works with GCC 4.6.0.  This code should never
2987         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2988         be used with other compilers that optimize as well as GCC 4.6.0 does.
2989         (alloca): Adjust to new signature.
2990         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2991         New macro, which patches Autoconf in a similar way.
2992
2993         c-stack: stop worrying about stack direction
2994         * lib/c-stack.c (find_stack_direction): Remove.
2995         (segv_handler): Don't worry about stack direction growth, as it's
2996         too much of a pain to configure this correctly, given how compilers
2997         are optimizing-away our stack-growth detection code.  Instead, assume
2998         that any access to just before or just after the stack is OK.
2999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3000         Don't require AC_FUNC_ALLOCA; no longer needed.
3001
3002 2011-06-20  Eric Blake  <eblake@redhat.com>
3003
3004         test-stat: don't allocate PATH_MAX bytes
3005         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3006         PATH_MAX-sized buffer.
3007         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3008         * modules/stat-tests (Depends-on): Likewise.
3009         * tests/test-fstatat.c (includes): Drop pathmax.h.
3010         * tests/test-stat.c (includes): Likewise.
3011         Reported by Bruno Haible.
3012
3013 2011-06-20  Bruno Haible  <bruno@clisp.org>
3014
3015         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3016         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3017         * lib/float.c: New file.
3018         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3019         REPLACE_FLOAT_LDBL.
3020         * modules/float (Files): Add lib/float.c.
3021         (configure.ac): Invoke AC_LIBOBJ.
3022         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3023
3024 2011-06-20  Bruno Haible  <bruno@clisp.org>
3025
3026         Tests for module 'float'.
3027         * modules/float-tests: New file.
3028         * tests/test-float.c: New file.
3029
3030 2011-06-19  Bruno Haible  <bruno@clisp.org>
3031
3032         isinf: Coding style.
3033         * lib/isinf.c: Use GNU coding style.
3034
3035 2011-06-19  Bruno Haible  <bruno@clisp.org>
3036
3037         linkat test: Avoid test failure on AIX 7.1.
3038         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3039         * tests/test-link.h (test_link): Likewise.
3040
3041 2011-06-19  Bruno Haible  <bruno@clisp.org>
3042
3043         pread test: Avoid test failure on OpenBSD 4.9.
3044         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3045
3046 2011-06-19  Bruno Haible  <bruno@clisp.org>
3047
3048         sprintf-posix: Fix test failure on AIX 7.1.
3049         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3050         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3051         on AIX.
3052         * doc/posix-functions/fprintf.texi: Likewise.
3053         * doc/posix-functions/printf.texi: Likewise.
3054         * doc/posix-functions/snprintf.texi: Likewise.
3055         * doc/posix-functions/sprintf.texi: Likewise.
3056         * doc/posix-functions/vdprintf.texi: Likewise.
3057         * doc/posix-functions/vfprintf.texi: Likewise.
3058         * doc/posix-functions/vprintf.texi: Likewise.
3059         * doc/posix-functions/vsnprintf.texi: Likewise.
3060         * doc/posix-functions/vsprintf.texi: Likewise.
3061
3062 2011-06-19  Bruno Haible  <bruno@clisp.org>
3063
3064         roundl-ieee: Fix test failure on AIX 7.1.
3065         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3066         * doc/posix-functions/roundl.texi: Mention problem with negative
3067         arguments.
3068
3069 2011-06-19  Bruno Haible  <bruno@clisp.org>
3070
3071         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3072         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3073         * doc/posix-functions/round.texi: Mention problem with negative
3074         arguments.
3075         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3076
3077 2011-06-19  Bruno Haible  <bruno@clisp.org>
3078
3079         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3081         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3082         * doc/posix-functions/roundf.texi: Mention problem with negative
3083         arguments.
3084         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3085
3086 2011-06-19  Bruno Haible  <bruno@clisp.org>
3087
3088         ceilf-ieee: Work around bug on MacOS X 10.5.
3089         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3090
3091         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3092         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3093         IEEE compliant, avoid compiler optimizations.
3094         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3095         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3096         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3097         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3098         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3099         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3100         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3101         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3102         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3103         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3104
3105 2011-06-19  Bruno Haible  <bruno@clisp.org>
3106
3107         ceilf-ieee: Work around bug on AIX 7.1.
3108         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3109         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3110
3111 2011-06-19  Bruno Haible  <bruno@clisp.org>
3112
3113         ceil-ieee: Work around bug on AIX 7.1.
3114         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3115         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3116
3117 2011-06-18  Bruno Haible  <bruno@clisp.org>
3118
3119         fsync test: Avoid test failure on MacOS X and AIX.
3120         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3121         EINVAL.
3122
3123 2011-06-18  Bruno Haible  <bruno@clisp.org>
3124
3125         openat, fdopendir tests: Fix link errors.
3126         * modules/openat-tests (Depends-on): Add progname.
3127         * modules/fdopendir-tests (Depends-on): Likewise.
3128         * tests/test-fchownat.c: Include progname.h.
3129         (main): Call set_program_name.
3130         * tests/test-fstatat.c: Include progname.h.
3131         (main): Call set_program_name.
3132         * tests/test-mkdirat.c: Include progname.h.
3133         (main): Call set_program_name.
3134         * tests/test-openat.c: Include progname.h.
3135         (main): Call set_program_name.
3136         * tests/test-unlinkat.c: Include progname.h.
3137         (main): Call set_program_name.
3138         * tests/test-fdopendir.c: Include progname.h.
3139         (main): Call set_program_name.
3140
3141 2011-06-18  Bruno Haible  <bruno@clisp.org>
3142
3143         Doc update.
3144         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3145         HP-UX.
3146         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3147
3148 2011-06-18  Bruno Haible  <bruno@clisp.org>
3149
3150         getcwd tests: Avoid compilation error on HP-UX 11.31.
3151         * modules/getcwd-tests (Depends-on): Add pathmax.
3152         * tests/test-getcwd.c: Include pathmax.h.
3153
3154 2011-06-18  Bruno Haible  <bruno@clisp.org>
3155
3156         isfinite, isinf: Fix link error on AIX 6 and 7.
3157         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3158         needed, also test the macro with a 'float' argument.
3159         * m4/isinf.m4 (gl_ISINF): Likewise.
3160
3161 2011-06-18  Bruno Haible  <bruno@clisp.org>
3162
3163         getloadavg: Don't clobber LIBS. Regression from previous commit.
3164         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3165         AC_CHECK_LIB from here...
3166         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3167         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3168         gl_func_getloadavg_done.
3169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3170
3171 2011-06-18  Bruno Haible  <bruno@clisp.org>
3172
3173         clean-temp: Improve documentation.
3174         * lib/clean-temp.h: Explain better how to use this module.
3175         Reported by John Darrington <john@darrington.wattle.id.au>.
3176
3177 2011-06-17  Bruno Haible  <bruno@clisp.org>
3178
3179         pread, pwrite: Avoid cc warning on AIX.
3180         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3181         (pwrite): Likewise.
3182
3183 2011-06-17  Bruno Haible  <bruno@clisp.org>
3184
3185         spawn-pipe tests: Fix link error.
3186         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3188
3189 2011-06-17  Bruno Haible  <bruno@clisp.org>
3190
3191         Tests: Remove unnecessary dependency.
3192         * modules/canonicalize-tests (Depends-on): Remove progname.
3193         * modules/chown-tests (Depends-on): Likewise.
3194         * modules/dirname-tests (Depends-on): Likewise.
3195         * modules/fdopendir-tests (Depends-on): Likewise.
3196         * modules/fdutimensat-tests (Depends-on): Likewise.
3197         * modules/hash-tests (Depends-on): Likewise.
3198         * modules/lchown-tests (Depends-on): Likewise.
3199         * modules/linkat-tests (Depends-on): Likewise.
3200         * modules/renameat-tests (Depends-on): Likewise.
3201         * modules/spawn-pipe-tests (Depends-on): Likewise.
3202         * modules/utimensat-tests (Depends-on): Likewise.
3203
3204 2011-06-17  Bruno Haible  <bruno@clisp.org>
3205
3206         spawn-pipe tests: Fix link error.
3207         * tests/test-spawn-pipe-child.c: Undefine fflush.
3208
3209 2011-06-17  Bruno Haible  <bruno@clisp.org>
3210
3211         Fix tests link errors.
3212         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3213         * modules/chown-tests (Makefile.am): Don't link test-chown with
3214         LIBINTL.
3215         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3216         LIBINTL.
3217         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3218         LIBINTL.
3219         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3220         LIBINTL.
3221
3222 2011-06-16  Bruno Haible  <bruno@clisp.org>
3223
3224         crypto/gc-sha1: Fix recent regression.
3225         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3226         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3227
3228         crypto/gc-md5: Fix recent regression.
3229         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3230
3231         crypto/gc-md4: Fix recent regression.
3232         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3233         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3234
3235         crypto/gc-arctwo: Fix recent regression.
3236         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3237         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3238
3239         crypto/gc-rijndael: Fix recent regression.
3240         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3241         (configure.ac): Invoke AC_LIBOBJ here.
3242         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3244
3245         crypto/gc-hmac-sha1: Fix recent regression.
3246         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3247         (configure.ac): Invoke AC_LIBOBJ here.
3248         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3250
3251         crypto/gc-hmac-md5: Fix recent regression.
3252         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3253         (configure.ac): Invoke AC_LIBOBJ here.
3254         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3256
3257         crypto/gc-des: Fix recent regression.
3258         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3259         (configure.ac): Invoke AC_LIBOBJ here.
3260         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3262
3263         crypto/gc-arcfour: Fix recent regression.
3264         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3265         (configure.ac): Invoke AC_LIBOBJ here.
3266         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3268
3269 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3270
3271         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3272         After the 2011-05-21 change, this macro requires
3273         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3274         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3275
3276 2011-06-16  Bruno Haible  <bruno@clisp.org>
3277
3278         fprintftime: Move AC_LIBOBJ invocations to module description.
3279         * m4/fprintftime.m4: Remove file.
3280         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3281         (configure.ac): Remove gl_FPRINTFTIME call.
3282         (Makefile.am): Augment lib_SOURCES.
3283         Reported by Jim Meyering.
3284
3285 2011-06-16  Bruno Haible  <bruno@clisp.org>
3286
3287         tmpfile-safer: Finish 2011-05-23 commit.
3288         * m4/stdio-safer.m4: Really remove file.
3289         Reported by Jim Meyering.
3290
3291 2011-06-16  Bruno Haible  <bruno@clisp.org>
3292
3293         syntax-check: Fix typo.
3294         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3295         printf-posix.m4.
3296         Reported by Jim Meyering.
3297
3298 2011-06-13  Jim Meyering  <meyering@redhat.com>
3299
3300         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3301         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3302
3303 2011-05-23  Bruno Haible  <bruno@clisp.org>
3304
3305         yesno: Move AC_LIBOBJ invocations to module description.
3306         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3307         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3308
3309 2011-05-23  Bruno Haible  <bruno@clisp.org>
3310
3311         xstrtol: Move AC_LIBOBJ invocations to module description.
3312         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3313         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3314
3315 2011-05-23  Bruno Haible  <bruno@clisp.org>
3316
3317         xstrtold: Move AC_LIBOBJ invocations to module description.
3318         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3319         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3320
3321 2011-05-23  Bruno Haible  <bruno@clisp.org>
3322
3323         xstrtod: Move AC_LIBOBJ invocations to module description.
3324         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3325         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3326
3327 2011-05-23  Bruno Haible  <bruno@clisp.org>
3328
3329         xnanosleep: Move AC_LIBOBJ invocations to module description.
3330         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3331         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3332
3333 2011-05-23  Bruno Haible  <bruno@clisp.org>
3334
3335         xgetcwd: Move AC_LIBOBJ invocations to module description.
3336         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3337         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3338
3339 2011-05-23  Bruno Haible  <bruno@clisp.org>
3340
3341         xalloc: Move AC_LIBOBJ invocations to module description.
3342         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3343         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3344
3345 2011-05-23  Bruno Haible  <bruno@clisp.org>
3346
3347         write-any-file: Move AC_LIBOBJ invocations to module description.
3348         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3349         invocation.
3350         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3351
3352 2011-05-23  Bruno Haible  <bruno@clisp.org>
3353
3354         utimens: Move AC_LIBOBJ invocations to module description.
3355         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3356         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3357
3358 2011-05-23  Bruno Haible  <bruno@clisp.org>
3359
3360         utimecmp: Move AC_LIBOBJ invocations to module description.
3361         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3362         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3363
3364 2011-05-23  Bruno Haible  <bruno@clisp.org>
3365
3366         userspec: Move AC_LIBOBJ invocations to module description.
3367         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3368         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3369
3370 2011-05-23  Bruno Haible  <bruno@clisp.org>
3371
3372         unlinkdir: Move AC_LIBOBJ invocations to module description.
3373         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3374         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3375
3376 2011-05-23  Bruno Haible  <bruno@clisp.org>
3377
3378         unistd-safer: Move AC_LIBOBJ invocations to module description.
3379         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3380         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3381
3382 2011-05-23  Bruno Haible  <bruno@clisp.org>
3383
3384         tempname: Move AC_LIBOBJ invocations to module description.
3385         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3386         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3387
3388 2011-05-23  Bruno Haible  <bruno@clisp.org>
3389
3390         strftime: Move AC_LIBOBJ invocations to module description.
3391         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3392         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3393
3394 2011-05-23  Bruno Haible  <bruno@clisp.org>
3395
3396         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3397         * m4/stdlib-safer.m4: Remove file.
3398         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3399         (configure.ac): Remove gl_STDLIB_SAFER call.
3400         (Makefile.am): Augment lib_SOURCES.
3401
3402 2011-05-23  Bruno Haible  <bruno@clisp.org>
3403
3404         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3405         * m4/stdio-safer.m4: Remove file.
3406         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3407         (configure.ac): Remove gl_TMPFILE_SAFER call.
3408         (Makefile.am): Augment lib_SOURCES.
3409
3410 2011-05-23  Bruno Haible  <bruno@clisp.org>
3411
3412         popen-safer: Move AC_LIBOBJ invocations to module description.
3413         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3414         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3415         (configure.ac): Remove gl_POPEN_SAFER call.
3416         (Makefile.am): Augment lib_SOURCES.
3417
3418 2011-05-23  Bruno Haible  <bruno@clisp.org>
3419
3420         freopen-safer: Move AC_LIBOBJ invocations to module description.
3421         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3422         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3423         (configure.ac): Remove gl_FREOPEN_SAFER call.
3424         (Makefile.am): Augment lib_SOURCES.
3425
3426 2011-05-23  Bruno Haible  <bruno@clisp.org>
3427
3428         fopen-safer: Move AC_LIBOBJ invocations to module description.
3429         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3430         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3431         (configure.ac): Remove gl_FOPEN_SAFER call.
3432         (Makefile.am): Augment lib_SOURCES.
3433
3434 2011-05-23  Bruno Haible  <bruno@clisp.org>
3435
3436         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3437         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3438         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3439
3440 2011-05-23  Bruno Haible  <bruno@clisp.org>
3441
3442         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3443         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3444         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3445
3446 2011-05-23  Bruno Haible  <bruno@clisp.org>
3447
3448         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3449         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3450         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3451
3452 2011-05-23  Bruno Haible  <bruno@clisp.org>
3453
3454         settime: Move AC_LIBOBJ invocations to module description.
3455         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3456         * modules/settime (Makefile.am): Augment lib_SOURCES.
3457
3458 2011-05-23  Bruno Haible  <bruno@clisp.org>
3459
3460         savedir: Move AC_LIBOBJ invocations to module description.
3461         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3462         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3463
3464 2011-05-23  Bruno Haible  <bruno@clisp.org>
3465
3466         save-cwd: Move AC_LIBOBJ invocations to module description.
3467         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3468         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3469
3470 2011-05-23  Bruno Haible  <bruno@clisp.org>
3471
3472         same: Move AC_LIBOBJ invocations to module description.
3473         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3474         * modules/same (Makefile.am): Augment lib_SOURCES.
3475
3476 2011-05-23  Bruno Haible  <bruno@clisp.org>
3477
3478         safe-write: Move AC_LIBOBJ invocations to module description.
3479         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3480         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3481         instead of gl_SAFE_WRITE.
3482         (Makefile.am): Augment lib_SOURCES.
3483
3484 2011-05-23  Bruno Haible  <bruno@clisp.org>
3485
3486         safe-read: Move AC_LIBOBJ invocations to module description.
3487         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3488         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3489         of gl_SAFE_READ.
3490         (Makefile.am): Augment lib_SOURCES.
3491
3492 2011-05-23  Bruno Haible  <bruno@clisp.org>
3493
3494         safe-alloc: Move AC_LIBOBJ invocations to module description.
3495         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3496         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3497
3498 2011-05-23  Bruno Haible  <bruno@clisp.org>
3499
3500         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3501         * m4/rijndael.m4: Remove file.
3502         * modules/crypto/rijndael (Files): Remove it.
3503         (configure.ac): Remove gl_RIJNDAEL call.
3504         (Makefile.am): Augment lib_SOURCES.
3505
3506 2011-05-23  Bruno Haible  <bruno@clisp.org>
3507
3508         readtokens: Move AC_LIBOBJ invocations to module description.
3509         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3510         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3511
3512 2011-05-23  Bruno Haible  <bruno@clisp.org>
3513
3514         read-file: Move AC_LIBOBJ invocations to module description.
3515         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3516         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3517         of gl_FUNC_READ_FILE.
3518         (Makefile.am): Augment lib_SOURCES.
3519
3520 2011-05-23  Bruno Haible  <bruno@clisp.org>
3521
3522         quotearg: Move AC_LIBOBJ invocations to module description.
3523         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3524         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3525
3526 2011-05-23  Bruno Haible  <bruno@clisp.org>
3527
3528         quote: Move AC_LIBOBJ invocations to module description.
3529         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3530         * modules/quote (Makefile.am): Augment lib_SOURCES.
3531
3532 2011-05-23  Bruno Haible  <bruno@clisp.org>
3533
3534         posixver: Move AC_LIBOBJ invocations to module description.
3535         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3536         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3537
3538 2011-05-23  Bruno Haible  <bruno@clisp.org>
3539
3540         posixtm: Move AC_LIBOBJ invocations to module description.
3541         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3542         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3543
3544 2011-05-23  Bruno Haible  <bruno@clisp.org>
3545
3546         physmem: Move AC_LIBOBJ invocations to module description.
3547         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3548         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3549
3550 2011-05-23  Bruno Haible  <bruno@clisp.org>
3551
3552         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3553         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3554         invocation.
3555         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3556
3557 2011-05-23  Bruno Haible  <bruno@clisp.org>
3558
3559         mpsort: Move AC_LIBOBJ invocations to module description.
3560         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3561         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3562
3563 2011-05-23  Bruno Haible  <bruno@clisp.org>
3564
3565         modechange: Move AC_LIBOBJ invocations to module description.
3566         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3567         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3568
3569 2011-05-23  Bruno Haible  <bruno@clisp.org>
3570
3571         mkdir-p: Move AC_LIBOBJ invocations to module description.
3572         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3573         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3574
3575 2011-05-23  Bruno Haible  <bruno@clisp.org>
3576
3577         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3578         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3579         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3580
3581 2011-05-23  Bruno Haible  <bruno@clisp.org>
3582
3583         mgetgroups: Move AC_LIBOBJ invocations to module description.
3584         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3585         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3586
3587 2011-05-23  Bruno Haible  <bruno@clisp.org>
3588
3589         memxor: Move AC_LIBOBJ invocations to module description.
3590         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3591         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3592
3593 2011-05-23  Bruno Haible  <bruno@clisp.org>
3594
3595         memcoll: Move AC_LIBOBJ invocations to module description.
3596         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3597         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3598
3599 2011-05-23  Bruno Haible  <bruno@clisp.org>
3600
3601         memcasecmp: Move AC_LIBOBJ invocations to module description.
3602         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3603         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3604
3605 2011-05-23  Bruno Haible  <bruno@clisp.org>
3606
3607         crypto/md5: Move AC_LIBOBJ invocations to module description.
3608         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3609         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3610
3611 2011-05-23  Bruno Haible  <bruno@clisp.org>
3612
3613         crypto/md4: Move AC_LIBOBJ invocations to module description.
3614         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3615         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3616
3617 2011-05-23  Bruno Haible  <bruno@clisp.org>
3618
3619         crypto/md2: Move AC_LIBOBJ invocations to module description.
3620         * m4/md2.m4: Remove file.
3621         * modules/crypto/md2 (Files): Remove it.
3622         (configure.ac): Remove gl_MD2 call.
3623         (Makefile.am): Augment lib_SOURCES.
3624
3625 2011-05-23  Bruno Haible  <bruno@clisp.org>
3626
3627         long-options: Move AC_LIBOBJ invocations to module description.
3628         * m4/long-options.m4: Remove file.
3629         * modules/long-options (Files): Remove it.
3630         (configure.ac): Remove gl_LONG_OPTIONS call.
3631         (Makefile.am): Augment lib_SOURCES.
3632
3633 2011-05-23  Bruno Haible  <bruno@clisp.org>
3634
3635         i-ring: Move AC_LIBOBJ invocations to module description.
3636         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3637         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3638
3639 2011-05-23  Bruno Haible  <bruno@clisp.org>
3640
3641         idcache: Move AC_LIBOBJ invocations to module description.
3642         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3643         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3644
3645 2011-05-23  Bruno Haible  <bruno@clisp.org>
3646
3647         human: Move AC_LIBOBJ invocations to module description.
3648         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3649         * modules/human (Makefile.am): Augment lib_SOURCES.
3650
3651 2011-05-23  Bruno Haible  <bruno@clisp.org>
3652
3653         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3654         * m4/hmac-sha1.m4: Remove file.
3655         * modules/crypto/hmac-sha1 (Files): Remove it.
3656         (configure.ac): Remove gl_HMAC_SHA1 call.
3657         (Makefile.am): Augment lib_SOURCES.
3658
3659 2011-05-23  Bruno Haible  <bruno@clisp.org>
3660
3661         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3662         * m4/hmac-md5.m4: Remove file.
3663         * modules/crypto/hmac-md5 (Files): Remove it.
3664         (configure.ac): Remove gl_HMAC_MD5 call.
3665         (Makefile.am): Augment lib_SOURCES.
3666
3667 2011-05-23  Bruno Haible  <bruno@clisp.org>
3668
3669         hash: Move AC_LIBOBJ invocations to module description.
3670         * m4/hash.m4: Remove file.
3671         * modules/hash (Files): Remove it.
3672         (configure.ac): Remove gl_HASH call.
3673         (Makefile.am): Augment lib_SOURCES.
3674
3675 2011-05-23  Bruno Haible  <bruno@clisp.org>
3676
3677         hard-locale: Move AC_LIBOBJ invocations to module description.
3678         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3679         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3680
3681 2011-05-23  Bruno Haible  <bruno@clisp.org>
3682
3683         getugroups: Move AC_LIBOBJ invocations to module description.
3684         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3685         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3686
3687 2011-05-23  Bruno Haible  <bruno@clisp.org>
3688
3689         gettime: Move AC_LIBOBJ invocations to module description.
3690         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3691         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3692
3693 2011-05-23  Bruno Haible  <bruno@clisp.org>
3694
3695         getndelim2: Move AC_LIBOBJ invocations to module description.
3696         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3697         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3698
3699 2011-05-23  Bruno Haible  <bruno@clisp.org>
3700
3701         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3702         * m4/gc-pbkdf2-sha1.m4: Remove file.
3703         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3704         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3705         (Makefile.am): Augment lib_SOURCES.
3706
3707 2011-05-23  Bruno Haible  <bruno@clisp.org>
3708
3709         fts: Move AC_LIBOBJ invocations to module description.
3710         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3711         * modules/fts (configure.ac): ... to here.
3712
3713 2011-05-23  Bruno Haible  <bruno@clisp.org>
3714
3715         file-type: Move AC_LIBOBJ invocations to module description.
3716         * m4/file-type.m4: Remove file.
3717         * modules/file-type (Files): Remove it.
3718         (configure.ac): Remove gl_FILE_TYPE call.
3719         (Makefile.am): Augment lib_SOURCES.
3720
3721 2011-05-23  Bruno Haible  <bruno@clisp.org>
3722
3723         filenamecat*: Respect rules for use of AC_LIBOBJ.
3724         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3725         Remove AC_LIBOBJ invocation.
3726         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3727         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3728
3729 2011-05-23  Bruno Haible  <bruno@clisp.org>
3730
3731         filemode: Move AC_LIBOBJ invocations to module description.
3732         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3733         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3734
3735 2011-05-23  Bruno Haible  <bruno@clisp.org>
3736
3737         openat-safer: Move AC_LIBOBJ invocations to module description.
3738         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3739         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3740
3741 2011-05-23  Bruno Haible  <bruno@clisp.org>
3742
3743         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3744         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3745         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3746
3747 2011-05-23  Bruno Haible  <bruno@clisp.org>
3748
3749         exclude: Move AC_LIBOBJ invocations to module description.
3750         * m4/exclude.m4: Remove file.
3751         * modules/exclude (Files): Remove it.
3752         (configure.ac): Remove gl_EXCLUDE call.
3753         (Makefile.am): Augment lib_SOURCES.
3754
3755 2011-05-23  Bruno Haible  <bruno@clisp.org>
3756
3757         dirname*: Respect rules for use of AC_LIBOBJ.
3758         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3759         invocations.
3760         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3761         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3762
3763 2011-05-23  Bruno Haible  <bruno@clisp.org>
3764
3765         dirent-safer: Move AC_LIBOBJ invocations to module description.
3766         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3767         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3768
3769 2011-05-23  Bruno Haible  <bruno@clisp.org>
3770
3771         crypto/des: Move AC_LIBOBJ invocations to module description.
3772         * m4/des.m4: Remove file.
3773         * modules/crypto/des (Files): Remove it.
3774         (configure.ac): Remove gl_DES call.
3775         (Makefile.am): Augment lib_SOURCES.
3776
3777 2011-05-23  Bruno Haible  <bruno@clisp.org>
3778
3779         cycle-check: Move AC_LIBOBJ invocations to module description.
3780         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3781         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3782
3783 2011-05-23  Bruno Haible  <bruno@clisp.org>
3784
3785         c-strtold: Move AC_LIBOBJ invocations to module description.
3786         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3787         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3788
3789 2011-05-23  Bruno Haible  <bruno@clisp.org>
3790
3791         c-strtod: Move AC_LIBOBJ invocations to module description.
3792         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3793         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3794
3795 2011-05-23  Bruno Haible  <bruno@clisp.org>
3796
3797         crc: Move AC_LIBOBJ invocations to module description.
3798         * m4/crc.m4: Remove file.
3799         * modules/crc (Files): Remove it.
3800         (configure.ac): Remove gl_CRC call.
3801         (Makefile.am): Augment lib_SOURCES.
3802
3803 2011-05-23  Bruno Haible  <bruno@clisp.org>
3804
3805         close-stream: Move AC_LIBOBJ invocations to module description.
3806         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3807         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3808
3809 2011-05-23  Bruno Haible  <bruno@clisp.org>
3810
3811         closeout: Move AC_LIBOBJ invocations to module description.
3812         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3813         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3814
3815 2011-05-23  Bruno Haible  <bruno@clisp.org>
3816
3817         closein: Move AC_LIBOBJ invocations to module description.
3818         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3819         * modules/closein (Makefile.am): Augment lib_SOURCES.
3820
3821 2011-05-23  Bruno Haible  <bruno@clisp.org>
3822
3823         cloexec: Move AC_LIBOBJ invocations to module description.
3824         * m4/cloexec.m4: Remove file.
3825         * modules/cloexec (Files): Remove it.
3826         (configure.ac): Remove gl_CLOEXEC call.
3827         (Makefile.am): Augment lib_SOURCES.
3828
3829 2011-05-23  Bruno Haible  <bruno@clisp.org>
3830
3831         check-version: Move AC_LIBOBJ invocations to module description.
3832         * m4/check-version.m4: Remove file.
3833         * modules/check-version (Files): Remove it.
3834         (configure.ac): Remove gl_CHECK_VERSION call.
3835         (Makefile.am): Augment lib_SOURCES.
3836
3837 2011-05-23  Bruno Haible  <bruno@clisp.org>
3838
3839         chdir-safer: Move AC_LIBOBJ invocations to module description.
3840         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3841         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3842
3843 2011-05-23  Bruno Haible  <bruno@clisp.org>
3844
3845         canonicalize: Move AC_LIBOBJ invocations to module description.
3846         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3847         AC_LIBOBJ invocation.
3848         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3849
3850 2011-05-23  Bruno Haible  <bruno@clisp.org>
3851
3852         canon-host: Move AC_LIBOBJ invocations to module description.
3853         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3854         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3855         instead of gl_CANON_HOST.
3856         (Makefile.am): Augment lib_SOURCES.
3857
3858 2011-05-23  Bruno Haible  <bruno@clisp.org>
3859
3860         backupfile: Move AC_LIBOBJ invocations to module description.
3861         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3862         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3863
3864 2011-05-23  Bruno Haible  <bruno@clisp.org>
3865
3866         argmatch: Move AC_LIBOBJ invocations to module description.
3867         * m4/argmatch.m4: Remove file.
3868         * modules/argmatch (Files): Remove it.
3869         (configure.ac): Remove gl_ARGMATCH call.
3870         (Makefile.am): Augment lib_SOURCES.
3871
3872 2011-05-23  Bruno Haible  <bruno@clisp.org>
3873
3874         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3875         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3876         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3877
3878 2011-05-23  Bruno Haible  <bruno@clisp.org>
3879
3880         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3881         * m4/arcfour.m4: Remove file.
3882         * modules/crypto/arcfour (Files): Remove it.
3883         (configure.ac): Remove gl_ARCFOUR call.
3884         (Makefile.am): Augment lib_SOURCES.
3885
3886 2011-05-22  Bruno Haible  <bruno@clisp.org>
3887
3888         write: Move AC_LIBOBJ invocations to module description.
3889         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3890         * modules/write (configure.ac): ... to here.
3891
3892 2011-05-22  Bruno Haible  <bruno@clisp.org>
3893
3894         wmemset: Move AC_LIBOBJ invocations to module description.
3895         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3896         here...
3897         * modules/wmemset (configure.ac): ... to here.
3898
3899 2011-05-22  Bruno Haible  <bruno@clisp.org>
3900
3901         wmemmove: Move AC_LIBOBJ invocations to module description.
3902         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3903         here...
3904         * modules/wmemmove (configure.ac): ... to here.
3905
3906 2011-05-22  Bruno Haible  <bruno@clisp.org>
3907
3908         wmemcpy: Move AC_LIBOBJ invocations to module description.
3909         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3910         here...
3911         * modules/wmemcpy (configure.ac): ... to here.
3912
3913 2011-05-22  Bruno Haible  <bruno@clisp.org>
3914
3915         wmemcmp: Move AC_LIBOBJ invocations to module description.
3916         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3917         here...
3918         * modules/wmemcmp (configure.ac): ... to here.
3919
3920 2011-05-22  Bruno Haible  <bruno@clisp.org>
3921
3922         wmemchr: Move AC_LIBOBJ invocations to module description.
3923         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3924         here...
3925         * modules/wmemchr (configure.ac): ... to here.
3926
3927 2011-05-22  Bruno Haible  <bruno@clisp.org>
3928
3929         wcswidth: Move AC_LIBOBJ invocations to module description.
3930         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3931         here...
3932         * modules/wcswidth (configure.ac): ... to here.
3933
3934 2011-05-22  Bruno Haible  <bruno@clisp.org>
3935
3936         wcwidth: Respect rules for use of AC_LIBOBJ.
3937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3938         invocation from here...
3939         * modules/wcwidth (configure.ac): ... to here.
3940         (Depends-on): Update conditions.
3941
3942 2011-05-22  Bruno Haible  <bruno@clisp.org>
3943
3944         wctype: Move AC_LIBOBJ invocations to module description.
3945         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3946         invocation from here...
3947         * modules/wctype (configure.ac): ... to here.
3948         (Depends-on): Update conditions.
3949
3950 2011-05-22  Bruno Haible  <bruno@clisp.org>
3951
3952         wctrans: Move AC_LIBOBJ invocations to module description.
3953         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3954         invocation from here...
3955         * modules/wctrans (configure.ac): ... to here.
3956
3957 2011-05-22  Bruno Haible  <bruno@clisp.org>
3958
3959         wctomb: Move AC_LIBOBJ invocations to module description.
3960         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3961         invocations from here...
3962         * modules/wctomb (configure.ac): ... to here.
3963
3964 2011-05-22  Bruno Haible  <bruno@clisp.org>
3965
3966         wctob: Move AC_LIBOBJ invocations to module description.
3967         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3968         gl_PREREQ_WCTOB invocations from here...
3969         * modules/wctob (configure.ac): ... to here.
3970         (Depends-on): Update conditions.
3971
3972 2011-05-22  Bruno Haible  <bruno@clisp.org>
3973
3974         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3975         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3976         here...
3977         * modules/wcsxfrm (configure.ac): ... to here.
3978
3979 2011-05-22  Bruno Haible  <bruno@clisp.org>
3980
3981         wcstok: Move AC_LIBOBJ invocations to module description.
3982         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3983         * modules/wcstok (configure.ac): ... to here.
3984
3985 2011-05-22  Bruno Haible  <bruno@clisp.org>
3986
3987         wcsstr: Move AC_LIBOBJ invocations to module description.
3988         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3989         * modules/wcsstr (configure.ac): ... to here.
3990
3991 2011-05-22  Bruno Haible  <bruno@clisp.org>
3992
3993         wcsspn: Move AC_LIBOBJ invocations to module description.
3994         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3995         * modules/wcsspn (configure.ac): ... to here.
3996
3997 2011-05-22  Bruno Haible  <bruno@clisp.org>
3998
3999         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4000         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4001         gl_PREREQ_WCSRTOMBS invocations from here...
4002         * modules/wcsrtombs (configure.ac): ... to here.
4003
4004 2011-05-22  Bruno Haible  <bruno@clisp.org>
4005
4006         wcsrchr: Move AC_LIBOBJ invocations to module description.
4007         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4008         here...
4009         * modules/wcsrchr (configure.ac): ... to here.
4010
4011 2011-05-22  Bruno Haible  <bruno@clisp.org>
4012
4013         wcspbrk: Move AC_LIBOBJ invocations to module description.
4014         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4015         here...
4016         * modules/wcspbrk (configure.ac): ... to here.
4017
4018 2011-05-22  Bruno Haible  <bruno@clisp.org>
4019
4020         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4021         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4022         gl_PREREQ_WCSNRTOMBS invocations from here...
4023         * modules/wcsnrtombs (configure.ac): ... to here.
4024
4025 2011-05-22  Bruno Haible  <bruno@clisp.org>
4026
4027         wcsnlen: Move AC_LIBOBJ invocations to module description.
4028         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4029         here...
4030         * modules/wcsnlen (configure.ac): ... to here.
4031
4032 2011-05-22  Bruno Haible  <bruno@clisp.org>
4033
4034         wcsncpy: Move AC_LIBOBJ invocations to module description.
4035         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4036         here...
4037         * modules/wcsncpy (configure.ac): ... to here.
4038
4039 2011-05-22  Bruno Haible  <bruno@clisp.org>
4040
4041         wcsncmp: Move AC_LIBOBJ invocations to module description.
4042         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4043         here...
4044         * modules/wcsncmp (configure.ac): ... to here.
4045
4046 2011-05-22  Bruno Haible  <bruno@clisp.org>
4047
4048         wcsncat: Move AC_LIBOBJ invocations to module description.
4049         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4050         here...
4051         * modules/wcsncat (configure.ac): ... to here.
4052
4053 2011-05-22  Bruno Haible  <bruno@clisp.org>
4054
4055         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4056         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4057         from here...
4058         * modules/wcsncasecmp (configure.ac): ... to here.
4059
4060 2011-05-22  Bruno Haible  <bruno@clisp.org>
4061
4062         wcslen: Move AC_LIBOBJ invocations to module description.
4063         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4064         * modules/wcslen (configure.ac): ... to here.
4065
4066 2011-05-22  Bruno Haible  <bruno@clisp.org>
4067
4068         wcsdup: Move AC_LIBOBJ invocations to module description.
4069         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4070         * modules/wcsdup (configure.ac): ... to here.
4071
4072 2011-05-22  Bruno Haible  <bruno@clisp.org>
4073
4074         wcscspn: Move AC_LIBOBJ invocations to module description.
4075         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4076         here...
4077         * modules/wcscspn (configure.ac): ... to here.
4078
4079 2011-05-22  Bruno Haible  <bruno@clisp.org>
4080
4081         wcscpy: Move AC_LIBOBJ invocations to module description.
4082         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4083         * modules/wcscpy (configure.ac): ... to here.
4084
4085 2011-05-22  Bruno Haible  <bruno@clisp.org>
4086
4087         wcscoll: Move AC_LIBOBJ invocations to module description.
4088         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4089         here...
4090         * modules/wcscoll (configure.ac): ... to here.
4091
4092 2011-05-22  Bruno Haible  <bruno@clisp.org>
4093
4094         wcscmp: Move AC_LIBOBJ invocations to module description.
4095         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4096         * modules/wcscmp (configure.ac): ... to here.
4097
4098 2011-05-22  Bruno Haible  <bruno@clisp.org>
4099
4100         wcschr: Move AC_LIBOBJ invocations to module description.
4101         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4102         * modules/wcschr (configure.ac): ... to here.
4103
4104 2011-05-22  Bruno Haible  <bruno@clisp.org>
4105
4106         wcscat: Move AC_LIBOBJ invocations to module description.
4107         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4108         * modules/wcscat (configure.ac): ... to here.
4109
4110 2011-05-22  Bruno Haible  <bruno@clisp.org>
4111
4112         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4113         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4114         here...
4115         * modules/wcscasecmp (configure.ac): ... to here.
4116
4117 2011-05-22  Bruno Haible  <bruno@clisp.org>
4118
4119         wcrtomb: Move AC_LIBOBJ invocations to module description.
4120         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4121         invocations from here...
4122         * modules/wcrtomb (configure.ac): ... to here.
4123
4124 2011-05-22  Bruno Haible  <bruno@clisp.org>
4125
4126         wcpncpy: Move AC_LIBOBJ invocations to module description.
4127         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4128         here...
4129         * modules/wcpncpy (configure.ac): ... to here.
4130
4131 2011-05-22  Bruno Haible  <bruno@clisp.org>
4132
4133         wcpcpy: Move AC_LIBOBJ invocations to module description.
4134         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4135         * modules/wcpcpy (configure.ac): ... to here.
4136
4137 2011-05-22  Bruno Haible  <bruno@clisp.org>
4138
4139         waitpid: Move AC_LIBOBJ invocations to module description.
4140         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4141         invocation from here...
4142         * modules/waitpid (configure.ac): ... to here.
4143
4144 2011-05-22  Bruno Haible  <bruno@clisp.org>
4145
4146         utimensat: Move AC_LIBOBJ invocations to module description.
4147         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4148         here...
4149         * modules/utimensat (configure.ac): ... to here.
4150
4151 2011-05-22  Bruno Haible  <bruno@clisp.org>
4152
4153         usleep: Move AC_LIBOBJ invocations to module description.
4154         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4155         here...
4156         * modules/usleep (configure.ac): ... to here.
4157
4158 2011-05-22  Bruno Haible  <bruno@clisp.org>
4159
4160         unlockpt: Move AC_LIBOBJ invocations to module description.
4161         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4162         gl_PREREQ_UNLOCKPT invocations from here...
4163         * modules/unlockpt (configure.ac): ... to here.
4164
4165 2011-05-22  Bruno Haible  <bruno@clisp.org>
4166
4167         unlink: Respect rules for use of AC_LIBOBJ.
4168         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4169         * modules/unlink (configure.ac): ... to here.
4170
4171 2011-05-22  Bruno Haible  <bruno@clisp.org>
4172
4173         uname: Move AC_LIBOBJ invocations to module description.
4174         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4176         here...
4177         * modules/uname (configure.ac): ... to here.
4178
4179 2011-05-22  Bruno Haible  <bruno@clisp.org>
4180
4181         ttyname_r: Move AC_LIBOBJ invocations to module description.
4182         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4183         gl_PREREQ_TTYNAME_R invocations from here...
4184         * modules/ttyname_r (configure.ac): ... to here.
4185
4186 2011-05-22  Bruno Haible  <bruno@clisp.org>
4187
4188         tsearch: Move AC_LIBOBJ invocations to module description.
4189         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4190         invocations from here...
4191         * modules/tsearch (configure.ac): ... to here.
4192
4193 2011-05-22  Bruno Haible  <bruno@clisp.org>
4194
4195         towctrans: Move AC_LIBOBJ invocations to module description.
4196         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4197         AC_LIBOBJ invocation from here...
4198         * modules/towctrans (configure.ac): ... to here.
4199
4200 2011-05-22  Bruno Haible  <bruno@clisp.org>
4201
4202         tmpfile: Move AC_LIBOBJ invocations to module description.
4203         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4204         invocations from here...
4205         * modules/tmpfile (configure.ac): ... to here.
4206
4207 2011-05-22  Bruno Haible  <bruno@clisp.org>
4208
4209         times: Move AC_LIBOBJ invocations to module description.
4210         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4211         * modules/times (configure.ac): ... to here.
4212
4213 2011-05-22  Bruno Haible  <bruno@clisp.org>
4214
4215         time_r: Move AC_LIBOBJ invocations to module description.
4216         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4217         invocations from here...
4218         * modules/time_r (configure.ac): ... to here.
4219
4220 2011-05-22  Bruno Haible  <bruno@clisp.org>
4221
4222         timegm: Move AC_LIBOBJ invocations to module description.
4223         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4224         invocations from here...
4225         * modules/timegm (configure.ac): ... to here.
4226
4227 2011-05-22  Bruno Haible  <bruno@clisp.org>
4228
4229         tcgetsid: Move AC_LIBOBJ invocations to module description.
4230         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4231         and gl_PREREQ_TCGETSID invocations from here...
4232         * modules/tcgetsid (configure.ac): ... to here.
4233         (Depends-on): Update conditions.
4234
4235 2011-05-22  Bruno Haible  <bruno@clisp.org>
4236
4237         symlinkat: Move AC_LIBOBJ invocations to module description.
4238         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4239         here...
4240         * modules/symlinkat (configure.ac): ... to here.
4241
4242 2011-05-22  Bruno Haible  <bruno@clisp.org>
4243
4244         symlink: Move AC_LIBOBJ invocations to module description.
4245         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4246         here...
4247         * modules/symlink (configure.ac): ... to here.
4248
4249 2011-05-22  Bruno Haible  <bruno@clisp.org>
4250
4251         strverscmp: Move AC_LIBOBJ invocations to module description.
4252         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4254         from here...
4255         * modules/strverscmp (configure.ac): ... to here.
4256
4257 2011-05-22  Bruno Haible  <bruno@clisp.org>
4258
4259         strtok_r: Move AC_LIBOBJ invocations to module description.
4260         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4261         and gl_PREREQ_STRTOK_R invocations from here...
4262         * modules/strtok_r (configure.ac): ... to here.
4263         (Depends-on): Update conditions.
4264
4265 2011-05-22  Bruno Haible  <bruno@clisp.org>
4266
4267         strtoumax: Move AC_LIBOBJ invocations to module description.
4268         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4270         from here...
4271         * modules/strtoumax (configure.ac): ... to here.
4272
4273 2011-05-22  Bruno Haible  <bruno@clisp.org>
4274
4275         strtoimax: Move AC_LIBOBJ invocations to module description.
4276         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4277         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4278         from here...
4279         * modules/strtoimax (configure.ac): ... to here.
4280
4281 2011-05-22  Bruno Haible  <bruno@clisp.org>
4282
4283         strtoull: Move AC_LIBOBJ invocations to module description.
4284         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4286         from here...
4287         * modules/strtoull (configure.ac): ... to here.
4288
4289 2011-05-22  Bruno Haible  <bruno@clisp.org>
4290
4291         strtoll: Move AC_LIBOBJ invocations to module description.
4292         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4294         here...
4295         * modules/strtoll (configure.ac): ... to here.
4296
4297 2011-05-22  Bruno Haible  <bruno@clisp.org>
4298
4299         strtoul: Move AC_LIBOBJ invocations to module description.
4300         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4301         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4302         * modules/strtoul (configure.ac): ... to here.
4303
4304 2011-05-22  Bruno Haible  <bruno@clisp.org>
4305
4306         strtol: Move AC_LIBOBJ invocations to module description.
4307         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4308         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4309         * modules/strtol (configure.ac): ... to here.
4310
4311 2011-05-22  Bruno Haible  <bruno@clisp.org>
4312
4313         strtod: Move AC_LIBOBJ invocations to module description.
4314         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4315         invocations from here...
4316         * modules/strtod (configure.ac): ... to here.
4317
4318 2011-05-22  Bruno Haible  <bruno@clisp.org>
4319
4320         strstr*: Move AC_LIBOBJ invocations to module description.
4321         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4322         invocations from here...
4323         * modules/strstr-simple (configure.ac): ... to here.
4324         * modules/strstr (configure.ac): ... and here.
4325
4326 2011-05-22  Bruno Haible  <bruno@clisp.org>
4327
4328         strsignal: Move AC_LIBOBJ invocations to module description.
4329         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4330         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4331         * modules/strsignal (configure.ac): ... to here.
4332         (Depends-on): Update conditions.
4333
4334 2011-05-22  Bruno Haible  <bruno@clisp.org>
4335
4336         strsep: Move AC_LIBOBJ invocations to module description.
4337         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4339         here...
4340         * modules/strsep (configure.ac): ... to here.
4341
4342 2011-05-22  Bruno Haible  <bruno@clisp.org>
4343
4344         strptime: Move AC_LIBOBJ invocations to module description.
4345         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4346         gl_PREREQ_STRPTIME invocations from here...
4347         * modules/strptime (configure.ac): ... to here.
4348
4349 2011-05-22  Bruno Haible  <bruno@clisp.org>
4350
4351         strpbrk: Move AC_LIBOBJ invocations to module description.
4352         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4354         here...
4355         * modules/strpbrk (configure.ac): ... to here.
4356
4357 2011-05-22  Bruno Haible  <bruno@clisp.org>
4358
4359         strnlen: Move AC_LIBOBJ invocations to module description.
4360         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4361         invocations from here...
4362         * modules/strnlen (configure.ac): ... to here.
4363
4364 2011-05-22  Bruno Haible  <bruno@clisp.org>
4365
4366         strndup: Move AC_LIBOBJ invocations to module description.
4367         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4368         invocations from here...
4369         * modules/strndup (configure.ac): ... to here.
4370         (Depends-on): Update conditions.
4371
4372 2011-05-22  Bruno Haible  <bruno@clisp.org>
4373
4374         strncat: Move AC_LIBOBJ invocations to module description.
4375         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4376         invocations from here...
4377         * modules/strncat (configure.ac): ... to here.
4378
4379 2011-05-22  Bruno Haible  <bruno@clisp.org>
4380
4381         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4382         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4383         invocations from here...
4384         * modules/strdup (configure.ac): ... to here.
4385         * modules/strdup-posix (configure.ac): ... and here.
4386
4387 2011-05-22  Bruno Haible  <bruno@clisp.org>
4388
4389         strcspn: Move AC_LIBOBJ invocations to module description.
4390         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4391         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4392         here...
4393         * modules/strcspn (configure.ac): ... to here.
4394
4395 2011-05-22  Bruno Haible  <bruno@clisp.org>
4396
4397         strchrnul: Move AC_LIBOBJ invocations to module description.
4398         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4399         gl_PREREQ_STRCHRNUL invocations from here...
4400         * modules/strchrnul (configure.ac): ... to here.
4401
4402 2011-05-22  Bruno Haible  <bruno@clisp.org>
4403
4404         strcasestr*: Move AC_LIBOBJ invocations to module description.
4405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4406         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4407         * modules/strcasestr-simple (configure.ac): ... to here.
4408         * modules/strcasestr (configure.ac): ... and here.
4409
4410 2011-05-22  Bruno Haible  <bruno@clisp.org>
4411
4412         strcase: Move AC_LIBOBJ invocations to module description.
4413         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4414         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4415         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4416         gl_PREREQ_STRNCASECMP invocations from here...
4417         * modules/strcase (configure.ac): ... to here.
4418
4419 2011-05-22  Bruno Haible  <bruno@clisp.org>
4420
4421         stpncpy: Move AC_LIBOBJ invocations to module description.
4422         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4423         here...
4424         * modules/stpncpy (configure.ac): ... to here.
4425
4426 2011-05-22  Bruno Haible  <bruno@clisp.org>
4427
4428         stpcpy: Move AC_LIBOBJ invocations to module description.
4429         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4431         here...
4432         * modules/stpcpy (configure.ac): ... to here.
4433
4434 2011-05-21  Bruno Haible  <bruno@clisp.org>
4435
4436         stat: Move AC_LIBOBJ invocations to module description.
4437         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4438         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4439         here...
4440         * modules/stat (configure.ac): ... to here.
4441
4442 2011-05-21  Bruno Haible  <bruno@clisp.org>
4443
4444         sleep: Move AC_LIBOBJ invocations to module description.
4445         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4446         * modules/sleep (configure.ac): ... to here.
4447
4448 2011-05-21  Bruno Haible  <bruno@clisp.org>
4449
4450         signbit: Move AC_LIBOBJ invocations to module description.
4451         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4452         * modules/signbit (configure.ac): ... to here.
4453
4454 2011-05-21  Bruno Haible  <bruno@clisp.org>
4455
4456         sigprocmask: Move AC_LIBOBJ invocations to module description.
4457         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4458         gl_PREREQ_SIGPROMASK invocations from here...
4459         * modules/sigprocmask (configure.ac): ... to here.
4460
4461 2011-05-21  Bruno Haible  <bruno@clisp.org>
4462
4463         sigaction: Move AC_LIBOBJ invocations to module description.
4464         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4465         gl_PREREQ_SIGACTION invocations from here...
4466         * modules/sigaction (configure.ac): ... to here.
4467
4468 2011-05-21  Bruno Haible  <bruno@clisp.org>
4469
4470         sig2str: Move AC_LIBOBJ invocations to module description.
4471         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4473         here...
4474         * modules/sig2str (configure.ac): ... to here.
4475
4476 2011-05-21  Bruno Haible  <bruno@clisp.org>
4477
4478         setlocale: Move AC_LIBOBJ invocations to module description.
4479         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4480         gl_PREREQ_SETLOCALE invocations from here...
4481         * modules/setlocale (configure.ac): ... to here.
4482
4483 2011-05-21  Bruno Haible  <bruno@clisp.org>
4484
4485         unsetenv: Move AC_LIBOBJ invocations to module description.
4486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4487         and gl_PREREQ_UNSETENV invocations from here...
4488         * modules/unsetenv (configure.ac): ... to here.
4489         (Depends-on): Update.
4490
4491 2011-05-21  Bruno Haible  <bruno@clisp.org>
4492
4493         setenv: Move AC_LIBOBJ invocations to module description.
4494         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4495         here...
4496         * modules/setenv (configure.ac): ... to here.
4497
4498 2011-05-21  Bruno Haible  <bruno@clisp.org>
4499
4500         selinux-h: Move AC_LIBOBJ invocations to module description.
4501         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4502         AC_LIBOBJ invocation from here...
4503         * modules/selinux-h (configure.ac): ... to here.
4504
4505 2011-05-21  Bruno Haible  <bruno@clisp.org>
4506
4507         select: Respect rules for use of AC_LIBOBJ.
4508         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4509         here...
4510         * modules/select (configure.ac): ... to here.
4511
4512 2011-05-21  Bruno Haible  <bruno@clisp.org>
4513
4514         scandir: Move AC_LIBOBJ invocations to module description.
4515         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4516         invocations from here...
4517         * modules/scandir (configure.ac): ... to here.
4518
4519 2011-05-21  Bruno Haible  <bruno@clisp.org>
4520
4521         rpmatch: Move AC_LIBOBJ invocations to module description.
4522         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4524         here...
4525         * modules/rpmatch (configure.ac): ... to here.
4526
4527 2011-05-21  Bruno Haible  <bruno@clisp.org>
4528
4529         rmdir: Respect rules for use of AC_LIBOBJ.
4530         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4531         * modules/rmdir (configure.ac): ... to here.
4532
4533 2011-05-21  Bruno Haible  <bruno@clisp.org>
4534
4535         renameat: Move AC_LIBOBJ invocations to module description.
4536         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4537         here...
4538         * modules/renameat (configure.ac): ... to here.
4539
4540 2011-05-21  Bruno Haible  <bruno@clisp.org>
4541
4542         rename: Respect rules for use of AC_LIBOBJ.
4543         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4544         here...
4545         * modules/rename (configure.ac): ... to here.
4546
4547 2011-05-21  Bruno Haible  <bruno@clisp.org>
4548
4549         remove: Move AC_LIBOBJ invocations to module description.
4550         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4551         here...
4552         * modules/remove (configure.ac): ... to here.
4553
4554 2011-05-21  Bruno Haible  <bruno@clisp.org>
4555
4556         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4557         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4558         macro.
4559         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4560         * modules/relocatable-lib (configure.ac): ... to here.
4561         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4562         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4563
4564 2011-05-21  Bruno Haible  <bruno@clisp.org>
4565
4566         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4567         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4568         here...
4569         * modules/relocatable-prog (configure.ac): ... to here.
4570
4571 2011-05-21  Bruno Haible  <bruno@clisp.org>
4572
4573         regex: Move AC_LIBOBJ invocations to module description.
4574         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4575         invocations from here...
4576         * modules/regex (configure.ac): ... to here.
4577
4578 2011-05-21  Bruno Haible  <bruno@clisp.org>
4579
4580         realloc-*: Move AC_LIBOBJ invocations to module description.
4581         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4582         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4583         AC_LIBOBJ invocations from here...
4584         * modules/realloc-gnu (configure.ac): ... to here.
4585         * modules/realloc-posix (configure.ac): ... and here.
4586
4587 2011-05-21  Bruno Haible  <bruno@clisp.org>
4588
4589         readutmp: Move AC_LIBOBJ invocations to module description.
4590         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4591         * modules/readutmp (configure.ac): ... to here.
4592
4593 2011-05-21  Bruno Haible  <bruno@clisp.org>
4594
4595         readlinkat: Move AC_LIBOBJ invocations to module description.
4596         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4597         here...
4598         * modules/readlinkat (configure.ac): ... to here.
4599
4600 2011-05-21  Bruno Haible  <bruno@clisp.org>
4601
4602         readlink: Move AC_LIBOBJ invocations to module description.
4603         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4604         gl_PREREQ_READLINK invocations from here...
4605         * modules/readlink (configure.ac): ... to here.
4606
4607 2011-05-21  Bruno Haible  <bruno@clisp.org>
4608
4609         readline: Move AC_LIBOBJ invocations to module description.
4610         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4611         gl_PREREQ_READLINE invocations from here...
4612         * modules/readline (configure.ac): ... to here.
4613
4614 2011-05-21  Bruno Haible  <bruno@clisp.org>
4615
4616         read: Move AC_LIBOBJ invocations to module description.
4617         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4618         * modules/read (configure.ac): ... to here.
4619
4620 2011-05-21  Bruno Haible  <bruno@clisp.org>
4621
4622         rawmemchr: Move AC_LIBOBJ invocations to module description.
4623         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4624         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4625         from here...
4626         * modules/rawmemchr (configure.ac): ... to here.
4627
4628 2011-05-21  Bruno Haible  <bruno@clisp.org>
4629
4630         random_r: Move AC_LIBOBJ invocations to module description.
4631         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4632         gl_PREREQ_RANDOM_R invocations from here...
4633         * modules/random_r (configure.ac): ... to here.
4634
4635 2011-05-21  Bruno Haible  <bruno@clisp.org>
4636
4637         pwrite: Move AC_LIBOBJ invocations to module description.
4638         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4639         * modules/pwrite (configure.ac): ... to here.
4640
4641 2011-05-21  Bruno Haible  <bruno@clisp.org>
4642
4643         putenv: Move AC_LIBOBJ invocations to module description.
4644         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4645         * modules/putenv (configure.ac): ... to here.
4646
4647 2011-05-21  Bruno Haible  <bruno@clisp.org>
4648
4649         login_tty: Move AC_LIBOBJ invocations to module description.
4650         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4651         * modules/login_tty (configure.ac): ... to here.
4652
4653 2011-05-21  Bruno Haible  <bruno@clisp.org>
4654
4655         openpty: Move AC_LIBOBJ invocations to module description.
4656         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4657         * modules/openpty (configure.ac): ... to here.
4658
4659 2011-05-21  Bruno Haible  <bruno@clisp.org>
4660
4661         forkpty: Move AC_LIBOBJ invocations to module description.
4662         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4663         * modules/forkpty (configure.ac): ... to here.
4664
4665 2011-05-21  Bruno Haible  <bruno@clisp.org>
4666
4667         ptsname: Move AC_LIBOBJ invocations to module description.
4668         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4669         invocations from here...
4670         * modules/ptsname (configure.ac): ... to here.
4671
4672 2011-05-21  Bruno Haible  <bruno@clisp.org>
4673
4674         pread: Move AC_LIBOBJ invocations to module description.
4675         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4676         * modules/pread (configure.ac): ... to here.
4677
4678 2011-05-21  Bruno Haible  <bruno@clisp.org>
4679
4680         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4681         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4682         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4683         * modules/posix_spawn (configure.ac): ... to here.
4684         * modules/posix_spawnp (configure.ac): ... and here.
4685
4686 2011-05-21  Bruno Haible  <bruno@clisp.org>
4687
4688         popen: Move AC_LIBOBJ invocations to module description.
4689         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4690         invocations from here...
4691         * modules/popen (configure.ac): ... to here.
4692
4693 2011-05-21  Bruno Haible  <bruno@clisp.org>
4694
4695         poll: Move AC_LIBOBJ invocations to module description.
4696         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4697         invocations from here...
4698         * modules/poll (configure.ac): ... to here.
4699
4700 2011-05-21  Bruno Haible  <bruno@clisp.org>
4701
4702         pipe-posix: Move AC_LIBOBJ invocations to module description.
4703         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4704         * modules/pipe-posix (configure.ac): ... to here.
4705
4706 2011-05-21  Bruno Haible  <bruno@clisp.org>
4707
4708         openat: Respect rules for use of AC_LIBOBJ.
4709         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4710         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4711         * modules/openat (configure.ac): ... to here.
4712
4713 2011-05-21  Bruno Haible  <bruno@clisp.org>
4714
4715         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4716         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4717         invocation from here...
4718         * modules/obstack-printf (configure.ac): ... to here.
4719         * modules/obstack-printf-posix (configure.ac): ... and here.
4720
4721 2011-05-21  Bruno Haible  <bruno@clisp.org>
4722
4723         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4724         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4725         from here...
4726         * modules/nl_langinfo (configure.ac): ... to here.
4727
4728 2011-05-21  Bruno Haible  <bruno@clisp.org>
4729
4730         nanosleep: Move AC_LIBOBJ invocations to module description.
4731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4732         gl_PREREQ_NANOSLEEP invocations from here...
4733         * modules/nanosleep (configure.ac): ... to here.
4734
4735 2011-05-21  Bruno Haible  <bruno@clisp.org>
4736
4737         mountlist: Move AC_LIBOBJ invocations to module description.
4738         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4739         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4740         * modules/mountlist (configure.ac): ... to here.
4741
4742 2011-05-21  Bruno Haible  <bruno@clisp.org>
4743
4744         mktime: Respect rules for use of AC_LIBOBJ.
4745         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4746         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4747         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4748         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4749         * modules/mktime (configure.ac): ... to here.
4750         * modules/mktime-internal (configure.ac): ... and here.
4751         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4752
4753 2011-05-21  Bruno Haible  <bruno@clisp.org>
4754
4755         mkstemps: Move AC_LIBOBJ invocations to module description.
4756         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4757         here...
4758         * modules/mkstemps (configure.ac): ... to here.
4759
4760 2011-05-21  Bruno Haible  <bruno@clisp.org>
4761
4762         mkstemp: Move AC_LIBOBJ invocations to module description.
4763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4764         gl_PREREQ_MKSTEMP invocations from here...
4765         * modules/mkstemp (configure.ac): ... to here.
4766
4767 2011-05-21  Bruno Haible  <bruno@clisp.org>
4768
4769         mkostemps: Move AC_LIBOBJ invocations to module description.
4770         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4771         here...
4772         * modules/mkostemps (configure.ac): ... to here.
4773
4774 2011-05-21  Bruno Haible  <bruno@clisp.org>
4775
4776         mkostemp: Move AC_LIBOBJ invocations to module description.
4777         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4778         gl_PREREQ_MKOSTEMP invocations from here...
4779         * modules/mkostemp (configure.ac): ... to here.
4780
4781 2011-05-21  Bruno Haible  <bruno@clisp.org>
4782
4783         mknod: Move AC_LIBOBJ invocations to module description.
4784         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4785         * modules/mknod (configure.ac): ... to here.
4786
4787 2011-05-21  Bruno Haible  <bruno@clisp.org>
4788
4789         mkfifoat: Move AC_LIBOBJ invocations to module description.
4790         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4791         here...
4792         * modules/mkfifoat (configure.ac): ... to here.
4793
4794 2011-05-21  Bruno Haible  <bruno@clisp.org>
4795
4796         mkfifo: Respect rules for use of AC_LIBOBJ.
4797         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4798         here...
4799         * modules/mkfifo (configure.ac): ... to here.
4800
4801 2011-05-21  Bruno Haible  <bruno@clisp.org>
4802
4803         mkdtemp: Move AC_LIBOBJ invocations to module description.
4804         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4805         invocations from here...
4806         * modules/mkdtemp (configure.ac): ... to here.
4807
4808 2011-05-21  Bruno Haible  <bruno@clisp.org>
4809
4810         mkdir: Move AC_LIBOBJ invocations to module description.
4811         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4812         * modules/mkdir (configure.ac): ... to here.
4813
4814 2011-05-21  Bruno Haible  <bruno@clisp.org>
4815
4816         memset: Move AC_LIBOBJ invocations to module description.
4817         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4819         here...
4820         * modules/memset (configure.ac): ... to here.
4821
4822 2011-05-21  Bruno Haible  <bruno@clisp.org>
4823
4824         memrchr: Move AC_LIBOBJ invocations to module description.
4825         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4826         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4827         here...
4828         * modules/memrchr (configure.ac): ... to here.
4829
4830 2011-05-21  Bruno Haible  <bruno@clisp.org>
4831
4832         mempcpy: Move AC_LIBOBJ invocations to module description.
4833         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4834         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4835         here...
4836         * modules/mempcpy (configure.ac): ... to here.
4837
4838 2011-05-21  Bruno Haible  <bruno@clisp.org>
4839
4840         memmove: Move AC_LIBOBJ invocations to module description.
4841         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4842         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4843         here...
4844         * modules/memmove (configure.ac): ... to here.
4845
4846 2011-05-21  Bruno Haible  <bruno@clisp.org>
4847
4848         memmem*: Move AC_LIBOBJ invocations to module description.
4849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4850         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4851         here...
4852         (gl_FUNC_MEMMEM): ... and here...
4853         * modules/memmem-simple (configure.ac): ... to here.
4854         * modules/memmem (configure.ac): ... and here.
4855
4856 2011-05-21  Bruno Haible  <bruno@clisp.org>
4857
4858         memcpy: Move AC_LIBOBJ invocations to module description.
4859         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4861         here...
4862         * modules/memcpy (configure.ac): ... to here.
4863
4864 2011-05-21  Bruno Haible  <bruno@clisp.org>
4865
4866         memcmp: Simplify autoconf macro.
4867         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4868         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4869         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4870
4871 2011-05-21  Bruno Haible  <bruno@clisp.org>
4872
4873         memcmp: Move AC_LIBOBJ invocations to module description.
4874         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4875         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4876         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4877         * modules/memcmp (configure.ac): ... to here.
4878         (Depends-on): Update conditions.
4879
4880 2011-05-21  Bruno Haible  <bruno@clisp.org>
4881
4882         memchr: Respect rules for use of AC_LIBOBJ.
4883         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4884         invocations from here...
4885         * modules/memchr (configure.ac): ... to here.
4886
4887 2011-05-21  Bruno Haible  <bruno@clisp.org>
4888
4889         mbtowc: Move AC_LIBOBJ invocations to module description.
4890         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4891         invocations from here...
4892         * modules/mbtowc (configure.ac): ... to here.
4893
4894 2011-05-21  Bruno Haible  <bruno@clisp.org>
4895
4896         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4897         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4898         gl_PREREQ_MBSRTOWCS invocations from here...
4899         * modules/mbsrtowcs (configure.ac): ... to here.
4900
4901 2011-05-21  Bruno Haible  <bruno@clisp.org>
4902
4903         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4904         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4905         gl_PREREQ_MBSNRTOWCS invocations from here...
4906         * modules/mbsnrtowcs (configure.ac): ... to here.
4907
4908 2011-05-21  Bruno Haible  <bruno@clisp.org>
4909
4910         mbsinit: Move AC_LIBOBJ invocations to module description.
4911         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4912         invocations from here...
4913         * modules/mbsinit (configure.ac): ... to here.
4914
4915 2011-05-21  Bruno Haible  <bruno@clisp.org>
4916
4917         mbrlen: Move AC_LIBOBJ invocations to module description.
4918         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4919         invocations from here...
4920         * modules/mbrlen (configure.ac): ... to here.
4921
4922 2011-05-21  Bruno Haible  <bruno@clisp.org>
4923
4924         mbrtowc: Respect rules for use of AC_LIBOBJ.
4925         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4926         invocations from here...
4927         * modules/mbrtowc (configure.ac): ... to here.
4928
4929 2011-05-21  Bruno Haible  <bruno@clisp.org>
4930
4931         malloc-*: Move AC_LIBOBJ invocations to module description.
4932         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4933         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4934         AC_LIBOBJ invocations from here...
4935         * modules/malloc-gnu (configure.ac): ... to here.
4936         * modules/malloc-posix (configure.ac): ... and here.
4937
4938 2011-05-21  Bruno Haible  <bruno@clisp.org>
4939
4940         lstat, openat: Respect rules for use of AC_LIBOBJ.
4941         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4942         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4943         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4944         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4945         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4946         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4947         here.
4948         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4949
4950 2011-05-21  Bruno Haible  <bruno@clisp.org>
4951
4952         lseek: Move AC_LIBOBJ invocations to module description.
4953         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4954         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4955         * modules/lseek (configure.ac): ... to here.
4956
4957 2011-05-21  Bruno Haible  <bruno@clisp.org>
4958
4959         linkat: Move AC_LIBOBJ invocations to module description.
4960         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4961         here...
4962         * modules/linkat (configure.ac): ... to here.
4963
4964 2011-05-21  Bruno Haible  <bruno@clisp.org>
4965
4966         link: Respect rules for use of AC_LIBOBJ.
4967         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4968         * modules/link (configure.ac): ... to here.
4969
4970 2011-05-21  Bruno Haible  <bruno@clisp.org>
4971
4972         lchown: Move AC_LIBOBJ invocations to module description.
4973         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4974         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4975         * modules/lchown (configure.ac): ... to here.
4976
4977 2011-05-21  Bruno Haible  <bruno@clisp.org>
4978
4979         iswctype: Move AC_LIBOBJ invocations to module description.
4980         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4981         here...
4982         * modules/iswctype (configure.ac): ... to here.
4983
4984 2011-05-21  Bruno Haible  <bruno@clisp.org>
4985
4986         iswblank: Move AC_LIBOBJ invocations to module description.
4987         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4988         here...
4989         * modules/iswblank (configure.ac): ... to here.
4990
4991 2011-05-21  Bruno Haible  <bruno@clisp.org>
4992
4993         atanl: Move AC_LIBOBJ invocations to module description.
4994         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4995         * modules/atanl (configure.ac): ... to here.
4996
4997 2011-05-21  Bruno Haible  <bruno@clisp.org>
4998
4999         acosl: Move AC_LIBOBJ invocations to module description.
5000         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5001         * modules/acosl (configure.ac): ... to here.
5002
5003 2011-05-21  Bruno Haible  <bruno@clisp.org>
5004
5005         asinl: Respect rules for use of AC_LIBOBJ.
5006         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5007         * modules/asinl (configure.ac): ... to here.
5008
5009 2011-05-21  Bruno Haible  <bruno@clisp.org>
5010
5011         tanl: Move AC_LIBOBJ invocations to module description.
5012         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5013         * modules/tanl (configure.ac): ... to here.
5014
5015 2011-05-21  Bruno Haible  <bruno@clisp.org>
5016
5017         cosl: Move AC_LIBOBJ invocations to module description.
5018         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5019         * modules/cosl (configure.ac): ... to here.
5020
5021 2011-05-21  Bruno Haible  <bruno@clisp.org>
5022
5023         sinl: Move AC_LIBOBJ invocations to module description.
5024         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5025         * modules/sinl (configure.ac): ... to here.
5026
5027 2011-05-21  Bruno Haible  <bruno@clisp.org>
5028
5029         logl: Move AC_LIBOBJ invocations to module description.
5030         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5031         * modules/logl (configure.ac): ... to here.
5032
5033 2011-05-21  Bruno Haible  <bruno@clisp.org>
5034
5035         expl: Move AC_LIBOBJ invocations to module description.
5036         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5037         * modules/expl (configure.ac): ... to here.
5038
5039 2011-05-21  Bruno Haible  <bruno@clisp.org>
5040
5041         roundl: Move AC_LIBOBJ invocations to module description.
5042         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5043         * modules/roundl (configure.ac): ... to here.
5044
5045 2011-05-21  Bruno Haible  <bruno@clisp.org>
5046
5047         round: Move AC_LIBOBJ invocations to module description.
5048         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5049         * modules/round (configure.ac): ... to here.
5050
5051 2011-05-21  Bruno Haible  <bruno@clisp.org>
5052
5053         roundf: Move AC_LIBOBJ invocations to module description.
5054         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5055         * modules/roundf (configure.ac): ... to here.
5056
5057 2011-05-21  Bruno Haible  <bruno@clisp.org>
5058
5059         truncl: Move AC_LIBOBJ invocations to module description.
5060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5061         * modules/truncl (configure.ac): ... to here.
5062
5063 2011-05-21  Bruno Haible  <bruno@clisp.org>
5064
5065         trunc: Move AC_LIBOBJ invocations to module description.
5066         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5067         * modules/trunc (configure.ac): ... to here.
5068
5069 2011-05-21  Bruno Haible  <bruno@clisp.org>
5070
5071         truncf: Move AC_LIBOBJ invocations to module description.
5072         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5073         * modules/truncf (configure.ac): ... to here.
5074
5075 2011-05-21  Bruno Haible  <bruno@clisp.org>
5076
5077         ceill: Move AC_LIBOBJ invocations to module description.
5078         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5079         * modules/ceill (configure.ac): ... to here.
5080
5081 2011-05-21  Bruno Haible  <bruno@clisp.org>
5082
5083         ceil: Move AC_LIBOBJ invocations to module description.
5084         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5085         * modules/ceil (configure.ac): ... to here.
5086
5087 2011-05-21  Bruno Haible  <bruno@clisp.org>
5088
5089         ceilf: Move AC_LIBOBJ invocations to module description.
5090         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5091         * modules/ceilf (configure.ac): ... to here.
5092
5093 2011-05-21  Bruno Haible  <bruno@clisp.org>
5094
5095         floorl: Respect rules for use of AC_LIBOBJ.
5096         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5097         * modules/floorl (configure.ac): ... to here.
5098
5099 2011-05-21  Bruno Haible  <bruno@clisp.org>
5100
5101         floor: Respect rules for use of AC_LIBOBJ.
5102         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5103         * modules/floor (configure.ac): ... to here.
5104
5105 2011-05-21  Bruno Haible  <bruno@clisp.org>
5106
5107         floorf: Move AC_LIBOBJ invocations to module description.
5108         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5109         * modules/floorf (configure.ac): ... to here.
5110
5111 2011-05-20  Bruno Haible  <bruno@clisp.org>
5112
5113         sqrtl: Respect rules for use of AC_LIBOBJ.
5114         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5115         * modules/sqrtl (configure.ac): ... to here.
5116
5117 2011-05-20  Bruno Haible  <bruno@clisp.org>
5118
5119         ldexpl: Respect rules for use of AC_LIBOBJ.
5120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5121         * modules/ldexpl (configure.ac): ... to here.
5122
5123 2011-05-20  Bruno Haible  <bruno@clisp.org>
5124
5125         frexpl*: Respect rules for use of AC_LIBOBJ.
5126         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5127         invocation from here...
5128         * modules/frexpl (configure.ac): ... to here.
5129         * modules/frexpl-nolibm (configure.ac): ... and here.
5130
5131 2011-05-20  Bruno Haible  <bruno@clisp.org>
5132
5133         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5134         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5135         invocation from here...
5136         * modules/frexp (configure.ac): ... to here.
5137         * modules/frexp-nolibm (configure.ac): ... and here.
5138
5139 2011-05-20  Bruno Haible  <bruno@clisp.org>
5140
5141         isnan: Respect rules for use of AC_LIBOBJ.
5142         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5143         invocations here.
5144         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5145         REPLACE_ISNAN.
5146         * modules/isnand (configure.ac): Likewise.
5147         * modules/isnanl (configure.ac): Likewise.
5148
5149 2011-05-20  Bruno Haible  <bruno@clisp.org>
5150
5151         isnanl*: Respect rules for use of AC_LIBOBJ.
5152         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5153         invocation from here...
5154         * modules/isnanl (configure.ac): ... to here.
5155         * modules/isnanl-nolibm (configure.ac): ... and here.
5156
5157 2011-05-20  Bruno Haible  <bruno@clisp.org>
5158
5159         isnand*: Move AC_LIBOBJ invocations to module description.
5160         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5161         invocation from here...
5162         * modules/isnand (configure.ac): ... to here.
5163         * modules/isnand-nolibm (configure.ac): ... and here.
5164
5165 2011-05-20  Bruno Haible  <bruno@clisp.org>
5166
5167         isnanf*: Move AC_LIBOBJ invocations to module description.
5168         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5169         invocation from here...
5170         * modules/isnanf (configure.ac): ... to here.
5171         * modules/isnanf-nolibm (configure.ac): ... and here.
5172
5173 2011-05-20  Bruno Haible  <bruno@clisp.org>
5174
5175         isnan*: Separate the AC_LIBOBJ invocations.
5176         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5177         AC_LIBOBJ invocation.
5178         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5179         here.
5180         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5181         AC_LIBOBJ invocation.
5182         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5183         here.
5184         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5185         AC_LIBOBJ invocation.
5186         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5187         here.
5188         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5189
5190 2011-05-08  Bruno Haible  <bruno@clisp.org>
5191
5192         isinf: Move AC_LIBOBJ invocations to module description.
5193         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5194         * modules/isinf (configure.ac): ... to here.
5195
5196 2011-05-08  Bruno Haible  <bruno@clisp.org>
5197
5198         isfinite: Move AC_LIBOBJ invocations to module description.
5199         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5200         * modules/isfinite (configure.ac): ... to here.
5201
5202 2011-05-08  Bruno Haible  <bruno@clisp.org>
5203
5204         isblank: Move AC_LIBOBJ invocations to module description.
5205         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5206         here...
5207         * modules/isblank (configure.ac): ... to here.
5208
5209 2011-05-08  Bruno Haible  <bruno@clisp.org>
5210
5211         isapipe: Move AC_LIBOBJ invocations to module description.
5212         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5213         gl_PREREQ_ISAPIPE invocations from here...
5214         * modules/isapipe (configure.ac): ... to here.
5215         (Depends-on): Update condition.
5216
5217 2011-05-08  Bruno Haible  <bruno@clisp.org>
5218
5219         ioctl: Move AC_LIBOBJ invocations to module description.
5220         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5221         invocations from here...
5222         * modules/ioctl (configure.ac): ... to here.
5223         (Depends-on): Update condition.
5224
5225 2011-05-08  Bruno Haible  <bruno@clisp.org>
5226
5227         imaxdiv: Move AC_LIBOBJ invocations to module description.
5228         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5229         invocations from here...
5230         * modules/imaxdiv (configure.ac): ... to here.
5231
5232 2011-05-08  Bruno Haible  <bruno@clisp.org>
5233
5234         imaxabs: Move AC_LIBOBJ invocations to module description.
5235         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5236         invocations from here...
5237         * modules/imaxabs (configure.ac): ... to here.
5238
5239 2011-05-08  Bruno Haible  <bruno@clisp.org>
5240
5241         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5243         AC_LIBOBJ invocations from here...
5244         * modules/getaddrinfo (configure.ac): ... to here.
5245         (Depends-on): Add conditions.
5246
5247 2011-05-08  Bruno Haible  <bruno@clisp.org>
5248
5249         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5250         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5251         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5252         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5253         (gl_PREREQ_INET_PTON): ... from here.
5254         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5255         gl_PREREQ_INET_PTON here.
5256         (Depends-on): Update condition.
5257
5258 2011-05-08  Bruno Haible  <bruno@clisp.org>
5259
5260         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5261         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5262         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5263         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5264         (gl_PREREQ_INET_NTOP): ... from here.
5265         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5266         gl_PREREQ_INET_NTOP here.
5267         (Depends-on): Update condition.
5268
5269 2011-05-08  Bruno Haible  <bruno@clisp.org>
5270
5271         iconv_open: Move AC_LIBOBJ invocations to module description.
5272         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5273         AC_LIBOBJ invocations from here...
5274         * modules/iconv_open (configure.ac): ... to here.
5275
5276 2011-05-08  Bruno Haible  <bruno@clisp.org>
5277
5278         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5279         If module 'iconv_open' is among the main modules and module
5280         'iconv_open-utf' is among the tests dependencies, then
5281         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5282         return the special iconv_t values. Therefore iconv() and iconv_close()
5283         must support these special iconv_t values, already in lib, not only in
5284         tests.
5285         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5286         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5287         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5288         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5289         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5290         (Depends-on): Add the dependencies of iconv_open-utf.
5291         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5292         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5293         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5294
5295 2011-05-08  Bruno Haible  <bruno@clisp.org>
5296
5297         group-member: Move AC_LIBOBJ invocations to module description.
5298         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5299         gl_PREREQ_GROUP_MEMBER invocations from here...
5300         * modules/group-member (configure.ac): ... to here.
5301
5302 2011-05-08  Bruno Haible  <bruno@clisp.org>
5303
5304         grantpt: Move AC_LIBOBJ invocations to module description.
5305         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5306         invocations from here...
5307         * modules/grantpt (configure.ac): ... to here.
5308
5309 2011-05-08  Bruno Haible  <bruno@clisp.org>
5310
5311         glob: Move AC_LIBOBJ invocations to module description.
5312         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5313         from here...
5314         * modules/glob (configure.ac): ... to here.
5315
5316 2011-05-08  Bruno Haible  <bruno@clisp.org>
5317
5318         getusershell: Move AC_LIBOBJ invocations to module description.
5319         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5320         Move AC_LIBOBJ invocation from here...
5321         * modules/getusershell (configure.ac): ... to here.
5322         (Depends-on): Update condition.
5323
5324 2011-05-08  Bruno Haible  <bruno@clisp.org>
5325
5326         gettimeofday: Move AC_LIBOBJ invocations to module description.
5327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5328         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5329         gl_PREREQ_GETTIMEOFDAY invocations from here...
5330         * modules/gettimeofday (configure.ac): ... to here.
5331
5332 2011-05-08  Bruno Haible  <bruno@clisp.org>
5333
5334         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5335         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5336         just gl_FUNC_TZSET.
5337         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5338         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5340         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5341
5342 2011-05-08  Bruno Haible  <bruno@clisp.org>
5343
5344         getsubopt: Move AC_LIBOBJ invocations to module description.
5345         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5346         gl_PREREQ_GETSUBOPT invocations from here...
5347         * modules/getsubopt (configure.ac): ... to here.
5348
5349 2011-05-08  Bruno Haible  <bruno@clisp.org>
5350
5351         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5352         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5353         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5354         * modules/getpass-gnu (configure.ac): ... to here.
5355
5356 2011-05-08  Bruno Haible  <bruno@clisp.org>
5357
5358         getpass: Move AC_LIBOBJ invocations to module description.
5359         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5360         gl_PREREQ_GETPASS invocations from here...
5361         * modules/getpass (configure.ac): ... to here.
5362
5363 2011-05-08  Bruno Haible  <bruno@clisp.org>
5364
5365         getpagesize: Move AC_LIBOBJ invocations to module description.
5366         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5367         from here...
5368         * modules/getpagesize (configure.ac): ... to here.
5369
5370 2011-05-08  Bruno Haible  <bruno@clisp.org>
5371
5372         getopt: Move AC_LIBOBJ invocations to module description.
5373         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5374         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5375         invocations from here...
5376         * modules/getopt-gnu (configure.ac): ... to here.
5377         * modules/getopt-posix (configure.ac): ... and here.
5378         (Depends-on): Update condition.
5379
5380 2011-05-08  Bruno Haible  <bruno@clisp.org>
5381
5382         getopt, argp: Respect rules for use of AC_LIBOBJ.
5383         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5384         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5385         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5386         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5387
5388 2011-05-08  Bruno Haible  <bruno@clisp.org>
5389
5390         getlogin_r: Move AC_LIBOBJ invocations to module description.
5391         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5392         gl_PREREQ_GETLOGIN_R invocations from here...
5393         * modules/getlogin_r (configure.ac): ... to here.
5394
5395 2011-05-08  Bruno Haible  <bruno@clisp.org>
5396
5397         getlogin: Move AC_LIBOBJ invocations to module description.
5398         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5399         here...
5400         * modules/getlogin (configure.ac): ... to here.
5401
5402 2011-05-08  Bruno Haible  <bruno@clisp.org>
5403
5404         getloadavg: Move AC_LIBOBJ invocations to module description.
5405         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5406         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5407         * modules/getloadavg (configure.ac): ... to here.
5408
5409 2011-05-08  Bruno Haible  <bruno@clisp.org>
5410
5411         gethrxtime: Move AC_LIBOBJ invocations to module description.
5412         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5413         LIB_GETHRXTIME from here...
5414         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5415         invocations from here...
5416         * modules/gethrxtime (configure.ac): ... to here.
5417
5418 2011-05-08  Bruno Haible  <bruno@clisp.org>
5419
5420         gethostname: Move AC_LIBOBJ invocations to module description.
5421         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5422         gl_PREREQ_GETHOSTNAME invocations from here...
5423         * modules/gethostname (configure.ac): ... to here.
5424
5425 2011-05-08  Bruno Haible  <bruno@clisp.org>
5426
5427         getgroups: Move AC_LIBOBJ invocations to module description.
5428         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5429         here...
5430         * modules/getgroups (configure.ac): ... to here.
5431
5432 2011-05-08  Bruno Haible  <bruno@clisp.org>
5433
5434         getdtablesize: Move AC_LIBOBJ invocations to module description.
5435         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5436         invocation from here...
5437         * modules/getdtablesize (configure.ac): ... to here.
5438
5439 2011-05-08  Bruno Haible  <bruno@clisp.org>
5440
5441         getdomainname: Move AC_LIBOBJ invocations to module description.
5442         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5443         gl_PREREQ_GETDOMAINNAME invocations from here...
5444         * modules/getdomainname (configure.ac): ... to here.
5445
5446 2011-05-08  Bruno Haible  <bruno@clisp.org>
5447
5448         getline: Move AC_LIBOBJ invocations to module description.
5449         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5450         invocations from here...
5451         * modules/getline (configure.ac): ... to here.
5452
5453 2011-05-08  Bruno Haible  <bruno@clisp.org>
5454
5455         getline: Simplify.
5456         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5457         It's already handled through the module dependency.
5458
5459 2011-05-08  Bruno Haible  <bruno@clisp.org>
5460
5461         getdelim: Move AC_LIBOBJ invocations to module description.
5462         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5463         and gl_PREREQ_GETDELIM invocations from here...
5464         * modules/getdelim (configure.ac): ... to here.
5465         (Depends-on): Fix condition.
5466
5467 2011-05-08  Bruno Haible  <bruno@clisp.org>
5468
5469         getcwd: Move AC_LIBOBJ invocations to module description.
5470         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5471         invocations from here...
5472         * modules/getcwd (configure.ac): ... to here.
5473
5474 2011-05-08  Bruno Haible  <bruno@clisp.org>
5475
5476         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5477         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5478         here...
5479         * modules/getcwd-lgpl (configure.ac): ... to here.
5480
5481 2011-05-07  Bruno Haible  <bruno@clisp.org>
5482
5483         crypto/gc: Move AC_LIBOBJ invocations to module description.
5484         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5485         * modules/crypto/gc (configure.ac): ... to here.
5486
5487 2011-05-07  Bruno Haible  <bruno@clisp.org>
5488
5489         fwriting: Move AC_LIBOBJ invocations to module description.
5490         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5491         here...
5492         * modules/fwriting (configure.ac): ... to here.
5493
5494 2011-05-07  Bruno Haible  <bruno@clisp.org>
5495
5496         fwritable: Move AC_LIBOBJ invocations to module description.
5497         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5498         here...
5499         * modules/fwritable (configure.ac): ... to here.
5500
5501 2011-05-07  Bruno Haible  <bruno@clisp.org>
5502
5503         futimens: Move AC_LIBOBJ invocations to module description.
5504         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5505         here...
5506         * modules/futimens (configure.ac): ... to here.
5507
5508 2011-05-07  Bruno Haible  <bruno@clisp.org>
5509
5510         ftruncate: Move AC_LIBOBJ invocations to module description.
5511         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5512         gl_PREREQ_FTRUNCATE invocations from here...
5513         * modules/ftruncate (configure.ac): ... to here.
5514
5515 2011-05-07  Bruno Haible  <bruno@clisp.org>
5516
5517         fsync: Move AC_LIBOBJ invocations to module description.
5518         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5519         invocations from here...
5520         * modules/fsync (configure.ac): ... to here.
5521
5522 2011-05-07  Bruno Haible  <bruno@clisp.org>
5523
5524         fsusage: Move AC_LIBOBJ invocations to module description.
5525         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5526         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5527         * modules/fsusage (configure.ac): ... to here.
5528
5529 2011-05-07  Bruno Haible  <bruno@clisp.org>
5530
5531         freopen: Move AC_LIBOBJ invocations to module description.
5532         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5533         invocations from here...
5534         * modules/freopen (configure.ac): ... to here.
5535
5536 2011-05-07  Bruno Haible  <bruno@clisp.org>
5537
5538         free: Move AC_LIBOBJ invocations to module description.
5539         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5540         invocations from here...
5541         * modules/free (configure.ac): ... to here.
5542
5543 2011-05-07  Bruno Haible  <bruno@clisp.org>
5544
5545         freadable: Move AC_LIBOBJ invocations to module description.
5546         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5547         here...
5548         * modules/freadable (configure.ac): ... to here.
5549
5550 2011-05-07  Bruno Haible  <bruno@clisp.org>
5551
5552         fpurge: Move AC_LIBOBJ invocations to module description.
5553         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5554         invocations from here...
5555         * modules/fpurge (configure.ac): ... to here.
5556
5557 2011-05-07  Bruno Haible  <bruno@clisp.org>
5558
5559         fpending: Move AC_LIBOBJ invocations to module description.
5560         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5561         gl_FUNC_FPENDING.
5562         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5563         invocations from here...
5564         * modules/fpending (configure.ac): ... to here.
5565
5566 2011-05-07  Bruno Haible  <bruno@clisp.org>
5567
5568         fopen: Move AC_LIBOBJ invocations to module description.
5569         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5570         invocations from here...
5571         * modules/fopen (configure.ac): ... to here.
5572
5573 2011-05-07  Bruno Haible  <bruno@clisp.org>
5574
5575         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5576         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5577         gl_FUNC_FNMATCH_POSIX.
5578         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5579         invocations from here...
5580         * modules/fnmatch (configure.ac): ... to here.
5581         * modules/fnmatch-gnu (configure.ac): ... and here.
5582
5583 2011-05-07  Bruno Haible  <bruno@clisp.org>
5584
5585         flock: Move AC_LIBOBJ invocations to module description.
5586         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5587         invocations from here...
5588         * modules/flock (configure.ac): ... to here.
5589
5590 2011-05-07  Bruno Haible  <bruno@clisp.org>
5591
5592         fileblocks: Move AC_LIBOBJ invocations to module description.
5593         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5594         gl_PREREQ_FILEBLOCKS invocations from here...
5595         * modules/fileblocks (configure.ac): ... to here.
5596
5597 2011-05-06  Bruno Haible  <bruno@clisp.org>
5598
5599         fflush: Move AC_LIBOBJ invocations to module description.
5600         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5601         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5602         invocations from here...
5603         * modules/fflush (configure.ac): ... to here.
5604
5605 2011-05-06  Bruno Haible  <bruno@clisp.org>
5606
5607         fdopendir: Move AC_LIBOBJ invocations to module description.
5608         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5609         here...
5610         * modules/fdopendir (configure.ac): ... to here.
5611         (Depends-on): Improve conditions.
5612
5613 2011-05-06  Bruno Haible  <bruno@clisp.org>
5614
5615         _Exit: Move AC_LIBOBJ invocations to module description.
5616         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5617         invocations from here...
5618         * modules/_Exit (configure.ac): ... to here.
5619
5620 2011-05-21  Bruno Haible  <bruno@clisp.org>
5621
5622         euidaccess: Respect rules for use of AC_LIBOBJ.
5623         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5624         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5625         from here...
5626         * modules/euidaccess (configure.ac): ... to here.
5627
5628 2011-05-06  Bruno Haible  <bruno@clisp.org>
5629
5630         error: Move AC_LIBOBJ invocations to module description.
5631         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5632         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5633         invocations from here...
5634         * modules/error (configure.ac): ... to here.
5635
5636 2011-05-06  Bruno Haible  <bruno@clisp.org>
5637
5638         duplocale: Move AC_LIBOBJ invocations to module description.
5639         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5640         gl_PREREQ_DUPLOCALE invocations from here...
5641         * modules/duplocale (configure.ac): ... to here.
5642
5643 2011-05-05  Bruno Haible  <bruno@clisp.org>
5644
5645         dirfd: Move AC_LIBOBJ invocations to module description.
5646         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5647         gl_FUNC_DIRFD.
5648         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5649         here...
5650         * modules/dirfd (configure.ac): ... to here.
5651         (Depends-on): Fix condition.
5652
5653 2011-05-05  Bruno Haible  <bruno@clisp.org>
5654
5655         chown: Respect rules for use of AC_LIBOBJ.
5656         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5657         * modules/chown (configure.ac): ... to here.
5658
5659 2011-05-05  Bruno Haible  <bruno@clisp.org>
5660
5661         chdir-long: Move AC_LIBOBJ invocations to module description.
5662         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5663         gl_PREREQ_CHDIR_LONG invocations from here...
5664         * modules/chdir-long (configure.ac): ... to here.
5665
5666 2011-05-05  Bruno Haible  <bruno@clisp.org>
5667
5668         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5669         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5670         from here...
5671         * modules/canonicalize-lgpl (configure.ac): ... to here.
5672
5673 2011-05-05  Bruno Haible  <bruno@clisp.org>
5674
5675         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5676         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5677         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5678         REPLACE_CALLOC.
5679         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5680         * modules/calloc-gnu (configure.ac): Likewise.
5681
5682 2011-05-05  Bruno Haible  <bruno@clisp.org>
5683
5684         btowc: Move AC_LIBOBJ invocations to module description.
5685         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5686         invocations from here...
5687         * modules/btowc (configure.ac): ... to here.
5688
5689 2011-05-21  Bruno Haible  <bruno@clisp.org>
5690
5691         atexit: Move AC_LIBOBJ invocations to module description.
5692         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5694         here...
5695         * modules/atexit (configure.ac): ... to here.
5696
5697 2011-05-05  Bruno Haible  <bruno@clisp.org>
5698
5699         atoll: Move AC_LIBOBJ invocations to module description.
5700         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5701         invocations from here...
5702         * modules/atoll (configure.ac): ... to here.
5703
5704 2011-05-05  Bruno Haible  <bruno@clisp.org>
5705
5706         argz: Move AC_LIBOBJ invocations to module description.
5707         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5708         * modules/argz (configure.ac): ... to here.
5709
5710 2011-05-05  Bruno Haible  <bruno@clisp.org>
5711
5712         alphasort: Move AC_LIBOBJ invocations to module description.
5713         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5714         gl_PREREQ_ALPHASORT invocations from here...
5715         * modules/alphasort (configure.ac): ... to here.
5716
5717 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5718
5719         verify: new macro verify_expr; verify_true deprecated
5720         * NEWS: Mention this.
5721         * doc/verify.texi (Compile-time Assertions): Document this.
5722         * lib/verify.h (verify_true): Deprecate.
5723         (verify_expr): New macro.
5724         * tests/test-verify.c (function): Test verify_expr.
5725
5726 2011-06-14  Jim Meyering  <meyering@redhat.com>
5727
5728         init.sh: give more portable redirection-related advice in a comment
5729         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5730         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5731         for lots of discussion.  Stefano Lattarini suggested the solution
5732         of putting "9>&2" after the command.  Reported by Bruno Haible.
5733
5734 2011-06-13  Bruno Haible  <bruno@clisp.org>
5735
5736         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5737         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5738         'none'.
5739
5740 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5741
5742         ftoastr: use strtof only if HAVE_STRTOF
5743         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5745         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5746         * modules/ftoastr (configure.ac): Check for strtof.
5747
5748 2011-06-13  Bruno Haible  <bruno@clisp.org>
5749
5750         gnulib-tool: Addendum to 2011-06-08 commit.
5751         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5752         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5753
5754 2011-06-13  Bruno Haible  <bruno@clisp.org>
5755
5756         fseeko: Provide a non-inline replacement of fseek().
5757         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5758         * modules/fseeko (Depends-on): Add fseek.
5759         * modules/fseek (License): Change to LGPLv2+.
5760
5761 2011-06-13  Bruno Haible  <bruno@clisp.org>
5762
5763         ftello: Provide a non-inline replacement of ftell().
5764         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5765         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5766         not have ftello() (such as on mingw).
5767         * modules/ftello (Depends-on): Add ftell.
5768         * modules/ftell (License): Change to LGPLv2+.
5769
5770 2011-05-07  Bruno Haible  <bruno@clisp.org>
5771
5772         ftell: Move AC_LIBOBJ invocations to module description.
5773         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5774         * modules/ftell (configure.ac): ... to here.
5775
5776 2011-05-07  Bruno Haible  <bruno@clisp.org>
5777
5778         ftello: Respect rules for use of AC_LIBOBJ.
5779         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5780         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5781         here...
5782         * modules/ftello (configure.ac): ... to here.
5783
5784 2011-05-07  Bruno Haible  <bruno@clisp.org>
5785
5786         fseeko: Simplify.
5787         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5788         (gl_FUNC_FSEEKO): Inline it here.
5789
5790 2011-05-07  Bruno Haible  <bruno@clisp.org>
5791
5792         fseek: Move AC_LIBOBJ invocations to module description.
5793         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5794         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5795         * modules/fseek (configure.ac): ... to here.
5796
5797 2011-05-07  Bruno Haible  <bruno@clisp.org>
5798
5799         fseek: Respect rules for use of AC_LIBOBJ.
5800         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5801         here...
5802         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5803
5804 2011-05-07  Bruno Haible  <bruno@clisp.org>
5805
5806         fseeko: Respect rules for use of AC_LIBOBJ.
5807         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5808         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5809         here...
5810         * modules/fseeko (configure.ac): ... to here.
5811
5812 2011-06-13  Bruno Haible  <bruno@clisp.org>
5813
5814         gnulib-tool: Allow comments in the 'Depends-on' section.
5815         * doc/gnulib.texi (Module description): Mention comment syntax in the
5816         Depends-on section.
5817         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5818
5819 2011-06-13  Bruno Haible  <bruno@clisp.org>
5820
5821         file-set.h: guard __attibute__ use, now that it's not always defined
5822         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5823         versions that support it.  This fixes a coreutils build failure with
5824         the vendor cc on HP-UX 11.31.
5825
5826 2011-06-12  Bruno Haible  <bruno@clisp.org>
5827
5828         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5829         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5830         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5831         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5832         (acl, aclsort): New declarations.
5833         (aclv_nontrivial): New declaration.
5834         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5835         (file_has_acl): Read also the second kind of HP-UX ACLs.
5836         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5837         kind of HP-UX ACLs if the first kind fails.
5838         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5839         second kind of HP-UX ACLs.
5840         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5841         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5842         agree.
5843         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5844         hpuxjfs.
5845         Handle hpuxjfs.
5846         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5847         hpuxjfs.
5848         Handle hpuxjfs.
5849         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5850         (func_test_same_acls): Use both lsacl and getacl.
5851         Handle hpuxjfs.
5852         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5853         (func_test_same_acls): Use both lsacl and getacl.
5854         Handle hpuxjfs.
5855
5856 2011-06-12  Bruno Haible  <bruno@clisp.org>
5857
5858         acl: Complete the 2010-08-10 fix.
5859         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5860         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5861         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5862         explicitly.
5863         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5864         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5865
5866 2011-06-12  Bruno Haible  <bruno@clisp.org>
5867
5868         spawn-pipe tests: Comments.
5869         * tests/test-spawn-pipe-child.c (main): Update comment.
5870         Reported by James Youngman <jay@gnu.org>.
5871
5872 2011-06-11  James Youngman  <jay@gnu.org>
5873
5874         New module 'stat-size'.
5875         * modules/stat-size: New module.  Provides macros for accessing
5876         file size information in instances of struct stat.  Depends on the
5877         fileblocks module because it calls st_blocks.
5878         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5879         * doc/gnulib.texi: Include stat-size.texi.
5880         * doc/stat-size.texi: Documentation for this module.
5881         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5882         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5883         AC_STRUCT_ST_BLOCKS.
5884
5885 2011-06-09  Bruno Haible  <bruno@clisp.org>
5886
5887         thread: Support pthreads-win32.
5888         * lib/glthread/thread.h (gl_thread_self): Define differently on
5889         pthreads-win32.
5890         (gl_null_thread): New declaration.
5891         (gl_thread_self_pointer): New macro.
5892         * lib/glthread/thread.c (gl_null_thread): New constant.
5893         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5894         gl_thread_self.
5895         * tests/test-tls.c: Likewise.
5896         Suggested by Paul Eggert. Reported by Eric Blake.
5897
5898 2011-06-09  Bruno Haible  <bruno@clisp.org>
5899
5900         thread: Fix confusion between NULL and 0.
5901         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5902         Reported by Paul Eggert.
5903
5904 2011-06-09  Bruno Haible  <bruno@clisp.org>
5905
5906         spawn-pipe tests: Avoid test failure on HP-UX 11.
5907         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5908         is closed.
5909
5910 2011-06-09  Bruno Haible  <bruno@clisp.org>
5911
5912         acl tests: Fix compilation error on HP-UX 11.
5913         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5914
5915 2011-06-09  Bruno Haible  <bruno@clisp.org>
5916
5917         rmdir: Avoid test failure on HP-UX 10.20.
5918         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5919         EEXIST.
5920
5921 2011-06-08  Eric Blake  <eblake@redhat.com>
5922
5923         perror: fix test on mingw
5924         * modules/perror-tests (Depends-on): Add dup2.
5925
5926         strerror_r-posix: fix on MacOS
5927         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5928         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5929         logic bug.
5930         * lib/strerror_r.c (strerror_r): Fix the bug.
5931         * lib/strerror.c (strerror): Likewise.
5932         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5933         problem.
5934         * doc/posix-functions/strerror.texi (strerror): Likewise.
5935         * doc/posix-functions/perror.texi (perror): Likewise.
5936         * tests/test-strerror.c (main): Enhance test.
5937         * tests/test-strerror_r.c (main): Likewise.
5938
5939 2011-06-08  Bruno Haible  <bruno@clisp.org>
5940
5941         gnulib-tool: Better isolation between different gnulib-tool invocations.
5942         * gnulib-tool: New option --witness-c-macro.
5943         (witness_c_macro): New variable.
5944         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5945         AM_CPPFLAGS define it as a C macro.
5946         (func_emit_tests_Makefile_am): Likewise.
5947         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5948         read it from there.
5949         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5950         m4_define, not AC_DEFUN.
5951         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5952         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5953         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5954         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5955         s|...|...|, to substitute the values of the GNULIB_* module indicator
5956         variables.
5957         * modules/dirent (Makefile.am): Likewise.
5958         * modules/fcntl-h (Makefile.am): Likewise.
5959         * modules/iconv-h (Makefile.am): Likewise.
5960         * modules/langinfo (Makefile.am): Likewise.
5961         * modules/locale (Makefile.am): Likewise.
5962         * modules/math (Makefile.am): Likewise.
5963         * modules/netdb (Makefile.am): Likewise.
5964         * modules/poll-h (Makefile.am): Likewise.
5965         * modules/pty (Makefile.am): Likewise.
5966         * modules/search (Makefile.am): Likewise.
5967         * modules/signal (Makefile.am): Likewise.
5968         * modules/spawn (Makefile.am): Likewise.
5969         * modules/stdio (Makefile.am): Likewise.
5970         * modules/stdlib (Makefile.am): Likewise.
5971         * modules/string (Makefile.am): Likewise.
5972         * modules/sys_ioctl (Makefile.am): Likewise.
5973         * modules/sys_select (Makefile.am): Likewise.
5974         * modules/sys_socket (Makefile.am): Likewise.
5975         * modules/sys_stat (Makefile.am): Likewise.
5976         * modules/sys_times (Makefile.am): Likewise.
5977         * modules/sys_utsname (Makefile.am): Likewise.
5978         * modules/sys_wait (Makefile.am): Likewise.
5979         * modules/termios (Makefile.am): Likewise.
5980         * modules/time (Makefile.am): Likewise.
5981         * modules/unistd (Makefile.am): Likewise.
5982         * modules/wchar (Makefile.am): Likewise.
5983
5984 2011-06-08  Eric Blake  <eblake@redhat.com>
5985
5986         strerror: simplify replacement
5987         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5988         * modules/strerror (configure.ac): No prereqs needed here...
5989         * modules/strerror-override (configure.ac): ...but this needs it.
5990         (Files): Add file for needed prereq macro.
5991
5992 2011-06-08  Bruno Haible  <bruno@clisp.org>
5993
5994         strerror_r-posix: Tweaks.
5995         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5996         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5997         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5998         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5999         (gl_FUNC_STRERROR_R): ... to here.
6000         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6001
6002 2011-06-07  Eric Blake  <eblake@redhat.com>
6003
6004         perror: document fixed bugs
6005         * doc/posix-functions/perror.texi (perror): Document recent
6006         patches.
6007
6008 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6009
6010         stat-time: get_stat_birthtime failure is better-defined
6011         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6012         return a timestamp whose tv_sec and tv_nsec values are both -1.
6013         Previously, the spec said only that the tv_nsec value was negative.
6014         This upward-compatible change simplifies GNU tar a bit.
6015
6016 2011-06-07  Eric Blake  <eblake@redhat.com>
6017
6018         strerror_r-posix: work around cygwin 1.7.9
6019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6020         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6021         bug without replacing strerror_r.
6022         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6023         strerror_r is buggy, but without requiring strerror_r compilation.
6024         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6025
6026         test-perror: relax test to ignore cygwin bug
6027         * tests/test-perror2.c (main): Relax test on requiring detection
6028         of stream errors, and use unbuffered stream.
6029         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6030         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6031         * doc/posix-functions/fputc.texi (fputc): Likewise.
6032         * doc/posix-functions/fputs.texi (fputs): Likewise.
6033         * doc/posix-functions/fputws.texi (fputws): Likewise.
6034         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6035         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6036         * doc/posix-functions/getopt.texi (getopt): Likewise.
6037         * doc/posix-functions/perror.texi (perror): Likewise.
6038         * doc/posix-functions/printf.texi (printf): Likewise.
6039         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6040         * doc/posix-functions/psignal.texi (psignal): Likewise.
6041         * doc/posix-functions/putc.texi (putc): Likewise.
6042         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6043         Likewise.
6044         * doc/posix-functions/putchar.texi (putchar): Likewise.
6045         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6046         Likewise.
6047         * doc/posix-functions/puts.texi (puts): Likewise.
6048         * doc/posix-functions/putwc.texi (putwc): Likewise.
6049         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6050         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6051         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6052         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6053         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6054         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6055         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6056         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6057
6058 2011-05-22  Bruno Haible  <bruno@clisp.org>
6059
6060         strerror: Move AC_LIBOBJ invocations to module description.
6061         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6062         gl_PREREQ_STRERROR invocations from here...
6063         * modules/strerror (configure.ac): ... to here.
6064
6065 2011-05-21  Bruno Haible  <bruno@clisp.org>
6066
6067         perror: Use common idiom.
6068         * modules/perror (configure.ac): Reorder statements.
6069
6070 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6071
6072         tests: fix usage message in 'mktempd_'
6073         * tests/init.sh (mktempd_): In the usage message, use literal
6074         'mktempd_', not '$ME' (which is even undefined), as the name of
6075         the subroutine.
6076
6077 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6078
6079         tests init: new function 'fatal_', for hard errors
6080         Before this patch, the only way offered by tests/init.sh to
6081         properly signal a hard error was the `framework_failure_'
6082         function.  But the error message issued by that function,
6083         as its name would suggest, refers to a set-up failure in the
6084         testsuite, while hard errors can obviously also be due to
6085         other reasons.  The best way to fix this inconsistency is to
6086         introduce a new function with a more general error message.
6087         * tests/init.sh (fatal_): New function.
6088
6089 2011-06-06  Eric Blake  <eblake@redhat.com>
6090
6091         canonicalize-lgpl: use common idiom
6092         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6093         over newer POSIX -Rf.
6094         Reported by Bruno Haible.
6095
6096         canonicalize-lgpl: work around AIX realpath bug
6097         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6098         * doc/posix-functions/realpath.texi (realpath): Document it.
6099         Reported by Bruno Haible.
6100
6101         strerror: work around FreeBSD bug
6102         * lib/strerror.c (strerror): Special case 0.
6103         Reported by Bruno Haible.
6104
6105         strerror-override: avoid bloating errno module
6106         * modules/errno (Files, configure.ac): Move replacement strings...
6107         * modules/strerror-override: ...to new module.
6108         * modules/strerror (Depends-on): Add strerror-override.
6109         * modules/strerror_r-posix (Depends-on): Likewise.
6110         * MODULES.html.sh: Document new module.
6111         Reported by Bruno Haible.
6112
6113 2011-06-06  Bruno Haible  <bruno@clisp.org>
6114
6115         spawn-pipe tests: Rename program.
6116         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6117         * tests/test-spawn-pipe-child.c: Update comment.
6118         * tests/test-spawn-pipe.sh: Update.
6119         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6120
6121         spawn-pipe tests: Link the child program only against libc.
6122         * tests/test-spawn-pipe-child.c: New file, extracted from
6123         tests/test-spawn-pipe.c.
6124         (main): Expect only one argument.
6125         (is_open): New function, copied from tests/test-pipe.c.
6126         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6127         (child_main): Remove function.
6128         (test_pipe): Pass only one argument to the child program.
6129         (main): Remove child process code. Expect the child program's name as
6130         first argument.
6131         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6132         argument.
6133         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6134         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6135         test-spawn-pipe-child against no libraries.
6136
6137 2011-06-06  Bruno Haible  <bruno@clisp.org>
6138
6139         careadlinkat: Avoid mismatch between ssize_t and int.
6140         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6141         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6142
6143 2011-06-06  Jim Meyering  <meyering@redhat.com>
6144
6145         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6146         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6147         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6148
6149 2011-06-05  Bruno Haible  <bruno@clisp.org>
6150
6151         ansi-c++-opt: Interoperability with libtool.
6152         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6153         set the variable to "no", not to ":".
6154         * NEWS: Mention the change.
6155
6156 2011-06-05  Bruno Haible  <bruno@clisp.org>
6157
6158         acl: Fix test failure on AIX 7.
6159         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6160         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6161
6162 2011-06-05  Bruno Haible  <bruno@clisp.org>
6163
6164         pipe-filter-ii: Fix test failure on AIX and IRIX.
6165         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6166         with EAGAIN, retry with a smaller buffer size.
6167
6168 2011-06-05  Bruno Haible  <bruno@clisp.org>
6169
6170         localename: Fix link dependencies.
6171         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6172         * modules/localename-tests (Makefile.am): Link test-localename with
6173         $(LIBTHREAD).
6174
6175 2011-06-05  Bruno Haible  <bruno@clisp.org>
6176
6177         error: Avoid gcc warning.
6178         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6179
6180 2011-06-05  Bruno Haible  <bruno@clisp.org>
6181
6182         unsetenv: Avoid gcc warning.
6183         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6184
6185 2011-06-05  Bruno Haible  <bruno@clisp.org>
6186
6187         setenv: Avoid gcc warning.
6188         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6189
6190 2011-06-05  Bruno Haible  <bruno@clisp.org>
6191
6192         sys_select: Ensure memset is declared also on AIX 7.
6193         * lib/sys_select.in.h: Include <string.h> also on AIX.
6194         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6195         self-contained also on AIX 7.1.
6196
6197 2011-06-04  Jim Meyering  <meyering@redhat.com>
6198
6199         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6200         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6201         function name, "error".
6202         (_gl_translatable_diag_func_re): New configurable variable.
6203
6204 2011-06-04  Bruno Haible  <bruno@clisp.org>
6205
6206         getopt: Avoid gcc warning.
6207         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6208
6209 2011-06-04  Bruno Haible  <bruno@clisp.org>
6210
6211         strerror_r: Fix comments.
6212         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6213         commit.
6214
6215 2011-06-04  Bruno Haible  <bruno@clisp.org>
6216
6217         perror: Fix compilation error.
6218         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6219         Undefine fprintf, not sprintf.
6220         * modules/perror (Depends-on): Remove intprops, verify.
6221
6222 2011-06-04  Bruno Haible  <bruno@clisp.org>
6223
6224         setlocale: Enable replacement on Cygwin 1.5.
6225         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6226         Cygwin 1.5.x.
6227         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6228         LC_CTYPE category also exists on Cygwin 1.5.x.
6229
6230 2011-06-04  Bruno Haible  <bruno@clisp.org>
6231
6232         strerror-override: Don't disable symbol renamings.
6233         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6234         * lib/strerror-override.c: Include config.h.
6235         (strerror_override): Don't undefine.
6236
6237 2011-06-03  Bruno Haible  <bruno@clisp.org>
6238
6239         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6240         * lib/localename.h: Update copyright header.
6241         * lib/localename.c: Likewise.
6242         * lib/relocatable.h: Likewise.
6243         * lib/relocatable.c: Likewise.
6244
6245 2011-06-02  Bruno Haible  <bruno@clisp.org>
6246
6247         doc: Fix a module name.
6248         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6249
6250 2011-06-02  Bruno Haible  <bruno@clisp.org>
6251
6252         pipe2: Remove dependency on 'nonblocking' module.
6253         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6254         O_NONBLOCK is defined by gnulib.
6255         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6256         is zero.
6257         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6258         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6259         defined by gnulib.
6260         (get_nonblocking_flag): New function.
6261         (main): Test O_NONBLOCK flag only if it is nonzero.
6262         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6263
6264 2011-06-03  Jim Meyering  <meyering@redhat.com>
6265
6266         maint: three new prohibit-header-without-use rules
6267         Prohibit use of cloexec.h, posixver.h, same.h without use.
6268         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6269         (sc_prohibit_posixver_without_use): Likewise.
6270         (sc_prohibit_same_without_use): Likewise.
6271
6272 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6273
6274         allocator: 'die' routine is now given requested size
6275         * lib/allocator.h (struct allocator.die): New size arg.
6276         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6277         If the actual problem is an ssize_t limitation, not a size_t or
6278         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6279
6280 2011-06-01  Eric Blake  <eblake@redhat.com>
6281
6282         strerror: drop strerror_r dependency
6283         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6284         * lib/strerror-override.c (strerror_override): ...to new file.
6285         * lib/strerror-override.h: Add prototype.
6286         * lib/strerror-impl.h: Delete.
6287         * lib/strerror.c (strerror): New implementation.
6288         * modules/errno (Files): Add new files.
6289         (configure.ac): Compile new file as appropriate.
6290         * modules/strerror (Files): Drop unused file.
6291         (Depends-on): Drop strerror_r-posix.
6292         * MODULES.html.sh: Document strerror_r-posix.
6293         Requested by Sam Steingold.
6294
6295         perror: call strerror_r directly
6296         * modules/perror (Files): Drop strerror-impl.h.
6297         * lib/perror.c (perror): Use our own stack buffer, rather than
6298         calling a wrapper that uses static storage.
6299         * doc/posix-functions/perror.texi (perror): Document a limitation
6300         of our replacement.
6301
6302         strerror_r: fix includes for FreeBSD
6303         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6304         since we use abort on some platforms.
6305         Reported by Matthias Bolte.
6306
6307 2011-05-31  Bruno Haible  <bruno@clisp.org>
6308
6309         Fix link errors in tests: openat-die uses gettext-h.
6310         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6311         against $(LIBINTL).
6312         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6313         against $(LIBINTL).
6314         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6315         $(LIBINTL).
6316         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6317         against $(LIBINTL).
6318         * modules/linkat-tests (Makefile.am): Link test-linkat against
6319         $(LIBINTL).
6320         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6321         $(LIBINTL).
6322         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6323         against $(LIBINTL).
6324         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6325         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6326         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6327         $(LIBINTL).
6328         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6329         $(LIBINTL).
6330         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6331         $(LIBINTL).
6332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6333
6334 2011-05-31  Bruno Haible  <bruno@clisp.org>
6335
6336         Fix link errors in tests: wait-process uses gettext-h.
6337         * modules/nonblocking-pipe-tests (Makefile.am): Set
6338         test_nonblocking_pipe_main_LDADD.
6339         * modules/nonblocking-socket-tests (Makefile.am): Link
6340         test-nonblocking-socket-main against $(LIBINTL).
6341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6342
6343 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6344
6345         assert-h: work around 'verify' incompatibility
6346         * lib/verify.h: Use @...@ directives, not ifdef.
6347         * modules/assert-h (assert.h): Implement the directives.
6348         (assert.h): Substitute the symbol-prefix more consistently.
6349
6350 2011-05-29  Jim Meyering  <meyering@redhat.com>
6351
6352         trim: remove three superfluous assignments
6353         * lib/trim.c (trim2): Remove three superfluous assignments
6354         and correct brace positioning.
6355
6356 2011-05-29  Bruno Haible  <bruno@clisp.org>
6357
6358         wctype-h: Avoid namespace pollution on Solaris 2.6.
6359         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6360         identifiers.
6361         * doc/posix-headers/wctype.texi: Mention the problem.
6362         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6363
6364 2011-05-28  Jim Meyering  <meyering@redhat.com>
6365
6366         parse-datetime.y: accommodate -Wstrict-overflow
6367         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6368         placate -Wstrict-overflow.
6369
6370         trim: avoid a warning from -O2 -Wstrict-overflow
6371         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6372
6373 2011-05-29  Bruno Haible  <bruno@clisp.org>
6374
6375         gnulib-tool: Fix bug in yesterday's commit.
6376         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6377         twice.
6378
6379 2011-05-29  Bruno Haible  <bruno@clisp.org>
6380
6381         Allow multiple gnulib generated include files to be combined.
6382         * gnulib-tool (func_compute_include_guard_prefix): New function.
6383         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6384         ${gl_include_guard_prefix} references.
6385         (func_import, func_create_testdir): Invoke
6386         func_compute_include_guard_prefix.
6387         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6388         * lib/ctype.in.h: Likewise.
6389         * lib/dirent.in.h: Likewise.
6390         * lib/errno.in.h: Likewise.
6391         * lib/fcntl.in.h: Likewise.
6392         * lib/float.in.h: Likewise.
6393         * lib/getopt.in.h: Likewise.
6394         * lib/iconv.in.h: Likewise.
6395         * lib/langinfo.in.h: Likewise.
6396         * lib/locale.in.h: Likewise.
6397         * lib/math.in.h: Likewise.
6398         * lib/netdb.in.h: Likewise.
6399         * lib/netinet_in.in.h: Likewise.
6400         * lib/poll.in.h: Likewise.
6401         * lib/pthread.in.h: Likewise.
6402         * lib/pty.in.h: Likewise.
6403         * lib/sched.in.h: Likewise.
6404         * lib/se-selinux.in.h: Likewise.
6405         * lib/search.in.h: Likewise.
6406         * lib/signal.in.h: Likewise.
6407         * lib/spawn.in.h: Likewise.
6408         * lib/stdarg.in.h: Likewise.
6409         * lib/stddef.in.h: Likewise.
6410         * lib/stdint.in.h: Likewise.
6411         * lib/stdio.in.h: Likewise.
6412         * lib/stdlib.in.h: Likewise.
6413         * lib/string.in.h: Likewise.
6414         * lib/strings.in.h: Likewise.
6415         * lib/sys_file.in.h: Likewise.
6416         * lib/sys_ioctl.in.h: Likewise.
6417         * lib/sys_select.in.h: Likewise.
6418         * lib/sys_socket.in.h: Likewise.
6419         * lib/sys_stat.in.h: Likewise.
6420         * lib/sys_time.in.h: Likewise.
6421         * lib/sys_times.in.h: Likewise.
6422         * lib/sys_uio.in.h: Likewise.
6423         * lib/sys_utsname.in.h: Likewise.
6424         * lib/sys_wait.in.h: Likewise.
6425         * lib/sysexits.in.h: Likewise.
6426         * lib/termios.in.h: Likewise.
6427         * lib/time.in.h: Likewise.
6428         * lib/unistd.in.h: Likewise.
6429         * lib/wchar.in.h: Likewise.
6430         * lib/wctype.in.h: Likewise.
6431         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6432         * modules/ctype (Makefile.am): Likewise.
6433         * modules/dirent (Makefile.am): Likewise.
6434         * modules/errno (Makefile.am): Likewise.
6435         * modules/fcntl-h (Makefile.am): Likewise.
6436         * modules/float (Makefile.am): Likewise.
6437         * modules/getopt-posix (Makefile.am): Likewise.
6438         * modules/iconv-h (Makefile.am): Likewise.
6439         * modules/langinfo (Makefile.am): Likewise.
6440         * modules/locale (Makefile.am): Likewise.
6441         * modules/math (Makefile.am): Likewise.
6442         * modules/netdb (Makefile.am): Likewise.
6443         * modules/netinet_in (Makefile.am): Likewise.
6444         * modules/poll-h (Makefile.am): Likewise.
6445         * modules/pthread (Makefile.am): Likewise.
6446         * modules/pty (Makefile.am): Likewise.
6447         * modules/sched (Makefile.am): Likewise.
6448         * modules/search (Makefile.am): Likewise.
6449         * modules/selinux-h (Makefile.am): Likewise.
6450         * modules/signal (Makefile.am): Likewise.
6451         * modules/spawn (Makefile.am): Likewise.
6452         * modules/stdarg (Makefile.am): Likewise.
6453         * modules/stddef (Makefile.am): Likewise.
6454         * modules/stdint (Makefile.am): Likewise.
6455         * modules/stdio (Makefile.am): Likewise.
6456         * modules/stdlib (Makefile.am): Likewise.
6457         * modules/string (Makefile.am): Likewise.
6458         * modules/strings (Makefile.am): Likewise.
6459         * modules/sys_file (Makefile.am): Likewise.
6460         * modules/sys_ioctl (Makefile.am): Likewise.
6461         * modules/sys_select (Makefile.am): Likewise.
6462         * modules/sys_socket (Makefile.am): Likewise.
6463         * modules/sys_stat (Makefile.am): Likewise.
6464         * modules/sys_time (Makefile.am): Likewise.
6465         * modules/sys_times (Makefile.am): Likewise.
6466         * modules/sys_uio (Makefile.am): Likewise.
6467         * modules/sys_utsname (Makefile.am): Likewise.
6468         * modules/sys_wait (Makefile.am): Likewise.
6469         * modules/sysexits (Makefile.am): Likewise.
6470         * modules/termios (Makefile.am): Likewise.
6471         * modules/time (Makefile.am): Likewise.
6472         * modules/unistd (Makefile.am): Likewise.
6473         * modules/wchar (Makefile.am): Likewise.
6474         * modules/wctype-h (Makefile.am): Likewise.
6475         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6476
6477 2011-05-29  Bruno Haible  <bruno@clisp.org>
6478
6479         assert-h: Allow multiple gnulib generated replacements to coexist.
6480         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6481
6482 2011-05-29  Bruno Haible  <bruno@clisp.org>
6483
6484         argp: Allow coexistence with strerror_r-posix module.
6485         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6486         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6487         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6488         not the glibc signature.
6489
6490 2011-05-28  Bruno Haible  <bruno@clisp.org>
6491
6492         gnulib-tool: Alternative structure of testdirs, similar to --import.
6493         * gnulib-tool: New option --single-configure.
6494         (func_usage): Document it.
6495         (single_configure): New variable.
6496         (func_modules_transitive_closure_separately,
6497         func_modules_transitive_closure_separately,
6498         func_determine_use_libtests, func_modules_add_dummy_separately,
6499         func_modules_to_filelist_separately): New functions, extracted from
6500         func_import.
6501         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6502         (func_import): Use the new functions.
6503         (func_create_testdir): Set final_modules. Handle $single_configure =
6504         true case.
6505
6506 2011-05-28  Bruno Haible  <bruno@clisp.org>
6507
6508         getloadavg: Remove an unreliable safety check.
6509         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6510         getloadavg.c is in place.
6511         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6512         Reported by Sam Steingold <sds@gnu.org>.
6513
6514 2011-05-28  Bruno Haible  <bruno@clisp.org>
6515
6516         doc: Cleanup yet another file produced by texinfo.tex.
6517         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6518
6519 2011-05-28  Bruno Haible  <bruno@clisp.org>
6520
6521         Finish the conditional dependencies mechanism.
6522         * gnulib-tool: New option --no-conditional-dependencies.
6523         (func_usage): Document it. Don't mark --conditional-dependencies as
6524         experimental.
6525         (cond_dependencies): The possible values can now be true, false, empty.
6526         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6527         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6528         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6529
6530 2011-05-28  Bruno Haible  <bruno@clisp.org>
6531
6532         doc: Use a recent texinfo.tex.
6533         * doc/Makefile (tex_opts): New variable.
6534         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6535
6536 2011-05-28  Jim Meyering  <meyering@redhat.com>
6537
6538         intprops.h: adjust comment to match code change
6539         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6540         only once, it *may* have side effects.  Also fix an unrelated typo.
6541         (_GL_INT_SIGNED): Likewise.
6542
6543 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6544
6545         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6546
6547 2011-05-26  Bruno Haible  <bruno@clisp.org>
6548
6549         mbsrchr: Avoid collision with system function on Interix.
6550         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6551         Reported by Markus Duft <mduft@gentoo.org>.
6552
6553 2011-05-15  James Youngman  <jay@gnu.org>
6554
6555         getopt: for ambiguous options, enumerate the possibilities.
6556         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6557         the ambiguous options when an ambiguous prefix is given. This was
6558         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6559         glibc change was
6560         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6561
6562 2011-05-25  Eric Blake  <eblake@redhat.com>
6563
6564         getcwd: work around mingw bug
6565         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6566         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6567         Reported by Matthias Bolte.
6568
6569 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6570
6571         test-intprops: disable -Wtype-limits diagnostics
6572         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6573         diagnostics.  Otherwise, the integer overflow macros generate many
6574         diagnostics.  Reported by Jim Meyering in
6575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6576
6577         intprops: shorten, to pacify gcc -Woverlength-strings
6578         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6579         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6580         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6581         likely to run afoul of C compiler limits for string constant lengths.
6582         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6583
6584 2011-05-24  Eric Blake  <eblake@redhat.com>
6585
6586         docs: document recently fixed glibc printf bug
6587         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6588         * doc/posix-functions/printf.texi (printf): Likewise.
6589         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6590         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6591
6592         closein-tests: convert to init.sh
6593         * modules/closein-tests (Files): Add init.sh
6594         * tests/test-closein.sh Use it.
6595
6596         yesno-tests: convert to init.sh
6597         * modules/yesno-tests (Files): Add init.sh.
6598         * tests/test-yesno.sh: Use it.
6599
6600         atexit-tests: ensure reliable exit status
6601         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6602         Reported by Bruno Haible.
6603
6604 2011-05-24  Bruno Haible  <bruno@clisp.org>
6605
6606         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6607         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6608         gl_PREREQ_STRERROR_R invocations from here...
6609         * modules/strerror_r-posix (configure.ac): ... to here.
6610
6611 2011-05-24  Eric Blake  <eblake@redhat.com>
6612
6613         strerror_r: fix missing header
6614         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6615
6616         strerror_r: fix AIX test failures
6617         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6618         ERANGE failure.
6619
6620         strerror_r: fix Solaris test failures
6621         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6622         failures.
6623         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6624
6625         strerror_r: enforce POSIX recommendations
6626         * lib/strerror_r.c (safe_copy): New helper method.
6627         (strerror_r): Guarantee a non-empty string.
6628         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6629         recent POSIX rulings and to match our strerror guarantees.
6630         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6631
6632 2011-05-24  Jim Meyering  <meyering@redhat.com>
6633
6634         test-perror2.c: avoid warning about unused variable
6635         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6636
6637 2011-05-24  Eric Blake  <eblake@redhat.com>
6638
6639         perror: avoid spurious test failure on HP-UX
6640         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6641
6642         tests: fix logic bug in init.sh
6643         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6644         shell.
6645
6646 2011-05-24  Jim Meyering  <meyering@redhat.com>
6647
6648         utimensat: do not reference an out-of-scope buffer
6649         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6650         declared in an inner scope, yet "times" would be dereferenced outside
6651         the scope in which "ts" was valid.
6652         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6653         of ts[2] "out/up", so that the use of aliased "times" (via
6654         "times = ts;") does not end up referencing an out-of-scope "ts"
6655
6656         opendir-safer.c: don't clobber errno; don't close negative FD
6657         * lib/opendir-safer.c (opendir_safer):
6658         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6659         file descriptor, and more importantly, don't clobber the
6660         offending errno value with EINVAL.  Before, upon failure
6661         of dup_safer, we would pass the negative file descriptor to
6662         fdopendir, which would clobber errno.
6663
6664 2011-05-23  Bruno Haible  <bruno@clisp.org>
6665
6666         idcache: Fix module description.
6667         * modules/idcache (Include): Set to "idcache.h".
6668
6669 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6670
6671         gnulib-tool: fix portability problem with MacOS sed
6672         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6673         before the "}".  Problem reported by Leo in
6674         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6675         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6676         sed_extract_condition1, sed_extract_condition2.
6677
6678 2011-05-23  Bruno Haible  <bruno@clisp.org>
6679
6680         hash: Simplify autoconf macro.
6681         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6682
6683 2011-05-23  Bruno Haible  <bruno@clisp.org>
6684
6685         getugroups: Fix module description.
6686         * modules/getugroups (Include): Set to "getugroups.h".
6687
6688 2011-05-23  Bruno Haible  <bruno@clisp.org>
6689
6690         linkat: Simplify autoconf macro.
6691         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6692
6693 2011-05-23  Bruno Haible  <bruno@clisp.org>
6694             Eric Blake  <eblake@redhat.com>
6695
6696         linkat, renameat: Update dependencies.
6697         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6698         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6699         symlinkat.
6700
6701 2011-05-23  Jim Meyering  <meyering@redhat.com>
6702
6703         maint.mk: more tight_scope improvements
6704         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6705         (_gl_TS_headers): Define only in if-0'd block.
6706         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6707         sometimes we must *not* use it.  Adjust uses accordingly.
6708         (sc_tight_scope): Use much simpler grep-based test to determine
6709         whether we skip this rule.
6710
6711         maint.mk: generalize/improve the tight-scope rule
6712         * top/maint.mk: Emit a warning when the test is skipped.
6713         (_gl_TS_dir): Add $(srcdir)/ prefix.
6714         (_gl_TS_function_match): Simplify, rather than trying
6715         to enumerate common types.  Otherwise, it would fail to match an
6716         "extern unsigned char const *" declaration in idutils.
6717         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6718         a way to support use of that type of macro.
6719         (_gl_TS_var_match): Simplify regexp.
6720         (_gl_TS_obj_files): New configurable variable.
6721         (_gl_TS_headers): Likewise.
6722
6723 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6724
6725         verify: fix bug when gnulib <assert.h> is also included
6726         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6727         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6728         Perhaps there's a better way, but this fixes the immediate problem.
6729         Problem reported by Bruno Haible in
6730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6731
6732 2011-05-22  Bruno Haible  <bruno@clisp.org>
6733
6734         xgetcwd: Simplify autoconf macro.
6735         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6736
6737 2011-05-22  Bruno Haible  <bruno@clisp.org>
6738
6739         New module 'mktime-internal'.
6740         * modules/mktime-internal: New file.
6741         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6742         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6743         mktime_internal as a C macro if libc has __mktime_internal.
6744         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6745         conditions.
6746         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6747
6748 2011-05-22  Bruno Haible  <bruno@clisp.org>
6749
6750         timegm: Correct mktime replacement statements.
6751         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6752         defining mktime as a C macro. This completes a 2009-07-28 commit.
6753
6754 2011-05-22  Bruno Haible  <bruno@clisp.org>
6755
6756         timegm: Simplify autoconf macro.
6757         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6758
6759 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6760
6761         clock-time: change to LGPLv2+.
6762         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6763         BSD-like but we have no mark for that; this is good enough for now.
6764
6765 2011-05-21  Bruno Haible  <bruno@clisp.org>
6766
6767         strerror_r: Fix comments.
6768         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6769
6770 2011-05-21  Bruno Haible  <bruno@clisp.org>
6771
6772         relocatable-prog-wrapper: Fix possible link error.
6773         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6774         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6775         (gl_FUNC_SETENV): ... to here.
6776         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6777         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6778
6779 2011-05-21  Bruno Haible  <bruno@clisp.org>
6780
6781         relocatable-prog-wrapper: Assume strerror() exists.
6782         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6783         m4/strerror.m4.
6784         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6785         * lib/relocwrapper.c: Remove mention of strerror module.
6786         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6787         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6788         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6789         C macro.
6790
6791 2011-05-21  Bruno Haible  <bruno@clisp.org>
6792
6793         select: Simplify replacement idiom.
6794         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6795         Win32 platforms.
6796         * lib/sys_select.in.h (select): Simplify accordingly.
6797         * modules/select (Depends-on): Likewise.
6798
6799 2011-05-21  Bruno Haible  <bruno@clisp.org>
6800
6801         mkdir-p: Simplify autoconf macro.
6802         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6803         gl_FUNC_LCHOWN.
6804
6805 2011-05-21  Eric Blake  <eblake@redhat.com>
6806
6807         strerror_r: avoid clobbering strerror on cygwin
6808         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6809         fall back instead to sys_errlist.
6810         * modules/strerror (configure.ac): Add witness.
6811         * tests/test-strerror_r.c (main): Enhance test.
6812         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6813         * tests/test-perror2.c (main): Free memory before exit.
6814
6815 2011-05-21  Bruno Haible  <bruno@clisp.org>
6816
6817         mkdtemp: Use gnulib naming conventions.
6818         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6819         * modules/mkdtemp (configure.ac): Update.
6820
6821 2011-05-20  Eric Blake  <eblake@redhat.com>
6822
6823         strerror_r: avoid corrupting errno on Solaris
6824         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6825         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6826
6827         strerror_r: avoid compiler warning
6828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6829
6830         strerror_r: simplify AIX code
6831         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6832
6833         test-perror: avoid spurious failure on FreeBSD
6834         * modules/perror-tests (Depends-on): Add strerror, now that
6835         strerror_r no longer pulls it in.
6836
6837 2011-05-20  Bruno Haible  <bruno@clisp.org>
6838
6839         strerror_r-posix: Remove unused dependencies.
6840         * modules/strerror_r-posix (Depends-on): Remove strerror.
6841         Reported by Eric Blake.
6842
6843 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6844
6845         intprops: remove assumption about A|B representation
6846         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6847         is a valid integer if both A and B are.  Although this is true for
6848         all known practical hosts, the C standard doesn't guarantee it,
6849         and the code need not assume it.  Also, this change may work around
6850         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6852
6853 2011-05-20  Eric Blake  <eblake@redhat.com>
6854
6855         perror: work around FreeBSD bug
6856         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6857         is broken.  Move AC_LIBOBJ...
6858         * modules/perror (configure.ac): Here.
6859         * doc/posix-functions/perror.texi (perror): Document this.
6860         * tests/test-perror2.c (main): Enhance test.
6861
6862         test-perror: check for strerror interactions
6863         * tests/macros.h (STREQ): Add macro.
6864         * modules/perror-tests (Files): Add second test.
6865         * tests/test-perror2.c (main): New file.
6866         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6867
6868         test-perror: rewrite to use init script
6869         * modules/perror-tests (Files): Add init.sh.
6870         * tests/test-perror.sh: Use temporary directory.
6871
6872 2011-05-20  Jim Meyering  <meyering@redhat.com>
6873
6874         maint: replace misused "a" with "an"
6875         * doc/intprops.texi: "a integer"
6876         * doc/regex.texi: "a explanation"
6877         * lib/alignof.h: "a object"
6878         * lib/argmatch.h: "a explanation"
6879         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6880         * lib/stdint.in.h: "a integer"
6881         * lib/userspec.c: "a owner"
6882         * doc/gnulib.texi: Fix "a idea", and reword.
6883
6884 2011-05-19  Jim Meyering  <meyering@redhat.com>
6885
6886         maint: correct misuse of "a" and "an"
6887         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6888         * lib/argp-help.c: "an docum...": s/an/a/
6889         * lib/argp-parse.c: "An vector": s/An/A/
6890         * lib/execute.c: "an native": s/an/a/
6891         * lib/spawn-pipe.c: Likewise.
6892         * lib/gc.h: "an Gc_rc": s/an/a/
6893         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6894         * lib/fts.c: "an stat.st_dev": s/an/a/
6895
6896 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6897
6898         intprops-tests: work around HP-UX 11.23 cc bug with constants
6899         * tests/test-intprops.c (VERIFY): New macro.
6900         (main): Use it, instead of verify, to work around the compiler bug; see
6901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6902
6903         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6904         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6905         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6906         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6907         (_GL_REMAINDER_OVERFLOW): Use it.
6908
6909         intprops-tests: revert unsigned part of previous change
6910         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6911         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6912         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6914
6915 2011-05-19  Bruno Haible  <bruno@clisp.org>
6916
6917         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6918         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6919         strerror_r() returned without filling the buffer.
6920         Reported by Eric Blake.
6921
6922 2011-05-19  Eric Blake  <eblake@redhat.com>
6923
6924         strerror_r: guarantee unchanged errno
6925         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6926         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6927         failure.
6928         * tests/test-strerror_r.c (main): Enhance test.
6929
6930 2011-05-19  Bruno Haible  <bruno@clisp.org>
6931
6932         strerror_r: Reorder #if blocks.
6933         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6934         for consistency with the previous commit.
6935
6936 2011-05-19  Bruno Haible  <bruno@clisp.org>
6937
6938         perror: Avoid clobbering the strerror buffer when possible.
6939         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6940         * lib/strerror.c: Include it.
6941         * modules/strerror (Files): Add lib/strerror-impl.h.
6942         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6943         (my_strerror): New function, defined through lib/strerror-impl.h.
6944         (perror): Use it instead of strerror.
6945         * modules/perror (Files): Add lib/strerror-impl.h.
6946         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6947
6948 2011-05-19  Eric Blake  <eblake@redhat.com>
6949
6950         strerror_r: fix on newer cygwin
6951         * lib/strerror_r.c (strerror_r): Cygwin now has
6952         __xpg_strerror_r, use it.
6953
6954 2011-05-19  Bruno Haible  <bruno@clisp.org>
6955
6956         strerror_r: Avoid clobbering the strerror buffer when possible.
6957         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6958         (sys_nerr, sys_errlist): New declarations.
6959         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6960         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6961         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6962
6963 2011-05-19  Bruno Haible  <bruno@clisp.org>
6964
6965         strerror_r: Fix test failure on mingw.
6966         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6967         EXTEND_STRERROR_R.
6968         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6969         macros from errno.in.h instead.
6970
6971 2011-05-19  Eric Blake  <eblake@redhat.com>
6972
6973         strerror: relax test for Solaris
6974         * tests/test-strerror.c (main): Permit Solaris behavior.
6975         * tests/test-strerror_r.c (main): Likewise.
6976
6977         strerror: enforce POSIX ruling on strerror(0)
6978         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6979         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6980         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6981         * doc/posix-functions/strerror.texi (strerror): Document it.
6982         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6983         * tests/test-strerror.c (main): Strengthen test.
6984         * tests/test-strerror_r.c (main): Likewise.
6985
6986 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6987
6988         intprop-tests: port to older and more-pedantic compilers
6989         * modules/intprops-tests (Files): Add tests/macros.h.
6990         * tests/test-intprops.c: Include macros.h.
6991         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6992         it's no longer documented to expand to an integer constant expression.
6993         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6994         argument is floating point, as it's no longer documented to expand
6995         to an integer constant expression in that case.
6996         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6997         compiler bugs reported by Bruno Haible.  See
6998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6999         (U0, U1): New constants, to work around the same bugs.  Also,
7000         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7001
7002         intprops: work around C compiler bugs
7003         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7004         bug in Sun C 5.11 2010/08/13 and other compilers; see
7005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7006
7007         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7008         * doc/intprops.texi (Integer Type Determination): Fix
7009         documentation for TYPE_IS_INTEGER: it returns an constant
7010         expression, not an integer constant expression.  Fix doc for
7011         TYPE_SIGNED: it returns an integer constant expression only if its
7012         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7013         hardly worth documented that way....)
7014
7015 2011-05-18  Bruno Haible  <bruno@clisp.org>
7016
7017         strerror_r: Avoid clobbering the strerror buffer when possible.
7018         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7019         Handle gnulib defined errno values here. When strerror() returns NULL
7020         or an empty string, return EINVAL.
7021         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7022         gnulib defined errno values here.
7023         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7024
7025 2011-05-18  Eric Blake  <eblake@redhat.com>
7026
7027         fnmatch: avoid compiler warning
7028         * lib/fnmatch_loop.c (FCT): Use correct type.
7029         Reported by Matthias Bolte.
7030
7031 2011-05-13  Jim Meyering  <meyering@redhat.com>
7032
7033         maint.mk: three new prohibit_<HDR>_without_use rules
7034         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7035         (sc_prohibit_stdio-safer_without_use): Likewise.
7036         (sc_prohibit_xfreopen_without_use): Likewise.
7037
7038 2011-05-17  Jim Meyering  <meyering@redhat.com>
7039
7040         announce-gen: fail if the NEWS delta is empty
7041         If there's nothing noteworthy in NEWS, then either you forgot
7042         or you shouldn't be releasing.
7043         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7044
7045 2011-05-17  Pádraig Brady <P@draigBrady.com>
7046
7047         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7048         reserved symbols starting with double underscore from the check.
7049
7050 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7051
7052         intprops: add doc
7053         * doc/intprops.texi: New file, documenting intprops.
7054         * doc/gnulib.texi (Particular Modules): Include it.
7055
7056         verify: add doc to gnulib manual and fix example
7057         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7058         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7059         (Compile-time Assertions): Fix example so it can't overflow.
7060
7061 2011-05-17  Jim Meyering  <meyering@redhat.com>
7062
7063         warnings.m4: don't usurp save_CPPFLAGS variable name
7064         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7065
7066         doc: fix typo
7067         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7068
7069 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7070             Bruno Haible  <bruno@clisp.org>
7071
7072         doc: Tweak recent change.
7073         * README (Portability guidelines): Tweak new text.
7074         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7075         Interix 6.1.
7076
7077 2011-05-16  Eric Blake  <eblake@redhat.com>
7078
7079         inttypes: avoid autoconf warning
7080         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7081         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7082
7083 2011-05-16  Sam Steingold <sds@gnu.org>
7084         and Eric Blake  <eblake@redhat.com>
7085
7086         vc-list-files: accept multiple directory operands
7087         * build-aux/vc-list-files: Iterate over all remaining operands.
7088
7089 2011-05-16  Bruno Haible  <bruno@clisp.org>
7090
7091         Fix confusion regarding deprecated modules.
7092         * modules/calloc (Status, Notice): Mark module as deprecated, not
7093         obsolete.
7094         * modules/fnmatch-posix (Status, Notice): Likewise.
7095         * modules/getdate (Status, Notice): Likewise.
7096         * modules/getopt (Status, Notice): Likewise.
7097         * modules/malloc (Status, Notice): Likewise.
7098         * modules/pipe (Status, Notice): Likewise.
7099         * modules/realloc (Status, Notice): Likewise.
7100         * modules/rename-dest-slash (Status, Notice): Likewise.
7101         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7102         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7103         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7104         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7105         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7106
7107 2011-05-16  Bruno Haible  <bruno@clisp.org>
7108
7109         doc: List the target platforms.
7110         * doc/gnulib-intro.texi (Target Platforms): New section.
7111         * doc/gnulib.texi (Introduction): Update menu.
7112         * README (Portability guidelines): Refer to the new section. Update
7113         statement about oldest supported environment. Remove rationale why
7114         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7115         unportable C89 function.
7116         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7117         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7118
7119 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7120
7121         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7122
7123 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7124
7125         intprops-tests: new module
7126         * modules/intprops-tests, tests/test-intprops.c: New files.
7127
7128         intprops: add safe, portable integer overflow checking
7129         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7130         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7131         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7132         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7133         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7134         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7135         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7136         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7137         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7138         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7139         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7140
7141 2011-05-12  James Youngman  <jay@gnu.org>
7142
7143         Add a test for glibc's Bugzilla bug #12378.
7144         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7145         doesn't allow the literal matching of a lone "[" (which is
7146         required by POSIX).
7147         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7148
7149 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7150
7151         Sync glibc change fixing Bugzilla bug #12378.
7152         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7153         beginning and fall back to matching as normal character if the
7154         string ends before the matching ']' is found.  This is what POSIX
7155         requires.
7156
7157 2011-05-13  Eric Blake  <eblake@redhat.com>
7158
7159         getcwd-lgpl: relax test for FreeBSD
7160         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7161         issue.
7162         * tests/test-getcwd-lgpl.c (main): Relax test.
7163         Reported by Matthias Bolte.
7164
7165 2011-05-11  Eric Blake  <eblake@redhat.com>
7166
7167         test-fflush: silence compiler warning
7168         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7169
7170 2011-05-11  Bruno Haible  <bruno@clisp.org>
7171
7172         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7173         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7174         * modules/canonicalize (Depends-on): Add 'nocrash'.
7175         * modules/canonicalize-lgpl (Depends-on): Likewise.
7176         * doc/posix-functions/realpath.texi: Update platforms list.
7177         Reported by Ryan Schmidt <ryandesign@macports.org>.
7178
7179 2011-05-11  Bruno Haible  <bruno@clisp.org>
7180
7181         group-member: Declare function in <unistd.h>.
7182         * lib/unistd.in.h (group_member): New declaration.
7183         * lib/group-member.h: Remove file.
7184         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7185         * tests/test-unistd-c++.cc: Check signature of group_member.
7186         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7187         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7188         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7189         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7190         HAVE_GROUP_MEMBER.
7191         * modules/group-member (Files): Remove lib/group-member.h.
7192         (Depends-on): Add unistd. Specify conditions.
7193         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7194         (Include): Change to <unistd.h>.
7195         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7196         HAVE_GROUP_MEMBER.
7197         * NEWS: Mention the change.
7198         * lib/euidaccess.c: Don't include group-member.h.
7199
7200 2011-05-11  Bruno Haible  <bruno@clisp.org>
7201
7202         group-member: Document module.
7203         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7204         module.
7205
7206 2011-05-11  Bruno Haible  <bruno@clisp.org>
7207
7208         fclose: Fix mistake earlier today.
7209         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7210
7211 2011-05-11  Eric Blake  <eblake@redhat.com>
7212
7213         fclose: preserve fflush errors
7214         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7215         Reported by Jim Meyering.
7216
7217         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7218         * build-aux/bootstrap (check_versions): When no specific version
7219         is required, merely check that the app produces an exit status
7220         that indicates its existence.
7221
7222         maint.mk: drop redundant check
7223         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7224         the same but better.
7225
7226 2011-05-11  Bruno Haible  <bruno@clisp.org>
7227
7228         fclose: Fix possible link error.
7229         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7230         unregister_shadow_fd. Improve comments.
7231         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7232         Eric Blake.
7233
7234 2011-05-11  Jim Meyering  <meyering@redhat.com>
7235
7236         maint.mk: improve "can not" detection and generalize rule name
7237         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7238         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7239         Use the same technique as in sc_prohibit_doubled_word, so that
7240         we recognize "can not" also when the words are separated by a newline.
7241         Suggested by Eric Blake.
7242         (perl_filename_lineno_text_): Define.  Factored out of...
7243         (prohibit_doubled_word_): ...here.  Use the new definition.
7244         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7245         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7246         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7247
7248 2011-05-10  Eric Blake  <eblake@redhat.com>
7249
7250         fclose: avoid double close race when possible
7251         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7252         all but WINDOWS_SOCKETS.
7253
7254 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7255
7256         openat: correct new comment
7257         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7258
7259 2011-05-10  Jim Meyering  <meyering@redhat.com>
7260
7261         openat: add comments
7262         * lib/openat-proc.c (openat_proc_name): Add comments,
7263         mostly from Eric Blake.
7264
7265 2011-05-09  Eric Blake  <eblake@redhat.com>
7266
7267         openat: reduce syscalls in first probe of /proc
7268         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7269         be a directory.  Simplify the probe for .. bugs.
7270         * modules/openat (Depends-on): Drop same-inode.
7271         Reported by Bastien ROUCARIES.
7272
7273 2011-05-09  Jim Meyering  <meyering@redhat.com>
7274
7275         maint.mk: change semantics/name of tight_scope variables
7276         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7277         Rename variables to align with semantics that make them more useful.
7278
7279         maint.mk: tweak new rule's name not to impinge
7280         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7281         (sc_tight_scope): Use new rule name rather than $@-0.
7282
7283         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7284         * top/maint.mk (sc_tight_scope): New rule.
7285         (sc_tight_scope-0): New rule, ifdef'd out.
7286         (_gl_TS_dir): Default.
7287         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7288         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7289
7290 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7291
7292         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7293         Haible <bruno@clisp.org>.
7294
7295 2011-05-08  Bruno Haible  <bruno@clisp.org>
7296
7297         Comments.
7298         * m4/isnanf.m4: Add comment.
7299         * m4/isnanl.m4: Likewise.
7300
7301 2011-05-08  Bruno Haible  <bruno@clisp.org>
7302
7303         glob: Remove obsolete macro.
7304         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7305
7306 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7307
7308         intprops: Sun C 5.11 supports __typeof__
7309         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7310         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7311         which is new.
7312         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7313
7314         intprops: switch to usual gnulib indenting and naming
7315         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7316         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7317
7318         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7319
7320 2011-05-08  Jim Meyering  <meyering@redhat.com>
7321
7322         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7323         * top/maint.mk (release-prep): Use make's --no-print-directory
7324         option when generating the announcement.  This eliminates the
7325         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7326         generated announcement template.
7327
7328 2011-05-08  Bruno Haible  <bruno@clisp.org>
7329
7330         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7331         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7332         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7333
7334 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7335
7336         ignore-value, verify: Omit include files from lib_SOURCES.
7337         * modules/ignore-value, modules/verify (Makefile.am):
7338         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7339         that leads Automake to duplicate use of am__objects_... variables
7340         in Makefile.in.  See
7341         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7342
7343 2011-05-07  Bruno Haible  <bruno@clisp.org>
7344
7345         fclose: Simplify autoconf macro.
7346         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7347         defined.
7348
7349 2011-05-07  Bruno Haible  <bruno@clisp.org>
7350
7351         canonicalize-lgpl: Fix autoconf macro ordering bug.
7352         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7353         gl_STDLIB_H_DEFAULTS.
7354
7355 2011-05-06  Eric Blake  <eblake@redhat.com>
7356
7357         maintainer-makefile: make sc_po_check easier to tune
7358         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7359         to probe for strings, such as an alternate location for gnulib.
7360
7361         fclose: guarantee behavior on seekable stdin
7362         * modules/fclose (Depends-on): Add fflush.
7363         * doc/posix-functions/fclose.texi (fclose): Document this.
7364         * tests/test-fclose.c (main): Make test for this unconditional.
7365
7366 2011-05-06  Bruno Haible  <bruno@clisp.org>
7367
7368         fflush, fpurge: Relicense under LGPLv2+.
7369         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7370         * modules/fpurge (License): Likewise.
7371         With permission from Eric Blake and Jim Meyering.
7372         Suggested by Eric Blake.
7373
7374 2011-05-06  Karl Berry  <karl@gnu.org>
7375
7376         * MODULES.html.sh (func_all_modules): remove exit.
7377
7378 2011-05-06  Jim Meyering  <meyering@redhat.com>
7379
7380         maint.mk: use info-gnu@ as the default only for a stable release
7381         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7382         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7383         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7384         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7385
7386 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7387
7388         assert-h: new module, which supports C1X-style static_assert
7389         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7390         * lib/verify.h: Revamp so that this can be copied into assert.h,
7391         while retaining the ability to use it standalone as before.
7392         Rename private identifiers so as not to encroach on the
7393         standard C namespace, since this is now used by assert.h.
7394         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7395         the old verify_true.
7396         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7397         the old verify_true.  Use _GL_VERIFY_TYPE.
7398         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7399         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7400         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7401         defined when this file is copied into the replacement assert.h.
7402         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7403         and _Static_assert is not built in.
7404         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7405         defined, and use the new macros mentioned above.
7406         * doc/posix-headers/assert.texi: Document this.
7407
7408 2011-05-05  Bruno Haible  <bruno@clisp.org>
7409
7410         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7411         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7412         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7413         gl_REPLACE_FCLOSE here.
7414         * modules/fflush (Depends-on): Remove fclose.
7415         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7416         combination with module 'fclose'.
7417
7418 2011-05-05  Bruno Haible  <bruno@clisp.org>
7419
7420         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7421         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7422         gl_FUNC_FFLUSH.
7423         (gl_FUNC_FFLUSH): Use it.
7424         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7425         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7426         gl_REPLACE_FSEEKO here.
7427
7428 2011-05-05  Bruno Haible  <bruno@clisp.org>
7429
7430         tzset: Relicense under LGPL.
7431         * modules/tzset (License): Change to LGPL.
7432         No agreement needed; it's a no-op.
7433
7434         strtoimax, strtoumax: Relicense under LGPL.
7435         * modules/strtoimax (License): Change to LGPL.
7436         * modules/strtoumax (License): Likewise.
7437         With permission from Jim Meyering, Paul Eggert:
7438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7440
7441         getgroups: Relicense under LGPL.
7442         * modules/getgroups (License): Change to LGPL.
7443         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7447
7448         nanosleep: Relicense under LGPL.
7449         * modules/nanosleep (License): Change to LGPL.
7450         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7451         Haible:
7452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7456
7457         futimens: Relicense under LGPL.
7458         * modules/futimens (License): Change to LGPL.
7459         With permission from Eric Blake:
7460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7461
7462         fflush: Relicense under LGPL.
7463         * modules/fflush (License): Change to LGPL.
7464         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7468
7469         tmpfile: Relicense under LGPL.
7470         * modules/tmpfile (License): Change to LGPL.
7471         With permission from Ben Pfaff:
7472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7473
7474         isfinite: Relicense under LGPL.
7475         * modules/isfinite (License): Change to LGPL.
7476         With permission from Ben Pfaff, Bruno Haible:
7477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7479
7480         acosl..tanl: Relicense under LGPL.
7481         * modules/acosl (License): Change to LGPL.
7482         * modules/asinl (License): Likewise.
7483         * modules/atanl (License): Likewise.
7484         * modules/cosl (License): Likewise.
7485         * modules/expl (License): Likewise.
7486         * modules/logl (License): Likewise.
7487         * modules/sinl (License): Likewise.
7488         * modules/sqrtl (License): Likewise.
7489         * modules/tanl (License): Likewise.
7490         Source code originally from glibc and Paolo Bonzini. Agreements:
7491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7493
7494 2011-05-05  Bruno Haible  <bruno@clisp.org>
7495
7496         signal: Define sighandler_t.
7497         * lib/signal.in.h (sighandler_t): New type.
7498         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7499         whether sighandler_t is defined.
7500         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7501         * modules/signal (Depends-on): Add extensions.
7502         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7503         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7504         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7505
7506 2011-05-05  Eric Blake  <eblake@redhat.com>
7507
7508         maint: remove useless REPLACE_*_H macros
7509         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7510         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7511         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7512         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7513         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7514         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7515         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7516         * m4/btowc.m4: Update callers.
7517         * m4/dirfd.m4: Likewise.
7518         * m4/duplocale.m4: Likewise.
7519         * m4/fchdir.m4: Likewise.
7520         * m4/fdopendir.m4: Likewise.
7521         * m4/inet_ntop.m4: Likewise.
7522         * m4/inet_pton.m4: Likewise.
7523         * m4/ioctl.m4: Likewise.
7524         * m4/mbrlen.m4: Likewise.
7525         * m4/mbrtowc.m4: Likewise.
7526         * m4/mbsinit.m4: Likewise.
7527         * m4/mbsnrtowcs.m4: Likewise.
7528         * m4/mbsrtowcs.m4: Likewise.
7529         * m4/poll.m4: Likewise.
7530         * m4/setlocale.m4: Likewise.
7531         * m4/wcrtomb.m4: Likewise.
7532         * m4/wcsnrtombs.m4: Likewise.
7533         * m4/wcsrtombs.m4: Likewise.
7534         * m4/wctob.m4: Likewise.
7535         * m4/wcwidth.m4: Likewise.
7536         * modules/posix_spawn: Likewise.
7537         * modules/posix_spawn_file_actions_addclose: Likewise.
7538         * modules/posix_spawn_file_actions_adddup2: Likewise.
7539         * modules/posix_spawn_file_actions_addopen: Likewise.
7540         * modules/posix_spawn_file_actions_destroy: Likewise.
7541         * modules/posix_spawn_file_actions_init: Likewise.
7542         * modules/posix_spawnattr_destroy: Likewise.
7543         * modules/posix_spawnattr_getflags: Likewise.
7544         * modules/posix_spawnattr_getpgroup: Likewise.
7545         * modules/posix_spawnattr_getschedparam: Likewise.
7546         * modules/posix_spawnattr_getschedpolicy: Likewise.
7547         * modules/posix_spawnattr_getsigdefault: Likewise.
7548         * modules/posix_spawnattr_getsigmask: Likewise.
7549         * modules/posix_spawnattr_init: Likewise.
7550         * modules/posix_spawnattr_setflags: Likewise.
7551         * modules/posix_spawnattr_setpgroup: Likewise.
7552         * modules/posix_spawnattr_setschedparam: Likewise.
7553         * modules/posix_spawnattr_setschedpolicy: Likewise.
7554         * modules/posix_spawnattr_setsigdefault: Likewise.
7555         * modules/posix_spawnattr_setsigmask: Likewise.
7556         * modules/posix_spawnp: Likewise.
7557
7558 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7559
7560         Add option to do-release-commit-and-tag to specify branch.
7561         * build-aux/do-release-commit-and-tag: Add --branch.
7562
7563 2011-05-03  Bruno Haible  <bruno@clisp.org>
7564
7565         Avoid unnecessary compilation units, through conditional dependencies.
7566         * modules/accept (Depends-on): Add conditions to the dependencies.
7567         * modules/acosl (Depends-on): Likewise.
7568         * modules/argz (Depends-on): Likewise.
7569         * modules/asinl (Depends-on): Likewise.
7570         * modules/atanl (Depends-on): Likewise.
7571         * modules/atoll (Depends-on): Likewise.
7572         * modules/bind (Depends-on): Likewise.
7573         * modules/btowc (Depends-on): Likewise.
7574         * modules/canonicalize-lgpl (Depends-on): Likewise.
7575         * modules/ceil (Depends-on): Likewise.
7576         * modules/ceilf (Depends-on): Likewise.
7577         * modules/ceill (Depends-on): Likewise.
7578         * modules/chdir-long (Depends-on): Likewise.
7579         * modules/chown (Depends-on): Likewise.
7580         * modules/close (Depends-on): Likewise.
7581         * modules/connect (Depends-on): Likewise.
7582         * modules/cosl (Depends-on): Likewise.
7583         * modules/dirfd (Depends-on): Likewise.
7584         * modules/dprintf (Depends-on): Likewise.
7585         * modules/dprintf-posix (Depends-on): Likewise.
7586         * modules/error (Depends-on): Likewise.
7587         * modules/euidaccess (Depends-on): Likewise.
7588         * modules/expl (Depends-on): Likewise.
7589         * modules/faccessat (Depends-on): Likewise.
7590         * modules/fchdir (Depends-on): Likewise.
7591         * modules/fclose (Depends-on): Likewise.
7592         * modules/fcntl (Depends-on): Likewise.
7593         * modules/fdopendir (Depends-on): Likewise.
7594         * modules/fflush (Depends-on): Likewise.
7595         * modules/floor (Depends-on): Likewise.
7596         * modules/floorf (Depends-on): Likewise.
7597         * modules/floorl (Depends-on): Likewise.
7598         * modules/fnmatch (Depends-on): Likewise.
7599         * modules/fopen (Depends-on): Likewise.
7600         * modules/fprintf-posix (Depends-on): Likewise.
7601         * modules/frexp (Depends-on): Likewise.
7602         * modules/frexp-nolibm (Depends-on): Likewise.
7603         * modules/frexpl (Depends-on): Likewise.
7604         * modules/frexpl-nolibm (Depends-on): Likewise.
7605         * modules/fseek (Depends-on): Likewise.
7606         * modules/fsusage (Depends-on): Likewise.
7607         * modules/ftell (Depends-on): Likewise.
7608         * modules/ftello (Depends-on): Likewise.
7609         * modules/futimens (Depends-on): Likewise.
7610         * modules/getcwd (Depends-on): Likewise.
7611         * modules/getcwd-lgpl (Depends-on): Likewise.
7612         * modules/getdelim (Depends-on): Likewise.
7613         * modules/getdomainname (Depends-on): Likewise.
7614         * modules/getgroups (Depends-on): Likewise.
7615         * modules/gethostname (Depends-on): Likewise.
7616         * modules/getline (Depends-on): Likewise.
7617         * modules/getlogin_r (Depends-on): Likewise.
7618         * modules/getopt-posix (Depends-on): Likewise.
7619         * modules/getpeername (Depends-on): Likewise.
7620         * modules/getsockname (Depends-on): Likewise.
7621         * modules/getsockopt (Depends-on): Likewise.
7622         * modules/getsubopt (Depends-on): Likewise.
7623         * modules/getusershell (Depends-on): Likewise.
7624         * modules/glob (Depends-on): Likewise.
7625         * modules/grantpt (Depends-on): Likewise.
7626         * modules/iconv_open (Depends-on): Likewise.
7627         * modules/iconv_open-utf (Depends-on): Likewise.
7628         * modules/inet_ntop (Depends-on): Likewise.
7629         * modules/inet_pton (Depends-on): Likewise.
7630         * modules/ioctl (Depends-on): Likewise.
7631         * modules/isapipe (Depends-on): Likewise.
7632         * modules/isfinite (Depends-on): Likewise.
7633         * modules/isinf (Depends-on): Likewise.
7634         * modules/lchown (Depends-on): Likewise.
7635         * modules/ldexpl (Depends-on): Likewise.
7636         * modules/link (Depends-on): Likewise.
7637         * modules/linkat (Depends-on): Likewise.
7638         * modules/listen (Depends-on): Likewise.
7639         * modules/logl (Depends-on): Likewise.
7640         * modules/lstat (Depends-on): Likewise.
7641         * modules/mbrlen (Depends-on): Likewise.
7642         * modules/mbrtowc (Depends-on): Likewise.
7643         * modules/mbsinit (Depends-on): Likewise.
7644         * modules/mbsnrtowcs (Depends-on): Likewise.
7645         * modules/mbsrtowcs (Depends-on): Likewise.
7646         * modules/mbtowc (Depends-on): Likewise.
7647         * modules/memcmp (Depends-on): Likewise.
7648         * modules/mkdir (Depends-on): Likewise.
7649         * modules/mkdtemp (Depends-on): Likewise.
7650         * modules/mkfifo (Depends-on): Likewise.
7651         * modules/mkfifoat (Depends-on): Likewise.
7652         * modules/mknod (Depends-on): Likewise.
7653         * modules/mkostemp (Depends-on): Likewise.
7654         * modules/mkostemps (Depends-on): Likewise.
7655         * modules/mkstemp (Depends-on): Likewise.
7656         * modules/mkstemps (Depends-on): Likewise.
7657         * modules/mktime (Depends-on): Likewise.
7658         * modules/nanosleep (Depends-on): Likewise.
7659         * modules/open (Depends-on): Likewise.
7660         * modules/openat (Depends-on): Likewise.
7661         * modules/perror (Depends-on): Likewise.
7662         * modules/poll (Depends-on): Likewise.
7663         * modules/popen (Depends-on): Likewise.
7664         * modules/posix_spawn (Depends-on): Likewise.
7665         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7666         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7667         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7668         * modules/posix_spawnp (Depends-on): Likewise.
7669         * modules/pread (Depends-on): Likewise.
7670         * modules/printf-posix (Depends-on): Likewise.
7671         * modules/ptsname (Depends-on): Likewise.
7672         * modules/putenv (Depends-on): Likewise.
7673         * modules/pwrite (Depends-on): Likewise.
7674         * modules/readline (Depends-on): Likewise.
7675         * modules/readlink (Depends-on): Likewise.
7676         * modules/readlinkat (Depends-on): Likewise.
7677         * modules/recv (Depends-on): Likewise.
7678         * modules/recvfrom (Depends-on): Likewise.
7679         * modules/regex (Depends-on): Likewise.
7680         * modules/remove (Depends-on): Likewise.
7681         * modules/rename (Depends-on): Likewise.
7682         * modules/renameat (Depends-on): Likewise.
7683         * modules/rmdir (Depends-on): Likewise.
7684         * modules/round (Depends-on): Likewise.
7685         * modules/roundf (Depends-on): Likewise.
7686         * modules/roundl (Depends-on): Likewise.
7687         * modules/rpmatch (Depends-on): Likewise.
7688         * modules/select (Depends-on): Likewise.
7689         * modules/send (Depends-on): Likewise.
7690         * modules/sendto (Depends-on): Likewise.
7691         * modules/setenv (Depends-on): Likewise.
7692         * modules/setlocale (Depends-on): Likewise.
7693         * modules/setsockopt (Depends-on): Likewise.
7694         * modules/shutdown (Depends-on): Likewise.
7695         * modules/sigaction (Depends-on): Likewise.
7696         * modules/signbit (Depends-on): Likewise.
7697         * modules/sigprocmask (Depends-on): Likewise.
7698         * modules/sinl (Depends-on): Likewise.
7699         * modules/sleep (Depends-on): Likewise.
7700         * modules/snprintf (Depends-on): Likewise.
7701         * modules/snprintf-posix (Depends-on): Likewise.
7702         * modules/socket (Depends-on): Likewise.
7703         * modules/sprintf-posix (Depends-on): Likewise.
7704         * modules/sqrtl (Depends-on): Likewise.
7705         * modules/stat (Depends-on): Likewise.
7706         * modules/strchrnul (Depends-on): Likewise.
7707         * modules/strdup-posix (Depends-on): Likewise.
7708         * modules/strerror (Depends-on): Likewise.
7709         * modules/strerror_r-posix (Depends-on): Likewise.
7710         * modules/strndup (Depends-on): Likewise.
7711         * modules/strnlen (Depends-on): Likewise.
7712         * modules/strptime (Depends-on): Likewise.
7713         * modules/strsep (Depends-on): Likewise.
7714         * modules/strsignal (Depends-on): Likewise.
7715         * modules/strstr-simple (Depends-on): Likewise.
7716         * modules/strtod (Depends-on): Likewise.
7717         * modules/strtoimax (Depends-on): Likewise.
7718         * modules/strtok_r (Depends-on): Likewise.
7719         * modules/strtoumax (Depends-on): Likewise.
7720         * modules/symlink (Depends-on): Likewise.
7721         * modules/symlinkat (Depends-on): Likewise.
7722         * modules/tanl (Depends-on): Likewise.
7723         * modules/tcgetsid (Depends-on): Likewise.
7724         * modules/tmpfile (Depends-on): Likewise.
7725         * modules/trunc (Depends-on): Likewise.
7726         * modules/truncf (Depends-on): Likewise.
7727         * modules/truncl (Depends-on): Likewise.
7728         * modules/uname (Depends-on): Likewise.
7729         * modules/unlink (Depends-on): Likewise.
7730         * modules/unlockpt (Depends-on): Likewise.
7731         * modules/unsetenv (Depends-on): Likewise.
7732         * modules/usleep (Depends-on): Likewise.
7733         * modules/utimensat (Depends-on): Likewise.
7734         * modules/vasprintf (Depends-on): Likewise.
7735         * modules/vdprintf (Depends-on): Likewise.
7736         * modules/vdprintf-posix (Depends-on): Likewise.
7737         * modules/vfprintf-posix (Depends-on): Likewise.
7738         * modules/vprintf-posix (Depends-on): Likewise.
7739         * modules/vsnprintf (Depends-on): Likewise.
7740         * modules/vsnprintf-posix (Depends-on): Likewise.
7741         * modules/vsprintf-posix (Depends-on): Likewise.
7742         * modules/wcrtomb (Depends-on): Likewise.
7743         * modules/wcscasecmp (Depends-on): Likewise.
7744         * modules/wcscspn (Depends-on): Likewise.
7745         * modules/wcsdup (Depends-on): Likewise.
7746         * modules/wcsncasecmp (Depends-on): Likewise.
7747         * modules/wcsnrtombs (Depends-on): Likewise.
7748         * modules/wcspbrk (Depends-on): Likewise.
7749         * modules/wcsrtombs (Depends-on): Likewise.
7750         * modules/wcsspn (Depends-on): Likewise.
7751         * modules/wcsstr (Depends-on): Likewise.
7752         * modules/wcstok (Depends-on): Likewise.
7753         * modules/wcswidth (Depends-on): Likewise.
7754         * modules/wctob (Depends-on): Likewise.
7755         * modules/wctomb (Depends-on): Likewise.
7756         * modules/wctype (Depends-on): Likewise.
7757         * modules/wcwidth (Depends-on): Likewise.
7758         * modules/write (Depends-on): Likewise.
7759
7760 2011-05-03  Bruno Haible  <bruno@clisp.org>
7761
7762         Support for conditional dependencies.
7763         * doc/gnulib.texi (Module description): Document the syntax of
7764         conditional dependencies.
7765         * gnulib-tool: New option --conditional-dependencies.
7766         (func_usage): Document it.
7767         (cond_dependencies): New variable.
7768         (func_get_automake_snippet_conditional,
7769         func_get_automake_snippet_unconditional): New functions, extracted from
7770         func_get_automake_snippet.
7771         (func_get_automake_snippet): Use them.
7772         (sed_first_32_chars): New variable.
7773         (func_module_shellfunc_name): New function.
7774         (func_module_shellvar_name): New function.
7775         (func_module_conditional_name): New function.
7776         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7777         func_cond_module_condition): New functions.
7778         (func_modules_transitive_closure): Add support for conditional
7779         dependencies.
7780         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7781         conditional automake snippet in an automake conditional.
7782         (func_emit_autoconf_snippets): Emit shell functions that contain the
7783         code for conditional modules.
7784         (func_import, func_create_testdir): Update specification.
7785
7786 2011-05-03  Eric Blake  <eblake@redhat.com>
7787
7788         test-getaddrinfo: report error information
7789         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7790
7791 2011-05-03  Jim Meyering  <meyering@redhat.com>
7792
7793         bootstrap: avoid build failure when $GZIP is set
7794         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7795         program name.  If defined at all, it is supposed to list gzip options.
7796         Reported by Alan Curry in http://debbugs.gnu.org/8609
7797
7798 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7799
7800         readme-release: new module with release instructions
7801         * modules/readme-release: New module.
7802         * top/README-release: New file, from coreutils, grep, diffutils.
7803         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7804
7805 2011-05-02  Eric Blake  <eblake@redhat.com>
7806
7807         fflush: also replace fclose when fixing fflush
7808         * modules/fflush (Depends-on): Add fclose.
7809         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7810         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7811         memstreams with no backing fd.
7812         * doc/posix-functions/fclose.texi (fclose): Document the use of
7813         fflush module to fix the bug.
7814         * tests/test-fclose.c (main): Relax test when fclose is used in
7815         isolation.
7816
7817         fclose: add some tests
7818         * modules/fclose-tests: New test module.
7819         * tests/test-fclose.c: New file.
7820         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7821
7822         fclose: reduced dependencies
7823         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7824         simpler lseek.
7825         * lib/fclose.c (rpl_fclose): Likewise.
7826         Reported by Simon Josefsson.
7827
7828         exit: drop remaining clients
7829         * modules/argmatch (Depends-on): Replace exit with stdlib.
7830         * modules/copy-file (Depends-on): Likewise.
7831         * modules/execute (Depends-on): Likewise.
7832         * modules/exitfail (Depends-on): Likewise.
7833         * modules/obstack (Depends-on): Likewise.
7834         * modules/pagealign_alloc (Depends-on): Likewise.
7835         * modules/pipe-filter-gi (Depends-on): Likewise.
7836         * modules/pipe-filter-ii (Depends-on): Likewise.
7837         * modules/savewd (Depends-on): Likewise.
7838         * modules/spawn-pipe (Depends-on): Likewise.
7839         * modules/wait-process (Depends-on): Likewise.
7840         * modules/xsetenv (Depends-on): Likewise.
7841         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7842         * modules/git-merge-changelog (Depends-on): Likewise.
7843         * modules/long-options (Depends-on): Likewise.
7844         * modules/pt_chown (Depends-on): Likewise.
7845         * modules/sysexits (Depends-on): Likewise.
7846
7847         freading: relax license from LGPLv3+ to LGPLv2+
7848         * modules/freading (License): Relax LGPL version.
7849
7850 2011-05-02  Bruno Haible  <bruno@clisp.org>
7851
7852         fchdir: Remove unused dependencies.
7853         * modules/fchdir (Depends-on): Remove include_next.
7854
7855 2011-05-02  Bruno Haible  <bruno@clisp.org>
7856
7857         gnulib-tool: Refactor.
7858         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7859         from func_emit_autoconf_snippets.
7860         (func_emit_autoconf_snippets): Use it.
7861
7862 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7863
7864         * NEWS: Document removal of 'exit'.
7865         * modules/exit: Remove file.
7866
7867 2011-05-01  Bruno Haible  <bruno@clisp.org>
7868
7869         Update DEPENDENCIES.
7870         * DEPENDENCIES (gettext): Recommend the newest release.
7871         Reported by Simon Josefsson.
7872
7873 2011-05-01  Bruno Haible  <bruno@clisp.org>
7874
7875         gnulib-tool: Reduce code duplication.
7876         * gnulib-tool (func_emit_autoconf_snippets): New function.
7877         (func_import, func_create_testdir): Use it.
7878
7879 2011-04-30  Eric Blake  <eblake@redhat.com>
7880
7881         fclose: don't fail on non-seekable input stream
7882         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7883         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7884         since fflush is allowed to fail in that case.
7885
7886 2011-04-30  Bruno Haible  <bruno@clisp.org>
7887
7888         dup3: cleanup
7889         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7890
7891 2011-04-30  Bruno Haible  <bruno@clisp.org>
7892
7893         netdb: Make it work in C++ mode.
7894         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7895         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7896         module.
7897         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7898         gl_MODULE_INDICATOR_FOR_TESTS.
7899         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7900         * modules/netdb-c++-tests: New file.
7901         * tests/test-netdb-c++.cc: New file.
7902
7903 2011-04-30  Bruno Haible  <bruno@clisp.org>
7904
7905         New modules 'vfscanf', 'vscanf'.
7906         * modules/vfscanf: New file.
7907         * modules/vscanf: New file.
7908         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7909         here.
7910         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7911         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7912
7913 2011-04-30  Bruno Haible  <bruno@clisp.org>
7914
7915         passfd: Add comments.
7916         * lib/passfd.c: Add comments about platforms.
7917
7918 2011-04-30  Bruno Haible  <bruno@clisp.org>
7919
7920         sys_uio: Make <sys/uio.h> self-contained.
7921         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7922         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7923
7924 2011-04-30  Bruno Haible  <bruno@clisp.org>
7925
7926         sys_socket: Ensure 'struct iovec' definition.
7927         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7928         <sys/socket.h>.
7929         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7930
7931 2011-04-30  Bruno Haible  <bruno@clisp.org>
7932
7933         sys_uio: Protect definition of 'struct iovec'.
7934         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7935         it as a C struct.
7936
7937 2011-04-30  Bruno Haible  <bruno@clisp.org>
7938
7939         manywarnings: fix indentation
7940         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7941
7942 2011-04-30  Pádraig Brady <P@draigBrady.com>
7943
7944         manywarnings: add -Wno-missing-field-initializers if needed.
7945         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7946         option if it's needed to allow initialization with { 0, }
7947
7948 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7949
7950         announce-gen: cosmetic improvement
7951         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7952
7953 2011-04-29  Jim Meyering  <meyering@redhat.com>
7954
7955         vc-list-files: indent with spaces, not TABs
7956         * build-aux/vc-list-files: Convert leading TABs to spaces,
7957         to match the style of most other files in gnulib.
7958
7959         announce-gen: indent with spaces, not TABs
7960         * build-aux/announce-gen: Convert all TABs to spaces, to match
7961         the style of most other files in gnulib.
7962
7963 2011-04-29  Eric Blake  <eblake@redhat.com>
7964
7965         quotearg: avoid uninitialized variable use
7966         * lib/quotearg.c (quoting_options_from_style): Initialize
7967         remaining fields, and ensure that custom styles are only used via
7968         quoting_options rather than quoting_style.
7969
7970 2011-04-29  Jim Meyering  <meyering@redhat.com>
7971
7972         maint.mk: remove unused VC-tag variable
7973         * top/maint.mk (VC-tag): Remove unused variable.
7974
7975 2011-04-29  Bruno Haible  <bruno@clisp.org>
7976
7977         netdb: fix gai_strerror replacements
7978         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7979         * modules/netdb: Substitute it.
7980
7981 2011-04-29  Jim Meyering  <meyering@redhat.com>
7982
7983         test-getcwd.c: avoid new set-but-not-used warning
7984         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7985         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7986         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7987         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7988
7989         test-hash.c: avoid a new shadowing warning
7990         * tests/test-hash.c (main): Don't shadow "dup".
7991
7992 2011-04-28  Eric Blake  <eblake@redhat.com>
7993
7994         getaddrinfo: fix gai_strerror signature
7995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7996         and work around mingw with UNICODE defined.
7997         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7998         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7999         * modules/netdb (Makefile.am): Substitute it.
8000         * lib/netdb.in.h (gai_strerror): Declare replacement.
8001         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8002         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8003         the fix.
8004
8005         getsockopt: avoid compiler warning
8006         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8007         Reported by Matthias Bolte.
8008
8009         tests: drop unused link dependency
8010         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8011         * modules/dirent-safer-tests (Makefile.am): Likewise.
8012         * modules/fdopendir-tests (Makefile.am): Likewise.
8013         * modules/mkfifoat-tests (Makefile.am): Likewise.
8014         * modules/openat-safer-tests (Makefile.am): Likewise.
8015         * modules/openat-tests (Makefile.am): Likewise.
8016         * modules/readlinkat-tests (Makefile.am): Likewise.
8017         * modules/symlinkat-tests (Makefile.am): Likewise.
8018         * modules/linkat-tests (Makefile.am): Likewise.
8019         (Depends-on): Switch to filenamecat-lgpl.
8020         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8021         LIBINTL.
8022         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8023         * tests/test-linkat.c (main): Don't require xalloc.
8024
8025         hash, mgetgroups: drop xalloc dependency
8026         * lib/hash.c (includes): Adjust includes.
8027         * lib/mgetgroups.c (includes): Likewise.
8028         (xgetgroups): Move...
8029         * lib/xgetgroups.c: ...to new file.
8030         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8031         * modules/xgetgroups: New file, split from...
8032         * modules/mgetgroups: ...here.
8033         (Depends-on): Add xalloc-oversized.
8034         * modules/hash (Depends-on): Likewise.
8035         * modules/hash-tests (Depends-on): Drop xalloc.
8036         (test_hash_LDADD): Drop unused library.
8037         * tests/test-hash.c (main): Break xalloc dependency.
8038         (includes): Drop unused include.
8039
8040         xalloc-oversized: new module
8041         * modules/xalloc-oversized: New module.
8042         * modules/xalloc (Depends-on): Add it.
8043         * lib/xalloc.h (xalloc_oversized): Move...
8044         * lib/xalloc-oversized.h: ...into new file.
8045
8046         utimecmp: drop dependency on xmalloc
8047         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8048         due to memory pressure.
8049         * modules/utimecmp (Depends-on): Drop xalloc.
8050
8051 2011-04-27  Eric Blake  <eblake@redhat.com>
8052
8053         getcwd: fix mingw bugs
8054         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8055         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8056         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8057
8058 2011-04-27  Bruno Haible  <bruno@clisp.org>
8059
8060         mkstemps: Ensure declaration on MacOS X 10.5.
8061         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8062         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8063         MacOS X.
8064
8065 2011-04-27  Bruno Haible  <bruno@clisp.org>
8066
8067         mkstemp: More documentation.
8068         * doc/posix-functions/mkstemp.texi: Document header file problem on
8069         MacOS X.
8070
8071 2011-04-27  Bruno Haible  <bruno@clisp.org>
8072
8073         mkstemp: Tweak configure message when cross-compiling.
8074         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8075         result as a guess.
8076
8077 2011-04-27  Bruno Haible  <bruno@clisp.org>
8078
8079         clean-temp: Clarify what it does.
8080         * lib/clean-temp.h: Add more comments.
8081         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8082         module.
8083         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8084         * doc/glibc-functions/mkstemps.texi: Likewise.
8085         * doc/glibc-functions/mkostemps.texi: Likewise.
8086
8087 2011-04-27  Eric Blake  <eblake@redhat.com>
8088
8089         fchdir: avoid extra chdir and fix test
8090         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8091         getcwd-lgpl.
8092         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8093         have to be canonical.
8094         (canonicalize_file_name): Drop unused macro.
8095         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8096
8097         filenamecat-lgpl: fix licence
8098         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8099         when it was first created.
8100
8101         linkat, renameat: add missing dependency
8102         * modules/linkat (Depends-on): Require getcwd-lgpl.
8103         * modules/renameat (Depends-on): Likewise.
8104
8105         tests: reduce dependencies
8106         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8107         * tests/test-renameat.c (main): Likewise.
8108         * modules/linkat-tests (Depends-on): Relax dependency.
8109         * modules/renameat-tests (Depends-on): Likewise.
8110         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8111         dependency explicit.
8112
8113         save-cwd: reduce default dependency
8114         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8115         * lib/save-cwd.c: Update comments.
8116         * NEWS: Document the semantic change.
8117
8118         getcwd: enhance tests
8119         * tests/test-getcwd-lgpl.c: New file, taken from...
8120         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8121         repeat long path stress tests from m4 probe.
8122         * modules/getcwd-lgpl-tests: New module.
8123         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8124         * m4/getcwd-abort-bug.m4: Update comment.
8125         * m4/getcwd-path-max.m4: Likewise.
8126
8127         getcwd-lgpl: new module
8128         * modules/getcwd-lgpl: New module.
8129         * lib/getcwd-lgpl.c: New file.
8130         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8131         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8132         * modules/getcwd (configure.ac): Set C witness.
8133         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8134
8135         getcwd: tweak comments
8136         * m4/getcwd-abort-bug.m4: Fix comments.
8137         * m4/getcwd-path-max.m4: Likewise.
8138         * m4/getcwd.m4: Likewise.
8139
8140 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8141         and Eric Blake  <eblake@redhat.com>
8142
8143         mkstemp: replace if system version uses wrong permissions
8144         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8145         read/write mode bits set in file created by mkstemp.
8146         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8147
8148 2011-04-27  Eric Blake  <eblake@redhat.com>
8149
8150         passfd: avoid compiler warning
8151         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8152         Reported by Laine Stump.
8153
8154 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8155
8156         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8157         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8158
8159 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8160         and Eric Blake  <eblake@redhat.com>
8161
8162         mkstemp: mention clean-temp module
8163         * lib/mkstemp.c: Add comment.
8164         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8165
8166 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8167
8168         inttypes: also provide default values for 32-bit tests
8169         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8170         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8171
8172 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8173
8174         strtoumax: remove dependency on strtoimax
8175         This is like the strtoull change of yesterday.
8176         * modules/strtoumax (Files): Add lib/strtoimax.c.
8177         (Depends-on): Remove strtoimax and add verify.
8178
8179         inttypes-incomplete: new module
8180         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8181         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8182         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8183         of gl_INTTYPES_H.
8184         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8185         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8186         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8187         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8188         * modules/strtoumax, modules/xstrtol (Depends-on):
8189         Depend on inttypes-incomplete, not inttypes.
8190         * modules/inttypes-incomplete: New module, containing the contents
8191         of the old modules/inttypes module, except that the Files: section
8192         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8193         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8194         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8195         (Depends-on): Depend only on inttypes-incomplete.
8196         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8197
8198         inttypes: omit now-redundant strtoimax and strtoumax work
8199         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8200         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8201
8202         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8203         This supports apps that need pointers to strtoimax and strtoumax,
8204         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8205         nonexistent functions.  See
8206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8207         et seq.
8208         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8209         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8210         a macro.
8211         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8212
8213 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8214
8215         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8216
8217 2011-04-25  Bruno Haible  <bruno@clisp.org>
8218
8219         strtol, strtoul: Mark modules as obsolete.
8220         * modules/strtol (Status, Notice): New sections.
8221         * modules/strtoul (Status, Notice): New sections.
8222
8223 2011-04-25  Bruno Haible  <bruno@clisp.org>
8224
8225         strtod: Remove check for strtod, unless supporting old platforms.
8226         * modules/strtod-obsolete: New file.
8227         * m4/strtod-obsolete.m4: New file.
8228         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8229         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8230         * modules/strtod (Depends-on): Add strtod-obsolete.
8231         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8232
8233 2011-04-25  Bruno Haible  <bruno@clisp.org>
8234
8235         strcase: Make module obsolete.
8236         * modules/strcase (Status, Notice): New sections.
8237
8238 2011-04-25  Bruno Haible  <bruno@clisp.org>
8239
8240         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8241         * modules/dup2-obsolete: New file.
8242         * m4/dup2-obsolete.m4: New file.
8243         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8244         gl_FUNC_DUP2_OBSOLETE is not also defined.
8245         * modules/dup2 (Depends-on): Add dup2-obsolete.
8246         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8247
8248 2011-04-25  Bruno Haible  <bruno@clisp.org>
8249
8250         strnlen: Avoid memchr related link error on old obsolete platforms.
8251         * modules/memchr-obsolete: New file.
8252         * m4/memchr-obsolete.m4: New file.
8253         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8254         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8255         * modules/memchr (Depends-on): Add memchr-obsolete.
8256         * modules/strnlen (Depends-on): Likewise.
8257         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8258
8259 2011-04-25  Jim Meyering  <meyering@redhat.com>
8260
8261         maint.mk: makefile_at_at_check extend and clean up
8262         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8263         in addition to */Makefile.am.
8264         Exempt legitimate uses of @VAR@ notation, e.g.,
8265         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8266         Remove obsolete coreutils-specific comment.
8267         Prompted by discussion here:
8268         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8269
8270 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8271
8272         strtoul: remove dependency on strtol
8273         This is so that 'configure' need not check for strtol merely because
8274         the application needs strtoul.
8275         * modules/strtoul (Files): Add lib/strtol.c.
8276         (Depends-on): Remove strtol.
8277
8278         strtoull: remove dependency on strtoul
8279         This is like the strtoll change.
8280         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8281         (Depends-on): Remove strtoul.
8282
8283         strtoll: remove dependency on strtol
8284         This is so that 'configure' need not check for strtol merely because
8285         the application needs strtoll.
8286         * modules/strtoll (Files): Add lib/strtol.c.
8287         (Depends-on): Remove strtol.
8288
8289 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8290
8291         inttypes: Move some configure check to module 'imaxdiv'.
8292         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8293         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8294         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8295
8296 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8297
8298         inttypes: Move some configure check to module 'imaxabs'.
8299         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8300         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8301         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8302
8303 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8304
8305         inttypes: Remove configure tests that are not needed since 2009-12-31.
8306         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8307         gl_cv_header_working_inttypes_h.
8308
8309 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8310
8311         * modules/strnlen (Depends-on): Remove memchr.
8312         The strnlen implementation doesn't need the memchr module's fixes; see
8313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8314
8315         strtol: remove dependency on wchar
8316         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8317         * modules/strtol (Depends-on): Remove wchar.
8318
8319 2011-04-21  Eric Blake  <eblake@redhat.com>
8320
8321         passfd: fix test regression on Linux
8322         * modules/passfd-tests (configure.ac): Correct socketpair check.
8323
8324         passfd: speed up configure and drop unused code
8325         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8326         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8327         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8328         Instead of probing at configure for unix_scm_rights_bsd44_way,
8329         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8330         check to a struct member probe.
8331         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8332         (sendfd, recvfd): Update preprocessor checks.
8333         * modules/passfd (Files): Reflect rename, and drop unused file.
8334         (Depends-on): Drop unused dependency.
8335
8336         passfd: allow compilation on mingw
8337         * modules/sys_socket (Depends-on): Add sys_uio.
8338         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8339         iovec and a minimal struct msghdr.
8340         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8341         * tests/test-sys_socket.c (main): Enhance test.
8342         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8343         guaranteed to provide what we need.
8344         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8345         * modules/passfd-tests (Depends-on): Add sys_wait.
8346         * tests/test-passfd.c (main): Skip test on mingw, for now.
8347         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8348         partial 'struct msghdr' implementation.
8349
8350         sys_uio: new module
8351         * modules/sys_uio: New module.
8352         * modules/sys_uio-tests: Likewise.
8353         * lib/sys_uio.in.h: New file.
8354         * m4/sys_uio_h.m4: Likewise.
8355         * tests/test-sys_uio.c: Likewise.
8356         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8357         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8358
8359 2011-04-20  Jim Meyering  <meyering@redhat.com>
8360
8361         useless-if-before-free: avoid false-positive
8362         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8363         disjunct so that it too requires a terminating ";".  Without that,
8364         this script would identify as useless one statement from gcc that
8365         was not:
8366           if (aligned_ptr)
8367             free (((void **) aligned_ptr) [-1]);
8368
8369 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8370
8371         doc: update users.txt.
8372         * users.txt: Add barcode.
8373
8374 2011-04-19  Bruno Haible  <bruno@clisp.org>
8375
8376         ioctl: Remove link dependency on native Windows.
8377         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8378         (gl_close_fn, gl_ioctl_fn): New types.
8379         (struct fd_hook): Renamed from struct close_hook. Change type of
8380         private_close_fn field. Add private_ioctl_fn field.
8381         (close_hook_fn): Add parameter for primary close method.
8382         (execute_close_hooks, execute_all_close_hooks): Likewise.
8383         (ioctl_hook_fn): New type.
8384         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8385         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8386         argument.
8387         (unregister_fd_hook): Renamed from unregister_close_hook.
8388         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8389         Don't include <unistd.h>.
8390         (close): Remove undef.
8391         (anchor): Update.
8392         (execute_close_hooks): Add argument for primary close method.
8393         (execute_all_close_hooks): Likewise.
8394         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8395         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8396         argument. Allow each argument to be NULL.
8397         (unregister_fd_hook): Renamed from unregister_close_hook.
8398         * lib/close.c (rpl_close): Pass 'close' function pointer to
8399         execute_all_close_hooks.
8400         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8401         (primary_ioctl): New function.
8402         (ioctl): Don't call ioctlsocket here. Instead, call
8403         execute_all_ioctl_hooks.
8404         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8405         close method.
8406         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8407         (fd_sockets_hook): Renamed from close_sockets_hook.
8408         (gl_sockets_startup, gl_sockets_cleanup): Update.
8409         * modules/fd-hook: Renamed from modules/close-hook. Update.
8410         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8411         * modules/sockets (Depends-on): Likewise.
8412         * modules/ioctl (Depends-on): Add fd-hook.
8413         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8414         GNULIB_SOCKET.
8415
8416 2011-04-19  Bruno Haible  <bruno@clisp.org>
8417
8418         Move the support of O_NONBLOCK in open() to the 'open' module.
8419         * modules/nonblocking (Depends-on): Remove 'open'.
8420         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8421         gl_cv_have_open_O_NONBLOCK.
8422         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8423         O_NONBLOCK support.
8424         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8425
8426 2011-04-17  Bruno Haible  <bruno@clisp.org>
8427
8428         pipe2: Simplify code.
8429         * lib/pipe2.c (pipe2): Reduce code duplication.
8430
8431 2011-04-17  Bruno Haible  <bruno@clisp.org>
8432
8433         nonblocking: Add comment.
8434         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8435
8436 2011-04-17  Bruno Haible  <bruno@clisp.org>
8437
8438         nonblocking: Add tests for sockets.
8439         * tests/test-nonblocking-socket.sh: New file.
8440         * tests/test-nonblocking-socket-main.c: New file.
8441         * tests/test-nonblocking-socket-child.c: New file.
8442         * tests/test-nonblocking-socket.h: New file.
8443         * tests/socket-server.h: New file.
8444         * tests/socket-client.h: New file.
8445         * modules/nonblocking-socket-tests: New file.
8446         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8447
8448 2011-04-17  Bruno Haible  <bruno@clisp.org>
8449
8450         nonblocking: Add tests for pipes.
8451         * tests/test-nonblocking-pipe.sh: New file.
8452         * tests/test-nonblocking-pipe-main.c: New file.
8453         * tests/test-nonblocking-pipe-child.c: New file.
8454         * tests/test-nonblocking-pipe.h: New file.
8455         * tests/test-nonblocking-writer.h: New file.
8456         * tests/test-nonblocking-reader.h: New file.
8457         * tests/test-nonblocking-misc.h: New file.
8458         * modules/nonblocking-pipe-tests: New file.
8459         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8460
8461 2011-04-16  Bruno Haible  <bruno@clisp.org>
8462
8463         gettext: Clarify the needed programmer actions.
8464         * modules/gettext (Notice): New field.
8465         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8466
8467 2011-04-16  Bruno Haible  <bruno@clisp.org>
8468
8469         strchrnul: Tweak last commit.
8470         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8471         bug.
8472         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8473         as in _GL_FUNCDECL_SYS.
8474         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8475         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8476
8477 2011-04-15  Eric Blake  <eblake@redhat.com>
8478
8479         strchrnul: work around cygwin bug
8480         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8481         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8483         * modules/string (Makefile.am): Substitute it.
8484         * lib/string.in.h (strchrnul): Use it.
8485
8486 2011-04-15  Bruno Haible  <bruno@clisp.org>
8487
8488         Don't require lib/stdio-write.c when only module 'stdio' is used.
8489         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8490         invocation.
8491         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8492
8493 2011-04-14  Bruno Haible  <bruno@clisp.org>
8494
8495         Support non-blocking pipe I/O in read() on native Windows.
8496         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8497         (read): New declaration.
8498         * lib/read.c: New file.
8499         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8500         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8501         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8502         vscanf): New declarations.
8503         * lib/stdio-read.c: New file.
8504         * m4/read.m4: New file.
8505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8506         REPLACE_READ.
8507         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8508         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8509         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8510         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8511         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8512         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8513         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8514         * modules/read: New file.
8515         * modules/nonblocking (Files): Add lib/stdio-read.c.
8516         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8517         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8518         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8519         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8520         * modules/pread (Depends-on): Add read.
8521         * modules/safe-read (Depends-on): Likewise.
8522         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8523         gets, scanf, vfscanf, vscanf): Verify signatures.
8524         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8525         problem with non-blocking pipes.
8526         * doc/posix-functions/fgetc.texi: Likewise.
8527         * doc/posix-functions/fgets.texi: Likewise.
8528         * doc/posix-functions/fread.texi: Likewise.
8529         * doc/posix-functions/fscanf.texi: Likewise.
8530         * doc/posix-functions/getc.texi: Likewise.
8531         * doc/posix-functions/getchar.texi: Likewise.
8532         * doc/posix-functions/gets.texi: Likewise.
8533         * doc/posix-functions/scanf.texi: Likewise.
8534         * doc/posix-functions/vfscanf.texi: Likewise.
8535         * doc/posix-functions/vscanf.texi: Likewise.
8536
8537 2011-04-14  Bruno Haible  <bruno@clisp.org>
8538
8539         Support non-blocking pipe I/O in write() on native Windows.
8540         * lib/write.c (rpl_write): Split a write request that failed merely
8541         because the byte count was larger than the pipe buffer's size.
8542         * doc/posix-functions/write.texi: Mention the problem with large byte
8543         counts.
8544
8545 2011-04-14  Bruno Haible  <bruno@clisp.org>
8546
8547         wchar: Ensure that wchar_t gets defined on uClibc.
8548         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8549         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8550
8551 2011-04-13  Bruno Haible  <bruno@clisp.org>
8552
8553         safe-write, full-read: Avoid unnecessary compilation units.
8554         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8555         (Depends-on): Remove safe-read. Add ssize_t.
8556         * modules/full-read (Files): Add lib/full-write.c.
8557         (Depends-on): Add full-write.
8558
8559 2011-04-13  Bruno Haible  <bruno@clisp.org>
8560
8561         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8562         * modules/pwrite (Depends-on): Add 'write'.
8563
8564 2011-04-13  Bruno Haible  <bruno@clisp.org>
8565
8566         Support non-blocking pipe I/O in write() on native Windows.
8567         * lib/unistd.in.h (write): Enable replacement also if
8568         GNULIB_UNISTD_H_NONBLOCKING is 1.
8569         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8570         (rpl_write): When failing to write on a non-blocking pipe, change
8571         errno from ENOSPC to EAGAIN.
8572         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8573         putchar, puts, vfprintf, vprintf): Enable replacement also if
8574         GNULIB_STDIO_H_NONBLOCKING is 1.
8575         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8576         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8577         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8578         CALL_WITH_SIGPIPE_EMULATION.
8579         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8580         * m4/nonblocking.m4: New file.
8581         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8582         for non-blocking I/O support.
8583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8584         GNULIB_UNISTD_H_NONBLOCKING.
8585         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8586         required for non-blocking I/O support.
8587         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8588         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8589         lib/stdio-write.c, m4/asm-underscore.m4.
8590         (Depends-on): Add stdio, unistd.
8591         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8592         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8593         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8594         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8595         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8596         problem with non-blocking pipes.
8597         * doc/posix-functions/fputc.texi: Likewise.
8598         * doc/posix-functions/fputs.texi: Likewise.
8599         * doc/posix-functions/fwrite.texi: Likewise.
8600         * doc/posix-functions/printf.texi: Likewise.
8601         * doc/posix-functions/putc.texi: Likewise.
8602         * doc/posix-functions/putchar.texi: Likewise.
8603         * doc/posix-functions/puts.texi: Likewise.
8604         * doc/posix-functions/vfprintf.texi: Likewise.
8605         * doc/posix-functions/vprintf.texi: Likewise.
8606         * doc/posix-functions/write.texi: Likewise.
8607
8608 2011-04-10  Jim Meyering  <meyering@redhat.com>
8609
8610         maint.mk: prohibit doubled words
8611         Detect them also when they're separated by a newline.
8612         There are 3 ways to customize it:
8613           - disable the test on a per file basis, as usual with rules using
8614             $(VC_LIST_EXCEPT)
8615           - replace the default doubled-word-selecting regexp (affects all files)
8616           - ignore a particular file-vs-doubled-word match
8617         I nearly used that last one to ignore the "is is" match in
8618         coreutils' NEWS file, since the text was "ls -is is ..."
8619         To do that, I would have added this line to cfg.mk:
8620           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8621         but it would have ignored any "is is" match in NEWS.
8622         Low probability, but still...
8623         Instead, I changed the text, slightly:
8624           -  ls -is is now consistent with ls -lis in ignoring values returned
8625           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8626         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8627         (prohibit_doubled_word_): Define.
8628         (sc_prohibit_doubled_word): New rule.
8629         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8630
8631 2011-04-10  Jim Meyering  <meyering@redhat.com>
8632
8633         maint: fix doubled-word typo in comment
8634         * m4/gethostname.m4: s/is is/it is/
8635         * m4/getdomainname.m4: Likewise.
8636
8637 2011-04-10  Jim Meyering  <meyering@redhat.com>
8638
8639         maint: remove doubled word: s/it it/it/
8640         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8641
8642 2011-04-10  Jim Meyering  <meyering@redhat.com>
8643
8644         maint.mk: remove useless semicolon and backslash
8645         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8646         semicolon and backslash.
8647
8648 2011-04-10  Bruno Haible  <bruno@clisp.org>
8649
8650         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8651         * modules/stdint-tests (Depends-on): Add wchar.
8652
8653 2011-04-10  Jim Meyering  <meyering@redhat.com>
8654
8655         maint: remove doubled words in comments, e.g., s/a a/a/
8656         * lib/strptime.c (day_of_the_week): s/the the/the/
8657         * tests/test-chown.h (test_chown): s/a a/a/
8658
8659         test-chown.h: correct a cast
8660         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8661         when the destination is a stat.st_gid.
8662
8663 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8664
8665         getaddrinfo: Fix test for sa_len member.
8666         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8667         include <sys/types.h> before <sys/socket.h>.
8668
8669 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8670
8671         maint: change "can not" to "cannot"
8672         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8673         boundaries.
8674
8675 2011-04-09  Jim Meyering  <meyering@redhat.com>
8676
8677         maint: change "a a" to "a"
8678         * tests/test-lchown.h (test_lchown): s/a a/a/
8679
8680         maint.mk: prohibit \<the the\>
8681         * top/maint.mk (sc_prohibit_the_the): New rule.
8682
8683         maint: fix "the the" in comment
8684         * lib/count-one-bits.h: s/the the/the/
8685
8686         maint: change "can not" to "cannot"
8687         But do not change the occurrences in maintain.texi or in
8688         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8689         * doc/gnulib-tool.texi: s/can not/cannot/
8690         * doc/posix-functions/accept.texi (accept): Likewise.
8691         * doc/posix-functions/socket.texi (socket): Likewise.
8692         * lib/mbrtowc.c: Likewise.
8693
8694         maint.mk: prohibit use of "can not"
8695         * top/maint.mk (sc_prohibit_can_not): New rule.
8696         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8697
8698 2011-04-09  Bruno Haible  <bruno@clisp.org>
8699
8700         careadlinkat: Guard against misuse of careadlinkatcwd.
8701         * lib/careadlinkat.c: Include <stdlib.h>.
8702         (careadlinkatcwd): Check that the fd argument is as expected.
8703
8704 2011-04-09  Bruno Haible  <bruno@clisp.org>
8705
8706         careadlinkat: Use common coding style.
8707         * lib/careadlinkat.c: Move gnulib includes after system includes.
8708
8709 2011-04-09  Bruno Haible  <bruno@clisp.org>
8710
8711         careadlinkat: Clarify specification.
8712         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8713         (careadlinkatcwd): Add comment.
8714         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8715
8716 2011-04-09  Bruno Haible  <bruno@clisp.org>
8717
8718         areadlinkat: Avoid link error on many platforms.
8719         * modules/areadlinkat (Depends-on): Add areadlink.
8720
8721 2011-04-09  Bruno Haible  <bruno@clisp.org>
8722
8723         allocator, careadlinkat: Fix double-inclusion guard.
8724         * lib/allocator.h: Fix double-inclusion guard.
8725         * lib/careadlinkat.h: Likewise.
8726
8727 2011-04-09  Bruno Haible  <bruno@clisp.org>
8728
8729         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8730         * lib/relocwrapper.c: Update dependencies hierarchy.
8731         * build-aux/install-reloc: Update list of files to be compiled.
8732         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8733         lib/allocator.[hc].
8734
8735 2011-04-08  Eric Blake  <eblake@redhat.com>
8736
8737         strftime: silence gnulib-tool warning
8738         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8739
8740 2011-04-08  Bruno Haible  <bruno@clisp.org>
8741
8742         verify: Fix syntax error with GCC 4.6 in C++ mode.
8743         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8744         (HAVE_STATIC_ASSERT): New macro.
8745         (verify_true, verify): Use 'static_assert' if it is supported and
8746         '_Static_assert' is not supported.
8747
8748 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8749
8750         allocator: New module.
8751         * modules/allocator, lib/allocator.c: New files.
8752         * lib/allocator.h (stdlib_allocator): New decl.
8753         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8754         Remove.  Do not include <stdlib.h>.
8755         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8756         * modules/careadlinkat (Files): Remove lib/allocator.h.
8757         (Depends-on): Add allocator.
8758
8759         stdlib: let modules use system malloc, realloc
8760         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8761         if !_GL_USE_STDLIB_ALLOC.
8762         (malloc, realloc): Limit this change to a smaller scope.
8763
8764         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8765         (malloc, realloc): Don't #undef; no longer needed.
8766         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8767         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8768         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8769         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8770         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8771         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8772         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8773         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8774
8775         careadlinkat: rename members to avoid problem
8776         * lib/allocator.h (struct allocator): Rename members from
8777         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8778         and realloc are #define'd.  Reported by Eric Blake in
8779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8780         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8781
8782 2011-04-08  Eric Blake  <eblake@redhat.com>
8783
8784         nonblocking: reduce dependency
8785         * tests/test-nonblocking.c: Only test sockets when in use.
8786         * modules/nonblocking-tests (Depends-on): Drop socket.
8787         (Makefile.am): Link even if sockets are not present.
8788         * modules/pipe2-tests (Makefile.am): Likewise.
8789         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8790
8791         pipe2: fix O_NONBLOCK support on mingw
8792         * modules/pipe2 (Depends-on): Add nonblocking.
8793         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8794         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8795         * tests/test-nonblocking.c (main): Likewise.
8796         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8797
8798         fcntl-h: fix O_ACCMODE on cygwin
8799         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8800         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8801
8802         pipe-filter: drop O_NONBLOCK workarounds
8803         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8804         * modules/pipe-filter-ii (Depends-on): Likewise.
8805         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8806
8807         nonblocking: provide O_NONBLOCK for mingw
8808         * modules/nonblocking (Depends-on): Add open.
8809         (configure.ac): Set new witness macro.
8810         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8811         * modules/fcntl-h (Makefile.am): Substitute it.
8812         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8813         nonblocking module is in use.
8814         * lib/nonblocking.c: Adjust portability test.
8815         * lib/open.c (open): Don't let native open see gnulib flag.
8816         * tests/test-fcntl-h.c (main): Enhance test.
8817         * tests/test-open.h (test_open): Likewise.
8818         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8819
8820         careadlinkat: fix compilation error on mingw
8821         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8822         within struct allocator.
8823
8824 2011-04-06  Eric Blake  <eblake@redhat.com>
8825
8826         binary-io: relicense under LGPLv2+
8827         * modules/binary-io (License): Relax to LGPLv2+.
8828         Requested for libvirt, and required by pipe2.
8829
8830 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8831
8832         verify: use _Static_assert if available
8833         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8834         (verify_true, verify): Use it if available.  This generates better
8835         diagnostics with GCC 4.6.0 and later.
8836
8837 2011-04-05  Bruno Haible  <bruno@clisp.org>
8838
8839         Remove leftover generated .h files after config.status changed.
8840
8841         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8842         GL_GENERATE_ALLOCA_H.
8843         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8844         GL_GENERATE_ALLOCA_H evaluates to false.
8845
8846         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8847         GL_GENERATE_ARGZ_H.
8848         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8849         evaluates to false.
8850
8851         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8852         GL_GENERATE_BYTESWAP_H.
8853         * modules/byteswap (Makefile.am): Remove byteswap.h if
8854         GL_GENERATE_BYTESWAP_H evaluates to false.
8855
8856         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8857         GL_GENERATE_ERRNO_H.
8858         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8859         evaluates to false.
8860
8861         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8862         GL_GENERATE_FLOAT_H.
8863         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8864         evaluates to false.
8865
8866         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8867         GL_GENERATE_FNMATCH_H.
8868         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8869         GL_GENERATE_FNMATCH_H evaluates to false.
8870
8871         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8872         GL_GENERATE_GLOB_H.
8873         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8874         evaluates to false.
8875
8876         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8877         automake conditional GL_GENERATE_ICONV_H.
8878         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8879         evaluates to false.
8880
8881         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8882         GL_GENERATE_NETINET_IN_H.
8883         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8884         GL_GENERATE_NETINET_IN_H evaluates to false.
8885
8886         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8887         conditional GL_GENERATE_PTHREAD_H.
8888         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8889         * modules/pthread (Makefile.am): Remove pthread.h if
8890         GL_GENERATE_PTHREAD_H evaluates to false.
8891
8892         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8893         GL_GENERATE_SCHED_H.
8894         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8895         evaluates to false.
8896
8897         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8898         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8899         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8900         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8901
8902         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8903         GL_GENERATE_STDARG_H.
8904         * modules/stdarg (Makefile.am): Remove stdarg.h if
8905         GL_GENERATE_STDARG_H evaluates to false.
8906
8907         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8908         GL_GENERATE_STDBOOL_H.
8909         * modules/stdbool (Makefile.am): Remove stdbool.h if
8910         GL_GENERATE_STDBOOL_H evaluates to false.
8911
8912         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8913         conditional GL_GENERATE_STDDEF_H.
8914         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8915         * modules/stddef (Makefile.am): Remove stddef.h if
8916         GL_GENERATE_STDDEF_H evaluates to false.
8917
8918         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8919         GL_GENERATE_STDINT_H.
8920         * modules/stdint (Makefile.am): Remove stdint.h if
8921         GL_GENERATE_STDINT_H evaluates to false.
8922
8923         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8924         GL_GENERATE_SYSEXITS_H.
8925         * modules/sysexits (Makefile.am): Remove sysexits.h if
8926         GL_GENERATE_SYSEXITS_H evaluates to false.
8927
8928         Reported by Karl Berry and Ralf Wildenhues.
8929
8930 2011-04-05  Bruno Haible  <bruno@clisp.org>
8931
8932         Ensure to rebuild generated .h files when config.status has changed.
8933         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8934         config.status.
8935         * modules/ctype (Makefile.am): Likewise.
8936         * modules/dirent (Makefile.am): Likewise.
8937         * modules/errno (Makefile.am): Likewise.
8938         * modules/fcntl-h (Makefile.am): Likewise.
8939         * modules/float (Makefile.am): Likewise.
8940         * modules/getopt-posix (Makefile.am): Likewise.
8941         * modules/glob (Makefile.am): Likewise.
8942         * modules/iconv-h (Makefile.am): Likewise.
8943         * modules/inttypes (Makefile.am): Likewise.
8944         * modules/langinfo (Makefile.am): Likewise.
8945         * modules/locale (Makefile.am): Likewise.
8946         * modules/math (Makefile.am): Likewise.
8947         * modules/netdb (Makefile.am): Likewise.
8948         * modules/netinet_in (Makefile.am): Likewise.
8949         * modules/poll-h (Makefile.am): Likewise.
8950         * modules/pthread (Makefile.am): Likewise.
8951         * modules/pty (Makefile.am): Likewise.
8952         * modules/sched (Makefile.am): Likewise.
8953         * modules/search (Makefile.am): Likewise.
8954         * modules/selinux-h (Makefile.am): Likewise.
8955         * modules/signal (Makefile.am): Likewise.
8956         * modules/spawn (Makefile.am): Likewise.
8957         * modules/stdarg (Makefile.am): Likewise.
8958         * modules/stdbool (Makefile.am): Likewise.
8959         * modules/stddef (Makefile.am): Likewise.
8960         * modules/stdint (Makefile.am): Likewise.
8961         * modules/stdio (Makefile.am): Likewise.
8962         * modules/stdlib (Makefile.am): Likewise.
8963         * modules/string (Makefile.am): Likewise.
8964         * modules/strings (Makefile.am): Likewise.
8965         * modules/sys_file (Makefile.am): Likewise.
8966         * modules/sys_ioctl (Makefile.am): Likewise.
8967         * modules/sys_select (Makefile.am): Likewise.
8968         * modules/sys_socket (Makefile.am): Likewise.
8969         * modules/sys_stat (Makefile.am): Likewise.
8970         * modules/sys_time (Makefile.am): Likewise.
8971         * modules/sys_times (Makefile.am): Likewise.
8972         * modules/sys_utsname (Makefile.am): Likewise.
8973         * modules/sys_wait (Makefile.am): Likewise.
8974         * modules/sysexits (Makefile.am): Likewise.
8975         * modules/termios (Makefile.am): Likewise.
8976         * modules/time (Makefile.am): Likewise.
8977         * modules/unistd (Makefile.am): Likewise.
8978         * modules/wchar (Makefile.am): Likewise.
8979         * modules/wctype-h (Makefile.am): Likewise.
8980         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8981
8982 2011-04-05  Bruno Haible  <bruno@clisp.org>
8983
8984         pipe2: Relicense under LGPLv2+.
8985         * modules/pipe2 (License): Change to LGPLv2+.
8986         Requested by Eric Blake, for libvirt.
8987
8988 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8989
8990         bootstrap: compute gnulib_extra_files after updating build_aux
8991         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8992         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8993
8994 2011-04-05  Eric Blake  <eblake@redhat.com>
8995
8996         bootstrap: preserve git whitelist item sorting
8997         * build-aux/bootstrap (sort_patterns): New function.
8998         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8999
9000 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9001
9002         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9003         sc_space_tab check.
9004
9005 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9006
9007         areadlink, areadlinkat: rewrite in terms of careadlinkat
9008         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9009         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9010         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9011         (malloc, realloc): Remove #undefs.
9012         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9013         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9014         readlink, ssize_t, stdint, unistd.
9015         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9016         areadlink, stdint.
9017
9018         careadlinkat: new module
9019         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9020         * modules/careadlinkat: New files, written by me with
9021         a review and feedback from Ben Pfaff in
9022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9023
9024 2011-04-01  Bruno Haible  <bruno@clisp.org>
9025
9026         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9027         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9028         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9029         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9030         Reported by Bruce Korb <bruce.korb@gmail.com>.
9031
9032 2011-04-01  Bruno Haible  <bruno@clisp.org>
9033
9034         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9035         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9036         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9037         * modules/wcpcpy (Depends-on): Add extensions.
9038         * modules/wcpncpy (Depends-on): Likewise.
9039         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9040         systems.
9041         * doc/posix-functions/wcpncpy.texi: Likewise.
9042         * doc/posix-functions/wcwidth.texi: Likewise.
9043
9044 2011-03-31  Eric Blake  <eblake@redhat.com>
9045
9046         nonblocking: fix mingw test failures
9047         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9048         non-blocking flag on regular file.
9049         (get_nonblocking_flag): Set errno on invalid fd.
9050         * tests/test-nonblocking.c (main): Avoid test failure on
9051         directories if fchdir is not active.
9052         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9053
9054 2011-03-31  Bruno Haible  <bruno@clisp.org>
9055
9056         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9057         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9058         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9059         Reported by Simon Josefsson <simon@josefsson.org>.
9060
9061 2011-03-31  Bruno Haible  <bruno@clisp.org>
9062         and Eric Blake  <eblake@redhat.com>
9063
9064         nonblocking: new module
9065         * modules/nonblocking: New module.
9066         * modules/nonblocking-tests: Likewise.
9067         * lib/nonblocking.h: New file.
9068         * lib/nonblocking.c: Likewise.
9069         * tests/test-nonblocking.c: New test.
9070         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9071
9072 2011-03-30  Bruno Haible  <bruno@clisp.org>
9073
9074         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9075         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9076         instead of 'printf' format for GCC >= 4.4.
9077         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9078         (fprintf, printf, vfprintf, vprintf): Declare with
9079         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9080         the system's vfprintf() function.
9081         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9082
9083 2011-03-30  Eric Blake  <eblake@redhat.com>
9084
9085         passfd: fix scoping bug
9086         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9087         before sendmsg/recvmsg.
9088
9089         passfd: standardize coding conventions
9090         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9091         can be learned at compile time.
9092         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9093         ifdefs.
9094         (sendfd, recvfd): Follow gnulib code conventions.
9095
9096         passfd: fix incorrect sendmsg arguments
9097         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9098         incorrect msg_controllen value.
9099         * modules/passfd-tests (Depends-on): Check for alarm.
9100         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9101         Reported by Bastien ROUCARIES.
9102
9103 2011-03-30  Bruno Haible  <bruno@clisp.org>
9104
9105         c-strcasestr: Relicense under LGPLv2+.
9106         * modules/c-strcasestr (License): Change to LGPLv2+.
9107         Requested by Eric Blake, for libvirt.
9108
9109 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9110
9111         * users.txt: Add libidn2.  Fix libtasn1 link.
9112
9113 2011-03-30  Jim Meyering  <meyering@redhat.com>
9114
9115         tests: readlink* ("",... fails with EINVAL on newer kernels
9116         readlink and readlinkat have typically failed with ENOENT for
9117         the invalid, empty file name,  "".  However, with the advent
9118         of linux-2.6.39, they fail with EINVAL.
9119         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9120         when operating on the empty file name.
9121         * tests/test-readlink.h (test_readlink): Likewise.
9122
9123 2011-03-29  Bruno Haible  <bruno@clisp.org>
9124
9125         Relicense some modules under LGPLv2+, for libidn2.
9126         * modules/array-mergesort (License): Change to LGPLv2+.
9127         * modules/c-strcaseeq (License): Likewise.
9128         * modules/striconveh (License): Likewise.
9129         * modules/striconveha (License): Likewise.
9130         * modules/uniconv/base (License): Likewise.
9131         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9132         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9133         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9134         * modules/unictype/base (License): Likewise.
9135         * modules/unictype/bidiclass-of (License): Likewise.
9136         * modules/unictype/category-M (License): Likewise.
9137         * modules/unictype/category-none (License): Likewise.
9138         * modules/unictype/category-of (License): Likewise.
9139         * modules/unictype/category-test (License): Likewise.
9140         * modules/unictype/category-test-withtable (License): Likewise.
9141         * modules/unictype/combining-class (License): Likewise.
9142         * modules/unictype/joiningtype-of (License): Likewise.
9143         * modules/unictype/scripts (License): Likewise.
9144         * modules/uninorm/base (License): Likewise.
9145         * modules/uninorm/canonical-decomposition (License): Likewise.
9146         * modules/uninorm/composition (License): Likewise.
9147         * modules/uninorm/decompose-internal (License): Likewise.
9148         * modules/uninorm/decomposition-table (License): Likewise.
9149         * modules/uninorm/nfc (License): Likewise.
9150         * modules/uninorm/nfd (License): Likewise.
9151         * modules/uninorm/u32-normalize (License): Likewise.
9152         * modules/unistr/base (License): Likewise.
9153         * modules/unistr/u32-cpy (License): Likewise.
9154         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9155         * modules/unistr/u32-to-u8 (License): Likewise.
9156         * modules/unistr/u32-uctomb (License): Likewise.
9157         * modules/unistr/u8-check (License): Likewise.
9158         * modules/unistr/u8-mblen (License): Likewise.
9159         * modules/unistr/u8-mbtouc (License): Likewise.
9160         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9161         * modules/unistr/u8-mbtoucr (License): Likewise.
9162         * modules/unistr/u8-prev (License): Likewise.
9163         * modules/unistr/u8-strlen (License): Likewise.
9164         * modules/unistr/u8-to-u32 (License): Likewise.
9165         * modules/unistr/u8-uctomb (License): Likewise.
9166         * modules/unitypes (License): Likewise.
9167         Requested by Simon Josefsson.
9168
9169 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9170
9171         lib-symbol-visibility: Add a notice.
9172         * modules/lib-symbol-visibility (Notice): New field.
9173
9174 2011-03-29  Bruno Haible  <bruno@clisp.org>
9175
9176         getaddrinfo: Doc fix.
9177         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9178         section "fixed in Gnulib".
9179
9180 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9181
9182         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9183         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9184
9185 2011-03-26  Bruno Haible  <bruno@clisp.org>
9186
9187         unictype/property-byname: Reduce the number of load-time relocations.
9188         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9189         (UC_PROPERTY_INDEX_*): New enumeration values.
9190         (uc_property_byname): Convert an index from the lookup table to an
9191         uc_property_t.
9192         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9193         values.
9194
9195 2011-03-26  Bruno Haible  <bruno@clisp.org>
9196
9197         unictype/property-byname: Allow omitted word separators and aliases.
9198         * lib/unictype/pr_byname.gperf: Add property names without word
9199         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9200         for 'space'.
9201
9202 2011-03-26  Bruno Haible  <bruno@clisp.org>
9203
9204         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9205         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9206         also hyphens to space.
9207         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9208         without spaces.
9209         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9210
9211 2011-03-26  Bruno Haible  <bruno@clisp.org>
9212
9213         unictype/joiningtype-byname: Recognize long names as well.
9214         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9215         a long name.
9216         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9217         unictype/joiningtype_byname.h.
9218         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9219         * lib/unictype/joiningtype_byname.gperf: New file.
9220         * modules/unictype/joiningtype-byname (Files): Add
9221         lib/unictype/joiningtype_byname.gperf.
9222         (Depends-on): Add gperf.
9223         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9224         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9225         long names.
9226
9227         Tests for module 'unictype/joiningtype-longname'.
9228         * modules/unictype/joiningtype-longname-tests: New file.
9229         * tests/unictype/test-joiningtype_longname.c: New file.
9230
9231         New module 'unictype/joiningtype-longname'.
9232         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9233         * lib/unictype/joiningtype_longname.c: New file.
9234         * modules/unictype/joiningtype-longname: New file.
9235         * modules/unictype/joiningtype-all (Depends-on): Add
9236         unictype/joiningtype-longname.
9237
9238 2011-03-26  Bruno Haible  <bruno@clisp.org>
9239
9240         unictype/bidiclass-byname: Recognize long names as well.
9241         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9242         name.
9243         * lib/unictype/bidi_byname.c: Include <string.h>,
9244         unictype/bidi_byname.h.
9245         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9246         * lib/unictype/bidi_byname.gperf: New file.
9247         * modules/unictype/bidiclass-byname (Files): Add
9248         lib/unictype/bidi_byname.gperf.
9249         (Depends-on): Add gperf.
9250         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9251         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9252         long names.
9253
9254         Tests for module 'unictype/bidiclass-longname'.
9255         * modules/unictype/bidiclass-longname-tests: New file.
9256         * tests/unictype/test-bidi_longname.c: New file.
9257
9258         New module 'unictype/bidiclass-longname'.
9259         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9260         * lib/unictype/bidi_longname.c: New file.
9261         * modules/unictype/bidiclass-longname: New file.
9262         * modules/unictype/bidiclass-all (Depends-on): Add
9263         unictype/bidiclass-longname.
9264
9265 2011-03-26  Bruno Haible  <bruno@clisp.org>
9266
9267         unictype/bidi*: Rename modules.
9268         * modules/unictype/bidiclass-all: Renamed from
9269         modules/unictype/bidicategory-all.
9270         * modules/unictype/bidiclass-name: Renamed from
9271         modules/unictype/bidiclass-name.
9272         (Description): Update.
9273         * modules/unictype/bidiclass-name-tests: Renamed from
9274         modules/unictype/bidicategory-name-tests.
9275         * modules/unictype/bidiclass-byname: Renamed from
9276         modules/unictype/bidicategory-byname.
9277         (Description): Update.
9278         * modules/unictype/bidiclass-byname-tests: Renamed from
9279         modules/unictype/bidicategory-byname-tests.
9280         * modules/unictype/bidiclass-of: Renamed from
9281         modules/unictype/bidicategory-of.
9282         (Description): Update.
9283         * modules/unictype/bidiclass-of-tests: Renamed from
9284         modules/unictype/bidicategory-of-tests.
9285         * modules/unictype/bidiclass-test: Renamed from
9286         modules/unictype/bidicategory-test.
9287         (Description): Update.
9288         * modules/unictype/bidiclass-test-tests: Renamed from
9289         modules/unictype/bidicategory-test-tests.
9290         * modules/unictype/bidicategory-all: New file, a simple redirection.
9291         * modules/unictype/bidicategory-name: Likewise.
9292         * modules/unictype/bidicategory-byname: Likewise.
9293         * modules/unictype/bidicategory-of: Likewise.
9294         * modules/unictype/bidicategory-test: Likewise.
9295         * modules/unictype/property-bidi-* (Dependencies): Update.
9296         * lib/unictype/bidi_*.c: Update comment.
9297
9298 2011-03-26  Bruno Haible  <bruno@clisp.org>
9299
9300         unictype/bidi*: Rename functions, part 2.
9301         * modules/unictype/bidicategory-name (configure.ac): Update required
9302         libunistring version.
9303         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9304
9305 2011-03-25  Bruno Haible  <bruno@clisp.org>
9306
9307         New module 'unictype/combining-class-all'.
9308         * modules/unictype/combining-class-all: New file.
9309
9310         Tests for module 'unictype/combining-class-byname'.
9311         * modules/unictype/combining-class-byname-tests: New file.
9312         * tests/unictype/test-combiningclass_byname.c: New file.
9313
9314         New module 'unictype/combining-class-byname'.
9315         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9316         * lib/unictype/combiningclass_byname.c: New file.
9317         * lib/unictype/combiningclass_byname.gperf: New file.
9318         * modules/unictype/combining-class-byname: New file.
9319
9320         Tests for module 'unictype/combining-class-longname'.
9321         * modules/unictype/combining-class-longname-tests: New file.
9322         * tests/unictype/test-combiningclass_longname.c: New file.
9323
9324         New module 'unictype/combining-class-longname'.
9325         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9326         * lib/unictype/combiningclass_longname.c: New file.
9327         * modules/unictype/combining-class-longname: New file.
9328
9329         Tests for module 'unictype/combining-class-name'.
9330         * modules/unictype/combining-class-name-tests: New file.
9331         * tests/unictype/test-combiningclass_name.c: New file.
9332
9333         New module 'unictype/combining-class-name'.
9334         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9335         * lib/unictype/combiningclass_name.c: New file.
9336         * modules/unictype/combining-class-name: New file.
9337
9338 2011-03-25  Bruno Haible  <bruno@clisp.org>
9339
9340         unictype/combining-class: Rename source files.
9341         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9342         of unictype/combining.h.
9343         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9344         Update.
9345         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9346         * modules/unictype/combining-class (Description): Fix.
9347         (Files, Makefile.am): Update.
9348         * tests/unictype/test-combiningclass.c: Renamed from
9349         tests/unictype/test-combining.c.
9350         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9351
9352 2011-03-25  Bruno Haible  <bruno@clisp.org>
9353
9354         unictype: Update list of canonical combining classes.
9355         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9356
9357 2011-03-25  Bruno Haible  <bruno@clisp.org>
9358
9359         unictype/category-byname: Recognize long names as well.
9360         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9361         a long name.
9362         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9363         unictype/categ_byname.h.
9364         (UC_CATEGORY_INDEX_*): New enumeration values.
9365         (uc_general_category_byname): Use uc_general_category_lookup and
9366         convert from index to value.
9367         * lib/unictype/categ_byname.gperf: New file.
9368         * modules/unictype/category-byname (Files): Add
9369         lib/unictype/categ_byname.gperf.
9370         (Depends-on): Add gperf.
9371         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9372         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9373         long names.
9374
9375         Tests for module 'unictype/category-longname'.
9376         * modules/unictype/category-longname-tests: New file.
9377         * tests/unictype/test-categ_longname.c: New file.
9378
9379         New module 'unictype/category-longname'.
9380         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9381         * lib/unictype/categ_longname.c: New file.
9382         * modules/unictype/category-longname: New file.
9383         * modules/unictype/category-all (Depends-on): Add it.
9384
9385 2011-03-25  Bruno Haible  <bruno@clisp.org>
9386
9387         Tests for module 'unictype/category-LC'.
9388         * modules/unictype/category-LC-tests: New file.
9389         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9390
9391         New module 'unictype/category-LC'.
9392         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9393         (UC_CATEGORY_LC): New declaration.
9394         (UC_CASED_LETTER): New macro.
9395         * lib/gen-uni-tables.c (is_category_LC): New function.
9396         (output_categories): Also handle category LC.
9397         (UC_CATEGORY_MASK_LC): New enumeration value.
9398         (general_category_byname): Also handle category LC.
9399         * lib/unictype/categ_LC.c: New file.
9400         * lib/unictype/categ_LC.h: New file, automatically generated.
9401         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9402         category LC.
9403         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9404         * modules/unictype/category-LC: New file.
9405         * modules/unictype/category-byname (Depends-on): Add
9406         unictype/category-LC.
9407         * modules/unictype/category-all (Depends-on): Likewise.
9408
9409 2011-03-25  Eric Blake  <eblake@redhat.com>
9410
9411         xmalloc: revert yesterday's regression
9412         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9413         realloc's underlying behavior (allowing allocation of zero-size
9414         objects, especially if malloc-gnu is also in use).
9415
9416 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9417
9418         maint.mk: add missing version to VC-tag
9419         * top/maint.mk: git tag was missing actual tag name; add it.
9420
9421         valgrind: do leak checking, and exit with code 1 on error (not 0)
9422         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9423         to VALGRIND.
9424
9425 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9426
9427         posix-modules: say what it does.
9428         * posix-modules: Add a line to the --help output saying what it does.
9429
9430 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9431
9432         xmalloc: Do not leak if underlying realloc is C99 compatible.
9433         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9434         This avoids a leak on C99-based systems.  See
9435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9436
9437 2011-03-24  Eric Blake  <eblake@redhat.com>
9438
9439         realloc: document portability problem
9440         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9441         passing 0 size to realloc.
9442
9443 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9444
9445         doc: update users.txt
9446         * users.txt: Add cvsps, tmpwatch
9447
9448 2011-03-23  Matt Rice  <ratmice@gmail.com>
9449
9450         doc: update users.txt
9451         * users.txt: Add gdb.
9452
9453 2011-03-23  Jim Meyering  <meyering@redhat.com>
9454
9455         doc: update users.txt
9456         Looking through matches up to the following URL (there are still
9457         several more pages), I found several projects that use gnulib:
9458         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9459         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9460         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9461
9462 2011-03-22  Bruno Haible  <bruno@clisp.org>
9463
9464         unictype/bidi*: Rename functions.
9465         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9466         uc_bidi_class, uc_is_bidi_class): New declarations.
9467         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9468         uc_bidi_category_byname.
9469         (uc_bidi_category_byname): New function.
9470         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9471         u_bidi_category_name.
9472         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9473         (uc_bidi_category_name): New function.
9474         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9475         uc_bidi_category.
9476         (uc_bidi_category): New function.
9477         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9478         uc_is_bidi_category. Invoke uc_bidi_class.
9479         (uc_is_bidi_category): New function.
9480         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9481         instead of uc_bidi_category_byname.
9482         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9483         instead of uc_bidi_category_name.
9484         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9485         uc_bidi_category.
9486         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9487         instead of uc_is_bidi_category.
9488
9489 2011-03-21  Bruno Haible  <bruno@clisp.org>
9490
9491         New module 'unictype/joininggroup-all'.
9492         * modules/unictype/joininggroup-all: New file.
9493
9494         Tests for module 'unictype/joininggroup-of'.
9495         * modules/unictype/joininggroup-of-tests: New file.
9496         * tests/unictype/test-joininggroup_of.c: New file.
9497         * tests/unictype/test-joininggroup_of.h: New file, automatically
9498         generated by gen-uni-tables.
9499
9500         New module 'unictype/joininggroup-of'.
9501         * modules/unictype/joininggroup-of: New file.
9502         * lib/unictype/joininggroup_of.c: New file.
9503         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9504         gen-uni-tables.
9505
9506         Tests for module 'unictype/joininggroup-byname'.
9507         * modules/unictype/joininggroup-byname-tests: New file.
9508         * tests/unictype/test-joininggroup_byname.c: New file.
9509
9510         New module 'unictype/joininggroup-byname'.
9511         * modules/unictype/joininggroup-byname: New file.
9512         * lib/unictype/joininggroup_byname.c: New file.
9513         * lib/unictype/joininggroup_byname.gperf: New file.
9514
9515         Tests for module 'unictype/joininggroup-name'.
9516         * modules/unictype/joininggroup-name-tests: New file.
9517         * tests/unictype/test-joininggroup_name.c: New file.
9518
9519         New module 'unictype/joininggroup-name'.
9520         * modules/unictype/joininggroup-name: New file.
9521         * lib/unictype/joininggroup_name.c: New file.
9522         * lib/unictype/joininggroup_name.h: New file.
9523
9524         New module 'unictype/joiningtype-all'.
9525         * modules/unictype/joiningtype-all: New file.
9526
9527         Tests for module 'unictype/joiningtype-of'.
9528         * modules/unictype/joiningtype-of-tests: New file.
9529         * tests/unictype/test-joiningtype_of.c: New file.
9530         * tests/unictype/test-joiningtype_of.h: New file, automatically
9531         generated by gen-uni-tables.
9532
9533         New module 'unictype/joiningtype-of'.
9534         * modules/unictype/joiningtype-of: New file.
9535         * lib/unictype/joiningtype_of.c: New file.
9536         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9537         gen-uni-tables.
9538
9539         Tests for module 'unictype/joiningtype-byname'.
9540         * modules/unictype/joiningtype-byname-tests: New file.
9541         * tests/unictype/test-joiningtype_byname.c: New file.
9542
9543         New module 'unictype/joiningtype-byname'.
9544         * modules/unictype/joiningtype-byname: New file.
9545         * lib/unictype/joiningtype_byname.c: New file.
9546
9547         Tests for module 'unictype/joiningtype-name'.
9548         * modules/unictype/joiningtype-name-tests: New file.
9549         * tests/unictype/test-joiningtype_name.c: New file.
9550
9551         New module 'unictype/joiningtype-name'.
9552         * modules/unictype/joiningtype-name: New file.
9553         * lib/unictype/joiningtype_name.c: New file.
9554
9555         unictype: Add support for Arabic shaping properties.
9556         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9557         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9558         declarations.
9559         (UC_JOINING_GROUP_*): New enumeration values.
9560         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9561         declarations.
9562         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9563         (unicode_joining_type): New variable.
9564         (UC_JOINING_GROUP_*): New enumeration values.
9565         (unicode_joining_group): New variable.
9566         (fill_arabicshaping, joining_type_as_c_identifier,
9567         output_joining_type_test, output_joining_type,
9568         joining_group_as_c_identifier, output_joining_group_test,
9569         output_joining_group): New functions.
9570         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9571         fill_arabicshaping and output_joining_type_test, output_joining_type,
9572         output_joining_group_test, output_joining_group.
9573         Reported by Simon Josefsson.
9574
9575 2011-03-21  Jim Meyering  <meyering@redhat.com>
9576
9577         strftime: fix a bug in yesterday's change
9578         * lib/strftime.c (add): Accommodate width's initial value of -1.
9579         Otherwise, nstrftime would copy uninitialized data into
9580         the result buffer.
9581
9582 2011-03-21  Jim Meyering  <meyering@redhat.com>
9583
9584         tests: add strftime-tests module
9585         * tests/test-strftime.c: New file.
9586         * modules/strftime-tests: New module.
9587
9588 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9589
9590         strftime: don't assume a byte count fits in 'int'
9591         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9592         found this problem by static analysis, using gcc -Wstrict-overflow
9593         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9594         on an integer overflow having undefined behavior, but it turns out
9595         that the argument is a size, which might not fit in 'int' anyway,
9596
9597 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9598
9599         stdio: don't require ignore_value around fwrite
9600
9601         This patch works around libc bug 11959
9602         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9603         Without this patch, applications must often write
9604         ignore_value (fwrite (...)) even though the ignore_value is
9605         not helpful here.  It's common to write many objects, using
9606         fwrite/printf/etc., and then use ferror to detect output error.
9607
9608         I considered making this patch optional, but decided against it,
9609         because libc is obviously being inconsistent here: there is no
9610         reason libc should insist that user code must inspect fwrite
9611         return's value without also insisting that it inspect printf's,
9612         putchar's, etc.  If user code wants to have a strict style where
9613         all these functions' values are checked (so that ferror need not
9614         be checked), we could add support for that style in a new gnulib
9615         module, but in the meantime it's better to be consistent and to
9616         support common usage.
9617
9618         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9619         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9620         that we are compiling in checking mode, and if not C++, and
9621         if not already wrapping fwrite for some other reason.
9622         (fwrite): #define to rpl_fwrite if the latter is defined.
9623
9624 2011-03-20  Bruno Haible  <bruno@clisp.org>
9625
9626         verror: Fix compilation error introduced on 2011-02-13.
9627         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9628         instead of __attribute__.
9629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9630
9631 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9632             Bruno Haible  <bruno@clisp.org>
9633
9634         socklen: do not depend on sys_socket
9635         While trying to modify Emacs to use gnulib's socklen module,
9636         I discovered a circular dependency: socklen depends on sys_socket
9637         and vice versa.  Emacs can use socklen, but it does not need
9638         sys_socket because it has its own substitute for sys/socket.h.
9639         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9640         gl_TYPE_SOCKLEN_T.
9641         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9642         gl_PREREQ_SYS_H_SOCKET.
9643         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9644         gl_PREREQ_SYS_H_SOCKET.
9645         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9646         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9647         * modules/socklen (Depends-on): Do not depend on sys_socket.
9648         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9649
9650 2011-03-20  Jim Meyering  <meyering@redhat.com>
9651
9652         maint.mk: sort file names *after* new transformation
9653         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9654         prefix would have led to an unwarranted failure in GNU parted.
9655         Sort after that transformation.
9656
9657 2011-03-19  Jim Meyering  <meyering@redhat.com>
9658
9659         maint.mk: fix po-file syntax-check rule
9660         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9661         Patch by Bruno Haible.
9662
9663 2011-03-19  Bruno Haible  <bruno@clisp.org>
9664
9665         socklen: Update comment.
9666         * m4/socklen.m4: Update comment about platforms.
9667
9668 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9669             Bruno Haible  <bruno@clisp.org>
9670
9671         inet_ntop, inet_pton: Simplify.
9672         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9673         documented to provide socklen_t and we already depend on sys_socket.
9674         * modules/inet_pton (Depends-on): Likewise.
9675         * lib/arpa_inet.in.h: Adjust comment.
9676
9677 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9678             Bruno Haible  <bruno@clisp.org>
9679
9680         netdb: Simplify.
9681         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9682         documented to provide socklen_t and we already depend on sys_socket.
9683         * lib/netdb.in.h: Adjust comment.
9684
9685 2011-03-19  Bruno Haible  <bruno@clisp.org>
9686
9687         sys_socket, netdb: Document problem with socklen_t.
9688         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9689         platforms.
9690         * doc/posix-headers/netdb.texi: Likewise.
9691
9692 2011-03-18  Eric Blake  <eblake@redhat.com>
9693
9694         maint.mk: let po check work in VPATH build
9695         * top/maint.mk (po_file): Allow cfg.mk override.
9696         (sc_po_check): Allow VPATH use.
9697         Reported by Jiri Denemark.
9698
9699 2011-03-16  Jim Meyering  <meyering@redhat.com>
9700
9701         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9702         Before, you would have had to create one .x-sc_ file per rule in order
9703         to exempt offending files.  Now, you may instead use a Make variable --
9704         usually defined in cfg.mk -- whose name identifies the affected rule.
9705         * top/maint.mk (_sc_excl): Define.
9706         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9707         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9708
9709 2011-03-13  Bruno Haible  <bruno@clisp.org>
9710
9711         ignore-value tests: Avoid warnings.
9712         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9713         empty for gcc < 3.4.
9714
9715 2011-03-13  Bruno Haible  <bruno@clisp.org>
9716
9717         passfd: Fix link error on Solaris.
9718         * modules/passfd (Description): Correct.
9719         (Depends-on): Add socketlib.
9720         (Link): New section.
9721         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9722
9723 2011-03-13  Bruno Haible  <bruno@clisp.org>
9724
9725         passfd: Fix link error on AIX 5.2.
9726         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9727
9728 2011-03-13  Bruno Haible  <bruno@clisp.org>
9729
9730         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9731         * lib/sys_socket.in.h: Include <stddef.h>.
9732         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9733         CMSG_FIRSTHDR. Remove unused variable.
9734
9735 2011-03-13  Bruno Haible  <bruno@clisp.org>
9736
9737         passfd: Fix compilation error on OpenBSD.
9738         * lib/passfd.c: Include <sys/uio.h>.
9739
9740 2011-03-13  Bruno Haible  <bruno@clisp.org>
9741
9742         passfd test: Fix warnings.
9743         * tests/test-passfd.c: Include <sys/wait.h>.
9744         (main): Fix typo.
9745
9746 2011-03-13  Bruno Haible  <bruno@clisp.org>
9747
9748         passfd module, part 4, tweaks.
9749         * tests/test-passfd.c: Reorder includes.
9750         (main): Fix perror and printf calls.
9751
9752 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9753
9754         passfd module, part 4.
9755         * modules/passfd-tests: New file.
9756         * tests/test-passfd.c: New file.
9757
9758 2011-03-13  Jim Meyering  <meyering@redhat.com>
9759
9760         Makefile: rely on GNU make; derive syntax-check rule names
9761         Rather than requiring that each sc_ rule be listed as a dependent
9762         of "check", use features of GNU make to derive the list.
9763         * Makefile (syntax-check-rules): Define.
9764         (check): Depend on the new variable, not the hard-coded list.
9765
9766 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9767             Bruno Haible  <bruno@clisp.org>
9768
9769         passfd module, part 3.
9770         * lib/passfd.h (recvfd): Add a flags argument.
9771         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9772         (recvfd): Add a flags argument.
9773         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9774         exists.
9775         * modules/passfd (Depends-on): Add cloexec.
9776         Suggested by Eric Blake.
9777
9778 2011-03-13  Bruno Haible  <bruno@clisp.org>
9779
9780         passfd module, part 2, tweaks.
9781         * modules/passfd (Files): Reorder.
9782         (Depends-on): Remove errno.
9783         (Include): Remove <sys/socket.h>, <sys/un.h>.
9784         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9785         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9786         specification header. Include <sys/socket.h> always. Don't include
9787         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9788         (sendfd): Clarify that it sets errno when it fails.
9789         (recvfd): Fix specification.
9790
9791 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9792
9793         passfd module, part 2.
9794         * modules/passfd: New file.
9795         * lib/passfd.h: New file.
9796         * lib/passfd.c: New file.
9797
9798 2011-03-12  Bruno Haible  <bruno@clisp.org>
9799
9800         wcswidth, mbswidth: Avoid integer overflow.
9801         * lib/wcswidth.c: Include <limits.h>.
9802         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9803         * lib/mbswidth.c: Include <limits.h>.
9804         (mbsnwidth): Avoid 'int' overflow.
9805         Reported by Jim Meyering.
9806
9807 2011-03-12  Bruno Haible  <bruno@clisp.org>
9808
9809         futimens, utimensat: Avoid endless recursion on Solaris 10.
9810         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9811         Solaris.
9812         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9813         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9814
9815 2011-03-11  Jim Meyering  <meyering@redhat.com>
9816
9817         maint.mk: relax a regexp to accommodate other formatting styles
9818         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9819         between "ngettext" and the following "(".
9820
9821 2011-03-11  Pádraig Brady <P@draigBrady.com>
9822
9823         maint.mk: suppress a false positive warning
9824         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9825         diagnostics are marked with ngettext.
9826
9827 2011-03-10  Eric Blake  <eblake@redhat.com>
9828
9829         wchar: add explicit dependencies, for Tru64
9830         * modules/mbmemcasecoll (Depends-on): Add wchar.
9831         * modules/mbtowc (Depends-on): Likewise.
9832         * modules/vasnprintf (Depends-on): Likewise.
9833         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9834         * modules/wctomb (Depends-on): Likewise.
9835         Reported by Peter O'Gorman.
9836
9837 2011-03-08  Bruno Haible  <bruno@clisp.org>
9838
9839         passfd module, part 1, tweaks.
9840         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9841         Improve indentation. Improve AC_MSG_CHECKING messages.
9842         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9843         gl_SOCKET_FAMILIES.
9844
9845 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9846
9847         passfd module, part 1.
9848         * m4/afunix.m4: New file.
9849         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9850         sockets.
9851
9852 2011-03-08  Bruno Haible  <bruno@clisp.org>
9853
9854         regex-quote: New API.
9855         * lib/regex-quote.h: Include <stdbool.h>.
9856         (struct regex_quote_spec): New type.
9857         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9858         New declarations.
9859         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9860         'const struct regex_quote_spec *' argument.
9861         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9862         (pcre_special): New constant.
9863         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9864         New functions.
9865         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9866         'const struct regex_quote_spec *' argument.
9867         * modules/regex-quote (Depends-on): Add stdbool.
9868         * tests/test-regex-quote.c (check): Update for new API. Add test for
9869         anchored results.
9870         * NEWS: Mention the API change.
9871         Reported by Reuben Thomas and Eric Blake.
9872
9873 2011-03-06  Bruno Haible  <bruno@clisp.org>
9874
9875         regex-quote: Fix creation of POSIX extended regular expressions.
9876         * lib/regex-quote.c (ere_special): Add grouping and alternation
9877         operators.
9878
9879 2011-03-05  Bruno Haible  <bruno@clisp.org>
9880
9881         doc: Improve doc regarding autopoint vs. gnulib.
9882         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9883         disable autopoint while running autoreconf.
9884         Suggested by Ralf Wildenhues.
9885
9886 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9887
9888         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9889         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9890
9891 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9892
9893         parse-duration: remove xalloc.h dependency
9894         * lib/parse-duration.c (parse_period): handle NULL return from
9895         strdup instead of calling xstrdup().
9896         * modules/parse-duration: remove "xalloc" dependency
9897
9898 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9899
9900         bootstrap: honor m4_base when running aclocal
9901         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9902
9903 2011-03-02  Jim Meyering  <meyering@redhat.com>
9904
9905         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9906         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9907         on request from Matt Booth.
9908
9909 2011-03-01  Eric Blake  <eblake@redhat.com>
9910
9911         test-link: work on Hurd
9912         * tests/test-link.h (test_link): Hurd rejects linking directories
9913         with EISDIR instead of the POSIX-mandated EPERM.
9914
9915 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9916
9917         stdio: simplify by moving files to printf-posix, sigpipe
9918         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9919         since this symbol is needed only if printf is replaced.
9920         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9921         Require gl_ASM_SYMBOL_PREFIX.
9922         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9923         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9924         (Depends-on): Add 'raise'.
9925         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9926         * modules/stdio (Files): Remove lib/stdio-write.c,
9927         m4/asm-underscore.m4.
9928         (Depends-on): Remove 'raise'.
9929
9930         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9931         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9932         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9933         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9934
9935 2011-02-28  Bruno Haible  <bruno@clisp.org>
9936
9937         localcharset: Assume ANSI C behaviour of free().
9938         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9939         calling free().
9940         Suggested by Simon Josefsson <simon@josefsson.org>.
9941
9942 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9943             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9944             Bruno Haible  <bruno@clisp.org>  (tiny change)
9945
9946         On Cygwin, use /proc file system instead of win32 API.
9947         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9948         Win32 file names.
9949         (DllMain): Simplify by removing Cygwin specific code.
9950         (find_shared_library_fullname): Use Linux specific implementation also
9951         for Cygwin.
9952         (get_shared_library_fullname): Update accordingly.
9953         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9954         Win32 file names.
9955         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9956         Cygwin specific code.
9957
9958 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9959             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9960
9961         Fix OpenMP flag detection for various Fortran compilers.
9962         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9963         OpenMP-conditional compilation construct, to force compile
9964         failure with missing OpenMP flag.
9965         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9966
9967 2011-02-25  Eric Blake  <eblake@redhat.com>
9968
9969         strstr: expand test coverage
9970         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9971         compilation.
9972         * tests/test-memmem.c (main): Duplicate tests.
9973         * tests/test-strcasestr.c (main): Likewise.
9974         * tests/test-c-strcasestr.c (main): Likewise.
9975
9976 2011-02-25  Jim Meyering  <meyering@redhat.com>
9977
9978         maint.mk: detect missing-NL-at-EOF, too
9979         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9980         it also detects when a file lacks a newline at EOF.
9981         (require_exactly_one_NL_at_EOF_): Renamed from
9982         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9983         since people may well have .x-sc_... file names tied to the
9984         existing name.  Suggested by Eric Blake.
9985
9986 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9987
9988         dirname: move m4/dos.m4 functionality into lib/dosname.h
9989
9990         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9991         extracts symbols from it, puts them into config.h; but it's much
9992         easier to use the symbols directly.  filename.h already does this,
9993         but it disagrees with dos.m4 in some respects.  This patch
9994         introduces a different include file dosname.h that packages up
9995         dos.m4, and then later we can work on merging filename.h and
9996         dosname.h.  Applications that need only the easy-to-configure
9997         symbols should consider including dosname.h rather than dirname.h.
9998         * NEWS: Mention incompatible changes.
9999         * m4/dos.m4: Remove.
10000         * lib/dosname.h, modules/dosname: New files.
10001         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10002         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10003         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10004         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10005         Include dosname.h, not dirname.h.
10006         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10007         Include dosname.h, for definitions of symbols like ISSLASH
10008         that used to be in config.h.
10009         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10011         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10012         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10013         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10014         * modules/rmdir (Files): Likewise.
10015         * modules/stat (Files): Likewise.
10016         * modules/unlink (Files): Likewise.
10017         * modules/dirname-lgpl (Depends-on): Add dosname.
10018         * modules/lstat (Depends-on): Likewise.
10019         * modules/openat (Depends-on): Likewise.
10020         * modules/rmdir (Depends-on): Likewise.
10021         * modules/savewd (Depends-on): Likewise.
10022         * modules/stat (Depends-on): Likewise.
10023         * modules/unlink (Depends-on): Likewise.
10024         * modules/openat (Depends-on): Remove dirname-lgpl.
10025         * modules/savewd (Depends-on): Likewise.
10026         * tests/test-dirname.c: Do not use removed symbols like
10027         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10028         the remaining symbols, e.g., ISSLASH ('\\').
10029
10030 2011-02-25  Eric Blake  <eblake@redhat.com>
10031
10032         strstr: revert patches that introduced bug and pessimization
10033         * lib/str-two-way.h: Add another reference.
10034         (two_way_short_needle, two_way_long_needle): Revert changes from
10035         2011-02-24; they pessimize search speed.
10036         (critical_factorization): Partially revert changes from
10037         2010-06-22; they violate the requirement that the left half of the
10038         needle be smaller than the period of the needle.
10039
10040 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10041
10042         filenamecat: remove unnecessary dependency on dirname-lgpl
10043         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10044         is no direct dependency, just an indirect one via filenamecat-lgpl.
10045
10046         remove: remove unnecessary use of m4/dos.m4
10047         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10048         * modules/remove (FILES): Remove m4/dos.m4.
10049
10050         * lib/openat-proc.c: Don't include dirname.h; not needed.
10051
10052         backupfile: remove unnecessary use of m4/dos.m4
10053         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10054         of its symbols are used by the backupfile code.  backupfile.c does
10055         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10056         for the rare case of programs that want all their backup file
10057         names to live within 8+3 limits, and dos.m4 doesn't address that.
10058         * modules/backupfile (Files): Remove m4/dos.m4.
10059
10060 2011-02-24  Jim Meyering  <meyering@redhat.com>
10061
10062         strstr: fix a bug whereby strstr would mistakenly return NULL
10063         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10064         in period calculation.
10065         (two_way_long_needle): Likewise.
10066         The original problem was reported by Mike Stump in
10067         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10068         Ralf Wildenhues provided the short needle and haystack.
10069         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10070         Add a more involved test to trigger the bug in two_way_long_needle.
10071
10072 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10073
10074         gnulib-tool: remove use of bold display in help screen
10075         * gnulib-tool (func_usage): Do not use bold display anymore in the
10076         help screen.  That was just meant to be a temporary emphasis for a
10077         backward-incompatible change.
10078
10079 2011-02-23  Bruno Haible  <bruno@clisp.org>
10080
10081         Fix misindentation of preprocessor directives.
10082         * lib/argp-namefrob.h: Reindent preprocessor directives.
10083         * lib/getopt_int.h (struct _getopt_data): Likewise.
10084         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10085         * lib/vasnprintf.c (decode_long_double): Likewise.
10086         * tests/test-argmatch.c: Insert blank lines, for clarity.
10087         * tests/test-exclude.c: Likewise.
10088
10089 2011-02-22  Bruno Haible  <bruno@clisp.org>
10090
10091         ioctl: Fix for MacOS X in 64-bit mode.
10092         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10093         value.
10094         Suggested by Eric Blake.
10095         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10096
10097 2011-02-22  Jim Meyering  <meyering@redhat.com>
10098
10099         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10100         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10101         in lib/.
10102
10103 2011-02-22  Eric Blake  <eblake@redhat.com>
10104
10105         maint: avoid any CDPATH issue
10106         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10107
10108         maint: adjust cpp indentation for my modules, as well
10109         * Makefile (sc_cpp_indent_check): Add my name.
10110         * lib/fbufmode.c: Filter through cppi.
10111         * lib/fpurge.c: Likewise.
10112         * lib/freadable.c: Likewise.
10113         * lib/freading.c: Likewise.
10114         * lib/fwritable.c: Likewise.
10115         * lib/fwriting.c: Likewise.
10116         * lib/sigaction.c: Likewise.
10117
10118 2011-02-22  Jim Meyering  <meyering@redhat.com>
10119
10120         maint: adjust cpp indentation to reflect nesting depth
10121         I.e., in a block of code that begins with an unnested "#if",
10122         put one space between the "#" in column 1 and following token.
10123         For example,
10124         -#include <sys/vfs.h>
10125         +# include <sys/vfs.h>
10126         Do this only in .c files that are part of a module I maintain.
10127         * lib/linkat.c: Filter through cppi.
10128         * lib/nanosleep.c: Likewise.
10129         * lib/openat.c: Likewise.
10130         * lib/openat-die.c: Likewise.
10131         * lib/dup3.c: Likewise.
10132         * lib/fchownat.c: Likewise.
10133         * lib/flock.c: Likewise.
10134         * lib/fsync.c: Likewise.
10135         * lib/fts.c: Likewise.
10136         * lib/getpass.c: Likewise.
10137         * lib/gettimeofday.c: Likewise.
10138         * lib/userspec.c: Likewise.
10139         * Makefile (sc_cpp_indent_check): New rule, to check this.
10140
10141 2011-02-22  Bruno Haible  <bruno@clisp.org>
10142
10143         New module 'wctomb'.
10144         * lib/stdlib.in.h (wctomb): New declaration.
10145         * lib/wctomb.c: New file.
10146         * lib/wctomb-impl.h: New file.
10147         * m4/wctomb.m4: New file.
10148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10149         REPLACE_WCTOMB.
10150         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10151         REPLACE_WCTOMB.
10152         * modules/wctomb: New file.
10153         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10154         * doc/posix-functions/wctomb.texi: Mention the new module.
10155         * modules/wctob (Depends-on): Add wctomb.
10156
10157 2011-02-22  Bruno Haible  <bruno@clisp.org>
10158
10159         New module 'mbtowc'.
10160         * lib/stdlib.in.h (mbtowc): New declaration.
10161         * lib/mbtowc.c: New file.
10162         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10163         * m4/mbtowc.m4: New file.
10164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10165         REPLACE_MBTOWC.
10166         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10167         REPLACE_MBTOWC.
10168         * modules/mbtowc: New file.
10169         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10170         * doc/posix-functions/mbtowc.texi: Mention the new module.
10171         * modules/btowc (Depends-on): Add mbtowc.
10172
10173 2011-02-22  Bruno Haible  <bruno@clisp.org>
10174
10175         wcrtomb: Add more tests for native Windows platforms.
10176         * tests/test-wcrtomb-w32-1.sh: New file.
10177         * tests/test-wcrtomb-w32-2.sh: New file.
10178         * tests/test-wcrtomb-w32-3.sh: New file.
10179         * tests/test-wcrtomb-w32-4.sh: New file.
10180         * tests/test-wcrtomb-w32-5.sh: New file.
10181         * tests/test-wcrtomb-w32.c: New file.
10182         * modules/wcrtomb-tests (Files): Add them.
10183         (Makefile.am): Arrange to run these tests.
10184         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10185         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10186
10187 2011-02-20  Bruno Haible  <bruno@clisp.org>
10188
10189         wcrtomb: Enhance test.
10190         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10191
10192 2011-02-20  Bruno Haible  <bruno@clisp.org>
10193
10194         mbrtowc: Tiny optimization.
10195         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10196
10197 2011-02-20  Jim Meyering  <meyering@redhat.com>
10198
10199         test-exclude.c: remove unmatched #endif
10200         * tests/test-exclude.c: Remove stray #endif, left over from
10201         the change of a week ago.
10202
10203 2011-02-19  Jim Meyering  <meyering@redhat.com>
10204
10205         git-version-gen: skip "-dirty" check when appropriate
10206         * build-aux/git-version-gen: Don't run any git commands when the
10207         version string comes from .tarball-version.  Prior to this, we
10208         would run git update-index --refresh even from a just-unpacked
10209         tarball directory, and that could affect a .git/ directory in a
10210         parent of the build directory.  Reported by Mike Frysinger.
10211
10212 2011-02-19  Bruno Haible  <bruno@clisp.org>
10213
10214         unictype/property-byname: Reduce the size of the 'data' segment.
10215         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10216
10217 2011-02-19  Bruno Haible  <bruno@clisp.org>
10218
10219         unictype/scripts: Reduce the size of the 'data' segment.
10220         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10221         '%pic'.
10222         * lib/unictype/scripts_byname.gperf: Regenerated.
10223
10224 2011-02-19  Bruno Haible  <bruno@clisp.org>
10225
10226         stdint: Update documentation.
10227         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10228
10229 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10230
10231         stdint: omit redundant check for wchar.h
10232         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10233         always tests whether wchar.h exists, so remove the now-redundant test.
10234
10235 2011-02-18  Bruno Haible  <bruno@clisp.org>
10236
10237         stdint: Cut dependency to module 'wchar'.
10238         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10239         include the necessary prerequisites.
10240         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10241         * modules/stdint (Depends-on): Remove wchar.
10242         (Makefile.am): Substitute HAVE_WCHAR_H.
10243         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10244
10245 2011-02-18  Eric Blake  <eblake@redhat.com>
10246
10247         longlong: skip, rather than fail, on cross-compilation
10248         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10249         when cross-compiling; regression from 2011-02-16.
10250
10251 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10252
10253         * NEWS: Mention 2011-02-08 change to stdlib.
10254
10255 2011-02-17  Bruno Haible  <bruno@clisp.org>
10256
10257         getloadavg: Add comments about platforms.
10258         * m4/getloadavg.m4: Add comment.
10259         * lib/getloadavg.c: Likewise.
10260
10261 2011-02-17  Bruno Haible  <bruno@clisp.org>
10262
10263         getloadavg: Fix link error on Solaris 2.6.
10264         * modules/getloadavg (Link): New section.
10265         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10266         linking test-getloadavg.
10267         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10268         getloadavg.
10269
10270 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10273         It was 'int', but this doesn't match the IRIX 6.5 manual.
10274         Suggested by Bruno Haible in
10275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10276
10277 2011-02-17  Bruno Haible  <bruno@clisp.org>
10278
10279         havelib: Fix comments.
10280         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10281         change.
10282
10283 2011-02-17  Bruno Haible  <bruno@clisp.org>
10284
10285         havelib: Update config.rpath.
10286         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10287
10288 2011-02-17  Bruno Haible  <bruno@clisp.org>
10289
10290         getloadavg test: Add some plausibility checks.
10291         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10292         is improbable.
10293
10294 2011-02-16  Eric Blake  <eblake@redhat.com>
10295
10296         maintainer-makefile: make syntax-check a no-op from tarballs
10297         * top/maint.mk (no-vc-detected): New rule.
10298         (local-checks-available): Use it to avoid hanging if someone tries
10299         'make syntax-check' from a tarball.  Also append to any non-syntax
10300         checks already defined in cfg.mk.
10301
10302 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10303
10304         longlong: tune, particularly for common case of c99
10305
10306         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10307         or running anything if c99, or if unsigned long long int does not
10308         work.  In either case, we know the answer without further tests.
10309         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10310         it at most once, and use its results for both long long int and
10311         unsigned long long int.  This is more likely to be efficient in
10312         the common case where the program wants to check for both long
10313         long int and unsigned long long int.
10314         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10315         since the answer is already known.
10316
10317 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10318
10319         getloadavg: set errno
10320         * lib/getloadavg.c: Set errno when returning -1.  If no other
10321         error number looks appropriate, set it to ENOSYS if the getloadavg
10322         looks like it can't possibly ever work, ENOTSUP otherwise.
10323         Suggested by Bruno Haible in
10324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10325
10326         getloadavg: trim unused parts and speed up 'configure'
10327         * NEWS: Document this.
10328         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10329         always compiled if getloadavg is absent.
10330         Move test code to ...
10331         * tests/test-getloadavg.c: New file, containing previous
10332         contents of test from lib/getloadavg.c.  It also contains
10333         suggestions by Bruno Haible in
10334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10335         * modules/getloadavg-tests: New file.
10336         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10337         Do tests in the same order as they're needed for getloadavg.c.
10338         Omit setgid-related tests that generate symbols KMEM_GROUP,
10339         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10340         Do only the tests that are needed to see whether the system has
10341         getloadavg, moving the other tests into ...
10342         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10343         NLIST_NAME_UNION; nobody should be using it.  Do not define
10344         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10345         relevant, as the user of this module shouldn't care how getloadavg
10346         is implemented.
10347
10348         getloadavg: omit unused var
10349         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10350
10351 2011-02-15  Jim Meyering  <meyering@redhat.com>
10352
10353         doc: update users.txt
10354         * users.txt: Update iwhd's URL.
10355
10356 2011-02-13  Bruno Haible  <bruno@clisp.org>
10357
10358         Consistent macro naming for macros that use GCC __attribute__.
10359         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10360         _ATTRIBUTE_NONNULL_.
10361         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10362         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10363         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10364         ATTRIBUTE_DEPRECATED.
10365         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10366         ATTRIBUTE_NORETURN.
10367         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10368         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10369         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10370         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10371         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10372         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10373         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10374         ATTRIBUTE_SENTINEL.
10375         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10376         ATTRIBUTE_RETURN_CHECK.
10377         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10378         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10379         ATTRIBUTE_NORETURN.
10380         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10381         Reported by Paul Eggert.
10382
10383 2011-02-13  Bruno Haible  <bruno@clisp.org>
10384
10385         Don't interfere with a program's definition of __attribute__.
10386         * lib/argp.h (__attribute__): Remove definition.
10387         (_GL_ATTRIBUTE_FORMAT): New macro.
10388         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10389         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10390         (_GL_ATTRIBUTE_FORMAT): New macro.
10391         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10392         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10393         GCC 3 or newer.
10394         * lib/error.h (__attribute__): Remove definition.
10395         (_GL_ATTRIBUTE_FORMAT): New macro.
10396         (error, error_at_line): Use it.
10397         * lib/hash.h (__attribute__): Remove definition.
10398         (ATTRIBUTE_WUR): Update definition. Define always.
10399         * lib/openat.h (__attribute__): Remove definition.
10400         (ATTRIBUTE_NORETURN): Update definition. Define always.
10401         * lib/sigpipe-die.h (__attribute__): Remove definition.
10402         (ATTRIBUTE_NORETURN): Update definition. Define always.
10403         * lib/vasnprintf.h (__attribute__): Remove definition.
10404         (_GL_ATTRIBUTE_FORMAT): New macro.
10405         (asnprintf, vasnprintf): Use it.
10406         * lib/xalloc.h (__attribute__): Remove definition.
10407         (ATTRIBUTE_NORETURN): Update definition. Define always.
10408         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10409         * lib/xmemdup0.h (__attribute__): Remove definition.
10410         (ATTRIBUTE_NORETURN): Update definition. Define always.
10411         * lib/xprintf.h (__attribute__): Remove definition.
10412         (_GL_ATTRIBUTE_FORMAT): New macro.
10413         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10414         * lib/xstrtol.h (__attribute__): Remove definition.
10415         (ATTRIBUTE_NORETURN): Update definition. Define always.
10416         * lib/xvasprintf.h (__attribute__): Remove definition.
10417         (_GL_ATTRIBUTE_FORMAT): New macro.
10418         (xasprintf, xvasprintf): Use it.
10419         * tests/test-argmatch.c (__attribute__): Remove definition.
10420         (ATTRIBUTE_NORETURN): Update definition. Define always.
10421         * tests/test-exclude.c (__attribute__): Remove definition.
10422         (ATTRIBUTE_NORETURN): Update definition. Define always.
10423         Reported by Paul Eggert.
10424
10425 2011-02-13  Bruno Haible  <bruno@clisp.org>
10426
10427         mbrtowc: Add more tests for native Windows platforms.
10428         * tests/test-mbrtowc-w32-1.sh: New file.
10429         * tests/test-mbrtowc-w32-2.sh: New file.
10430         * tests/test-mbrtowc-w32-3.sh: New file.
10431         * tests/test-mbrtowc-w32-4.sh: New file.
10432         * tests/test-mbrtowc-w32-5.sh: New file.
10433         * tests/test-mbrtowc-w32.c: New file.
10434         * modules/mbrtowc-tests (Files): Add them.
10435         (Makefile.am): Arrange to run these tests.
10436         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10437         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10438
10439 2011-02-13  Bruno Haible  <bruno@clisp.org>
10440
10441         mbrtowc: Work around native Windows bug.
10442         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10443         guess when no suitable locale for testing was found.
10444         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10445
10446 2011-02-13  Bruno Haible  <bruno@clisp.org>
10447
10448         mbsinit: Work around mingw bug.
10449         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10450         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10451         Windows.
10452         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10453
10454 2011-02-13  Bruno Haible  <bruno@clisp.org>
10455
10456         mbsinit: Don't crash for a NULL argument.
10457         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10458         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10459
10460 2011-02-13  Bruno Haible  <bruno@clisp.org>
10461
10462         Don't interfere with a program's definition of __attribute__.
10463         * lib/stdio.in.h (__attribute__): Remove definition.
10464         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10465         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10466         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10467         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10468         * lib/string.in.h (__attribute__): Remove definition.
10469         Reported by Paul Eggert.
10470
10471 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10472
10473         stdlib: don't get in the way of non-GCC __attribute__
10474         See thread starting at
10475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10476         Revert previous stdlib change, installing the following instead:
10477         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10478         to get in the way of a non-GCC compiler that supports __attribute__.
10479         (_GL_ATTRIBUTE_RETURN): New macro.
10480         (_Exit): Use it instead of __attribute__.
10481
10482 2011-02-12  Bruno Haible  <bruno@clisp.org>
10483
10484         quotearg test: Avoid test failure on mingw.
10485         * tests/test-quotearg.sh: Convert the locale identifier from native
10486         Windows syntax to Unix syntax.
10487
10488 2011-02-12  Bruno Haible  <bruno@clisp.org>
10489
10490         setlocale: Prefer gnulib's override over libintl's override.
10491         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10492         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10493         GNULIB_defined_setlocale is set.
10494
10495 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10496
10497         stdlib: support non-GCC __attribute__
10498
10499         Fix a serious and tricky problem encountered when attempting to
10500         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10501         5.5, but it crashed due to memory corruption on Solaris 10 with
10502         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10503         bits that are otherwise zero.  This tagging is optional inside
10504         Emacs but is preferred and is used when __attribute__ ((__aligned
10505         (8))) works, as it does with both recent-enough GCC and with Sun C
10506         5.11.  However, Sun C 5.11 is not GCC and does not #define
10507         __GNUC__ and __GNUC_MINOR__.
10508
10509         When I added the getloadavg module to Emacs, it brought in
10510         stdlib.in.h, which contained this fragment:
10511
10512            #ifndef __attribute__
10513            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10514            #  define __attribute__(Spec)   /* empty */
10515            # endif
10516            #endif
10517
10518         When files that include <stdlib.h> were compiled with Sun C 5.11,
10519         the above code disabled __attribute__ ((__aligned (8))), which
10520         caused variables to not be properly aligned, which eventually led
10521         to the pointer corruption mentioned above.  (This was a bit hard
10522         to diagnose, unfortunately.)
10523
10524         Several "#define __attribute__(X) /* empty */" code snippets need
10525         to be eradicated from Gnulib to work with non-GCC compilers that
10526         support __attribute__.  The Autoconf way to do this is to test for
10527         each kind of attribute that we want support for, and selectively
10528         enable that in source code.
10529
10530         Fix this problem just for stdlib.h, by adding a test for the
10531         __noreturn__ attribute, and change stdlib.in.h to use that test
10532         when needed.  This technique can be easily generalized to the
10533         other *.in.h files and attributes, and a similar technique can be
10534         used for *.h and *.c files.  This patch is enough to solve the
10535         problem for Emacs + getloadavg, and I thought I'd publish it for
10536         feedback before undertaking further, similar fixes in other
10537         modules.
10538
10539         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10540         because it's not needed for stdlib.h.  It merely substitutes the
10541         value directly into stdlib.h.  We may well need to #define it, or
10542         similar symbols, for other modules, but it's nice to also have an
10543         option to not #define it for applications like Emacs that do not
10544         need it.
10545
10546         * lib/stdlib.in.h (__attribute__): Do not #define.
10547         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10548         be defined only if the _Exit module is also used.
10549         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10551         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10552         platforms.
10553         * modules/_Exit (Files): Add m4/attribute.m4.
10554         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10555         * m4/attribute.m4: New file.
10556
10557 2011-02-12  Bruno Haible  <bruno@clisp.org>
10558
10559         wcsrtombs: Work around bug on native Windows.
10560         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10561         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10562         instead of len.
10563         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10564
10565 2011-02-12  Bruno Haible  <bruno@clisp.org>
10566
10567         mbsrtowcs: Work around bug on native Windows.
10568         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10569         against mingw bug.
10570         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10571
10572 2011-02-12  Bruno Haible  <bruno@clisp.org>
10573
10574         Avoid setlocale bugs in tests.
10575         * modules/btowc (Dependencies): Add setlocale.
10576         * modules/c-strcase (Dependencies): Likewise.
10577         * modules/mbmemcasecmp (Dependencies): Likewise.
10578         * modules/mbmemcasecoll (Dependencies): Likewise.
10579         * modules/mbrtowc (Dependencies): Likewise.
10580         * modules/mbscasecmp (Dependencies): Likewise.
10581         * modules/mbscasestr (Dependencies): Likewise.
10582         * modules/mbschr (Dependencies): Likewise.
10583         * modules/mbscspn (Dependencies): Likewise.
10584         * modules/mbsinit (Dependencies): Likewise.
10585         * modules/mbsncasecmp (Dependencies): Likewise.
10586         * modules/mbsnrtowcs (Dependencies): Likewise.
10587         * modules/mbspbrk (Dependencies): Likewise.
10588         * modules/mbspcasecmp (Dependencies): Likewise.
10589         * modules/mbsrchr (Dependencies): Likewise.
10590         * modules/mbsrtowcs (Dependencies): Likewise.
10591         * modules/mbsspn (Dependencies): Likewise.
10592         * modules/mbsstr (Dependencies): Likewise.
10593         * modules/nl_langinfo (Dependencies): Likewise.
10594         * modules/quotearg (Dependencies): Likewise.
10595         * modules/unicase/locale-language (Dependencies): Likewise.
10596         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10597         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10598         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10599         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10600         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10601         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10602         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10603         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10604         * modules/vasnprintf-posix (Dependencies): Likewise.
10605         * modules/wcrtomb (Dependencies): Likewise.
10606         * modules/wcsnrtombs (Dependencies): Likewise.
10607         * modules/wcsrtombs (Dependencies): Likewise.
10608
10609 2011-02-12  Bruno Haible  <bruno@clisp.org>
10610
10611         setlocale: Workaround native Windows bug.
10612         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10613         succeeds but sets LC_CTYPE to "C", report a failure.
10614         * tests/test-setlocale2.sh: New file.
10615         * tests/test-setlocale2.c: New file.
10616         * modules/setlocale-tests (Files): Add the new files.
10617         (Makefile.am): Enable test-setlocale2.sh test.
10618         * doc/posix-functions/setlocale.texi: Mention workaround.
10619
10620 2011-02-11  Bruno Haible  <bruno@clisp.org>
10621
10622         Tests for module 'setlocale'.
10623         * modules/setlocale-tests: New file.
10624         * tests/test-setlocale1.sh: New file.
10625         * tests/test-setlocale1.c: New file.
10626
10627         New module 'setlocale'.
10628         * lib/locale.in.h (setlocale): New declaration.
10629         * lib/setlocale.c: New file, based on
10630         gettext/gettext-runtime/intl/setlocale.c.
10631         * m4/setlocale.m4: New file.
10632         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10633         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10634         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10635         REPLACE_SETLOCALE.
10636         * modules/setlocale: New file.
10637         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10638         * doc/posix-functions/setlocale.texi: Mention the new module.
10639
10640 2011-02-11  Bruno Haible  <bruno@clisp.org>
10641
10642         Prepare for locale dependent tests on mingw.
10643         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10644         because it has the wrong locale encoding.
10645         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10646         French_France.1252 instead of "fr".
10647         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10648         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10649         because it has the wrong locale encoding.
10650         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10651         native Windows, try Turkish_Turkey.65001.
10652         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10653         Chinese_China.54936.
10654
10655         Prepare for locale dependent tests on mingw.
10656         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10657         differently.
10658         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10659         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10660         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10661         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10662
10663 2011-02-11  Eric Blake  <eblake@redhat.com>
10664
10665         strptime: avoid compiler warnings
10666         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10667         compiler warnings about dead code.
10668         Reported by Daniel P. Berrange.
10669
10670 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10671
10672         doc: update users.txt
10673         * users.txt: Add rcs.
10674
10675 2011-02-10  John W. Eaton  <jwe@gnu.org>
10676
10677         doc: update users.txt
10678         * users.txt: Add octave.
10679
10680 2011-02-10  Jim Meyering  <meyering@redhat.com>
10681
10682         doc: update users.txt
10683         * users.txt: Add iwhd.
10684
10685 2011-02-09  Bruno Haible  <bruno@clisp.org>
10686
10687         gnulib-tool: Make copyright notice adjustment more robust.
10688         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10689         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10690         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10691         License".
10692         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10693
10694 2011-02-06  Bruno Haible  <bruno@clisp.org>
10695
10696         New module 'towctrans'.
10697         * modules/towctrans: New file.
10698         * lib/wctype.in.h (towctrans): New declaration.
10699         * lib/towctrans.c: New file.
10700         * lib/towctrans-impl.h: New file.
10701         * m4/towctrans.m4: New file.
10702         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10703         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10704         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10705         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10706         * doc/posix-functions/towctrans.texi: Mention the new module.
10707
10708 2011-02-06  Bruno Haible  <bruno@clisp.org>
10709
10710         New module 'wctrans'.
10711         * modules/wctrans: New file.
10712         * lib/wctype.in.h (wctrans): New declaration.
10713         * lib/wctrans.c: New file.
10714         * lib/wctrans-impl.h: New file.
10715         * m4/wctrans.m4: New file.
10716         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10717         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10718         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10719         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10720         * doc/posix-functions/wctrans.texi: Mention the new module.
10721
10722 2011-02-06  Bruno Haible  <bruno@clisp.org>
10723
10724         New module 'iswctype'.
10725         * modules/iswctype: New file.
10726         * lib/wctype.in.h (iswctype): New declaration.
10727         * lib/iswctype.c: New file.
10728         * lib/iswctype-impl.h: New file.
10729         * m4/iswctype.m4: New file.
10730         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10731         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10732         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10733         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10734         * doc/posix-functions/iswctype.texi: Mention the new module and the
10735         HP-UX 11.00 problem.
10736
10737 2011-02-06  Bruno Haible  <bruno@clisp.org>
10738
10739         New module 'wctype'.
10740         * modules/wctype: Change to represent the wctype() substitute.
10741         * lib/wctype.in.h (wctype): New declaration.
10742         * lib/wctype.c: New file.
10743         * lib/wctype-impl.h: New file.
10744         * m4/wctype.m4: New file.
10745         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10746         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10747         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10748         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10749         * doc/posix-functions/wctype.texi: Mention the new module and the
10750         HP-UX 11.00 problem.
10751
10752 2011-02-06  Bruno Haible  <bruno@clisp.org>
10753
10754         wctype-h: Ensure wctype_t and wctrans_t are defined.
10755         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10756         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10757         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10758         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10759         HAVE_WCTRANS_T.
10760         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10761
10762 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10763
10764         flock: fix license typo
10765
10766         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10767         omitted.
10768
10769 2011-02-08  Bruno Haible  <bruno@clisp.org>
10770
10771         Split large sed scripts, for HP-UX sed.
10772         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10773         to avoid HP-UX limit of 99 commands, in the near future.
10774         * modules/stdlib (Makefile.am): Likewise.
10775         * modules/unistd (Makefile.am): Likewise.
10776         * modules/wchar (Makefile.am): Likewise.
10777         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10778         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10779         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10780
10781 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10782             Bruno Haible  <bruno@clisp.org>
10783
10784         stdlib: improve random_r modularization
10785         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10786         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10787         you also need the random_r module to get this material right.
10788         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10789         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10790         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10791
10792 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10793
10794         stdlib: don't depend on stdint
10795         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10796         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10797         be independent of whether stdint.h is needed.
10798         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10799         here, instead of ...
10800         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10801         struct random_data should be using the random_r module, not just
10802         the stdlib module (which wouldn't make sense: what package needs
10803         just struct random_data without also needing random_r?).
10804         * modules/stdlib (Depends-on): Remove stdint.
10805
10806         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10807         See the thread rooted at
10808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10809         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10810         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10811         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10812         __VMS)); previously it was always included (via fcntl--.h).
10813         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10814         hand; this is good enough for load averages.  Also, do not use
10815         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10816         flags directly if available and don't bother otherwise.  (Packages
10817         that need the extra reliability should use the modules that define
10818         these flags on older platforms that lack them.)
10819         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10820         fcntl-safer.
10821
10822 2011-02-08  Jim Meyering  <meyering@redhat.com>
10823
10824         di-set.h, ino-map.h: add multiple-inclusion guard
10825         Technically, the guard is required only for ino-map.h, due to its
10826         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10827         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10828         * lib/ino-map.h: Likewise.
10829
10830 2011-02-06  Bruno Haible  <bruno@clisp.org>
10831
10832         iswblank: Ensure declaration on glibc systems.
10833         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10834         * modules/iswblank (Dependencies): Add 'extensions'.
10835         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10836
10837 2011-02-06  Bruno Haible  <bruno@clisp.org>
10838
10839         New module 'iswblank'.
10840         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10841         * modules/iswblank: New file.
10842         * modules/wctype-h (Files): Remove lib/iswblank.c.
10843         (Makefile.am): Substitute GNULIB_ISWBLANK.
10844         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10845         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10846         (gl_WCTYPE_H_DEFAULTS): New macro.
10847         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10848         * modules/iswblank-tests: New file.
10849         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10850         * tests/test-wctype-h.c (main): Remove iswblank tests.
10851         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10852         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10853         of 'wctype-h'.
10854         * NEWS: Mention the change.
10855         * modules/mbchar (Depends-on): Add iswblank.
10856
10857 2011-02-08  Bruno Haible  <bruno@clisp.org>
10858
10859         di-set tests: Refactor.
10860         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10861         unnecessary includes.
10862         (ASSERT): Remove macro.
10863         (main): Make C90 compliant by avoiding variable declaration after
10864         statement.
10865         * modules/di-set-tests (Files): Add tests/macros.h.
10866
10867 2011-02-08  Bruno Haible  <bruno@clisp.org>
10868
10869         ino-map tests: Refactor.
10870         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10871         unnecessary includes.
10872         (ASSERT): Remove macro.
10873         (main): Make C90 compliant by avoiding variable declaration after
10874         statement.
10875         * modules/ino-map-tests (Files): Add tests/macros.h.
10876
10877 2011-02-08  Jim Meyering  <meyering@redhat.com>
10878
10879         di-set: add "const" to a cast
10880         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10881         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10882
10883 2011-02-06  Bruno Haible  <bruno@clisp.org>
10884
10885         Rename module 'wctype' to 'wctype-h'.
10886         * modules/wctype-h: Renamed from modules/wctype.
10887         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10888         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10889         (Files, Depends-on, Makefile.am): Update.
10890         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10891         (Files, Makefile.am): Update.
10892         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10893         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10894         * doc/posix-headers/wctype.texi: Update.
10895         * doc/posix-functions/iswalnum.texi: Update.
10896         * doc/posix-functions/iswalpha.texi: Update.
10897         * doc/posix-functions/iswblank.texi: Update.
10898         * doc/posix-functions/iswcntrl.texi: Update.
10899         * doc/posix-functions/iswdigit.texi: Update.
10900         * doc/posix-functions/iswgraph.texi: Update.
10901         * doc/posix-functions/iswlower.texi: Update.
10902         * doc/posix-functions/iswprint.texi: Update.
10903         * doc/posix-functions/iswpunct.texi: Update.
10904         * doc/posix-functions/iswspace.texi: Update.
10905         * doc/posix-functions/iswupper.texi: Update.
10906         * doc/posix-functions/iswxdigit.texi: Update.
10907         * doc/posix-functions/towlower.texi: Update.
10908         * doc/posix-functions/towupper.texi: Update.
10909         * NEWS: Mention the change.
10910         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10911         * modules/mbchar (Dependencies): Likewise.
10912         * modules/mbswidth (Dependencies): Likewise.
10913         * modules/quotearg (Dependencies): Likewise.
10914         * modules/regex (Dependencies): Likewise.
10915         * modules/wcscasecmp (Dependencies): Likewise.
10916         * modules/wcsncasecmp (Dependencies): Likewise.
10917         * modules/wcwidth (Dependencies): Likewise.
10918
10919 2011-02-06  Bruno Haible  <bruno@clisp.org>
10920
10921         New module 'wcswidth'.
10922         * modules/wcswidth: New file.
10923         * lib/wchar.in.h (wcswidth): New declaration.
10924         * lib/wcswidth.c: New file.
10925         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10926         * m4/wcswidth.m4: New file.
10927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10929         REPLACE_WCSWIDTH.
10930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10931         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10932         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10933         * doc/posix-functions/wcswidth.texi: Mention the new module.
10934
10935 2011-02-06  Bruno Haible  <bruno@clisp.org>
10936
10937         New module 'wcstok'.
10938         * modules/wcstok: New file.
10939         * lib/wchar.in.h (wcstok): New declaration.
10940         * lib/wcstok.c: New file.
10941         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10942         * m4/wcstok.m4: New file.
10943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10946         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10947         * doc/posix-functions/wcstok.texi: Mention the new module.
10948
10949 2011-02-06  Bruno Haible  <bruno@clisp.org>
10950
10951         New module 'wcsstr'.
10952         * modules/wcsstr: New file.
10953         * lib/wchar.in.h (wcsstr): New declaration.
10954         * lib/wcsstr.c: New file.
10955         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10956         * m4/wcsstr.m4: New file.
10957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10960         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10961         * doc/posix-functions/wcsstr.texi: Mention the new module.
10962
10963 2011-02-06  Bruno Haible  <bruno@clisp.org>
10964
10965         New module 'wcspbrk'.
10966         * modules/wcspbrk: New file.
10967         * lib/wchar.in.h (wcspbrk): New declaration.
10968         * lib/wcspbrk.c: New file.
10969         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10970         * m4/wcspbrk.m4: New file.
10971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10974         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10975         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10976
10977 2011-02-06  Bruno Haible  <bruno@clisp.org>
10978
10979         New module 'wcsspn'.
10980         * modules/wcsspn: New file.
10981         * lib/wchar.in.h (wcsspn): New declaration.
10982         * lib/wcsspn.c: New file.
10983         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10984         * m4/wcsspn.m4: New file.
10985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10988         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10989         * doc/posix-functions/wcsspn.texi: Mention the new module.
10990
10991 2011-02-06  Bruno Haible  <bruno@clisp.org>
10992
10993         New module 'wcscspn'.
10994         * modules/wcscspn: New file.
10995         * lib/wchar.in.h (wcscspn): New declaration.
10996         * lib/wcscspn.c: New file.
10997         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10998         * m4/wcscspn.m4: New file.
10999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11002         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11003         * doc/posix-functions/wcscspn.texi: Mention the new module.
11004
11005 2011-02-06  Bruno Haible  <bruno@clisp.org>
11006
11007         New module 'wcsrchr'.
11008         * modules/wcsrchr: New file.
11009         * lib/wchar.in.h (wcsrchr): New declaration.
11010         * lib/wcsrchr.c: New file.
11011         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11012         * m4/wcsrchr.m4: New file.
11013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11016         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11017         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11018
11019 2011-02-06  Bruno Haible  <bruno@clisp.org>
11020
11021         New module 'wcschr'.
11022         * modules/wcschr: New file.
11023         * lib/wchar.in.h (wcschr): New declaration.
11024         * lib/wcschr.c: New file.
11025         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11026         * m4/wcschr.m4: New file.
11027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11029         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11030         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11031         * doc/posix-functions/wcschr.texi: Mention the new module.
11032
11033 2011-02-06  Bruno Haible  <bruno@clisp.org>
11034
11035         New module 'wcsdup'.
11036         * modules/wcsdup: New file.
11037         * lib/wchar.in.h (wcsdup): New declaration.
11038         * lib/wcsdup.c: New file.
11039         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11040         * m4/wcsdup.m4: New file.
11041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11043         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11044         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11045         * doc/posix-functions/wcsdup.texi: Mention the new module.
11046
11047 2011-02-06  Bruno Haible  <bruno@clisp.org>
11048
11049         New module 'wcsxfrm'.
11050         * modules/wcsxfrm: New file.
11051         * lib/wchar.in.h (wcsxfrm): New declaration.
11052         * lib/wcsxfrm.c: New file.
11053         * lib/wcsxfrm-impl.h: New file.
11054         * m4/wcsxfrm.m4: New file.
11055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11057         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11058         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11059         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11060
11061 2011-02-06  Bruno Haible  <bruno@clisp.org>
11062
11063         New module 'wcscoll'.
11064         * modules/wcscoll: New file.
11065         * lib/wchar.in.h (wcscoll): New declaration.
11066         * lib/wcscoll.c: New file.
11067         * lib/wcscoll-impl.h: New file.
11068         * m4/wcscoll.m4: New file.
11069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11072         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11073         * doc/posix-functions/wcscoll.texi: Mention the new module.
11074
11075 2011-02-06  Bruno Haible  <bruno@clisp.org>
11076
11077         New module 'wcsncasecmp'.
11078         * modules/wcsncasecmp: New file.
11079         * lib/wchar.in.h (wcsncasecmp): New declaration.
11080         * lib/wcsncasecmp.c: New file.
11081         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11082         * m4/wcsncasecmp.m4: New file.
11083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11086         HAVE_WCSNCASECMP.
11087         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11088         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11089
11090 2011-02-06  Bruno Haible  <bruno@clisp.org>
11091
11092         New module 'wcscasecmp'.
11093         * modules/wcscasecmp: New file.
11094         * lib/wchar.in.h (wcscasecmp): New declaration.
11095         * lib/wcscasecmp.c: New file.
11096         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11097         * m4/wcscasecmp.m4: New file.
11098         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11099         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11100         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11101         HAVE_WCSCASECMP.
11102         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11103         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11104
11105 2011-02-05  Bruno Haible  <bruno@clisp.org>
11106
11107         New module 'wcsncmp'.
11108         * modules/wcsncmp: New file.
11109         * lib/wchar.in.h (wcsncmp): New declaration.
11110         * lib/wcsncmp.c: New file.
11111         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11112         * m4/wcsncmp.m4: New file.
11113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11116         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11117         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11118
11119 2011-02-05  Bruno Haible  <bruno@clisp.org>
11120
11121         New module 'wcscmp'.
11122         * modules/wcscmp: New file.
11123         * lib/wchar.in.h (wcscmp): New declaration.
11124         * lib/wcscmp.c: New file.
11125         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11126         * m4/wcscmp.m4: New file.
11127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11130         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11131         * doc/posix-functions/wcscmp.texi: Mention the new module.
11132
11133 2011-02-05  Bruno Haible  <bruno@clisp.org>
11134
11135         New module 'wcsncat'.
11136         * modules/wcsncat: New file.
11137         * lib/wchar.in.h (wcsncat): New declaration.
11138         * lib/wcsncat.c: New file.
11139         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11140         * m4/wcsncat.m4: New file.
11141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11144         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11145         * doc/posix-functions/wcsncat.texi: Mention the new module.
11146
11147 2011-02-05  Bruno Haible  <bruno@clisp.org>
11148
11149         New module 'wcscat'.
11150         * modules/wcscat: New file.
11151         * lib/wchar.in.h (wcscat): New declaration.
11152         * lib/wcscat.c: New file.
11153         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11154         * m4/wcscat.m4: New file.
11155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11158         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11159         * doc/posix-functions/wcscat.texi: Mention the new module.
11160
11161 2011-02-05  Bruno Haible  <bruno@clisp.org>
11162
11163         New module 'wcpncpy'.
11164         * modules/wcpncpy: New file.
11165         * lib/wchar.in.h (wcpncpy): New declaration.
11166         * lib/wcpncpy.c: New file.
11167         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11168         * m4/wcpncpy.m4: New file.
11169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11171         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11172         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11173         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11174
11175 2011-02-05  Bruno Haible  <bruno@clisp.org>
11176
11177         New module 'wcsncpy'.
11178         * modules/wcsncpy: New file.
11179         * lib/wchar.in.h (wcsncpy): New declaration.
11180         * lib/wcsncpy.c: New file.
11181         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11182         * m4/wcsncpy.m4: New file.
11183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11186         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11187         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11188
11189 2011-02-05  Bruno Haible  <bruno@clisp.org>
11190
11191         New module 'wcpcpy'.
11192         * modules/wcpcpy: New file.
11193         * lib/wchar.in.h (wcpcpy): New declaration.
11194         * lib/wcpcpy.c: New file.
11195         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11196         * m4/wcpcpy.m4: New file.
11197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11199         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11200         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11201         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11202
11203 2011-02-05  Bruno Haible  <bruno@clisp.org>
11204
11205         New module 'wcscpy'.
11206         * modules/wcscpy: New file.
11207         * lib/wchar.in.h (wcscpy): New declaration.
11208         * lib/wcscpy.c: New file.
11209         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11210         * m4/wcscpy.m4: New file.
11211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11214         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11215         * doc/posix-functions/wcscpy.texi: Mention the new module.
11216
11217 2011-02-05  Bruno Haible  <bruno@clisp.org>
11218
11219         New module 'wcsnlen'.
11220         * modules/wcsnlen: New file.
11221         * lib/wchar.in.h (wcsnlen): New declaration.
11222         * lib/wcsnlen.c: New file.
11223         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11224         * m4/wcsnlen.m4: New file.
11225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11228         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11229         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11230
11231 2011-02-05  Bruno Haible  <bruno@clisp.org>
11232
11233         New module 'wcslen'.
11234         * modules/wcslen: New file.
11235         * lib/wchar.in.h (wcslen): New declaration.
11236         * lib/wcslen.c: New file.
11237         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11238         * m4/wcslen.m4: New file.
11239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11242         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11243         * doc/posix-functions/wcslen.texi: Mention the new module.
11244
11245 2011-02-05  Bruno Haible  <bruno@clisp.org>
11246
11247         New module 'wmemset'.
11248         * modules/wmemset: New file.
11249         * lib/wchar.in.h (wmemset): New declaration.
11250         * lib/wmemset.c: New file.
11251         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11252         * m4/wmemset.m4: New file.
11253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11255         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11256         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11257         * doc/posix-functions/wmemset.texi: Mention the new module.
11258
11259 2011-02-05  Bruno Haible  <bruno@clisp.org>
11260
11261         New module 'wmemmove'.
11262         * modules/wmemmove: New file.
11263         * lib/wchar.in.h (wmemmove): New declaration.
11264         * lib/wmemmove.c: New file.
11265         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11266         * m4/wmemmove.m4: New file.
11267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11269         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11270         HAVE_WMEMMOVE.
11271         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11272         * doc/posix-functions/wmemmove.texi: Mention the new module.
11273
11274 2011-02-05  Bruno Haible  <bruno@clisp.org>
11275
11276         New module 'wmemcpy'.
11277         * modules/wmemcpy: New file.
11278         * lib/wchar.in.h (wmemcpy): New declaration.
11279         * lib/wmemcpy.c: New file.
11280         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11281         * m4/wmemcpy.m4: New file.
11282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11284         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11285         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11286         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11287
11288 2011-02-05  Bruno Haible  <bruno@clisp.org>
11289
11290         New module 'wmemcmp'.
11291         * modules/wmemcmp: New file.
11292         * lib/wchar.in.h (wmemcmp): New declaration.
11293         * lib/wmemcmp.c: New file.
11294         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11295         * m4/wmemcmp.m4: New file.
11296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11298         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11299         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11300         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11301
11302 2011-02-07  Jim Meyering  <meyering@redhat.com>
11303
11304         di-set, ino-map: new modules, from coreutils
11305         * lib/di-set.c: New file.
11306         * lib/di-set.h: Likewise.
11307         * lib/ino-map.c: Likewise.
11308         * lib/ino-map.h: Likewise.
11309         * modules/di-set: Likewise.
11310         * modules/di-set-tests: Likewise.
11311         * modules/ino-map: Likewise.
11312         * modules/ino-map-tests: Likewise.
11313         * tests/test-di-set.c: Likewise.
11314         * tests/test-ino-map.c: Likewise.
11315
11316 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11317
11318         getloadavg: merge minor changes from Emacs
11319
11320         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11321         (getloadavg): Use memset, not bzero.
11322
11323         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11324         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11325         clash (bug#86).
11326
11327 2010-11-14  Bruno Haible  <bruno@clisp.org>
11328
11329         Allow multiple gnulib generated replacements to coexist.
11330         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11331         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11332         * lib/langinfo.in.h (nl_item): Likewise.
11333         * lib/math.in.h (_NaN, NAN): Likewise.
11334         * lib/netdb.in.h (struct addrinfo): Likewise.
11335         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11336         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11337         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11338         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11339         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11340         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11341         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11342         pthread_mutexattr_init, pthread_mutexattr_settype,
11343         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11344         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11345         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11346         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11347         * lib/sched.in.h (struct sched_param): Likewise.
11348         * lib/se-selinux.in.h (security_class_t, security_context_t,
11349         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11350         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11351         lsetfilecon, fsetfilecon, security_check_context,
11352         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11353         Likewise.
11354         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11355         Likewise.
11356         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11357         _gl_function_taking_int_returning_void_t, union sigval,
11358         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11359         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11360         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11361         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11362         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11363         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11364         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11365         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11366         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11367         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11368         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11369         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11370         socklen_t, rpl_fd_isset): Likewise.
11371         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11372         * lib/sys_time.in.h (struct timeval): Likewise.
11373         * lib/sys_times.in.h (struct tms): Likewise.
11374         * lib/sys_utsname.in.h (struct utsname):
11375         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11376         * lib/unistd.in.h (getpagesize): Likewise.
11377         * lib/wchar.in.h (mbstate_t): Likewise.
11378         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11379         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11380         towlower, towupper): Likewise.
11381         Reported by Sam Steingold <sds@gnu.org>.
11382
11383 2011-02-05  Eric Blake  <eblake@redhat.com>
11384
11385         unsetenv: work around Haiku issues
11386         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11387         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11388
11389 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11390
11391         libposix: avoid calling error() within libposix
11392         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11393         is defined.
11394
11395 2011-02-05  Eric Blake  <eblake@redhat.com>
11396
11397         strerror_r-posix: port to cygwin
11398         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11399         implementation.
11400         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11401         * tests/test-strerror_r.c (main): Fix test.
11402         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11403         issue.
11404
11405 2011-02-05  Bruno Haible  <bruno@clisp.org>
11406
11407         New module 'wmemchr'.
11408         * modules/wmemchr: New file.
11409         * lib/wchar.in.h (wmemchr): New declaration.
11410         * lib/wmemchr.c: New file.
11411         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11412         * m4/wmemchr.m4: New file.
11413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11415         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11416         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11417         * doc/posix-functions/wmemchr.texi: Mention the new module.
11418
11419 2011-02-04  Eric Blake  <eblake@redhat.com>
11420
11421         fdopendir: detect FreeBSD bug
11422         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11423         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11424
11425 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11426
11427         stdbool: do not define HAVE_STDBOOL_H
11428         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11429         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11430         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11431         imported from the latest Autoconf git.  It was motivated by Emacs,
11432         which uses gnulib but does not need HAVE_STDBOOL_H.
11433
11434 2011-02-04  Bruno Haible  <bruno@clisp.org>
11435
11436         wcsnrtombs: Prepare for new module wwcsnrtombs.
11437         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11438         * lib/wcsnrtombs.c: Include it.
11439         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11440
11441         wcsrtombs: Prepare for new module wwcsrtombs.
11442         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11443         * lib/wcsrtombs.c: Include it.
11444         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11445
11446         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11447         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11448         * lib/mbsnrtowcs.c: Include it.
11449         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11450
11451         mbsrtowcs: Prepare for new module mbsrtowwcs.
11452         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11453         * lib/mbsrtowcs.c: Include it.
11454         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11455
11456 2011-02-04  Bruno Haible  <bruno@clisp.org>
11457
11458         vasnprintf: Reduce use of malloc for small format strings.
11459         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11460         (arguments): Add room for the first 7 arguments.
11461         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11462         (char_directives, u8_directives, u16_directives, u32_directives): Add
11463         room for the first 7 directives.
11464         * lib/printf-parse.c: Include <string.h>.
11465         (PRINTF_PARSE): Change memory handling code so that it uses the first
11466         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11467         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11468         Reported by Pádraig Brady <P@draigbrady.com>.
11469
11470 2011-01-31  Eric Blake  <eblake@redhat.com>
11471
11472         dup2: work around Haiku bug
11473         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11474         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11475         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11476         * tests/test-dup2.c (main): Enhance test.
11477
11478 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11479
11480         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11481         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11482         declared by eglibc 2.11.2.
11483         * lib/stdio.in.h: Likewise.
11484
11485 2011-01-31  Eric Blake  <eblake@redhat.com>
11486
11487         ignore-value: add missing test dependency
11488         * tests/test-ignore-value.c: Revert previous change; stdio.h
11489         provides off_t.
11490         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11491
11492 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11493
11494         mktime: clarify long_int width checking
11495         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11496         the top level, to make it clearer that the assumption about
11497         long_int width is being checked.  See
11498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11499
11500 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11501
11502         ignore-value: Fix self-test.
11503         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11504
11505 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11506
11507         TYPE_MAXIMUM: avoid theoretically undefined behavior
11508         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11509         negative number, which the C Standard says has undefined behavior.
11510         In practice this is not a problem, but might as well do it by the book.
11511         Reported by Rich Felker and Eric Blake; see
11512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11513         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11514         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11516         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11517         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11518         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11519
11520         mktime: #undef mktime before #defining it
11521         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11522
11523         mktime: systematically normalize tm_isdst comparisons
11524         * lib/mktime.c (isdst_differ): New function.
11525         (__mktime_internal): Use it systematically for all isdst comparisons.
11526         This completes the fix for libc BZ #6723, and removes the need for
11527         normalizing tm_isdst.  See
11528         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11529         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11530
11531         mktime: fix some integer overflow issues and sidestep the rest
11532
11533         This was prompted by a bug report by Benjamin Lindner for MinGW
11534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11535         His bug is due to signed integer overflow (0 - INT_MIN), and I
11536         I scanned through mktime.c looking for other integer overflow
11537         problems, fixing all the bugs I found.
11538
11539         Although the C Standard says the resulting code is still not safe
11540         in the presence of integer overflow, in practice it should be good
11541         enough for all real-world two's-complement implementations, except
11542         for debugging environments that deliberately trap on integer
11543         overflow (e.g., gcc -ftrapv).
11544
11545         * lib/mktime.c (WRAPV): New macro.
11546         (SHR): Also check that long_int and time_t shift right in the
11547         usual way, before using the fast-but-unportable method.
11548         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11549         used.  The code already assumed two's complement, so there's
11550         no need to test for alternatives.  All uses removed.
11551         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11552         the C standard.  Problem reported by Rich Felker in
11553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11554         (twos_complement_arithmetic): Also check long_int and time_t.
11555         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11556         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11557         (__mktime_internal): Avoid integer overflow with unary subtraction
11558         in two instances where -1 - X is an adequate replacement for -X,
11559         since the calculations are approximate.
11560
11561 2011-01-29  Eric Blake  <eblake@redhat.com>
11562
11563         mktime: avoid infinite loop
11564         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11565         type; behavior is still undefined but portable to all known targets.
11566         Reported by Rich Felker.
11567
11568 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11569
11570         rename, unlink, same-inode: Relicense.
11571         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11572         * modules/unlink (License): Likewise.
11573         * modules/same-inode (License): Likewise.
11574
11575 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11576
11577         mktime: avoid problems on NetBSD 5 / i386
11578         * lib/mktime.c (long_int): New type.  This works around a problem
11579         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11580         but time_t is 64 bits, and where I expect the existing code is
11581         wrong in some cases.
11582         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11583         (ydhms_diff): Bring back the compile-time check for wide-enough
11584         year and yday.
11585
11586         mktime: fix misspelling in comment
11587         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11588         This merges all recent glibc changes of importance.
11589
11590 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11591
11592         move-if-change: cope with concurrent mv of identical file.
11593         * build-aux/move-if-change (CMPPROG): Accept environment
11594         variable as an override for `cmp'.
11595         (usage): Document CMPPROG.
11596         Adjust comparison to drop stdout.  Cope with failure of mv if
11597         the target file exists and is identical to the source, for
11598         parallel builds.
11599         Report from H.J. Lu against binutils in PR binutils/12283.
11600
11601 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11602
11603         * users.txt: Mention sharutils.
11604
11605 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11606
11607         * users.txt: Mention OATH Toolkit.
11608
11609 2011-01-27  Bruno Haible  <bruno@clisp.org>
11610
11611         Prepare for supporting FreeBSD 10.
11612         * build-aux/config.libpath: Remove handling of freebsd1*.
11613
11614 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11615
11616         Prepare for supporting FreeBSD 10.
11617         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11618         match FreeBSD 10.0.
11619
11620 2011-01-27  Bruno Haible  <bruno@clisp.org>
11621
11622         vma-iter, get-rusage-as: Add OpenBSD support.
11623         * modules/vma-iter (configure.ac): Test for mquery.
11624         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11625         * lib/vma-iter.c: Include <sys/mman.h>.
11626         (vma_iterate): Add an implementation based on mquery().
11627         * lib/resource-ext.h (get_rusage_as): Update comments.
11628         * lib/get-rusage-as.c: Likewise.
11629         * lib/get-rusage-data.c: Likewise.
11630
11631 2011-01-26  Karl Berry  <karl@gnu.org>
11632
11633         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11634         variables to make it easier to override the makeinfo program used.
11635
11636 2011-01-26  Eric Blake  <eblake@redhat.com>
11637
11638         fcntl: work around Haiku F_DUPFD bugs
11639         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11640         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11641         cloexec bit on duplication.
11642         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11643
11644 2011-01-26  Bruno Haible  <bruno@clisp.org>
11645
11646         Enable memory leak tests on AIX.
11647         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11648         * tests/test-fprintf-posix3.c (main): Likewise.
11649
11650 2011-01-26  Bruno Haible  <bruno@clisp.org>
11651
11652         Tests for module 'get-rusage-data'.
11653         * modules/get-rusage-data-tests: New file.
11654         * tests/test-get-rusage-data.c: New file.
11655
11656         New module 'get-rusage-data'.
11657         * lib/resource-ext.h (get_rusage_data): New declaration.
11658         * lib/get-rusage-data.c: New file.
11659         * modules/get-rusage-data: New file.
11660
11661 2011-01-25  Bruno Haible  <bruno@clisp.org>
11662
11663         get-rusage-as: Allow for easier testing.
11664         * lib/resource-ext.h (get_rusage_as): Add comment.
11665         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11666         (main): New function for interactive testing.
11667
11668 2011-01-25  Bruno Haible  <bruno@clisp.org>
11669
11670         vma-iter: Treat Haiku like BeOS.
11671         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11672         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11673
11674 2011-01-25  Eric Blake  <eblake@redhat.com>
11675
11676         c-stack: fix regression on cygwin when libsigsegv is present
11677         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11678
11679 2011-01-24  Bruno Haible  <bruno@clisp.org>
11680
11681         vma-iter: Avoid empty intervals.
11682         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11683         on an empty interval.
11684
11685 2011-01-24  Jim Meyering  <meyering@redhat.com>
11686
11687         u64: remove unnecessary #include
11688         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11689
11690 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11691
11692         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11693         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11694
11695 2011-01-23  Bruno Haible  <bruno@clisp.org>
11696
11697         New module 'vma-iter'.
11698         * lib/vma-iter.h: New file.
11699         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11700         * modules/vma-iter: New file.
11701         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11702         for get_rusage_as_via_iterator.
11703         (vma_iterate_callback): New function.
11704         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11705         * modules/get-rusage-as (Depends-on): Add vma-iter.
11706
11707 2011-01-23  Bruno Haible  <bruno@clisp.org>
11708
11709         uninorm: Tweak includes.
11710         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11711         Reported by Jim Meyering.
11712
11713 2011-01-23  Bruno Haible  <bruno@clisp.org>
11714
11715         get-rusage-as: Improve on NetBSD.
11716         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11717         /proc, like on FreeBSD.
11718
11719 2011-01-23  Jim Meyering  <meyering@redhat.com>
11720
11721         xreadlink.h: remove unnecessary #include
11722         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11723
11724         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11725         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11726
11727 2011-01-23  Bruno Haible  <bruno@clisp.org>
11728
11729         get-rusage-as: Fix bug.
11730         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11731         original limit when aborting the first loop.
11732
11733 2011-01-23  Bruno Haible  <bruno@clisp.org>
11734
11735         wctype: Ensure valid C syntax.
11736         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11737         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11738
11739 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11740
11741         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11743         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11744         as they are needed only for configure's test case.
11745         This removes two unnecessary symbols from config.h.
11746
11747         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11748         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11750         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11751         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11753         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11754         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11755         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11756         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11757         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11759         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11760         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11761         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11762         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11763         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11764         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11765
11766 2011-01-21  Eric Blake  <eblake@redhat.com>
11767
11768         maintainer-makefile: work with older git for submodule check
11769         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11770         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11771         Reported by Matthias Bolte.
11772
11773         bootstrap: minor portability fixes
11774         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11775         (usage): Omit leading capital and trailing . on help phrases, per
11776         GNU Coding Standards.
11777         (check_versions, top level): Prefix messages with script name.
11778
11779 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11780
11781         bootstrap: support --no-git option
11782         * build-aux/bootstrap: Add --no-git option, to be used when
11783         --gnulib-srcdir points to the exact desired checkout.
11784
11785 2011-01-21  Eric Blake  <eblake@redhat.com>
11786
11787         strerror_r-posix: work with glibc 2.13
11788         * lib/strerror_r.c (strerror_r): Fix return type.
11789
11790 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11791             Bruno Haible  <bruno@clisp.org>
11792
11793         uN_strstr: New unit tests.
11794         * modules/unistr/u8-strstr-tests: New file.
11795         * modules/unistr/u16-strstr-tests: New file.
11796         * modules/unistr/u32-strstr-tests: New file.
11797         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11798         * tests/unistr/test-u8-strstr.c: New file.
11799         * tests/unistr/test-u16-strstr.c: New file.
11800         * tests/unistr/test-u32-strstr.c: New file.
11801
11802 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11803             Bruno Haible  <bruno@clisp.org>
11804
11805         Make uN_strstr functions O(n) worst-case.
11806         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11807         16-bit and 32-bit unit cases, use the unibyte algorithm from
11808         lib/mbsstr.c.
11809         * lib/unistr/u8-strstr.c: Include <string.h>.
11810         (UNIT_IS_UINT8_T): New macro.
11811         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11812         (U_STRLEN, U_STRNLEN): New macros.
11813         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11814         (U_STRLEN, U_STRNLEN): New macros.
11815         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11816         (configure.ac): Update required libunistring version.
11817         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11818         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11819         malloca.
11820         (configure.ac): Update required libunistring version.
11821         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11822         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11823         malloca.
11824         (configure.ac): Update required libunistring version.
11825
11826 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11827             Bruno Haible  <bruno@clisp.org>
11828
11829         Prepare for faster uN_strstr functions.
11830         * lib/str-kmp.h: Support definable UNITs.
11831         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11832         needle_len argument.
11833         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11834         * lib/mbscasestr.c (mbscasestr): Likewise.
11835
11836 2011-01-21  Pádraig Brady <P@draigBrady.com>
11837
11838         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11839         * tests/test-malloca.c (main): Unset the environment variable
11840         to greatly speed up the test.
11841         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11842         * modules/malloca-tests: Depend on unsetenv.
11843
11844 2011-01-21  Pádraig Brady <P@draigBrady.com>
11845
11846         ignore-value: remove stdint dependency
11847         * lib/ignore-value.h: Remove <stdint.h>
11848         * modules/ignore-value: Remove stdint dependency.
11849
11850 2011-01-21  Jim Meyering  <meyering@redhat.com>
11851
11852         maint.mk: adjust variable name to be consistent with other gl_ vars
11853         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11854         to be lower case.
11855
11856 2011-01-20  Jim Meyering  <meyering@redhat.com>
11857
11858         maint.mk: make "check" depend on public-submodule-commit by default
11859         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11860
11861 2011-01-20  Bruno Haible  <bruno@clisp.org>
11862
11863         mbfile, mbiter: Complete change from 2008-12-21.
11864         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11865         * m4/mbiter.m4 (gl_MBITER): Likewise.
11866
11867 2011-01-20  Jim Meyering  <meyering@redhat.com>
11868
11869         init.sh: insert space between each function name and "()"
11870         * tests/init.sh: Make it a little easier to see that a function's
11871         name is "warn_", and not "warn" when looking at the first part of
11872         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11873
11874 2011-01-20  Jim Meyering  <meyering@redhat.com>
11875
11876         mountlist: clean up code formatting
11877         * lib/mountlist.c (read_file_system_list): Split a long line,
11878         correct bracing style, use NULL in place of "(struct statfs *)0",
11879         don't parenthesize return value, add spaces around "=" and after
11880         ";-in-for-stmt".
11881
11882 2011-01-14  Markus Duft <mduft@gentoo.org>
11883
11884         mountlist: add support for Interix
11885         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11886         Apply statvfs to all entries of /dev/fs.
11887         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11888         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11889
11890 2011-01-20  Jim Meyering  <meyering@redhat.com>
11891
11892         maint.mk: improve the public-submodule-commit rule
11893         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11894         to suppress printing of its commands... unless V=1.
11895         Add git submodule's --quiet option to suppress printing of e.g.,
11896         "Entering gnulib" output.
11897         "cd" into $(srcdir) before running git submodule.
11898
11899 2011-01-20  Bruno Haible  <bruno@clisp.org>
11900
11901         include_next: Fix bug introduced on 2011-01-18.
11902         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11903         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11904         ac_cv_header_... variable if the second argument is not 'check'.
11905         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11906         gl_NEXT_HEADERS_INTERNAL.
11907
11908 2011-01-20  Bruno Haible  <bruno@clisp.org>
11909
11910         Allow the user to avoid the GNULIB_TEST_* macros.
11911         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11912         Suggested by Paul Eggert.
11913
11914 2011-01-14  Jim Meyering  <meyering@redhat.com>
11915
11916         bootstrap: avoid failure when there is no .gitmodules file
11917         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11918         has been assigned to, even when its value is the empty string.
11919         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11920         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11921         Reported by John W. Eaton <jwe@gnu.org>.
11922
11923 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11924
11925         assume <ctype.h>, ..., <time.h> exist
11926         For years gnulib has been assuming the existence of the headers
11927         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11928         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11929         them, since they don't appear to be needed.
11930         * README (Portability guidelines): Document this.
11931         * lib/flock.c: Assume <fcntl.h> exists.
11932         * lib/regex_internal.h: Assume <locale.h> exists.
11933         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11934         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11935         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11936         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11937         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11938         * m4/regex.m4 (gl_REGEX): Likewise.
11939         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11940         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11941         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11942         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11943         * tests/test-argp.c: Likewise.
11944         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11945
11946         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11947         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11948         AA_APPLE_UNIVERSAL_BUILD.  See
11949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11950         * NEWS: Document this.
11951
11952 2011-01-19  Eric Blake  <eblake@redhat.com>
11953
11954         c-stack: assume stack overflow if SA_SIGINFO unsupported
11955         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11956         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11957         sigaction will work.
11958         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11959         behavior match Linux.
11960         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11961
11962         stdbool-tests: accomodate Haiku
11963         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11964
11965         binary-io: fix O_TEXT on Haiku
11966         * modules/binary-io (Depends-on): Add fcntl-h.
11967         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11968         than blindly undefining O_TEXT.
11969         Reported by Scott McCreary.
11970
11971 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11972
11973         include_next: do not check for standard headers like stddef.h
11974
11975         I found this problem when modifying Emacs to use gnulib.
11976         I noticed that it added HAVE_STDDEF_H to config.h, even though
11977         gnulib always assumes <stddef.h> exists as per README and this
11978         symbol is unnecessary.
11979         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11980         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11981         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11982         faster for headers like stddef.h that are known to exist.
11983         (gl_CHECK_NEXT_HEADERS): Use it.
11984         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11985         rather than gl_CHECK_NEXT_HEADERS.
11986         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11987         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11988
11989 2011-01-18  Eric Blake  <eblake@redhat.com>
11990
11991         ansi-c++-opt: skip C++ dependency style if C++ is unused
11992         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11993         tests when we know C++ compilation is not desired.
11994         Reported by Scott McCreary.
11995
11996 2011-01-18  Bruno Haible  <bruno@clisp.org>
11997
11998         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11999         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12000         (main): Perform test also when getrlimit and setrlimit don't exist or
12001         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12002         limiting the address space size using setrlimit, compare the address
12003         space size before and after the the test.
12004         * tests/test-dprintf-posix2.c: Likewise.
12005         * tests/test-fprintf-posix3.sh: Update skip messages.
12006         * tests/test-dprintf-posix2.sh: Likewise.
12007         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12008         * modules/dprintf-posix-tests (Depends-on): Likewise.
12009         Reported by Bruce Korb <bkorb@gnu.org> and
12010         Gary V. Vaughan <gary@gnu.org>.
12011
12012 2011-01-18  Bruno Haible  <bruno@clisp.org>
12013
12014         get-rusage-as: Improvement for Cygwin.
12015         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12016         areas that are merely reserved.
12017
12018 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12019
12020         strftime: remove dependencies on multibyte modules
12021
12022         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12023         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12024         only if __osf__ is defined, and I suspect OSF doesn't need these
12025         other modules.  If my guess is wrong, we'll need to come up with a
12026         variant of strftime that doesn't need the multibyte modules.
12027
12028         I discovered this problem when attempting modify Emacs to use the
12029         strftime module.  With the previous gnulib, this caused Emacs to
12030         need 31 new files, ranging from lib/config.charset to
12031         m4/wint_t.m4.  This was overkill and I expect would be offputting
12032         to the Emacs maintainers.  After this change, only 6 new files are
12033         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12034         stdbool.m4, and tm_gmtoff.m4.
12035
12036         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12037         Suggested by Bruno Haible in
12038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12040         and do not check for wchar.h.
12041         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12042         (Depends-on): Remove mbrlen, mbsinit, wchar.
12043
12044 2011-01-18  Bruno Haible  <bruno@clisp.org>
12045
12046         Tests for module 'get-rusage-as'.
12047         * modules/get-rusage-as-tests: New file.
12048         * tests/test-get-rusage-as.c: New file.
12049
12050         New module 'get-rusage-as'.
12051         * modules/get-rusage-as: New file.
12052         * lib/resource-ext.h: New file.
12053         * lib/get-rusage-as.c: New file.
12054
12055 2011-01-17  Eric Blake  <eblake@redhat.com>
12056
12057         sigaction: relax license from LGPLv3+ to LGPLv2+
12058         * modules/sigaction (License): Relax to LGPLv2+.
12059
12060 2011-01-14  Bruno Haible  <bruno@clisp.org>
12061
12062         filemode: Make function declarations usable in C++ mode.
12063         * lib/filemode.h: Enclose function declarations in extern "C" block.
12064         Reported by John W. Eaton <jwe@gnu.org>.
12065
12066 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12067
12068         save-cwd: no longer include "xgetcwd.h"
12069         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12070         This avoids a compilation failure in projects that use save-cwd
12071         without also using the xgetcwd module.
12072
12073 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12074
12075         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12076         This is so that a program like Emacs, which needs only dtoastr,
12077         does not have to bother with distributing and compiling ftoastr
12078         and ldtoastr.
12079         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12080         * modules/dtoastr, modules/ldtoastr: New files.
12081         * modules/ftoastr: Now works just for 'float'.
12082         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12083         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12084         dtoastr.c, ldtoastr.c.
12085
12086 2011-01-11  Jim Meyering  <meyering@redhat.com>
12087
12088         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12089         There is no need to work around the lack of the fchdir function,
12090         since gnulib can now provide a replacement when required.
12091         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12092         * modules/save-cwd (Depends-on): Add fchdir.
12093
12094 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12095
12096         openat, save-cwd: avoid xmalloc
12097
12098         This removes a direct (but undocumented) dependency of openat on
12099         xalloc, along with an indirect dependency via save-cwd.  It also
12100         removes a dependency of save-cwd on xgetcwd, and thereby
12101         indirectly on xalloc.  This change causes the openat substitute
12102         to fall back on save_cwd when memory is tight, and for save_cwd to
12103         fail instead of dying when memory is tight, but that's good enough.
12104         Problem and initial idea for fix reported by Bastien Roucaries in
12105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12106
12107         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12108         xalloc.h (for xmalloc).
12109         (openat_proc_name): Use malloc, not xmalloc.
12110         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12111         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12112
12113         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12114         This avoids heap allocation for file names whose lengths are in
12115         the range 512..1023, with the upper bound increasing to at most
12116         4031 depending on the platform's PATH_MAX.  (We do not want
12117         pathmax.h here as it might supply a non-constant PATH_MAX.)
12118         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12119         Perhaps they should be moved to malloca.h?
12120         (OPENAT_BUFFER_SIZE): Use them.
12121
12122 2011-01-10  Bruno Haible  <bruno@clisp.org>
12123
12124         doc: Update users.txt.
12125         * users.txt: Add recutils.
12126
12127 2011-01-09  Karl Berry  <karl@gnu.org>
12128
12129         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12130
12131         * doc/configmake.texi: New file.
12132         * doc/gnulib.texi: Include it.
12133         * modules/configmake: Move documentation from here.
12134
12135 2011-01-09  Bruno Haible  <bruno@clisp.org>
12136
12137         Update to Unicode 6.0.0.
12138         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12139         (get_lbp): Update for Unicode 6.0.0.
12140         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12141         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12142         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12143         U+11001, U+11038..U+11046. Remove U+06DE.
12144         (uc_width): Fix bounds of planes.
12145         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12146         lib/uniwidth/width.c.
12147         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12148         trailing whitespace removed.
12149         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12150         without comments, but with the original copyright notice.
12151         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12152         * lib/unicase/ignorable.h: Likewise.
12153         * lib/unicase/tocasefold.h: Likewise.
12154         * lib/unicase/tolower.h: Likewise.
12155         * lib/unicase/totitle.h: Likewise.
12156         * lib/unicase/toupper.h: Likewise.
12157         * lib/unictype/bidi_of.h: Likewise.
12158         * lib/unictype/blocks.h: Likewise.
12159         * lib/unictype/categ_C.h: Likewise.
12160         * lib/unictype/categ_Cn.h: Likewise.
12161         * lib/unictype/categ_L.h: Likewise.
12162         * lib/unictype/categ_Ll.h: Likewise.
12163         * lib/unictype/categ_Lm.h: Likewise.
12164         * lib/unictype/categ_Lo.h: Likewise.
12165         * lib/unictype/categ_Lu.h: Likewise.
12166         * lib/unictype/categ_M.h: Likewise.
12167         * lib/unictype/categ_Mc.h: Likewise.
12168         * lib/unictype/categ_Me.h: Likewise.
12169         * lib/unictype/categ_Mn.h: Likewise.
12170         * lib/unictype/categ_N.h: Likewise.
12171         * lib/unictype/categ_Nd.h: Likewise.
12172         * lib/unictype/categ_No.h: Likewise.
12173         * lib/unictype/categ_P.h: Likewise.
12174         * lib/unictype/categ_Po.h: Likewise.
12175         * lib/unictype/categ_S.h: Likewise.
12176         * lib/unictype/categ_Sc.h: Likewise.
12177         * lib/unictype/categ_Sk.h: Likewise.
12178         * lib/unictype/categ_Sm.h: Likewise.
12179         * lib/unictype/categ_So.h: Likewise.
12180         * lib/unictype/categ_of.h: Likewise.
12181         * lib/unictype/combining.h: Likewise.
12182         * lib/unictype/ctype_alnum.h: Likewise.
12183         * lib/unictype/ctype_alpha.h: Likewise.
12184         * lib/unictype/ctype_graph.h: Likewise.
12185         * lib/unictype/ctype_lower.h: Likewise.
12186         * lib/unictype/ctype_print.h: Likewise.
12187         * lib/unictype/ctype_punct.h: Likewise.
12188         * lib/unictype/ctype_upper.h: Likewise.
12189         * lib/unictype/decdigit.h: Likewise.
12190         * lib/unictype/digit.h: Likewise.
12191         * lib/unictype/numeric.h: Likewise.
12192         * lib/unictype/pr_alphabetic.h: Likewise.
12193         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12194         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12195         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12196         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12197         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12198         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12199         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12200         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12201         * lib/unictype/pr_case_ignorable.h: Likewise.
12202         * lib/unictype/pr_cased.h: Likewise.
12203         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12204         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12205         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12206         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12207         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12208         * lib/unictype/pr_combining.h: Likewise.
12209         * lib/unictype/pr_composite.h: Likewise.
12210         * lib/unictype/pr_currency_symbol.h: Likewise.
12211         * lib/unictype/pr_decimal_digit.h: Likewise.
12212         * lib/unictype/pr_deprecated.h: Likewise.
12213         * lib/unictype/pr_format_control.h: Likewise.
12214         * lib/unictype/pr_grapheme_base.h: Likewise.
12215         * lib/unictype/pr_grapheme_extend.h: Likewise.
12216         * lib/unictype/pr_grapheme_link.h: Likewise.
12217         * lib/unictype/pr_id_continue.h: Likewise.
12218         * lib/unictype/pr_id_start.h: Likewise.
12219         * lib/unictype/pr_ideographic.h: Likewise.
12220         * lib/unictype/pr_lowercase.h: Likewise.
12221         * lib/unictype/pr_math.h: Likewise.
12222         * lib/unictype/pr_numeric.h: Likewise.
12223         * lib/unictype/pr_other_alphabetic.h: Likewise.
12224         * lib/unictype/pr_other_id_continue.h: Likewise.
12225         * lib/unictype/pr_other_math.h: Likewise.
12226         * lib/unictype/pr_punctuation.h: Likewise.
12227         * lib/unictype/pr_sentence_terminal.h: Likewise.
12228         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12229         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12230         * lib/unictype/pr_unified_ideograph.h: Likewise.
12231         * lib/unictype/pr_uppercase.h: Likewise.
12232         * lib/unictype/pr_xid_continue.h: Likewise.
12233         * lib/unictype/pr_xid_start.h: Likewise.
12234         * lib/unictype/scripts.h: Likewise.
12235         * lib/unictype/scripts_byname.gperf: Likewise.
12236         * lib/unictype/sy_java_ident.h: Likewise.
12237         * lib/unigbrk/gbrkprop.h: Likewise.
12238         * lib/unilbrk/lbrkprop1.h: Likewise.
12239         * lib/unilbrk/lbrkprop2.h: Likewise.
12240         * lib/uninorm/decomposition-table2.h: Likewise.
12241         * lib/uniwbrk/wbrkprop.h: Likewise.
12242         * tests/unicase/test-cased.c: Likewise.
12243         * tests/unicase/test-ignorable.c: Likewise.
12244         * tests/unicase/test-uc_tolower.c: Likewise.
12245         * tests/unicase/test-uc_totitle.c: Likewise.
12246         * tests/unicase/test-uc_toupper.c: Likewise.
12247         * tests/unictype/test-categ_C.c: Likewise.
12248         * tests/unictype/test-categ_Cn.c: Likewise.
12249         * tests/unictype/test-categ_L.c: Likewise.
12250         * tests/unictype/test-categ_Ll.c: Likewise.
12251         * tests/unictype/test-categ_Lm.c: Likewise.
12252         * tests/unictype/test-categ_Lo.c: Likewise.
12253         * tests/unictype/test-categ_Lu.c: Likewise.
12254         * tests/unictype/test-categ_M.c: Likewise.
12255         * tests/unictype/test-categ_Mc.c: Likewise.
12256         * tests/unictype/test-categ_Me.c: Likewise.
12257         * tests/unictype/test-categ_Mn.c: Likewise.
12258         * tests/unictype/test-categ_N.c: Likewise.
12259         * tests/unictype/test-categ_Nd.c: Likewise.
12260         * tests/unictype/test-categ_No.c: Likewise.
12261         * tests/unictype/test-categ_P.c: Likewise.
12262         * tests/unictype/test-categ_Po.c: Likewise.
12263         * tests/unictype/test-categ_S.c: Likewise.
12264         * tests/unictype/test-categ_Sc.c: Likewise.
12265         * tests/unictype/test-categ_Sk.c: Likewise.
12266         * tests/unictype/test-categ_Sm.c: Likewise.
12267         * tests/unictype/test-categ_So.c: Likewise.
12268         * tests/unictype/test-ctype_alnum.c: Likewise.
12269         * tests/unictype/test-ctype_alpha.c: Likewise.
12270         * tests/unictype/test-ctype_graph.c: Likewise.
12271         * tests/unictype/test-ctype_lower.c: Likewise.
12272         * tests/unictype/test-ctype_print.c: Likewise.
12273         * tests/unictype/test-ctype_punct.c: Likewise.
12274         * tests/unictype/test-ctype_upper.c: Likewise.
12275         * tests/unictype/test-decdigit.h: Likewise.
12276         * tests/unictype/test-digit.h: Likewise.
12277         * tests/unictype/test-numeric.h: Likewise.
12278         * tests/unictype/test-pr_alphabetic.c: Likewise.
12279         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12280         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12281         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12282         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12283         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12284         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12285         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12286         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12287         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12288         * tests/unictype/test-pr_cased.c: Likewise.
12289         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12290         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12291         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12292         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12293         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12294         * tests/unictype/test-pr_combining.c: Likewise.
12295         * tests/unictype/test-pr_composite.c: Likewise.
12296         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12297         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12298         * tests/unictype/test-pr_deprecated.c: Likewise.
12299         * tests/unictype/test-pr_format_control.c: Likewise.
12300         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12301         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12302         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12303         * tests/unictype/test-pr_id_continue.c: Likewise.
12304         * tests/unictype/test-pr_id_start.c: Likewise.
12305         * tests/unictype/test-pr_ideographic.c: Likewise.
12306         * tests/unictype/test-pr_lowercase.c: Likewise.
12307         * tests/unictype/test-pr_math.c: Likewise.
12308         * tests/unictype/test-pr_numeric.c: Likewise.
12309         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12310         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12311         * tests/unictype/test-pr_other_math.c: Likewise.
12312         * tests/unictype/test-pr_punctuation.c: Likewise.
12313         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12314         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12315         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12316         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12317         * tests/unictype/test-pr_uppercase.c: Likewise.
12318         * tests/unictype/test-pr_xid_continue.c: Likewise.
12319         * tests/unictype/test-pr_xid_start.c: Likewise.
12320         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12321         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12322         changes.
12323         * lib/unictype/categ_Cc.h: Likewise.
12324         * lib/unictype/categ_Cf.h: Likewise.
12325         * lib/unictype/categ_Co.h: Likewise.
12326         * lib/unictype/categ_Cs.h: Likewise.
12327         * lib/unictype/categ_Lt.h: Likewise.
12328         * lib/unictype/categ_Nl.h: Likewise.
12329         * lib/unictype/categ_Pc.h: Likewise.
12330         * lib/unictype/categ_Pd.h: Likewise.
12331         * lib/unictype/categ_Pe.h: Likewise.
12332         * lib/unictype/categ_Pf.h: Likewise.
12333         * lib/unictype/categ_Pi.h: Likewise.
12334         * lib/unictype/categ_Ps.h: Likewise.
12335         * lib/unictype/categ_Z.h: Likewise.
12336         * lib/unictype/categ_Zl.h: Likewise.
12337         * lib/unictype/categ_Zp.h: Likewise.
12338         * lib/unictype/categ_Zs.h: Likewise.
12339         * lib/unictype/ctype_blank.h: Likewise.
12340         * lib/unictype/ctype_cntrl.h: Likewise.
12341         * lib/unictype/ctype_digit.h: Likewise.
12342         * lib/unictype/ctype_space.h: Likewise.
12343         * lib/unictype/ctype_xdigit.h: Likewise.
12344         * lib/unictype/mirror.h: Likewise.
12345         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12346         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12347         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12348         * lib/unictype/pr_bidi_control.h: Likewise.
12349         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12350         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12351         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12352         * lib/unictype/pr_bidi_pdf.h: Likewise.
12353         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12354         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12355         * lib/unictype/pr_dash.h: Likewise.
12356         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12357         * lib/unictype/pr_diacritic.h: Likewise.
12358         * lib/unictype/pr_extender.h: Likewise.
12359         * lib/unictype/pr_hex_digit.h: Likewise.
12360         * lib/unictype/pr_hyphen.h: Likewise.
12361         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12362         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12363         * lib/unictype/pr_ignorable_control.h: Likewise.
12364         * lib/unictype/pr_iso_control.h: Likewise.
12365         * lib/unictype/pr_join_control.h: Likewise.
12366         * lib/unictype/pr_left_of_pair.h: Likewise.
12367         * lib/unictype/pr_line_separator.h: Likewise.
12368         * lib/unictype/pr_logical_order_exception.h: Likewise.
12369         * lib/unictype/pr_non_break.h: Likewise.
12370         * lib/unictype/pr_not_a_character.h: Likewise.
12371         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12372         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12373         * lib/unictype/pr_other_id_start.h: Likewise.
12374         * lib/unictype/pr_other_lowercase.h: Likewise.
12375         * lib/unictype/pr_other_uppercase.h: Likewise.
12376         * lib/unictype/pr_paired_punctuation.h: Likewise.
12377         * lib/unictype/pr_paragraph_separator.h: Likewise.
12378         * lib/unictype/pr_pattern_syntax.h: Likewise.
12379         * lib/unictype/pr_pattern_white_space.h: Likewise.
12380         * lib/unictype/pr_private_use.h: Likewise.
12381         * lib/unictype/pr_quotation_mark.h: Likewise.
12382         * lib/unictype/pr_radical.h: Likewise.
12383         * lib/unictype/pr_soft_dotted.h: Likewise.
12384         * lib/unictype/pr_space.h: Likewise.
12385         * lib/unictype/pr_titlecase.h: Likewise.
12386         * lib/unictype/pr_variation_selector.h: Likewise.
12387         * lib/unictype/pr_white_space.h: Likewise.
12388         * lib/unictype/pr_zero_width.h: Likewise.
12389         * lib/unictype/sy_c_ident.h: Likewise.
12390         * lib/unictype/sy_c_whitespace.h: Likewise.
12391         * lib/unictype/sy_java_whitespace.h: Likewise.
12392         * lib/uninorm/composition-table.gperf: Likewise.
12393         * lib/uninorm/decomposition-table1.h: Likewise.
12394         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12395         LB8.
12396         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12397         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12398         * modules/unictype/*: Bump version number of expected libunistring
12399         version.
12400
12401 2011-01-09  Bruno Haible  <bruno@clisp.org>
12402
12403         Update to Unicode 5.2.0.
12404         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12405         trailing whitespace removed.
12406
12407 2011-01-09  Bruno Haible  <bruno@clisp.org>
12408
12409         New Unicode character properties, from Unicode 5.2.0.
12410         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12411         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12412         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12413         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12414         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12415         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12416         uc_is_property_cased, uc_is_property_case_ignorable,
12417         uc_is_property_changes_when_lowercased,
12418         uc_is_property_changes_when_uppercased,
12419         uc_is_property_changes_when_titlecased,
12420         uc_is_property_changes_when_casefolded,
12421         uc_is_property_changes_when_casemapped): New declarations.
12422         * lib/unictype/pr_byname.gperf: Add the new properties.
12423         * modules/unictype/property-byname (Depends-on): Depend on the new
12424         properties modules.
12425         * modules/unictype/property-all (Depends-on): Likewise.
12426         * MODULES.html.sh (Unicode string functions): Add
12427         unictype/property-case-ignorable, unictype/property-cased,
12428         unictype/property-changes-when-casefolded,
12429         unictype/property-changes-when-casemapped,
12430         unictype/property-changes-when-lowercased,
12431         unictype/property-changes-when-titlecased,
12432         unictype/property-changes-when-uppercased.
12433
12434         New module 'unictype/property-changes-when-casemapped'.
12435         * modules/unictype/property-changes-when-casemapped: New file.
12436         * lib/unictype/pr_changes_when_casemapped.c: New file.
12437         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12438         generated by gen-uni-tables.
12439         * modules/unictype/property-changes-when-casemapped-tests: New file.
12440         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12441         automatically generated by gen-uni-tables.
12442
12443         New module 'unictype/property-changes-when-casefolded'.
12444         * modules/unictype/property-changes-when-casefolded: New file.
12445         * lib/unictype/pr_changes_when_casefolded.c: New file.
12446         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12447         generated by gen-uni-tables.
12448         * modules/unictype/property-changes-when-casefolded-tests: New file.
12449         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12450         automatically generated by gen-uni-tables.
12451
12452         New module 'unictype/property-changes-when-titlecased'.
12453         * modules/unictype/property-changes-when-titlecased: New file.
12454         * lib/unictype/pr_changes_when_titlecased.c: New file.
12455         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12456         generated by gen-uni-tables.
12457         * modules/unictype/property-changes-when-titlecased-tests: New file.
12458         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12459         automatically generated by gen-uni-tables.
12460
12461         New module 'unictype/property-changes-when-uppercased'.
12462         * modules/unictype/property-changes-when-uppercased: New file.
12463         * lib/unictype/pr_changes_when_uppercased.c: New file.
12464         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12465         generated by gen-uni-tables.
12466         * modules/unictype/property-changes-when-uppercased-tests: New file.
12467         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12468         automatically generated by gen-uni-tables.
12469
12470         New module 'unictype/property-changes-when-lowercased'.
12471         * modules/unictype/property-changes-when-lowercased: New file.
12472         * lib/unictype/pr_changes_when_lowercased.c: New file.
12473         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12474         generated by gen-uni-tables.
12475         * modules/unictype/property-changes-when-lowercased-tests: New file.
12476         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12477         automatically generated by gen-uni-tables.
12478
12479         New module 'unictype/property-case-ignorable'.
12480         * modules/unictype/property-case-ignorable: New file.
12481         * lib/unictype/pr_case_ignorable.c: New file.
12482         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12483         by gen-uni-tables.
12484         * modules/unictype/property-case-ignorable-tests: New file.
12485         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12486         generated by gen-uni-tables.
12487
12488         New module 'unictype/property-cased'.
12489         * modules/unictype/property-cased: New file.
12490         * lib/unictype/pr_cased.c: New file.
12491         * lib/unictype/pr_cased.h: New file, automatically generated by
12492         gen-uni-tables.
12493         * modules/unictype/property-cased-tests: New file.
12494         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12495         gen-uni-tables.
12496
12497 2011-01-09  Bruno Haible  <bruno@clisp.org>
12498
12499         Update to Unicode 5.2.0.
12500         * lib/gen-uni-tables.c (output_predicate, output_category,
12501         output_combclass, output_bidi_category, output_decimal_digit_test,
12502         output_decimal_digit, output_digit_test, output_digit,
12503         output_numeric_test, output_numeric, output_mirror, output_scripts,
12504         output_scripts_byname, output_blocks, output_ident_category): Fix
12505         comment header.
12506         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12507         get_wbp.
12508         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12509         items.
12510         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12511         Changes_When_Lowercased, Changes_When_Uppercased,
12512         Changes_When_Titlecased, Changes_When_Casefolded,
12513         Changes_When_Casemapped.
12514         (is_property_alphabetic, is_property_default_ignorable_code_point):
12515         Update for Unicode 5.2.0.
12516         (is_property_cased, is_property_case_ignorable,
12517         is_property_changes_when_lowercased,
12518         is_property_changes_when_uppercased,
12519         is_property_changes_when_titlecased,
12520         is_property_changes_when_casefolded,
12521         is_property_changes_when_casemapped): New functions.
12522         (output_properties): Output also the properties cased, case_ignorable,
12523         changes_when_lowercased, changes_when_uppercased,
12524         changes_when_titlecased, changes_when_casefolded,
12525         changes_when_casemapped.
12526         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12527         Unicode TR#11 revision 17 -> 19.
12528         (LBP_CP): New enumeration value.
12529         (LBP_*): Adjust values accordingly.
12530         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12531         TR#14 revision 22 -> 24.
12532         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12533         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12534         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12535         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12536         is_WBP_MIDLETTER.
12537         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12538         the code1 and code2 of each composition rule.
12539         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12540         * lib/unicase/ignorable.h: Likewise.
12541         * lib/unicase/tocasefold.h: Likewise.
12542         * lib/unicase/tolower.h: Likewise.
12543         * lib/unicase/totitle.h: Likewise.
12544         * lib/unicase/toupper.h: Likewise.
12545         * lib/unictype/bidi_of.h: Likewise.
12546         * lib/unictype/blocks.h: Likewise.
12547         * lib/unictype/categ_C.h: Likewise.
12548         * lib/unictype/categ_Cf.h: Likewise.
12549         * lib/unictype/categ_Cn.h: Likewise.
12550         * lib/unictype/categ_L.h: Likewise.
12551         * lib/unictype/categ_Ll.h: Likewise.
12552         * lib/unictype/categ_Lm.h: Likewise.
12553         * lib/unictype/categ_Lo.h: Likewise.
12554         * lib/unictype/categ_Lu.h: Likewise.
12555         * lib/unictype/categ_M.h: Likewise.
12556         * lib/unictype/categ_Mc.h: Likewise.
12557         * lib/unictype/categ_Mn.h: Likewise.
12558         * lib/unictype/categ_N.h: Likewise.
12559         * lib/unictype/categ_Nd.h: Likewise.
12560         * lib/unictype/categ_Nl.h: Likewise.
12561         * lib/unictype/categ_No.h: Likewise.
12562         * lib/unictype/categ_P.h: Likewise.
12563         * lib/unictype/categ_Pd.h: Likewise.
12564         * lib/unictype/categ_Po.h: Likewise.
12565         * lib/unictype/categ_S.h: Likewise.
12566         * lib/unictype/categ_Sc.h: Likewise.
12567         * lib/unictype/categ_So.h: Likewise.
12568         * lib/unictype/categ_of.h: Likewise.
12569         * lib/unictype/combining.h: Likewise.
12570         * lib/unictype/ctype_alnum.h: Likewise.
12571         * lib/unictype/ctype_alpha.h: Likewise.
12572         * lib/unictype/ctype_graph.h: Likewise.
12573         * lib/unictype/ctype_lower.h: Likewise.
12574         * lib/unictype/ctype_print.h: Likewise.
12575         * lib/unictype/ctype_punct.h: Likewise.
12576         * lib/unictype/ctype_upper.h: Likewise.
12577         * lib/unictype/decdigit.h: Likewise.
12578         * lib/unictype/digit.h: Likewise.
12579         * lib/unictype/numeric.h: Likewise.
12580         * lib/unictype/pr_alphabetic.h: Likewise.
12581         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12582         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12583         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12584         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12585         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12586         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12587         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12588         * lib/unictype/pr_combining.h: Likewise.
12589         * lib/unictype/pr_composite.h: Likewise.
12590         * lib/unictype/pr_currency_symbol.h: Likewise.
12591         * lib/unictype/pr_dash.h: Likewise.
12592         * lib/unictype/pr_decimal_digit.h: Likewise.
12593         * lib/unictype/pr_deprecated.h: Likewise.
12594         * lib/unictype/pr_diacritic.h: Likewise.
12595         * lib/unictype/pr_extender.h: Likewise.
12596         * lib/unictype/pr_grapheme_base.h: Likewise.
12597         * lib/unictype/pr_grapheme_extend.h: Likewise.
12598         * lib/unictype/pr_grapheme_link.h: Likewise.
12599         * lib/unictype/pr_id_continue.h: Likewise.
12600         * lib/unictype/pr_id_start.h: Likewise.
12601         * lib/unictype/pr_ideographic.h: Likewise.
12602         * lib/unictype/pr_ignorable_control.h: Likewise.
12603         * lib/unictype/pr_logical_order_exception.h: Likewise.
12604         * lib/unictype/pr_lowercase.h: Likewise.
12605         * lib/unictype/pr_numeric.h: Likewise.
12606         * lib/unictype/pr_other_alphabetic.h: Likewise.
12607         * lib/unictype/pr_punctuation.h: Likewise.
12608         * lib/unictype/pr_sentence_terminal.h: Likewise.
12609         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12610         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12611         * lib/unictype/pr_unified_ideograph.h: Likewise.
12612         * lib/unictype/pr_uppercase.h: Likewise.
12613         * lib/unictype/pr_xid_continue.h: Likewise.
12614         * lib/unictype/pr_xid_start.h: Likewise.
12615         * lib/unictype/pr_zero_width.h: Likewise.
12616         * lib/unictype/scripts.h: Likewise.
12617         * lib/unictype/scripts_byname.gperf: Likewise.
12618         * lib/unictype/sy_java_ident.h: Likewise.
12619         * lib/unigbrk/gbrkprop.h: Likewise.
12620         * lib/unilbrk/lbrkprop1.h: Likewise.
12621         * lib/unilbrk/lbrkprop2.h: Likewise.
12622         * lib/unilbrk/lbrktables.h: Likewise.
12623         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12624         LBP_CP. Implement rule LB30.
12625         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12626         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12627         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12628         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12629         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12630         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12631         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12632         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12633         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12634         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12635         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12636         bits instead of 16 bits in the code1 and code2 of each composition
12637         rule.
12638         (uc_composition): Update for Unicode 5.2.0.
12639         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12640         * lib/uninorm/decomposition-table2.h: Likewise.
12641         * lib/uniwbrk/wbrkprop.h: Likewise.
12642         * tests/unicase/test-cased.c: Likewise.
12643         * tests/unicase/test-ignorable.c: Likewise.
12644         * tests/unicase/test-uc_tolower.c: Likewise.
12645         * tests/unicase/test-uc_totitle.c: Likewise.
12646         * tests/unicase/test-uc_toupper.c: Likewise.
12647         * tests/unictype/test-categ_C.c: Likewise.
12648         * tests/unictype/test-categ_Cf.c: Likewise.
12649         * tests/unictype/test-categ_Cn.c: Likewise.
12650         * tests/unictype/test-categ_L.c: Likewise.
12651         * tests/unictype/test-categ_Ll.c: Likewise.
12652         * tests/unictype/test-categ_Lm.c: Likewise.
12653         * tests/unictype/test-categ_Lo.c: Likewise.
12654         * tests/unictype/test-categ_Lu.c: Likewise.
12655         * tests/unictype/test-categ_M.c: Likewise.
12656         * tests/unictype/test-categ_Mc.c: Likewise.
12657         * tests/unictype/test-categ_Mn.c: Likewise.
12658         * tests/unictype/test-categ_N.c: Likewise.
12659         * tests/unictype/test-categ_Nd.c: Likewise.
12660         * tests/unictype/test-categ_Nl.c: Likewise.
12661         * tests/unictype/test-categ_No.c: Likewise.
12662         * tests/unictype/test-categ_P.c: Likewise.
12663         * tests/unictype/test-categ_Pd.c: Likewise.
12664         * tests/unictype/test-categ_Po.c: Likewise.
12665         * tests/unictype/test-categ_S.c: Likewise.
12666         * tests/unictype/test-categ_Sc.c: Likewise.
12667         * tests/unictype/test-categ_So.c: Likewise.
12668         * tests/unictype/test-ctype_alnum.c: Likewise.
12669         * tests/unictype/test-ctype_alpha.c: Likewise.
12670         * tests/unictype/test-ctype_graph.c: Likewise.
12671         * tests/unictype/test-ctype_lower.c: Likewise.
12672         * tests/unictype/test-ctype_print.c: Likewise.
12673         * tests/unictype/test-ctype_punct.c: Likewise.
12674         * tests/unictype/test-ctype_upper.c: Likewise.
12675         * tests/unictype/test-decdigit.h: Likewise.
12676         * tests/unictype/test-digit.h: Likewise.
12677         * tests/unictype/test-numeric.h: Likewise.
12678         * tests/unictype/test-pr_alphabetic.c: Likewise.
12679         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12680         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12681         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12682         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12683         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12684         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12685         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12686         * tests/unictype/test-pr_combining.c: Likewise.
12687         * tests/unictype/test-pr_composite.c: Likewise.
12688         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12689         * tests/unictype/test-pr_dash.c: Likewise.
12690         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12691         * tests/unictype/test-pr_deprecated.c: Likewise.
12692         * tests/unictype/test-pr_diacritic.c: Likewise.
12693         * tests/unictype/test-pr_extender.c: Likewise.
12694         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12695         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12696         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12697         * tests/unictype/test-pr_id_continue.c: Likewise.
12698         * tests/unictype/test-pr_id_start.c: Likewise.
12699         * tests/unictype/test-pr_ideographic.c: Likewise.
12700         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12701         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12702         * tests/unictype/test-pr_lowercase.c: Likewise.
12703         * tests/unictype/test-pr_numeric.c: Likewise.
12704         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12705         * tests/unictype/test-pr_punctuation.c: Likewise.
12706         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12707         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12708         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12709         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12710         * tests/unictype/test-pr_uppercase.c: Likewise.
12711         * tests/unictype/test-pr_xid_continue.c: Likewise.
12712         * tests/unictype/test-pr_xid_start.c: Likewise.
12713         * tests/unictype/test-pr_zero_width.c: Likewise.
12714         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12715         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12716         changed behaviour: line breaking is now disallowed between a letter
12717         or '=' and '('.
12718         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12719         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12720         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12721         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12722         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12723         lib/uniwidth/width.c.
12724         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12725         without comments, but with the original copyright notice.
12726         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12727         changes.
12728         * lib/unictype/categ_Cc.h: Likewise.
12729         * lib/unictype/categ_Co.h: Likewise.
12730         * lib/unictype/categ_Cs.h: Likewise.
12731         * lib/unictype/categ_Lt.h: Likewise.
12732         * lib/unictype/categ_Me.h: Likewise.
12733         * lib/unictype/categ_Pc.h: Likewise.
12734         * lib/unictype/categ_Pe.h: Likewise.
12735         * lib/unictype/categ_Pf.h: Likewise.
12736         * lib/unictype/categ_Pi.h: Likewise.
12737         * lib/unictype/categ_Ps.h: Likewise.
12738         * lib/unictype/categ_Sk.h: Likewise.
12739         * lib/unictype/categ_Sm.h: Likewise.
12740         * lib/unictype/categ_Z.h: Likewise.
12741         * lib/unictype/categ_Zl.h: Likewise.
12742         * lib/unictype/categ_Zp.h: Likewise.
12743         * lib/unictype/categ_Zs.h: Likewise.
12744         * lib/unictype/ctype_blank.h: Likewise.
12745         * lib/unictype/ctype_cntrl.h: Likewise.
12746         * lib/unictype/ctype_digit.h: Likewise.
12747         * lib/unictype/ctype_space.h: Likewise.
12748         * lib/unictype/ctype_xdigit.h: Likewise.
12749         * lib/unictype/mirror.h: Likewise.
12750         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12751         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12752         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12753         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12754         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12755         * lib/unictype/pr_bidi_control.h: Likewise.
12756         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12757         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12758         * lib/unictype/pr_bidi_pdf.h: Likewise.
12759         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12760         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12761         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12762         * lib/unictype/pr_format_control.h: Likewise.
12763         * lib/unictype/pr_hex_digit.h: Likewise.
12764         * lib/unictype/pr_hyphen.h: Likewise.
12765         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12766         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12767         * lib/unictype/pr_iso_control.h: Likewise.
12768         * lib/unictype/pr_join_control.h: Likewise.
12769         * lib/unictype/pr_left_of_pair.h: Likewise.
12770         * lib/unictype/pr_line_separator.h: Likewise.
12771         * lib/unictype/pr_math.h: Likewise.
12772         * lib/unictype/pr_non_break.h: Likewise.
12773         * lib/unictype/pr_not_a_character.h: Likewise.
12774         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12775         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12776         * lib/unictype/pr_other_id_continue.h: Likewise.
12777         * lib/unictype/pr_other_id_start.h: Likewise.
12778         * lib/unictype/pr_other_lowercase.h: Likewise.
12779         * lib/unictype/pr_other_math.h: Likewise.
12780         * lib/unictype/pr_other_uppercase.h: Likewise.
12781         * lib/unictype/pr_paired_punctuation.h: Likewise.
12782         * lib/unictype/pr_paragraph_separator.h: Likewise.
12783         * lib/unictype/pr_pattern_syntax.h: Likewise.
12784         * lib/unictype/pr_pattern_white_space.h: Likewise.
12785         * lib/unictype/pr_private_use.h: Likewise.
12786         * lib/unictype/pr_quotation_mark.h: Likewise.
12787         * lib/unictype/pr_radical.h: Likewise.
12788         * lib/unictype/pr_soft_dotted.h: Likewise.
12789         * lib/unictype/pr_space.h: Likewise.
12790         * lib/unictype/pr_titlecase.h: Likewise.
12791         * lib/unictype/pr_variation_selector.h: Likewise.
12792         * lib/unictype/pr_white_space.h: Likewise.
12793         * lib/unictype/sy_c_ident.h: Likewise.
12794         * lib/unictype/sy_c_whitespace.h: Likewise.
12795         * lib/unictype/sy_java_whitespace.h: Likewise.
12796         * modules/uni*/*: Bump version number of expected libunistring version.
12797         Reported by Simon Josefsson.
12798
12799 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12800
12801         useless-if-before-free: fix typo in --help and make the internal,
12802         automatic version date update process work once again.
12803         --help output contained a NUL character instead of the
12804         backslash-zero that was intended.  Also, the "must lie within
12805         the first 8 lines" line is on line 9, and hence not getting
12806         automatically updated.
12807         * build-aux/useless-if-before-free: Fix the former by adding a
12808         backslash, and the latter by condensing the three lines of what-it-does
12809         to a single line, leaving one line of slack for the future.
12810
12811 2011-01-09  Bruno Haible  <bruno@clisp.org>
12812
12813         uniwidth/width: Fix width of U+1D173..U+1D17A.
12814         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12815         symbolic_width, output_width_property_test): New functions.
12816         (main): Invoke output_nonspacing_property, output_width_property_test.
12817         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12818         U+1D173..U+1D17A.
12819         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12820         1.
12821         * modules/uniwidth/*: Bump version number of expected libunistring
12822         version.
12823         * modules/unilbrk/*: Likewise.
12824
12825 2011-01-08  Bruno Haible  <bruno@clisp.org>
12826
12827         uninorm tests: Preserve copyright of Unicode data file.
12828         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12829         Mention modifications.
12830
12831 2011-01-08  Bruno Haible  <bruno@clisp.org>
12832
12833         gen-uni-tables: Prepare for Unicode 5.2.0.
12834         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12835         (debug_output_lbp, output_lbp): Update.
12836
12837 2011-01-08  Bruno Haible  <bruno@clisp.org>
12838
12839         unilbrk: Clarify gen-uni-tables.c code.
12840         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12841         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12842         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12843
12844 2011-01-07  Bruno Haible  <bruno@clisp.org>
12845
12846         strtod: Restore errno when successfully parsing Infinity or NaN.
12847         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12848         restore the original errno.
12849
12850 2011-01-07  Bruno Haible  <bruno@clisp.org>
12851
12852         remove test: Avoid failure on HP-UX 11.
12853         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12854
12855 2011-01-07  Bruno Haible  <bruno@clisp.org>
12856
12857         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12858         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12859         error code.
12860
12861 2011-01-07  Pádraig Brady <P@draigBrady.com>
12862
12863         ignore-value: fixup comments, and add Eric Blake
12864         as an author since he rewrote the macros.
12865         * lib/ignore-value.h (ignore_value):  State that
12866         we now support aggregates.  Also specify exactly
12867         when the GCC warn_unused_result feature was added.
12868
12869 2011-01-06  Eric Blake  <eblake@redhat.com>
12870
12871         ignore-value: support aggregate types
12872         * lib/ignore-value.h (ignore_value): Provide separate gcc
12873         definition.
12874         * modules/ignore-value-tests: New test module.
12875         * tests/test-ignore-value.c: New test.
12876
12877         maint.mk: improve sc_prohibit_strcmp regex
12878         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12879         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12880         definition of STRNEQ.
12881
12882         signal: work around Haiku issue with SIGBUS
12883         * lib/siglist.h: Add comment.
12884         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12885         strsignal's favoring of SIGSEGV.
12886         * tests/test-signal.c (main): Avoid test failure.
12887         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12888         Reported by Scott McCreary.
12889
12890         maint.mk: add pre-release check to ensure submodule commits are public
12891         * top/maint.mk (public-submodule-commit): New rule.
12892         (submodule-checks): New variable.
12893         (alpha beta stable): Depend on the variable.
12894
12895 2011-01-05  Pádraig Brady <P@draigBrady.com>
12896         and Jim Meyering  <meyering@redhat.com>
12897
12898         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12899         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12900         (ATTRIBUTE_DEPRECATED): Define.
12901         (_ignore_case): New function.
12902         (ignore_value): New macro, to replace the old function.
12903         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12904         * modules/ignore-value (Depends-on): Add stdint.
12905
12906 2011-01-04  Eric Blake  <eblake@redhat.com>
12907
12908         doc: regenerate INSTALL
12909         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12910         @firstparagraphindent support, now that autoconf dropped it.
12911         (INSTALL_PRELUDE): Reinstate old macro.
12912         * doc/install.texi: Resync from autoconf.
12913         * doc/INSTALL: Reflect recent autoconf update.
12914         * doc/INSTALL.ISO: Likewise.
12915         * doc/INSTALL.UTF-8: Likewise.
12916         Reported by Karl Berry.
12917
12918 2011-01-04  Bruce Korb  <address@hidden>
12919
12920         git-version-gen: avoid a sub-shell
12921         * build-aux/git-version-gen: Redirect stderr in `...` via
12922         "exec 2>...", rather than via an added sub-shell.
12923
12924 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12925
12926         git-version-gen: use (...) rather than sh -c '...'
12927         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12928         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12929
12930 2011-01-03  Jim Meyering  <meyering@redhat.com>
12931
12932         git-version-gen: convert leading TABs to spaces
12933         * build-aux/git-version-gen: Expand leading TABs.
12934
12935         git-version-gen: handle failed "git rev-list"
12936         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12937         from git and proceeding as if it had succeeded but printed no SHA1
12938         checksums, suppress the diagnostic and handle the failure.
12939         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12940
12941         git-version-gen: include command name in one more diagnostic
12942         * build-aux/git-version-gen: When the required .tarball-version file
12943         was missing or unreadable, you might see the diagnostic from "cat",
12944         but no trace of the name of the invoking script.  Now, you still see
12945         the diagnostic from cat, but also get one from "git-version-gen: ".
12946         Inspired by a patch from Bruce Korb.
12947
12948         update-copyright: adjust test to match changed code
12949         * tests/test-update-copyright.sh: Change test's expected output
12950         to match new actual output.
12951
12952 2011-01-02  Bruno Haible  <bruno@clisp.org>
12953
12954         getlogin_r: Avoid test failure on HP-UX 11.
12955         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12956         ERANGE when the second argument is zero.
12957         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12958         portability problem.
12959
12960 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12961
12962         * build-aux/update-copyright: doc Simon's changes
12963
12964 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12965
12966         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12967         environment variable.
12968
12969 2011-01-02  Bruno Haible  <bruno@clisp.org>
12970
12971         unigbrk: Avoid gcc warnings.
12972         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12973         unused variable.
12974         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12975         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12976         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12977         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12978         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12979         Change type of first argument to 'const char *'.
12980         (main): Remove unused variable.
12981         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12982         type of first argument to 'const char *'.
12983         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12984         Likewise.
12985         (main): Change type of variable 's'.
12986         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12987         to 'int'.
12988
12989 2011-01-02  Bruno Haible  <bruno@clisp.org>
12990
12991         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12992         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12993         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12994         bug.
12995         * lib/pwrite.c: Undo 2010-12-31 patch.
12996         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12997
12998 2011-01-02  Bruno Haible  <bruno@clisp.org>
12999
13000         pread: Fix test whether it works.
13001         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13002
13003 2011-01-02  Bruno Haible  <bruno@clisp.org>
13004
13005         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13006         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13007         ends in "6". Don't require a specific month name. Try also the locale
13008         names found on HP-UX 11 and Solaris 7.
13009
13010 2011-01-02  Bruno Haible  <bruno@clisp.org>
13011
13012         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13013         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13014         C linkage.
13015         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13016
13017 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13018
13019         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13020         for consistency, since the "cluster" term is not used elsewhere.
13021         * lib/unigbrk.in.h: Update name.
13022         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13023         * lib/unigbrk/u16-grapheme-next.c: Update name.
13024         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13025         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13026         * lib/unigbrk/u32-grapheme-next.c: Update name.
13027         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13028         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13029         * lib/unigbrk/u8-grapheme-next.c: Update name.
13030         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13031         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13032         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13033         Suggested by Bruno Haible.
13034
13035 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13036
13037         Remove module 'u8-grapheme-len' as too redundant with
13038         'u8-grapheme-next'.
13039         * modules/unigbrk/u8-grapheme-len: Delete file.
13040         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13041         * lib/unigbrk.in.h: Remove prototype for deleted function.
13042         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13043         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13044
13045         Remove module 'u16-grapheme-len' as too redundant with
13046         'u16-grapheme-next'.
13047         * modules/unigbrk/u16-grapheme-len: Delete file.
13048         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13049         * lib/unigbrk.in.h: Remove prototype for deleted function.
13050         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13051         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13052
13053         Remove module 'u32-grapheme-len' as too redundant with
13054         'u32-grapheme-next'.
13055         * modules/unigbrk/u32-grapheme-len: Delete file.
13056         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13057         * lib/unigbrk.in.h: Remove prototype for deleted function.
13058         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13059         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13060
13061         Suggested by Bruno Haible.
13062
13063 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13064
13065         * unigbrk.in.h: Fix typo: "ben" => "been".
13066         Reported by Bruno Haible.
13067
13068 2011-01-01  Jim Meyering  <meyering@redhat.com>
13069
13070         maint: update almost all copyright ranges to include 2011
13071         Run the new "make update-copyright" rule.
13072
13073 2011-01-01  Jim Meyering  <meyering@redhat.com>
13074
13075         maint: update-copyright: exempt doc/INSTALL*
13076         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13077         since they are generated.  Suggested by Bruno Haible.
13078
13079 2011-01-01  Jim Meyering  <meyering@redhat.com>
13080
13081         maint: refine the update-copyright rule
13082         * Makefile (update-copyright): Also exclude any file that includes
13083         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13084         code that merely generates the comment.
13085
13086 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13087
13088         New module 'u8-grapheme-len'.
13089         * modules/unigbrk/u8-grapheme-len: New file.
13090         * modules/unigbrk/u8-grapheme-len-tests: New file.
13091         * lib/unigbrk.in.h: Add prototype for new function.
13092         * lib/unigbrk/u8-grapheme-len.c: New file.
13093         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13094
13095         New module 'u16-grapheme-len'.
13096         * modules/unigbrk/u16-grapheme-len: New file.
13097         * modules/unigbrk/u16-grapheme-len-tests: New file.
13098         * lib/unigbrk.in.h: Add prototype for new function.
13099         * lib/unigbrk/u16-grapheme-len.c: New file.
13100         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13101
13102         New module 'u32-grapheme-len'.
13103         * modules/unigbrk/u32-grapheme-len: New file.
13104         * modules/unigbrk/u32-grapheme-len-tests: New file.
13105         * lib/unigbrk.in.h: Add prototype for new function.
13106         * lib/unigbrk/u32-grapheme-len.c: New file.
13107         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13108
13109         New module 'u8-grapheme-next'.
13110         * modules/unigbrk/u8-grapheme-next: New file.
13111         * modules/unigbrk/u8-grapheme-next-tests: New file.
13112         * lib/unigbrk.in.h: Add prototype for new function.
13113         * lib/unigbrk/u8-grapheme-next.c: New file.
13114         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13115
13116         New module 'u16-grapheme-next'.
13117         * modules/unigbrk/u16-grapheme-next: New file.
13118         * modules/unigbrk/u16-grapheme-next-tests: New file.
13119         * lib/unigbrk.in.h: Add prototype for new function.
13120         * lib/unigbrk/u16-grapheme-next.c: New file.
13121         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13122
13123         New module 'u32-grapheme-next'.
13124         * modules/unigbrk/u32-grapheme-next: New file.
13125         * modules/unigbrk/u32-grapheme-next-tests: New file.
13126         * lib/unigbrk.in.h: Add prototype for new function.
13127         * lib/unigbrk/u32-grapheme-next.c: New file.
13128         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13129
13130         New module 'u8-grapheme-prev'.
13131         * modules/unigbrk/u8-grapheme-prev: New file.
13132         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13133         * lib/unigbrk.in.h: Add prototype for new function.
13134         * lib/unigbrk/u8-grapheme-prev.c: New file.
13135         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13136
13137         New module 'u16-grapheme-prev'.
13138         * modules/unigbrk/u16-grapheme-prev: New file.
13139         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13140         * lib/unigbrk.in.h: Add prototype for new function.
13141         * lib/unigbrk/u16-grapheme-prev.c: New file.
13142         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13143
13144         New module 'u32-grapheme-prev'.
13145         * modules/unigbrk/u32-grapheme-prev: New file.
13146         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13147         * lib/unigbrk.in.h: Add prototype for new function.
13148         * lib/unigbrk/u32-grapheme-prev.c: New file.
13149         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13150
13151         New module 'u8-grapheme-breaks'.
13152         * modules/unigbrk/u8-grapheme-breaks: New file.
13153         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13154         * lib/unigbrk.in.h: Add prototype for new function.
13155         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13156         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13157
13158         New module 'u16-grapheme-breaks'.
13159         * modules/unigbrk/u16-grapheme-breaks: New file.
13160         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13161         * lib/unigbrk.in.h: Add prototype for new function.
13162         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13163         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13164
13165         New module 'u32-grapheme-breaks'.
13166         * modules/unigbrk/u32-grapheme-breaks: New file.
13167         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13168         * lib/unigbrk.in.h: Add prototype for new function.
13169         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13170         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13171
13172         New module 'ulc-grapheme-breaks'.
13173         * modules/unigbrk/ulc-grapheme-breaks: New file.
13174         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13175         * m4/locale-ar.m4: New file.
13176         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13177         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13178         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13179
13180 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13181
13182         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13183         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13184         modified how this file was generated before I initially submitted
13185         the module, but failed to regenerate it.  This meant that several
13186         of the level2 entries were wrong.
13187         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13188         Remove the division-by-2 that is folded into the table now that
13189         gbrkprop.h has been regenerated properly.  Now -1 entries are
13190         handled correctly.
13191
13192         New module 'unigbrk/uc-gbrk-prop-tests'.
13193         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13194         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13195         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13196         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13197
13198 2011-01-01  Bruno Haible  <bruno@clisp.org>
13199
13200         Avoid use of hexadecimal escapes.
13201         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13202         instead of hexadecimal escapes.
13203
13204 2011-01-01  Jim Meyering  <meyering@redhat.com>
13205
13206         maint: new rule to update copyright year ranges
13207         * Makefile (update-copyright): New rule.
13208
13209         maint: indent with TABs in Makefile
13210         * Makefile: Expand leading sequences of spaces to TABs
13211
13212         version-etc: update the copyright year it reports
13213         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13214
13215 2010-12-31  Bruno Haible  <bruno@clisp.org>
13216
13217         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13218         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13219         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13220         zero.
13221
13222 2010-12-31  Bruno Haible  <bruno@clisp.org>
13223
13224         pwrite: Work around HP-UX 11.11 bug.
13225         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13226         works and set REPLACE_PWRITE if not.
13227         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13228         function.
13229         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13230
13231 2010-12-31  Bruno Haible  <bruno@clisp.org>
13232
13233         pread: Work around HP-UX 11 bugs.
13234         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13235         and set REPLACE_PREAD if not.
13236         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13237
13238 2010-12-31  Eric Blake  <eblake@redhat.com>
13239
13240         nl_langinfo: fix YESEXPR on Irix 6.5
13241         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13242         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13243         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13244         it.
13245
13246 2010-12-31  Bruno Haible  <bruno@clisp.org>
13247
13248         iconv: Document HP-UX 11 bug.
13249         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13250
13251 2010-12-31  Bruno Haible  <bruno@clisp.org>
13252
13253         ldexpl: Fix link error on HP-UX 11.
13254         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13255         LDEXPL_LIBM, using $ISNANL_LIBM.
13256
13257 2010-12-31  Eric Blake  <eblake@redhat.com>
13258
13259         ftello: avoid compilation failure with SunStudio c89
13260         * lib/ftello.c (ftello): Use lseek, not llseek.
13261
13262         tests: avoid failing coreutils tests on cygwin
13263         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13264         (create_exe_shims_): Return 0 when skipping.
13265
13266 2010-12-31  Bruno Haible  <bruno@clisp.org>
13267
13268         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13269         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13270
13271 2010-12-31  Bruno Haible  <bruno@clisp.org>
13272
13273         waitpid: Fix link error in C++ mode.
13274         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13275
13276 2010-12-31  Bruno Haible  <bruno@clisp.org>
13277
13278         isnan: Use GCC built-ins when possible.
13279         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13280         __builtin_isnan.
13281         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13282         (isnan): Define using GCC built-ins for GCC >= 4.0.
13283
13284 2010-12-31  Bruno Haible  <bruno@clisp.org>
13285
13286         isnand: Fix mistake.
13287         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13288         __builtin_isnand.
13289
13290 2010-12-31  Bruno Haible  <bruno@clisp.org>
13291
13292         open: Avoid C++ error on HP-UX 11.
13293         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13294
13295 2010-12-31  Bruno Haible  <bruno@clisp.org>
13296
13297         time_r: Add missing declarations on HP-UX 11.
13298         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13299         instead of HAVE_LOCALTIME_R.
13300         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13301         HAVE_LOCALTIME_R always.
13302         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13303         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13304         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13305         HAVE_LOCALTIME_R.
13306         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13307         * doc/posix-functions/localtime_r.texi: Likewise.
13308
13309 2010-12-29  Eric Blake  <eblake@redhat.com>
13310
13311         mountlist: tweak previous commit
13312         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13313         Reported by Paul Eggert.
13314
13315         mountlist: fix local drive detection on cygwin
13316         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13317         that works for cygwin.
13318
13319 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13320
13321         ftoastr, snprintf: ftoastr + snprintf module
13322         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13323         since the snprintf module now should be good enough here.
13324         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13325         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13326         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13327         GNULIB_SNPRINTF only for the test directory, and the latter
13328         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13329         seems to suffice by itself.
13330
13331 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13332
13333         alloca: one step towards thread-safety
13334         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13335         need for a static variable.  All callers changed.  This does not
13336         make the alloca replacement thread-safe, but it's one step.
13337
13338         tests: minor indenting change
13339         * tests/init.sh: Sync from coreutils housekeeping patch
13340         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13341         to keep lines within 80 columns.
13342
13343 2010-12-28  Jim Meyering  <meyering@redhat.com>
13344
13345         regex: don't infloop on persistent failing calloc
13346         * lib/regexec.c (build_trtable): Return failure indication upon
13347         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13348         In glibc, this was fixed for version 2.13:
13349         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13350
13351 2010-12-28  Bruno Haible  <bruno@clisp.org>
13352             Paul Eggert <eggert@cs.ucla.edu>
13353
13354         linkat: Make implementation robust against system behaviour variations.
13355         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13356         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13357         way, and to -2 if it needs a generic runtime test.
13358         * lib/linkat.c (solaris_optimized_link_immediate,
13359         solaris_optimized_link_follow): New functions.
13360         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13361         (check_same_link): Use it.
13362
13363 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13364
13365         New module 'unigbrk/base'.
13366         * modules/unigbrk/base: New file.
13367         * lib/unigbrk.in.h: New file.
13368
13369         New module 'unigbrk/uc-gbrk-prop'.
13370         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13371         * modules/unigbrk/uc-gbrk-prop: New file.
13372         * lib/unigbrk/gbrkprop.h: New file.
13373         * lib/unigbrk/uc-gbrk-prop.c: New file.
13374
13375         New module 'unigbrk/uc-is-grapheme-break'.
13376         * modules/unigbrk/uc-is-grapheme-break: New file.
13377         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13378         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13379         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13380         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13381         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13382
13383         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13384
13385 2010-12-27  Bruno Haible  <bruno@clisp.org>
13386
13387         linkat test: Avoid failure on Solaris 11 2010-11.
13388         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13389
13390 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13391
13392         utimens: work around glibc rounding bug on more platforms
13393         * lib/utimens.c (fdutimens): Work around rounding bug even if
13394         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13395         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13396
13397 2010-12-27  Bruno Haible  <bruno@clisp.org>
13398
13399         select tests: Improve comments.
13400         * tests/test-select.c (do_select): Add comments.
13401
13402 2010-12-27  Bruno Haible  <bruno@clisp.org>
13403
13404         select tests: Safer way of handling timeout.
13405         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13406         at every invocation.
13407
13408 2010-12-27  Bruno Haible  <bruno@clisp.org>
13409
13410         select tests: Use 'bool' where appropriate.
13411         * tests/test-select.c (connect_to_socket): Change argument type to
13412         'bool'.
13413
13414 2010-12-27  Bruno Haible  <bruno@clisp.org>
13415
13416         select tests: Use existing modules.
13417         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13418         (configure.ac): Don't test for unistd.h.
13419         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13420         declared in <unistd.h>.
13421
13422 2010-12-27  Bruno Haible  <bruno@clisp.org>
13423
13424         mbrtowc: Work around a Solaris 7 bug.
13425         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13426         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13427         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13428         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13429         MBRTOWC_NULL_ARG1_BUG.
13430         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13431         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13432         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13433         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13434
13435 2010-12-27  Jim Meyering  <meyering@redhat.com>
13436
13437         read-file.c: tweak syntax
13438         * lib/read-file.c (fread_file): Remove space after "*" in function
13439         definitions.
13440
13441 2010-12-27  Bruno Haible  <bruno@clisp.org>
13442
13443         times test: Avoid gcc warnings on OSF/1.
13444         * tests/test-times.c (main): Cast printf arguments from clock_t to
13445         'long int'.
13446
13447 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13448
13449         utimens: work around glibc rounding bug on older Linux kernels
13450         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13451         on Linux with a glibc whose utimes might not work, then work
13452         around a longstanding glibc bug involving rounding rather than
13453         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13455
13456 2010-12-26  Bruno Haible  <bruno@clisp.org>
13457
13458         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13459         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13460         _GL_CXXALIAS_SYS.
13461         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13462
13463 2010-12-26  Bruno Haible  <bruno@clisp.org>
13464
13465         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13466         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13467         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13468         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13469         looking for the declaration.
13470         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13471         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13472         problem.
13473         * doc/posix-functions/inet_pton.texi: Likewise.
13474
13475 2010-12-26  Bruno Haible  <bruno@clisp.org>
13476
13477         arpa_inet: Use the common idioms with C++ support.
13478         * lib/arpa_inet.in.h: Include c++defs.h.
13479         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13480         support.
13481         * modules/arpa_inet (Depends-on): Add c++defs.
13482         (Makefile.am): Substitute the contents of c++defs.h.
13483         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13484         * modules/arpa_inet-c++-tests: New file.
13485         * tests/test-arpa_inet-c++.cc: New file.
13486
13487 2010-12-25  Bruno Haible  <bruno@clisp.org>
13488
13489         Fix more C++ link errors on Solaris 8.
13490         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13491         $(LIB_EACCESS).
13492         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13493         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13494         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13495         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13496         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13497
13498 2010-12-25  Bruno Haible  <bruno@clisp.org>
13499
13500         printf-posix: Fix link error when a non-GCC compiler is used.
13501         * lib/stdio.in.h (printf): When not using GCC, override printf
13502         correctly.
13503         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13504
13505 2010-12-25  Bruno Haible  <bruno@clisp.org>
13506
13507         strerror_r-posix: Update doc.
13508         * doc/posix-functions/strerror_r.texi: Update doc about the return
13509         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13510
13511 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13512
13513         utimens: simplify the logic of the previous change
13514         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13515         This should not affect whether the test succeeds or fails.
13516
13517         utimens: configure better on hosts with NFS clock skew
13518         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13519         uses the clock of the local host.  It might use the clock of the
13520         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13521         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13522
13523 2010-12-25  Bruno Haible  <bruno@clisp.org>
13524
13525         ptsname test: Avoid failure on Solaris.
13526         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13527         open a pseudo-terminal; don't use BSD-style ptys.
13528         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13529
13530 2010-12-25  Bruno Haible  <bruno@clisp.org>
13531
13532         ptsname: Avoid ERANGE failure on some systems.
13533         * lib/ptsname.c (buffer): Increase size.
13534
13535 2010-12-25  Bruno Haible  <bruno@clisp.org>
13536
13537         rename, renameat: Avoid test failures at NFS mounted locations.
13538         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13539         so that subsequent mkdir calls succeed.
13540
13541 2010-12-25  Bruno Haible  <bruno@clisp.org>
13542
13543         iswblank: Fix C++ link error on Solaris 8.
13544         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13545         _GL_FUNCDECL_SYS.
13546
13547 2010-12-25  Bruno Haible  <bruno@clisp.org>
13548
13549         unistd: Fix C++ link error on Solaris 8.
13550         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13551
13552 2010-12-25  Bruno Haible  <bruno@clisp.org>
13553
13554         readlink doc: Mention an old glibc bug.
13555         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13556
13557 2010-12-25  Bruno Haible  <bruno@clisp.org>
13558
13559         fcntl-h: Fix for use of C++ on glibc systems.
13560         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13561         also on glibc systems in C++ mode.
13562         Reported by Gary V. Vaughan <gary@gnu.org>.
13563
13564 2010-12-25  Bruno Haible  <bruno@clisp.org>
13565
13566         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13567         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13568
13569 2010-12-25  Bruno Haible  <bruno@clisp.org>
13570
13571         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13572         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13573         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13574         test whether truncl works according to ISO C 99 with IEC 60559.
13575         * m4/truncl-ieee.m4: New file.
13576         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13577         m4/signbit.m4.
13578         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13579
13580 2010-12-25  Bruno Haible  <bruno@clisp.org>
13581
13582         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13583         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13584         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13585         test whether ceill works according to ISO C 99 with IEC 60559.
13586         * m4/ceill-ieee.m4: New file.
13587         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13588         m4/signbit.m4.
13589         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13590
13591 2010-12-25  Bruno Haible  <bruno@clisp.org>
13592
13593         Ensure all prerequisites of <wchar.h> are included.
13594         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13595         before <wchar.h>.
13596         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13597         gl_MBRLEN_NUL_RETVAL): Likewise.
13598         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13599         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13600         AC_FUNC_MBRTOWC): Likewise.
13601         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13602         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13603         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13604         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13605         Likewise.
13606         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13607         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13608         (gl_WCHAR_H): Improve comments.
13609         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13610
13611 2010-12-25  Bruno Haible  <bruno@clisp.org>
13612
13613         strtok_r: Fix C syntax error in autoconf macro.
13614         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13615         characters in test program.
13616
13617 2010-12-24  Bruno Haible  <bruno@clisp.org>
13618
13619         ceil, trunc, round: Fix gcc warnings.
13620         * lib/ceil.c (MIN): Undefine before redefining.
13621         * lib/trunc.c (MIN): Likewise.
13622         * lib/round.c (MIN): Likewise.
13623         Include <math.h> first.
13624
13625 2010-12-24  Bruno Haible  <bruno@clisp.org>
13626
13627         select tests: Avoid failures on OSF/1 5.1.
13628         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13629         failure of closing the last socket; it may fail with ECONNRESET.
13630
13631 2010-12-24  Eric Blake  <eblake@redhat.com>
13632
13633         stdint: avoid HP-UX 10.20 preprocessor bug
13634         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13635         than #if.
13636         * tests/test-floor2.c (main): Likewise.
13637         Reported by Peter O'Gorman.
13638
13639         pipe: make obsoletion transition easier
13640         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13641         * modules/pipe (Files): Include revived file.
13642         (Include): Drop reference, to mirror getdate's behavior.
13643
13644 2010-12-24  Bruno Haible  <bruno@clisp.org>
13645
13646         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13647         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13648         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13649         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13650
13651 2010-12-24  Bruno Haible  <bruno@clisp.org>
13652
13653         gethostname: Ensure declaration on NonStop Kernel.
13654         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13655         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13656
13657 2010-12-24  Bruno Haible  <bruno@clisp.org>
13658
13659         sys_select: Ensure all necessary types on NonStop Kernel.
13660         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13661         include <sys/time.h>.
13662         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13663         NonStop Kernel.
13664         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13665
13666 2010-12-24  Bruno Haible  <bruno@clisp.org>
13667
13668         sys_select: Remove unneeded include.
13669         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13670         have <sys/select.h>.
13671
13672 2010-12-24  Bruno Haible  <bruno@clisp.org>
13673
13674         gethostname: Provide a fallback for HOST_NAME_MAX.
13675         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13676         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13677         instead.
13678         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13679
13680 2010-12-24  Bruno Haible  <bruno@clisp.org>
13681
13682         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13683         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13684         (SA_RESTART): Likewise.
13685         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13686
13687 2010-12-24  Bruno Haible  <bruno@clisp.org>
13688
13689         signal: Define NSIG.
13690         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13691         * tests/test-signal.c (nsig): New variable.
13692         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13693
13694 2010-12-24  Bruno Haible  <bruno@clisp.org>
13695
13696         rename, renameat: Avoid test failures on OSF/1 5.1.
13697         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13698         alternative error codes.
13699         * tests/test-renameat.c (main): Likewise.
13700
13701 2010-12-24  Bruno Haible  <bruno@clisp.org>
13702
13703         *printf: Detect large precisions bug on Solaris 10/SPARC.
13704         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13705         by Paul Eggert.
13706         * tests/test-snprintf-posix.h (test_function): Add this test code here
13707         too.
13708         * tests/test-sprintf-posix.h (test_function): Likewise.
13709         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13710         * tests/test-vasprintf-posix.c (test_function): Likewise.
13711         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13712         around by gnulib.
13713         * doc/posix-functions/printf.texi: Likewise.
13714         * doc/posix-functions/snprintf.texi: Likewise.
13715         * doc/posix-functions/sprintf.texi: Likewise.
13716         * doc/posix-functions/vfprintf.texi: Likewise.
13717         * doc/posix-functions/vprintf.texi: Likewise.
13718         * doc/posix-functions/vsnprintf.texi: Likewise.
13719         * doc/posix-functions/vsprintf.texi: Likewise.
13720         * doc/posix-functions/dprintf.texi: Undo last commit.
13721         * doc/posix-functions/vdprintf.texi: Likewise.
13722
13723 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13724
13725         tests: port test-fdutimensat.c to Solaris 8
13726         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13727         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13728         On Solaris 8, it fails with errno == ENOSYS, because there is no
13729         futimens (so it can't use the fd), and there is no lutimens (so it
13730         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13731
13732         vsnprintf: make more consistent with snprintf; doc fixes
13733
13734         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13735         the byte count return problem was promoted from the snprintf-posix
13736         to the snprintf module.
13737         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13738         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13739         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13740         * tests/test-snprintf.c (main): Check the byte count returned.
13741         * tests/test-vsnprintf.c (main): Likewise.
13742
13743 2010-12-23  Eric Blake  <eblake@redhat.com>
13744
13745         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13746         * modules/sigpipe (License): Relax license.
13747
13748 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13749
13750         doc: document Solaris printf bug with large float precisions
13751         * doc/posix-functions/dprintf.texi (dprintf):
13752         * doc/posix-functions/fprintf.texi (fprintf):
13753         * doc/posix-functions/printf.texi (printf):
13754         * doc/posix-functions/snprintf.texi (snprintf):
13755         * doc/posix-functions/sprintf.texi (sprintf):
13756         * doc/posix-functions/vdprintf.texi (vdprintf):
13757         * doc/posix-functions/vfprintf.texi (vfprintf):
13758         * doc/posix-functions/vprintf.texi (vprintf):
13759         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13760         * doc/posix-functions/vsprintf.texi (vsprintf):
13761         Mention that these functions mishandle large floating point
13762         precisions on Solaris 10.  The same bug is also present in Solaris
13763         8, and I assume earlier.  This causes "cd gnulib-tests; make
13764         check" to fail on Solaris 8 (and I assume, later) when building
13765         the latest coreutils, in test-vasprintf-posix's call to
13766         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13767         the wide flavors (e.g., wprintf) so this patch just updates the
13768         documentation for the narrow ones.
13769
13770         test-posixtm.c: add two tests
13771         * tests/test-posixtm.c: Add two tests, to highlight the
13772         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13773         around this bug; this is merely to document it.
13774
13775 2010-12-22  Bruno Haible  <bruno@clisp.org>
13776
13777         getlogin_r: Work around portability problem on OSF/1.
13778         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13779         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13780         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13781         test for a truncated result.
13782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13783         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13784         * modules/getlogin_r (Depends-on): Add memchr.
13785         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13786
13787 2010-12-22  Bruno Haible  <bruno@clisp.org>
13788
13789         ptsname: Avoid test failure on OSF/1 5.1.
13790         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13791         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13792         (same_slave): New function.
13793         (main): Use it to compare ptsname's result with the expected file name.
13794
13795 2010-12-22  Bruno Haible  <bruno@clisp.org>
13796
13797         Port extended stdio modules to HP NonStop Kernel.
13798         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13799         macros.
13800         * lib/fbufmode.c: Update comments.
13801         * lib/fflush.c: Likewise.
13802         * lib/fpurge.c: Likewise.
13803         * lib/freadable.c: Likewise.
13804         * lib/freadahead.c: Likewise.
13805         * lib/freading.c: Likewise.
13806         * lib/freadptr.c: Likewise.
13807         * lib/freadseek.c: Likewise.
13808         * lib/fseeko.c: Likewise.
13809         * lib/fseterr.c: Likewise.
13810         * lib/fwritable.c: Likewise.
13811         * lib/fwriting.c: Likewise.
13812         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13813
13814 2010-12-22  Bruno Haible  <bruno@clisp.org>
13815
13816         ttyname_r: Work around bug on OSF/1 5.1.
13817         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13818         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13819         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13820         present.
13821         * lib/ttyname_r.c (ttyname_r): Update comments.
13822
13823 2010-12-22  Bruno Haible  <bruno@clisp.org>
13824
13825         round: Implement result sign according to IEEE 754.
13826         * lib/round.c (MIN, MINUS_ZERO): New macros.
13827         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13828         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13829         * tests/test-round-ieee.c (main): Likewise.
13830         * tests/test-roundl-ieee.c (main): Likewise.
13831
13832         trunc: Implement result sign according to IEEE 754.
13833         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13834         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13835         * tests/test-trunc2.c: Include minus-zero.h.
13836         (MINUS_ZERO): New macro.
13837         (trunc_reference): Keep in sync with lib/trunc.c.
13838         * tests/test-truncf2.c: Include minus-zero.h.
13839         (MINUS_ZERO): New macro.
13840         (truncf_reference): Keep in sync with lib/trunc.c.
13841         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13842         * tests/test-trunc-ieee.c (main): Likewise.
13843         * tests/test-truncl-ieee.c (main): Likewise.
13844
13845         ceil: Implement result sign according to IEEE 754.
13846         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13847         (FUNC): Return -0.0 for -1 < x < 0.
13848         * tests/test-ceil2.c: Include minus-zero.h.
13849         (MINUS_ZERO): New macro.
13850         (ceil_reference): Keep in sync with lib/ceil.c.
13851         * tests/test-ceilf2.c: Include minus-zero.h.
13852         (MINUS_ZERO): New macro.
13853         (ceilf_reference): Keep in sync with lib/ceil.c.
13854         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13855         * tests/test-ceil-ieee.c (main): Likewise.
13856         * tests/test-ceill-ieee.c (main): Likewise.
13857
13858         floor: Implement result sign according to IEEE 754.
13859         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13860         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13861         * tests/test-floorf2.c (floorf_reference): Likewise.
13862         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13863         * tests/test-floor-ieee.c (main): Likewise.
13864         * tests/test-floorl-ieee.c (main): Likewise.
13865
13866 2010-12-22  Bruno Haible  <bruno@clisp.org>
13867
13868         getaddrinfo: Update doc.
13869         * doc/posix-functions/gai_strerror.texi: Return type is also different
13870         on AIX and HP-UX.
13871
13872 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13873
13874         getaddrinfo, inet_ntop: Update doc for Solaris.
13875         * doc/posix-functions/gai_strerror.texi: Return type is also an
13876         issue on Solaris 9 and earlier.
13877         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13878         on Solaris 10 and earlier.
13879
13880 2010-12-21  Bruno Haible  <bruno@clisp.org>
13881
13882         New module 'roundl-ieee'.
13883         * modules/roundl-ieee: New file.
13884         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13885         test whether roundl works according to ISO C 99 with IEC 60559.
13886         * m4/roundl-ieee.m4: New file.
13887         * modules/roundl-ieee-tests: New file.
13888         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13889         * tests/test-roundl.c (main): Remove signbit tests.
13890         * modules/roundl-tests (Depends-on): Remove signbit.
13891         * doc/posix-functions/roundl.texi: Mention the new module.
13892
13893 2010-12-21  Bruno Haible  <bruno@clisp.org>
13894
13895         New module 'truncl-ieee'.
13896         * modules/truncl-ieee: New file.
13897         * modules/truncl-ieee-tests: New file.
13898         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13899         * tests/test-truncl.c (main): Remove signbit tests.
13900         * modules/truncl-tests (Depends-on): Remove signbit.
13901         * doc/posix-functions/truncl.texi: Mention the new module.
13902
13903 2010-12-21  Bruno Haible  <bruno@clisp.org>
13904
13905         New module 'ceill-ieee'.
13906         * modules/ceill-ieee: New file.
13907         * modules/ceill-ieee-tests: New file.
13908         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13909         * tests/test-ceill.c (main): Remove signbit tests.
13910         * modules/ceill-tests (Depends-on): Remove signbit.
13911         * doc/posix-functions/ceill.texi: Mention the new module.
13912
13913 2010-12-21  Bruno Haible  <bruno@clisp.org>
13914
13915         New module 'floorl-ieee'.
13916         * modules/floorl-ieee: New file.
13917         * modules/floorl-ieee-tests: New file.
13918         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13919         * tests/test-floorl.c (main): Remove signbit tests.
13920         * modules/floorl-tests (Depends-on): Remove signbit.
13921         * doc/posix-functions/floorl.texi: Mention the new module.
13922
13923 2010-12-21  Bruno Haible  <bruno@clisp.org>
13924
13925         New module 'round-ieee'.
13926         * modules/round-ieee: New file.
13927         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13928         whether round works according to ISO C 99 with IEC 60559.
13929         * m4/round-ieee.m4: New file.
13930         * modules/round-ieee-tests: New file.
13931         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13932         * tests/test-round1.c (main): Remove signbit tests.
13933         * modules/round-tests (Depends-on): Remove 'signbit'.
13934         * doc/posix-functions/round.texi: Mention the new module.
13935
13936 2010-12-21  Bruno Haible  <bruno@clisp.org>
13937
13938         New module 'trunc-ieee'.
13939         * modules/trunc-ieee: New file.
13940         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13941         whether trunc works according to ISO C 99 with IEC 60559.
13942         * m4/trunc-ieee.m4: New file.
13943         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13945         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13946         * modules/trunc-ieee-tests: New file.
13947         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13948         * tests/test-trunc1.c (main): Remove signbit tests.
13949         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13950         * doc/posix-functions/trunc.texi: Mention the new module.
13951
13952 2010-12-21  Bruno Haible  <bruno@clisp.org>
13953
13954         New module 'ceil-ieee'.
13955         * modules/ceil-ieee: New file.
13956         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13957         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13958         ISO C 99 with IEC 60559.
13959         * m4/ceil-ieee.m4: New file.
13960         * modules/ceil (Files): Add lib/ceil.c.
13961         (Depends-on): Add 'float'.
13962         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13963         * lib/math.in.h (ceil): New declaration.
13964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13965         REPLACE_CEIL.
13966         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13967         * modules/ceil-ieee-tests: New file.
13968         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13969         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13970         * doc/posix-functions/ceil.texi: Mention the new module.
13971
13972 2010-12-21  Bruno Haible  <bruno@clisp.org>
13973
13974         New module 'floor-ieee'.
13975         * modules/floor-ieee: New file.
13976         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13977         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13978         ISO C 99 with IEC 60559.
13979         * m4/floor-ieee.m4: New file.
13980         * modules/floor (Files): Add lib/floor.c.
13981         (Depends-on): Add 'float'.
13982         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13983         * lib/math.in.h (floor): New declaration.
13984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13985         REPLACE_FLOOR.
13986         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13987         * modules/floor-ieee-tests: New file.
13988         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13989         * tests/test-math-c++.cc: Check the signature of 'floor'.
13990         * doc/posix-functions/floor.texi: Mention the new module.
13991
13992 2010-12-21  Bruno Haible  <bruno@clisp.org>
13993
13994         New module 'roundf-ieee'.
13995         * modules/roundf-ieee: New file.
13996         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13997         test whether roundf works according to ISO C 99 with IEC 60559.
13998         * m4/roundf-ieee.m4: New file.
13999         * modules/roundf-ieee-tests: New file.
14000         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14001         * tests/test-roundf1.c (main): Remove signbit tests.
14002         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14003         * doc/posix-functions/roundf.texi: Mention the new module.
14004
14005 2010-12-21  Bruno Haible  <bruno@clisp.org>
14006
14007         New module 'truncf-ieee'.
14008         * modules/truncf-ieee: New file.
14009         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14010         test whether truncf works according to ISO C 99 with IEC 60559.
14011         * m4/truncf-ieee.m4: New file.
14012         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14014         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14015         * modules/truncf-ieee-tests: New file.
14016         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14017         * tests/test-truncf1.c (main): Remove signbit tests.
14018         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14019         * doc/posix-functions/truncf.texi: Mention the new module.
14020
14021 2010-12-21  Bruno Haible  <bruno@clisp.org>
14022
14023         New module 'ceilf-ieee'.
14024         * modules/ceilf-ieee: New file.
14025         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14026         test whether ceilf works according to ISO C 99 with IEC 60559.
14027         * m4/ceilf-ieee.m4: New file.
14028         * modules/ceilf-ieee-tests: New file.
14029         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14030         * tests/test-ceilf1.c (main): Remove signbit tests.
14031         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14032         * doc/posix-functions/ceilf.texi: Mention the new module.
14033
14034 2010-12-21  Bruno Haible  <bruno@clisp.org>
14035
14036         New module 'floorf-ieee'.
14037         * modules/floorf-ieee: New file.
14038         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14039         test whether floorf works according to ISO C 99 with IEC 60559.
14040         * m4/floorf-ieee.m4: New file.
14041         * modules/floorf-ieee-tests: New file.
14042         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14043         * tests/test-floorf1.c (main): Remove signbit tests.
14044         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14045         * doc/posix-functions/floorf.texi: Mention the new module.
14046
14047 2010-12-21  Bruno Haible  <bruno@clisp.org>
14048
14049         Support for minus zero in autoconf macros.
14050         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14051         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14052         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14053         * tests/minus-zero.h: Update comments.
14054
14055 2010-12-21  Bruno Haible  <bruno@clisp.org>
14056
14057         Tests for module 'ceil'.
14058         * modules/ceil-tests: New file.
14059         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14060         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14061
14062 2010-12-21  Bruno Haible  <bruno@clisp.org>
14063
14064         Tests for module 'floor'.
14065         * modules/floor-tests: New file.
14066         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14067         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14068
14069 2010-12-21  Bruno Haible  <bruno@clisp.org>
14070
14071         math: Fix indentation.
14072         * lib/math.in.h (floorf): Fix indentation.
14073
14074 2010-12-21  Bruno Haible  <bruno@clisp.org>
14075
14076         Fix cross-compilation guesses on Solaris.
14077         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14078         not match "solaris2.10".
14079         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14080         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14081         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14082
14083 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14084
14085         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14086         This fixes a problem observed with the latest coreutils snapshot
14087         that caused a test to fail on Solaris 8.  src/csplit.c's call
14088         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14089         earlier, instead of returning the number of bytes that would have
14090         been generated; this causes csplit to incorrectly report memory
14091         exhaustion.
14092         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14093         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14094         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14095         comments to match.
14096         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14097         Fix typo in matching older versions of Solaris: "solaris2.10"
14098         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14099         only for guessing while cross-compiling.
14100         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14101
14102 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14103
14104         ftoastr: fix comment again
14105         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14106         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14107         Also, simplify example a bit by using flags = 0.
14108
14109 2010-12-20  Bruno Haible  <bruno@clisp.org>
14110
14111         round*, trunc*: Update documentation regarding glibc.
14112         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14113         * doc/posix-functions/round.texi: Likewise.
14114         * doc/posix-functions/roundl.texi: Likewise.
14115         * doc/posix-functions/truncf.texi: Likewise.
14116         * doc/posix-functions/trunc.texi: Likewise.
14117         * doc/posix-functions/truncl.texi: Likewise.
14118
14119 2010-12-20  Bruno Haible  <bruno@clisp.org>
14120
14121         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14122         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14123         * doc/posix-functions/round.texi: Likewise.
14124         * doc/posix-functions/roundl.texi: Likewise.
14125
14126 2010-12-20  Bruno Haible  <bruno@clisp.org>
14127
14128         ttyname_r: Add missing declaration on HP-UX 11.
14129         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14130         HAVE_TTYNAME_R.
14131         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14132         declared. Set HAVE_TTYNAME_R always.
14133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14134         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14135         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14136         HAVE_TTYNAME_R.
14137         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14138
14139 2010-12-20  Bruno Haible  <bruno@clisp.org>
14140
14141         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14142         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14143         * doc/posix-functions/getlogin_r.texi: Likewise.
14144         * tests/test-getlogin.c: Include <errno.h>.
14145         (main): Avoid test failure on HP-UX 11.11.
14146         * tests/test-getlogin_r.c (main): Likewise.
14147
14148 2010-12-20  Bruno Haible  <bruno@clisp.org>
14149
14150         getlogin_r: Add missing declaration on HP-UX 11.
14151         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14152         declared also when it exists as a function.
14153         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14154
14155 2010-12-20  Bruno Haible  <bruno@clisp.org>
14156
14157         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14158         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14159         through wcrtomb.
14160
14161 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14162
14163         ftoastr: fix comment
14164         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14166
14167 2010-12-19  Bruno Haible  <bruno@clisp.org>
14168
14169         isnan: Ensure it is a macro.
14170         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14171         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14172         Solaris.
14173
14174 2010-12-19  Bruno Haible  <bruno@clisp.org>
14175
14176         ldexpl test: Fix link error on OSF/1 5.1.
14177         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14178
14179 2010-12-19  Bruno Haible  <bruno@clisp.org>
14180
14181         wctype: Make it work in C++ mode on OSF/1 5.1.
14182         * lib/wctype.in.h (iswblank): Declare but not define here.
14183         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14184         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14185         * modules/wctype (Files): Add lib/iswblank.c.
14186
14187 2010-12-19  Bruno Haible  <bruno@clisp.org>
14188
14189         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14190         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14191         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14192
14193 2010-12-19  Bruno Haible  <bruno@clisp.org>
14194
14195         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14197         _POSIX_PII_SOCKET.
14198         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14199         * doc/posix-functions/recvfrom.texi: Likewise.
14200         * doc/posix-functions/send.texi: Likewise.
14201         * doc/posix-functions/sendto.texi: Likewise.
14202
14203 2010-12-19  Bruno Haible  <bruno@clisp.org>
14204
14205         tcgetsid: Add missing declaration on OSF/1 5.1.
14206         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14207         HAVE_TCGETSID.
14208         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14209         Don't set HAVE_TCGETSID.
14210         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14211         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14212         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14213         HAVE_TCGETSID.
14214         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14215
14216 2010-12-19  Bruno Haible  <bruno@clisp.org>
14217
14218         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14219         * lib/stdio.in.h: During the include_next statement, let recursive
14220         includes of this file include only the system header file.
14221
14222 2010-12-19  Bruno Haible  <bruno@clisp.org>
14223
14224         iconv_open: Fix regression from 2010-12-04.
14225         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14226         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14227
14228 2010-12-19  Bruno Haible  <bruno@clisp.org>
14229
14230         stdbool test: Avoid a gcc warning.
14231         * tests/test-stdbool.c (main): Fail if e1 is false.
14232         Reported by Jim Meyering.
14233
14234 2010-12-19  Jim Meyering  <meyering@redhat.com>
14235
14236         setenv: restore to working order
14237         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14238         mistakenly removed.
14239         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14240         HAVE_SETENV.
14241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14242         HAVE_SETENV.
14243
14244 2010-12-19  Bruno Haible  <bruno@clisp.org>
14245
14246         Document some different function declarations on OSF/1 5.1.
14247         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14248         * doc/posix-functions/inet_ntop.texi: Likewise.
14249         * doc/posix-functions/gethostname.texi: Likewise.
14250         * lib/unistd.in.h (gethostname): Update comment.
14251
14252 2010-12-19  Bruno Haible  <bruno@clisp.org>
14253
14254         doc: Mention vasprintf-posix module.
14255         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14256         the 'vasprintf-posix' module.
14257         * doc/glibc-functions/vasprintf.texi: Likewise.
14258
14259 2010-12-19  Bruno Haible  <bruno@clisp.org>
14260
14261         unsetenv: Add missing declaration on OSF/1 5.1.
14262         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14263         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14264         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14266         not HAVE_UNSETENV.
14267         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14268         HAVE_UNSETENV.
14269         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14270
14271 2010-12-19  Bruno Haible  <bruno@clisp.org>
14272
14273         setenv: Add missing declaration on OSF/1 5.1.
14274         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14275         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14276         declared. Don't set HAVE_SETENV.
14277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14278         not HAVE_SETENV.
14279         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14280         HAVE_SETENV.
14281         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14282
14283 2010-12-19  Bruno Haible  <bruno@clisp.org>
14284
14285         nl_langinfo tests: Avoid gcc warning.
14286         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14287
14288 2010-12-19  Bruno Haible  <bruno@clisp.org>
14289
14290         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14291         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14292         _GL_CXXALIAS_SYS.
14293
14294 2010-12-19  Bruno Haible  <bruno@clisp.org>
14295
14296         stdbool: Relax test.
14297         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14298         address to 'bool' work in static initializer, for compilers other than
14299         GCC.
14300
14301 2010-12-19  Bruno Haible  <bruno@clisp.org>
14302
14303         ftello: Add missing declaration on OSF/1 5.1.
14304         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14305         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14307         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14308         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14309
14310 2010-12-19  Bruno Haible  <bruno@clisp.org>
14311
14312         fseeko: Add missing declaration on OSF/1 5.1.
14313         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14314         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14316         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14317         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14318
14319 2010-12-19  Bruno Haible  <bruno@clisp.org>
14320
14321         fchdir: Add missing declaration on OSF/1 5.1.
14322         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14325         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14326         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14327
14328 2010-12-19  Bruno Haible  <bruno@clisp.org>
14329
14330         relocatable-prog-wrapper: Separate from relocatable-prog.
14331         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14332         uninstall-relocwrapper rule here.
14333         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14334         Reported by Ian Beckwith <ianb@erislabs.net>.
14335
14336 2010-12-19  Bruno Haible  <bruno@clisp.org>
14337
14338         unistr/u8-mbsnlen: Add missing dependency.
14339         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14340         Reported by Ian Beckwith <ianb@erislabs.net>.
14341
14342 2010-12-19  Bruno Haible  <bruno@clisp.org>
14343
14344         iconv: Make it possible again to use this module without 'iconv-h'.
14345         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14346         if it is not defined.
14347         Reported by Ian Beckwith <ianb@erislabs.net>.
14348
14349 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14350
14351         acl: port to Solaris 8 when copying from tmpfs to ufs
14352         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14353         error number.  Problem observed on Solaris 8 with latest
14354         coreutils, with "mv A B", where A is on a tmpfs file system and B
14355         is on a ufs file system.  This caused coreutils' mv/part-symlink
14356         test to fail.
14357
14358         tests: set fail=0 at start
14359         * tests/init.sh (setup_): Move fail=0 initialization here ...
14360         (mktempd_): ... from here, so that tests can rely on fail being
14361         set to 0 initially.  This fixes a problem in coreutils; see:
14362         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14363
14364 2010-12-18  Bruno Haible  <bruno@clisp.org>
14365
14366         memmem-simple: Stylistic changes.
14367         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14368         Fix preprocessor directive indentation.
14369
14370 2010-12-15  Pádraig Brady <P@draigBrady.com>
14371
14372         memmem, memmem-simple: reorganize and expand empty needle check
14373         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14374         functional checks to memmem-simple so that one has a fully functional
14375         memmem by using just this module.
14376         Restrict the performance only check to the memmem module.
14377         Also expand the empty needle check to ensure the correct
14378         pointer is returned, not just a non NULL pointer.
14379         * doc/glibc-functions/memmem.texi: Rearrange the portability
14380         documentation to correlate with the rearranged checks.
14381         Clarify exactly how the memmem and memmem-simple modules
14382         relate to each other.
14383
14384 2010-12-15  Pádraig Brady <P@draigBrady.com>
14385             Bruno Haible  <bruno@clisp.org>
14386
14387         Improve cross-compilation guesses for uClibc.
14388         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14389         that uClibc does not have the glibc bug.
14390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14391         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14392
14393 2010-12-14  Eric Blake  <eblake@redhat.com>
14394
14395         configmake: provide fallbacks for oldest supported autotools
14396         * m4/configmake.m4: New file.
14397         * modules/configmake (Files): Ship it.
14398         (configure.ac): Use it to guarantee fallbacks.
14399
14400 2010-12-13  Pádraig Brady <P@draigBrady.com>
14401
14402         read-file: Improve handling of large files
14403         * lib/read-file.c (fread_file): Minimize realloc()s
14404         for regular files, and better manage sizes around SIZE_MAX.
14405
14406 2010-12-13  Eric Blake  <eblake@redhat.com>
14407
14408         cloexec, fcntl: relax license
14409         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14410         consent from all contributors.
14411         * modules/fcntl (License): Likewise.
14412
14413 2010-12-10  Bruno Haible  <bruno@clisp.org>
14414
14415         Tests for module 'pipe-posix'.
14416         * modules/pipe-posix-tests: New file.
14417         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14418
14419 2010-12-10  Bruno Haible  <bruno@clisp.org>
14420
14421         pipe-posix: Make it work in C++ mode.
14422         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14423         (pipe): Use common idiom, not a macro definition.
14424         * lib/pipe.c: New file.
14425         * m4/pipe.m4: New file.
14426         * modules/pipe-posix (Description): Enhance.
14427         (Files): Add lib/pipe.c, m4/pipe.m4.
14428         (configure.ac): Invoke gl_FUNC_PIPE.
14429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14430         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14431         * tests/test-unistd-c++.cc: Check the signature of pipe.
14432
14433 2010-12-10  Bruno Haible  <bruno@clisp.org>
14434
14435         Rename module 'pipe' to 'spawn-pipe'.
14436         * modules/spawn-pipe: New file, renamed from modules/pipe.
14437         (Files, configure.ac, Makefile.am): Update.
14438         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14439         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14440         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14441         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14442         "spawn-pipe.h" instead of "pipe.h".
14443         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14444         to gl_SPAWN_PIPE.
14445         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14446         (Files, Makefile.am): Update.
14447         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14448         Update.
14449         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14450         Include "spawn-pipe.h" instead of "pipe.h".
14451         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14452         * lib/javacomp.c: Likewise.
14453         * lib/javaversion.c: Likewise.
14454         * lib/pipe-filter-gi.c: Likewise.
14455         * lib/pipe-filter-ii.c: Likewise.
14456         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14457         * modules/javacomp (Depends-on): Likewise.
14458         * modules/javaversion (Depends-on): Likewise.
14459         * modules/pipe-filter-gi (Depends-on): Likewise.
14460         * modules/pipe-filter-ii (Depends-on): Likewise.
14461         * MODULES.html.sh (Executing programs): Update.
14462         * NEWS: Mention the change.
14463
14464 2010-12-10  Eric Blake  <eblake@redhat.com>
14465
14466         pipe-posix: new module
14467         * modules/pipe-posix: New file.
14468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14469         (gl_UNISTD_H): Check for declaration.
14470         * modules/unistd (Makefile.am): Substitute it.
14471         * lib/unistd.in.h (pipe): Provide it for mingw.
14472         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14473         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14474
14475 2010-12-07  Bruno Haible  <bruno@clisp.org>
14476
14477         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14478         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14479         u8_strcmp_gnu.
14480         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14481
14482 2010-12-06  Bruno Haible  <bruno@clisp.org>
14483
14484         Update internal documentation.
14485         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14486
14487 2010-12-04  Bruno Haible  <bruno@clisp.org>
14488
14489         Put more information about failed tests into the test return codes.
14490         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14491         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14492         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14494         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14495         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14496         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14497         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14498         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14501         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14502         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14503         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14504         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14505         returns a bit mask.
14506         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14507         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14508         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14509         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14510         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14511         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14512         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14514         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14515         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14516         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14517         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14518         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14519         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14520         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14521         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14522         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14523         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14524         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14525         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14526         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14527         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14528         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14529         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14530         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14531         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14532         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14533         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14534         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14535         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14536         gl_PRINTF_PRECISION): Likewise.
14537         * m4/regex.m4 (gl_REGEX): Likewise.
14538         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14539         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14540         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14541         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14542         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14544         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14545         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14546         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14547         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14548         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14549         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14550         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14551         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14552         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14553         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14554         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14555         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14556         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14557         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14558         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14559         enumerated value.
14560         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14561
14562 2010-12-04  Bruno Haible  <bruno@clisp.org>
14563
14564         Update for Solaris 11 2010-11.
14565         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14566         Express, released in November 2010.
14567
14568 2010-12-04  Bruno Haible  <bruno@clisp.org>
14569
14570         nproc: Relax license.
14571         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14572         and Paul Eggert.
14573         Requested by Ludovic Courtès <ludo@gnu.org>.
14574
14575 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14576
14577         utimecmp: fine-grained src to nearby coarse-grained dest
14578
14579         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14580         and the source is on a file system with higher-resolution time
14581         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14582         not work, and the time stamps are close together, the algorithm to
14583         determine the exact resolution from the read-back mtime was buggy:
14584         it had a "!=" where it should have had an "==".  This bug has been
14585         in the code ever since it was introduced to gnulib.
14586         Problem reported by Dan Jacobson in
14587         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14588
14589 2010-11-30  Bruno Haible  <bruno@clisp.org>
14590
14591         strerror_r-posix: Fix autoconf test.
14592         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14593
14594 2010-11-28  Bruno Haible  <bruno@clisp.org>
14595             Paul Eggert  <eggert@cs.ucla.edu>
14596
14597         Tests for module 'getdomainname'.
14598         * modules/getdomainname-tests: New file.
14599         * tests/test-getdomainname.c: New file, based on
14600         tests/test-gethostname.c.
14601
14602 2010-11-28  Bruno Haible  <bruno@clisp.org>
14603             Paul Eggert  <eggert@cs.ucla.edu>
14604
14605         getdomainname: Use the system function when possible.
14606         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14607         (getdomainname): Replace if needed. Provide the declaration if it is
14608         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14609         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14610         (getdomainname): When the system has getdomainname, call the system
14611         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14612         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14613         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14614         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14615         the function if its second argument is of type 'int' or if it is found
14616         in libnsl.
14617         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14618         <sys/systeminfo.h> and sysinfo().
14619         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14621         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14622         HAVE_GETDOMAINNAME.
14623         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14624         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14625         * doc/glibc-functions/getdomainname.texi: Document the problems with
14626         the getdomainname declaration.
14627
14628 2010-11-28  Bruno Haible  <bruno@clisp.org>
14629
14630         sys_socket: Ensure ss_family field on AIX.
14631         * lib/sys_socket.in.h (ss_family): New macro definition.
14632         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14633         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14634         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14635         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14636         * modules/sys_socket (Makefile.am): Substitute
14637         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14638         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14639
14640 2010-11-27  Bruno Haible  <bruno@clisp.org>
14641
14642         readline: Improve configure output.
14643         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14644         "checking for readline..." result understandable.
14645
14646 2010-11-27  Bruno Haible  <bruno@clisp.org>
14647
14648         *printf-posix: Detect a bug on Solaris 10/x86.
14649         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14650         for floating-point output.
14651         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14652         directive.
14653         * tests/test-snprintf-posix.h (test_function): Likewise.
14654         * tests/test-sprintf-posix.h (test_function): Likewise.
14655         * tests/test-vasprintf-posix.c (test_function): Likewise.
14656         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14657         * doc/posix-functions/printf.texi: Likewise.
14658         * doc/posix-functions/snprintf.texi: Likewise.
14659         * doc/posix-functions/sprintf.texi: Likewise.
14660         * doc/posix-functions/vfprintf.texi: Likewise.
14661         * doc/posix-functions/vprintf.texi: Likewise.
14662         * doc/posix-functions/vsnprintf.texi: Likewise.
14663         * doc/posix-functions/vsprintf.texi: Likewise.
14664         * doc/glibc-functions/obstack_printf.texi: Likewise.
14665         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14666
14667 2010-11-27  Bruno Haible  <bruno@clisp.org>
14668
14669         Fix link error when module libunistring-optional is in use.
14670         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14671         * modules/striconveha-tests (Makefile.am): Likewise.
14672
14673 2010-11-27  Bruno Haible  <bruno@clisp.org>
14674
14675         regex: Mention link dependencies.
14676         * modules/regex (Link): New section.
14677         * modules/rpmatch (Link): Likewise.
14678         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14679
14680 2010-11-27  Bruno Haible  <bruno@clisp.org>
14681
14682         ftoastr: Fix compilation error on Solaris.
14683         * lib/ftoastr.c: Include <config.h>.
14684
14685 2010-11-27  Bruno Haible  <bruno@clisp.org>
14686
14687         getloadavg: Update documentation.
14688         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14689
14690 2010-11-27  Bruno Haible  <bruno@clisp.org>
14691
14692         sys_socket: Fix test whether the functions are declared.
14693         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14694         not <sys/select.h>.
14695
14696 2010-11-27  Bruno Haible  <bruno@clisp.org>
14697
14698         getpass: Make sure to get system declaration on some platforms.
14699         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14700         gl_USE_SYSTEM_EXTENSIONS.
14701         * modules/getpass (Depends-on): Add extensions.
14702
14703 2010-11-26  Bruno Haible  <bruno@clisp.org>
14704
14705         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14706         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14707         'iconv' module is present.
14708         (ICONV_CONST): New macro.
14709         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14710         ICONV_CONST.
14711         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14712         set ICONV_CONST.
14713         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14714         here.
14715         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14716         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14717         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14718         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14719         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14720         present.
14721
14722 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14723
14724         ftoastr: comment fix
14725         * lib/ftoastr.c: "little" -> "little or no" in comment
14726
14727 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14728
14729         stdint: port to GCC 4.3 + OSX + Octave
14730         On this platform, stdint.h is buggy and defines int64_t to long
14731         long int.  The replacement defined it to long int, causing
14732         problems with C++ style name mangling.  Instead, trust the system
14733         definition if INT64_MAX is defined, and likewise for the unsigned
14734         variant.   Problem reported by Jarno Rajahalme in
14735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14736         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14737         and don't mess with int64_t and INT64_MAX in this case.
14738         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14739
14740 2010-11-24  Bruno Haible  <bruno@clisp.org>
14741
14742         doc: Corrections regarding MacOS X 10.4 and 10.5.
14743         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14744         MacOS X.
14745         Reported by Simon Josefsson.
14746
14747 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14748
14749         Uninstall ".bin" files installed by relocwrapper.
14750         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14751         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14752         unless it is already there.
14753
14754 2010-11-21  Bruno Haible  <bruno@clisp.org>
14755
14756         Update for NetBSD 5.0.
14757         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14758         NetBSD; the test fails on NetBSD 5.0.
14759         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14760         about NetBSD.
14761
14762 2010-11-21  Bruno Haible  <bruno@clisp.org>
14763
14764         Update for HP-UX 11.23 and HP-UX 11.31.
14765         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14766         HP-UX.
14767
14768 2010-11-21  Bruno Haible  <bruno@clisp.org>
14769
14770         Update for MacOS X 10.5.
14771         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14772         MacOS X; the test fails on MacOS X 10.5.8.
14773         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14774         about MacOS X.
14775
14776 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14777
14778         bootstrap: add bootstrap_sync option.
14779         See discussion at
14780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14781         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14782         * build-aux/bootstrap: Accept --bootstrap-sync to update
14783         bootstrap if it is not identical to the local gnulib's
14784         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14785         enable this by default.  Accept --no-bootstrap-sync to disable
14786         it.
14787
14788 2010-11-20  Bruno Haible  <bruno@clisp.org>
14789
14790         Ensure that <features.h> is included before __GLIBC__ is tested.
14791         * lib/printf-parse.h: Include <features.h>.
14792         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14793         Reported by Mike Frysinger <vapier@gentoo.org>.
14794
14795         Ensure that <features.h> is included before __GLIBC__ is tested.
14796         * lib/wchar.in.h: Include <features.h>.
14797         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14798         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14799         Reported by Mike Frysinger <vapier@gentoo.org>.
14800
14801         Ensure that <features.h> is included before __GLIBC__ is tested.
14802         * lib/arpa_inet.in.h: Include <features.h>.
14803         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14804         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14805         Reported by Mike Frysinger <vapier@gentoo.org>.
14806
14807         Ensure that <features.h> is included before __GLIBC__ is tested.
14808         * build-aux/link-warning.h: Include <features.h>.
14809         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14810         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14811         Reported by Mike Frysinger <vapier@gentoo.org>.
14812
14813         Ensure that <features.h> is included before __GLIBC__ is tested.
14814         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14815         Reported by Mike Frysinger <vapier@gentoo.org>.
14816
14817 2010-11-20  Bruno Haible  <bruno@clisp.org>
14818
14819         memmem: Fix autoconf test.
14820         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14821
14822 2010-11-20  Bruno Haible  <bruno@clisp.org>
14823
14824         Port to uClibc.
14825         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14826         * lib/fcntl.in.h: Likewise.
14827         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14828         * lib/mbrtowc.c (mbrtowc): Likewise.
14829         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14830         * lib/strerror_r.c: Likewise.
14831         * lib/unistr/u8-strnlen.c: Likewise.
14832         * lib/vasnprintf.c (decimal_point_char): Likewise.
14833         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14834         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14835         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14836         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14837         * tests/test-sigaction.c (handler, main): Likewise.
14838         * lib/freading.h: Treat uClibc like a non-glibc platform.
14839         * lib/freading.c: Likewise.
14840         * lib/gettext.h: Likewise.
14841         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14842         Likewise.
14843         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14844         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14845         * lib/propername.c (proper_name_utf8): Likewise.
14846         * lib/spawn.in.h: Likewise.
14847         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14848         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14849         mem_cd_iconveh_internal): Likewise.
14850         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14851         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14852         strstr, strcasestr): Likewise.
14853         * lib/unicodeio.c (unicode_to_mb): Likewise.
14854         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14855         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14856         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14857         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14858         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14859         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14860         * lib/unistr/u8-stpncpy.c: Likewise.
14861         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14862         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14863         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14864         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14865         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14866         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14867         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14870         Likewise.
14871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14872         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14873         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14874         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14876         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14878         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14879         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14880         * tests/test-striconveha.c (main): Likewise.
14881         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14882         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14883         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14884         * doc/posix-functions/getline.texi: Likewise.
14885         Reported by Mike Frysinger <vapier@gentoo.org>.
14886
14887 2010-11-20  Bruno Haible  <bruno@clisp.org>
14888
14889         nproc: Fix condition.
14890         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14891         HAVE_PTHREAD_AFFINITY_NP.
14892
14893 2010-11-20  Bruno Haible  <bruno@clisp.org>
14894
14895         Fix a comment.
14896         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14897
14898 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         ftoastr: don't assume snprintf
14901         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14902         Implement a subset of snprintf here, by using sprintf safely.
14903         * modules/ftoastr (Depends-on): Remove snprintf.
14904
14905 2010-11-19  Jim Meyering  <meyering@redhat.com>
14906
14907         test-rename.h: fix compilation failure
14908         * tests/test-rename.h (test_rename): Add omitted "}".
14909
14910 2010-11-17  Jim Meyering  <meyering@redhat.com>
14911
14912         maint.mk: add a URL discussing the no-@acronym policy
14913         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14914
14915 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14916
14917         ftoastr: depend on snprintf, improve comments
14918         * lib/ftoastr.c: Also mention Loitsch's draft.
14919         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14920         needed in the current implementation, but it might simplify
14921         speeding up the code later.
14922         * modules/ftoastr: Depend on snprintf; this improves portability.
14923         Suggested by Bruno Haible in the same email.
14924
14925         ftoastr: port to hosts lacking strtof and strtold
14926         Problem reported by Bruno Haible in
14927         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14928         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14929         environment and strtold (and presumably strtof) are not available.
14930         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14931         (configure.ac): Require gl_C99_STRTOLD.
14932
14933 2010-11-18  Bruno Haible  <bruno@clisp.org>
14934
14935         c-strtold: Avoid link error on AIX 7.
14936         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14937         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14938         (gl_C_STRTOLD): Test whether strtold_l exists.
14939         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14940
14941 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14942
14943         intprops: new macro INT_BITS_STRLEN_BOUND
14944         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14945         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14946         not exposed.  Also, it uses a slightly tighter bound than before;
14947         though this makes no practical difference, we might as well be as
14948         tight as we easily can.
14949
14950         ftoastr: new module, for lossless conversion of floats to short strings
14951         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14952         * modules/ftoastr: New files.
14953
14954 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14955
14956         bootstrap: port to Solaris sed
14957         * build-aux/bootstrap (get_version): Port to Solaris sed.
14958         See Ralf Wildenhues's note in
14959         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14960
14961 2010-11-14  Jim Meyering  <meyering@redhat.com>
14962
14963         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14964         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14965         and move definition closer to sole use.
14966
14967 2010-11-13  Jim Meyering  <meyering@redhat.com>
14968
14969         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14970         Now we require at least autoconf-2.59, which means the work-around
14971         is no longer needed.
14972         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14973         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14974         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14975         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14976         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14977
14978 2010-11-13  Bruno Haible  <bruno@clisp.org>
14979
14980         rename, renameat: Avoid test failures at NFS mounted locations.
14981         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14982         functions.
14983         (test_rename): Use assert_nonexistent.
14984         * tests/test-rename.c: Include <dirent.h>.
14985         * tests/test-renameat.c: Likewise.
14986         Reported by Gary V. Vaughan <gary@gnu.org>.
14987
14988         rename, renameat: Document Linux bug with NFS
14989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14990         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14991         * doc/posix-functions/renameat.texi: Likewise.
14992         Suggested by Eric Blake.
14993
14994 2010-11-13  Bruno Haible  <bruno@clisp.org>
14995
14996         rename test: Add comments.
14997         * tests/test-rename.h (test_rename): Add structure and comments.
14998
14999 2010-11-13  Eric Blake  <eblake@redhat.com>
15000
15001         maintainer-makefile: cover a few more files
15002         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15003         scripts generated within C files, for libvirt.
15004
15005 2010-11-13  Bruno Haible  <bruno@clisp.org>
15006
15007         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15008         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15009         character, return the number of bytes that belong together, not always
15010         1.
15011         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15012         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15013         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15014         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15015         number of bytes of an invalid character.
15016         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15017         (main): Invoke it.
15018         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15019         results.
15020         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15021         malformed byte sequences.
15022         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15023         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15024         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15025         Reported by Ben Pfaff and Paolo Bonzini.
15026
15027 2010-11-13  Bruno Haible  <bruno@clisp.org>
15028
15029         openat: Work around glibc bug with fchownat() and empty file names.
15030         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15031         (gl_FUNC_FCHOWNAT): Invoke it.
15032         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15033         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15034         Reported by Gary V. Vaughan <gary@gnu.org>.
15035
15036 2010-11-13  Bruno Haible  <bruno@clisp.org>
15037
15038         openat: Ensure autoconf macro ordering.
15039         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15040         gl_USE_SYSTEM_EXTENSIONS.
15041         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15042
15043 2010-11-13  Bruno Haible  <bruno@clisp.org>
15044
15045         Update comments.
15046         * lib/unistr/u8-check.c: Update file name in comments.
15047         * lib/unistr/u8-mblen.c: Likewise.
15048         * lib/unistr/u8-prev.c: Likewise.
15049         * lib/unistr/u8-strmblen.c: Likewise.
15050         * lib/unistr/u8-strmbtouc.c: Likewise.
15051
15052 2010-11-13  Jim Meyering  <meyering@redhat.com>
15053
15054         tests: avoid test failure on Solaris 10 due to lack of PATH export
15055         * tests/test-update-copyright.sh: Don't forget to export PATH.
15056
15057         init.sh: ensure that IFS is defined, just in case...
15058         * tests/init.sh (setup_): Ensure that IFS is defined,
15059         so that saving and restoring it works as expected.  This
15060         appears to be useful at least for an old version of dash
15061         from a long time ago (RH 6).  See here for details:
15062         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15063
15064         maint.mk: tighten "test a == b" check
15065         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15066         test to files that contain something like #!/bin/sh.
15067         Without this, coreutils would get two false positives in
15068         the comments of C source files.
15069
15070 2010-11-12  Eric Blake  <eblake@redhat.com>
15071
15072         bootstrap: fix typo in previous attempt
15073         * build-aux/bootstrap (buildreq): Correct the grouping.
15074         Reported by Paul Eggert.
15075
15076         maintainer-makefile: prohibit test x == x
15077         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15078         Based on a report by Matthias Bolte.
15079
15080         bootstrap: allow FreeBSD gzip
15081         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15082         which has no '.' and goes to stderr.
15083         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15084         Reported by Matthias Bolte.
15085
15086         maintainer-makefile: check for i18n setup
15087         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15088         will likely work.
15089
15090 2010-11-12  Bruno Haible  <bruno@clisp.org>
15091
15092         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15093         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15094         * lib/nanosleep.c (nanosleep): Likewise.
15095
15096 2010-11-11  Bruno Haible  <bruno@clisp.org>
15097
15098         fcntl-h: Fix for use of C++ on glibc systems.
15099         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15100         also on glibc systems in C++ mode.
15101         Reported by Gary V. Vaughan <gary@gnu.org>.
15102
15103 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15104
15105         mknod: avoid false failure with dash
15106         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15107
15108 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15109
15110         unlink: Fix "is it should" typo in diagnostic.
15111         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15112         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15113
15114 2010-11-11  Bruno Haible  <bruno@clisp.org>
15115
15116         Tests for module 'strerror_r-posix'.
15117         * modules/strerror_r-posix-tests: New file.
15118         * tests/test-strerror_r.c: New file.
15119         * tests/test-string-c++.cc: Check the signature of strerror_r.
15120
15121         New module 'strerror_r-posix'.
15122         * lib/string.in.h (strerror_r): New declaration.
15123         * lib/strerror_r.c: New file.
15124         * m4/strerror_r.m4: New file.
15125         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15126         of strerror_r.
15127         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15128         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15129         * modules/strerror_r-posix: New file.
15130         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15131         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15132         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15133         portability problems.
15134
15135 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15136
15137         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15138         line is also considered for output. Quoted function name in shell
15139         command, so temporary files for functions like MyClass::operator()
15140         are removed correctly without errors.
15141
15142 2010-11-09  Bruno Haible  <bruno@clisp.org>
15143
15144         * doc/posix-functions/strerror.texi: List more failing platforms.
15145
15146         * doc/posix-functions/strerror.texi: Add a comment.
15147
15148 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15149
15150         fdopendir: fix bug on MacOS X when low on file descriptors
15151
15152         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15153         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15154         All callers changed.
15155         (fdopendir): Invoke save_cwd at the top level, not after using
15156         multiple dup() calls to use up file descriptors.  Then retry
15157         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15158         less than the maximum number of open file descriptors, because
15159         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15160         on Mac OS X 10.6.4 for tar 1.24
15161         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15162         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15163         and for tar 1.25
15164         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15165
15166 2010-11-07  Bruno Haible  <bruno@clisp.org>
15167
15168         vasnprintf: Support I flag on glibc systems.
15169         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15170         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15171         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15172         snprintf function.
15173         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15174         glibc systems.
15175         * tests/test-vasnprintf-posix3.c: New file.
15176         * modules/vasnprintf-posix-tests (Files): Add it.
15177         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15178
15179 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15180
15181         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15182         * MODULES.html.sh: For compiler warnings, use name
15183         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15184
15185 2010-11-05  Eric Blake  <eblake@redhat.com>
15186
15187         ceil, floor: avoid spurious failure with icc
15188         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15189         [denormals-as-zero] when optimizing without -mieee-fp option.
15190         * tests/test-floorf2.c (floorf_reference): Likewise.
15191         * tests/test-ceilf1.c (dummy): New function.
15192         (main): Use it to outsmart icc's optimization.
15193         * tests/test-floorf1.c (dummy, main): Likewise.
15194
15195         tests: require working signbit
15196         * modules/ceilf-tests (Depends-on): Add signbit.
15197         * modules/ceill-tests (Depends-on): Likewise.
15198         * modules/floorf-tests (Depends-on): Likewise.
15199         * modules/floorl-tests (Depends-on): Likewise.
15200         * modules/round-tests (Depends-on): Likewise.
15201         * modules/roundf-tests (Depends-on): Likewise.
15202         * modules/roundl-tests (Depends-on): Likewise.
15203         * modules/trunc-tests (Depends-on): Likewise.
15204         * modules/truncf-tests (Depends-on): Likewise.
15205         * modules/truncl-tests (Depends-on): Likewise.
15206
15207         strtod: work around icc bug
15208         * lib/strtod.c (minus_zero): Define to working value.
15209         (strtod): Use it to avoid icc bug.
15210
15211         copysign: enhance tests
15212         * modules/copysign-tests (Files): Add minus-zero.h.
15213         * tests/test-copysign.c (main): Also test zeros.
15214
15215 2010-11-04  Eric Blake  <eblake@redhat.com>
15216
15217         ceil, floor, round, trunc: enhance tests of -0
15218         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15219         * tests/test-ceill.c (main): Likewise.
15220         * tests/test-floorf1.c (main): Likewise.
15221         * tests/test-floorl.c (main): Likewise.
15222         * tests/test-round1.c (main): Likewise.
15223         * tests/test-roundf1.c (main): Likewise.
15224         * tests/test-roundl.c (main): Likewise.
15225         * tests/test-trunc1.c (main): Likewise.
15226         * tests/test-truncf1.c (main): Likewise.
15227         * tests/test-truncl.c (main): Likewise.
15228
15229 2010-11-04  Eric Blake  <eblake@redhat.com>
15230
15231         frexp, tests: work around ICC bug with -zero
15232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15233         works with more compilers.
15234         * tests/minus-zero.h: New file.
15235         * modules/ceilf-tests (Files): Include it.
15236         * modules/ceill-tests (Files): Likewise.
15237         * modules/floorf-tests (Files): Likewise.
15238         * modules/floorl-tests (Files): Likewise.
15239         * modules/frexp-nolibm-tests (Files): Likewise.
15240         * modules/frexp-tests (Files): Likewise.
15241         * modules/frexpl-nolibm-tests (Files): Likewise.
15242         * modules/frexpl-tests (Files): Likewise.
15243         * modules/isnan-tests (Files): Likewise.
15244         * modules/isnand-nolibm-tests (Files): Likewise.
15245         * modules/isnand-tests (Files): Likewise.
15246         * modules/isnanf-nolibm-tests (Files): Likewise.
15247         * modules/isnanf-tests (Files): Likewise.
15248         * modules/isnanl-nolibm-tests (Files): Likewise.
15249         * modules/isnanl-tests (Files): Likewise.
15250         * modules/round-tests (Files): Likewise.
15251         * modules/roundf-tests (Files): Likewise.
15252         * modules/roundl-tests (Files): Likewise.
15253         * modules/ldexpl-tests (Files): Likewise.
15254         * modules/signbit-tests (Files): Likewise.
15255         * modules/snprintf-posix-tests (Files): Likewise.
15256         * modules/sprintf-posix-tests (Files): Likewise.
15257         * modules/strtod-tests (Files): Likewise.
15258         * modules/trunc-tests (Files): Likewise.
15259         * modules/truncf-tests (Files): Likewise.
15260         * modules/truncl-tests (Files): Likewise.
15261         * modules/vsnprintf-posix-tests (Files): Likewise.
15262         * modules/vsprintf-posix-tests (Files): Likewise.
15263         * modules/vasnprintf-posix-tests (Files): Likewise.
15264         * modules/vasprintf-posix-tests (Files): Likewise.
15265         * tests/test-ceilf1.c (main): Use it.
15266         * tests/test-ceill.c (main): Likewise.
15267         * tests/test-floorf1.c (main): Likewise.
15268         * tests/test-floorl.c (main): Likewise.
15269         * tests/test-frexp.c (main): Likewise.
15270         * tests/test-frexpl.c (main): Likewise.
15271         * tests/test-isnan.c (main): Likewise.
15272         * tests/test-isnand.h (main): Likewise.
15273         * tests/test-isnanf.h (main): Likewise.
15274         * tests/test-isnanl.h (main): Likewise.
15275         * tests/test-ldexpl.c (main): Likewise.
15276         * tests/test-round.c (main): Likewise.
15277         * tests/test-roundf.c (main): Likewise.
15278         * tests/test-roundl.c (main): Likewise.
15279         * tests/test-signbit.c (test_signbitf, test_signbitd)
15280         (test_signbitl): Likewise.
15281         * tests/test-snprintf-posix.h (test_function): Likewise.
15282         * tests/test-sprintf-posix.h (test_function): Likewise.
15283         * tests/test-strtod.c (main): Likewise.
15284         * tests/test-trunc1.c (main): Likewise.
15285         * tests/test-truncf1.c (main): Likewise.
15286         * tests/test-truncl.c (main): Likewise.
15287
15288         isnanl: work around icc bug
15289         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15290
15291 2010-11-03  Eric Blake  <eblake@redhat.com>
15292
15293         tests: fix compiler warnings
15294         * tests/test-getopt.h (test_getopt): Fix condition.
15295         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15296         * tests/test-pipe2.c (main): Likewise.
15297         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15298
15299         utimens: fix broken m4 test
15300         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15301
15302 2010-10-28  Bruno Haible  <bruno@clisp.org>
15303
15304         posix_spawn*, getdtablesize: Relax license.
15305         * modules/posix_spawn (License): Change to LGPLv2+.
15306         * modules/posix_spawnp (License): Likewise.
15307         * modules/posix_spawn-internal (License): Likewise.
15308         * modules/posix_spawnattr_init (License): Likewise.
15309         * modules/posix_spawnattr_getflags (License): Likewise.
15310         * modules/posix_spawnattr_setflags (License): Likewise.
15311         * modules/posix_spawnattr_getpgroup (License): Likewise.
15312         * modules/posix_spawnattr_setpgroup (License): Likewise.
15313         * modules/posix_spawnattr_getschedparam (License): Likewise.
15314         * modules/posix_spawnattr_setschedparam (License): Likewise.
15315         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15316         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15317         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15318         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15319         * modules/posix_spawnattr_getsigmask (License): Likewise.
15320         * modules/posix_spawnattr_setsigmask (License): Likewise.
15321         * modules/posix_spawnattr_destroy (License): Likewise.
15322         * modules/posix_spawn_file_actions_init (License): Likewise.
15323         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15324         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15325         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15326         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15327         * modules/getdtablesize (License): Likewise.
15328         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15329
15330 2010-10-26  Bruno Haible  <bruno@clisp.org>
15331
15332         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15333         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15334         Cygwin and mingw.
15335         Suggested by Eric Blake.
15336
15337 2010-10-26  Bruno Haible  <bruno@clisp.org>
15338
15339         stdio: Work around compilation error due to renameat() on Solaris 10.
15340         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15341         * lib/renameat.c: Don't include <unistd.h> here.
15342         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15343         Reported by Paul Eggert and Eric Blake.
15344
15345 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15346
15347         renameat: port to Solaris 10, which declares renameat in unistd.h
15348
15349         * lib/renameat.c: Include unistd.h before stdio.h, because
15350         Solaris 10 declares renameat in unistd.h.  Problem encountered
15351         when building GNU tar 1.24 on Solaris 10.
15352
15353 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15354
15355         fdopendir: fix C89 compilation
15356         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15357         compilers.
15358
15359 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15360
15361         inttostr: simplify by removing unnecessary redundancy
15362         * lib/anytostr.c: Don't include verify.h.
15363         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15364         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15365         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15366         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15367         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15368         Likewise.
15369         * modules/inttostr (Depends-on): Remove 'verify'.
15370
15371 2010-10-23  Bruno Haible  <bruno@clisp.org>
15372
15373         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15374         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15375         Reported by Eric Blake.
15376
15377 2010-10-23  Bruno Haible  <bruno@clisp.org>
15378
15379         Tests: Fix LOCALE_JA on MirBSD 10.
15380         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15381         to an UTF-8 locale.
15382         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15383         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15384         Reported by Eric Blake.
15385
15386 2010-10-21  Bruno Haible  <bruno@clisp.org>
15387
15388         nl_langinfo test: Avoid test failure on NetBSD 5.
15389         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15390         Reported by Eric Blake.
15391
15392 2010-10-21  Eric Blake  <eblake@redhat.com>
15393
15394         c-stack: work around libsigsegv 2.8 bug
15395         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15396         overflow on at least PowerPC64.
15397
15398 2010-10-17  Bruno Haible  <bruno@clisp.org>
15399
15400         userspec: Drop redundant file.
15401         * modules/userspec (Files): Remove lib/inttostr.h.
15402
15403 2010-10-17  Bruno Haible  <bruno@clisp.org>
15404
15405         nl_langinfo tests: Silence some warnings.
15406         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15407         Reported by Jim Meyering.
15408
15409 2010-10-17  Bruno Haible  <bruno@clisp.org>
15410
15411         Make use of GCC's attribute __alloc_size__.
15412         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15413         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15414         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15415         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15416         __alloc_size__.
15417         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15418         Suggested by Jim Meyering.
15419
15420 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15421
15422         bootstrap: anchor .gitignore entries.
15423         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15424         with...
15425         (insert_vc_ignore): ... this new function, which prepends `/' to
15426         all .gitignore entries before passing them to
15427         insert_sorted_if_absent.
15428
15429 2010-10-16  Bruno Haible  <bruno@clisp.org>
15430
15431         nextafter: Fix configure check.
15432         * modules/nextafter (configure.ac): Correct expected prototype.
15433
15434 2010-10-16  Bruno Haible  <bruno@clisp.org>
15435
15436         termios: Update documentation.
15437         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15438
15439 2010-10-16  Bruno Haible  <bruno@clisp.org>
15440
15441         tests: Make them compile with TinyCC.
15442         * tests/test-strstr.c (main): Remove parentheses around array
15443         initializer.
15444
15445 2010-10-15  Eric Blake  <eblake@redhat.com>
15446
15447         ignore-value: make header idempotent
15448         * lib/ignore-value.h: Add double-inclusion guards.
15449         Reported by Stefan Berger.
15450
15451 2010-10-15  Jim Meyering  <meyering@redhat.com>
15452
15453         GNUmakefile: handle "stable" target, not "major"
15454         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15455         lists in maint.mk and announce-gen.  Without this, "make stable"
15456         would fail to ensure that $(VERSION) is up to date.
15457
15458 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15459
15460         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15461         & co.
15462
15463 2010-10-14  Bruno Haible  <bruno@clisp.org>
15464
15465         vasnprintf: Don't set errno to 0.
15466         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15467         block that sets it to 0.
15468         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15469
15470 2010-10-14  Bruno Haible  <bruno@clisp.org>
15471
15472         socketlib: Fix.
15473         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15474         gl_PREREQ_SYS_H_WINSOCK2.
15475         Reported by Ian Beckwith <ianb@erislabs.net>.
15476
15477 2010-10-13  Jim Meyering  <meyering@redhat.com>
15478
15479         test-select-stdin.c: avoid warn_unused_result warnings
15480         * tests/test-select-stdin.c: Include "macros.h".
15481         ASSERT that read and fflush succeed.
15482
15483 2010-10-13  Jim Meyering  <meyering@redhat.com>
15484
15485         git-version-gen: do require git-VC'd files in cwd
15486         * build-aux/git-version-gen: Reject a git version string
15487         if there are no commits associated with the current directory.
15488         This avoids an unlikely false-positive (unrelated dir whose parent
15489         repository also contains a tag matching v*), as pointed out
15490         by Giuseppe Scrivano in
15491         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15492
15493 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15494
15495         argv-iter: omit nonconforming declaration
15496         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15497         enum arg_iter_err declaration, which doesn't conform to C99.
15498         Solaris 10 cc warns about this.
15499
15500 2010-10-13  Eric Blake  <eblake@redhat.com>
15501
15502         termios: fix compilation on mingw
15503         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15504         (gl_TERMIOS_H): Adjust it on mingw.
15505         * modules/termios (Makefile.am): Substitute new key.
15506         * lib/termios.in.h (includes): Make include_next conditional.
15507         * doc/posix-headers/termios.texi (termios.h): Update
15508         documentation.
15509         Reported by Daniel P. Berrange.
15510
15511 2010-10-13  Jim Meyering  <meyering@redhat.com>
15512
15513         git-version-gen: don't require that .git/ be in the current dir
15514         * build-aux/git-version-gen: Adjust this script so that it works
15515         when run from any working directory beneath the top-level .git/-
15516         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15517         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15518
15519         test-select: avoid warn_unused_result warnings
15520         * tests/test-select.c: Include "macros.h".
15521         ASSERT that each call to read, write, and pipe succeeds.
15522         While not technically required, also check each "close".
15523         * modules/select-tests (Files): Add tests/macros.h.
15524
15525         test-symlinkat: remove declaration of unused local
15526         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15527
15528         test-inttostr: avoid shadowing warnings
15529         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15530         and use malloc rather than the stack for the same reason as
15531         mentioned in the comment justifying the other allocation.
15532
15533 2010-10-11  Bruno Haible  <bruno@clisp.org>
15534
15535         stdlib: Allow multiple gnulib generated replacements to coexist.
15536         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15537         Reported by Sam Steingold <sds@gnu.org>.
15538
15539 2010-10-11  Jim Meyering  <meyering@redhat.com>
15540
15541         fix a documentation typo
15542         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15543
15544 2010-10-11  Eric Blake  <eblake@redhat.com>
15545
15546         futimens: work around Solaris 11 bug
15547         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15548         * tests/test-futimens.h (test_futimens): Enhance, rather than
15549         weaken test.
15550         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15551
15552 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15553
15554         Indentation.
15555         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15556         higher-level operators more to the left.
15557
15558 2010-10-11  Jim Meyering  <meyering@redhat.com>
15559
15560         test-futimens: avoid unwarranted test failure on Solaris 5.11
15561         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15562         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15563         because it tries to dereference the NULL name argument.
15564
15565 2010-10-11  Bruno Haible  <bruno@clisp.org>
15566
15567         Indentation.
15568         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15569         indentation.
15570
15571 2010-10-11  Jim Meyering  <meyering@redhat.com>
15572
15573         spawn.in.h: make indentation consistent with parentheses
15574         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15575         Make indentation consistent with parentheses.
15576
15577 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15578
15579         Fix mismatched parens in previous commit
15580         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15581         parens.
15582
15583 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15584
15585         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15586
15587         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15588         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15589         * lib/malloca.c: Include "verify.h".
15590         (verify1): Remove, replacing with a verify call.
15591         * lib/relocwrapper.c (verify1): Likewise.
15592         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15593         Likewise.
15594         * modules/malloca (Depends-on): Add 'verify'.
15595         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15596         * modules/vasnprintf (Depends-on): Add 'verify'.
15597         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15598         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15599         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15600         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15601         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15602         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15603         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15604
15605         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15606
15607         Formerly the style was sometimes 2*X - 1, because the C standard
15608         was wrongly thought to disallow ?: in integral constant expressions.
15609         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15610         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15611         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15612         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15613         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15614         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15615         verify that time_t cannot be floating.
15616
15617 2010-10-08  Eric Blake  <eblake@redhat.com>
15618
15619         time: enforce recent POSIX ruling that time_t is integral
15620         * lib/time.in.h (__time_t_must_be_integral): Detect any
15621         problematic systems, allowing the rest of gnulib to assume POSIX.
15622
15623 2010-10-08  Jim Meyering  <meyering@redhat.com>
15624
15625         fdopendir: fix a bug on systems lacking openat and /proc support
15626         OpenBSD 4.7 is one such system.  The most noticeable effect was
15627         failure of any application making nontrivial use of fts: rm, du,
15628         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15629           ./rm: traversal failed: `a': Bad file descriptor
15630         Debugging that, you see that even though FD 6 was closed just
15631         prior to the opendir call in fd_clone_opendir, its resulting
15632         dir->dd_fd was 8, rather than the expected value of 6:
15633
15634         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15635         93                close (fd);
15636         (gdb) n
15637         94                dir = fd_clone_opendir (dupfd);
15638         (gdb) n
15639         95                saved_errno = errno;
15640         (gdb) p dir->dd_fd
15641         $11 = 8
15642
15643         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15644         The problem is that on OpenBSD, fd_clone_opendir has to resort
15645         to using the old-style save/restore CWD mechanism, due to its
15646         lack of openat/proc support, and *that* would steal the FD (6)
15647         that opendir was supposed to use.
15648
15649         The fix is to squirrel away the desired FD so that save_cwd uses a
15650         different one, and then free the dest FD right before calling opendir.
15651         That guarantees opendir will use the required file descriptor.
15652
15653         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15654
15655 2010-10-08  Bruno Haible  <bruno@clisp.org>
15656
15657         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15658         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15659
15660 2010-10-08  Bruno Haible  <bruno@clisp.org>
15661
15662         nanosleep: Make replacement POSIX compliant.
15663         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15664         is out of range.
15665         Reported by Jim Meyering.
15666
15667 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15668
15669         bootstrap: add hook for altering gnulib.mk, for Bison
15670         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15671         the Bison bootstrapping process can rewrite file names and variables
15672         in this file before later parts of 'bootstrap' use the file.
15673         Bison wants to include lib/gnulib.mk from the top-level makefile,
15674         so it needs the file names in this file to be relative to the top
15675         level, not relative to lib; plus it needs variable names to be
15676         rewritten.
15677         (slurp): Use the new function.
15678
15679         bootstrap: reformat for readability
15680         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15681
15682 2010-10-08  Eric Blake  <eblake@redhat.com>
15683
15684         docs: update cygwin progress
15685         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15686         1.7.7.
15687         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15688         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15689         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15690         * doc/posix-functions/carg.texi (carg): Likewise.
15691         * doc/posix-functions/cargf.texi (cargf): Likewise.
15692         * doc/posix-functions/casin.texi (casin): Likewise.
15693         * doc/posix-functions/casinf.texi (casinf): Likewise.
15694         * doc/posix-functions/casinh.texi (casinh): Likewise.
15695         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15696         * doc/posix-functions/catan.texi (catan): Likewise.
15697         * doc/posix-functions/catanf.texi (catanf): Likewise.
15698         * doc/posix-functions/catanh.texi (catanh): Likewise.
15699         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15700         * doc/posix-functions/ccos.texi (ccos): Likewise.
15701         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15702         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15703         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15704         * doc/posix-functions/cexp.texi (cexp): Likewise.
15705         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15706         * doc/posix-functions/cimag.texi (cimag): Likewise.
15707         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15708         * doc/posix-functions/clog.texi (clog): Likewise.
15709         * doc/posix-functions/clogf.texi (clogf): Likewise.
15710         * doc/posix-functions/conj.texi (conj): Likewise.
15711         * doc/posix-functions/conjf.texi (conjf): Likewise.
15712         * doc/posix-functions/cpow.texi (cpow): Likewise.
15713         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15714         * doc/posix-functions/cproj.texi (cproj): Likewise.
15715         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15716         * doc/posix-functions/creal.texi (creal): Likewise.
15717         * doc/posix-functions/crealf.texi (crealf): Likewise.
15718         * doc/posix-functions/csin.texi (csin): Likewise.
15719         * doc/posix-functions/csinf.texi (csinf): Likewise.
15720         * doc/posix-functions/csinh.texi (csinh): Likewise.
15721         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15722         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15723         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15724         * doc/posix-functions/ctan.texi (ctan): Likewise.
15725         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15726         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15727         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15728         * doc/posix-headers/complex.texi (complex.h): Likewise.
15729
15730 2010-10-07  Jim Meyering  <meyering@redhat.com>
15731
15732         parse-datetime: avoid compilation failure on OpenBSD 4.7
15733         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15734         This works around a compilation failure on OpenBSD 4.7:
15735         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15736
15737 2010-10-07  Eric Blake  <eblake@redhat.com>
15738
15739         docs: update cygwin progress
15740         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15741         1.7.6.
15742         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15743         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15744         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15745         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15746         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15747         Likewise.
15748         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15749         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15750         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15751         Likewise.
15752         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15753         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15754         Likewise.
15755         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15756         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15757         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15758         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15759         Likewise.
15760         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15761         Likewise.
15762         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15763
15764         docs: update parse-datetime history
15765         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15766         documentation of this function's history and alternatives.
15767
15768         cygwin: use more robust version check
15769         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15770         exclude an eventual cygwin 1.9.1.
15771         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15773         (gl_FUNC_STRCASESTR): Likewise.
15774         Reported by Bruno Haible.
15775
15776 2010-10-06  Bruno Haible  <bruno@clisp.org>
15777
15778         string, sys_select: Avoid #including large headers unless necessary.
15779         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15780         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15781         OSF/1, BeOS, Haiku.
15782         Reported by Jim Meyering.
15783
15784 2010-10-05  Eric Blake  <eblake@redhat.com>
15785
15786         memmem, strstr, strcasestr: fix bug with long periodic needle
15787         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15788         periodic needle having false positive.
15789         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15790         and cygwin 1.7.7.
15791         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15793         (gl_FUNC_STRCASESTR): Likewise.
15794         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15795         * tests/test-memmem.c (main): Expose the bug.
15796         * tests/test-strcasestr.c (main): Likewise.
15797         * tests/test-strstr.c (main): Likewise.
15798         * tests/test-c-strcasestr.c (main): Likewise.
15799         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15800         * doc/posix-functions/strstr.texi (strstr): Likewise.
15801         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15802         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15803
15804 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15805
15806         parse-datetime: do some more renaming
15807         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15808         parse_datetime, not get_date.  Mention the renaming.
15809         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15810         in comments.
15811         * m4/bison.m4: Likewise.
15812
15813 2010-10-05  Eric Blake  <eblake@redhat.com>
15814
15815         parse-datetime: better name than get_date
15816         * NEWS: Reword the deprecation notice.
15817         * modules/get_date: Rename to modules/parse-datetime.
15818         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15819         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15820         * lib/get_date.y: Rename to lib/parse-datetime.y.
15821         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15822         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15823         * doc/getdate.texi: Provide fallback wrapper.
15824         * lib/getdate.h: Move guts, and wrap...
15825         * lib/parse-datetime.h: ...new file.
15826         * lib/parse-datetime.y (get_date): Rename...
15827         (parse_datetime): ...to this.
15828         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15829         (gl_PARSE_DATETIME): ...to this.
15830         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15831         documentation.
15832         * modules/getdate (Files): Provide fallback docs and header.
15833         (Notice, Depends-on): Update references.
15834         * tests/test-parse-datetime.c: Likewise.
15835         * DEPENDENCIES: Likewise.
15836         * MODULES.html.sh (Date and time <time.h>): Likewise.
15837         * doc/parse-datetime.texi (Date input formats)
15838         (Authors of parse_datetime): Likewise.
15839         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15840         (Include): Likewise.
15841         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15842         * gnulib-tool: Likewise.
15843         * m4/bison.m4 (gl_BISON): Likewise.
15844         Suggested by Bruno Haible.
15845
15846 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15847
15848         more ports to Solaris tr, which needs [] around ranges
15849         * gnulib-tool: Solaris tr needs [] around ranges.
15850         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15851         * tests/test-pipe-filter-gi1.c (main): Likewise.
15852         * tests/test-pipe-filter-ii1.c (main): Likewise.
15853
15854 2010-10-05  Eric Blake  <eblake@redhat.com>
15855
15856         bootstrap: fix Solaris regression
15857         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15858         around ranges.
15859         Reported by Pádraig Brady.
15860
15861         bootstrap: work with pkg-config
15862         * build-aux/bootstrap (check_versions): Also transliterate - in
15863         prerequisite name.
15864         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15865         prerequisites that were already found, to avoid confusion.
15866         Reported by Justin Clift.
15867
15868         faccessat: remove unused wrappers
15869         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15870         presence of these wrappers dragged in -lgen on Solaris.
15871         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15872
15873 2010-10-05  Jim Meyering  <meyering@redhat.com>
15874
15875         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15876         * Makefile (sc_pragma_columns): New syntax-check rule.
15877
15878 2010-10-04  Bruno Haible  <bruno@clisp.org>
15879
15880         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15881         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15882         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15883         Reported by Bruce Korb and Eric Blake.
15884
15885 2010-10-04  Bruno Haible  <bruno@clisp.org>
15886
15887         threadlib: Make option --with-libpth-prefix work.
15888         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15889         use $LIBPTH, not just -lpth.
15890
15891 2010-10-04  Bruno Haible  <bruno@clisp.org>
15892
15893         Avoid line length limitation from HP NonStop system header files.
15894         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15895         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15896         * lib/ctype.in.h: Likewise.
15897         * lib/dirent.in.h: Likewise.
15898         * lib/errno.in.h: Likewise.
15899         * lib/fcntl.in.h: Likewise.
15900         * lib/float.in.h: Likewise.
15901         * lib/getopt.in.h: Likewise.
15902         * lib/iconv.in.h: Likewise.
15903         * lib/inttypes.in.h: Likewise.
15904         * lib/langinfo.in.h: Likewise.
15905         * lib/locale.in.h: Likewise.
15906         * lib/math.in.h: Likewise.
15907         * lib/netdb.in.h: Likewise.
15908         * lib/netinet_in.in.h: Likewise.
15909         * lib/poll.in.h: Likewise.
15910         * lib/pthread.in.h: Likewise.
15911         * lib/pty.in.h: Likewise.
15912         * lib/sched.in.h: Likewise.
15913         * lib/se-selinux.in.h: Likewise.
15914         * lib/search.in.h: Likewise.
15915         * lib/signal.in.h: Likewise.
15916         * lib/spawn.in.h: Likewise.
15917         * lib/stdarg.in.h: Likewise.
15918         * lib/stddef.in.h: Likewise.
15919         * lib/stdint.in.h: Likewise.
15920         * lib/stdio.in.h: Likewise.
15921         * lib/stdlib.in.h: Likewise.
15922         * lib/string.in.h: Likewise.
15923         * lib/strings.in.h: Likewise.
15924         * lib/sys_file.in.h: Likewise.
15925         * lib/sys_ioctl.in.h: Likewise.
15926         * lib/sys_select.in.h: Likewise.
15927         * lib/sys_socket.in.h: Likewise.
15928         * lib/sys_stat.in.h: Likewise.
15929         * lib/sys_time.in.h: Likewise.
15930         * lib/sys_times.in.h: Likewise.
15931         * lib/sys_utsname.in.h: Likewise.
15932         * lib/sys_wait.in.h: Likewise.
15933         * lib/sysexits.in.h: Likewise.
15934         * lib/termios.in.h: Likewise.
15935         * lib/time.in.h: Likewise.
15936         * lib/unistd.in.h: Likewise.
15937         * lib/wchar.in.h: Likewise.
15938         * lib/wctype.in.h: Likewise.
15939         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15940         * modules/ctype (Makefile.am): Likewise.
15941         * modules/dirent (Makefile.am): Likewise.
15942         * modules/errno (Makefile.am): Likewise.
15943         * modules/fcntl-h (Makefile.am): Likewise.
15944         * modules/float (Makefile.am): Likewise.
15945         * modules/getopt-posix (Makefile.am): Likewise.
15946         * modules/iconv-h (Makefile.am): Likewise.
15947         * modules/inttypes (Makefile.am): Likewise.
15948         * modules/langinfo (Makefile.am): Likewise.
15949         * modules/locale (Makefile.am): Likewise.
15950         * modules/math (Makefile.am): Likewise.
15951         * modules/netdb (Makefile.am): Likewise.
15952         * modules/netinet_in (Makefile.am): Likewise.
15953         * modules/poll-h (Makefile.am): Likewise.
15954         * modules/pthread (Makefile.am): Likewise.
15955         * modules/pty (Makefile.am): Likewise.
15956         * modules/sched (Makefile.am): Likewise.
15957         * modules/search (Makefile.am): Likewise.
15958         * modules/selinux-h (Makefile.am): Likewise.
15959         * modules/signal (Makefile.am): Likewise.
15960         * modules/spawn (Makefile.am): Likewise.
15961         * modules/stdarg (Makefile.am): Likewise.
15962         * modules/stddef (Makefile.am): Likewise.
15963         * modules/stdint (Makefile.am): Likewise.
15964         * modules/stdio (Makefile.am): Likewise.
15965         * modules/stdlib (Makefile.am): Likewise.
15966         * modules/string (Makefile.am): Likewise.
15967         * modules/strings (Makefile.am): Likewise.
15968         * modules/sys_file (Makefile.am): Likewise.
15969         * modules/sys_ioctl (Makefile.am): Likewise.
15970         * modules/sys_select (Makefile.am): Likewise.
15971         * modules/sys_socket (Makefile.am): Likewise.
15972         * modules/sys_stat (Makefile.am): Likewise.
15973         * modules/sys_time (Makefile.am): Likewise.
15974         * modules/sys_times (Makefile.am): Likewise.
15975         * modules/sys_utsname (Makefile.am): Likewise.
15976         * modules/sys_wait (Makefile.am): Likewise.
15977         * modules/sysexits (Makefile.am): Likewise.
15978         * modules/termios (Makefile.am): Likewise.
15979         * modules/time (Makefile.am): Likewise.
15980         * modules/unistd (Makefile.am): Likewise.
15981         * modules/wchar (Makefile.am): Likewise.
15982         * modules/wctype (Makefile.am): Likewise.
15983
15984 2010-10-04  Bruno Haible  <bruno@clisp.org>
15985
15986         read-file tests: Avoid a test failure on NonStop Kernel.
15987         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15988         a regular file.
15989         Reported by Joachim Schmitz <schmitz@hp.com>.
15990
15991 2010-10-03  Bruno Haible  <bruno@clisp.org>
15992
15993         gnulib-tool: Fixes for --create-testdir with --libtool.
15994         * gnulib-tool (func_get_automake_snippet): Don't augment
15995         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15996         an executable.
15997         (func_create_testdir): Handle module 'alloca' like func_import.
15998         Reported by Bruce Korb <bruce.korb@gmail.com>.
15999
16000 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16001
16002         Avoid some lines longer than 80 characters.
16003         * lib/stdint.in.h: Break long comment lines.
16004         * lib/math.in.h: Likewise.
16005         (_GL_NUM_UINT_WORDS): New macro, for readability.
16006         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16007         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16008         * lib/stdlib.in.h: Likewise.
16009         * lib/spawn.in.h: Likewise.
16010         * lib/sys_socket.in.h: Update an URL.
16011         * lib/sys_stat.in.h: Break long line.
16012
16013 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16014
16015         Improve pmccabe2html.
16016         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16017         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16018         when the sources change. Remove the line in the HTML about "Used
16019         ranges" (which implied that there might be other unused ranges),
16020         rename "Resume" to "Summary" (easier to understand for more users).
16021         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16022         styles, and some unnecessary blank lines.
16023
16024 2010-10-03  Bruno Haible  <bruno@clisp.org>
16025             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16026
16027         acl: Add support for ACLs on NonStop Kernel.
16028         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16029         Check whether the function aclsort() exists.
16030         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16031         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16032         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16033         (acl_nontrivial [HAVE_ACLSORT]: New function.
16034         (file_has_acl): Implement for NonStop Kernel.
16035         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16036         (qset_acl): Implement for NonStop Kernel.
16037         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16038         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16039         (main): Implement for NonStop Kernel.
16040         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16041         Kernel. Handle this flavor.
16042         * tests/test-set-mode-acl.sh: Likewise.
16043         * tests/test-copy-acl.sh: Likewise.
16044         * tests/test-copy-file.sh: Likewise.
16045
16046 2010-10-03  Bruno Haible  <bruno@clisp.org>
16047
16048         Info about ACLs on NonStop Kernel.
16049         * doc/acl-resources.txt: Add info about NonStop Kernel.
16050         References by Joachim Schmitz <schmitz@hp.com>.
16051
16052 2010-10-02  Bruno Haible  <bruno@clisp.org>
16053
16054         Define missing EDQUOT on NonStop Kernel.
16055         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16056         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16057         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16058         missing.
16059         * doc/posix-headers/errno.texi: Mention the NSK bug.
16060         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16061         Reported by Joachim Schmitz <schmitz@hp.com>.
16062
16063 2010-10-02  Bruno Haible  <bruno@clisp.org>
16064
16065         Update doc for POSIX:2008.
16066         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16067         Update URL of POSIX specification.
16068
16069 2010-10-02  Bruno Haible  <bruno@clisp.org>
16070
16071         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16072         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16073         from gnulib, not from Automake.
16074
16075 2010-10-02  Bruno Haible  <bruno@clisp.org>
16076
16077         New module 'system-posix'.
16078         * modules/system-posix: New file.
16079         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16080         module is present.
16081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16082         GNULIB_SYSTEM_POSIX.
16083         * modules/stdlib (Depends-on): Remove sys_wait.
16084         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16085         * doc/posix-functions/system.texi: Mention the new module.
16086         * doc/posix-headers/stdlib.texi: Likewise.
16087         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16088         define test_sys_wait_macros to a no-op.
16089         Reported by Sam Steingold <sds@gnu.org>.
16090
16091 2010-09-30  Bruno Haible  <bruno@clisp.org>
16092
16093         More renaming from 'getdate' to 'get_date'.
16094         * doc/get_date.texi: Renamed from doc/getdate.texi.
16095         * modules/get_date (Files): Update.
16096         * MODULES.html.sh (Date and time <time.h>): Update.
16097         * DEPENDENCIES: Update.
16098         * gnulib-tool: Update comment.
16099         * m4/bison.m4 (gl_BISON): Likewise.
16100         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16101
16102 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16103
16104         bootstrap: support ACLOCAL_FLAGS during aclocal
16105         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16106         can add additional -I dir for third-party .m4 files.
16107
16108 2010-09-30  Eric Blake  <eblake@redhat.com>
16109
16110         bootstrap: use glibtoolize on MacOS
16111         * build-aux/bootstrap (check_versions): Convert libtool into
16112         libtoolize.
16113         (tool search): Move libtool check earlier, and look for
16114         glibtoolize for MacOS.
16115         (gnulib_tool_options): Auto-add --libtool when appropriate.
16116         Reported by Justin Clift.
16117
16118         poll: fix typo that broke test on MacOS
16119         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16120         Reported by Justin Clift.
16121
16122         getdate: rename to get_date
16123         Note: getdate.h is not renamed, to minimize client impact.
16124         * modules/getdate: Mark obsolete.  Move old contents...
16125         * modules/get_date: ...to new module name.
16126         * modules/getdate-tests: Move...
16127         * modules/get_date-tests: ...here.
16128         * m4/getdate.m4: Move...
16129         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16130         * lib/getdate.y: Move...
16131         * lib/get_date.y: ...here.
16132         * tests/test-getdate.c: Move...
16133         * tests/test-get_date.c: ...here.
16134         * doc/posix-functions/getdate.texi (getdate): Update name.
16135         * NEWS: Mention the change.
16136
16137 2010-09-29  Bruno Haible  <bruno@clisp.org>
16138
16139         Separate the module 'waitpid' from the module 'sys_wait'.
16140         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16141         present.
16142         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16143         gl_MODULE_INDICATOR_FOR_TESTS.
16144         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16145         * modules/sys_wait (Depends-on): Remove waitpid.
16146         (Makefile.am): Substitute GNULIB_WAITPID.
16147         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16148         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16149         signature only if the 'waitpid' module is present.
16150         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16151         * NEWS: Mention the change.
16152         * modules/grantpt (Depends-on): Add waitpid.
16153         * modules/wait-process (Depends-on): Likewise.
16154
16155 2010-09-29  Bruno Haible  <bruno@clisp.org>
16156
16157         More tests for module 'sys_wait'.
16158         * modules/sys_wait-c++-tests: New file.
16159         * tests/test-sys_wait-c++.cc: New file.
16160         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16161         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16162
16163 2010-09-29  Bruno Haible  <bruno@clisp.org>
16164
16165         New module 'waitpid'.
16166         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16167         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16168         Don't include <process.h>.
16169         (waitpid): Declare only, using modern idiom.
16170         * m4/waitpid.m4: New file.
16171         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16172         * modules/waitpid: New file.
16173         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16174         (Makefile.am): Update.
16175         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16176
16177 2010-09-28  Bruno Haible  <bruno@clisp.org>
16178
16179         poll: Assume ANSI C.
16180         * lib/poll.c (poll): Use an ANSI C declaration.
16181
16182 2010-09-28  Bruno Haible  <bruno@clisp.org>
16183
16184         poll-h: Create poll.h on all platforms.
16185         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16186         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16187         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16188         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16189         (gl_REPLACE_POLL_H): Don't set POLL_H.
16190         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16191         * modules/poll-h (Depends-on): Add include_next.
16192         (Makefile.am): Create poll.h unconditionally. Substitute also
16193         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16194
16195 2010-09-28  Bruno Haible  <bruno@clisp.org>
16196
16197         Tests for module 'poll-h'.
16198         * modules/poll-h-c++-tests: New file.
16199         * tests/test-poll-h-c++.cc: New file.
16200
16201         Tests for module 'poll-h'.
16202         * modules/poll-h-tests: New file.
16203         * tests/test-poll-h.c: New file.
16204
16205 2010-09-28  Bruno Haible  <bruno@clisp.org>
16206
16207         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16208         * modules/poll-h (Depends-on): Add 'extensions'.
16209
16210 2010-09-28  Bruno Haible  <bruno@clisp.org>
16211
16212         New module 'poll-h'.
16213         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16214         (poll): Use modern idiom.
16215         * modules/poll-h: New file.
16216         * modules/poll (Files): Remove lib/poll.in.h.
16217         (Depends-on): Add poll-h.
16218         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16219         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16220         * m4/poll_h.m4: New file.
16221         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16222         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16223         and invoke gl_REPLACE_POLL_H.
16224         * lib/poll.c: Use common idiom.
16225         * tests/test-poll.c: Likewise.
16226         * doc/posix-headers/poll.texi: Mention the poll-h module.
16227         Suggested by Eric Blake.
16228
16229 2010-09-26  Bruno Haible  <bruno@clisp.org>
16230
16231         sys_wait: Implement WSTOPSIG.
16232         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16233         Reported by Simon Josefsson.
16234
16235 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16236
16237         stdlib, sys_wait: Avoid compilation error on mingw.
16238         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16239
16240 2010-09-26  Bruno Haible  <bruno@clisp.org>
16241
16242         stdlib tests: Avoid code duplication.
16243         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16244         * modules/sys_wait-tests (Files): Likewise.
16245         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16246         * tests/test-stdlib.c: Include test-sys_wait.h.
16247         (main): Invoke test_sys_wait_macros.
16248         * tests/test-sys_wait.c: Include test-sys_wait.h.
16249         (main): Invoke test_sys_wait_macros.
16250
16251 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16252
16253         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16254         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16255         sure Windows sockets are working before calling getaddrinfo.
16256         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16257         * doc/gnulib.texi (Windows sockets): Fix typo.
16258
16259 2010-09-25  Bruno Haible  <bruno@clisp.org>
16260
16261         Tests for module 'regex-quote'.
16262         * modules/regex-quote-tests: New file.
16263         * tests/test-regex-quote.c: New file.
16264
16265         New module 'regex-quote'.
16266         * lib/regex-quote.h: New file.
16267         * lib/regex-quote.c: New file.
16268         * modules/regex-quote: New file.
16269         Suggested by Reuben Thomas <rrt@sc3d.org>.
16270
16271 2010-09-24  Bruno Haible  <bruno@clisp.org>
16272
16273         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16274         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16275
16276 2010-09-23  Bruno Haible  <bruno@clisp.org>
16277
16278         setenv: Relax license.
16279         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16280         Blake.
16281         Requested by Eric Blake.
16282
16283 2010-09-22  Bruno Haible  <bruno@clisp.org>
16284
16285         termios: Relax license.
16286         * modules/termios (License): Change to LGPLv2+.
16287         Requested by Eric Blake.
16288
16289 2010-09-22  Bruno Haible  <bruno@clisp.org>
16290
16291         threadlib: Allow the package to change the default to 'no'.
16292         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16293         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16294         Reported by Paul Eggert.
16295
16296 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16297             Bruno Haible  <bruno@clisp.org>
16298
16299         Fix endless loop in mbmemcasecoll.
16300         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16301         byte.
16302         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16303
16304 2010-09-22  Bruno Haible  <bruno@clisp.org>
16305
16306         Tests for module 'memcoll'.
16307         * modules/memcoll-tests: New file.
16308         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16309
16310         memcoll, xmemcoll: Clarify size vs. length.
16311         * modules/memcoll.c (memcoll0): Clarify specification.
16312         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16313         passed to collate_error.
16314
16315 2010-09-22  Bruno Haible  <bruno@clisp.org>
16316
16317         Tests for module 'memcasecmp'.
16318         * modules/memcasecmp-tests: New file.
16319         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16320
16321 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16322
16323         * lib/pthread.in.h: Add split double-inclusion guard, and include
16324         system <pthread.h> if there is one.  Use @@-style as in other
16325         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16326         pthread.h doesn't.
16327         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16328         (pthread_mutexattr_settype, pthread_mutex_trylock):
16329         New static inline functions, if there's no system <pthread.h>.
16330         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16331         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16332         Approximate with mutexes if the system lacks spinlocks, as in
16333         MacOS.
16334         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16335         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16336         @@-style.  Check for spinlocks separately.
16337         (gl_PTHREAD_DEFAULTS): New macro.
16338         * modules/pthread: Redo to use a more typical style for in.h files.
16339
16340 2010-09-21  Eric Blake  <eblake@redhat.com>
16341
16342         net_if: enhance tests
16343         * tests/test-net_if.c (main): Move signature checks earlier.
16344         Print failures to stderr.
16345         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16346         Document the bug that we do not yet fix.
16347
16348 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16349
16350         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16351         about gnulib, not GSS.
16352
16353 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16354
16355         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16356         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16357         for Emacs.
16358         * build-aux/pmccabe2html: Make Makefile.am example code more
16359         cut-and-paste friendly.
16360
16361 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16362
16363         * tests/test-net_if.c: New file.
16364         * modules/net_if-tests: New file.
16365
16366 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16367
16368         pthread: add pthread_spin_destroy
16369         * lib/pthread.in.h (pthread_spin_destroy): New function.
16370
16371 2010-09-19  Bruno Haible  <bruno@clisp.org>
16372
16373         gnulib-tool: Fix --help output.
16374         * gnulib-tool (func_usage): Fix help message.
16375         Reported by Reuben Thomas <rrt@sc3d.org>.
16376
16377 2010-09-18  Jim Meyering  <meyering@redhat.com>
16378
16379         maint.mk: avoid unexpanded \n in two diagnostics
16380         * top/maint.mk (sc_prohibit_always_true_header_tests):
16381         Don't use a literal \n in a halt=... assignment.  It would not be
16382         expanded, and the two \n bytes would appear in the diagnostic output
16383         rather than the desired newline.  Use halt=$$(printf ... instead.
16384         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16385
16386 2010-09-18  Bruno Haible  <bruno@clisp.org>
16387
16388         netinet_in: Doc tweak.
16389         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16391
16392 2010-09-18  Jim Meyering  <meyering@redhat.com>
16393
16394         init.sh: correct an outdated comment
16395         * tests/init.sh (create_exe_shims_):  s/function/alias/
16396
16397         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16398         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16399         a file named "*.exe" is removed between the glob expansion and the
16400         processing of that oddly named file.
16401
16402 2010-09-17  Eric Blake  <eblake@redhat.com>
16403
16404         mirbsd: add some more support
16405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16406         in BSD family.
16407         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16408         devices as OpenBSD.
16409         * m4/host-os.m4 (mirbsd): Add MirBSD.
16410
16411         tests: fix unportable assumption on sys/wait.h
16412         * tests/test-sys_wait.c (main): Relax test.
16413         * tests/test-stdlib.c (main): Likewise.
16414
16415         init.sh: accomodate directory with no .exes
16416         * tests/init.sh: Accomodate directory containing only scripts.
16417
16418         tests: avoid compiler warning
16419         * tests/test-stdlib.c (main): Use the variable.
16420
16421         fdutimens, fdutimensat: update signature, again
16422         * lib/utimens.h (gl_futimens): Delete, and move signature...
16423         (fdutimens): ...here.
16424         (fdutimensat): Rearrange signature.
16425         (lutimensat): Rename variable for clarity.
16426         * lib/fdutimensat.c (fdutimensat): Update signature.
16427         * lib/utimens.c (fdutimens): Likewise.
16428         (gl_futimens): Delete.
16429         (utimens, lutimens): Update callers.
16430         * lib/futimens.c (futimens): Likewise.
16431         * tests/test-fdutimensat.c: Likewise.
16432         * tests/test-utimens.c: Likewise.
16433         * tests/test-futimens.h: Update comment.
16434         * NEWS: Mention this.
16435         Suggested by Paul Eggert.
16436
16437 2010-09-17  Bruno Haible  <bruno@clisp.org>
16438
16439         Take over the maintenance of some older macros from Autoconf.
16440         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16441         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16442         GNU Autoconf.
16443         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16444         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16445
16446 2010-09-17  Eric Blake  <eblake@redhat.com>
16447
16448         fdutimensat: drop atflag validation
16449         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16450         with valid fd, to close a race scenario where futimens is
16451         unsupported and FILE was replaced by a symlink.
16452         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16453         accordingly.
16454         Suggested by Paul Eggert.
16455
16456 2010-09-16  Bruno Haible  <bruno@clisp.org>
16457
16458         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16459         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16460
16461 2010-09-16  Bruno Haible  <bruno@clisp.org>
16462
16463         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16464         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16465         login_tty exists.
16466         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16467
16468 2010-09-16  Bruno Haible  <bruno@clisp.org>
16469
16470         login_tty: Make the replacement code work on BSD systems.
16471         * lib/login_tty.c: Include <sys/ioctl.h>.
16472         (login_tty): Use ioctl TIOCSCTTY when available.
16473         * modules/login_tty (Depends-on): Add sys_ioctl.
16474         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16475
16476 2010-09-16  Bruno Haible  <bruno@clisp.org>
16477
16478         login_tty: Stricter unit test.
16479         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16480         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16481         and tcgetsid() after login_tty.
16482         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16483
16484 2010-09-16  Bruno Haible  <bruno@clisp.org>
16485
16486         New module 'tcgetsid'.
16487         * lib/tcgetsid.c: New file.
16488         * m4/tcgetsid.m4: New file.
16489         * modules/tcgetsid: New file.
16490         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16491         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16492         GNULIB_TCGETSID, HAVE_TCGETSID.
16493         * lib/termios.in.h: Include <sys/types.h>.
16494         (tcgetsid): New declaration.
16495         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16496         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16497         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16498         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16499
16500 2010-09-16  Bruno Haible  <bruno@clisp.org>
16501
16502         Tests for module 'termios'.
16503         * modules/termios-c++-tests: New file.
16504         * modules/termios-tests: New file.
16505         * tests/test-termios-c++.cc: New file.
16506         * tests/test-termios.c: New file.
16507
16508         New module 'termios'.
16509         * modules/termios: New file.
16510         * lib/termios.in.h: New file.
16511         * m4/termios_h.m4: New file.
16512         * doc/posix-headers/termios.texi: Mention the new module.
16513
16514 2010-09-16  Eric Blake  <eblake@redhat.com>
16515
16516         fdutimensat: add an atflag parameter
16517         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16518         * lib/utimens.h (fdutimensat): Update prototype.
16519         * tests/test-fdutimensat.c: Adjust test to match.
16520         * NEWS: Document the change.
16521         Suggested by Paul Eggert.
16522
16523 2010-09-16  Bruno Haible  <bruno@clisp.org>
16524
16525         Fix typos in comments.
16526         * lib/striconveh.h: Fix typo in comment.
16527         * lib/login_tty.c (login_tty): Likewise.
16528
16529 2010-09-15  Bruno Haible  <bruno@clisp.org>
16530
16531         stdlib: clarify MirBSD WEXITSTATUS bug
16532         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16533         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16534
16535 2010-09-15  Eric Blake  <eblake@redhat.com>
16536
16537         stdlib: work around MirBSD WEXITSTATUS bug
16538         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16539         * modules/stdlib (Depends-on): Add sys_wait.
16540         * tests/test-sys_wait.c (main): Enhance test.
16541         * tests/test-stdlib.c (main): Likewise.
16542         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16543
16544         docs: mention MacOS issue with WEXITSTATUS(constant)
16545         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16546         issue.
16547         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16548
16549         strnlen: add tests
16550         * modules/strnlen-tests: New file.
16551         * tests/test-strnlen.c: Likewise.
16552
16553 2010-09-14  Bruno Haible  <bruno@clisp.org>
16554
16555         unistr/base: Avoid link errors when module 'libunistring' is also used.
16556         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16557         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16558         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16559         Declare also when HAVE_LIBUNISTRING is set.
16560         Reported by Pádraig Brady <P@draigbrady.com>.
16561
16562 2010-09-14  Eric Blake  <eblake@redhat.com>
16563
16564         test-rawmemchr: make more robust
16565         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16566         (Depends-on, configure.ac): Add needed prerequisites to use it.
16567         * modules/memchr-tests (Files, Depends-on, configure.ac):
16568         Likewise, to avoid implicit reliance on memchr module prereqs.
16569         * tests/test-memchr.c (main): Ensure proper masking.
16570         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16571         reads.
16572
16573         memchr: detect glibc Alpha bug
16574         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16575         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16576         Alpha.
16577         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16578         * tests/test-memchr.c (main): Enhance test.
16579         Reported by Nelson H. F. Beebe.
16580
16581 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16582
16583         fts, getcwd, glob: audit for dirfd returning -1
16584         * lib/fts.c (opendir): Remove #define; no longer used.
16585         (opendirat): New arg PDIR_FD.  All callers changed.
16586         (fts_build, _opendir2): Use new opendirat to avoid the need for
16587         dirfd, or for checking whether dirfd returns a negative value.
16588         Don't use opendir; always use openat followed by fdopendir.
16589         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16590         it.
16591         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16592         returns -1 here.
16593         * modules/fts (Depends-on): Remove dirfd.
16594         * modules/getcwd (Depends-on): Likewise.
16595
16596 2010-09-13  Eric Blake  <eblake@redhat.com>
16597
16598         float: fix broken MirBSD header
16599         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16600         * doc/posix-headers/float.texi (float.h): Document it.
16601
16602 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16603
16604         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16605         * lib/fts.c (opendirat): New arg extra_flags.
16606         (__opendir2): Use it to avoid following symlinks when opening
16607         a directory, if symlinks are not supposed to be followed.  See
16608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16609
16610         fdopendir: preserve argument fd before returning
16611         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16612         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16613         (fdopendir): Use them, arranging for FD to be open to the same
16614         directory that it was when it started.  (It might be temporarily
16615         closed while fdopendir is running, so this not thread- or
16616         signal-safe.)  Be careful to do the right thing even when file
16617         descriptors are scarce and dup fails with errno == EMFILE.  See
16618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16619
16620 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16621
16622         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16623         * NEWS: Document change.
16624         * m4/regex.m4: Disable test for regoff_t size.
16625
16626 2010-09-13  Jim Meyering  <meyering@redhat.com>
16627
16628         fts: don't operate on an invalid file descriptor after failed dup
16629         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16630         negative file descriptor.
16631
16632 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16633
16634         savedir: add streamsavedir, deprecate fdsavedir
16635         * NEWS: Mention deprecation of fdsavedir.
16636         * lib/savedir.c (streamsavedir): New extern function, whose name
16637         ends in "savedir" to be consistent with the others.  This differs
16638         from savedirstream in that it doesn't close its argument.  The
16639         next version of GNU tar will use this instead of fdsavedir, to
16640         avoid some race conditions and conserve file descriptors.
16641         (savedirstream): Reimplement as a wrapper around streamsavedir.
16642         (fdsavedir): Add a comment deprecating this function.  As far as
16643         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16644         * lib/savedir.h (streamsavedir): New decl.
16645         (fdsavedir): Add a comment deprecating this.
16646
16647 2010-09-10  Bruno Haible  <bruno@clisp.org>
16648
16649         langinfo: Fix last commit.
16650         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16651         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16653
16654 2010-09-10  Bruno Haible  <bruno@clisp.org>
16655
16656         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16657         * lib/progreloc.c (O_EXEC): Define fallback.
16658
16659 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16660
16661         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16662         * NEWS: Document recent changes to fcntl-h.
16663         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16664         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16665         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16666         Similarly for O_SEARCH; this last was already true, but not documented.
16667         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16668         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16669         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16670         Likewise.
16671         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16672         is zero, not whether it is defined.
16673         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16674         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16675         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16676
16677 2010-09-10  Bruno Haible  <bruno@clisp.org>
16678
16679         langinfo, nl_langinfo: Fix for IRIX 5.3.
16680         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16681         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16682         HAVE_LANGINFO_YESEXPR.
16683         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16684         HAVE_LANGINFO_YESEXPR.
16685         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16686         HAVE_LANGINFO_T_FMT_AMPM is 0.
16687         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16688         HAVE_LANGINFO_YESEXPR is 0.
16689         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16690         NOEXPR.
16691         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16692         * doc/posix-functions/nl_langinfo.texi: Likewise.
16693         Reported by Eric Blake.
16694
16695 2010-09-10  Bruno Haible  <bruno@clisp.org>
16696
16697         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16698         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16699         on FreeBSD 8.0 and OpenBSD 4.6.
16700         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16701         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16702         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16703         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16704         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16705         ac_includes_default.
16706         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16707
16708 2010-09-09  Eric Blake  <eblake@redhat.com>
16709
16710         strsignal: work around NetBSD bug
16711         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16712         * lib/string.in.h (includes): Likewise.
16713         * doc/posix-functions/strsignal.texi (strsignal): Document the
16714         bug.
16715         Reported by Nelson H. F. Beebe.
16716
16717         gnulib-tool: work with NetBSD /bin/sh
16718         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16719         (func_get_description, func_get_comment, func_get_status)
16720         (func_get_notice, func_get_applicability, func_get_filelist)
16721         (func_get_dependencies, func_get_autoconf_early_snippet)
16722         (func_get_autoconf_snippet, func_get_automake_snippet)
16723         (func_get_include_directive, func_get_link_directive)
16724         (func_get_license, func_get_maintainer, func_import): Avoid
16725         shell syntax errors from parsing syntax extensions.
16726
16727 2010-09-09  Bruno Haible  <bruno@clisp.org>
16728
16729         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16730         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16731         a reliable way to determine whether the 'alias' command works.
16732
16733 2010-09-08  Jim Meyering  <meyering@redhat.com>
16734
16735         init.sh: penalize a set-x-impaired shell; don't disqualify it
16736         * tests/init.sh: Too many shells corrupt application stderr when
16737         you set -x, so we can't afford to disqualify them, since at least
16738         on Irix-6.5, that would disqualify all bourne shells.
16739         Instead, use a two-pass approach.
16740         On the first pass, try to find a shell that meets the stricter
16741         condition that set -x does not corrupt stderr.
16742         If no shell meets the stricter condition, retest each candidate
16743         shell, but without that extra condition.  Finally, when
16744         VERBOSE=yes is requested and set -x might cause trouble, simply
16745         issue a warning and refrain from enabling debug output.
16746
16747 2010-09-08  Eric Blake  <eblake@redhat.com>
16748
16749         unsetenv: fix OpenBSD bug
16750         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16751         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16752         documentation.
16753         Reported by Jim Meyering.
16754
16755         strtod: work around IRIX 6.5 bug
16756         * lib/strtod.c (strtod): Reparse number on shorter string if
16757         exponent parse was invalid.
16758         * tests/test-strtod.c (main): Add check for "0x1p 2".
16759         Reported by Tom G. Christensen.
16760
16761         getopt: optimize previous patch
16762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16763         empty variable.  Speed up awk script.
16764         Reported by Paolo Bonzini.
16765
16766 2010-09-08  Jim Meyering  <meyering@redhat.com>
16767
16768         test.sh: disqualify shells for which set -x corrupts stderr
16769         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16770         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16771         appear in stderr output.  For example, this command:
16772             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16773         prints "P=1" on those two systems:
16774
16775 2010-09-08  Bruno Haible  <bruno@clisp.org>
16776
16777         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16778         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16779         commands, because some shells ignore redirections when there is an
16780         error in the command lookup.
16781         Reported by Eric Blake.
16782
16783 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16784
16785         * lib/regex.h: Fix a mention of `regex_compile' (should be
16786         `re_compile_pattern').
16787         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16788         (re_set_registers): Correct name of parameter in comment.
16789
16790         * doc/regex.texi: Add documentation for missing syntax flags.
16791         Remove commented-out documentation of defunct syntax option
16792         RE_NO_EMPTY_ALTS.
16793         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16794         Add documentation of re_set_registers.
16795         Document trick to re-use a pattern buffer by setting fastmap manually.
16796         Update documentation of struct re_pattern_buffer per public members.
16797         Uncomment documentation of equivalence class operators and
16798         collating symbol operators, since they are now implemented,
16799         Explain leftmost-longest matching in relation to alternatives.
16800         Tidy documentation of substring matching.
16801         Remove POSIX documentation, which is done better in
16802         glibc, and refer the reader there. Keep BSD API documentation, as
16803         that is not readily available elsewhere.
16804
16805 2010-09-07  Eric Blake  <eblake@redhat.com>
16806
16807         getopt: handle POSIXLY_CORRECT set but not exported
16808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16809         export state of POSIXLY_CORRECT, due to bash set -o posix.
16810         Reported by Dustin J. Mitchell.
16811
16812 2010-09-05  Bruno Haible  <bruno@clisp.org>
16813
16814         gnulib-tool: Highlight the changed options.
16815         * gnulib-tool (func_usage): Display the --import, --add-import,
16816         --remove-import explanations in bold font.
16817
16818 2010-09-06  Karl Berry  <karl@gnu.org>
16819
16820         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16821
16822 2010-09-05  Bruno Haible  <bruno@clisp.org>
16823
16824         uniwidth/width: Update comment.
16825         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16826         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16827
16828 2010-09-05  Bruno Haible  <bruno@clisp.org>
16829
16830         isinf, isnan: Relax license.
16831         * modules/isinf (License): Change from GPL to LGPL, with consent from
16832         Ben Pfaff.
16833         * modules/isnan (License): Likewise.
16834         Requested by Ludovic Courtès.
16835
16836 2010-09-04  Bruno Haible  <bruno@clisp.org>
16837
16838         gnulib-tool: Help migration from --import to --add-import or --update.
16839         * gnulib-tool: Emit a verbose error message when --import is used
16840         without any module name.
16841
16842 2010-09-04  Bruno Haible  <bruno@clisp.org>
16843
16844         Update doc about gnulib-tool.
16845         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16846         'gnulib-tool --update' in more detail.
16847         Reported by Eric Blake.
16848
16849 2010-09-04  Bruno Haible  <bruno@clisp.org>
16850
16851         gnulib-tool: Change --import. New options --add/remove-import.
16852         * gnulib-tool: New options --add-import, --remove-import.
16853         (func_usage): Document them.
16854         (have_associative): Define always.
16855         (func_import): In import mode, don't merge the specified settings with
16856         the cached settings. Implement remove-import mode.
16857         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16858         Explain when to use them versus --import.
16859         (Simple update): Use --add-import instead of --import.
16860         * NEWS: Mention the change.
16861
16862 2010-09-04  Bruno Haible  <bruno@clisp.org>
16863
16864         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16865         separate gnulib.mk.
16866
16867 2010-09-04  Bruno Haible  <bruno@clisp.org>
16868
16869         gnulib-tool: Don't talk about CVS any more.
16870         * gnulib-tool (func_usage, func_import): Write "version control"
16871         instead of CVS.
16872
16873 2010-09-04  Jim Meyering  <meyering@redhat.com>
16874
16875         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16876         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16877         false positives (whose names may be ill-chosen) when searching
16878         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16879         would cause a false-positive.
16880
16881         avoid coreutils "make distcheck" failure
16882         Coreutils tests with an absolute build directory name that contains
16883         a space.  Not quoting this directory name caused a failure.
16884         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16885         * tests/test-vc-list-files-cvs.sh: Likewise.
16886
16887 2010-09-04  Bruno Haible  <bruno@clisp.org>
16888
16889         gnulib-tool: Avoid error when run in a package without Makefile.am.
16890         * gnulib-tool: When collecting the m4dirs in a package that does not
16891         have a Makefile.am, eliminate those directories that contain no
16892         gnulib-cache.m4. Fix expression that counts these directories.
16893
16894 2010-09-04  Bruno Haible  <bruno@clisp.org>
16895
16896         update-copyright test: Improve output when perl is missing or too old.
16897         * tests/test-update-copyright.sh: Move test of Perl version down after
16898         the test whether Perl exists. Provide an explanation relating Perl's
16899         error message to Automake's SKIP: message.
16900
16901 2010-09-04  Bruno Haible  <bruno@clisp.org>
16902
16903         Don't augment PATH in TESTS_ENVIRONMENT.
16904         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16905         set abs_aux_dir instead of augmenting PATH.
16906         * modules/vc-list-files-tests (Makefile.am): Likewise.
16907         * tests/test-update-copyright.sh: Augment PATH here.
16908         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16909         path_prepend_.
16910         * tests/test-vc-list-files-git.sh: Likewise.
16911
16912 2010-09-04  Jim Meyering  <meyering@redhat.com>
16913
16914         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16915         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16916
16917 2010-09-04  Bruno Haible  <bruno@clisp.org>
16918
16919         strdup: Fix compilation error in C++ mode.
16920         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16921         the macro.
16922
16923 2010-09-04  Bruno Haible  <bruno@clisp.org>
16924
16925         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16926         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16927         macro into a function.
16928         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16929
16930 2010-09-04  Bruno Haible  <bruno@clisp.org>
16931
16932         Set PATH_SEPARATOR the same way autoconf does.
16933         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16934         the value of PATH_SEPARATOR the same way autoconf-generated configure
16935         scripts do.
16936         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16937         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16938
16939 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16940
16941         Set PATH_SEPARATOR the same way autoconf does.
16942         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16943         the same way autoconf-generated configure scripts do.
16944         * posix-modules: Likewise.
16945
16946 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16947
16948         hash: fix safe_hasher const typo
16949         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16950         const; otherwise, there is a type error later.
16951
16952 2010-09-02  Jim Meyering  <meyering@redhat.com>
16953
16954         test-update-copyright.sh: require perl 5.8.0
16955         * tests/test-update-copyright.sh: Require 5.8.0,
16956         which Tom G. Christensen has confirmed is adequate,
16957         while 5.6.1 is not.
16958
16959 2010-09-02  Eric Blake  <eblake@redhat.com>
16960
16961         tests: init.sh improvements for re-exec'ing with zsh
16962         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16963         -vx through shell re-exec.
16964         Reported by Tom G. Christensen.
16965
16966         wctype: fix typo in previous commit
16967         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16968         Reported by Ludovic Courtès.
16969
16970 2010-09-02  Jim Meyering  <meyering@redhat.com>
16971
16972         test-update-copyright.sh: skip test if Perl is too old
16973         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16974         Reported by Tom G. Christensen.
16975
16976 2010-09-02  Bruno Haible  <bruno@clisp.org>
16977
16978         wctype: Avoid compilation error on IRIX 6.5.30.
16979         * lib/wctype.in.h (iswblank): Declare with a replacement if
16980         REPLACE_ISWBLANK is set.
16981         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16982         declared. Set REPLACE_ISWBLANK.
16983         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16984         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16985         * doc/posix-headers/wctype.texi: Likewise.
16986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16987
16988 2010-09-01  Bruno Haible  <bruno@clisp.org>
16989
16990         New module 'socketlib'.
16991         * modules/socketlib: New file.
16992         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16993         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16994         * modules/sockets (Depends-on): Add socketlib.
16995         Suggested by Sam Steingold <sds@gnu.org>.
16996
16997 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17000
17001         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17002         when one needs search access to a directory but not read access.
17003         On systems where it is available, it works in some cases where
17004         O_RDONLY does not, namely on directories that are searchable but
17005         not readable, and which need only to be searchable.  If O_SEARCH
17006         is not available, fall back to the traditional method of using
17007         O_RDONLY.
17008
17009         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17010         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17011         when opening a directory that needs only to be searchable.
17012         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17013         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17014         * lib/openat-proc.c (openat_proc_name): Likewise.
17015         * lib/openat.c (openat_needs_fchdir): Likewise.
17016         * lib/save-cwd.c (save_cwd): Likewise.
17017         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17018
17019 2010-08-28  Bruno Haible  <bruno@clisp.org>
17020
17021         New module 'host-cpu-c-abi'.
17022         * modules/host-cpu-c-abi: New file.
17023         * m4/host-cpu-c-abi.m4: New file, based on part of
17024         clisp/src/m4/general.m4.
17025         Requested by Sam Steingold <sds@gnu.org>.
17026
17027 2010-08-31  Eric Blake  <eblake@redhat.com>
17028         and Jim Meyering  <meyering@redhat.com>
17029
17030         hash: factor, and guard against misbehaving hasher function
17031         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17032         of table->hasher's return value.  Also protect against a hash value
17033         so large that adding it to table->bucket results in a NULL pointer.
17034         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17035         Use it in place of open-coded check-and-abort.
17036
17037 2010-08-30  Bruno Haible  <bruno@clisp.org>
17038
17039         hash: silence spurious clang warning
17040         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17041         Reported by Eric Blake.
17042
17043 2010-08-30  Eric Blake  <eblake@redhat.com>
17044
17045         strstr, memmem, strcasestr: avoid leaked shell message
17046         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17047         FreeBSD.
17048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17049         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17050
17051         tests: silence clang warning
17052         * tests/test-malloca.c (do_allocation): Avoid dead store.
17053
17054 2010-08-29  Bruno Haible  <bruno@clisp.org>
17055
17056         gettext: Fix recent mistake.
17057         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17058
17059 2010-08-29  Bruno Haible  <bruno@clisp.org>
17060
17061         selinux-h: Offer a --without-selinux option.
17062         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17063         --without-selinux was specified, skip all tests and define
17064         HAVE_SELINUX_SELINUX_H to 0.
17065         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17066         set LIB_SELINUX to empty.
17067         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17068         gl_LIBSELINUX. If --without-selinux was specified, replace
17069         selinux/context.h.
17070         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17071
17072 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17073             Bruno Haible  <bruno@clisp.org>
17074
17075         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17076         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17077         of HAVE_REALLOC.
17078         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17079         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17080         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17081         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17082
17083 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17084             Bruno Haible  <bruno@clisp.org>
17085
17086         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17087         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17088         HAVE_CALLOC.
17089         * lib/xmalloc.c: Update accordingly.
17090         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17091         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17092         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17093
17094 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17095             Bruno Haible  <bruno@clisp.org>
17096
17097         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17098         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17099         HAVE_MALLOC.
17100         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17101         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17102         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17103
17104 2010-08-29  Bruno Haible  <bruno@clisp.org>
17105
17106         Update modules list.
17107         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17108         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17109         (String handling <string.h>): Add astrxfrm.
17110         (File system functions): Add readlinkat.
17111
17112 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17113
17114         Tests for module 'realloc-gnu'.
17115         * modules/realloc-gnu-tests: New file.
17116         * tests/test-realloc-gnu.c: New file.
17117
17118         Tests for module 'calloc-gnu'.
17119         * modules/calloc-gnu-tests: New file.
17120         * tests/test-calloc-gnu.c: New file.
17121
17122         Tests for module 'malloc-gnu'.
17123         * modules/malloc-gnu-tests: New file.
17124         * tests/test-malloc-gnu.c: New file.
17125
17126 2010-08-28  Bruno Haible  <bruno@clisp.org>
17127
17128         Rename module 'realloc' -> 'realloc-gnu'.
17129         * modules/realloc-gnu: New file, copied from modules/realloc.
17130         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17131         obsolete.
17132         * modules/mgetgroups (Depends-on): Update.
17133         * doc/posix-functions/realloc.texi: Update.
17134         * NEWS: Mention the change.
17135
17136         Rename module 'calloc' -> 'calloc-gnu'.
17137         * modules/calloc-gnu: New file, copied from modules/calloc.
17138         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17139         obsolete.
17140         * doc/posix-functions/calloc.texi: Update.
17141         * NEWS: Mention the change.
17142
17143         Rename module 'malloc' -> 'malloc-gnu'.
17144         * modules/malloc-gnu: New file, copied from modules/malloc.
17145         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17146         obsolete.
17147         * modules/argp (Depends-on): Update.
17148         * modules/regex (Depends-on): Update.
17149         * doc/posix-functions/malloc.texi: Update.
17150         * NEWS: Mention the change.
17151
17152 2010-08-28  Eric Blake  <eblake@redhat.com>
17153
17154         pread, pwrite: add missing dependency
17155         * modules/pread (Depends-on): Add extensions.
17156         * modules/pwrite (Depends-on): Likewise.
17157
17158 2010-08-28  Bruno Haible  <bruno@clisp.org>
17159
17160         unistr/u*-strchr: Fix tests dependencies.
17161         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17162         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17163         Reported by Ian Beckwith <ianb@erislabs.net>.
17164
17165 2010-08-28  Bruno Haible  <bruno@clisp.org>
17166
17167         read-file: Don't occupy too much unused memory.
17168         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17169
17170 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17171             Eric Blake  <eblake@redhat.com>
17172             Bruno Haible  <bruno@clisp.org>
17173
17174         read-file: Avoid memory reallocations with regular files.
17175         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17176         (fread_file): With regular files, use the remaining length as the
17177         initial buffer size.  Check against overflow.
17178         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17179         sys_stat.
17180
17181 2010-08-28  Bruno Haible  <bruno@clisp.org>
17182
17183         ftello: Relax license.
17184         * modules/ftello (License): Relax to LGPLv2+.
17185         Reported by Eric Blake.
17186
17187 2010-08-28  Bruno Haible  <bruno@clisp.org>
17188
17189         Avoid relocwrapper link errors due to gnulib replacement functions.
17190         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17191         function.
17192         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17193
17194 2010-08-28  Bruno Haible  <bruno@clisp.org>
17195
17196         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17197         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17198         defined.
17199         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17200         Suggested by Eric Blake.
17201
17202 2010-08-28  Bruno Haible  <bruno@clisp.org>
17203
17204         sys_socket, netdb: Ensure socklen_t gets defined.
17205         * modules/sys_socket (Depends-on): Add socklen.
17206         * modules/netdb (Depends-on): Likewise.
17207         * modules/getaddrinfo (Depends-on): Remove socklen.
17208         * modules/getsockopt (Depends-on): Likewise.
17209         * modules/setsockopt (Depends-on): Likewise.
17210         * tests/test-sys_socket.c: Check that socklen_t is defined.
17211         * tests/test-netdb.c: Likewise.
17212         * m4/socklen.m4: Update comments.
17213         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17214
17215 2010-08-27  Eric Blake  <eblake@redhat.com>
17216
17217         login_tty: add missing dependency
17218         * modules/login_tty (Depends-on): Add pty.
17219
17220 2010-08-26  Eric Blake  <eblake@redhat.com>
17221
17222         lib-symbol-versions: fix m4 quoting
17223         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17224         format for AC_LINK_IFELSE.
17225
17226         glob: fix compile test
17227         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17228
17229         btowc: fix missing file
17230         * modules/btowc (Files): Also ship locale-fr.m4.
17231
17232         lseek: fix link test
17233         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17234         AC_LINK_IFELSE.
17235
17236         include_next: silence autoconf 2.68 warning
17237         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17238         AC_COMPILE_IFELSE as special.
17239         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17240         autoconf < 2.68.
17241
17242         acl: fix compilation test
17243         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17244         AC_COMPILE_IFELSE.
17245
17246 2010-08-26  Bruno Haible  <bruno@clisp.org>
17247
17248         Modernize AC_TRY_RUN invocations.
17249         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17250         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17251         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17252         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17253         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17254         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17255         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17257         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17258         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17259         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17260         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17261         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17262         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17264         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17265         gl_MBRLEN_NUL_RETVAL): Likewise.
17266         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17267         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17268         Likewise.
17269         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17270         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17271         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17272         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17273         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17274         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17275         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17276         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17277         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17278         Likewise.
17279         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17280         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17281         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17282         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17283         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17284         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17285         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17286         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17287         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17289
17290 2010-08-26  Bruno Haible  <bruno@clisp.org>
17291
17292         Modernize AC_TRY_LINK invocations.
17293         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17294         AC_TRY_LINK.
17295         * m4/argp.m4 (gl_ARGP): Likewise.
17296         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17297         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17298         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17299         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17300         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17301         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17302         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17303         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17304         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17305         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17306         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17307         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17308         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17309         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17310         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17311         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17312         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17313         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17314         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17315         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17316         Likewise.
17317         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17318         Likewise.
17319         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17320         Likewise.
17321         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17323         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17324         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17325         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17326         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17327         * m4/servent.m4 (gl_SERVENT): Likewise.
17328         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17329         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17330         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17331         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17332         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17333         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17334         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17335         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17336         * modules/tsearch-tests (configure.ac): Likewise.
17337
17338 2010-08-26  Bruno Haible  <bruno@clisp.org>
17339
17340         Modernize AC_TRY_COMPILE invocations.
17341         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17342         AC_TRY_COMPILE.
17343         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17344         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17345         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17346         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17347         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17348         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17349         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17350         * m4/lock.m4 (gl_LOCK): Likewise.
17351         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17352         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17353         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17354         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17355         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17356         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17357         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17358         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17359         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17360         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17361         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17362         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17363         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17364         extraneous semicolon.
17365
17366 2010-08-26  Jim Meyering  <meyering@redhat.com>
17367
17368         stat-time: relax license LGPL
17369         * modules/stat-time (License): Change from GPL to LGPL,
17370         with consent from all contributors, for use in libguile.
17371         Requested by Ludovic Courtès.
17372
17373 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17374
17375         poll: return immediately on POLLHUP.
17376         * lib/poll.c (poll): Always set timeout before wait_timeout is
17377         computed.
17378
17379 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17380
17381         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17382         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17383         rmdir ("dir/.//"), unlinkat.
17384
17385 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17386
17387         stdbool: avoid spurious failure with modern xlc
17388         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17389
17390 2010-08-24  Bruno Haible  <bruno@clisp.org>
17391
17392         getloadavg: simplify code
17393         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17394         gl_have_func. Update comments.
17395
17396 2010-08-24  Eric Blake  <eblake@redhat.com>
17397
17398         getloadavg: don't define SVR4 on cygwin
17399         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17400         only define SVR4 when -lkvm is required.
17401         Reported by Yaakov Selkowitz.
17402
17403 2010-08-24  Bruno Haible  <bruno@clisp.org>
17404
17405         priv-set: fix comment
17406         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17407
17408 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17409
17410         priv-set: fix comments
17411         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17412         to match code, as suggested by David Bartley in:
17413         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17414
17415 2010-08-23  Eric Blake  <eblake@redhat.com>
17416
17417         stdbool: avoid rejecting clang
17418         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17419         * tests/test-stdbool.c: Enable more tests if using the system
17420         <stdbool.h> instead of the gnulib replacement.
17421         (main): Move xlc bug test to a runtime test for all compilers.
17422         Reported by Anders Kaseorg.
17423
17424         argz: fix shell quoting issue
17425         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17426         Reported by Charles Wilson.
17427
17428 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17429             Erik Faye-Lund <kusmabite@gmail.com>
17430
17431         poll, select: handle ERROR_BROKEN_PIPE.
17432         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17433         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17434         * lib/select.c (win32_compute_revents): Do not mark a pipe
17435         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17436
17437 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17438
17439         fts: allow compilation with C++
17440         * lib/fts_.h: Specify extern "C" linkage with C++.
17441
17442 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17443
17444         Fix gnulib-tool sed script de-commentation for AIX sed.
17445         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17446         sed.
17447
17448 2010-08-17  Eric Blake  <eblake@redhat.com>
17449
17450         test-stddef: test for (some) offsetof bugs
17451         * tests/test-stddef.c: Enhance test to ensure correct type of
17452         offsetof.
17453         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17454         that we are not fixing at this time.
17455
17456 2010-08-15  Bruno Haible  <bruno@clisp.org>
17457
17458         stpncpy: Allow stpncpy to be defined as a macro.
17459         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17460         if it's already correctly declared.
17461         * lib/string.in.h (stpncpy): Undefine before redefining.
17462         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17463
17464 2010-08-14  Bruno Haible  <bruno@clisp.org>
17465
17466         Rename module 'memxfrm' to 'amemxfrm'.
17467         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17468         (amemxfrm): Renamed from memxfrm.
17469         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17470         (amemxfrm): Renamed from memxfrm.
17471         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17472         * NEWS: Mention the change.
17473         * MODULES.html.sh (String handling <string.h>): Update.
17474         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17475         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17476         * lib/unicase/u16-casexfrm.c: Likewise.
17477         * lib/unicase/u32-casexfrm.c: Likewise.
17478         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17479         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17480         * lib/uninorm/u16-normxfrm.c: Likewise.
17481         * lib/uninorm/u32-normxfrm.c: Likewise.
17482         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17483         memxfrm.
17484         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17485         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17486         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17487         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17488         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17489         Suggested by Paul Eggert.
17490
17491 2010-08-14  Bruno Haible  <bruno@clisp.org>
17492
17493         Tests for module 'astrxfrm'.
17494         * modules/astrxfrm-tests: New file.
17495         * tests/test-astrxfrm.c: New file.
17496
17497         New module 'astrxfrm'.
17498         * lib/astrxfrm.h: New file.
17499         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17500         * modules/astrxfrm: New file.
17501
17502 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17503
17504         regex: Tweak doc.
17505         * doc/regex.texi (Overview): Don't mention regex.c.
17506         (GNU Regular Expression Compiling): Likewise.
17507         (Match-end-of-line Operator): Mention 'not_eol'.
17508
17509 2010-08-14  Brian Gough  <bjg@gnu.org>
17510             Bruno Haible  <bruno@clisp.org>
17511
17512         git-merge-changelog: add doc relating to use with bzr and hg.
17513         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17514
17515 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17516
17517         pthread: fix pthread.h creation for srcdir != builddir
17518         * modules/pthread (Makefile.am): Fix the rule to work also in a
17519         non-srcdir build.
17520
17521 2010-08-13  Karl Berry  <karl@gnu.org>
17522
17523         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17524         * doc/posix-*/*: force line break before @url of POSIX
17525         specifications.
17526         Suggested by Werner Lemberg.
17527
17528 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17529
17530         strtod: fix const diagnostic
17531         * lib/strtod.c (strtod): Don't assign const char * to char *,
17532         as this elicits a warning from GCC when warnings are enabled.
17533
17534 2010-08-10  Pádraig Brady <P@draigbrady.com>
17535         and Eric Blake  <eblake@redhat.com>
17536
17537         copy-acl: ignore ENOTSUP on HP-UX
17538         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17539         so that it is available for HP-UX.
17540         * lib/copy-acl.c (qcopy_acl): Use it.
17541         Reported by Patrick M. Callahan.
17542
17543 2010-08-10  Eric Blake  <eblake@redhat.com>
17544
17545         open, chown: relax license
17546         * modules/open (License): Change to LGPLv2+, with consent by all
17547         authors, for use in augeas.
17548         * modules/chown (License): Likewise.
17549         * modules/lchown (Likewise): Likewise.
17550         Requested by Adam Stokes.
17551
17552 2010-08-09  Karl Berry  <karl@gnu.org>
17553
17554         * build-aux/ar-lib: new file, import from Automake.
17555         * config/srclist.txt: autocheck for updates.
17556
17557 2010-08-09  Eric Blake  <eblake@redhat.com>
17558
17559         readlinkat: adjust client modules
17560         * modules/areadlinkat (Depends-on): Use readlinkat, not
17561         symlinkat.
17562         * modules/areadlinkat-with-size (Depends-on): Likewise.
17563
17564         mknod: be more vocal about danger of running tests as root
17565         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17566         root, since that is just asking for problems.
17567         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17568
17569         readlinkat: split into its own module
17570         * modules/symlinkat: Split readlinkat...
17571         * modules/readlinkat: ...into separate module.
17572         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17573         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17574         * lib/symlinkat.c (readlinkat): Move...
17575         * lib/readlinkat.c: ...into new file.
17576         * modules/symlinkat-tests: Split readlinkat test...
17577         * modules/readlinkat-tests: ...into separate module.
17578         * tests/test-symlinkat.c: Split...
17579         * tests/test-readlinkat.c: ...into new file.
17580         * NEWS: Document the split.
17581         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17582         * lib/unistd.in.h (readlinkat): Likewise.
17583         Suggested by Bruno Haible.
17584
17585 2010-08-08  Bruno Haible  <bruno@clisp.org>
17586
17587         memxfrm: Speed up.
17588         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17589         that usually only one call to strxfrm is necessary for each string
17590         part.
17591         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17592
17593 2010-08-07  Karl Berry  <karl@gnu.org>
17594
17595         * doc/posix-headers/limits.texi,
17596         * doc/posix-functions/malloc.texi,
17597         * doc/posix-functions/strsignal.texi: missing @item.
17598         * doc/ld-version-script.texi: spurious leading i.
17599         * doc/regex.texi (Interval Operators): no commas inside @var.
17600
17601 2010-08-01  Bruno Haible  <bruno@clisp.org>
17602
17603         Integrate the regex documentation.
17604         * doc/gnulib.texi: Define 'cn' index.
17605         (Regular expressions): New a chapter that includes regex.texi and
17606         regexprops-generic.texi.
17607         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17608         syntax.
17609
17610         Whitespace cleanup.
17611         * doc/regex.texi: Remove trailing spaces.
17612
17613         Add regex documentation.
17614         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17615         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17616         Written by Kathy A. Hargreaves and Karl Berry.
17617
17618 2010-08-01  Bruno Haible  <bruno@clisp.org>
17619
17620         link: Update documentation.
17621         * doc/posix-functions/link.texi: Update regarding Solaris.
17622
17623 2010-07-31  Bruno Haible  <bruno@clisp.org>
17624
17625         Update modules list.
17626         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17627         (String handling <string.h>): Add memcmp2, memxfrm.
17628         (Container data structures): Add xlist, xsublist, xoset.
17629         (Core language properties): Add alignof, unused-parameter.
17630         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17631         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17632         (Unibyte characters <ctype.h>): New section.
17633         (String handling <string.h>): New section.
17634         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17635         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17636         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17637         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17638         tan, tanh, tanl, y0, y1, yn.
17639         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17640         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17641         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17642         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17643         unlockpt, vdprintf, vdprintf-posix.
17644         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17645         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17646         xconcat-filename.
17647         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17648         getdtablesize, pipe2, pipe2-safer.
17649         (Security): New section.
17650         (Networking functions): Add accept4.
17651         (Signal handling): Add sigpipe.
17652         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17653         mbmemcasecoll.
17654         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17655         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17656         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17657         pipe-filter-ii.
17658         (Misc): Add argp-version-etc, login_tty, parse-duration.
17659
17660 2010-07-31  Bruno Haible  <bruno@clisp.org>
17661
17662         Improve doc in MODULES.html.
17663         * modules/linkat (Description): Add the word "function".
17664         * modules/mkfifo (Description): Likewise.
17665         * modules/mknod (Description): Likewise.
17666         * modules/remove (Description): Likewise.
17667         * modules/renameat (Description): Likewise.
17668         * modules/stat (Description): Likewise.
17669         * modules/symlink (Description): Likewise.
17670         * modules/unlink (Description): Likewise.
17671
17672 2010-07-31  Bruno Haible  <bruno@clisp.org>
17673
17674         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17675         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17676         option --enable/disable-c++ instead of --enable/disable-cxx.
17677         * NEWS: Mention the change.
17678
17679 2010-07-31  Bruno Haible  <bruno@clisp.org>
17680
17681         readlink, areadlink: Relax test a bit.
17682         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17683         alternative to ENOTDIR.
17684         * tests/test-areadlink.h (test_areadlink): Likewise.
17685         Reported by Rainer Tammer.
17686
17687 2010-07-31  Bruno Haible  <bruno@clisp.org>
17688
17689         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17690         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17691         character, perform the search using U_STRCHR.
17692         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17693         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17694         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17695         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17696         Suggested by Paolo Bonzini.
17697
17698 2010-07-31  Bruno Haible  <bruno@clisp.org>
17699
17700         unistr/u*-strstr: Fix dependencies.
17701         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17702         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17703         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17704
17705 2010-07-31  Bruno Haible  <bruno@clisp.org>
17706
17707         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17708         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17709         the beginning of the loop.
17710         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17711         cases in 'switch' statement.
17712
17713         unistr/u8-strchr: Fix several bugs.
17714         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17715         the string. When not found, return NULL, not a pointer near the end.
17716
17717         More tests for unistr/u8-strchr.
17718         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17719         that the function does not read past the first occurrence of the byte
17720         being searched.
17721         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17722         * tests/unistr/test-u16-strchr.c (main): New function.
17723         * tests/unistr/test-u32-strchr.c (main): New function.
17724
17725 2010-07-31  Bruno Haible  <bruno@clisp.org>
17726
17727         posix-modules: Ignore backup files of documentation files.
17728         * posix-modules: grep only through files named *.texi.
17729
17730 2010-07-31  Bruno Haible  <bruno@clisp.org>
17731
17732         symlinkat: Fix documentation.
17733         * doc/posix-functions/readlinkat.texi: Fix module name.
17734
17735 2010-07-31  Bruno Haible  <bruno@clisp.org>
17736
17737         fchownat: Replace also when chown has the trailing slash bug.
17738         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17739         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17740         introduced on 2010-04-10.
17741         Reported by Rainer Tammer.
17742
17743 2010-07-31  Bruno Haible  <bruno@clisp.org>
17744
17745         linkat: Work around AIX 7.1 bug.
17746         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17747         whether linkat handles trailing slash correctly. If not, replace linkat
17748         and define LINKAT_TRAILING_SLASH_BUG.
17749         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17750         check whether (fd1,file1) points to a directory if file1 or file2 ends
17751         in a slash. Code taken from lib/link.c.
17752         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17753         Reported by Rainer Tammer.
17754
17755 2010-07-31  Bruno Haible  <bruno@clisp.org>
17756
17757         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17758         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17759         This disables an xlc optimization that was causing wrong test results.
17760         Reported by Rainer Tammer.
17761
17762 2010-07-31  Bruno Haible  <bruno@clisp.org>
17763
17764         iconv: Work around AIX 6.1..7.1 bug.
17765         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17766         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17767         cross-compiling, guess no on all versions of AIX.
17768         Reported by Rainer Tammer.
17769
17770 2010-07-31  Bruno Haible  <bruno@clisp.org>
17771
17772         readlink: Relax test a bit.
17773         * tests/test-readlink.h (test_readlink): Allow different errno value
17774         when readlink is called with a file name that ends in / and refers to
17775         a file.
17776         Suggested by Eric Blake.
17777         Reported by Rainer Tammer.
17778
17779 2010-07-31  Bruno Haible  <bruno@clisp.org>
17780
17781         copysign: Does not require -lm on glibc systems.
17782         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17783         gl_COMMON_DOUBLE_MATHFUNC.
17784         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17785
17786 2010-07-31  Bruno Haible  <bruno@clisp.org>
17787
17788         duplocale: Work around AIX 7.1 bug.
17789         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17790         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17791         * lib/duplocale.c (rpl_duplocale): Update comment.
17792         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17793         Reported by Rainer Tammer.
17794
17795 2010-07-30  Bruno Haible  <bruno@clisp.org>
17796
17797         dirfd: Avoid link error on AIX 7.1.
17798         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17799         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17800         exist, set REPLACE_DIRFD.
17801         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17802         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17803         * doc/posix-functions/dirfd.texi: Update.
17804         Reported by Rainer Tammer.
17805
17806 2010-07-30  Eric Blake  <eblake@redhat.com>
17807
17808         strtod: next round of AIX fixes
17809         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17810         exponent.
17811         * tests/test-strtod.c (main): Enhance tests.
17812         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17813         Reported by Rainer Tammer.
17814
17815         futimens: fix configure check
17816         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17817         Reported by Bruno Haible.
17818
17819 2010-07-30  Bruno Haible  <bruno@clisp.org>
17820
17821         getline: Update regarding AIX.
17822         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17823         Reported by Rainer Tammer.
17824
17825 2010-07-30  Bruno Haible  <bruno@clisp.org>
17826
17827         wcwidth: Drop replacement on AIX 7.
17828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17829         AIX 7.
17830         Reported by Rainer Tammer.
17831
17832 2010-07-30  Bruno Haible  <bruno@clisp.org>
17833
17834         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17835         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17836         a 'char *'.
17837         Reported by Rainer Tammer.
17838
17839 2010-07-30  Bruno Haible  <bruno@clisp.org>
17840
17841         unlink: Update regarding AIX.
17842         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17843         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17844         Reported by Rainer Tammer.
17845
17846 2010-07-30  Bruno Haible  <bruno@clisp.org>
17847
17848         symlink: Update regarding AIX.
17849         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17850         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17851         Reported by Rainer Tammer.
17852
17853 2010-07-30  Bruno Haible  <bruno@clisp.org>
17854
17855         strndup: Update regarding AIX.
17856         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17857         AIX 7.
17858         Reported by Rainer Tammer.
17859
17860 2010-07-30  Bruno Haible  <bruno@clisp.org>
17861
17862         stat: Update regarding AIX.
17863         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17864         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17865         Reported by Rainer Tammer.
17866
17867 2010-07-30  Bruno Haible  <bruno@clisp.org>
17868
17869         truncl: Fix autoconf test.
17870         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17871         whether truncl works.
17872         Reported by Rainer Tammer.
17873
17874 2010-07-30  Bruno Haible  <bruno@clisp.org>
17875
17876         round: Update regarding AIX.
17877         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17878         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17879         Reported by Rainer Tammer.
17880
17881 2010-07-30  Bruno Haible  <bruno@clisp.org>
17882
17883         rename: Update regarding AIX.
17884         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17885         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17886         Reported by Rainer Tammer.
17887
17888 2010-07-30  Bruno Haible  <bruno@clisp.org>
17889
17890         printf.m4: Update regarding AIX.
17891         * m4/printf.m4: Update comments regarding AIX.
17892         Reported by Rainer Tammer.
17893
17894 2010-07-30  Bruno Haible  <bruno@clisp.org>
17895
17896         iconv: Update regarding AIX.
17897         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17898         AIX 7.
17899         Reported by Rainer Tammer.
17900
17901 2010-07-30  Bruno Haible  <bruno@clisp.org>
17902
17903         getopt: Update regarding AIX.
17904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17905         no on AIX.
17906         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17907         Reported by Rainer Tammer.
17908
17909 2010-07-30  Bruno Haible  <bruno@clisp.org>
17910
17911         ldexpl; Update regarding AIX.
17912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17913         on AIX 7.
17914         Reported by Rainer Tammer.
17915
17916 2010-07-30  Bruno Haible  <bruno@clisp.org>
17917
17918         frexpl: Update regarding AIX.
17919         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17920         on AIX 7.
17921         Reported by Rainer Tammer.
17922
17923 2010-07-30  Bruno Haible  <bruno@clisp.org>
17924
17925         open, fopen: Update regarding AIX.
17926         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17927         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17928         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17929         * doc/posix-functions/fopen.texi: Likewise.
17930         Reported by Rainer Tammer.
17931
17932 2010-07-30  Bruno Haible  <bruno@clisp.org>
17933
17934         chown: Update doc regarding AIX.
17935         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17936         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17937         Reported by Rainer Tammer.
17938
17939 2010-07-30  Eric Blake  <eblake@redhat.com>
17940
17941         strtod: fix bug in replacement function on AIX
17942         * lib/strtod.c (strtod): Special case broken "0x" parse in
17943         underlying strtod.
17944         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17945         * doc/posix-functions/strtod.texi (strtod): Likewise.
17946         Reported by Rainer Tammer.
17947
17948 2010-07-30  Bruno Haible  <bruno@clisp.org>
17949
17950         mbrlen: Fix cross-compilation guess for AIX.
17951         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17952         guess. Leftover from 2008-12-22.
17953
17954 2010-07-30  Bruno Haible  <bruno@clisp.org>
17955
17956         mbrtowc: Fix cross-compilation guess for AIX.
17957         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17958         guess. Leftover from 2008-12-21.
17959
17960 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17961
17962         init.sh: work around trap limitation of some shells
17963         * tests/init.sh (setup_): Move exit trap outside of shell function.
17964
17965 2010-07-29  Eric Blake  <eblake@redhat.com>
17966
17967         strtod: aid debugging
17968         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17969         understanding why strtod is rejected.
17970
17971 2010-07-28  Bruno Haible  <bruno@clisp.org>
17972
17973         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17974         * lib/unistr/u8-chr.c: Include <string.h>.
17975         * tests/unistr/test-u8-chr.c: Likewise.
17976         * tests/unistr/test-u16-chr.c: Likewise.
17977         * tests/unistr/test-u32-chr.c: Likewise.
17978         * tests/unistr/test-u8-strchr.c: Likewise.
17979         * tests/unistr/test-u16-strchr.c: Likewise.
17980         * tests/unistr/test-u32-strchr.c: Likewise.
17981         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17982         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17983         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17984         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17985
17986 2010-07-28  Bruno Haible  <bruno@clisp.org>
17987
17988         Use spaces for indentation, not tabs.
17989         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17990
17991 2010-07-27  Bruno Haible  <bruno@clisp.org>
17992
17993         mbspcasecmp: Fix function specification.
17994         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17995         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17996         Reported by Eric Blake <eblake@redhat.com>.
17997
17998 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17999
18000         timespec: use cast and not conditional, as truncation isn't possible
18001         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18002         instead of a conditional.  Comment about the situation in more detail.
18003         This undoes most of the 2009-10-29 patch.
18004
18005 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18006
18007         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18008         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18009         * lib/unistr/u8-strchr.c: Likewise.
18010         * modules/unistr/u8-chr: Depend on memchr.
18011
18012         unistr/u*-strchr: add tests
18013         * modules/unistr/u8-strchr-tests: New file.
18014         * modules/unistr/u16-strchr-tests: New file.
18015         * modules/unistr/u32-strchr-tests: New file.
18016         * tests/unistr/test-strchr.h: New file.
18017         * tests/unistr/test-u8-strchr.c: New file.
18018         * tests/unistr/test-u16-strchr.c: New file.
18019         * tests/unistr/test-u32-strchr.c: New file.
18020
18021         unistr/u*-chr: test multibyte sequences more
18022         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18023         test vector.
18024         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18025         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18026         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18027
18028         unistr/u*-chr: test multibyte sequences
18029         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18030
18031         unistr/u*-chr: prepare for multibyte tests
18032         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18033         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18034         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18035         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18036         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18037         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18038
18039 2010-07-18  Bruno Haible  <bruno@clisp.org>
18040
18041         unistr/u8-strchr: Optimize non-ASCII argument case.
18042         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18043         because the first byte often matches anyway.
18044         Reported by Pádraig Brady <P@draigbrady.com>.
18045
18046 2010-07-15  Karl Berry  <karl@gnu.org>
18047
18048         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18049
18050 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18051
18052         getcwd: on Solaris, work better if ancestors are inaccessible
18053         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18054         buffer and size, try again with a large buffer.  This works better
18055         on Solaris, since its getcwd succeeds even if the path to the root
18056         is inaccessible, and this is helpful in common cases such as .zfs
18057         hidden directories.  Problem reported by J Chapman Flack in
18058         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18059         Use system getcwd if it's declared, not merely if it's partly
18060         working; use the partly-working test only to avoid needless effort
18061         if the system getcwd fails.
18062         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18063         comment that was already obsolete and is now even more obsolete.
18064         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18065         now might call strdup.
18066
18067 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18068
18069         pthread: Add enough so that coreutils/src/sort.c compiles.
18070         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18071         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18072         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18073         Include <sys/types.h>, in case it defines pthread_t.
18074         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18075         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18076         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18077         (pthread_rwlockattr_t, pthread_spinlock_t):
18078         New typedefs, if HAVE_PTHREAD_T is not defined.
18079         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18080         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18081         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18082         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18083         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18084         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18085         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18086         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18087         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18088         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18089         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18090         New macros.
18091         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18092         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18093         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18094         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18095         (pthread_spin_unlock): New dummy functions.
18096         (pthread_create): Return EAGAIN; don't set errno.
18097         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18098         require AC_C_INLINE.
18099         * modules/pthread (Depends-on): Add sched, time.
18100         (pthread.h): Use AM_V_GEN.
18101
18102 2010-07-13  Bruno Haible  <bruno@clisp.org>
18103
18104         striconveh: Don't malloc memory if the result buffer is sufficient.
18105         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18106         buffer if its size is sufficient.
18107         Reported by Ludovic Courtès <ludo@gnu.org>.
18108
18109 2010-07-13  Bruno Haible  <bruno@clisp.org>
18110
18111         strtod: Add safety check.
18112         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18113
18114 2010-07-12  Bruno Haible  <bruno@clisp.org>
18115
18116         Unify tests that set gl_cv_func_ldexpl_no_libm.
18117         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18118         gl_FUNC_LDEXPL.
18119         (gl_FUNC_LDEXPL): Invoke it.
18120         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18121
18122 2010-07-12  Bruno Haible  <bruno@clisp.org>
18123
18124         Unify tests that set gl_cv_func_ldexp_no_libm.
18125         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18126         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18127         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18128         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18129         * modules/strtod (Files): Add m4/ldexp.m4.
18130
18131 2010-07-12  Bruno Haible  <bruno@clisp.org>
18132
18133         Unify tests that set gl_cv_func_frexpl_no_libm.
18134         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18135         gl_FUNC_FREXPL_NO_LIBM.
18136         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18137         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18138
18139 2010-07-12  Bruno Haible  <bruno@clisp.org>
18140
18141         Unify tests that set gl_cv_func_frexp_no_libm.
18142         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18143         gl_FUNC_FREXP_NO_LIBM.
18144         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18145         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18146
18147 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18148
18149         memcoll: clarify sizes versus lengths, document better, and tweak perf
18150         * lib/memcoll.c (strcoll_loop, memcoll0):
18151         Improve quality of descriptive comments.  Name variables
18152         consistently as to whether they are lengths (which do not include
18153         terminating null) versus sizes (which do).
18154         * lib/xmemcoll.c (xmemcoll0): Likewise.
18155         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18156         returned when s1size == 0; this is easier to compile and saves
18157         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18158
18159 2010-07-12  Bruno Haible  <bruno@clisp.org>
18160
18161         Tests for module '_Exit'.
18162         * modules/_Exit-tests: New file.
18163         * tests/test-_Exit.sh: New file.
18164         * tests/test-_Exit.c: New file.
18165
18166         New module '_Exit'.
18167         * lib/stdlib.in.h (__attribute__): New macro.
18168         (_Exit): New declaration.
18169         * lib/_Exit.c: New file.
18170         * m4/_Exit.m4: New file.
18171         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18172         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18173         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18174         * modules/_Exit: New file.
18175         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18176         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18177
18178 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18179
18180         strtod: make it more-accurate typically, and don't require libm
18181         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18182         Include limits.h.  Don't include string.h.
18183         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18184         (locale_isspace): New function, so that no casts are needed to
18185         check whether *s is a space.
18186         (ldexp): Provide an unused dummy if not available.
18187         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18188         (strtod): Use them.  This implementation prefers to use the
18189         underlying strtod if available, falling back on our own code
18190         only to fix known bugs.  This is more likely to produce an
18191         accurate result.  Also, it avoids the use of libm functions.
18192         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18193         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18194         was absent, but it caused a test failure with coreutils.
18195         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18196         with libm.
18197         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18198         * modules/strtod-tests (Makefile.am): Likewise.
18199
18200 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18201             Bruno Haible  <bruno@clisp.org>
18202
18203         unistr/u8-strchr: Optimize ASCII argument case.
18204         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18205
18206 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18207
18208         (x)memcoll: minor tweaks
18209         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18210         is after the type that it qualifies.
18211         (memcoll0): Likewise.
18212         * lib/memcoll.h (memcoll0): Likewise.
18213         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18214         * lib/xmemcoll.h (xmemcoll0): Likewise.
18215         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18216         differs from memcoll in that the NUL byte is part of the argument.
18217         Omit the abort-checks, as performance is a real issue here.  Plus,
18218         the checks were wrong anyway (an off-by-one error).  Omit local
18219         variable 'diff', as it's a bit clearer that way.
18220         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18221         no longer needed.
18222
18223 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18224
18225         (x)memcoll: speedup when input is known to be NUL delimited
18226         * lib/memcoll.c: Include stdlib.
18227         (memcoll0): New function.
18228         (strcoll_loop): New function, refactored for use in both memcoll
18229         and memcoll0.
18230         * lib/memcoll.h (memcoll0): Add prototype.
18231         * lib/xmemcoll.c (xmemcoll0): New function.
18232         (collate_error): New function, refactored for use in both xmemcoll
18233         and xmemcoll0.
18234         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18235         * m4/memcoll.m4: add inline invocation.
18236
18237 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18238
18239         * build-aux/bootstrap: Remove any local translations
18240         from the translation project synchronization directory,
18241         so that local only translations are not distributed.
18242
18243 2010-07-04  Bruno Haible  <bruno@clisp.org>
18244
18245         fsusage: Clarify which code applies to which platforms.
18246         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18247         platform.
18248         * lib/fsusage.c (get_fs_usage): Likewise.
18249
18250 2010-07-04  Bruno Haible  <bruno@clisp.org>
18251
18252         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18253         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18254         Reported by Martin Lambers <marlam@marlam.de>.
18255
18256 2010-07-04  Jim Meyering  <meyering@redhat.com>
18257
18258         hash: once again explicitly disallow insertion of NULL
18259         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18260         inserting a NULL pointer cannot work with these functions.
18261         Add a comment with details.
18262         This reverts part of the 2010-07-01 commit, 5bef1a35
18263         "hash: extend module to deal with non-pointer keys".
18264
18265 2010-07-01  Bruno Haible  <bruno@clisp.org>
18266
18267         stdbool: Update doc.
18268         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18269         Info from Christian Weisgerber <naddy@mips.inka.de>.
18270
18271 2010-07-01  Jim Meyering  <meyering@redhat.com>
18272
18273         hash: extend module to deal with non-pointer keys
18274         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18275         but that allows insertion of non-pointer entries.
18276         Do not disallow an ENTRY value of NULL.
18277         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18278         * lib/hash.h (hash_insert0): Declare.
18279
18280 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18281
18282         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18283         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18284         not present (i.e. with autoconf 2.59 and when using gettextize, not
18285         gnulib), require AC_GNU_SOURCE instead.
18286
18287 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18288
18289         idpriv-drop: Fix tests.
18290         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18291         not to the test-idpriv-droptemp program.
18292
18293 2010-06-29  Bruno Haible  <bruno@clisp.org>
18294
18295         string: Fix syntax error with g++ 2.96.
18296         * lib/string.in.h (__pure__): Remove definition.
18297         (_GL_ATTRIBUTE_PURE): New macro.
18298         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18299         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18300         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18301
18302 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18303
18304         unitypes: Fix bug introduced on 2010-05-18.
18305         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18306
18307 2010-06-22  Eric Blake  <eblake@redhat.com>
18308
18309         memmem: slight optimization
18310         * lib/str-two-way.h (critical_factorization): Update comments.
18311         Reduce work during factorization phase.
18312         Reported by Carlos Bueno <carlos@bueno.org>.
18313
18314 2010-06-21  Bruno Haible  <bruno@clisp.org>
18315
18316         Fix HAVE_CALLOC_POSIX misnomer.
18317         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18318         !HAVE_CALLOC_POSIX.
18319         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18320         HAVE_CALLOC_POSIX.
18321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18322         instead of HAVE_CALLOC_POSIX.
18323         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18324         HAVE_CALLOC_POSIX.
18325
18326         Use modern idiom for calloc() replacement.
18327         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18328         AC_FUNC_CALLOC.
18329         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18330         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18331         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18332         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18333         (gl_REPLACE_CALLOC): New macro.
18334
18335 2010-06-21  Bruno Haible  <bruno@clisp.org>
18336
18337         Fix HAVE_REALLOC_POSIX misnomer.
18338         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18339         !HAVE_REALLOC_POSIX.
18340         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18341         HAVE_REALLOC_POSIX.
18342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18343         instead of HAVE_REALLOC_POSIX.
18344         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18345         HAVE_REALLOC_POSIX.
18346
18347         Use modern idiom for realloc() replacement.
18348         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18349         AC_FUNC_REALLOC.
18350         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18351         Autoconf's AC_FUNC_REALLOC.
18352         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18353         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18354         (gl_REPLACE_REALLOC): New macro.
18355         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18356
18357 2010-06-21  Bruno Haible  <bruno@clisp.org>
18358
18359         Fix HAVE_MALLOC_POSIX misnomer.
18360         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18361         !HAVE_MALLOC_POSIX.
18362         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18363         HAVE_MALLOC_POSIX.
18364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18365         instead of HAVE_MALLOC_POSIX.
18366         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18367         HAVE_MALLOC_POSIX.
18368
18369         Use modern idiom for malloc() replacement.
18370         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18371         AC_FUNC_MALLOC.
18372         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18373         Autoconf's AC_FUNC_MALLOC.
18374         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18375         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18376         (gl_REPLACE_MALLOC): New macro.
18377         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18378
18379 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18380
18381         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18382         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18383         This macro takes 3 arguments, not 4.
18384
18385 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18386
18387         ipv6: fix detection under mingw
18388         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18389         in6_addr.
18390
18391 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18392
18393         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18394         that strtod() works when cross-compiling to a glibc version known
18395         to work.
18396
18397 2010-06-15  Bruno Haible  <bruno@clisp.org>
18398
18399         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18400
18401 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18402
18403         select: Correct timeout.
18404         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18405
18406 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18407
18408         git-version-gen: init shell var to avoid env var influence
18409         * build-aux/git-version-gen (v): Init shell var to empty.
18410
18411 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18412
18413         priv-set: Don't assume that priv.h exists merely because getppriv does.
18414         See Jan Andersen's bug report about AIX 5L in
18415         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18416         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18417         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18418         * lib/priv-set.h: Likewise.
18419         * tests/test-priv-set.c: Likewise.
18420
18421 2010-06-13  Bruno Haible  <bruno@clisp.org>
18422
18423         relocatable: Make it easier to test whether to install wrappers.
18424         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18425         RELOCATABLE_VIA_WRAPPER.
18426
18427 2010-06-13  Bruno Haible  <bruno@clisp.org>
18428
18429         gnulib-tool: Display specified modules and dependencies differently.
18430         * gnulib-tool (func_show_module_list): New function.
18431         (func_import, func_create_testdir): Invoke it.
18432         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18433
18434 2010-06-13  Bruno Haible  <bruno@clisp.org>
18435
18436         gnulib-tool: Align code of func_import and func_create_testdir.
18437         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18438         specified_modules.
18439
18440 2010-06-12  Jim Meyering  <meyering@redhat.com>
18441
18442         test-inttostr: avoid spurious failure on Solaris 9
18443         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18444         to accept "%ju".  Reported by Bruno Haible.
18445
18446 2010-06-11  Jim Meyering  <meyering@redhat.com>
18447
18448         test-sys_socket: mark variables as used more readably
18449         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18450         as "used" explicitly via (void) statement casts.  This is more
18451         readable than using them in an artificial return expression.
18452         Suggestion from Bruno Haible.
18453
18454 2010-06-11  Bruno Haible  <bruno@clisp.org>
18455
18456         Avoid some more warnings from "gcc -Wwrite-strings".
18457         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18458         to 'const char *'.
18459         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18460         * tests/test-c-strcasestr.c (main): Likewise.
18461         * tests/test-mbscasestr1.c (main): Likewise.
18462         * tests/test-mbscasestr2.c (main): Likewise.
18463         * tests/test-memmem.c (main): Likewise.
18464         * tests/test-strstr.c (main): Likewise.
18465         * tests/test-strcasestr.c (main): Likewise.
18466
18467 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18468
18469         init.sh: change framework_failure_ to fail with status 99, not 1
18470         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18471         automake's parallel-tests rule that this is an unexpected failure,
18472         even if the test is listed in XFAIL_TESTS.
18473
18474 2010-06-11  Jim Meyering  <meyering@redhat.com>
18475
18476         test-inttostr: avoid warnings about 4-6KB literal strings
18477         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18478         Include "macros.h", for its definition of ASSERT.
18479         (CK): s/assert/ASSERT/
18480         * modules/inttostr-tests (Files): Add macros.h.
18481
18482         init.sh: don't use $ME_ or skip_ before they are defined
18483         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18484         their first uses.  Also hoist their companions: warn_, fail_,
18485         framework_failure_, $stderr_fileno.  Prompted by a patch from
18486         Stefano Lattarini.
18487
18488         test-sys_socket: avoid set-but-not-used warnings from gcc
18489         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18490         avoid warning about set-but-not-used variables.
18491
18492         test-xvasprintf: avoid 'const' discard warnings
18493         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18494         "const" when assigning from literal strings.
18495         (test_xasprintf): Add "void" in function argument list to placate
18496         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18497
18498         tests: avoid compilation warnings in argmatch and exclude tests...
18499         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18500         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18501         Since it always exits, declare with the "noreturn" attribute.
18502         * tests/test-argmatch.c: Likewise.
18503
18504         tests: avoid 'const' discard warnings in mbsstr tests
18505         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18506         * tests/test-mbsstr2.c (main): Likewise.
18507
18508         test-verify: avoid warning from gcc's -Wmissing-declarations
18509         * tests/test-verify.c (function): Declare to be static.
18510
18511         test-inttostr.c: include <string.h> for use of strcmp
18512         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18513
18514         test-linkat: avoid failed assertion on "other" architectures
18515         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18516         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18517         sparc: https://bugs.launchpad.net/bugs/591968
18518
18519 2010-06-11  Jim Meyering  <meyering@redhat.com>
18520
18521         printf.m4: avoid autoconf's "Expanded Before Required" warning
18522         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18523         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18524         autoconf warning.
18525
18526 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18527
18528         Replacement header templates are now named with ".in", not "_".
18529         * doc/gnulib-intro.texi: Correct.
18530
18531 2010-06-10  Jim Meyering  <meyering@redhat.com>
18532
18533         inttostr-tests: depend on snprintf, not snprintf-posix
18534         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18535         snprintf-posix, to avoid this aclocal failure:
18536           missing file gnulib-tests/vasnprintf.c
18537           configure.ac:45: error: expected source file, required through \
18538           AC_LIBSOURCES, not found
18539
18540 2010-06-10  Jim Meyering  <meyering@redhat.com>
18541
18542         inttostr: add a new function, inttostr, and tests
18543         The namesake function was not available.  The existence of the
18544         template file, inttostr.c makes its addition nontrivial.
18545         * lib/anytostr.c: Rename from inttostr.c.
18546         (anytostr): Rename from inttostr.
18547         * lib/inttostr.c: New file.
18548         * modules/inttostr (Files): Add anytostr.c.
18549         (Makefile.am): Set lib_SOURCES instead of ...
18550         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18551         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18552         * lib/offtostr.c: Likewise.
18553         * lib/uinttostr.c: Likewise.
18554         * lib/umaxtostr.c: Likewise.
18555         * modules/inttostr-tests: New file.
18556         * tests/test-inttostr.c: New file.  Test these functions.
18557
18558 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18559             Bruno Haible  <bruno@clisp.org>
18560
18561         Add "Extending Gnulib" chapter to manual.
18562         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18563         chapter.
18564         (Extending Gnulib): New chapter.
18565         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18566         chapter.
18567
18568 2010-06-09  Bruno Haible  <bruno@clisp.org>
18569
18570         Avoid relocwrapper link errors due to gnulib replacement functions.
18571         * lib/areadlink.c: Use the system's malloc, realloc functions.
18572         (areadlink): Set errno to ENOMEM explicitly.
18573         * modules/areadlink (Depends-on): Remove malloc-posix.
18574         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18575
18576 2010-06-09  Bruno Haible  <bruno@clisp.org>
18577
18578         Avoid relocwrapper link errors due to gnulib replacement functions.
18579         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18580         * lib/malloca.c: Likewise.
18581         * lib/relocatable.c: Likewise.
18582         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18583         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18584         * lib/setenv.c: Use the system's malloc, realloc functions.
18585         * lib/strerror.c: Use the system's sprintf function.
18586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18587
18588 2010-06-04  Bruno Haible  <bruno@clisp.org>
18589
18590         Prefer documented low-level autoconf macro names.
18591         * m4/lib-link.m4: Use m4_translit instead of translit.
18592         * m4/environ.m4: Likewise.
18593         * m4/mathfunc.m4: Likewise.
18594         * m4/onceonly.m4: Likewise.
18595         * m4/stdint.m4: Likewise.
18596         Suggested by Eric Blake.
18597
18598 2010-06-04  Martin Lambers  <marlam@marlam.de>
18599             Bruno Haible  <bruno@clisp.org>
18600
18601         havelib: Allow library names with '+' characters.
18602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18603         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18604
18605 2010-06-09  Bruno Haible  <bruno@clisp.org>
18606
18607         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18608         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18609         realloc failed.
18610
18611 2010-06-08  Peter Simons  <simons@cryp.to>
18612
18613         maint.mk: make the news-check rule more configurable
18614         * top/maint.mk (news-check-lines-spec): New variable.
18615         (news-check): Use "sed -n 1,10p" in place of "head".
18616
18617 2010-06-07  Jim Meyering  <meyering@redhat.com>
18618
18619         do-release-commit-and-tag: fix typo in --help
18620         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18621
18622         regex: avoid new dead-code warning with gcc-4.6.0
18623         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18624         if-block containing a while-loop.  It's been unused for at least
18625         5 years.
18626
18627 2010-06-05  Bruno Haible  <bruno@clisp.org>
18628
18629         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18630         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18631
18632 2010-06-04  Bruno Haible  <bruno@clisp.org>
18633
18634         Update to GNU gettext 0.18.1.
18635         * modules/gettext (configure.ac): Require gettext infrastructure from
18636         version 0.18.1.
18637
18638 2010-06-03  Bruno Haible  <bruno@clisp.org>
18639
18640         Don't use AC_LIBOBJ with file names in subdirectories.
18641         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18642         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18643         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18644         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18645         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18646         gl_LIBUNISTRING_LIBSOURCE.
18647         (Makefile.am): Augment lib_SOURCES here, conditionally.
18648         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18649
18650 2010-06-03  Bruno Haible  <bruno@clisp.org>
18651
18652         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18653         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18654         expansion does not end with a newline.
18655         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18656         unnecessary newline.
18657
18658 2010-06-03  Bruno Haible  <bruno@clisp.org>
18659
18660         Reduce dependencies.
18661         * tests/test-quotearg.h: New file, extracted from
18662         tests/test-quotearg.c.
18663         * tests/test-quotearg-simple.c: New file, extracted from
18664         tests/test-quotearg.c.
18665         * tests/test-quotearg.c: Don't include <ctype.h>.
18666         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18667         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18668         use_quote_double_quotes, use_quotearg_colon): Moved to
18669         tests/test-quotearg.h.
18670         (results_g, flag_results, custom_quotes, custom_results): Moved
18671         to tests/test-quotearg-simple.c.
18672         (main): Moved the part that does not depend on gettext to
18673         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18674         performed.
18675         * modules/quotearg-simple: New file.
18676         * modules/quotearg-simple-tests: New file.
18677         * modules/quotearg (Depends-on): Add quotearg-simple.
18678         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18679         (Files): Add tests/test-quotearg.h.
18680         Reported by Paolo Bonzini.
18681
18682 2010-06-03  Bruno Haible  <bruno@clisp.org>
18683
18684         Reduce dependencies.
18685         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18686
18687 2010-06-03  Bruno Haible  <bruno@clisp.org>
18688
18689         time: Undefine more broken macros.
18690         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18691         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18692         Reported by Eric Blake.
18693
18694 2010-06-03  Bruno Haible  <bruno@clisp.org>
18695
18696         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18697         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18698         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18699         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18700         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18701         Reported by Ludovic Courtès <ludo@gnu.org>.
18702
18703 2010-06-02  Eric Blake  <eblake@redhat.com>
18704
18705         time: work with mingw + pthreads-win32 library
18706         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18707         if timespec is defined only in pthread.h.
18708         * modules/time (Makefile.am): Substitute it.
18709         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18710         <pthread.h>, when needed.
18711         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18712         from the library.
18713
18714 2010-05-31  Bruno Haible  <bruno@clisp.org>
18715
18716         Avoid expanding two macros in the wrong order.
18717         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18718         gl_LIBUNISTRING if it is defined.
18719         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18720         autoconf >= 2.64.
18721         Reported by Ludovic Courtès <ludo@gnu.org>.
18722
18723 2010-05-27  Jim Meyering  <meyering@redhat.com>
18724
18725         maint.mk: also prohibit "#undef" of always-defined symbols
18726         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18727         Allow more than one space before the symbol name.
18728         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18729         the regexp uses alternation.
18730
18731 2010-05-26  Eric Blake  <eblake@redhat.com>
18732
18733         maint.mk: avoid echo -e
18734         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18735         Convert all uses of echo -* to printf.
18736         Reported by Matthias Bolte.
18737
18738 2010-05-25  Bruno Haible  <bruno@clisp.org>
18739
18740         Update to GNU gettext 0.18, part 2.
18741         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18742         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18743
18744 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18745
18746         Add missing include in test-pwrite.c.
18747         * tests/test-pwrite.c: Include string.h, for strcmp.
18748
18749 2010-05-24  Bruno Haible  <bruno@clisp.org>
18750
18751         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18752
18753 2010-05-24  Bruno Haible  <bruno@clisp.org>
18754
18755         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18756         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18757         iconveh_error argument.
18758         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18759         U_STRCONV_TO_LOCALE.
18760         * lib/unistr/u16-strcoll.c: Likewise.
18761         * lib/unistr/u32-strcoll.c: Likewise.
18762         * modules/unistr/u8-strcoll (Depends-on): Add
18763         uniconv/u8-strconv-to-enc, localcharset. Remove
18764         uniconv/u8-strconv-to-locale.
18765         (configure.ac): Bump version number.
18766         * modules/unistr/u16-strcoll (Depends-on): Add
18767         uniconv/u16-strconv-to-enc, localcharset. Remove
18768         uniconv/u16-strconv-to-locale.
18769         (configure.ac): Bump version number.
18770         * modules/unistr/u32-strcoll (Depends-on): Add
18771         uniconv/u32-strconv-to-enc, localcharset. Remove
18772         uniconv/u32-strconv-to-locale.
18773         (configure.ac): Bump version number.
18774
18775 2010-05-24  Bruno Haible  <bruno@clisp.org>
18776
18777         Avoid a test failure on NetBSD 5.0.
18778         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18779         an iconv() bug.
18780
18781 2010-05-24  Bruno Haible  <bruno@clisp.org>
18782
18783         Adjust #include directive style.
18784         * modules/regex (Includes): Recommend to write <regex.h>.
18785
18786 2010-05-24  Bruno Haible  <bruno@clisp.org>
18787
18788         regex: Don't require alloca.
18789         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18790         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18791         only inside if (0).
18792
18793 2010-05-23  Jim Meyering  <meyering@redhat.com>
18794
18795         test-renameat.c: include <sys/stat.h>
18796         * tests/test-renameat.c: Include <sys/stat.h>; required for
18797         definition of S_IS* macros.
18798
18799 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18800
18801         Update maintainer documentation for 'relocatable-prog' module.
18802         * doc/relocatable-maint.texi: Update.
18803         Comments by Bruno Haible.
18804
18805 2010-05-23  Bruno Haible  <bruno@clisp.org>
18806
18807         git-merge-changelog: Enable --split-merged-entry by default.
18808         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18809         (usage): Don't mention this option any more.
18810         Reported by Ralf Wildenhues.
18811
18812 2010-05-23  Jim Meyering  <meyering@redhat.com>
18813
18814         test-pwrite: do not leave behind a test file named "out"
18815         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18816         The trivial-looking use of init.sh is really necessary.
18817         It ensures that the temporary file, "out", is created in
18818         a temporary directory, and removed upon termination.
18819         * tests/test-pwrite.sh: Re-add file.
18820         * modules/pwrite-tests: Reference it.
18821
18822 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18823
18824         Fix output redirection buglet in init.sh.
18825         * tests/init.sh: Fix redirection of stderr.
18826
18827 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18828
18829         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18830
18831 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18832
18833         * modules/valgrind-tests: New file.
18834         * m4/valgrind-tests.m4: New file.
18835         * doc/valgrind-tests.texi: New file.
18836         * doc/gnulib.texi (Running self-tests under valgrind): New
18837         section.
18838
18839 2010-05-19  Bruno Haible  <bruno@clisp.org>
18840
18841         Clean up dead code in recent commit.
18842         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18843         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18844         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18845         Suggested by Paolo Bonzini.
18846
18847 2010-05-19  Bruno Haible  <bruno@clisp.org>
18848
18849         Avoid valgrind error reports from libunistring.
18850         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18851         * modules/libunistring (Files): Add it.
18852         * modules/libunistring-optional (Files): Likewise.
18853
18854 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18855             Bruno Haible  <bruno@clisp.org>
18856
18857         New module 'libunistring-optional'.
18858         * modules/libunistring-optional: New file.
18859         * m4/libunistring-base.m4: New file.
18860         * m4/libunistring-optional.m4: New file.
18861         * lib/unicase.in.h: Renamed from lib/unicase.h.
18862         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18863         * lib/unictype.in.h: Renamed from lib/unictype.h.
18864         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18865         * lib/uniname.in.h: Renamed from lib/uniname.h.
18866         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18867         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18868         * lib/unistr.in.h: Renamed from lib/unistr.h.
18869         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18870         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18871         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18872         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18873         gl_LIBUNISTRING. If the library was found, determine the installed
18874         version and set LIBUNISTRING_VERSION.
18875         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18876         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18877         handle a configuration option --with-included-libunistring.
18878         * modules/libunistring (Files): Add m4/absolute-header.m4.
18879         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18880         Add m4/libunistring-base.m4.
18881         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18882         (Makefile.am): Build unicase.h from unicase.in.h.
18883         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18884         Add m4/libunistring-base.m4.
18885         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18886         (Makefile.am): Build uniconv.h from uniconv.in.h.
18887         * modules/unictype/base (Files): Use unictype.in.h instead of
18888         unictype.h. Add m4/libunistring-base.m4.
18889         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18890         (Makefile.am): Build unictype.h from unictype.in.h.
18891         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18892         Add m4/libunistring-base.m4.
18893         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18894         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18895         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18896         Add m4/libunistring-base.m4.
18897         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18898         (Makefile.am): Build uniname.h from uniname.in.h.
18899         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18900         Add m4/libunistring-base.m4.
18901         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18902         (Makefile.am): Build uninorm.h from uninorm.in.h.
18903         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18904         unistdio.h. Add m4/libunistring-base.m4.
18905         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18906         (Makefile.am): Build unistdio.h from unistdio.in.h.
18907         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18908         Add m4/libunistring-base.m4.
18909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18910         (Makefile.am): Build unistr.h from unistr.in.h.
18911         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18912         Add m4/libunistring-base.m4.
18913         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18914         (Makefile.am): Build unitypes.h from unitypes.in.h.
18915         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18916         Add m4/libunistring-base.m4.
18917         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18918         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18919         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18920         uniwidth.h. Add m4/libunistring-base.m4.
18921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18922         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18923         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18924         instead of augmenting lib_SOURCES.
18925         * modules/unicase/empty-suffix-context: Likewise.
18926         * modules/unicase/locale-language: Likewise.
18927         * modules/unicase/tolower: Likewise.
18928         * modules/unicase/totitle: Likewise.
18929         * modules/unicase/toupper: Likewise.
18930         * modules/unicase/u8-casecmp: Likewise.
18931         * modules/unicase/u8-casecoll: Likewise.
18932         * modules/unicase/u8-casefold: Likewise.
18933         * modules/unicase/u8-casexfrm: Likewise.
18934         * modules/unicase/u8-ct-casefold: Likewise.
18935         * modules/unicase/u8-ct-tolower: Likewise.
18936         * modules/unicase/u8-ct-totitle: Likewise.
18937         * modules/unicase/u8-ct-toupper: Likewise.
18938         * modules/unicase/u8-is-cased: Likewise.
18939         * modules/unicase/u8-is-casefolded: Likewise.
18940         * modules/unicase/u8-is-lowercase: Likewise.
18941         * modules/unicase/u8-is-titlecase: Likewise.
18942         * modules/unicase/u8-is-uppercase: Likewise.
18943         * modules/unicase/u8-prefix-context: Likewise.
18944         * modules/unicase/u8-suffix-context: Likewise.
18945         * modules/unicase/u8-tolower: Likewise.
18946         * modules/unicase/u8-totitle: Likewise.
18947         * modules/unicase/u8-toupper: Likewise.
18948         * modules/unicase/u16-casecmp: Likewise.
18949         * modules/unicase/u16-casecoll: Likewise.
18950         * modules/unicase/u16-casefold: Likewise.
18951         * modules/unicase/u16-casexfrm: Likewise.
18952         * modules/unicase/u16-ct-casefold: Likewise.
18953         * modules/unicase/u16-ct-tolower: Likewise.
18954         * modules/unicase/u16-ct-totitle: Likewise.
18955         * modules/unicase/u16-ct-toupper: Likewise.
18956         * modules/unicase/u16-is-cased: Likewise.
18957         * modules/unicase/u16-is-casefolded: Likewise.
18958         * modules/unicase/u16-is-lowercase: Likewise.
18959         * modules/unicase/u16-is-titlecase: Likewise.
18960         * modules/unicase/u16-is-uppercase: Likewise.
18961         * modules/unicase/u16-prefix-context: Likewise.
18962         * modules/unicase/u16-suffix-context: Likewise.
18963         * modules/unicase/u16-tolower: Likewise.
18964         * modules/unicase/u16-totitle: Likewise.
18965         * modules/unicase/u16-toupper: Likewise.
18966         * modules/unicase/u32-casecmp: Likewise.
18967         * modules/unicase/u32-casecoll: Likewise.
18968         * modules/unicase/u32-casefold: Likewise.
18969         * modules/unicase/u32-casexfrm: Likewise.
18970         * modules/unicase/u32-ct-casefold: Likewise.
18971         * modules/unicase/u32-ct-tolower: Likewise.
18972         * modules/unicase/u32-ct-totitle: Likewise.
18973         * modules/unicase/u32-ct-toupper: Likewise.
18974         * modules/unicase/u32-is-cased: Likewise.
18975         * modules/unicase/u32-is-casefolded: Likewise.
18976         * modules/unicase/u32-is-lowercase: Likewise.
18977         * modules/unicase/u32-is-titlecase: Likewise.
18978         * modules/unicase/u32-is-uppercase: Likewise.
18979         * modules/unicase/u32-prefix-context: Likewise.
18980         * modules/unicase/u32-suffix-context: Likewise.
18981         * modules/unicase/u32-tolower: Likewise.
18982         * modules/unicase/u32-totitle: Likewise.
18983         * modules/unicase/u32-toupper: Likewise.
18984         * modules/unicase/ulc-casecmp: Likewise.
18985         * modules/unicase/ulc-casecoll: Likewise.
18986         * modules/unicase/ulc-casexfrm: Likewise.
18987         * modules/uniconv/u8-conv-from-enc: Likewise.
18988         * modules/uniconv/u8-conv-to-enc: Likewise.
18989         * modules/uniconv/u8-strconv-from-enc: Likewise.
18990         * modules/uniconv/u8-strconv-from-locale: Likewise.
18991         * modules/uniconv/u8-strconv-to-enc: Likewise.
18992         * modules/uniconv/u8-strconv-to-locale: Likewise.
18993         * modules/uniconv/u16-conv-from-enc: Likewise.
18994         * modules/uniconv/u16-conv-to-enc: Likewise.
18995         * modules/uniconv/u16-strconv-from-enc: Likewise.
18996         * modules/uniconv/u16-strconv-from-locale: Likewise.
18997         * modules/uniconv/u16-strconv-to-enc: Likewise.
18998         * modules/uniconv/u16-strconv-to-locale: Likewise.
18999         * modules/uniconv/u32-conv-from-enc: Likewise.
19000         * modules/uniconv/u32-conv-to-enc: Likewise.
19001         * modules/uniconv/u32-strconv-from-enc: Likewise.
19002         * modules/uniconv/u32-strconv-from-locale: Likewise.
19003         * modules/uniconv/u32-strconv-to-enc: Likewise.
19004         * modules/uniconv/u32-strconv-to-locale: Likewise.
19005         * modules/unictype/bidicategory-byname: Likewise.
19006         * modules/unictype/bidicategory-name: Likewise.
19007         * modules/unictype/bidicategory-of: Likewise.
19008         * modules/unictype/bidicategory-test: Likewise.
19009         * modules/unictype/block-list: Likewise.
19010         * modules/unictype/block-test: Likewise.
19011         * modules/unictype/category-C: Likewise.
19012         * modules/unictype/category-Cc: Likewise.
19013         * modules/unictype/category-Cf: Likewise.
19014         * modules/unictype/category-Cn: Likewise.
19015         * modules/unictype/category-Co: Likewise.
19016         * modules/unictype/category-Cs: Likewise.
19017         * modules/unictype/category-L: Likewise.
19018         * modules/unictype/category-Ll: Likewise.
19019         * modules/unictype/category-Lm: Likewise.
19020         * modules/unictype/category-Lo: Likewise.
19021         * modules/unictype/category-Lt: Likewise.
19022         * modules/unictype/category-Lu: Likewise.
19023         * modules/unictype/category-M: Likewise.
19024         * modules/unictype/category-Mc: Likewise.
19025         * modules/unictype/category-Me: Likewise.
19026         * modules/unictype/category-Mn: Likewise.
19027         * modules/unictype/category-N: Likewise.
19028         * modules/unictype/category-Nd: Likewise.
19029         * modules/unictype/category-Nl: Likewise.
19030         * modules/unictype/category-No: Likewise.
19031         * modules/unictype/category-P: Likewise.
19032         * modules/unictype/category-Pc: Likewise.
19033         * modules/unictype/category-Pd: Likewise.
19034         * modules/unictype/category-Pe: Likewise.
19035         * modules/unictype/category-Pf: Likewise.
19036         * modules/unictype/category-Pi: Likewise.
19037         * modules/unictype/category-Po: Likewise.
19038         * modules/unictype/category-Ps: Likewise.
19039         * modules/unictype/category-S: Likewise.
19040         * modules/unictype/category-Sc: Likewise.
19041         * modules/unictype/category-Sk: Likewise.
19042         * modules/unictype/category-Sm: Likewise.
19043         * modules/unictype/category-So: Likewise.
19044         * modules/unictype/category-Z: Likewise.
19045         * modules/unictype/category-Zl: Likewise.
19046         * modules/unictype/category-Zp: Likewise.
19047         * modules/unictype/category-Zs: Likewise.
19048         * modules/unictype/category-and: Likewise.
19049         * modules/unictype/category-and-not: Likewise.
19050         * modules/unictype/category-byname: Likewise.
19051         * modules/unictype/category-name: Likewise.
19052         * modules/unictype/category-none: Likewise.
19053         * modules/unictype/category-of: Likewise.
19054         * modules/unictype/category-or: Likewise.
19055         * modules/unictype/category-test: Likewise.
19056         * modules/unictype/combining-class: Likewise.
19057         * modules/unictype/ctype-alnum: Likewise.
19058         * modules/unictype/ctype-alpha: Likewise.
19059         * modules/unictype/ctype-blank: Likewise.
19060         * modules/unictype/ctype-cntrl: Likewise.
19061         * modules/unictype/ctype-digit: Likewise.
19062         * modules/unictype/ctype-graph: Likewise.
19063         * modules/unictype/ctype-lower: Likewise.
19064         * modules/unictype/ctype-print: Likewise.
19065         * modules/unictype/ctype-punct: Likewise.
19066         * modules/unictype/ctype-space: Likewise.
19067         * modules/unictype/ctype-upper: Likewise.
19068         * modules/unictype/ctype-xdigit: Likewise.
19069         * modules/unictype/decimal-digit: Likewise.
19070         * modules/unictype/digit: Likewise.
19071         * modules/unictype/mirror: Likewise.
19072         * modules/unictype/numeric: Likewise.
19073         * modules/unictype/property-alphabetic: Likewise.
19074         * modules/unictype/property-ascii-hex-digit: Likewise.
19075         * modules/unictype/property-bidi-arabic-digit: Likewise.
19076         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19077         * modules/unictype/property-bidi-block-separator: Likewise.
19078         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19079         * modules/unictype/property-bidi-common-separator: Likewise.
19080         * modules/unictype/property-bidi-control: Likewise.
19081         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19082         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19083         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19084         * modules/unictype/property-bidi-european-digit: Likewise.
19085         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19086         * modules/unictype/property-bidi-left-to-right: Likewise.
19087         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19088         * modules/unictype/property-bidi-other-neutral: Likewise.
19089         * modules/unictype/property-bidi-pdf: Likewise.
19090         * modules/unictype/property-bidi-segment-separator: Likewise.
19091         * modules/unictype/property-bidi-whitespace: Likewise.
19092         * modules/unictype/property-byname: Likewise.
19093         * modules/unictype/property-combining: Likewise.
19094         * modules/unictype/property-composite: Likewise.
19095         * modules/unictype/property-currency-symbol: Likewise.
19096         * modules/unictype/property-dash: Likewise.
19097         * modules/unictype/property-decimal-digit: Likewise.
19098         * modules/unictype/property-default-ignorable-code-point: Likewise.
19099         * modules/unictype/property-deprecated: Likewise.
19100         * modules/unictype/property-diacritic: Likewise.
19101         * modules/unictype/property-extender: Likewise.
19102         * modules/unictype/property-format-control: Likewise.
19103         * modules/unictype/property-grapheme-base: Likewise.
19104         * modules/unictype/property-grapheme-extend: Likewise.
19105         * modules/unictype/property-grapheme-link: Likewise.
19106         * modules/unictype/property-hex-digit: Likewise.
19107         * modules/unictype/property-hyphen: Likewise.
19108         * modules/unictype/property-id-continue: Likewise.
19109         * modules/unictype/property-id-start: Likewise.
19110         * modules/unictype/property-ideographic: Likewise.
19111         * modules/unictype/property-ids-binary-operator: Likewise.
19112         * modules/unictype/property-ids-trinary-operator: Likewise.
19113         * modules/unictype/property-ignorable-control: Likewise.
19114         * modules/unictype/property-iso-control: Likewise.
19115         * modules/unictype/property-join-control: Likewise.
19116         * modules/unictype/property-left-of-pair: Likewise.
19117         * modules/unictype/property-line-separator: Likewise.
19118         * modules/unictype/property-logical-order-exception: Likewise.
19119         * modules/unictype/property-lowercase: Likewise.
19120         * modules/unictype/property-math: Likewise.
19121         * modules/unictype/property-non-break: Likewise.
19122         * modules/unictype/property-not-a-character: Likewise.
19123         * modules/unictype/property-numeric: Likewise.
19124         * modules/unictype/property-other-alphabetic: Likewise.
19125         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19126         * modules/unictype/property-other-grapheme-extend: Likewise.
19127         * modules/unictype/property-other-id-continue: Likewise.
19128         * modules/unictype/property-other-id-start: Likewise.
19129         * modules/unictype/property-other-lowercase: Likewise.
19130         * modules/unictype/property-other-math: Likewise.
19131         * modules/unictype/property-other-uppercase: Likewise.
19132         * modules/unictype/property-paired-punctuation: Likewise.
19133         * modules/unictype/property-paragraph-separator: Likewise.
19134         * modules/unictype/property-pattern-syntax: Likewise.
19135         * modules/unictype/property-pattern-white-space: Likewise.
19136         * modules/unictype/property-private-use: Likewise.
19137         * modules/unictype/property-punctuation: Likewise.
19138         * modules/unictype/property-quotation-mark: Likewise.
19139         * modules/unictype/property-radical: Likewise.
19140         * modules/unictype/property-sentence-terminal: Likewise.
19141         * modules/unictype/property-soft-dotted: Likewise.
19142         * modules/unictype/property-space: Likewise.
19143         * modules/unictype/property-terminal-punctuation: Likewise.
19144         * modules/unictype/property-test: Likewise.
19145         * modules/unictype/property-titlecase: Likewise.
19146         * modules/unictype/property-unassigned-code-value: Likewise.
19147         * modules/unictype/property-unified-ideograph: Likewise.
19148         * modules/unictype/property-uppercase: Likewise.
19149         * modules/unictype/property-variation-selector: Likewise.
19150         * modules/unictype/property-white-space: Likewise.
19151         * modules/unictype/property-xid-continue: Likewise.
19152         * modules/unictype/property-xid-start: Likewise.
19153         * modules/unictype/property-zero-width: Likewise.
19154         * modules/unictype/scripts: Likewise.
19155         * modules/unictype/syntax-c-ident: Likewise.
19156         * modules/unictype/syntax-c-whitespace: Likewise.
19157         * modules/unictype/syntax-java-ident: Likewise.
19158         * modules/unictype/syntax-java-whitespace: Likewise.
19159         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19160         * modules/unilbrk/u8-width-linebreaks: Likewise.
19161         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19162         * modules/unilbrk/u16-width-linebreaks: Likewise.
19163         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19164         * modules/unilbrk/u32-width-linebreaks: Likewise.
19165         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19166         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19167         * modules/uniname/uniname: Likewise.
19168         * modules/uninorm/canonical-decomposition: Likewise.
19169         * modules/uninorm/composition: Likewise.
19170         * modules/uninorm/decomposing-form: Likewise.
19171         * modules/uninorm/decomposition: Likewise.
19172         * modules/uninorm/filter: Likewise.
19173         * modules/uninorm/nfc: Likewise.
19174         * modules/uninorm/nfd: Likewise.
19175         * modules/uninorm/nfkc: Likewise.
19176         * modules/uninorm/nfkd: Likewise.
19177         * modules/uninorm/u8-normalize: Likewise.
19178         * modules/uninorm/u8-normcmp: Likewise.
19179         * modules/uninorm/u8-normcoll: Likewise.
19180         * modules/uninorm/u8-normxfrm: Likewise.
19181         * modules/uninorm/u16-normalize: Likewise.
19182         * modules/uninorm/u16-normcmp: Likewise.
19183         * modules/uninorm/u16-normcoll: Likewise.
19184         * modules/uninorm/u16-normxfrm: Likewise.
19185         * modules/uninorm/u32-normalize: Likewise.
19186         * modules/uninorm/u32-normcmp: Likewise.
19187         * modules/uninorm/u32-normcoll: Likewise.
19188         * modules/uninorm/u32-normxfrm: Likewise.
19189         * modules/unistdio/u8-asnprintf: Likewise.
19190         * modules/unistdio/u8-asprintf: Likewise.
19191         * modules/unistdio/u8-snprintf: Likewise.
19192         * modules/unistdio/u8-sprintf: Likewise.
19193         * modules/unistdio/u8-u8-asnprintf: Likewise.
19194         * modules/unistdio/u8-u8-asprintf: Likewise.
19195         * modules/unistdio/u8-u8-snprintf: Likewise.
19196         * modules/unistdio/u8-u8-sprintf: Likewise.
19197         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19198         * modules/unistdio/u8-u8-vasprintf: Likewise.
19199         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19200         * modules/unistdio/u8-u8-vsprintf: Likewise.
19201         * modules/unistdio/u8-vasnprintf: Likewise.
19202         * modules/unistdio/u8-vasprintf: Likewise.
19203         * modules/unistdio/u8-vsnprintf: Likewise.
19204         * modules/unistdio/u8-vsprintf: Likewise.
19205         * modules/unistdio/u16-asnprintf: Likewise.
19206         * modules/unistdio/u16-asprintf: Likewise.
19207         * modules/unistdio/u16-snprintf: Likewise.
19208         * modules/unistdio/u16-sprintf: Likewise.
19209         * modules/unistdio/u16-u16-asnprintf: Likewise.
19210         * modules/unistdio/u16-u16-asprintf: Likewise.
19211         * modules/unistdio/u16-u16-snprintf: Likewise.
19212         * modules/unistdio/u16-u16-sprintf: Likewise.
19213         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19214         * modules/unistdio/u16-u16-vasprintf: Likewise.
19215         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19216         * modules/unistdio/u16-u16-vsprintf: Likewise.
19217         * modules/unistdio/u16-vasnprintf: Likewise.
19218         * modules/unistdio/u16-vasprintf: Likewise.
19219         * modules/unistdio/u16-vsnprintf: Likewise.
19220         * modules/unistdio/u16-vsprintf: Likewise.
19221         * modules/unistdio/u32-asnprintf: Likewise.
19222         * modules/unistdio/u32-asprintf: Likewise.
19223         * modules/unistdio/u32-snprintf: Likewise.
19224         * modules/unistdio/u32-sprintf: Likewise.
19225         * modules/unistdio/u32-u32-asnprintf: Likewise.
19226         * modules/unistdio/u32-u32-asprintf: Likewise.
19227         * modules/unistdio/u32-u32-snprintf: Likewise.
19228         * modules/unistdio/u32-u32-sprintf: Likewise.
19229         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19230         * modules/unistdio/u32-u32-vasprintf: Likewise.
19231         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19232         * modules/unistdio/u32-u32-vsprintf: Likewise.
19233         * modules/unistdio/u32-vasnprintf: Likewise.
19234         * modules/unistdio/u32-vasprintf: Likewise.
19235         * modules/unistdio/u32-vsnprintf: Likewise.
19236         * modules/unistdio/u32-vsprintf: Likewise.
19237         * modules/unistdio/ulc-asnprintf: Likewise.
19238         * modules/unistdio/ulc-asprintf: Likewise.
19239         * modules/unistdio/ulc-fprintf: Likewise.
19240         * modules/unistdio/ulc-snprintf: Likewise.
19241         * modules/unistdio/ulc-sprintf: Likewise.
19242         * modules/unistdio/ulc-vasnprintf: Likewise.
19243         * modules/unistdio/ulc-vasprintf: Likewise.
19244         * modules/unistdio/ulc-vfprintf: Likewise.
19245         * modules/unistdio/ulc-vsnprintf: Likewise.
19246         * modules/unistdio/ulc-vsprintf: Likewise.
19247         * modules/unistr/u8-check: Likewise.
19248         * modules/unistr/u8-chr: Likewise.
19249         * modules/unistr/u8-cmp: Likewise.
19250         * modules/unistr/u8-cmp2: Likewise.
19251         * modules/unistr/u8-cpy: Likewise.
19252         * modules/unistr/u8-cpy-alloc: Likewise.
19253         * modules/unistr/u8-endswith: Likewise.
19254         * modules/unistr/u8-mblen: Likewise.
19255         * modules/unistr/u8-mbsnlen: Likewise.
19256         * modules/unistr/u8-mbtouc: Likewise.
19257         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19258         * modules/unistr/u8-mbtoucr: Likewise.
19259         * modules/unistr/u8-move: Likewise.
19260         * modules/unistr/u8-next: Likewise.
19261         * modules/unistr/u8-prev: Likewise.
19262         * modules/unistr/u8-set: Likewise.
19263         * modules/unistr/u8-startswith: Likewise.
19264         * modules/unistr/u8-stpcpy: Likewise.
19265         * modules/unistr/u8-stpncpy: Likewise.
19266         * modules/unistr/u8-strcat: Likewise.
19267         * modules/unistr/u8-strchr: Likewise.
19268         * modules/unistr/u8-strcmp: Likewise.
19269         * modules/unistr/u8-strcoll: Likewise.
19270         * modules/unistr/u8-strcpy: Likewise.
19271         * modules/unistr/u8-strcspn: Likewise.
19272         * modules/unistr/u8-strdup: Likewise.
19273         * modules/unistr/u8-strlen: Likewise.
19274         * modules/unistr/u8-strmblen: Likewise.
19275         * modules/unistr/u8-strmbtouc: Likewise.
19276         * modules/unistr/u8-strncat: Likewise.
19277         * modules/unistr/u8-strncmp: Likewise.
19278         * modules/unistr/u8-strncpy: Likewise.
19279         * modules/unistr/u8-strnlen: Likewise.
19280         * modules/unistr/u8-strpbrk: Likewise.
19281         * modules/unistr/u8-strrchr: Likewise.
19282         * modules/unistr/u8-strspn: Likewise.
19283         * modules/unistr/u8-strstr: Likewise.
19284         * modules/unistr/u8-strtok: Likewise.
19285         * modules/unistr/u8-to-u16: Likewise.
19286         * modules/unistr/u8-to-u32: Likewise.
19287         * modules/unistr/u8-uctomb: Likewise.
19288         * modules/unistr/u16-check: Likewise.
19289         * modules/unistr/u16-chr: Likewise.
19290         * modules/unistr/u16-cmp: Likewise.
19291         * modules/unistr/u16-cmp2: Likewise.
19292         * modules/unistr/u16-cpy: Likewise.
19293         * modules/unistr/u16-cpy-alloc: Likewise.
19294         * modules/unistr/u16-endswith: Likewise.
19295         * modules/unistr/u16-mblen: Likewise.
19296         * modules/unistr/u16-mbsnlen: Likewise.
19297         * modules/unistr/u16-mbtouc: Likewise.
19298         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19299         * modules/unistr/u16-mbtoucr: Likewise.
19300         * modules/unistr/u16-move: Likewise.
19301         * modules/unistr/u16-next: Likewise.
19302         * modules/unistr/u16-prev: Likewise.
19303         * modules/unistr/u16-set: Likewise.
19304         * modules/unistr/u16-startswith: Likewise.
19305         * modules/unistr/u16-stpcpy: Likewise.
19306         * modules/unistr/u16-stpncpy: Likewise.
19307         * modules/unistr/u16-strcat: Likewise.
19308         * modules/unistr/u16-strchr: Likewise.
19309         * modules/unistr/u16-strcmp: Likewise.
19310         * modules/unistr/u16-strcoll: Likewise.
19311         * modules/unistr/u16-strcpy: Likewise.
19312         * modules/unistr/u16-strcspn: Likewise.
19313         * modules/unistr/u16-strdup: Likewise.
19314         * modules/unistr/u16-strlen: Likewise.
19315         * modules/unistr/u16-strmblen: Likewise.
19316         * modules/unistr/u16-strmbtouc: Likewise.
19317         * modules/unistr/u16-strncat: Likewise.
19318         * modules/unistr/u16-strncmp: Likewise.
19319         * modules/unistr/u16-strncpy: Likewise.
19320         * modules/unistr/u16-strnlen: Likewise.
19321         * modules/unistr/u16-strpbrk: Likewise.
19322         * modules/unistr/u16-strrchr: Likewise.
19323         * modules/unistr/u16-strspn: Likewise.
19324         * modules/unistr/u16-strstr: Likewise.
19325         * modules/unistr/u16-strtok: Likewise.
19326         * modules/unistr/u16-to-u32: Likewise.
19327         * modules/unistr/u16-to-u8: Likewise.
19328         * modules/unistr/u16-uctomb: Likewise.
19329         * modules/unistr/u32-check: Likewise.
19330         * modules/unistr/u32-chr: Likewise.
19331         * modules/unistr/u32-cmp: Likewise.
19332         * modules/unistr/u32-cmp2: Likewise.
19333         * modules/unistr/u32-cpy: Likewise.
19334         * modules/unistr/u32-cpy-alloc: Likewise.
19335         * modules/unistr/u32-endswith: Likewise.
19336         * modules/unistr/u32-mblen: Likewise.
19337         * modules/unistr/u32-mbsnlen: Likewise.
19338         * modules/unistr/u32-mbtouc: Likewise.
19339         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19340         * modules/unistr/u32-mbtoucr: Likewise.
19341         * modules/unistr/u32-move: Likewise.
19342         * modules/unistr/u32-next: Likewise.
19343         * modules/unistr/u32-prev: Likewise.
19344         * modules/unistr/u32-set: Likewise.
19345         * modules/unistr/u32-startswith: Likewise.
19346         * modules/unistr/u32-stpcpy: Likewise.
19347         * modules/unistr/u32-stpncpy: Likewise.
19348         * modules/unistr/u32-strcat: Likewise.
19349         * modules/unistr/u32-strchr: Likewise.
19350         * modules/unistr/u32-strcmp: Likewise.
19351         * modules/unistr/u32-strcoll: Likewise.
19352         * modules/unistr/u32-strcpy: Likewise.
19353         * modules/unistr/u32-strcspn: Likewise.
19354         * modules/unistr/u32-strdup: Likewise.
19355         * modules/unistr/u32-strlen: Likewise.
19356         * modules/unistr/u32-strmblen: Likewise.
19357         * modules/unistr/u32-strmbtouc: Likewise.
19358         * modules/unistr/u32-strncat: Likewise.
19359         * modules/unistr/u32-strncmp: Likewise.
19360         * modules/unistr/u32-strncpy: Likewise.
19361         * modules/unistr/u32-strnlen: Likewise.
19362         * modules/unistr/u32-strpbrk: Likewise.
19363         * modules/unistr/u32-strrchr: Likewise.
19364         * modules/unistr/u32-strspn: Likewise.
19365         * modules/unistr/u32-strstr: Likewise.
19366         * modules/unistr/u32-strtok: Likewise.
19367         * modules/unistr/u32-to-u16: Likewise.
19368         * modules/unistr/u32-to-u8: Likewise.
19369         * modules/unistr/u32-uctomb: Likewise.
19370         * modules/uniwbrk/u8-wordbreaks: Likewise.
19371         * modules/uniwbrk/u16-wordbreaks: Likewise.
19372         * modules/uniwbrk/u32-wordbreaks: Likewise.
19373         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19374         * modules/uniwbrk/wordbreak-property: Likewise.
19375         * modules/uniwidth/u8-strwidth: Likewise.
19376         * modules/uniwidth/u8-width: Likewise.
19377         * modules/uniwidth/u16-strwidth: Likewise.
19378         * modules/uniwidth/u16-width: Likewise.
19379         * modules/uniwidth/u32-strwidth: Likewise.
19380         * modules/uniwidth/u32-width: Likewise.
19381         * modules/uniwidth/width: Likewise.
19382         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19383         with $(LIBUNISTRING).
19384         * modules/unicase/ignorable-tests: Likewise.
19385         * modules/unicase/locale-language-tests: Likewise.
19386         * modules/unicase/tolower-tests: Likewise.
19387         * modules/unicase/totitle-tests: Likewise.
19388         * modules/unicase/toupper-tests: Likewise.
19389         * modules/unicase/u8-casecmp-tests: Likewise.
19390         * modules/unicase/u8-casecoll-tests: Likewise.
19391         * modules/unicase/u8-casefold-tests: Likewise.
19392         * modules/unicase/u8-is-cased-tests: Likewise.
19393         * modules/unicase/u8-is-casefolded-tests: Likewise.
19394         * modules/unicase/u8-is-lowercase-tests: Likewise.
19395         * modules/unicase/u8-is-titlecase-tests: Likewise.
19396         * modules/unicase/u8-is-uppercase-tests: Likewise.
19397         * modules/unicase/u8-tolower-tests: Likewise.
19398         * modules/unicase/u8-totitle-tests: Likewise.
19399         * modules/unicase/u8-toupper-tests: Likewise.
19400         * modules/unicase/u16-casecmp-tests: Likewise.
19401         * modules/unicase/u16-casecoll-tests: Likewise.
19402         * modules/unicase/u16-casefold-tests: Likewise.
19403         * modules/unicase/u16-is-cased-tests: Likewise.
19404         * modules/unicase/u16-is-casefolded-tests: Likewise.
19405         * modules/unicase/u16-is-lowercase-tests: Likewise.
19406         * modules/unicase/u16-is-titlecase-tests: Likewise.
19407         * modules/unicase/u16-is-uppercase-tests: Likewise.
19408         * modules/unicase/u16-tolower-tests: Likewise.
19409         * modules/unicase/u16-totitle-tests: Likewise.
19410         * modules/unicase/u16-toupper-tests: Likewise.
19411         * modules/unicase/u32-casecmp-tests: Likewise.
19412         * modules/unicase/u32-casecoll-tests: Likewise.
19413         * modules/unicase/u32-casefold-tests: Likewise.
19414         * modules/unicase/u32-is-cased-tests: Likewise.
19415         * modules/unicase/u32-is-casefolded-tests: Likewise.
19416         * modules/unicase/u32-is-lowercase-tests: Likewise.
19417         * modules/unicase/u32-is-titlecase-tests: Likewise.
19418         * modules/unicase/u32-is-uppercase-tests: Likewise.
19419         * modules/unicase/u32-tolower-tests: Likewise.
19420         * modules/unicase/u32-totitle-tests: Likewise.
19421         * modules/unicase/u32-toupper-tests: Likewise.
19422         * modules/unicase/ulc-casecmp-tests: Likewise.
19423         * modules/unicase/ulc-casecoll-tests: Likewise.
19424         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19425         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19426         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19427         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19428         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19429         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19430         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19431         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19432         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19433         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19434         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19435         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19436         * modules/unictype/bidicategory-byname-tests: Likewise.
19437         * modules/unictype/bidicategory-name-tests: Likewise.
19438         * modules/unictype/bidicategory-of-tests: Likewise.
19439         * modules/unictype/bidicategory-test-tests: Likewise.
19440         * modules/unictype/block-list-tests: Likewise.
19441         * modules/unictype/block-of-tests: Likewise.
19442         * modules/unictype/block-test-tests: Likewise.
19443         * modules/unictype/category-C-tests: Likewise.
19444         * modules/unictype/category-Cc-tests: Likewise.
19445         * modules/unictype/category-Cf-tests: Likewise.
19446         * modules/unictype/category-Cn-tests: Likewise.
19447         * modules/unictype/category-Co-tests: Likewise.
19448         * modules/unictype/category-Cs-tests: Likewise.
19449         * modules/unictype/category-L-tests: Likewise.
19450         * modules/unictype/category-Ll-tests: Likewise.
19451         * modules/unictype/category-Lm-tests: Likewise.
19452         * modules/unictype/category-Lo-tests: Likewise.
19453         * modules/unictype/category-Lt-tests: Likewise.
19454         * modules/unictype/category-Lu-tests: Likewise.
19455         * modules/unictype/category-M-tests: Likewise.
19456         * modules/unictype/category-Mc-tests: Likewise.
19457         * modules/unictype/category-Me-tests: Likewise.
19458         * modules/unictype/category-Mn-tests: Likewise.
19459         * modules/unictype/category-N-tests: Likewise.
19460         * modules/unictype/category-Nd-tests: Likewise.
19461         * modules/unictype/category-Nl-tests: Likewise.
19462         * modules/unictype/category-No-tests: Likewise.
19463         * modules/unictype/category-P-tests: Likewise.
19464         * modules/unictype/category-Pc-tests: Likewise.
19465         * modules/unictype/category-Pd-tests: Likewise.
19466         * modules/unictype/category-Pe-tests: Likewise.
19467         * modules/unictype/category-Pf-tests: Likewise.
19468         * modules/unictype/category-Pi-tests: Likewise.
19469         * modules/unictype/category-Po-tests: Likewise.
19470         * modules/unictype/category-Ps-tests: Likewise.
19471         * modules/unictype/category-S-tests: Likewise.
19472         * modules/unictype/category-Sc-tests: Likewise.
19473         * modules/unictype/category-Sk-tests: Likewise.
19474         * modules/unictype/category-Sm-tests: Likewise.
19475         * modules/unictype/category-So-tests: Likewise.
19476         * modules/unictype/category-Z-tests: Likewise.
19477         * modules/unictype/category-Zl-tests: Likewise.
19478         * modules/unictype/category-Zp-tests: Likewise.
19479         * modules/unictype/category-Zs-tests: Likewise.
19480         * modules/unictype/category-and-not-tests: Likewise.
19481         * modules/unictype/category-and-tests: Likewise.
19482         * modules/unictype/category-byname-tests: Likewise.
19483         * modules/unictype/category-name-tests: Likewise.
19484         * modules/unictype/category-none-tests: Likewise.
19485         * modules/unictype/category-of-tests: Likewise.
19486         * modules/unictype/category-or-tests: Likewise.
19487         * modules/unictype/category-test-withtable-tests: Likewise.
19488         * modules/unictype/combining-class-tests: Likewise.
19489         * modules/unictype/ctype-alnum-tests: Likewise.
19490         * modules/unictype/ctype-alpha-tests: Likewise.
19491         * modules/unictype/ctype-blank-tests: Likewise.
19492         * modules/unictype/ctype-cntrl-tests: Likewise.
19493         * modules/unictype/ctype-digit-tests: Likewise.
19494         * modules/unictype/ctype-graph-tests: Likewise.
19495         * modules/unictype/ctype-lower-tests: Likewise.
19496         * modules/unictype/ctype-print-tests: Likewise.
19497         * modules/unictype/ctype-punct-tests: Likewise.
19498         * modules/unictype/ctype-space-tests: Likewise.
19499         * modules/unictype/ctype-upper-tests: Likewise.
19500         * modules/unictype/ctype-xdigit-tests: Likewise.
19501         * modules/unictype/decimal-digit-tests: Likewise.
19502         * modules/unictype/digit-tests: Likewise.
19503         * modules/unictype/mirror-tests: Likewise.
19504         * modules/unictype/numeric-tests: Likewise.
19505         * modules/unictype/property-alphabetic-tests: Likewise.
19506         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19507         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19508         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19509         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19510         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19511         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19512         * modules/unictype/property-bidi-control-tests: Likewise.
19513         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19514         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19515         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19516         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19517         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19518         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19519         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19520         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19521         * modules/unictype/property-bidi-pdf-tests: Likewise.
19522         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19523         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19524         * modules/unictype/property-byname-tests: Likewise.
19525         * modules/unictype/property-combining-tests: Likewise.
19526         * modules/unictype/property-composite-tests: Likewise.
19527         * modules/unictype/property-currency-symbol-tests: Likewise.
19528         * modules/unictype/property-dash-tests: Likewise.
19529         * modules/unictype/property-decimal-digit-tests: Likewise.
19530         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19531         * modules/unictype/property-deprecated-tests: Likewise.
19532         * modules/unictype/property-diacritic-tests: Likewise.
19533         * modules/unictype/property-extender-tests: Likewise.
19534         * modules/unictype/property-format-control-tests: Likewise.
19535         * modules/unictype/property-grapheme-base-tests: Likewise.
19536         * modules/unictype/property-grapheme-extend-tests: Likewise.
19537         * modules/unictype/property-grapheme-link-tests: Likewise.
19538         * modules/unictype/property-hex-digit-tests: Likewise.
19539         * modules/unictype/property-hyphen-tests: Likewise.
19540         * modules/unictype/property-id-continue-tests: Likewise.
19541         * modules/unictype/property-id-start-tests: Likewise.
19542         * modules/unictype/property-ideographic-tests: Likewise.
19543         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19544         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19545         * modules/unictype/property-ignorable-control-tests: Likewise.
19546         * modules/unictype/property-iso-control-tests: Likewise.
19547         * modules/unictype/property-join-control-tests: Likewise.
19548         * modules/unictype/property-left-of-pair-tests: Likewise.
19549         * modules/unictype/property-line-separator-tests: Likewise.
19550         * modules/unictype/property-logical-order-exception-tests: Likewise.
19551         * modules/unictype/property-lowercase-tests: Likewise.
19552         * modules/unictype/property-math-tests: Likewise.
19553         * modules/unictype/property-non-break-tests: Likewise.
19554         * modules/unictype/property-not-a-character-tests: Likewise.
19555         * modules/unictype/property-numeric-tests: Likewise.
19556         * modules/unictype/property-other-alphabetic-tests: Likewise.
19557         * modules/unictype/property-other-default-ignorable-code-point-tests:
19558         Likewise.
19559         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19560         * modules/unictype/property-other-id-continue-tests: Likewise.
19561         * modules/unictype/property-other-id-start-tests: Likewise.
19562         * modules/unictype/property-other-lowercase-tests: Likewise.
19563         * modules/unictype/property-other-math-tests: Likewise.
19564         * modules/unictype/property-other-uppercase-tests: Likewise.
19565         * modules/unictype/property-paired-punctuation-tests: Likewise.
19566         * modules/unictype/property-paragraph-separator-tests: Likewise.
19567         * modules/unictype/property-pattern-syntax-tests: Likewise.
19568         * modules/unictype/property-pattern-white-space-tests: Likewise.
19569         * modules/unictype/property-private-use-tests: Likewise.
19570         * modules/unictype/property-punctuation-tests: Likewise.
19571         * modules/unictype/property-quotation-mark-tests: Likewise.
19572         * modules/unictype/property-radical-tests: Likewise.
19573         * modules/unictype/property-sentence-terminal-tests: Likewise.
19574         * modules/unictype/property-soft-dotted-tests: Likewise.
19575         * modules/unictype/property-space-tests: Likewise.
19576         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19577         * modules/unictype/property-test-tests: Likewise.
19578         * modules/unictype/property-titlecase-tests: Likewise.
19579         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19580         * modules/unictype/property-unified-ideograph-tests: Likewise.
19581         * modules/unictype/property-uppercase-tests: Likewise.
19582         * modules/unictype/property-variation-selector-tests: Likewise.
19583         * modules/unictype/property-white-space-tests: Likewise.
19584         * modules/unictype/property-xid-continue-tests: Likewise.
19585         * modules/unictype/property-xid-start-tests: Likewise.
19586         * modules/unictype/property-zero-width-tests: Likewise.
19587         * modules/unictype/scripts-tests: Likewise.
19588         * modules/unictype/syntax-c-ident-tests: Likewise.
19589         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19590         * modules/unictype/syntax-java-ident-tests: Likewise.
19591         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19592         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19593         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19594         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19595         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19596         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19597         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19598         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19599         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19600         * modules/uniname/uniname-tests: Likewise.
19601         * modules/uninorm/canonical-decomposition-tests: Likewise.
19602         * modules/uninorm/compat-decomposition-tests: Likewise.
19603         * modules/uninorm/composition-tests: Likewise.
19604         * modules/uninorm/decomposing-form-tests: Likewise.
19605         * modules/uninorm/decomposition-tests: Likewise.
19606         * modules/uninorm/filter-tests: Likewise.
19607         * modules/uninorm/nfc-tests: Likewise.
19608         * modules/uninorm/nfd-tests: Likewise.
19609         * modules/uninorm/nfkc-tests: Likewise.
19610         * modules/uninorm/nfkd-tests: Likewise.
19611         * modules/uninorm/u8-normcmp-tests: Likewise.
19612         * modules/uninorm/u8-normcoll-tests: Likewise.
19613         * modules/uninorm/u16-normcmp-tests: Likewise.
19614         * modules/uninorm/u16-normcoll-tests: Likewise.
19615         * modules/uninorm/u32-normcmp-tests: Likewise.
19616         * modules/uninorm/u32-normcoll-tests: Likewise.
19617         * modules/unistdio/u8-asnprintf-tests: Likewise.
19618         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19619         * modules/unistdio/u8-vasprintf-tests: Likewise.
19620         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19621         * modules/unistdio/u8-vsprintf-tests: Likewise.
19622         * modules/unistdio/u16-asnprintf-tests: Likewise.
19623         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19624         * modules/unistdio/u16-vasprintf-tests: Likewise.
19625         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19626         * modules/unistdio/u16-vsprintf-tests: Likewise.
19627         * modules/unistdio/u32-asnprintf-tests: Likewise.
19628         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19629         * modules/unistdio/u32-vasprintf-tests: Likewise.
19630         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19631         * modules/unistdio/u32-vsprintf-tests: Likewise.
19632         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19633         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19634         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19635         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19636         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19637         * modules/unistr/u8-check-tests: Likewise.
19638         * modules/unistr/u8-chr-tests: Likewise.
19639         * modules/unistr/u8-cmp-tests: Likewise.
19640         * modules/unistr/u8-cmp2-tests: Likewise.
19641         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19642         * modules/unistr/u8-cpy-tests: Likewise.
19643         * modules/unistr/u8-mblen-tests: Likewise.
19644         * modules/unistr/u8-mbsnlen-tests: Likewise.
19645         * modules/unistr/u8-mbtouc-tests: Likewise.
19646         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19647         * modules/unistr/u8-mbtoucr-tests: Likewise.
19648         * modules/unistr/u8-move-tests: Likewise.
19649         * modules/unistr/u8-next-tests: Likewise.
19650         * modules/unistr/u8-prev-tests: Likewise.
19651         * modules/unistr/u8-set-tests: Likewise.
19652         * modules/unistr/u8-stpcpy-tests: Likewise.
19653         * modules/unistr/u8-stpncpy-tests: Likewise.
19654         * modules/unistr/u8-strcat-tests: Likewise.
19655         * modules/unistr/u8-strcmp-tests: Likewise.
19656         * modules/unistr/u8-strcoll-tests: Likewise.
19657         * modules/unistr/u8-strcpy-tests: Likewise.
19658         * modules/unistr/u8-strdup-tests: Likewise.
19659         * modules/unistr/u8-strlen-tests: Likewise.
19660         * modules/unistr/u8-strmblen-tests: Likewise.
19661         * modules/unistr/u8-strmbtouc-tests: Likewise.
19662         * modules/unistr/u8-strncat-tests: Likewise.
19663         * modules/unistr/u8-strncmp-tests: Likewise.
19664         * modules/unistr/u8-strncpy-tests: Likewise.
19665         * modules/unistr/u8-strnlen-tests: Likewise.
19666         * modules/unistr/u8-to-u16-tests: Likewise.
19667         * modules/unistr/u8-to-u32-tests: Likewise.
19668         * modules/unistr/u8-uctomb-tests: Likewise.
19669         * modules/unistr/u16-check-tests: Likewise.
19670         * modules/unistr/u16-chr-tests: Likewise.
19671         * modules/unistr/u16-cmp-tests: Likewise.
19672         * modules/unistr/u16-cmp2-tests: Likewise.
19673         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19674         * modules/unistr/u16-cpy-tests: Likewise.
19675         * modules/unistr/u16-mblen-tests: Likewise.
19676         * modules/unistr/u16-mbsnlen-tests: Likewise.
19677         * modules/unistr/u16-mbtouc-tests: Likewise.
19678         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19679         * modules/unistr/u16-mbtoucr-tests: Likewise.
19680         * modules/unistr/u16-move-tests: Likewise.
19681         * modules/unistr/u16-next-tests: Likewise.
19682         * modules/unistr/u16-prev-tests: Likewise.
19683         * modules/unistr/u16-set-tests: Likewise.
19684         * modules/unistr/u16-stpcpy-tests: Likewise.
19685         * modules/unistr/u16-stpncpy-tests: Likewise.
19686         * modules/unistr/u16-strcat-tests: Likewise.
19687         * modules/unistr/u16-strcmp-tests: Likewise.
19688         * modules/unistr/u16-strcoll-tests: Likewise.
19689         * modules/unistr/u16-strcpy-tests: Likewise.
19690         * modules/unistr/u16-strdup-tests: Likewise.
19691         * modules/unistr/u16-strlen-tests: Likewise.
19692         * modules/unistr/u16-strmblen-tests: Likewise.
19693         * modules/unistr/u16-strmbtouc-tests: Likewise.
19694         * modules/unistr/u16-strncat-tests: Likewise.
19695         * modules/unistr/u16-strncmp-tests: Likewise.
19696         * modules/unistr/u16-strncpy-tests: Likewise.
19697         * modules/unistr/u16-strnlen-tests: Likewise.
19698         * modules/unistr/u16-to-u32-tests: Likewise.
19699         * modules/unistr/u16-to-u8-tests: Likewise.
19700         * modules/unistr/u16-uctomb-tests: Likewise.
19701         * modules/unistr/u32-check-tests: Likewise.
19702         * modules/unistr/u32-chr-tests: Likewise.
19703         * modules/unistr/u32-cmp-tests: Likewise.
19704         * modules/unistr/u32-cmp2-tests: Likewise.
19705         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19706         * modules/unistr/u32-cpy-tests: Likewise.
19707         * modules/unistr/u32-mblen-tests: Likewise.
19708         * modules/unistr/u32-mbsnlen-tests: Likewise.
19709         * modules/unistr/u32-mbtouc-tests: Likewise.
19710         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19711         * modules/unistr/u32-mbtoucr-tests: Likewise.
19712         * modules/unistr/u32-move-tests: Likewise.
19713         * modules/unistr/u32-next-tests: Likewise.
19714         * modules/unistr/u32-prev-tests: Likewise.
19715         * modules/unistr/u32-set-tests: Likewise.
19716         * modules/unistr/u32-stpcpy-tests: Likewise.
19717         * modules/unistr/u32-stpncpy-tests: Likewise.
19718         * modules/unistr/u32-strcat-tests: Likewise.
19719         * modules/unistr/u32-strcmp-tests: Likewise.
19720         * modules/unistr/u32-strcoll-tests: Likewise.
19721         * modules/unistr/u32-strcpy-tests: Likewise.
19722         * modules/unistr/u32-strdup-tests: Likewise.
19723         * modules/unistr/u32-strlen-tests: Likewise.
19724         * modules/unistr/u32-strmblen-tests: Likewise.
19725         * modules/unistr/u32-strmbtouc-tests: Likewise.
19726         * modules/unistr/u32-strncat-tests: Likewise.
19727         * modules/unistr/u32-strncmp-tests: Likewise.
19728         * modules/unistr/u32-strncpy-tests: Likewise.
19729         * modules/unistr/u32-strnlen-tests: Likewise.
19730         * modules/unistr/u32-to-u16-tests: Likewise.
19731         * modules/unistr/u32-to-u8-tests: Likewise.
19732         * modules/unistr/u32-uctomb-tests: Likewise.
19733         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19734         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19735         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19736         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19737         * modules/uniwidth/u8-strwidth-tests: Likewise.
19738         * modules/uniwidth/u8-width-tests: Likewise.
19739         * modules/uniwidth/u16-strwidth-tests: Likewise.
19740         * modules/uniwidth/u16-width-tests: Likewise.
19741         * modules/uniwidth/u32-strwidth-tests: Likewise.
19742         * modules/uniwidth/u32-width-tests: Likewise.
19743         * modules/uniwidth/width-tests: Likewise.
19744
19745 2010-05-18  Richard Jones  <rjones@redhat.com>
19746
19747         doc: users.txt: list hivex
19748         * users.txt: Add hivex.
19749
19750 2010-05-18  Richard Jones  <rjones@redhat.com>
19751
19752         doc: users.txt: list febootstrap
19753         * users.txt: Add febootstrap.
19754
19755 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19756
19757         bootstrap: fix an error when gnulib is not used as a git submodule
19758         * build-aux/bootstrap (gnulib_path): If its length is zero then
19759         assign "gnulib" to it.
19760         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19761
19762 2010-05-16  Bruno Haible  <bruno@clisp.org>
19763
19764         Avoid autoconf warnings about AM_ICONV.
19765         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19766         2.64.
19767
19768 2010-05-16  Bruno Haible  <bruno@clisp.org>
19769
19770         absolute-header: Make the macro usable in more situations.
19771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19772         from gl_ABSOLUTE_HEADER.
19773         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19774
19775 2010-05-16  James Youngman  <jay@gnu.org>
19776
19777         doc: update users.txt
19778         * users.txt: Add CSSC.
19779
19780 2010-05-16  Jim Meyering  <meyering@redhat.com>
19781
19782         init.sh: fix an error in the previous change; add more comments
19783         * tests/init.sh: Compare exit code in loop against 9, not 2.
19784         Patch by Bruno Haible.
19785         Make the two tests more similar by adding an empty "then" clause.
19786         Add comments.
19787
19788         init.sh: avoid unnecessary shell re-exec
19789         * tests/init.sh: Improve the re-exec-required check to first test the
19790         current shell.  If it passes the test, do not search for a shell that
19791         does pass, and do not re-exec.  This test is particularly contorted to
19792         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19793         of $(...) evokes a syntax error and causes immediate shell exit with
19794         status 2.  Bruno Haible reported that the re-exec made it impossible
19795         to single-step through any init.sh-using script.
19796
19797 2010-05-16  Bruno Haible  <bruno@clisp.org>
19798
19799         Fix collision between gnulib's and libintl's printf replacements.
19800         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19801         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19802         (printf): When using GNU C, map the __printf__ function to rpl_printf
19803         via __asm__. When not using GNU C, define rpl_printf instead of
19804         __printf__.
19805         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19806         commit.
19807         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19808         commit.
19809         * m4/asm-underscore.m4: New file.
19810         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19811         * modules/stdio (Files): Add m4/asm-underscore.m4.
19812         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19813         Reported by Ben Pfaff.
19814
19815 2010-05-16  Bruno Haible  <bruno@clisp.org>
19816
19817         verify: Avoid skipping the test on openSUSE 11.0.
19818         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19819
19820 2010-05-13  Bruno Haible  <bruno@clisp.org>
19821
19822         Avoid useless warnings from G++.
19823         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19824         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19825         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19826
19827 2010-05-11  Jim Meyering  <meyering@redhat.com>
19828
19829         maint.mk: tweak preceding change
19830         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19831         regexps tighter by anchoring at EOL, and make the new group "shy"
19832         for slightly decreased overhead.
19833
19834 2010-05-11  Eric Blake  <eblake@redhat.com>
19835
19836         maint.mk: gnulib doesn't guarantee NSIG
19837         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19838
19839 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19840
19841         test-pwrite.c: Remove unused variable declaration.
19842         * tests/test-pwrite.c (main): Remove read_buf declaration.
19843
19844         Remove useless test-pwrite.sh file.
19845         * tests/test-pwrite.sh: Delete file.
19846         * modules/pwrite-tests: Remove references.
19847         Reported by Bruno Haible.
19848
19849 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19850
19851         init.sh: fix a typo
19852         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19853
19854 2010-05-10  Jim Meyering  <meyering@redhat.com>
19855
19856         maint.mk: avoid using a temporary file in the always-defined-macros check
19857         * top/maint.mk (.re-defmac): Remove rule.
19858         (gl_trap_): Remove definition.
19859         (sc_prohibit_always-defined_macros): Rewrite not to create and
19860         depend on a temporary file.  Instead, depend on GNU grep's ability
19861         to read a list of regular expressions from stdin when given "-f -".
19862
19863 2010-05-09  Bruno Haible  <bruno@clisp.org>
19864
19865         Update to GNU gettext 0.18, part 1.
19866         * m4/gettext.m4: Update to GNU gettext 0.18.
19867         * m4/intl.m4: Likewise.
19868         * m4/po.m4: Likewise.
19869         * modules/gettext (Files): Add m4/fcntl-o.m4.
19870         (configure.ac): Require gettext infrastructure from version 0.18.
19871
19872 2010-05-09  Jim Meyering  <meyering@redhat.com>
19873
19874         init.sh: enable MALLOC_PERTURB_
19875         * tests/init.sh: Enable glibc's malloc-perturbing option.
19876
19877         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19878         With my recent change in init.sh from the two-line form:
19879             -#   : ${srcdir=.}
19880             -#   . "$srcdir/init.sh"; path_prepend_ .
19881             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19882         I noticed that using the one-line form would cause this test
19883         to fail with a false-positive, or to stop working altogether,
19884         depending on whether help-version changed or all the tests did.
19885         * top/maint.mk (_hv_regex): Remove this definition.
19886         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19887         (_hv_regex_strong): Use a stronger regex to check for conformance.
19888         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19889         Give a separate diagnostic for lack of conforming use.
19890
19891         maint.mk: prohibit definition of symbols defined by gnulib
19892         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19893         definition of symbols defined by gnulib.
19894
19895 2010-05-09  Bruno Haible  <bruno@clisp.org>
19896
19897         acl: Avoid test failure on Cygwin-hosted mingw.
19898         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19899
19900 2010-05-09  Bruno Haible  <bruno@clisp.org>
19901
19902         error: Use system's fcntl function.
19903         * lib/error.c (fcntl): Undefine.
19904
19905 2010-05-09  Jim Meyering  <meyering@redhat.com>
19906
19907         verify: adjust formatting to be more consistent
19908         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19909         argument-list '('s, and after one comma.
19910
19911 2010-05-09  Bruno Haible  <bruno@clisp.org>
19912
19913         error: More reliable output on mingw.
19914         * lib/error.c: Include <windows.h>.
19915         (is_open): New function.
19916         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19917         defined.
19918
19919 2010-05-09  Bruno Haible  <bruno@clisp.org>
19920
19921         vasnprintf: Fix syntax errors in libintl build on mingw.
19922         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19923         pad_ourselves and prec_ourselves after use.
19924
19925 2010-05-08  Bruno Haible  <bruno@clisp.org>
19926
19927         * lib/config.charset: Update comments for Cygwin 1.7.
19928         * lib/localcharset.c: Likewise.
19929
19930 2010-05-07  Jim Meyering  <meyering@redhat.com>
19931
19932         init.sh: improve comments
19933         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19934         . "${srcdir=.}/init.sh"; path_prepend_ .
19935         Add a note about path_prepend_ and the alternative of using
19936         TESTS_ENVIRONMENT.
19937
19938 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19939
19940         exclude: Unescape hashed patterns in wildcard mode.
19941         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19942         to the hash list.
19943         * tests/test-exclude8.sh: New test case.
19944         * modules/exclude-tests: Add new test.
19945
19946 2010-05-05  Eric Blake  <eblake@redhat.com>
19947
19948         verify: automate tests
19949         * modules/verify-tests: New module.
19950         * tests/test-verify.sh: New file.
19951         * tests/test-verify.c: Guard each negative test with a unique id.
19952         Also avoid warning about unused left hand of comma expressions.
19953
19954 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19955
19956         Further improvements to verify.h, suggested by Eric Blake.
19957         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19958         the GL_* versions, to avoid collision with OpenGL.
19959         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19960         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19961         than testing merely whether it's defined.
19962
19963         Modify verify.h to pacify gcc -Wredundant_decls.
19964         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19965         These use the prefix "GL_" since they're likely to be useful elsewhere.
19966         We may need to break them out into a different .h file.
19967         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19968         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19969         of verify_function__.
19970
19971 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19972
19973         Tests for module pwrite.
19974         * modules/pwrite-tests: New file.
19975         * tests/test-pwrite.sh: New file.
19976         * tests/test-pwrite.c: New file.
19977
19978         New module pwrite.
19979         * lib/unistd.in.h (pwrite): New declaration.
19980         * lib/pwrite.c: New file, from glibc with modifications.
19981         * m4/pwrite.m4: New file.
19982         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19983         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19984         REPLACE_PWRITE.
19985         * modules/pwrite: New file.
19986         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19987         REPLACE_PWRITE.
19988         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19989         * doc/posix-functions/pwrite.texi: Mention the new module.
19990
19991 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19992
19993         pread: Update documentation.
19994         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19995
19996 2010-05-04  Eric Blake  <eblake@redhat.com>
19997
19998         docs: update cygwin progress
19999         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20000         this bug.
20001         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20002         Added in cygwin 1.7.2.
20003         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20004         Likewise.
20005         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20006         Likewise.
20007         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20008         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20009         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20010         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20011         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20012         Mention nproc module.
20013         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20014         bug in cygwin 1.7.5 addition.
20015         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20016         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20017         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20018         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20019         1.7.5.
20020         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20021         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20022         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20023         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20024         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20025         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20026         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20027         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20028         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20029         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20030         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20031         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20032         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20033         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20034         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20035         Likewise.
20036         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20037         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20038         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20039         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20040         Likewise.
20041         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20042         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20043         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20044         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20045         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20046         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20047         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20048         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20049         Likewise.
20050         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20051         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20052         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20053         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20054         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20055         Likewise.
20056         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20057         Likewise.
20058         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20059         Likewise.
20060         * doc/glibc-functions/xdrrec_endofrecord.texi
20061         (xdrrec_endofrecord): Likewise.
20062         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20063         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20064         Likewise.
20065         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20066         Likewise.
20067
20068 2010-05-04  Jim Meyering  <meyering@redhat.com>
20069
20070         gendocs.sh: make its "-s FILE" option more useful
20071         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20072         $PACKAGE to reflect the probably-different basename of "FILE".
20073
20074 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20075
20076         bootstrap: don't ignore download_po_files failure
20077         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20078         failure.
20079
20080 2010-05-03  Jim Meyering  <meyering@redhat.com>
20081
20082         maint.mk: allow to pass options to gendocs.sh
20083         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20084         (gendocs_options_): New overridable variable.
20085
20086         gnu-web-doc-update: don't ignore configure or build failure
20087         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20088
20089         announce-gen: backslash-escape '@'s in --help output
20090         * build-aux/announce-gen: Fix syntax errors.
20091
20092         maint.mk, announce-gen: allow project-specific announcement mail headers
20093         * top/maint.mk (translation_project_): Define default.
20094         (announcement_Cc_, announcement_mail_headers_): Likewise.
20095         (announcement): Invoke announce-gen with new --mail-headers option.
20096         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20097
20098         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20099         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20100         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20101         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20102         line in the "err2" output file when running "make check" in verbose
20103         mode (i.e., with set -x enabled).
20104
20105 2010-05-03  Bruno Haible  <bruno@clisp.org>
20106
20107         wctob: Fix for weird platforms.
20108         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20109         argument value.
20110
20111 2010-05-03  Jim Meyering  <meyering@redhat.com>
20112
20113         maint.mk: prohibit unwarranted use of <strings.h>
20114         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20115         strings.h in a file that does not also use strcasecmp, strncasecmp,
20116         ffs or ffsll.
20117
20118         maint.mk: remove obsolete comments
20119         * top/maint.mk: Remove stale, commented-out rules.
20120
20121 2010-05-02  Bruno Haible  <bruno@clisp.org>
20122
20123         wcwidth: Declare also when it's aliased.
20124         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20125         macro.
20126
20127 2010-05-02  Bruno Haible  <bruno@clisp.org>
20128
20129         Fix regression from 2010-04-25.
20130         * gnulib-tool (func_modules_transitive_closure): Check the status of
20131         all modules, not only of the tests that are of the form foo-tests where
20132         foo is a module.
20133
20134 2010-05-02  Bruno Haible  <bruno@clisp.org>
20135
20136         wctob: Work around nasty Cygwin 1.7.2 bug.
20137         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20138         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20139
20140 2010-05-01  Bruno Haible  <bruno@clisp.org>
20141
20142         fpurge: Sharper test.
20143         * tests/test-fpurge.c (main): Add one more ftell check.
20144         * modules/fpurge-tests (Depends-on): Add ftell.
20145         Suggested by Eric Blake.
20146
20147 2010-05-01  Bruno Haible  <bruno@clisp.org>
20148
20149         ftello: Another test.
20150         * tests/test-ftello3.c: New file.
20151         * modules/ftello-tests (Files): Add it.
20152         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20153         MOSTLYCLEANFILES.
20154
20155         ftell: Another test.
20156         * tests/test-ftell3.c: New file.
20157         * modules/ftell-tests (Files): Add it.
20158         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20159         MOSTLYCLEANFILES.
20160
20161 2010-05-01  Bruno Haible  <bruno@clisp.org>
20162
20163         ftell, ftello: Work around Solaris bug.
20164         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20165         * lib/ftello.c: Include stdio-impl.h.
20166         (ftello): On Solaris, when _IOWRT is set, compute the result without
20167         looking at _IOREAD.
20168         * modules/ftello (Files): Add lib/stdio-impl.h.
20169         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20170         * doc/posix-functions/ftello.texi: Likewise.
20171         Reported by Eric Blake.
20172
20173 2010-05-01  Bruno Haible  <bruno@clisp.org>
20174
20175         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20176         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20177         the _IOWRT flag is also set.
20178
20179 2010-05-01  Bruno Haible  <bruno@clisp.org>
20180
20181         Fix doc about a HP-UX stdio bug.
20182         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20183         * doc/posix-functions/ftello.texi: Likewise.
20184
20185 2010-05-01  Bruno Haible  <bruno@clisp.org>
20186
20187         lseek test: Fix failure on Solaris.
20188         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20189         output.
20190
20191 2010-04-30  Jim Meyering  <meyering@redhat.com>
20192
20193         bootstrap: don't ignore failure to generate po*/Makevars
20194         * build-aux/bootstrap (with_gettext): Don't ignore failure
20195         to create po/Makevars or runtime-po/Makevars.
20196
20197 2010-04-29  Eric Blake  <eblake@redhat.com>
20198
20199         headers: relax license to LGPLv2+
20200         * modules/fcntl-h (License): Relax license.
20201         * modules/getopt-posix (License): Likewise.
20202         * modules/locale (License): Likewise.
20203         * modules/math (License): Likewise.
20204         * modules/pty (License): Likewise.
20205         * modules/sched (License): Likewise.
20206         * modules/search (License): Likewise.
20207         * modules/spawn (License): Likewise.
20208         * modules/stdarg (License): Likewise.
20209         * modules/sysexits (License): Likewise.
20210
20211 2010-04-29  Jim Meyering  <meyering@redhat.com>
20212
20213         inttypes: relax license to LGPLv2+
20214         * modules/inttypes (License): Relax license.
20215
20216 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20217
20218         * top/maint.mk (indent): Run twice to produce idempotent results.
20219
20220 2010-04-28  Bruno Haible  <bruno@clisp.org>
20221
20222         getdate: Generate getdate.c in the source directory.
20223         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20224         MOSTLYCLEANFILES.
20225         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20226
20227 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20228
20229         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20230         is not declared as a const *; avoid warnings in that case.
20231
20232 2010-04-28  Eric Blake  <eblake@redhat.com>
20233
20234         canonicalize-lgpl: avoid compiler warning
20235         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20236         declaration' / 'extraneous semicolon' warning with some compilers.
20237         Reported by Andreas Gruenbacher.
20238
20239 2010-04-28  Jim Meyering  <meyering@redhat.com>
20240
20241         init.sh: ensure a more reliable exit status when exiting via trap
20242         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20243         Inspired by patches from Dmitry V. Levin.
20244         Also trap on signal 3 (SIGQUIT).
20245
20246 2010-04-27  Bruno Haible  <bruno@clisp.org>
20247
20248         Update doc about utimes().
20249         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20250         'utimens' module.
20251         Reported by Andreas Gruenbacher <agruen@suse.de>.
20252
20253 2010-04-27  Eric Blake  <eblake@redhat.com>
20254
20255         full-read, full-write: relax license
20256         * modules/full-read (License): Drop to LGPLv2+.
20257         * modules/full-write (License): Likewise.
20258         * modules/safe-read (License): Likewise.
20259         * modules/safe-write (License): Likewise.
20260
20261         pthread: mention library for linking
20262         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20263
20264 2010-04-27  Jim Meyering  <meyering@redhat.com>
20265
20266         maint.mk: fix a bug introduced in last change
20267         * top/maint.mk (gl_assured_headers_): Now that all names are on
20268         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20269         is not anchored to end of word, it should be adequate.
20270
20271         maint.mk: avoid side-effect in latest syntax-check
20272         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20273         to run commands via $(shell...), and hence to incur cost only when
20274         the new rule is actually run.
20275
20276         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20277         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20278         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20279         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20280         (gl_assured_headers_, az_, AZ_): Define.
20281         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20282
20283 2010-04-26  Jim Meyering  <jim@meyering.net>
20284             Bruno Haible  <bruno@clisp.org>
20285
20286         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20287         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20288         Prompted by an exchange with Gilles Espinasse.
20289
20290 2010-04-26  Jim Meyering  <meyering@redhat.com>
20291
20292         git-version-gen: aesthetic tweak
20293         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20294         so that the command remains on a single line.
20295
20296 2010-04-26  Eric Blake  <eblake@redhat.com>
20297
20298         git-version-gen: allow use on EBCDIC hosts
20299         * build-aux/git-version-gen (dirty): Use literal rather than tying
20300         ourselves to ascii.
20301         Reported by Steve Goetze.
20302
20303 2010-04-25  Bruno Haible  <bruno@clisp.org>
20304
20305         netdb: Add support for GNULIB_POSIXCHECK.
20306         * lib/netdb.in.h: Include warn-on-use.h.
20307         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20308         functions are used when GNULIB_POSIXCHECK is defined and the
20309         getaddrinfo module is not in use.
20310         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20311         freeaddrinfo, gai_strerror, getnameinfo are declared.
20312         * modules/netdb (Depends-on): Add warn-on-use.
20313         (Makefile.am): Include warn-on-use.h in netdb.h.
20314
20315 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20316
20317         build: avoid "make check" failure without .git/ directory
20318         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20319         there is no .git/ directory.
20320
20321 2010-04-25  Bruno Haible  <bruno@clisp.org>
20322
20323         ptsname: Fix misuse of ttyname_r.
20324         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20325         of errno.
20326
20327 2010-04-25  Bruno Haible  <bruno@clisp.org>
20328
20329         ttyname_r: Make it work on Solaris 10.
20330         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20331         if the system function has the POSIX declaration. Test whether the
20332         function fails if the buffer is less than 128 bytes large.
20333         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20334         system's ttyname_r function. Provide a reasonably large buffer.
20335         * modules/ttyname_r (Depends-on): Add extensions.
20336         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20337
20338 2010-04-25  Bruno Haible  <bruno@clisp.org>
20339
20340         Use the 'extensions' module for some more functions on Solaris.
20341         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20342         module.
20343         * doc/posix-functions/ctime_r.texi: Likewise.
20344         * doc/posix-functions/getgrgid_r.texi: Likewise.
20345         * doc/posix-functions/getgrnam_r.texi: Likewise.
20346         * doc/posix-functions/getpwnam_r.texi: Likewise.
20347         * doc/posix-functions/getpwuid_r.texi: Likewise.
20348         * doc/posix-functions/readdir_r.texi: Likewise.
20349         * doc/posix-functions/sigwait.texi: Likewise.
20350         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20351         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20352
20353 2010-04-25  Bruno Haible  <bruno@clisp.org>
20354
20355         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20356         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20357         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20358         * lib/ttyname_r.c: Include <limits.h>.
20359         (ttyname_r): Define using the system's ttyname_r function, if it exists
20360         and not on Solaris.
20361         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20362         set.
20363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20364         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20365         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20366         Reported by Simon Josefsson.
20367
20368 2010-04-25  Bruno Haible  <bruno@clisp.org>
20369
20370         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20371         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20372         * doc/posix-functions/ctime_r.texi: Likewise.
20373         * doc/posix-functions/getgrgid_r.texi: Likewise.
20374         * doc/posix-functions/getgrnam_r.texi: Likewise.
20375         * doc/posix-functions/getlogin_r.texi: Likewise.
20376         * doc/posix-functions/getpwnam_r.texi: Likewise.
20377         * doc/posix-functions/getpwuid_r.texi: Likewise.
20378         * doc/posix-functions/readdir_r.texi: Likewise.
20379         * doc/posix-functions/sigwait.texi: Likewise.
20380         * doc/posix-functions/ttyname_r.texi: Likewise.
20381         Reported by Simon Josefsson.
20382
20383 2010-04-25  Bruno Haible  <bruno@clisp.org>
20384
20385         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20386         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20387         also to --create-testdir.
20388         (func_acceptable): Don't consider the status of *-tests modules here.
20389         (func_modules_transitive_closure): Consider it here, before including a
20390         test module.
20391         (func_import, func_create_testdir): Set inc_all_direct_tests,
20392         inc_all_indirect_tests.
20393         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20394         --create-testdir and --create-megatestdir.
20395
20396 2010-04-25  Bruno Haible  <bruno@clisp.org>
20397
20398         gnulib-tool: Add --without-*-tests options.
20399         * gnulib-tool (func_usage): Document the --without-*-tests options.
20400         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20401         excl_unportable_tests): New variables.
20402         Fail if they are specified with --import or --update.
20403         (func_acceptable): Respect the excl_*_tests variables.
20404         (func_import): Set the excl_*_tests variables to empty.
20405
20406 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20407             Bruno Haible  <bruno@clisp.org>
20408
20409         Work around a MacOS X 10.4 bug with openpty.
20410         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20411         * tests/test-openpty.c (main): Close the master side explicitly.
20412
20413 2010-04-25  Bruno Haible  <bruno@clisp.org>
20414
20415         strnlen: Fix a C++ test error on MacOS X and Solaris.
20416         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20417         the function is not declared.
20418         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20419         Simon Josefsson.
20420
20421 2010-04-24  Bruno Haible  <bruno@clisp.org>
20422
20423         Avoid a gcc warning.
20424         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20425         of correct type for %08lx directive.
20426         Reported by Eric Blake.
20427
20428 2010-04-24  Bruno Haible  <bruno@clisp.org>
20429
20430         vasnprintf: Correct errno value in case of out-of-memory.
20431         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20432         or sprintf. Use the errno value from SNPRINTF or sprintf.
20433         Reported by Ian Beckwith <ianb@erislabs.net>.
20434
20435 2010-04-24  Bruno Haible  <bruno@clisp.org>
20436
20437         ansi-c++-opt: Find correct compiler when cross-compiling.
20438         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20439         AC_CHECK_PROGS.
20440         Reported by Simon Josefsson.
20441
20442 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20443
20444         vc-list-files: Add support for subversion
20445         * build-aux/vc-list-files: Use "svn list" to generate the list of
20446         files controlled by subversion.
20447
20448 2010-04-23  Jim Meyering  <meyering@redhat.com>
20449
20450         vc-list-files tests: convert to use init.sh
20451         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20452         path_prepend_.
20453         Use Exit, not exit.
20454         Use skip_ rather than open coding it.
20455         Remove trap set-up and compare definitions.
20456         * tests/test-vc-list-files-git.sh: Likewise.
20457         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20458
20459 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20460
20461         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20462         backup files.
20463
20464 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20465
20466         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20467
20468 2010-04-20  Eric Blake  <eblake@redhat.com>
20469
20470         tests: be robust to ignored SIGPIPE
20471         * tests/test-select-in.sh: Consume all output.
20472         * tests/test-lseek.sh: Check correct exit status, while avoiding
20473         EPIPE.
20474
20475 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20476             Bruno Haible  <bruno@clisp.org>
20477
20478         visibility: Don't use -fvisibility if it leads to a warning.
20479         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20480         yes, don't pretend that visibility works if it leads to a warning.
20481         Reported by Mike Gran <spk121@yahoo.com>.
20482
20483 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20484
20485         * build-aux/bootstrap: Use "git -h" for testing for supported options
20486         instead of "git --help".  The short-form option only shows a summary,
20487         and doesn't layout the full man page.  Grep for the full option name
20488         in the summary, too.
20489
20490 2010-04-19  Bruno Haible  <bruno@clisp.org>
20491
20492         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20493         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20494         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20495         mention of RELOCATABLE_STRIP.
20496         Reported by Sylvain Beucler <beuc@beuc.net>.
20497
20498 2010-04-19  Bruno Haible  <bruno@clisp.org>
20499
20500         * lib/diffseq.h: Fix typo in comment.
20501         Reported by Eric Blake.
20502
20503 2010-04-19  Bruno Haible  <bruno@clisp.org>
20504
20505         ioctl: Move autoconf macro to a .m4 file.
20506         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20507         * modules/ioctl (Files): Add it.
20508         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20509         Reported by Ian Beckwith <ianb@erislabs.net>.
20510
20511 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20512             Bruno Haible  <bruno@clisp.org>
20513
20514         diffseq: Accommodate use-case with abstract arrays.
20515         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20516         is not defined.
20517         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20518         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20519
20520 2010-04-18  Bruno Haible  <bruno@clisp.org>
20521
20522         * doc/posix-headers/stdbool.texi: More precise wording.
20523
20524 2010-04-17  Jim Meyering  <meyering@redhat.com>
20525
20526         maint.mk: use gnu-style indentation in an embedded perl script
20527         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20528         Rename variable: s/two/last_two_bytes/
20529
20530 2010-04-16  Eric Blake  <eblake@redhat.com>
20531
20532         test-stdbool: skip test that fails with Solaris CC
20533         * tests/test-stdbool.c (f): Skip test that causes compilation
20534         error under buggy C++ compiler.
20535         * lib/stdbool.in.h: Document the limitation.
20536         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20537
20538         setenv: allow compilation with C++
20539         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20540         register keyword.
20541
20542         stdint: allow test to pass with C++
20543         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20544
20545         getopt: allow compilation with C++
20546         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20547         struct.
20548         * lib/getopt.c (_getopt_internal_r): Use correct type.
20549         Reported by Dagobert Michelson, via Joel E. Denny.
20550
20551 2010-04-16  Bruno Haible  <bruno@clisp.org>
20552
20553         Override netdb.h always.
20554         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20555         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20556         Reported by Ludovic Courtès <ludo@gnu.org>.
20557
20558 2010-04-15  Bruno Haible  <bruno@clisp.org>
20559
20560         openpty: Fix mistake from 2010-03-21.
20561         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20562         Reported by Simon Josefsson.
20563
20564 2010-04-15  Eric Blake  <eblake@redhat.com>
20565
20566         test-forkpty: fix expected signature
20567         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20568         Reported by Simon Josefsson.
20569
20570 2010-04-15  Jim Meyering  <meyering@redhat.com>
20571
20572         maint.mk: texinfo_suffix_re_: correct the default regexp
20573         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20574
20575         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20576         make it configurable via texinfo_suffix_re_.
20577
20578 2010-04-14  Eric Blake  <eblake@redhat.com>
20579
20580         strtok_r: relax license to LGPLv2+
20581         * modules/strtok_r (License): Relax license.
20582         Reported by Matthias Bolte.
20583
20584 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20585
20586         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20587         version 1.4.4 by default instead of requiring the libgcrypt
20588         version used during build.  This makes it possible to use the
20589         application with older but still binary compatible libgcrypt
20590         versions.
20591
20592 2010-04-13  Eric Blake  <eblake@redhat.com>
20593
20594         getopt-gnu: match recent glibc fixes and posix ruling
20595         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20596         '+' handling, when requesting extensions.
20597         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20598         'W;' handling.
20599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20600         * doc/posix-functions/getopt.texi (getopt): Document this.
20601         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20602         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20603         Likewise.
20604
20605         getopt: merge bug fixes from glibc
20606         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20607         diagnostics.  Honor '+:' correctly.  Reject ';'.
20608
20609         getopt-posix: detect MacOS bug
20610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20611         optind when missing a required argument.
20612         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20613         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20614         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20615         Likewise.
20616
20617         getopt-posix: avoid spurious failure on Solaris
20618         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20619         an indicator that setting optind=1 is sufficient for reset.
20620
20621         getopt-posix: avoid spurious failure on FreeBSD
20622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20623         in POSIX mode, since the m4 test uses it.
20624
20625         gnulib-tool: silence warning on BSD sh
20626         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20627
20628 2010-04-13  Jim Meyering  <meyering@redhat.com>
20629
20630         doc: users.txt: GNU patch now uses gnulib
20631         * users.txt: Add patch.
20632
20633 2010-04-12  Jim Meyering  <meyering@redhat.com>
20634
20635         maint.mk: generate more concise timing data for syntax-check rules
20636         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20637         " done" from each line that reports a syntax-check test duration.
20638
20639 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20640
20641         git-version-gen: use "git update-index..." rather than "git status"
20642         * build-aux/git-version-gen: Use git update-index --refresh, not
20643         "git status".  With some versions of git, "git status" would fail
20644         to update the index and result in an unwarranted "-dirty" suffix.
20645
20646 2010-04-11  Jim Meyering  <meyering@redhat.com>
20647
20648         openat: correct formatting (no semantic change)
20649         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20650         Suggested by Bruno Haible.
20651
20652 2010-04-11  Bruno Haible  <bruno@clisp.org>
20653
20654         Stricter declaration checking in testdirs.
20655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20656         If for_tests is true, augment AM_CPPFLAGS to define
20657         GNULIB_STRICT_CHECKING.
20658         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20659         GNULIB_STRICT_CHECKING is defined, verify that the function is
20660         declared.
20661
20662 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20663             Bruno Haible  <bruno@clisp.org>
20664
20665         libunistring: Improve configure output.
20666         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20667         Don't say "consider installing GNU libunistring" when checking again
20668         with libiconv.
20669
20670 2010-04-11  Bruno Haible  <bruno@clisp.org>
20671
20672         libunistring: Correct value of $LTLIBUNISTRING.
20673         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20674         correct the value of $LTLIBUNISTRING.
20675
20676 2010-04-11  Bruno Haible  <bruno@clisp.org>
20677
20678         havelib: Add static libraries to LIBS in the right order.
20679         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20680         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20681
20682 2010-04-11  Bruno Haible  <bruno@clisp.org>
20683
20684         libunistring: Detect libunistring also when it depends on libiconv.
20685         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20686         the second AC_LIB_HAVE_LINKFLAGS invocation.
20687
20688 2010-04-11  James Youngman  <jay@gnu.org>
20689
20690         close-stream: declare local scalars to be "const"
20691         * lib/close-stream.c (close_stream): Make boolean variables const
20692         to document the fact that we set but do not change them.
20693
20694 2010-04-11  Bruno Haible  <bruno@clisp.org>
20695
20696         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20697
20698 2010-04-11  Jim Meyering  <meyering@redhat.com>
20699
20700         maint.mk: don't include dist-check.mk
20701         * top/maint.mk: Remove bogus include directive.
20702
20703         maint.mk: improve empty-line-at-EOF check
20704         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20705         solution, rather than tail+Perl-based one.  The latter would read
20706         a few kilobytes from the end of each file, and did not handle empty
20707         files properly.
20708
20709         maint.mk: print the elapsed time for each syntax-check rule
20710         * top/maint.mk (sc_m_rules_): Save start time in a file.
20711         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20712         (local-check): Interpose the .z rules
20713
20714 2010-04-11  Jim Meyering  <meyering@redhat.com>
20715
20716         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20717         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20718         empty file with one that ends in an empty line.
20719
20720 2010-04-10  Bruno Haible  <bruno@clisp.org>
20721
20722         mkdir: Make it work on mingw64.
20723         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20724         * lib/mkdir.c: Update comment.
20725         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20726
20727 2010-04-10  Bruno Haible  <bruno@clisp.org>
20728
20729         Don't override improved macro from newer autoconf.
20730         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20731         autoconf >= 2.62.
20732         Reported by Joel E. Denny <jdenny@clemson.edu>.
20733
20734 2010-04-10  Jim Meyering  <meyering@redhat.com>
20735
20736         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20737         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20738
20739         maint.mk: correct a diagnostic
20740         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20741         in diagnostic; now use $prohibit.
20742
20743 2010-04-10  Bruno Haible  <address@hidden>
20744
20745         fchownat: Fix a C++ test error on Solaris 8.
20746         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20747         the function does not exist.
20748
20749 2010-04-10  Bruno Haible  <bruno@clisp.org>
20750
20751         vasnprintf: Add more tests.
20752         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20753         (test_function): Test converting an invalid wide string.
20754
20755         vasnprintf: Correct handling of unconvertible wide string arguments.
20756         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20757         VASNPRINTF.
20758         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20759         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20760         smaller than the expected maximum need for the directive. Set errno to
20761         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20762         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20764         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20765         * modules/vasnprintf (Files): Add m4/printf.m4.
20766         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20767
20768 2010-04-10  Bruno Haible  <bruno@clisp.org>
20769
20770         vasnprintf: Fix crash in %ls directive.
20771         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20772         string is passed as argument to %ls, with no precision and no width.
20773         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20774
20775 2010-04-10  Bruno Haible  <bruno@clisp.org>
20776
20777         vasnprintf: Fix multiple test failures on mingw.
20778         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20779         _snprintf, or snwprintf, not _snwprintf.
20780
20781 2010-04-10  Bruno Haible  <bruno@clisp.org>
20782
20783         write: Fix a C++ test error on mingw.
20784         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20785
20786 2010-04-10  Bruno Haible  <bruno@clisp.org>
20787
20788         vasnprintf test: Reduce code duplication.
20789         * tests/test-vasnprintf.c (test_function): New function, extracted from
20790         test_vasnprintf.
20791         (test_vasnprintf, test_asnprintf): Invoke it.
20792
20793 2010-04-10  Bruno Haible  <bruno@clisp.org>
20794
20795         strnlen: Fix warning in C++ mode on MacOS X.
20796         * lib/string.in.h (strnlen): Use the modern idiom.
20797         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20798         defining strnlen as a macro already in <config.h>.
20799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20800         REPLACE_STRNLEN.
20801         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20802         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20803
20804 2010-04-08  James Youngman  <jay@gnu.org>
20805
20806         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20807         the example.
20808
20809 2010-04-09  Jim Meyering  <meyering@redhat.com>
20810
20811         maint.mk: print better diagnostic when there is no $(_hv_file)
20812         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20813         announce that when $(_hv_file) (aka help-version) does not exist.
20814
20815         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20816         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20817         not try to interpret its random input bytes.  Jarno Rajahalme reported
20818         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20819         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20820         (mktempd_): Likewise, just in case.
20821
20822         ftruncate: add two years to projected module removal date: 2012
20823         * m4/ftruncate.m4: Adjust comments.
20824
20825         ftruncate: mark module as obsolete; even MinGW provides it, now
20826         * modules/ftruncate (Status): Obsolete.
20827         (Notice): Say that.
20828         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20830
20831 2010-04-08  Bruno Haible  <bruno@clisp.org>
20832
20833         Fix side effects from tests-related modules.
20834         * modules/dprintf-posix (Comment): New section.
20835         * modules/fprintf-posix (Comment): Likewise.
20836         * modules/obstack-printf-posix (Comment): Likewise.
20837         * modules/printf-posix (Comment): Likewise.
20838         * modules/snprintf-posix (Comment): Likewise.
20839         * modules/sprintf-posix (Comment): Likewise.
20840         * modules/vasnprintf-posix (Comment): Likewise.
20841         * modules/vasprintf-posix (Comment): Likewise.
20842         * modules/vdprintf-posix (Comment): Likewise.
20843         * modules/vfprintf-posix (Comment): Likewise.
20844         * modules/vprintf-posix (Comment): Likewise.
20845         * modules/vsnprintf-posix (Comment): Likewise.
20846         * modules/vsprintf-posix (Comment): Likewise.
20847         * modules/xprintf-posix (Comment): Likewise.
20848         * modules/xvasprintf-posix (Comment): Likewise.
20849         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20850         * modules/floorf-tests (Depends-on): Likewise.
20851         * modules/round-tests (Depends-on): Likewise.
20852         * modules/roundf-tests (Depends-on): Likewise.
20853         * modules/trunc-tests (Depends-on): Likewise.
20854         * modules/truncf-tests (Depends-on): Likewise.
20855         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20856         'fprintf-posix' module is not present.
20857         * tests/test-floorf2.c (check): Likewise.
20858         * tests/test-trunc2.c (check): Likewise.
20859         * tests/test-truncf2.c (check): Likewise.
20860         * tests/test-round2.c (equal): Likewise.
20861         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20862
20863 2010-04-07  Karl Berry  <karl@gnu.org>
20864
20865         * config/srclist.txt,
20866         * config/srclistvars.sh,
20867         * config/srclist-update: doc fixes.
20868
20869 2010-04-07  Jim Meyering  <meyering@redhat.com>
20870
20871         maint.mk: add a PATH crosschecking syntax-check rule
20872         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20873         Useful if you use a test like the one in help-version (coreutils,
20874         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20875         printed by prog --version.
20876
20877 2010-04-06  Bruno Haible  <bruno@clisp.org>
20878
20879         Fix link error on mingw.
20880         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20881         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20882
20883 2010-04-06  Bruno Haible  <bruno@clisp.org>
20884
20885         Assume rmdir exists.
20886         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20887
20888 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20889
20890         doc: update users.txt
20891         * users.txt: Add gcal.
20892
20893 2010-04-06  Jim Meyering  <meyering@redhat.com>
20894
20895         init.sh: simply unset TMPDIR rather than risking env -i
20896         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20897         although it probably works fine on all Unix-based systems, some
20898         systems (Cygwin?) cannot tolerate a totally cleared environment.
20899         Suggestion from Eric Blake.
20900
20901 2010-04-06  Jim Meyering  <meyering@redhat.com>
20902
20903         init.sh: portability fix: use env's POSIX-specified -i option not -u
20904         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20905         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20906
20907 2010-04-05  Bruno Haible  <bruno@clisp.org>
20908
20909         btowc: Work around Cygwin 1.7.2 bug.
20910         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20911         does not map NUL to 0.
20912         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20913
20914 2010-04-05  Bruno Haible  <bruno@clisp.org>
20915
20916         Make the multithread modules work on Cygwin 1.7.2.
20917         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20918         imported symbols can be declared weak, so that it returns "no" on
20919         Cygwin 1.7.2.
20920
20921 2010-04-05  Bruno Haible  <bruno@clisp.org>
20922
20923         Use the module 'strncat'.
20924         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20925
20926         Tests for module 'strncat'.
20927         * modules/strncat-tests: New file.
20928         * tests/test-strncat.c: New file.
20929
20930         New module 'strncat'.
20931         * lib/string.in.h (strncat): New declaration.
20932         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20933         * m4/strncat.m4: New file, based on m4/memchr.m4.
20934         * modules/strncat: New file.
20935         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20936         is declared.
20937         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20938         REPLACE_STRNCAT.
20939         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20940         REPLACE_STRNCAT.
20941         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20942         module.
20943         * tests/test-string-c++.cc: Check signature of strncat.
20944
20945 2010-04-05  Jim Meyering  <meyering@redhat.com>
20946
20947         xstrtoumax-tests: convert to use init.sh
20948         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20949         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20950         Use Exit, not exit.
20951         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20952
20953         xstrtoimax-tests: convert to use init.sh
20954         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20955         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20956         Use Exit, not exit.
20957         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20958
20959 2010-04-05  Bruno Haible  <bruno@clisp.org>
20960
20961         sys_socket: Avoid #define replacements in C++ mode.
20962         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20963         warning to the function if possible, rather than #defining the symbol
20964         to a dysfunctional alias.
20965
20966 2010-04-05  Bruno Haible  <bruno@clisp.org>
20967
20968         fseeko: Fix C++ test error on mingw.
20969         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20970         gl_FUNC_FSEEKO.
20971         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20972         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20974         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20975
20976 2010-04-05  Bruno Haible  <bruno@clisp.org>
20977
20978         duplocale: Improve test output.
20979         * tests/test-duplocale.c (main): Print reason for skipped test.
20980
20981 2010-04-05  Bruno Haible  <bruno@clisp.org>
20982
20983         Assume rmdir exists.
20984         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20985         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20986
20987 2010-04-05  Bruno Haible  <bruno@clisp.org>
20988
20989         Fix link error on Solaris 8 with cc.
20990         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20991
20992 2010-04-05  Bruno Haible  <bruno@clisp.org>
20993
20994         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20995         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20996
20997 2010-04-05  Bruno Haible  <bruno@clisp.org>
20998
20999         vasprintf: Update documentation.
21000         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21001
21002 2010-04-05  Bruno Haible  <bruno@clisp.org>
21003
21004         ptsname: Improve test.
21005         * tests/test-ptsname.c (main): Also try the various master names of BSD
21006         systems.
21007
21008 2010-04-05  Bruno Haible  <bruno@clisp.org>
21009
21010         memchr: Avoid a possible C++ test error.
21011         * lib/string.in.h (memchr): Provide declaration if function is missing.
21012         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21013         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21015         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21016
21017 2010-04-05  Bruno Haible  <bruno@clisp.org>
21018
21019         strtok_r: Improve idiom.
21020         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21021         AC_LIBOBJ is used.
21022
21023 2010-04-05  Bruno Haible  <bruno@clisp.org>
21024
21025         strdup: Improve idiom.
21026         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21027         AC_LIBOBJ is used.
21028         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21029         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21030         when AC_LIBOBJ is used.
21031
21032 2010-04-05  Bruno Haible  <bruno@clisp.org>
21033
21034         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21035         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21036         don't set REPLACE_MBSINIT to 1.
21037         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21038         don't set REPLACE_MBRTOWC to 1.
21039         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21040         exist, don't set REPLACE_MBSRTOWCS to 1.
21041         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21042         exist, don't set REPLACE_MBSNRTOWCS to 1.
21043         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21044         don't set REPLACE_WCRTOMB to 1.
21045         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21046         exist, don't set REPLACE_WCSRTOMBS to 1.
21047         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21048         exist, don't set REPLACE_WCSNRTOMBS to 1.
21049
21050 2010-04-05  Bruno Haible  <bruno@clisp.org>
21051
21052         ldexpl: Improve idiom.
21053         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21054         make sure to set HAVE_DECL_LDEXPL to 0.
21055
21056 2010-04-05  Jim Meyering  <meyering@redhat.com>
21057
21058         xstrtol-tests: convert to use init.sh
21059         * modules/xstrtol-tests (Files): Add tests/init.sh.
21060         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21061         Use Exit, not exit.
21062         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21063
21064         atexit-tests: convert to use init.sh
21065         * modules/atexit-tests (Files): Add tests/init.sh.
21066         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21067         Use Exit, not exit.
21068         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21069
21070         init.sh: fix typo
21071         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21072
21073         init.sh: make it easier for a test script to write to the tty, ...
21074         when using automake's parallel-tests mode.
21075         * tests/init.sh (stderr_fileno_): Define overridable variable.
21076         (warn_): New function, to use it.
21077         (fail_, skip_, framework_failure_): Use warn_.
21078
21079 2010-04-04  Bruno Haible  <bruno@clisp.org>
21080
21081         btowc: Avoid warning.
21082         * lib/btowc.c: Include <stdlib.h>.
21083         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21084
21085 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21086             Bruno Haible  <bruno@clisp.org>
21087
21088         wchar: Port to NetBSD 1.5.
21089         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21090         * lib/wctype.in.h (WEOF): Likewise.
21091
21092 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21093             Bruno Haible  <bruno@clisp.org>
21094
21095         Port extended stdio to NetBSD 1.5.
21096         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21097         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21098         older.
21099
21100 2010-04-04  Bruno Haible  <bruno@clisp.org>
21101
21102         string: Remove unused substitution.
21103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21104         HAVE_DECL_STRERROR.
21105         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21106
21107 2010-04-04  Bruno Haible  <bruno@clisp.org>
21108
21109         strtod: Avoid a possible C++ test error.
21110         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21111         set REPLACE_STRTOD.
21112
21113 2010-04-04  Bruno Haible  <bruno@clisp.org>
21114
21115         strerror: Update documentation.
21116         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21117
21118 2010-04-04  Bruno Haible  <bruno@clisp.org>
21119
21120         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21121         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21122         _GL_CXXALIAS_SYS_CAST.
21123
21124 2010-04-04  Bruno Haible  <bruno@clisp.org>
21125
21126         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21127         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21128         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21129         REPLACE_FREXPL to 1.
21130         * doc/posix-functions/frexpl.texi: Update documentation.
21131
21132 2010-04-04  Bruno Haible  <bruno@clisp.org>
21133
21134         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21135         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21136
21137 2010-04-04  Bruno Haible  <bruno@clisp.org>
21138
21139         Implement nanosleep for native Windows.
21140         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21141
21142 2010-04-04  Bruno Haible  <bruno@clisp.org>
21143
21144         math: Fix some C++ test errors on Solaris 8.
21145         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21146
21147 2010-04-04  Bruno Haible  <bruno@clisp.org>
21148
21149         math: Fix some C++ test errors on Cygwin.
21150         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21151         truncl): Provide declaration if the system does not have it.
21152         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21153         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21154         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21155         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21156         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21157         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21158         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21159         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21160         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21161         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21162         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21163         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21164         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21165         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21166         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21167         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21169         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21170         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21171         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21172         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21173         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21174
21175 2010-04-04  Bruno Haible  <bruno@clisp.org>
21176
21177         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21178         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21179         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21180         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21181         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21182         * m4/isinf.m4 (gl_ISINF): Likewise.
21183         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21184
21185 2010-04-04  Bruno Haible  <bruno@clisp.org>
21186
21187         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21188         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21189
21190 2010-04-04  Bruno Haible  <bruno@clisp.org>
21191
21192         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21193         * modules/tmpfile (configure.ac): Update.
21194
21195         tmpfile: Fix C++ test error on mingw.
21196         * lib/stdio.in.h (tmpfile): New declaration.
21197         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21198         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21199         * modules/tmpfile (Depends-on): Add stdio.
21200         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21201         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21202         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21203         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21204         REPLACE_TMPFILE.
21205         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21206
21207 2010-04-04  Bruno Haible  <bruno@clisp.org>
21208
21209         ioctl: Fix C++ test error on mingw.
21210         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21211         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21212         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21213
21214 2010-04-03  Bruno Haible  <bruno@clisp.org>
21215
21216         wcwidth: Fix C++ test error on mingw.
21217         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21219         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21220
21221 2010-04-03  Bruno Haible  <bruno@clisp.org>
21222
21223         nanosleep: Fix C++ test error on mingw.
21224         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21225         * lib/time.in.h (nanosleep): Use modern idiom.
21226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21227         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21228         REPLACE_NANOSLEEP to 1.
21229         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21230         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21231
21232 2010-04-03  Bruno Haible  <bruno@clisp.org>
21233
21234         strptime: Fix C++ test error on mingw.
21235         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21236         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21237         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21238         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21239         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21240         not REPLACE_STRPTIME.
21241         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21242         REPLACE_STRPTIME.
21243
21244 2010-04-03  Bruno Haible  <bruno@clisp.org>
21245
21246         timegm: Fix C++ test error on mingw.
21247         * lib/time.in.h (timegm): Use modern idiom.
21248         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21249         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21250         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21251         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21252
21253 2010-04-03  Bruno Haible  <bruno@clisp.org>
21254
21255         timegm: Assume declaration if function exists.
21256         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21257         if it exists. Don't clobber ac_cv_func_timegm.
21258
21259 2010-04-03  Bruno Haible  <bruno@clisp.org>
21260
21261         time_r: Fix C++ test error on mingw.
21262         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21263         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21264         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21265         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21266         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21267
21268 2010-04-03  Bruno Haible  <bruno@clisp.org>
21269
21270         time_r: Minor updates.
21271         * modules/time_r (Description): Mention the provided functions.
21272         * lib/time_r.c: Don't include <string.h>.
21273         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21274         * doc/posix-functions/localtime_r.texi: Likewise.
21275
21276 2010-04-03  Bruno Haible  <bruno@clisp.org>
21277
21278         time: Fix regression introduced on 2010-03-08.
21279         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21280         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21281
21282 2010-04-03  Jim Meyering  <meyering@redhat.com>
21283
21284         maint.mk: don't silently disable project-specific syntax-check rules
21285         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21286         that they need to convert their project-specific syntax-check rules
21287         to use the new _sc_search_regexp.
21288
21289 2010-04-03  Bruno Haible  <bruno@clisp.org>
21290
21291         fchdir: Fix regression introduced on 2010-03-08.
21292         * lib/unistd.in.h (fchdir): Fix declaration.
21293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21295         REPLACE_FCHDIR.
21296         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21297         REPLACE_FCHDIR.
21298
21299 2010-04-03  Bruno Haible  <bruno@clisp.org>
21300
21301         getpagesize: Fix C++ test error on mingw.
21302         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21303         system does not declare the function.
21304         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21305         declared.
21306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21307         HAVE_DECL_GETPAGESIZE.
21308         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21309
21310 2010-04-03  Bruno Haible  <bruno@clisp.org>
21311
21312         stdio: Make C++ tests work on mingw.
21313         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21314         does not declare the function.
21315
21316 2010-04-03  Bruno Haible  <bruno@clisp.org>
21317
21318         ftello: Fix C++ test error on mingw.
21319         * lib/stdio.in.h (ftello): Use modern idiom.
21320         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21321         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21322         is missing and that it needs to be replaced.
21323         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21325         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21326
21327 2010-04-03  Bruno Haible  <bruno@clisp.org>
21328
21329         fseeko: Fix C++ test error on mingw.
21330         * lib/stdio.in.h (fseeko): Use modern idiom.
21331         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21332         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21333         is missing and that it needs to be replaced.
21334         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21336         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21337
21338 2010-04-03  Bruno Haible  <bruno@clisp.org>
21339
21340         mkstemp: Fix C++ test error on mingw.
21341         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21342         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21343         function is missing and that it needs to be replaced.
21344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21345         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21346
21347 2010-04-03  Bruno Haible  <bruno@clisp.org>
21348
21349         stpncpy: Fix C++ test error on mingw.
21350         * lib/string.in.h (stpncpy): Use modern idiom.
21351         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21352         function is missing and that it needs to be replaced.
21353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21354         REPLACE_STPNCPY.
21355         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21356
21357 2010-04-03  Bruno Haible  <bruno@clisp.org>
21358
21359         sys_stat: Fix C++ test error on mingw.
21360         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21361         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21362
21363 2010-04-03  Bruno Haible  <bruno@clisp.org>
21364
21365         pty: Update doc.
21366         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21367
21368 2010-04-03  Bruno Haible  <bruno@clisp.org>
21369
21370         unistd: Fix C++ test error on mingw.
21371         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21372
21373 2010-04-03  Bruno Haible  <bruno@clisp.org>
21374
21375         Update doc regarding mingw.
21376         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21377         * doc/glibc-functions/login_tty.texi: Likewise.
21378         * doc/glibc-functions/forkpty.texi: Likewise.
21379
21380 2010-04-03  Bruno Haible  <bruno@clisp.org>
21381
21382         stdlib: Avoid compilation failure of c-strtold on mingw.
21383         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21384
21385 2010-04-03  Bruno Haible  <bruno@clisp.org>
21386
21387         locale: Make C++ tests work on Cygwin and mingw.
21388         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21389         cannot provide the function.
21390         Reported by Simon Josefsson.
21391
21392 2010-04-03  Bruno Haible  <bruno@clisp.org>
21393
21394         localename: Port to MacOS X 10.6.
21395         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21396         memory layout of the locales in MacOS X 10.6 as well.
21397         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21398
21399 2010-04-02  Bruno Haible  <bruno@clisp.org>
21400
21401         gnulib-tool: Ensure that long-running tests are executed last.
21402         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21403         running tests after the one for the other tests.
21404
21405 2010-04-02  Bruno Haible  <bruno@clisp.org>
21406
21407         gnulib-tool: Ensure the tests in the main directory are executed first.
21408         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21409         start with the current directory.
21410
21411 2010-04-02  Bruno Haible  <bruno@clisp.org>
21412
21413         Tests for module 'havelib', moved here from GNU gettext.
21414         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21415         modifications.
21416         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21417         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21418         with modifications.
21419         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21420         modifications.
21421         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21422         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21423         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21424         with modifications.
21425         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21426         with modifications.
21427         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21428         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21429         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21430         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21431         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21432         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21433         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21434         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21435         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21436         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21437         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21438         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21439         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21440         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21441         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21442         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21443         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21444         with modifications.
21445         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21446         with modifications.
21447         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21448         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21449         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21450         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21451         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21452         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21453         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21454         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21455         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21456         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21457         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21458         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21459         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21460         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21461         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21462         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21463         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21464         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21465         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21466         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21467         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21468         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21469         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21470         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21471         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21472         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21473         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21474         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21475         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21476         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21477         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21478         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21479         * tests/havelib/rpathx/rpathx.c: New file, from
21480         gettext/autoconf-lib-link.
21481         * tests/havelib/rpathx/Makefile.am: New file, from
21482         gettext/autoconf-lib-link.
21483         * tests/havelib/rpathx/configure.ac: New file, from
21484         gettext/autoconf-lib-link with modifications.
21485         * tests/havelib/rpathy/rpathy.c: New file, from
21486         gettext/autoconf-lib-link.
21487         * tests/havelib/rpathy/Makefile.am: New file, from
21488         gettext/autoconf-lib-link.
21489         * tests/havelib/rpathy/configure.ac: New file, from
21490         gettext/autoconf-lib-link with modifications.
21491         * tests/havelib/rpathz/rpathz.c: New file, from
21492         gettext/autoconf-lib-link.
21493         * tests/havelib/rpathz/Makefile.am: New file, from
21494         gettext/autoconf-lib-link.
21495         * tests/havelib/rpathz/configure.ac: New file, from
21496         gettext/autoconf-lib-link with modifications.
21497         * tests/havelib/rpathlx/usex.c: New file, from
21498         gettext/autoconf-lib-link.
21499         * tests/havelib/rpathlx/Makefile.am: New file, from
21500         gettext/autoconf-lib-link.
21501         * tests/havelib/rpathlx/configure.ac: New file, from
21502         gettext/autoconf-lib-link with modifications.
21503         * tests/havelib/rpathly/usey.c: New file, from
21504         gettext/autoconf-lib-link.
21505         * tests/havelib/rpathly/Makefile.am: New file, from
21506         gettext/autoconf-lib-link.
21507         * tests/havelib/rpathly/configure.ac: New file, from
21508         gettext/autoconf-lib-link with modifications.
21509         * tests/havelib/rpathlz/usez.c: New file, from
21510         gettext/autoconf-lib-link.
21511         * tests/havelib/rpathlz/Makefile.am: New file, from
21512         gettext/autoconf-lib-link.
21513         * tests/havelib/rpathlz/configure.ac: New file, from
21514         gettext/autoconf-lib-link with modifications.
21515         * tests/havelib/rpathlyx/usey.c: New file, from
21516         gettext/autoconf-lib-link.
21517         * tests/havelib/rpathlyx/Makefile.am: New file, from
21518         gettext/autoconf-lib-link.
21519         * tests/havelib/rpathlyx/configure.ac: New file, from
21520         gettext/autoconf-lib-link with modifications.
21521         * tests/havelib/rpathlzyx/usez.c: New file, from
21522         gettext/autoconf-lib-link.
21523         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21524         gettext/autoconf-lib-link.
21525         * tests/havelib/rpathlzyx/configure.ac: New file, from
21526         gettext/autoconf-lib-link with modifications.
21527         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21528         with modifications.
21529
21530 2010-04-02  Bruno Haible  <bruno@clisp.org>
21531
21532         gnulib-tool: Create distributed built sources also for the tests.
21533         * gnulib-tool (func_create_testdir): Also generate distributed built
21534         sources in the tests directory.
21535
21536 2010-04-02  Bruno Haible  <bruno@clisp.org>
21537
21538         gnulib-tool: Obey user's environment variables.
21539         * gnulib-tool (func_create_testdir): When creating built sources,
21540         respect the environment variables for autoconf, automake, etc. given by
21541         the user.
21542
21543 2010-04-02  Bruno Haible  <bruno@clisp.org>
21544
21545         gnulib-tool: Provide the value of --m4-base to modules.
21546         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21547         of gl_m4_base.
21548
21549 2010-04-02  Eric Blake  <eblake@redhat.com>
21550
21551         maint.mk: fix some fallout
21552         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21553         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21554
21555 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21556
21557         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21558         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21559         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21560         (sc_cast_of_x_alloc_return_value): Likewise.
21561         (sc_cast_of_alloca_return_value): Likewise.
21562         (sc_space_tab): Likewise.
21563         (sc_prohibit_atoi_atof): Likewise.
21564         (sc_prohibit_magic_number_exit): Likewise.
21565         (sc_error_exit_success): Likewise.
21566         (sc_file_system): Likewise.
21567         (sc_prohibit_have_config_h): Likewise.
21568         (sc_require_config_h): Likewise.
21569         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21570         (sc_obsolete_symbols): Likewise.
21571         (sc_changelog): Likewise.
21572         (sc_program_name): Likewise.
21573         (sc_the_the): Likewise.
21574         (sc_trailing_blank): Likewise.
21575         (sc_two_space_separator_in_usage): Likewise.
21576         (sc_useless_cpp_parens): Likewise.
21577         (sc_GPL_version): Likewise.
21578         (sc_GFDL_version): Likewise.
21579         (sc_texinfo_acronym): Likewise.
21580         (sc_prohibit_cvs_keyword): Likewise.
21581         (sc_prohibit_stat_st_blocks): Likewise.
21582         (sc_prohibit_S_IS_definition): Likewise.
21583         (sc_redundant_const): Likewise.
21584         (sc_makefile_TAB_only_indentation): Likewise.
21585         (sc_m4_quote_check): Likewise.
21586         (sc_makefile_path_separator_check): Likewise.
21587         (sc_copyright_check): Likewise.
21588         (sc_Wundef_boolean): Likewise.
21589         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21590
21591         maint.mk: match 0 or more whitespace-before-function-call '('
21592         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21593         that have zero or two-and-more spaces between the function name
21594         and the open parenthesis.
21595         (sc_error_message_warn_fatal): Likewise.
21596         (sc_error_message_uppercase): Likewise.
21597         (sc_error_message_period): Likewise.
21598
21599 2010-03-31  Eric Blake  <eblake@redhat.com>
21600
21601         maint.mk: check for [ as well as test
21602         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21603         Based on a libvirt report by Matthias Bolte.
21604
21605         gnumakefile: don't squelch _version output
21606         * top/GNUmakefile (_version): Create one-shot dependency rather
21607         than using $(shell) when version must be regenerated.
21608         (_autoreconf): Run verbosely, by default.
21609
21610         sys_time: avoid compiler warnings
21611         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21612         unconditional, fixing regression from 2010-03-29.
21613         Reported by Simon Josefsson.
21614
21615 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21616
21617         maint.mk: s/_header_without_use/_sc_header_without_use/
21618         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21619         (sc_prohibit_assert_without_use): Use the new name.
21620         (sc_prohibit_close_stream_without_use): Likewise.
21621         (sc_prohibit_getopt_without_use): Likewise.
21622         (sc_prohibit_quotearg_without_use): Likewise.
21623         (sc_prohibit_quote_without_use): Likewise.
21624         (sc_prohibit_long_options_without_use): Likewise.
21625         (sc_prohibit_inttostr_without_use): Likewise.
21626         (sc_prohibit_ignore_value_without_use): Likewise.
21627         (sc_prohibit_error_without_use): Likewise.
21628         (sc_prohibit_xalloc_without_use): Likewise.
21629         (sc_prohibit_hash_without_use): Likewise.
21630         (sc_prohibit_hash_pjw_without_use): Likewise.
21631         (sc_prohibit_safe_read_without_use): Likewise.
21632         (sc_prohibit_argmatch_without_use): Likewise.
21633         (sc_prohibit_canonicalize_without_use): Likewise.
21634         (sc_prohibit_root_dev_ino_without_use): Likewise.
21635         (sc_prohibit_openat_without_use): Likewise.
21636         (sc_prohibit_c_ctype_without_use): Likewise.
21637         (sc_prohibit_signal_without_use): Likewise.
21638         (sc_prohibit_intprops_without_use): Likewise.
21639
21640 2010-03-30  Eric Blake  <eblake@redhat.com>
21641
21642         maint: improve module indicators
21643         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21644         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21645         columns, and avoid extra macro expansion.
21646
21647         fdopendir: work around FreeBSD bug
21648         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21649         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21650         * modules/dirent (Makefile.am): Substitute it.
21651         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21652         declaration.
21653         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21654         fix.
21655         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21656
21657 2010-03-29  Bruno Haible  <bruno@clisp.org>
21658
21659         Emit #pragma system_header after the inclusion guard, not before.
21660         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21661         guard that spans the entire file, not before. This enables an
21662         optimization in GCC's preprocessor.
21663         * lib/ctype.in.h: Likewise.
21664         * lib/dirent.in.h: Likewise.
21665         * lib/errno.in.h: Likewise.
21666         * lib/float.in.h: Likewise.
21667         * lib/getopt.in.h: Likewise.
21668         * lib/iconv.in.h: Likewise.
21669         * lib/langinfo.in.h: Likewise.
21670         * lib/locale.in.h: Likewise.
21671         * lib/math.in.h: Likewise.
21672         * lib/netdb.in.h: Likewise.
21673         * lib/netinet_in.in.h: Likewise.
21674         * lib/pty.in.h: Likewise.
21675         * lib/sched.in.h: Likewise.
21676         * lib/se-selinux.in.h: Likewise.
21677         * lib/search.in.h: Likewise.
21678         * lib/spawn.in.h: Likewise.
21679         * lib/stdarg.in.h: Likewise.
21680         * lib/stdint.in.h: Likewise.
21681         * lib/string.in.h: Likewise.
21682         * lib/strings.in.h: Likewise.
21683         * lib/sys_file.in.h: Likewise.
21684         * lib/sys_ioctl.in.h: Likewise.
21685         * lib/sys_time.in.h: Likewise.
21686         * lib/sys_times.in.h: Likewise.
21687         * lib/sys_utsname.in.h: Likewise.
21688         * lib/sys_wait.in.h: Likewise.
21689         * lib/sysexits.in.h: Likewise.
21690         * lib/wctype.in.h: Likewise.
21691
21692 2010-03-28  James Youngman  <jay@gnu.org>
21693
21694         save-cwd: don't leak a file descriptor when the caller execs.
21695         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21696         saved file descriptor.
21697         * modules/save-cwd (Depends-on): Depend on cloexec.
21698
21699 2010-03-29  Bruno Haible  <bruno@clisp.org>
21700
21701         Remove vestiges of fts-lgpl module.
21702         * lib/fts_.h: Assume GNULIB_FTS is 1.
21703         * lib/fts.c: Likewise.
21704         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21705
21706 2010-03-28  Bruno Haible  <bruno@clisp.org>
21707
21708         Fix definition of tests witness macro.
21709         * gnulib-tool (func_import): Fix definition of witness macro.
21710
21711 2010-03-28  Bruno Haible  <bruno@clisp.org>
21712
21713         Fix ioctl's protoype on glibc systems.
21714         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21715         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21716         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21717         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21718         signature. If not, arrange to replace the ioctl function.
21719         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21720         REPLACE_IOCTL.
21721         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21722         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21723         Reported by Ludovic Courtès <ludo@gnu.org>.
21724
21725 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21726
21727         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21728         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21729         made it so grep -r --include=GLOB* ... did not work.
21730
21731 2010-03-26  Jim Meyering  <meyering@redhat.com>
21732             Eric Blake  <eblake@redhat.com>
21733
21734         maint.mk: prohibit use of test's -o and -a operators
21735         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21736
21737 2010-03-28  Bruno Haible  <bruno@clisp.org>
21738
21739         Remove unused GNULIB_XYZ macro definitions.
21740         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21741         invocation.
21742
21743 2010-03-28  Bruno Haible  <bruno@clisp.org>
21744
21745         Mark privileged tests modules.
21746         * modules/idpriv-drop-tests (Status): New section.
21747         * modules/idpriv-droptemp-tests (Status): New section.
21748
21749 2010-03-28  Bruno Haible  <bruno@clisp.org>
21750
21751         Split C++ tests into separate tests modules.
21752         * modules/dirent-c++-tests: New file, extracted from
21753         modules/dirent-tests.
21754         * modules/dirent-tests: Depend on it.
21755         * modules/fcntl-h-c++-tests: New file, extracted from
21756         modules/fcntl-h-tests.
21757         * modules/fcntl-h-tests: Depend on it.
21758         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21759         * modules/glob-tests: Depend on it.
21760         * modules/iconv-h-c++-tests: New file, extracted from
21761         modules/iconv-h-tests.
21762         * modules/iconv-h-tests: Depend on it.
21763         * modules/langinfo-c++-tests: New file, extracted from
21764         modules/langinfo-tests.
21765         * modules/langinfo-tests: Depend on it.
21766         * modules/locale-c++-tests: New file, extracted from
21767         modules/locale-tests.
21768         * modules/locale-tests: Depend on it.
21769         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21770         * modules/math-tests: Depend on it.
21771         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21772         * modules/pty-tests: Depend on it.
21773         * modules/search-c++-tests: New file, extracted from
21774         modules/search-tests.
21775         * modules/search-tests: Depend on it.
21776         * modules/signal-c++-tests: New file, extracted from
21777         modules/signal-tests.
21778         * modules/signal-tests: Depend on it.
21779         * modules/spawn-c++-tests: New file, extracted from
21780         modules/spawn-tests.
21781         * modules/spawn-tests: Depend on it.
21782         * modules/stdio-c++-tests: New file, extracted from
21783         modules/stdio-tests.
21784         * modules/stdio-tests: Depend on it.
21785         * modules/stdlib-c++-tests: New file, extracted from
21786         modules/stdlib-tests.
21787         * modules/stdlib-tests: Depend on it.
21788         * modules/string-c++-tests: New file, extracted from
21789         modules/string-tests.
21790         * modules/string-tests: Depend on it.
21791         * modules/sys_ioctl-c++-tests: New file, extracted from
21792         modules/sys_ioctl-tests.
21793         * modules/sys_ioctl-tests: Depend on it.
21794         * modules/sys_select-c++-tests: New file, extracted from
21795         modules/sys_select-tests.
21796         * modules/sys_select-tests: Depend on it.
21797         * modules/sys_socket-c++-tests: New file, extracted from
21798         modules/sys_socket-tests.
21799         * modules/sys_socket-tests: Depend on it.
21800         * modules/sys_stat-c++-tests: New file, extracted from
21801         modules/sys_stat-tests.
21802         * modules/sys_stat-tests: Depend on it.
21803         * modules/sys_time-c++-tests: New file, extracted from
21804         modules/sys_time-tests.
21805         * modules/sys_time-tests: Depend on it.
21806         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21807         * modules/time-tests: Depend on it.
21808         * modules/unistd-c++-tests: New file, extracted from
21809         modules/unistd-tests.
21810         * modules/unistd-tests: Depend on it.
21811         * modules/wchar-c++-tests: New file, extracted from
21812         modules/wchar-tests.
21813         * modules/wchar-tests: Depend on it.
21814         * modules/wctype-c++-tests: New file, extracted from
21815         modules/wctype-tests.
21816         * modules/wctype-tests: Depend on it.
21817         Reported by Simon Josefsson.
21818
21819 2010-03-28  Bruno Haible  <bruno@clisp.org>
21820
21821         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21822         * gnulib-tool (func_exists_module): New function, extracted from
21823         func_verify_module.
21824         (func_verify_module): Use it.
21825         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21826         'foo' only if 'foo' exists.
21827         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21828         module.
21829
21830 2010-03-28  Bruno Haible  <bruno@clisp.org>
21831
21832         gnulib-tool: Add support for special categories of tests.
21833         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21834         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21835         (func_usage): Document them.
21836         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21837         inc_unportable_tests, inc_all_tests): New variables.
21838         (func_acceptable): Consider these variables.
21839         (func_modules_transitive_closure): Make it work when the 'Status' field
21840         consists of multiple words.
21841         (func_import): Store and restore the values of inc_cxx_tests,
21842         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21843         inc_all_tests in gnulib-comp.m4.
21844         (func_create_testdir): Set inc_all_tests to true.
21845         * doc/gnulib.texi (Extra tests modules): New section.
21846         Suggested by Jim Meyering.
21847
21848 2010-03-28  Bruno Haible  <bruno@clisp.org>
21849
21850         ansi-c++-opt: Allow turning off the C++ build by default.
21851         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21852         gl_CXX_CHOICE_DEFAULT_NO is defined.
21853         Requested by Eric Blake.
21854
21855 2010-03-28  Bruno Haible  <bruno@clisp.org>
21856
21857         unistd: Avoid #define replacements in C++ mode.
21858         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21859         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21860         setsockopt, shutdown, select): In C++, attach a warning to the function
21861         if possible, rather than #defining the symbol to a dysfunctional alias.
21862         Reported by John W. Eaton <jwe@gnu.org>.
21863
21864 2010-03-28  Bruno Haible  <bruno@clisp.org>
21865
21866         Fix link errors on mingw.
21867         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21868         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21869         $(LIBSOCKET).
21870         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21871         $(LIBSOCKET).
21872
21873 2010-03-28  Bruno Haible  <bruno@clisp.org>
21874             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21875
21876         lib-ignore: Determine different options for different compilers.
21877         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21878         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21879         Add comments.
21880         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21881         * NEWS: Mention the change.
21882
21883 2010-03-27  Bruno Haible  <bruno@clisp.org>
21884
21885         Remove unused GNULIB_XYZ macro definitions.
21886         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21887         * modules/fseek (configure.ac): Likewise.
21888         * modules/ioctl (configure.ac): Likewise.
21889         * modules/open (configure.ac): Likewise.
21890         * modules/stdlib-safer (configure.ac): Likewise.
21891
21892 2010-03-27  Bruno Haible  <bruno@clisp.org>
21893
21894         Add a remark about certain modules.
21895         * modules/malloc (Comment): New section.
21896         * modules/realloc (Comment): Likewise.
21897         * modules/sigpipe (Comment): Likewise.
21898
21899 2010-03-27  Bruno Haible  <bruno@clisp.org>
21900
21901         Resolve conflict between the two kinds of module indicators.
21902         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21903         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21904         * modules/canonicalize (configure.ac): Invoke
21905         gl_MODULE_INDICATOR_FOR_TESTS.
21906         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21907         GNULIB_XYZ.
21908         * tests/test-dirent-c++.cc: Likewise.
21909         * tests/test-dirent-safer.c: Likewise.
21910         * tests/test-dup2.c: Likewise.
21911         * tests/test-fchdir.c: Likewise.
21912         * tests/test-fcntl-h-c++.cc: Likewise.
21913         * tests/test-getopt.c: Likewise.
21914         * tests/test-getopt.h: Likewise.
21915         * tests/test-langinfo-c++.cc: Likewise.
21916         * tests/test-locale-c++.cc: Likewise.
21917         * tests/test-math-c++.cc: Likewise.
21918         * tests/test-pty-c++.cc: Likewise.
21919         * tests/test-search-c++.cc: Likewise.
21920         * tests/test-signal-c++.cc: Likewise.
21921         * tests/test-spawn-c++.cc: Likewise.
21922         * tests/test-stdio-c++.cc: Likewise.
21923         * tests/test-stdlib-c++.cc: Likewise.
21924         * tests/test-string-c++.cc: Likewise.
21925         * tests/test-sys_ioctl-c++.cc: Likewise.
21926         * tests/test-sys_select-c++.cc: Likewise.
21927         * tests/test-sys_socket-c++.cc: Likewise.
21928         * tests/test-sys_stat-c++.cc: Likewise.
21929         * tests/test-sys_time-c++.cc: Likewise.
21930         * tests/test-time-c++.cc: Likewise.
21931         * tests/test-unistd-c++.cc: Likewise.
21932         * tests/test-wchar-c++.cc: Likewise.
21933         * tests/uninorm/test-u8-nfc.c: Likewise.
21934         * tests/uninorm/test-u8-nfd.c: Likewise.
21935         * tests/uninorm/test-u8-nfkc.c: Likewise.
21936         * tests/uninorm/test-u8-nfkd.c: Likewise.
21937         * tests/uninorm/test-u16-nfc.c: Likewise.
21938         * tests/uninorm/test-u16-nfd.c: Likewise.
21939         * tests/uninorm/test-u16-nfkc.c: Likewise.
21940         * tests/uninorm/test-u16-nfkd.c: Likewise.
21941         * tests/uninorm/test-u32-nfc.c: Likewise.
21942         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21943         * tests/uninorm/test-u32-nfd.c: Likewise.
21944         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21945         * tests/uninorm/test-u32-nfkc.c: Likewise.
21946         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21947         * tests/uninorm/test-u32-nfkd.c: Likewise.
21948         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21949         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21950
21951 2010-03-27  Bruno Haible  <bruno@clisp.org>
21952
21953         Distinguish two kinds of module indicators.
21954         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21955         gl_MODULE_INDICATOR.
21956         (gl_MODULE_INDICATOR): New macro.
21957         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21958         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21959         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21960         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21961         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21962         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21963         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21964         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21965         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21966         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21967         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21968         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21970         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21971         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21972         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21973         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21974         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21975         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21976         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21977         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21978         * modules/cloexec (configure.ac): Likewise.
21979         * modules/getopt-gnu (configure.ac): Likewise.
21980         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21981         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21982         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21983         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21984
21985 2010-03-27  Bruno Haible  <bruno@clisp.org>
21986
21987         New module description field 'Comment'.
21988         * gnulib-tool: New option --extract-comment.
21989         (func_usage): Document it.
21990         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21991         (func_get_comment): New function.
21992         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21993
21994 2010-03-27  Bruno Haible  <bruno@clisp.org>
21995
21996         Addendum to 2010-02-07 commit.
21997         * gnulib-tool (func_usage): Document --extract-applicability option.
21998
21999 2010-03-27  Bruno Haible  <bruno@clisp.org>
22000
22001         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22002         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22003         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22004         rather than link errors.
22005
22006 2010-03-27  Bruno Haible  <bruno@clisp.org>
22007
22008         Avoid side effects from tests-related modules on the compilation of lib.
22009         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22010         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22011         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22012         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22013         macro.
22014         (func_import): Define a witness macro. Assign it a value that depends
22015         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22016         tests-related modules.
22017         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22018         Reported by Jim Meyering.
22019
22020 2010-03-27  Bruno Haible  <bruno@clisp.org>
22021
22022         Factorize common .m4 code.
22023         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22024         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22025         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22026         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22027         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22028         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22029         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22030         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22031         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22032         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22033         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22034         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22035         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22036         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22037         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22038         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22039         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22040         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22042         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22043         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22044         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22045         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22046         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22047         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22048         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22049         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22051         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22052         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22053         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22054         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22055
22056 2010-03-27  Bruno Haible  <bruno@clisp.org>
22057
22058         Fix a compilation error on Cygwin with g++ >= 4.3.
22059         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22060         if it is undefined or if we alias it to chmod.
22061         (lstat): Don't warn about the use of this function if it is undefined
22062         or if we alias it to stat.
22063         Reported by Simon Josefsson.
22064
22065 2010-03-27  Bruno Haible  <bruno@clisp.org>
22066
22067         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22068         * modules/getlogin (configure.ac): Update.
22069
22070         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22071         * modules/getlogin_r (configure.ac): Update.
22072
22073         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22075         * modules/inet_ntop (configure.ac): Update.
22076
22077         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22078         * modules/inet_pton (configure.ac): Update.
22079
22080         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22081         * modules/mbslen (configure.ac): Update.
22082
22083         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22084         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22085         * modules/forkpty (configure.ac): Update.
22086         * modules/openpty (configure.ac): Update.
22087
22088 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22089
22090         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22091         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22092
22093 2010-03-25  Eric Blake  <eblake@redhat.com>
22094
22095         maint: use pragma consistently across replacement headers
22096         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22097         * lib/dirent.in.h (system_header): Likewise.
22098         * lib/errno.in.h (system_header): Likewise.
22099         * lib/float.in.h (system_header): Likewise.
22100         * lib/getopt.in.h (system_header): Likewise.
22101         * lib/iconv.in.h (system_header): Likewise.
22102         * lib/inttypes.in.h (system_header): Likewise.
22103         * lib/langinfo.in.h (system_header): Likewise.
22104         * lib/locale.in.h (system_header): Likewise.
22105         * lib/math.in.h (system_header): Likewise.
22106         * lib/netdb.in.h (system_header): Likewise.
22107         * lib/netinet_in.in.h (system_header): Likewise.
22108         * lib/pty.in.h (system_header): Likewise.
22109         * lib/sched.in.h (system_header): Likewise.
22110         * lib/se-selinux.in.h (system_header): Likewise.
22111         * lib/search.in.h (system_header): Likewise.
22112         * lib/spawn.in.h (system_header): Likewise.
22113         * lib/stdarg.in.h (system_header): Likewise.
22114         * lib/stdint.in.h (system_header): Likewise.
22115         * lib/string.in.h (system_header): Likewise.
22116         * lib/strings.in.h (system_header): Likewise.
22117         * lib/sys_file.in.h (system_header): Likewise.
22118         * lib/sys_ioctl.in.h (system_header): Likewise.
22119         * lib/sys_socket.in.h (system_header): Likewise.
22120         * lib/sys_times.in.h (system_header): Likewise.
22121         * lib/sys_utsname.in.h (system_header): Likewise.
22122         * lib/sys_wait.in.h (system_header): Likewise.
22123         * lib/sysexits.in.h (system_header): Likewise.
22124         * lib/unistd.in.h (system_header): Likewise.
22125         * lib/wctype.in.h (system_header): Likewise.
22126
22127         arpa/inet: fix mingw compilation warning
22128         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22129         Reported by Matthew Bolte.
22130
22131 2010-03-25  Bruno Haible  <bruno@clisp.org>
22132
22133         Avoid collision between gnulib wrapper and libintl wrapper.
22134         * lib/printf.c (printf): Don't define if a printf wrapper is already
22135         defined in intl/printf.c.
22136         Reported by Michel Boaventura <michel@michelboaventura.com>.
22137
22138 2010-03-25  Bruno Haible  <bruno@clisp.org>
22139
22140         Use ANSI C.
22141         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22142
22143 2010-03-25  Bruno Haible  <bruno@clisp.org>
22144
22145         Minor formatting changes.
22146         * lib/acosl.c: Insert space before function argument list.
22147         * lib/argz.c: Likewise.
22148         * lib/asinl.c: Likewise.
22149         * lib/expl.c: Likewise.
22150         * lib/gen-uni-tables.c: Likewise.
22151         * lib/gettext.h: Likewise.
22152         * lib/glthread/lock.h: Likewise.
22153         * lib/tanl.c: Likewise.
22154         * lib/uniname/uniname.c: Likewise.
22155         * tests/test-idpriv-drop.c: Likewise.
22156         * tests/test-idpriv-droptemp.c: Likewise.
22157         * tests/test-lock.c: Likewise.
22158         * tests/test-tls.c: Likewise.
22159         * lib/argp-help.c: Insert space before function-like macro argument
22160         list.
22161         * lib/memcmp.c: Likewise.
22162         * tests/test-base64.c: Likewise.
22163         * lib/localename.c: Insert space before sizeof's argument list.
22164         * lib/safe-alloc.h: Likewise.
22165         * lib/file-set.h: Insert space before macro argument list.
22166         * tests/test-argp.c: Likewise.
22167         * lib/argp-namefrob.h: Insert space before function parameter list.
22168         * lib/getaddrinfo.c: Likewise.
22169         * lib/netdb.in.h: Likewise.
22170         * lib/parse-duration.h: Likewise.
22171         * lib/parse-duration.c: Likewise.
22172         * lib/poll.c: Likewise.
22173         * lib/select.c: Likewise.
22174         * lib/trim.h: Likewise.
22175         * tests/test-usleep.c: Likewise.
22176         * lib/ldexpl.c: Insert space before function parameter list and before
22177         function argument list.
22178         * lib/logl.c: Likewise.
22179         * lib/sqrtl.c: Likewise.
22180         * lib/trim.c: Likewise.
22181         * lib/cosl.c: Use GNU style indentation. Insert space before function
22182         argument list.
22183         * lib/sinl.c: Likewise.
22184         * lib/tsearch.c: Insert space after 'for'.
22185         Reported by Jim Meyering.
22186
22187 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22188
22189         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22190         config header before grepping, as it's not present before
22191         autoreconf/configure are run.  Reported by Simon Josefsson.
22192
22193 2010-03-23  Bruno Haible  <bruno@clisp.org>
22194
22195         pt_chown: Make it work with automake < 1.11.
22196         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22197         Reported by Simon Josefsson.
22198
22199 2010-03-23  Bruno Haible  <bruno@clisp.org>
22200
22201         pt_chown: Don't depend on GPLed modules.
22202         * lib/pt_chown.c: Don't include idpriv.h.
22203         (main): Don't drop privileges.
22204         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22205         Reported by Simon Josefsson.
22206
22207 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22208
22209         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22210         suggestions from karl@freefriends.org (Karl Berry).
22211
22212 2010-03-22  Eric Blake  <eblake@redhat.com>
22213
22214         gethostname: further tweaks
22215         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22216         are overriding gethostname.
22217         Suggested by Bruno Haible.
22218
22219 2010-03-21  Bruno Haible  <bruno@clisp.org>
22220
22221         Fix comments.
22222         * lib/forkpty.c (rpl_forkpty): Fix comment.
22223         * lib/openpty.c (rpl_openpty): Likewise.
22224         Reported by Eric Blake.
22225
22226 2010-03-22  Eric Blake  <eblake@redhat.com>
22227
22228         gethostname: fix build on mingw
22229         * lib/unistd.in.h (includes): Work around fact that mingw
22230         <winsock2.h> re-includes <unistd.h>, by avoiding any
22231         redeclarations if we are being included by <winsock2.h>.
22232         Reported by Matthias Bolte.
22233
22234 2010-03-21  Bruno Haible  <bruno@clisp.org>
22235
22236         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22237         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22238         modifications.
22239         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22240         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22241         provide the replacement.
22242         * modules/forkpty (Depends-on): Add openpty, login_tty.
22243         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22244         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22245         * doc/glibc-functions/forkpty.texi: More supported platforms.
22246         * config/srclist.txt: Add forkpty.c (commented).
22247
22248 2010-03-21  Bruno Haible  <bruno@clisp.org>
22249
22250         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22251         (Makefile.am): Verify that PTY_LIB is defined.
22252
22253         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22254
22255 2010-03-21  Bruno Haible  <bruno@clisp.org>
22256
22257         Tests for module 'login_tty'.
22258         * modules/login_tty-tests: New file.
22259         * tests/test-login_tty.c: New file.
22260
22261         New module 'login_tty'.
22262         * lib/login_tty.c: New file.
22263         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22264         * modules/login_tty: New file.
22265         * doc/glibc-functions/login_tty.texi: Mention the new module.
22266
22267 2010-03-21  Bruno Haible  <bruno@clisp.org>
22268
22269         login_tty: Documentation.
22270         * doc/glibc-functions/login_tty.texi: New file.
22271         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22272
22273 2010-03-21  Bruno Haible  <bruno@clisp.org>
22274
22275         pty: Consistent macro naming.
22276         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22277         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22278         * modules/pty (configure.ac): Update.
22279
22280 2010-03-21  Bruno Haible  <bruno@clisp.org>
22281
22282         Tests for openpty: Make stricter.
22283         * tests/test-openpty.c (main): Add test of canonical processing and
22284         erase.
22285         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22286
22287         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22288         * lib/openpty.c (openpty): New replacement function.
22289         * lib/pty.in.h: Include <termios.h>.
22290         (openpty): Update declaration. Add comments.
22291         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22292         is not declared, arrange to provide the replacement. Check for _getpty
22293         and posix_openpt.
22294         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22295         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22296         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22297         * modules/pty-tests (test_pty_c___LDADD): New variable.
22298         * doc/glibc-functions/openpty.texi: More supported platforms.
22299
22300 2010-03-21  Bruno Haible  <bruno@clisp.org>
22301
22302         setenv: Tweaks.
22303         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22304         the test program.
22305         * doc/posix-functions/setenv.texi: Update platforms list.
22306
22307 2010-03-21  Bruno Haible  <bruno@clisp.org>
22308
22309         New module 'unlockpt'.
22310         * lib/unlockpt.c: New file, from glibc with modifications.
22311         * m4/unlockpt.m4: New file.
22312         * modules/unlockpt: New file.
22313         * lib/stdlib.in.h (unlockpt): New declaration.
22314         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22315         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22316         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22317         HAVE_UNLOCKPT.
22318         * doc/posix-functions/unlockpt.texi: Mention the new module.
22319         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22320         * config/srclist.txt: Add unlockpt.c (commented).
22321
22322 2010-03-21  Jim Meyering  <meyering@redhat.com>
22323
22324         maint.mk: prohibit inclusion of "intprops.h" without use
22325         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22326
22327 2010-03-21  Bruno Haible  <bruno@clisp.org>
22328
22329         New module 'grantpt'.
22330         * lib/grantpt.c: New file, from glibc with modifications.
22331         * m4/grantpt.m4: New file.
22332         * modules/grantpt: New file.
22333         * lib/stdlib.in.h (grantpt): New declaration.
22334         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22335         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22336         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22337         HAVE_GRANTPT.
22338         * doc/posix-functions/grantpt.texi: Mention the new module.
22339         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22340         * config/srclist.txt: Add grantpt.c (commented).
22341
22342 2010-03-21  Bruno Haible  <bruno@clisp.org>
22343
22344         New module 'pt_chown'.
22345         * lib/pt_chown.c: New file, from glibc with modifications.
22346         * lib/pty-private.h: New file, from glibc with modifications.
22347         * modules/pt_chown: New file.
22348         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22349
22350 2010-03-21  Bruno Haible  <bruno@clisp.org>
22351
22352         Tests for module 'ptsname'.
22353         * modules/ptsname-tests: New file.
22354         * tests/test-ptsname.c: New file.
22355
22356         New module 'ptsname'.
22357         * lib/ptsname.c: New file, from glibc with modifications.
22358         * m4/ptsname.m4: New file.
22359         * modules/ptsname: New file.
22360         * lib/stdlib.in.h (ptsname): New declaration.
22361         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22362         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22363         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22364         HAVE_PTSNAME.
22365         * doc/posix-functions/ptsname.texi: Mention the new module.
22366         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22367         * config/srclist.txt: Add ptsname.c (commented).
22368
22369 2010-03-21  Bruno Haible  <bruno@clisp.org>
22370
22371         Tests for module 'ttyname_r'.
22372         * modules/ttyname_r-tests: New file.
22373         * tests/test-ttyname_r.c: New file.
22374
22375         New module 'ttyname_r'.
22376         * lib/ttyname_r.c: New file.
22377         * m4/ttyname_r.m4: New file.
22378         * modules/ttyname_r: New file.
22379         * lib/unistd.in.h (ttyname_r): New declaration.
22380         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22381         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22382         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22383         HAVE_TTYNAME_R.
22384         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22385         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22386
22387 2010-03-20  Bruno Haible  <bruno@clisp.org>
22388
22389         signal: Undefine macro definitions in C++ mode.
22390         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22391         sigfillset): Undefine macro definitions from the system header in C++
22392         mode.
22393         Reported by John W. Eaton <jwe@gnu.org>.
22394
22395 2010-03-20  Bruno Haible  <bruno@clisp.org>
22396
22397         Ensure no #include statements inside extern "C" { ... }.
22398         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22399         contain #include statements.
22400         * lib/time.in.h: Likewise.
22401
22402 2010-03-20  Bruno Haible  <bruno@clisp.org>
22403
22404         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22405         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22406         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22407         Reported by John W. Eaton <jwe@gnu.org>.
22408
22409 2010-03-20  Bruno Haible  <bruno@clisp.org>
22410
22411         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22412         Reported by Jim Meyering.
22413
22414 2010-03-20  Bruno Haible  <bruno@clisp.org>
22415
22416         pipe: Set errno upon failure.
22417         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22418         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22419         errno value in error message.
22420
22421 2010-03-20  Bruno Haible  <bruno@clisp.org>
22422             Jim Meyering  <meyering@redhat.com>
22423
22424         lchown: Avoid "unused variable" warning.
22425         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22426
22427 2010-03-20  Bruno Haible  <bruno@clisp.org>
22428
22429         Work around unlink() bug on MacOS X 10.5.6.
22430         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22431         attempting to unlink a parent directory.
22432         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22433         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22434         activate for the replacement function.
22435         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22436
22437 2010-03-20  Bruno Haible  <bruno@clisp.org>
22438
22439         Fix link errors on Solaris 8.
22440         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22441         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22442
22443 2010-03-19  Jim Meyering  <meyering@redhat.com>
22444
22445         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22446         The _LIBC implementation of build_range_exp correctly honors the
22447         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22448         However, the non-_LIBC implementation would ignore that syntax-bit
22449         flag and return REG_ERANGE unconditionally.
22450         This change makes it honor that flag.
22451         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22452         Make two pointer parameters "const".
22453         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22454         (parse_bracket_exp): Update caller.
22455
22456         regex.m4: correct the reversed range endpoint ([b-a]) test
22457         * m4/regex.m4: When requiring that [b-a] evoke failure,
22458         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22459         test pass once again for x86-based systems.
22460
22461 2010-03-19  Bruno Haible  <bruno@clisp.org>
22462
22463         scandir: Fix link error on Solaris 8.
22464         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22465         macros.
22466
22467 2010-03-19  Bruno Haible  <bruno@clisp.org>
22468
22469         getusershell: Fix documentation.
22470         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22471         module.
22472         * doc/glibc-functions/setusershell.texi: Likewise.
22473
22474         getusershell: Provide declaration, missing on Solaris 9.
22475         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22476         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22477         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22478         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22480         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22481         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22482         HAVE_GETUSERSHELL.
22483         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22484
22485 2010-03-19  Bruno Haible  <bruno@clisp.org>
22486
22487         wctype: Provide iswblank function.
22488         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22489         exists and is fine.
22490         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22491         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22492         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22493         * doc/posix-functions/iswblank.texi: Update.
22494
22495 2010-03-19  Bruno Haible  <bruno@clisp.org>
22496
22497         Tests of module 'pty' in C++ mode.
22498         * modules/pty-tests: New file.
22499         * tests/test-pty-c++.cc: New file.
22500         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22501
22502 2010-03-19  Eric Blake  <eblake@redhat.com>
22503
22504         logb: fix documentation
22505         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22506         1.5 declaration bug.
22507
22508         forkpty, openpty: prefer glibc's const-safe prototype
22509         * lib/forkpty.c (rpl_forkpty): New file.
22510         * lib/openpty.c (rpl_openpty): Likewise.
22511         * modules/forkpty (Files): Distribute it.
22512         * modules/openpty (Files): Likewise.
22513         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22514         check...
22515         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22516         replacement for for non-const BSD signature.
22517         * modules/pty (Makefile.am): Substitute witnesses.
22518         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22519         * tests/test-forkpty.c: Update signature check.
22520         * tests/test-openpty.c: Likewise.
22521         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22522         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22523
22524         forkpty, openpty: split functions into new modules
22525         * modules/pty (Makefile.am): Substitute new witnesses.
22526         (Libraries): Move library detection...
22527         * modules/forkpty: ...into new module.
22528         * modules/openpty: Another new module.
22529         * modules/pty-tests: Rename and split...
22530         * modules/forkpty-tests: ...to this...
22531         * modules/openpty-tests: ...and this.
22532         * tests/test-pty.c: Rename and split...
22533         * tests/test-forkpty.c: ...to this...
22534         * tests/test-openpty.c: ...and this.
22535         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22536         (gl_PTY): Split library searching...
22537         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22538         (gl_FORKPTY, gl_OPENPTY): New macros.
22539         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22540         * NEWS: Mention the split.
22541         * MODULES.html.sh (Misc): Document the modules.
22542         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22543         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22544
22545         pty: improve replacement header
22546         * lib/pty.in.h: New file.
22547         * modules/pty (Files): Ship it.
22548         (Makefile.am): Always build replacement.
22549         * m4/pty.m4: Rename...
22550         * m4/pty_h.m4: ...to this.
22551         (gl_PTY): Modernize setting of witness macros; update check of
22552         forkpty to take proper advantage of cache.
22553         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22554
22555         getopt: avoid compiler warning
22556         * lib/getopt.c (attribute_hidden): Remove unused macro.
22557
22558 2010-03-18  Bruno Haible  <bruno@clisp.org>
22559
22560         Fix link errors on Solaris 8.
22561         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22562         * modules/search-tests (test_search_c___LDADD): Likewise.
22563         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22564         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22565         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22566         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22567         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22568         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22569         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22570
22571 2010-03-18  Bruno Haible  <bruno@clisp.org>
22572
22573         Fix bug introduced on 2010-03-14.
22574         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22575         (gl_SPAWN_H): Require it.
22576         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22577         Reported by Simon Josefsson.
22578
22579 2010-03-18  Bruno Haible  <bruno@clisp.org>
22580
22581         Fix typo introduced on 2009-12-31.
22582         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22583         posix_spawn_file_actions_adddup2.
22584
22585 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22586         and Eric Blake  <eblake@redhat.com>
22587
22588         test-vc-list-files-git: make more robust
22589         * tests/test-vc-list-files-git.sh: Unset problematic environment
22590         variables.  Chain commands together.
22591
22592 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22593
22594         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22595         `AC_CHECK_DECL' invocation.
22596
22597 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22598
22599         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22600         appears before executable statements. Suggested by Petr Sumbera
22601         <Petr.Sumbera@Sun.COM>.
22602
22603 2010-03-14  Bruno Haible  <bruno@clisp.org>
22604
22605         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22606         portability problems. Instead use a simpler test.
22607         (main): Check that invalid arguments are rejected only on Linux.
22608
22609 2010-03-14  Bruno Haible  <bruno@clisp.org>
22610
22611         Fix bug introduced on 2009-12-31.
22612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22613         gl_PREREQ_SYS_H_WINSOCK2 always.
22614         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22615         SYS_SOCKET_H variable.
22616         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22617         Update comments.
22618         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22619         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22620         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22621         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22622         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22623
22624 2010-03-14  Bruno Haible  <bruno@clisp.org>
22625
22626         Fix values returned by sinl, cosl.
22627         * lib/trigl.h: Add specification comments.
22628         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22629         that combines the values from the precomputed table with the values of
22630         the Chebyshev polynomials.
22631
22632 2010-03-14  Bruno Haible  <bruno@clisp.org>
22633
22634         Fix compilation error when modules 'posix_spawn[p]' are not used.
22635         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22636         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22637
22638 2010-03-14  Bruno Haible  <bruno@clisp.org>
22639
22640         Fix compilation error on mingw when module 'time_r' is not used.
22641         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22642         is 1.
22643         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22644         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22645         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22646         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22647
22648 2010-03-14  Bruno Haible  <bruno@clisp.org>
22649
22650         Fix compilation error with Sun C.
22651         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22652         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22653         instead of GCC specific ULONG_LONG_MAX.
22654         * lib/xstrtoll.c: Likewise.
22655         * lib/xstrtoull.c: Likewise.
22656
22657 2010-03-13  Bruno Haible  <bruno@clisp.org>
22658
22659         Allow the user to disable C++ code and tests.
22660         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22661         (gl_PROG_ANSI_CXX): Require it.
22662
22663 2010-03-13  Bruno Haible  <bruno@clisp.org>
22664
22665         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22666         cases.
22667
22668 2010-03-13  Bruno Haible  <bruno@clisp.org>
22669
22670         Test that gnulib does not break the standard C++ headers.
22671         * tests/test-locale-c++2.cc: New file.
22672         * modules/locale-tests (Files): Add it.
22673         (Makefile.am): Compile it for test-locale-c++.
22674         * tests/test-math-c++2.cc: New file.
22675         * modules/math-tests (Files): Add it.
22676         (Makefile.am): Compile it for test-math-c++.
22677         * tests/test-signal-c++2.cc: New file.
22678         * modules/signal-tests (Files): Add it.
22679         (Makefile.am): Compile it for test-signal-c++.
22680         * tests/test-stdio-c++2.cc: New file.
22681         * modules/stdio-tests (Files): Add it.
22682         (Makefile.am): Compile it for test-stdio-c++.
22683         * tests/test-stdlib-c++2.cc: New file.
22684         * modules/stdlib-tests (Files): Add it.
22685         (Makefile.am): Compile it for test-stdlib-c++.
22686         * tests/test-string-c++2.cc: New file.
22687         * modules/string-tests (Files): Add it.
22688         (Makefile.am): Compile it for test-string-c++.
22689         * tests/test-time-c++2.cc: New file.
22690         * modules/time-tests (Files): Add it.
22691         (Makefile.am): Compile it for test-time-c++.
22692         Reported by John W. Eaton <jwe@gnu.org>.
22693
22694 2010-03-13  Bruno Haible  <bruno@clisp.org>
22695
22696         * gnulib-tool (func_usage): Clarify which options are available for
22697         --create-testdir and --create-megatestdir.
22698
22699 2010-03-13  Bruno Haible  <bruno@clisp.org>
22700
22701         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22702         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22703         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22704         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22705         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22706         when appropriate.
22707         Reported by Jim Meyering.
22708
22709 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22710
22711         * gnulib-tool (func_import): Explain origin of code.
22712
22713 2010-03-12  Bruno Haible  <bruno@clisp.org>
22714
22715         Fix problem with automake's definition of CXXLINK.
22716         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22717         Reported by Simon Josefsson and Ludovic Courtès.
22718
22719 2010-03-12  Bruno Haible  <bruno@clisp.org>
22720
22721         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22722         stable releases.
22723
22724 2010-03-11  Bruno Haible  <bruno@clisp.org>
22725
22726         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22727         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22728         whether the system provides one variant or multiple variants of the
22729         function.
22730         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22731         C++ compilers.
22732         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22733         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22734         Reported by Jim Meyering.
22735
22736 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22737
22738         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22739
22740 2010-03-08  Bruno Haible  <bruno@clisp.org>
22741
22742         gnulib-tool: Add support for --libtool in --create-testdir.
22743         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22744         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22745
22746 2010-03-08  Eric Blake  <eblake@redhat.com>
22747
22748         gnulib-tool.texi: mention possibility of git submodule
22749         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22750         submodules.
22751         * doc/.gitignore: Ignore another generated file.
22752
22753 2010-03-08  Karl Berry  <karl@gnu.org>
22754
22755         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22756         of committing gnulib files while skipping others.
22757
22758 2010-03-07  Bruno Haible  <bruno@clisp.org>
22759
22760         Tests of module 'wctype' in C++ mode.
22761         * tests/test-wctype-c++.cc: New file.
22762         * modules/wctype-tests (Files): Add it and tests/signature.h.
22763         (Depends-on): Add ansi-c++-opt.
22764         (Makefile.am): Arrange to compile and run test-wctype-c++.
22765
22766         Tests of module 'wchar' in C++ mode.
22767         * tests/test-wchar-c++.cc: New file.
22768         * modules/wchar-tests (Files): Add it and tests/signature.h.
22769         (Depends-on): Add ansi-c++-opt.
22770         (Makefile.am): Arrange to compile and run test-wchar-c++.
22771         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22772         gl_MODULE_INDICATOR.
22773
22774         Tests of module 'unistd' in C++ mode.
22775         * tests/test-unistd-c++.cc: New file.
22776         * modules/unistd-tests (Files): Add it and tests/signature.h.
22777         (Depends-on): Add ansi-c++-opt.
22778         (Makefile.am): Arrange to compile and run test-unistd-c++.
22779         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22780         gl_MODULE_INDICATOR.
22781
22782         Tests of module 'time' in C++ mode.
22783         * tests/test-time-c++.cc: New file.
22784         * modules/time-tests (Files): Add it and tests/signature.h.
22785         (Depends-on): Add ansi-c++-opt.
22786         (Makefile.am): Arrange to compile and run test-time-c++.
22787         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22788
22789         Tests of module 'sys_time' in C++ mode.
22790         * tests/test-sys_time-c++.cc: New file.
22791         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22792         (Depends-on): Add ansi-c++-opt.
22793         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22794         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22795         gl_MODULE_INDICATOR.
22796
22797         Tests of module 'sys_stat' in C++ mode.
22798         * tests/test-sys_stat-c++.cc: New file.
22799         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22800         (Depends-on): Add ansi-c++-opt.
22801         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22802         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22803         gl_MODULE_INDICATOR.
22804
22805         Tests of module 'sys_socket' in C++ mode.
22806         * tests/test-sys_socket-c++.cc: New file.
22807         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22808         (Depends-on): Add ansi-c++-opt.
22809         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22810         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22811         gl_MODULE_INDICATOR.
22812
22813         Tests of module 'sys_select' in C++ mode.
22814         * tests/test-sys_select-c++.cc: New file.
22815         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22816         (Depends-on): Add ansi-c++-opt.
22817         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22818         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22819         gl_MODULE_INDICATOR.
22820
22821         Tests of module 'sys_ioctl' in C++ mode.
22822         * tests/test-sys_ioctl-c++.cc: New file.
22823         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22824         (Depends-on): Add ansi-c++-opt.
22825         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22826         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22827         gl_MODULE_INDICATOR.
22828
22829         Tests of module 'string' in C++ mode.
22830         * tests/test-string-c++.cc: New file.
22831         * modules/string-tests (Files): Add it and tests/signature.h.
22832         (Depends-on): Add ansi-c++-opt.
22833         (Makefile.am): Arrange to compile and run test-string-c++.
22834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22835         gl_MODULE_INDICATOR.
22836
22837         Tests of module 'stdlib' in C++ mode.
22838         * tests/test-stdlib-c++.cc: New file.
22839         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22840         (Depends-on): Add ansi-c++-opt.
22841         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22842         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22843         gl_MODULE_INDICATOR.
22844
22845         Tests of module 'stdio' in C++ mode.
22846         * tests/test-stdio-c++.cc: New file.
22847         * modules/stdio-tests (Files): Add it and tests/signature.h.
22848         (Depends-on): Add ansi-c++-opt.
22849         (Makefile.am): Arrange to compile and run test-stdio-c++.
22850         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22851         gl_MODULE_INDICATOR.
22852
22853         Tests of module 'spawn' in C++ mode.
22854         * tests/test-spawn-c++.cc: New file.
22855         * modules/spawn-tests (Files): Add it and tests/signature.h.
22856         (Depends-on): Add ansi-c++-opt.
22857         (Makefile.am): Arrange to compile and run test-spawn-c++.
22858         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22859         gl_MODULE_INDICATOR.
22860
22861         Tests of module 'signal' in C++ mode.
22862         * tests/test-signal-c++.cc: New file.
22863         * modules/signal-tests (Files): Add it and tests/signature.h.
22864         (Depends-on): Add ansi-c++-opt.
22865         (Makefile.am): Arrange to compile and run test-signal-c++.
22866         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22867         gl_MODULE_INDICATOR.
22868
22869         Tests of module 'search' in C++ mode.
22870         * tests/test-search-c++.cc: New file.
22871         * modules/search-tests (Files): Add it and tests/signature.h.
22872         (Depends-on): Add ansi-c++-opt.
22873         (Makefile.am): Arrange to compile and run test-search-c++.
22874         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22875         gl_MODULE_INDICATOR.
22876
22877         Tests of module 'math' in C++ mode.
22878         * tests/test-math-c++.cc: New file.
22879         * modules/math-tests (Files): Add it and tests/signature.h.
22880         (Depends-on): Add ansi-c++-opt.
22881         (Makefile.am): Arrange to compile and run test-math-c++.
22882         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22883
22884         Tests of module 'locale' in C++ mode.
22885         * tests/test-locale-c++.cc: New file.
22886         * modules/locale-tests (Files): Add it and tests/signature.h.
22887         (Depends-on): Add ansi-c++-opt.
22888         (Makefile.am): Arrange to compile and run test-locale-c++.
22889         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22890         gl_MODULE_INDICATOR.
22891
22892         Tests of module 'langinfo' in C++ mode.
22893         * tests/test-langinfo-c++.cc: New file.
22894         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22895         (Depends-on): Add ansi-c++-opt.
22896         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22897         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22898         gl_MODULE_INDICATOR.
22899
22900         Tests of module 'iconv-h' in C++ mode.
22901         * tests/test-iconv-h-c++.cc: New file.
22902         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22903         (Depends-on): Add ansi-c++-opt.
22904         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22905
22906         Tests of module 'glob' in C++ mode.
22907         * tests/test-glob-c++.cc: New file.
22908         * modules/glob-tests (Files): Add it.
22909         (Depends-on): Add ansi-c++-opt.
22910         (Makefile.am): Arrange to compile and run test-glob-c++.
22911
22912         Tests of module 'fcntl-h' in C++ mode.
22913         * tests/test-fcntl-h-c++.cc: New file.
22914         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22915         (Depends-on): Add ansi-c++-opt.
22916         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22917         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22918         gl_MODULE_INDICATOR.
22919
22920         Tests of module 'dirent' in C++ mode.
22921         * tests/test-dirent-c++.cc: New file.
22922         * modules/dirent-tests (Files): Add it and tests/signature.h.
22923         (Depends-on): Add ansi-c++-opt.
22924         (Makefile.am): Arrange to compile and run test-dirent-c++.
22925         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22926         gl_MODULE_INDICATOR.
22927
22928         New module 'ansi-c++-opt'.
22929         * modules/ansi-c++-opt: New file.
22930         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22931
22932         Document C++ namespace mode.
22933         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22934
22935         wctype: Avoid #define replacements in C++ mode.
22936         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22937         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22938         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22939         In C++, define a namespaced alias symbol.
22940         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22941         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22942         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22943         rule.
22944
22945         wchar: Avoid #define replacements in C++ mode.
22946         * lib/wchar.in.h: Include c++defs.h.
22947         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22948         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22949         symbol.
22950         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22951         * modules/wchar (Depends-on): Add c++defs.
22952         (Makefile.am): Update wchar.h rule.
22953
22954         unistd: Avoid #define replacements in C++ mode.
22955         * lib/unistd.in.h: Include c++defs.h.
22956         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22957         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22958         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22959         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22960         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22961         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22962         symbol.
22963         (environ): Update.
22964         * modules/unistd (Depends-on): Add c++defs.
22965         (Makefile.am): Update unistd.h rule.
22966
22967         time: Avoid #define replacements in C++ mode.
22968         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22969         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22970         define a namespaced alias symbol.
22971         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22972         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22973         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22974         * modules/time (Depends-on): Add c++defs, warn-on-use.
22975         (Makefile.am): Update time.h rule.
22976         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22977         * modules/nanosleep (configure.ac): Likewise.
22978         * modules/strptime (configure.ac): Likewise.
22979         * modules/timegm (configure.ac): Likewise.
22980
22981         sys_time: Avoid #define replacements in C++ mode.
22982         * lib/sys_time.in.h: Include c++defs.h.
22983         (gettimeofday): In C++, define a namespaced alias symbol.
22984         * modules/sys_time (Depends-on): Add c++defs.
22985         (Makefile.am): Update sys/time.h rule.
22986
22987         sys_stat: Avoid #define replacements in C++ mode.
22988         * lib/sys_stat.in.h: Include c++defs.h.
22989         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22990         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22991         namespaced alias symbol.
22992         In C++, define a namespaced alias symbol.
22993         * modules/sys_stat (Depends-on): Add c++defs.
22994         (Makefile.am): Update sys/stat.h rule.
22995
22996         sys_socket: Avoid #define replacements in C++ mode.
22997         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22998         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22999         definitions also when the system has a <sys/socket.h>.
23000         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23001         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23002         In C++, define a namespaced alias symbol.
23003         * modules/sys_socket (Depends-on): Add c++defs.
23004         (Makefile.am): Update sys/socket.h rule.
23005
23006         sys_select: Avoid #define replacements in C++ mode.
23007         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23008         definitions also when the system has a <sys/select.h>.
23009         (select): In C++, define a namespaced alias symbol.
23010         * modules/sys_select (Depends-on): Add c++defs.
23011         (Makefile.am): Update sys/select.h rule.
23012
23013         sys_ioctl: Avoid #define replacements in C++ mode.
23014         * lib/sys_ioctl.in.h: Include c++defs.h.
23015         (ioctl): In C++, define a namespaced alias symbol.
23016         * modules/sys_ioctl (Depends-on): Add c++defs.
23017         (Makefile.am): Update sys/ioctl.h rule.
23018
23019         string: Avoid #define replacements in C++ mode.
23020         * lib/string.in.h: Include c++defs.h.
23021         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23022         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23023         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23024         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23025         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23026         * modules/string (Depends-on): Add c++defs.
23027         (Makefile.am): Update string.h rule.
23028
23029         stdlib: Avoid #define replacements in C++ mode.
23030         * lib/stdlib.in.h: Include c++defs.h.
23031         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23032         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23033         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23034         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23035         symbol.
23036         * modules/stdlib (Depends-on): Add c++defs.
23037         (Makefile.am): Update stdlib.h rule.
23038
23039         stdio: Avoid #define replacements in C++ mode.
23040         * lib/stdio.in.h: Include c++defs.h.
23041         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23042         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23043         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23044         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23045         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23046         namespaced alias symbol.
23047         * modules/stdio (Depends-on): Add c++defs.
23048         (Makefile.am): Update stdio.h rule.
23049
23050         spawn: Avoid #define replacements in C++ mode.
23051         * lib/spawn.in.h: Include c++defs.h.
23052         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23053         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23054         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23055         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23056         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23057         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23058         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23059         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23060         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23061         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23062         In C++, define a namespaced alias symbol.
23063         * modules/spawn (Depends-on): Add c++defs.
23064         (Makefile.am): Update spawn.h rule.
23065
23066         signal: Avoid #define replacements in C++ mode.
23067         * lib/signal.in.h: Include c++defs.h.
23068         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23069         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23070         namespaced alias symbol.
23071         * modules/signal (Depends-on): Add c++defs.
23072         (Makefile.am): Update signal.h rule.
23073
23074         search: Avoid #define replacements in C++ mode.
23075         * lib/search.in.h: Include c++defs.h.
23076         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23077         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23078         symbol.
23079         * modules/search (Depends-on): Add c++defs.
23080         (Makefile.am): Update search.h rule.
23081
23082         math: Avoid #define replacements in C++ mode.
23083         * lib/math.in.h: Include c++defs.h.
23084         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23085         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23086         trunc, truncl): In C++, define a namespaced alias symbol.
23087         * modules/math (Depends-on): Add c++defs.
23088         (Makefile.am): Update math.h rule.
23089
23090         locale: Avoid #define replacements in C++ mode.
23091         * lib/locale.in.h: Include c++defs.h.
23092         (duplocale): In C++, define a namespaced alias symbol.
23093         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23094         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23095         * modules/locale (Depends-on): Add c++defs.
23096         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23097
23098         langinfo: Avoid #define replacements in C++ mode.
23099         * lib/langinfo.in.h: Include c++defs.h.
23100         (nl_langinfo): In C++, define a namespaced alias symbol.
23101         * modules/langinfo (Depends-on): Add c++defs.
23102         (Makefile.am): Update langinfo.h rule.
23103
23104         iconv-h: Avoid #define replacements in C++ mode.
23105         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23106         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23107         symbol.
23108         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23109         whenever iconv is present.
23110         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23111         (Makefile.am): Update iconv.h rule.
23112
23113         glob: Avoid #define replacements in C++ mode.
23114         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23115         (_gl_glob_errfunc_fn): New type.
23116         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23117         symbol.
23118         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23119         (Makefile.am): Update glob.h rule.
23120
23121         fcntl-h: Avoid #define replacements in C++ mode.
23122         * lib/fcntl.in.h: Include c++defs.h.
23123         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23124         * modules/fcntl-h (Depends-on): Add c++defs.
23125         (Makefile.am): Update fcntl.h rule.
23126
23127         dirent: Avoid #define replacements in C++ mode.
23128         * lib/dirent.in.h: Include c++defs.h.
23129         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23130         namespaced alias symbol.
23131         (dirfd): Update declaration.
23132         * modules/dirent (Depends-on): Add c++defs.
23133         (Makefile.am): Update dirent.h rule.
23134
23135         ctype: Make it usable in C++ code.
23136         * lib/ctype.in.h: Include c++defs.h.
23137         (isblank): Declare as extern "C".
23138         * modules/ctype (Depends-on): Add c++defs.
23139         (Makefile.am): Update ctype.h rule.
23140
23141         New module 'c++defs'.
23142         * modules/c++defs: New file.
23143         * build-aux/c++defs.h: New file.
23144         Reported by John W. Eaton <jwe@gnu.org>.
23145
23146 2010-03-07  Bruno Haible  <bruno@clisp.org>
23147
23148         logb: Provide missing declaration for Cygwin.
23149         * lib/math.in.h (logb): New declaration.
23150         * m4/logb.m4: New file.
23151         * modules/logb (Files): Add m4/logb.m4.
23152         (Depends-on): Add math.
23153         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23154         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23156         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23157         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23158
23159 2010-03-07  Bruno Haible  <bruno@clisp.org>
23160
23161         Fix test-cond link error.
23162         * tests/test-cond.c: Include <stdio.h>.
23163
23164 2010-03-07  Bruno Haible  <bruno@clisp.org>
23165
23166         Fix test-dirent-safer link error.
23167         * modules/dirent-safer-tests (Makefile.am): Define
23168         test_dirent_safer_LDADD.
23169
23170 2010-03-07  Bruno Haible  <bruno@clisp.org>
23171
23172         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23173         among default module list.
23174
23175 2010-03-07  Bruno Haible  <bruno@clisp.org>
23176
23177         Fix link error on platforms with GNU libiconv.
23178         * modules/unistr/u8-strcoll-tests (Makefile): Define
23179         test_u8_strcoll_LDADD.
23180         * modules/unistr/u16-strcoll-tests (Makefile): Define
23181         test_u16_strcoll_LDADD.
23182         * modules/unistr/u32-strcoll-tests (Makefile): Define
23183         test_u32_strcoll_LDADD.
23184
23185 2010-03-07  Bruno Haible  <bruno@clisp.org>
23186
23187         Use POSIX declarations for socket functions.
23188         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23189         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23190         rpl_sendto): Change declaration to match POSIX.
23191         * lib/connect.c (rpl_connect): Likewise.
23192         * lib/accept.c (rpl_accept): Likewise.
23193         * lib/bind.c (rpl_bind): Likewise.
23194         * lib/getpeername.c (rpl_getpeername): Likewise.
23195         * lib/getsockname.c (rpl_getsockname): Likewise.
23196         * lib/recv.c (rpl_recv): Likewise.
23197         * lib/send.c (rpl_send): Likewise.
23198         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23199         * lib/sendto.c (rpl_sendto): Likewise.
23200
23201 2010-03-06  Bruno Haible  <bruno@clisp.org>
23202
23203         Clarify access, euidaccess, faccessat.
23204         * doc/posix-functions/faccessat.texi: Mention security problem under
23205         "Other problems", not "Portability problems".
23206         * doc/posix-functions/access.texi: Likewise. Mention a related security
23207         problem.
23208         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23209         * lib/euidaccess.c: Add comments about platforms.
23210         * lib/unistd.in.h (access, euidaccess): Add warnings.
23211
23212 2010-03-07  Bruno Haible  <bruno@clisp.org>
23213
23214         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23215         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23216         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23217         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23218         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23219         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23220         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23221         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23222         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23223         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23224         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23225         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23226         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23227         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23228         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23229         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23230         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23231         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23232         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23233         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23234         Likewise.
23235         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23236         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23237         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23238         Likewise.
23239         * tests/test-spawn.c (main): Make it work when
23240         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23241
23242 2010-03-07  Bruno Haible  <bruno@clisp.org>
23243
23244         Fix incorrect Makefile.am generation in German locale.
23245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23246         Execute sed command with character range in C locale.
23247
23248 2010-03-06  Bruno Haible  <bruno@clisp.org>
23249
23250         Tests for module 'iconv-h'.
23251         * modules/iconv-h-tests: New file.
23252         * tests/test-iconv-h.c: New file.
23253
23254         New module 'iconv-h'.
23255         * modules/iconv-h: New file.
23256         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23257         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23258         (configure.ac): Remove gl_ICONV_H.
23259         (Makefile.am): Remove rule for iconv.h.
23260
23261 2010-03-06  Bruno Haible  <bruno@clisp.org>
23262
23263         More consistent naming of *.m4 files.
23264         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23265         * modules/wctype (Files): Update.
23266
23267         More consistent naming of *.m4 files.
23268         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23269         * modules/wchar (Files): Update.
23270
23271 2010-03-06  Jim Meyering  <meyering@redhat.com>
23272
23273         euidaccess: relax license to LGPLv2+
23274         * modules/euidaccess (License): Relax to LGPLv2+.
23275
23276 2010-03-06  Bruno Haible  <bruno@clisp.org>
23277
23278         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23279         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23280         (Makefile.am): Augment lib_SOURCES instead.
23281
23282 2010-03-04  Jim Meyering  <meyering@redhat.com>
23283
23284         utime: remove obsolete module
23285         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23286         unnecessary for years, and has been marked as obsolete for 10 months.
23287         * modules/utime: Remove file.
23288         * lib/utime.c: Remove file.
23289         * m4/utime.m4: Remove file.
23290         * m4/utimes-null.m4: Remove file.
23291         * doc/posix-functions/utime.texi (utime): Remove reference to
23292         the module.  Move the sole "fixed by gnulib" item into the
23293         "problems not fixed by Gnulib" list.
23294         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23295
23296 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23297
23298         * modules/exit (License): Relax license to LGPLv2+.
23299         (Status): Mark as obsolete.
23300         * NEWS: Mention deprecated 'exit' module.
23301         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23302         of now obsolete 'exit'.
23303
23304 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23305
23306         fts-lgpl: remove unused module
23307         * modules/fts-lgpl: Remove.
23308         * MODULES.html.sh (func_all_modules): Adjust.
23309         * check-module (find_included_lib_files): Adjust.
23310         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23311
23312 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23313
23314         copy-acl: enhance Solaris ACL error handling
23315         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23316         * lib/set-mode-acl.c (qset_acl): Likewise.
23317
23318 2010-03-02  Bruno Haible  <bruno@clisp.org>
23319
23320         spawn: Don't override the system defined values on FreeBSD 8.
23321         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23322         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23323         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23324         if HAVE_POSIX_SPAWN is 1.
23325         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23326
23327 2010-03-01  Bruno Haible  <bruno@clisp.org>
23328
23329         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23330         regarding Automake.
23331
23332 2010-02-25  Bruno Haible  <bruno@clisp.org>
23333
23334         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23335         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23336         setting, not afterwards.
23337         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23338
23339 2010-02-24  Eric Blake  <eblake@redhat.com>
23340
23341         bootstrap, git-version-gen: use timestamp
23342         * build-aux/git-version-gen (scriptversion): Force UTC.
23343         * build-aux/bootstrap (scriptversion): New variable.
23344
23345         bootstrap: allow older git
23346         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23347         older than 1.6.4.  Requested by the libvirt project.
23348
23349 2010-02-23  Eric Blake  <eblake@redhat.com>
23350
23351         warn-on-use: work with old autoconf
23352         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23353         AS_VAR semantics of autoconf 2.60.
23354         Reported by Bruno Haible.
23355
23356         bootstrap: improve some comments
23357         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23358         clarification comments.
23359
23360         gettimeofday: provide correct function
23361         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23362         when replacement is declared, otherwise provide gettimeofday.
23363         Reported by Michael Goffioul.
23364
23365 2010-02-23  Jim Meyering  <meyering@redhat.com>
23366
23367         lib-ignore: relax license to "unlimited", not LGPLv2+
23368         * modules/lib-ignore (License): Relax to "unlimited".
23369
23370 2010-02-23  Jim Meyering  <meyering@redhat.com>
23371
23372         lib-ignore: relax license to LGPLv2+
23373         * modules/lib-ignore (License): Relax to LGPLv2+.
23374
23375 2010-02-22  Eric Blake  <eblake@redhat.com>
23376
23377         lseek: avoid bash 3.2 broken pipe bug
23378         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23379         warning from bash 3.2.
23380         Reported by Ben Pfaff, with analysis from Bruno Haible.
23381
23382         bootstrap: support non-FSF copyright holder
23383         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23384         bootstrap.conf override of COPYRIGHT_HOLDER.
23385         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23386
23387         bootstrap: interoperate with gettext 0.14.1
23388         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23389
23390         bootstrap: allow for alternate submodule location
23391         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23392         hardcoding submodule location.
23393         (gnulib_mk): Allow direct use of Makefile.am.
23394
23395         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23396         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23397         rather than reconfiguring where the submodule points.
23398
23399         gettimeofday: restore support for platforms that lack function
23400         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23401         replacement if function is missing.
23402         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23403         * modules/sys_time (Makefile.am): Substitute it.
23404         * lib/sys_time.in.h (gettimeofday): Check it.
23405         Reported by Michael Goffioul.
23406
23407 2010-02-21  Bruno Haible  <bruno@clisp.org>
23408
23409         * lib/stdio.in.h (obstack_printf): Fix typo.
23410
23411 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23412
23413         vc-list-files: use bzr ls's -R option
23414         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23415         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23416
23417 2010-02-21  Jim Meyering  <meyering@redhat.com>
23418
23419         init.sh: fix EXEEXT shims to work also for names like test-prog
23420         * tests/init.sh: Re-exec a better shell, when needed.
23421         If the current shell lacks support for posix $(...), an init.sh-using
23422         test will now try to find a shell that supports that.  If EXEEXT is
23423         nonempty, we also require support for hyphen-in-alias-name and shell
23424         substitutions like ${var#glob}.  Failure to find such a shell results
23425         in a skipped test.
23426
23427 2010-02-21  Bruno Haible  <bruno@clisp.org>
23428
23429         Really work around around "broken pipe" error message from bash 3.2.
23430         * gnulib-tool (func_reset_sigpipe): Remove function.
23431         (echo): In bash 3.2, define to a function that uses printf.
23432         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23433
23434 2010-02-20  Bruno Haible  <bruno@clisp.org>
23435
23436         Restore support for automake 1.9.6 with autoconf 2.61.
23437         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23438         Reported by James Youngman <jay@gnu.org>.
23439
23440 2010-02-20  Bruno Haible  <bruno@clisp.org>
23441
23442         Improve *printf warning condition.
23443         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23444         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23445         and the function is overridden due to SIGPIPE emulation.
23446
23447 2010-02-20  Bruno Haible  <bruno@clisp.org>
23448
23449         * lib/stdio.in.h: Tweak comments.
23450
23451 2010-02-19  Bruno Haible  <bruno@clisp.org>
23452
23453         Make it easier to find modules. New gnulib-tool option '--find'.
23454         * gnulib-tool: New option --find.
23455         (func_usage): Document it.
23456         (func_sanitize_modulelist): New function, extracted from
23457         func_all_modules.
23458         (func_all_modules): Invoke it.
23459         * doc/gnulib-tool.texi (Which modules?): New node.
23460
23461 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23462
23463         * lib/sys_select.in.h: Provide select replacement even if
23464         sys/select.h exists on a system, for Interix.
23465
23466 2010-02-18  Jim Meyering  <meyering@redhat.com>
23467
23468         init.sh: don't use $(...) just yet
23469         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23470         to accommodate e.g., Solaris' /bin/sh.
23471
23472 2010-02-17  Bruno Haible  <bruno@clisp.org>
23473
23474         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23475         Reported by Ludovic Courtès <ludo@gnu.org>.
23476
23477 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23478
23479         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23480         linking with -lintl.
23481
23482 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23483
23484         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23485         if not provided by the system's netdb.h.  Reported by
23486         ludo@gnu.org (Ludovic Courtès).
23487
23488 2010-02-15  Jim Meyering  <meyering@redhat.com>
23489
23490         init.sh: improve portability and efficiency
23491         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23492         "dummy" in a for loop.
23493         Use '!', not '^' to select the complement of a character set used
23494         in a "case" statement.
23495         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23496         Suggestions from Eric Blake.
23497
23498         init.sh: automatically accommodate programs with the .exe suffix
23499         Automatically arrange for an invocation of "prog" to execute the
23500         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23501         may use the simpler "prog", yet still work when built on a system
23502         that requires specifying the added suffix.
23503         Do this by constructing a function named "prog" that invokes
23504         "prog.exe" for each .exe file in selected directories.
23505         * tests/init.sh (find_exe_basenames_): New function.
23506         (create_exe_shim_functions_): New function.
23507         (path_prepend_): Use it.
23508
23509         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23510         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23511         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23512
23513 2010-02-14  Jim Meyering  <meyering@redhat.com>
23514
23515         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23516         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23517         (sc_prohibit_hash_pjw_without_use): New rule.
23518
23519         maint.mk: allow the default upload destination dir to be overridden
23520         * top/maint.mk (upload_dest_dir_): Define with a default that
23521         preserves the status quo.
23522         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23523         Reported by Peter Simons.
23524
23525         maint.mk: prohibit inclusion of "hash.h" without_use
23526         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23527
23528 2010-02-10  Jim Meyering  <meyering@redhat.com>
23529
23530         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23531         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23532
23533 2010-02-09  Eric Blake  <ebb9@byu.net>
23534         and Bruno Haible  <bruno@clisp.org>
23535
23536         obstack-printf-posix: ensure declaration
23537         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23538         extracted from gl_FUNC_OBSTACK_PRINTF.
23539         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23540         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23541         Likewise.
23542         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23543         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23544         0.
23545
23546 2010-02-08  Bruno Haible  <bruno@clisp.org>
23547
23548         gnulib-tool: Fix typo in 2010-02-07 commit.
23549         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23550         Reported by Eric Blake.
23551
23552 2010-02-07  Bruno Haible  <bruno@clisp.org>
23553
23554         gnulib-tool: Fix up caching patches.
23555         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23556         option --no-cache. Use associative arrays when supported by the shell.
23557         (sed_comments): New variable.
23558         (modcache): Renamed from do_cache.
23559         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23560         abbreviate unnecessarily.
23561         (have_associative): New variable.
23562         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23563         way also for ksh and zsh.
23564         (func_init_sed_convert_to_cache_statements): New function, extracted
23565         from func_cache_lookup_module. Add support for associative arrays.
23566         Don't set the c_MODULE_cached variable here. Ignore all lines before
23567         the first field header. Remove only the final newline, not all trailing
23568         newlines. Support empty fields correctly. Limit the use of 'eval' to
23569         assignments.
23570         (func_get_description, func_get_status, func_get_notice,
23571         func_get_applicability, func_get_filelist, func_get_dependencies,
23572         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23573         func_get_automake_snippet, func_get_include_directive,
23574         func_get_link_directive, func_get_license, func_get_maintainer):
23575         Update documentation. List the unoptimized code first. Add support for
23576         associative arrays. Limit the use of 'eval' to assignments.
23577         (func_get_applicability): Undo stylistic pessimisations.
23578         (func_get_automake_snippet, func_get_include_directive): Reduce code
23579         duplication.
23580         (func_modules_transitive_closure, func_modules_add_dummy,
23581         func_modules_notice, func_modules_to_filelist, func_add_file,
23582         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23583         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23584         func_create_testdir, func_create_megatestdir): Update documentation.
23585
23586 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23587
23588         * gnulib-tool (func_cache_lookup_module): Store the module name
23589         belonging to the cache variable; error out if two different
23590         module names map to the same cache variable name.
23591
23592 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23593
23594         gnulib-tool: Make caching optional.
23595         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23596         Update matching short versions of --no-changelog.
23597         (func_usage): Update.
23598         (sed_extract_cache_prog): Renamed from ...
23599         (sed_extract_prog): ... this; revert to old extraction script.
23600         (func_get_description, func_get_status)
23601         (func_get_notice, func_get_applicability, func_get_filelist)
23602         (func_get_dependencies, func_get_autoconf_early_snippet)
23603         (func_get_autoconf_snippet, func_get_automake_snippet)
23604         (func_get_include_directive, func_get_link_directive)
23605         (func_get_license, func_get_maintainer): If $do_cache is false,
23606         use old, non-caching extraction scripts.
23607         Suggestion by Bruno Haible.
23608
23609 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23610
23611         gnulib-tool: cache module metainformation.
23612         * gnulib-tool (sed_extract_prog): Match newline before each
23613         header, and rewrite header to a shell variable suffix.
23614         (func_cache_var, func_cache_lookup_module): New functions,
23615         to turn a module name into a cache variable prefix, and to
23616         look up and cache module metainformation.
23617         (func_get_description, func_get_status)
23618         (func_get_notice, func_get_applicability, func_get_filelist)
23619         (func_get_dependencies, func_get_autoconf_early_snippet)
23620         (func_get_autoconf_snippet, func_get_automake_snippet)
23621         (func_get_include_directive, func_get_link_directive)
23622         (func_get_license, func_get_maintainer): Use
23623         func_cache_lookup_module.
23624
23625 2010-02-07  Bruno Haible  <bruno@clisp.org>
23626
23627         fnctl: Fix missing dependency.
23628         * modules/fcntl (Depends-on): Add getdtablesize.
23629         Reported by John W. Eaton <jwe@gnu.org>.
23630
23631 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23632
23633         Argp: fix recognition of short alias options.
23634
23635         * lib/argp-parse.c (convert_options): Fix improper use of
23636         `|' between character values.
23637         * tests/test-argp.c (group1_option): New alias option
23638         --read (-r).
23639         (group1_parser): Special handling for 'r'.
23640         (test15): New test case.
23641         (test_fun): Add test15.
23642         * tests/test-argp-2.sh: Update expected --help and --usage
23643         outputs.
23644
23645 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23646
23647         * tests/test-argp.c: Fix indentation.
23648
23649 2010-02-04  Eric Blake  <ebb9@byu.net>
23650
23651         gettimeofday: expose type of second argument
23652         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23653         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23654         * tests/test-gettimeofday.c: Use it to silence warning.
23655         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23656         the issue.
23657
23658 2010-02-03  Jim Meyering  <meyering@redhat.com>
23659
23660         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23661         * lib/regcomp.c (TYPE_SIGNED): Define.
23662         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23663
23664         regcomp.c: avoid a new -Wshadow warning
23665         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23666
23667 2010-02-01  Jim Meyering  <meyering@redhat.com>
23668
23669         removing useless parentheses in cpp #define directives
23670         For motivation, see commit c0221df4, "define STREQ(a,b)
23671         consistently, removing useless parentheses"
23672         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23673         * lib/mountlist.c (MNT_IGNORE): Likewise.
23674         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23675
23676 2010-02-01  Eric Blake  <ebb9@byu.net>
23677
23678         sys_time: use link-warning
23679         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23680         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23681         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23682         * modules/sys_time (Depends-on): Add warn-on-use.
23683         (Makefile.am): Always build replacement.
23684         (configure.ac): Update substitutions.
23685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23686         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23687         bother with SYS_TIME_H.
23688         * modules/gettimeofday (configure.ac): Declare indicator.
23689         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23690         in use.
23691
23692         closein-tests: silence compiler warning
23693         * tests/test-closein.c (main): Ignore fread result.
23694         * modules/closein-tests (Depends-on): Add ignore-value.
23695
23696         tests: silence warning about system return
23697         * tests/test-areadlink-with-size.c (main): Ignore system result.
23698         * tests/test-areadlink.c (main): Likewise.
23699         * tests/test-areadlinkat-with-size.c (main): Likewise.
23700         * tests/test-areadlinkat.c (main): Likewise.
23701         * tests/test-canonicalize-lgpl.c (main): Likewise.
23702         * tests/test-canonicalize.c (main): Likewise.
23703         * tests/test-chown.c (main): Likewise.
23704         * tests/test-fchownat.c (main): Likewise.
23705         * tests/test-fdutimensat.c (main): Likewise.
23706         * tests/test-fstatat.c (main): Likewise.
23707         * tests/test-futimens.c (main): Likewise.
23708         * tests/test-lchown.c (main): Likewise.
23709         * tests/test-link.c (main): Likewise.
23710         * tests/test-linkat.c (main): Likewise.
23711         * tests/test-lstat.c (main): Likewise.
23712         * tests/test-mkdir.c (main): Likewise.
23713         * tests/test-mkdirat.c (main): Likewise.
23714         * tests/test-mkfifo.c (main): Likewise.
23715         * tests/test-mkfifoat.c (main): Likewise.
23716         * tests/test-mknod.c (main): Likewise.
23717         * tests/test-readlink.c (main): Likewise.
23718         * tests/test-remove.c (main): Likewise.
23719         * tests/test-rename.c (main): Likewise.
23720         * tests/test-renameat.c (main): Likewise.
23721         * tests/test-rmdir.c (main): Likewise.
23722         * tests/test-symlink.c (main): Likewise.
23723         * tests/test-symlinkat.c (main): Likewise.
23724         * tests/test-unlink.c (main): Likewise.
23725         * tests/test-unlinkat.c (main): Likewise.
23726         * tests/test-utimens.c (main): Likewise.
23727         * tests/test-utimensat.c (main): Likewise.
23728         * modules/areadlink-tests (Depends-on): Add ignore-value.
23729         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23730         * modules/areadlinkat-tests (Depends-on): Likewise.
23731         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23732         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23733         * modules/canonicalize-tests (Depends-on): Likewise.
23734         * modules/chown-tests (Depends-on): Likewise.
23735         * modules/fdutimensat-tests (Depends-on): Likewise.
23736         * modules/futimens-tests (Depends-on): Likewise.
23737         * modules/lchown-tests (Depends-on): Likewise.
23738         * modules/link-tests (Depends-on): Likewise.
23739         * modules/linkat-tests (Depends-on): Likewise.
23740         * modules/lstat-tests (Depends-on): Likewise.
23741         * modules/mkdir-tests (Depends-on): Likewise.
23742         * modules/mkfifo-tests (Depends-on): Likewise.
23743         * modules/mkfifoat-tests (Depends-on): Likewise.
23744         * modules/mknod-tests (Depends-on): Likewise.
23745         * modules/openat-tests (Depends-on): Likewise.
23746         * modules/readlink-tests (Depends-on): Likewise.
23747         * modules/remove-tests (Depends-on): Likewise.
23748         * modules/rename-tests (Depends-on): Likewise.
23749         * modules/renameat-tests (Depends-on): Likewise.
23750         * modules/rmdir-tests (Depends-on): Likewise.
23751         * modules/symlink-tests (Depends-on): Likewise.
23752         * modules/symlinkat-tests (Depends-on): Likewise.
23753         * modules/unlink-tests (Depends-on): Likewise.
23754         * modules/utimens-tests (Depends-on): Likewise.
23755         * modules/utimensat-tests (Depends-on): Likewise.
23756
23757 2010-01-31  Bruno Haible  <bruno@clisp.org>
23758
23759         Perform the same test for many <math.h> functions.
23760         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23761         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23762         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23763         of gl_MATHFUNC.
23764         * modules/acos (configure.ac): Likewise.
23765         * modules/asin (configure.ac): Likewise.
23766         * modules/atan (configure.ac): Likewise.
23767         * modules/atan2 (configure.ac): Likewise.
23768         * modules/cbrt (configure.ac): Likewise.
23769         * modules/copysign (configure.ac): Likewise.
23770         * modules/cos (configure.ac): Likewise.
23771         * modules/cosh (configure.ac): Likewise.
23772         * modules/erf (configure.ac): Likewise.
23773         * modules/erfc (configure.ac): Likewise.
23774         * modules/exp (configure.ac): Likewise.
23775         * modules/fmod (configure.ac): Likewise.
23776         * modules/hypot (configure.ac): Likewise.
23777         * modules/j0 (configure.ac): Likewise.
23778         * modules/j1 (configure.ac): Likewise.
23779         * modules/jn (configure.ac): Likewise.
23780         * modules/lgamma (configure.ac): Likewise.
23781         * modules/log (configure.ac): Likewise.
23782         * modules/log10 (configure.ac): Likewise.
23783         * modules/log1p (configure.ac): Likewise.
23784         * modules/pow (configure.ac): Likewise.
23785         * modules/remainder (configure.ac): Likewise.
23786         * modules/sin (configure.ac): Likewise.
23787         * modules/sinh (configure.ac): Likewise.
23788         * modules/tan (configure.ac): Likewise.
23789         * modules/tanh (configure.ac): Likewise.
23790         * modules/y0 (configure.ac): Likewise.
23791         * modules/y1 (configure.ac): Likewise.
23792         * modules/yn (configure.ac): Likewise.
23793         Suggested by Paolo Bonzini.
23794
23795 2010-01-31  Bruno Haible  <bruno@clisp.org>
23796
23797         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23798
23799 2010-01-31  Bruno Haible  <bruno@clisp.org>
23800
23801         Work around getdelim() bug on FreeBSD 8.0.
23802         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23803         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23804         not work.
23805         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23806         is 1.
23807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23808         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23809         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23810         a non-zero size.
23811         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23812
23813 2010-01-31  Bruno Haible  <bruno@clisp.org>
23814
23815         Work around getline() bug on FreeBSD 8.0.
23816         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23817         and a non-zero size.
23818         * tests/test-getline.c (main): Likewise.
23819         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23820         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23821
23822 2010-01-28  Eric Blake  <ebb9@byu.net>
23823
23824         regex: fix build failure
23825         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23826         platforms.
23827
23828 2010-01-28  Jim Meyering  <meyering@redhat.com>
23829
23830         regex: do not ignore memory allocation failure
23831         * lib/regex_internal.c (create_cd_newstate): Detect
23832         re_node_set_init_copy failure.   Extracted from glibc commit
23833         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23834
23835         regex: sync more white-space changes from libc
23836         * lib/regex_internal.c: White-space only changes.
23837         * lib/regexec.c: Likewise.
23838
23839         regex: add many uses of __attribute_warn_unused_result__
23840         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23841         * lib/regexec.c: Likewise.
23842         Extracted from a messy glibc commit.
23843
23844         regcomp.c: spelling and merge-artifact from glibc
23845         * lib/regcomp.c: Merge remainder of glibc's
23846         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23847
23848         regcomp.c: sync white-space changes from glibc
23849         * lib/regcomp.c: Merge to accommodate white space
23850         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23851
23852         regcomp.c: do not ignore internal return values
23853         * lib/regcomp.c: Do not ignore internal return values.
23854         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23855         but without its white-space changes and spelling fixes.
23856
23857         regex_internal.h: define __attribute_warn_unused_result__
23858         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23859
23860         maint: add a syntax-check rule to check for vulnerable Makefile.in
23861         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23862
23863 2010-01-27  Jim Meyering  <meyering@redhat.com>
23864
23865         ncftpput-ftp: clean up spaces
23866         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23867         Remove trailing blanks.
23868
23869 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23870
23871         * build-aux/git-version-gen: Fix copyright statement.
23872         * build-aux/gnupload: Likewise.
23873         * tests/test-arcfour.c: Likewise.
23874         * tests/test-arctwo.c: Likewise.
23875         * tests/test-count-one-bits.c: Likewise.
23876         * tests/test-crc.c: Likewise.
23877         * tests/test-des.c: Likewise.
23878         * tests/test-gc-arcfour.c: Likewise.
23879         * tests/test-gc-arctwo.c: Likewise.
23880         * tests/test-gc-des.c: Likewise.
23881         * tests/test-gc-hmac-md5.c: Likewise.
23882         * tests/test-gc-hmac-sha1.c: Likewise.
23883         * tests/test-gc-md2.c: Likewise.
23884         * tests/test-gc-md4.c: Likewise.
23885         * tests/test-gc-md5.c: Likewise.
23886         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23887         * tests/test-gc-rijndael.c: Likewise.
23888         * tests/test-gc-sha1.c: Likewise.
23889         * tests/test-gc.c: Likewise.
23890         * tests/test-gethostname.c: Likewise.
23891         * tests/test-gettimeofday.c: Likewise.
23892         * tests/test-hash.c: Likewise.
23893         * tests/test-hmac-md5.c: Likewise.
23894         * tests/test-hmac-sha1.c: Likewise.
23895         * tests/test-md2.c: Likewise.
23896         * tests/test-md4.c: Likewise.
23897         * tests/test-md5.c: Likewise.
23898         * tests/test-memchr.c: Likewise.
23899         * tests/test-memchr2.c: Likewise.
23900         * tests/test-memcmp.c: Likewise.
23901         * tests/test-memmem.c: Likewise.
23902         * tests/test-memrchr.c: Likewise.
23903         * tests/test-rawmemchr.c: Likewise.
23904         * tests/test-read-file.c: Likewise.
23905         * tests/test-rijndael.c: Likewise.
23906         * tests/test-sockets.c: Likewise.
23907         * tests/test-strchrnul.c: Likewise.
23908         * tests/test-strstr.c: Likewise.
23909         * tests/test-strtod.c: Likewise.
23910         * build-aux/ncftpput-ftp: Likewise.
23911
23912 2010-01-26  Eric Blake  <ebb9@byu.net>
23913
23914         ignore-value: update recommended header name
23915         * modules/ignore-value (Include): Only use <> for headers that
23916         exist in glibc.
23917
23918 2010-01-26  Jim Meyering  <meyering@redhat.com>
23919
23920         test-userspec.c: avoid compiler warnings
23921         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23922         and "initialization discards qualifiers..." warnings.
23923         Put the first "uid" in its own scope, and make char* members "const".
23924
23925 2010-01-25  Bruno Haible  <bruno@clisp.org>
23926
23927         gnulib-tool: Make warning diagnostics consistent.
23928         * gnulib-tool (func_warning): New function.
23929         Use it everywhere where gnulib-tool produces output to stderr and it is
23930         not a fatal error.
23931
23932 2010-01-25  Bruno Haible  <bruno@clisp.org>
23933
23934         Fix test dependencies.
23935         * modules/xstrtol-tests (Depends-on): Add inttypes.
23936         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23937
23938 2010-01-25 Pádraig Brady <P@draigBrady.com>
23939
23940         syntax-check: detect incorrect boolean macro values in config.h
23941         * modules/maintainer-makefile (configure.ac): Parameterize the location
23942         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23943         The logic is from Eric Blake and the location indicated by Jim Meyering.
23944         Note the more natural CONFIG_HEADER name is prohibited by automake
23945         for backwards compatibility reasons.
23946         * top/maint.mk (sc_Wundef_boolean): New rule.
23947
23948 2010-01-25  Jim Meyering  <meyering@redhat.com>
23949
23950         bootstrap: detect MacOS 10.6's shasum, too
23951         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23952         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23953
23954 2010-01-23  Jim Meyering  <meyering@redhat.com>
23955
23956         xstrtoll: new module
23957         * modules/xstrtoll: New file.
23958         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23959         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23960         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23961         ./configure fails if you use this module and lack "long long".
23962         * modules/xstrtoll-tests: New module.
23963         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23964         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23965         new init.sh-based test framework.
23966
23967 2010-01-24  Bruno Haible  <bruno@clisp.org>
23968
23969         Tests for module 'yn'.
23970         * modules/yn-tests: New file.
23971         * tests/test-yn.c: New file.
23972
23973         Tests for module 'y1'.
23974         * modules/y1-tests: New file.
23975         * tests/test-y1.c: New file.
23976
23977         Tests for module 'y0'.
23978         * modules/y0-tests: New file.
23979         * tests/test-y0.c: New file.
23980
23981         Tests for module 'tanh'.
23982         * modules/tanh-tests: New file.
23983         * tests/test-tanh.c: New file.
23984
23985         Tests for module 'tan'.
23986         * modules/tan-tests: New file.
23987         * tests/test-tan.c: New file.
23988
23989         Tests for module 'sqrt'.
23990         * modules/sqrt-tests: New file.
23991         * tests/test-sqrt.c: New file.
23992
23993         Tests for module 'sinh'.
23994         * modules/sinh-tests: New file.
23995         * tests/test-sinh.c: New file.
23996
23997         Tests for module 'sin'.
23998         * modules/sin-tests: New file.
23999         * tests/test-sin.c: New file.
24000
24001         Tests for module 'rint'.
24002         * modules/rint-tests: New file.
24003         * tests/test-rint.c: New file.
24004
24005         Tests for module 'remainder'.
24006         * modules/remainder-tests: New file.
24007         * tests/test-remainder.c: New file.
24008
24009         Tests for module 'pow'.
24010         * modules/pow-tests: New file.
24011         * tests/test-pow.c: New file.
24012
24013         Tests for module 'nextafter'.
24014         * modules/nextafter-tests: New file.
24015         * tests/test-nextafter.c: New file.
24016
24017         Tests for module 'modf'.
24018         * modules/modf-tests: New file.
24019         * tests/test-modf.c: New file.
24020
24021         Tests for module 'logb'.
24022         * modules/logb-tests: New file.
24023         * tests/test-logb.c: New file.
24024
24025         Tests for module 'log1p'.
24026         * modules/log1p-tests: New file.
24027         * tests/test-log1p.c: New file.
24028
24029         Tests for module 'log10'.
24030         * modules/log10-tests: New file.
24031         * tests/test-log10.c: New file.
24032
24033         Tests for module 'log'.
24034         * modules/log-tests: New file.
24035         * tests/test-log.c: New file.
24036
24037         Tests for module 'lgamma'.
24038         * modules/lgamma-tests: New file.
24039         * tests/test-lgamma.c: New file.
24040
24041         Tests for module 'ldexp'.
24042         * modules/ldexp-tests: New file.
24043         * tests/test-ldexp.c: New file.
24044
24045         Tests for module 'jn'.
24046         * modules/jn-tests: New file.
24047         * tests/test-jn.c: New file.
24048
24049         Tests for module 'j1'.
24050         * modules/j1-tests: New file.
24051         * tests/test-j1.c: New file.
24052
24053         Tests for module 'j0'.
24054         * modules/j0-tests: New file.
24055         * tests/test-j0.c: New file.
24056
24057         Tests for module 'hypot'.
24058         * modules/hypot-tests: New file.
24059         * tests/test-hypot.c: New file.
24060
24061         Tests for module 'fmod'.
24062         * modules/fmod-tests: New file.
24063         * tests/test-fmod.c: New file.
24064
24065         Tests for module 'fabs'.
24066         * modules/fabs-tests: New file.
24067         * tests/test-fabs.c: New file.
24068
24069         Tests for module 'exp'.
24070         * modules/exp-tests: New file.
24071         * tests/test-exp.c: New file.
24072
24073         Tests for module 'erfc'.
24074         * modules/erfc-tests: New file.
24075         * tests/test-erfc.c: New file.
24076
24077         Tests for module 'erf'.
24078         * modules/erf-tests: New file.
24079         * tests/test-erf.c: New file.
24080
24081         Tests for module 'cosh'.
24082         * modules/cosh-tests: New file.
24083         * tests/test-cosh.c: New file.
24084
24085         Tests for module 'cos'.
24086         * modules/cos-tests: New file.
24087         * tests/test-cos.c: New file.
24088
24089         Tests for module 'copysign'.
24090         * modules/copysign-tests: New file.
24091         * tests/test-copysign.c: New file.
24092
24093         Tests for module 'cbrt'.
24094         * modules/cbrt-tests: New file.
24095         * tests/test-cbrt.c: New file.
24096
24097         Tests for module 'atan2'.
24098         * modules/atan2-tests: New file.
24099         * tests/test-atan2.c: New file.
24100
24101         Tests for module 'atan'.
24102         * modules/atan-tests: New file.
24103         * tests/test-atan.c: New file.
24104
24105         Tests for module 'asin'.
24106         * modules/asin-tests: New file.
24107         * tests/test-asin.c: New file.
24108
24109         Tests for module 'acos'.
24110         * modules/acos-tests: New file.
24111         * tests/test-acos.c: New file.
24112
24113 2010-01-24  Bruno Haible  <bruno@clisp.org>
24114
24115         Fix tests for common <math.h> functions.
24116         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24117         code snippet that references the function pointer, rather than merely
24118         calling the function. Substitute the FUNC_LIBM variable.
24119         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24120         * modules/acos (configure.ac): Likewise.
24121         * modules/asin (configure.ac): Likewise.
24122         * modules/atan (configure.ac): Likewise.
24123         * modules/atan2 (configure.ac): Likewise.
24124         * modules/cbrt (configure.ac): Likewise.
24125         * modules/copysign (configure.ac): Likewise.
24126         * modules/cos (configure.ac): Likewise.
24127         * modules/cosh (configure.ac): Likewise.
24128         * modules/erf (configure.ac): Likewise.
24129         * modules/erfc (configure.ac): Likewise.
24130         * modules/exp (configure.ac): Likewise.
24131         * modules/fabs (configure.ac): Likewise.
24132         * modules/fmod (configure.ac): Likewise.
24133         * modules/hypot (configure.ac): Likewise.
24134         * modules/j0 (configure.ac): Likewise.
24135         * modules/j1 (configure.ac): Likewise.
24136         * modules/jn (configure.ac): Likewise.
24137         * modules/ldexp (configure.ac): Likewise.
24138         * modules/lgamma (configure.ac): Likewise.
24139         * modules/log (configure.ac): Likewise.
24140         * modules/log10 (configure.ac): Likewise.
24141         * modules/log1p (configure.ac): Likewise.
24142         * modules/logb (configure.ac): Likewise.
24143         * modules/modf (configure.ac): Likewise.
24144         * modules/nextafter (configure.ac): Likewise.
24145         * modules/pow (configure.ac): Likewise.
24146         * modules/remainder (configure.ac): Likewise.
24147         * modules/rint (configure.ac): Likewise.
24148         * modules/sin (configure.ac): Likewise.
24149         * modules/sinh (configure.ac): Likewise.
24150         * modules/tan (configure.ac): Likewise.
24151         * modules/tanh (configure.ac): Likewise.
24152         * modules/y0 (configure.ac): Likewise.
24153         * modules/y1 (configure.ac): Likewise.
24154         * modules/yn (configure.ac): Likewise.
24155
24156 2010-01-24  Bruno Haible  <bruno@clisp.org>
24157
24158         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24159         * tests/test-acosl.c (x): New variable.
24160         (main): Store argument in x and fetch it from x.
24161         * tests/test-asinl.c (x): New variable.
24162         (main): Store argument in x and fetch it from x.
24163         * tests/test-atanl.c (x): New variable.
24164         (main): Store argument in x and fetch it from x.
24165         * tests/test-cosl.c (x): New variable.
24166         (main): Store argument in x and fetch it from x.
24167         * tests/test-expl.c (x): New variable.
24168         (main): Store argument in x and fetch it from x.
24169         * tests/test-logl.c (x): New variable.
24170         (main): Store argument in x and fetch it from x.
24171         * tests/test-sinl.c (x): New variable.
24172         (main): Store argument in x and fetch it from x.
24173         * tests/test-sqrtl.c (x): New variable.
24174         (main): Store argument in x and fetch it from x.
24175         * tests/test-tanl.c (x): New variable.
24176         (main): Store argument in x and fetch it from x.
24177
24178 2010-01-24  Bruno Haible  <bruno@clisp.org>
24179
24180         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24181         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24182         assignments to the initial TESTS_ENVIRONMENT.
24183         * doc/gnulib.texi (Unit test modules): Document it.
24184         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24185         TESTS_ENVIRONMENT.
24186         * modules/btowc-tests (Makefile.am): Likewise.
24187         * modules/c-stack-tests (Makefile.am): Likewise.
24188         * modules/c-strcase-tests (Makefile.am): Likewise.
24189         * modules/copy-file-tests (Makefile.am): Likewise.
24190         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24191         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24192         * modules/mbrtowc-tests (Makefile.am): Likewise.
24193         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24194         * modules/mbscasestr-tests (Makefile.am): Likewise.
24195         * modules/mbschr-tests (Makefile.am): Likewise.
24196         * modules/mbscspn-tests (Makefile.am): Likewise.
24197         * modules/mbsinit-tests (Makefile.am): Likewise.
24198         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24199         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24200         * modules/mbspbrk-tests (Makefile.am): Likewise.
24201         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24202         * modules/mbsrchr-tests (Makefile.am): Likewise.
24203         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24204         * modules/mbsspn-tests (Makefile.am): Likewise.
24205         * modules/mbsstr-tests (Makefile.am): Likewise.
24206         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24207         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24208         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24209         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24210         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24211         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24212         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24213         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24214         * modules/wcrtomb-tests (Makefile.am): Likewise.
24215         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24216         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24217         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24218         assignments from TESTS_ENVIRONMENT.
24219         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24220         augmentation.
24221         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24222         * modules/atexit-tests (Makefile.am): Likewise.
24223         * modules/binary-io-tests (Makefile.am): Likewise.
24224         * modules/closein-tests (Makefile.am): Likewise.
24225         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24226         * modules/exclude-tests (Makefile.am): Likewise.
24227         * modules/fflush-tests (Makefile.am): Likewise.
24228         * modules/fpending-tests (Makefile.am): Likewise.
24229         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24230         * modules/freadahead-tests (Makefile.am): Likewise.
24231         * modules/freadptr-tests (Makefile.am): Likewise.
24232         * modules/freadseek-tests (Makefile.am): Likewise.
24233         * modules/fseek-tests (Makefile.am): Likewise.
24234         * modules/fseeko-tests (Makefile.am): Likewise.
24235         * modules/ftell-tests (Makefile.am): Likewise.
24236         * modules/ftello-tests (Makefile.am): Likewise.
24237         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24238         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24239         * modules/lseek-tests (Makefile.am): Likewise.
24240         * modules/parse-duration-tests (Makefile.am): Likewise.
24241         * modules/perror-tests (Makefile.am): Likewise.
24242         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24243         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24244         * modules/pipe-tests (Makefile.am): Likewise.
24245         * modules/pread-tests (Makefile.am): Likewise.
24246         * modules/printf-posix-tests (Makefile.am): Likewise.
24247         * modules/select-tests (Makefile.am): Likewise.
24248         * modules/sigpipe-tests (Makefile.am): Likewise.
24249         * modules/tsearch-tests (Makefile.am): Likewise.
24250         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24251         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24252         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24253         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24254         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24255         * modules/version-etc-tests (Makefile.am): Likewise.
24256         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24257         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24258         * modules/xalloc-die-tests (Makefile.am): Likewise.
24259         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24260         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24261         * modules/xstrtol-tests (Makefile.am): Likewise.
24262         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24263         * modules/yesno-tests (Makefile.am): Likewise.
24264         Suggested by Jim Meyering.
24265
24266 2010-01-24  Bruno Haible  <bruno@clisp.org>
24267
24268         More documentation.
24269         * doc/gnulib.texi (Writing modules): New chapter.
24270         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24271         the new chapter.
24272
24273 2010-01-24  Jim Meyering  <meyering@redhat.com>
24274
24275         maint.mk: do not prepend "./" after filtering
24276         * top/maint.mk (_prepend_srcdir_prefix): New variable
24277         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24278         "./" when $(srcdir) is ".".
24279
24280         define STREQ(a,b) consistently, removing useless parentheses
24281         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24282         since the only risk is that "a" or "b" contains an unparenthesized
24283         comma, but if either did that, STREQ would have 3 or more arguments.
24284         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24285         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24286         * lib/hash-triple.c (STREQ): Likewise.
24287         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24288         * lib/getugroups.c (STREQ): Likewise.
24289
24290 2010-01-23  Jim Meyering  <meyering@redhat.com>
24291
24292         maint.mk: fix syntax-check in a non-srcdir build directory
24293         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24294         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24295
24296 2010-01-22  Jim Meyering  <meyering@redhat.com>
24297
24298         userspec: add unit tests
24299         * tests/test-userspec.c: New file.
24300         * modules/userspec-tests: Likewise.
24301
24302 2010-01-21  Jim Meyering  <meyering@redhat.com>
24303
24304         maint.mk: handle source file names containing "." robustly
24305         * top/maint.mk (_dot_escaped_srcdir): Define.
24306         (VC_LIST): Use it in LHS of sed substitution.
24307
24308 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24309
24310         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24311         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24312         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24313         from a non-srcdir build.
24314
24315 2010-01-20  Eric Blake  <ebb9@byu.net>
24316
24317         warn-on-use: use instead of link-warning
24318         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24319         * modules/unistd (Depends-on, Makefile.am): Likewise.
24320         * modules/arpa_inet (Depends-on): Replace link-warning with
24321         warn-on-use.
24322         (Makefile.am): Update rules accordingly.
24323         * modules/ctype (Depends-on, Makefile.am): Likewise.
24324         * modules/dirent (Depends-on, Makefile.am): Likewise.
24325         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24326         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24327         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24328         * modules/locale (Depends-on, Makefile.am): Likewise.
24329         * modules/math (Depends-on, Makefile.am): Likewise.
24330         * modules/search (Depends-on, Makefile.am): Likewise.
24331         * modules/signal (Depends-on, Makefile.am): Likewise.
24332         * modules/spawn (Depends-on, Makefile.am): Likewise.
24333         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24334         * modules/string (Depends-on, Makefile.am): Likewise.
24335         * modules/strings (Depends-on, Makefile.am): Likewise.
24336         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24337         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24338         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24339         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24340         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24341         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24342         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24343         * modules/wchar (Depends-on, Makefile.am): Likewise.
24344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24345         should be poisoned.
24346         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24347         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24348         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24349         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24350         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24351         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24352         * m4/math_h.m4 (gl_MATH_H): Likewise.
24353         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24354         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24355         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24356         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24357         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24358         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24359         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24360         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24361         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24363         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24365         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24366         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24367         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24368         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24369         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24370         GL_LINK_WARNING.
24371         * lib/ctype.in.h: Likewise.
24372         * lib/dirent.in.h: Likewise.
24373         * lib/fcntl.in.h: Likewise.
24374         * lib/inttypes.in.h: Likewise.
24375         * lib/langinfo.in.h: Likewise.
24376         * lib/locale.in.h: Likewise.
24377         * lib/math.in.h: Likewise.
24378         * lib/search.in.h: Likewise.
24379         * lib/signal.in.h: Likewise.
24380         * lib/spawn.in.h: Likewise.
24381         * lib/stdio.in.h: Likewise.
24382         * lib/stdlib.in.h: Likewise.
24383         * lib/string.in.h: Likewise.
24384         * lib/strings.in.h: Likewise.
24385         * lib/sys_file.in.h: Likewise.
24386         * lib/sys_ioctl.in.h: Likewise.
24387         * lib/sys_select.in.h: Likewise.
24388         * lib/sys_socket.in.h: Likewise.
24389         * lib/sys_stat.in.h: Likewise.
24390         * lib/sys_times.in.h: Likewise.
24391         * lib/sys_utsname.in.h: Likewise.
24392         * lib/unistd.in.h: Likewise.
24393         * lib/wchar.in.h: Likewise.
24394
24395 2010-01-20  Bruno Haible  <bruno@clisp.org>
24396
24397         Avoid duplicate -lm.
24398         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24399         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24400         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24401         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24402         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24403         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24404         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24405         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24406         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24407         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24408         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24409         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24410         Reported by Paolo Bonzini.
24411
24412 2010-01-19  Bruno Haible  <bruno@clisp.org>
24413
24414         langinfo, nl_langinfo: Relicense under LGPLv2+.
24415         * modules/langinfo (License): Change to LGPLv2+.
24416         * modules/nl_langinfo (License): Likewise.
24417         Patch by David Lutterkort <lutter@redhat.com>.
24418
24419 2010-01-19  Bruno Haible  <bruno@clisp.org>
24420
24421         Avoid compilation error with cc on OSF/1 5.1.
24422         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24423         statement, not before.
24424         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24425
24426 2010-01-18  Bruno Haible  <bruno@clisp.org>
24427
24428         Avoid a link error due to the __printf__ symbol.
24429         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24430         and 2.6.x.
24431         (__format__, __printf__): Remove definitions.
24432         * lib/argp-fmtstream.h: Likewise.
24433         * lib/argp.h: Likewise.
24434         * lib/error.h: Likewise.
24435         * lib/vasnprintf.h: Likewise.
24436         * lib/xprintf.h: Likewise.
24437         * lib/xvasprintf.h: Likewise.
24438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24439
24440 2010-01-18  Bruno Haible  <bruno@clisp.org>
24441
24442         Tests for module 'tanl'.
24443         * modules/tanl-tests: New file.
24444         * tests/test-tanl.c: New file.
24445
24446         Tests for module 'sqrtl'.
24447         * modules/sqrtl-tests: New file.
24448         * tests/test-sqrtl.c: New file.
24449
24450         Tests for module 'sinl'.
24451         * modules/sinl-tests: New file.
24452         * tests/test-sinl.c: New file.
24453
24454         Tests for module 'logl'.
24455         * modules/logl-tests: New file.
24456         * tests/test-logl.c: New file.
24457
24458         Tests for module 'expl'.
24459         * modules/expl-tests: New file.
24460         * tests/test-expl.c: New file.
24461
24462         Tests for module 'cosl'.
24463         * modules/cosl-tests: New file.
24464         * tests/test-cosl.c: New file.
24465
24466         Tests for module 'atanl'.
24467         * modules/atanl-tests: New file.
24468         * tests/test-atanl.c: New file.
24469
24470         Tests for module 'asinl'.
24471         * modules/asinl-tests: New file.
24472         * tests/test-asinl.c: New file.
24473
24474         Tests for module 'acosl'.
24475         * modules/acosl-tests: New file.
24476         * tests/test-acosl.c: New file.
24477
24478         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24479         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24480         tanl): Use the standard gnulib idiom.
24481         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24482         * lib/sinl.c: Likewise.
24483         * lib/tanl.c: Don't include trigl.c.
24484         (kernel_tanl): Make static.
24485         * lib/sincosl.c: Include trigl.h first.
24486         * lib/trigl.c: Likewise.
24487         * m4/acosl.m4: New file.
24488         * m4/asinl.m4: New file.
24489         * m4/atanl.m4: New file.
24490         * m4/cosl.m4: New file.
24491         * m4/expl.m4: New file.
24492         * m4/logl.m4: New file.
24493         * m4/sinl.m4: New file.
24494         * m4/sqrtl.m4: New file.
24495         * m4/tanl.m4: New file.
24496         * m4/mathl.m4: Remove file.
24497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24498         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24499         Don't initialize GNULIB_MATHL.
24500         * modules/acosl: New file.
24501         * modules/asinl: New file.
24502         * modules/atanl: New file.
24503         * modules/cosl: New file.
24504         * modules/expl: New file.
24505         * modules/logl: New file.
24506         * modules/sinl: New file.
24507         * modules/sqrtl: New file.
24508         * modules/tanl: New file.
24509         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24510         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24511         substitute GNULIB_MATHL.
24512         * modules/mathl: Rewritten.
24513         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24514         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24515         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24516         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24517         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24518         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24519         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24520         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24521         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24522
24523 2010-01-18  Bruno Haible  <bruno@clisp.org>
24524
24525         sqrt: Make gl_FUNC_SQRT requirable.
24526         * m4/sqrt.m4: New file.
24527         * modules/sqrt (Files): Add it.
24528         (configure.ac): Invoke gl_FUNC_SQRT.
24529
24530 2010-01-18  Bruno Haible  <bruno@clisp.org>
24531
24532         New modules for common <math.h> functions.
24533         * m4/mathfunc.m4: New file.
24534         * modules/acos: New file.
24535         * modules/asin: New file.
24536         * modules/atan: New file.
24537         * modules/atan2: New file.
24538         * modules/cbrt: New file.
24539         * modules/copysign: New file.
24540         * modules/cos: New file.
24541         * modules/cosh: New file.
24542         * modules/erf: New file.
24543         * modules/erfc: New file.
24544         * modules/exp: New file.
24545         * modules/fabs: New file.
24546         * modules/fmod: New file.
24547         * modules/hypot: New file.
24548         * modules/j0: New file.
24549         * modules/j1: New file.
24550         * modules/jn: New file.
24551         * modules/ldexp: New file.
24552         * modules/lgamma: New file.
24553         * modules/log: New file.
24554         * modules/log10: New file.
24555         * modules/log1p: New file.
24556         * modules/logb: New file.
24557         * modules/modf: New file.
24558         * modules/nextafter: New file.
24559         * modules/pow: New file.
24560         * modules/remainder: New file.
24561         * modules/rint: New file.
24562         * modules/sin: New file.
24563         * modules/sinh: New file.
24564         * modules/sqrt: New file.
24565         * modules/tan: New file.
24566         * modules/tanh: New file.
24567         * modules/y0: New file.
24568         * modules/y1: New file.
24569         * modules/yn: New file.
24570         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24571         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24572         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24573         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24574         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24575         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24576         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24577         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24578         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24579         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24580         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24581         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24582         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24583         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24584         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24585         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24586         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24587         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24588         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24589         * doc/posix-functions/log.texi: Mention the 'log' module.
24590         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24591         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24592         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24593         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24594         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24595         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24596         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24597         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24598         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24599         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24600         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24601         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24602         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24603         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24604         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24605         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24606
24607 2010-01-18  Jim Meyering  <meyering@redhat.com>
24608
24609         ignore-value: relax license to LGPLv2+
24610         * modules/ignore-value (License): Relax to LGPLv2+.
24611
24612         getdate: don't leak when TZ contains two or more '"'s
24613         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24614         double quote in TZ after the first one.
24615
24616         readtokens: do not leak internal token_lengths buffer
24617         * lib/readtokens.c (readtokens): Free the local, lengths,
24618         when the supplied "token_lengths" parameter is NULL.
24619
24620 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24621
24622         Fix a couple of missing LIBTHREAD link failures on AIX.
24623         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24624         $(LIBTHREAD).
24625         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24626
24627         Link test-poll against INET_PTON_LIB.
24628         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24629         for inet_pton on Solaris 10.
24630
24631 2010-01-17  Bruno Haible  <bruno@clisp.org>
24632
24633         unistdio/*-sprintf: Fix typo in module description.
24634         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24635         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24636         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24637         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24638         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24639         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24640         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24642
24643 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24644
24645         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24646         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24647         variables in shell case patterns, for AIX and HP-UX ksh.
24648
24649         Split large sed scripts, for HP-UX sed.
24650         * modules/stdio: Split sed scripts around 50 sed commands,
24651         to avoid HP-UX limit of 99 commands, in the near future.
24652         * modules/string: Likewise.
24653         * modules/unistd: Likewise.
24654
24655         gnulib-tool: avoid writing in the current directory.
24656         * gnulib-tool (func_emit_lib_Makefile_am)
24657         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24658         not in the current directory, so concurrent gnulib-tool
24659         instances do not interfere.
24660
24661 2010-01-16  Jim Meyering  <meyering@redhat.com>
24662
24663         doc: update users.txt
24664         * users.txt: Add grep.
24665         (diffutils, gzip): Update URLs.
24666
24667 2010-01-12  Bruno Haible  <bruno@clisp.org>
24668
24669         posix_spawn: Avoid test failure on Cygwin.
24670         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24671         characters.
24672         Reported by Simon Josefsson.
24673
24674 2010-01-12  Bruno Haible  <bruno@clisp.org>
24675
24676         * tests/test-cond.c (main): When skipping the test, show the reason.
24677
24678 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24679
24680         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24681
24682 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24683
24684         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24685         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24686
24687 2010-01-12  Eric Blake  <ebb9@byu.net>
24688
24689         build: guarantee AS_VAR_IF
24690         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24691         (gl_AS_VAR_IF): Move...
24692         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24693         Reported by Simon Josefsson.
24694
24695 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24696
24697         * lib/stdio.in.h: Fix typo.
24698
24699 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24700
24701         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24702         libgpg-error.
24703
24704 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24705
24706         * tests/test-xalloc-die.sh: Use $EXEEXT.
24707
24708 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24709             Bruno Haible  <bruno@clisp.org>
24710
24711         getlogin, getlogin_r: Avoid test failure.
24712         * tests/test-getlogin.c: Include <stdio.h>.
24713         (main): Skip the test when the function fails because stdin is not a
24714         tty.
24715         * tests/test-getlogin_r.c: Include <stdio.h>.
24716         (main): Skip the test when the function fails because stdin is not a
24717         tty.
24718
24719 2010-01-11  Eric Blake  <ebb9@byu.net>
24720
24721         tests: avoid more large file warnings
24722         * tests/test-fflush.c: Avoid warning about ftell use.
24723         * tests/test-fseek.c: Avoid warning about fseek use.
24724
24725 2010-01-10  Bruno Haible  <bruno@clisp.org>
24726
24727         nproc: Work better on Linux when /proc and /sys are not mounted.
24728         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24729         as lower bound when, on glibc/Linux systems,
24730         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24731         Suggested by Pádraig Brady <P@draigbrady.com>.
24732         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24733
24734         nproc: Refactor.
24735         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24736         extracted from num_processors.
24737         (num_processors): Call it.
24738
24739 2010-01-11  Jim Meyering  <meyering@redhat.com>
24740
24741         utimecmp: avoid new warning from upcoming gcc-4.5.0
24742         * lib/utimecmp.c (BILLION): Define using #define rather than an
24743         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24744
24745 2010-01-11  Eric Blake  <ebb9@byu.net>
24746
24747         math: add portability warnings for classification macros
24748         * modules/math (Depends-on): Add warn-on-use.
24749         (Makefile.am): Provide new substitutions.
24750         * m4/math_h.m4 (gl_MATH_H): Require inline.
24751         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24752         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24753         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24754         implement warnings.
24755
24756         unistd: warn on use of environ without module
24757         * modules/unistd (Depends-on): Add warn-on-use.
24758         (Makefile.am): Provide new substitutions.
24759         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24760         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24761
24762         stdio: warn on suspicious uses
24763         * modules/stdio (Depends-on): Add warn-on-use.
24764         (Makefile.am): Provide new substitutions.
24765         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24766         fseeko.
24767         * lib/stdio.in.h (gets): Always warn on use.
24768         (fseek, ftell): Adjust when warnings are issued, and honor
24769         _GL_NO_LARGE_FILES as a way to silence the warning.
24770         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24771         any warning about large file offsets.
24772         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24773         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24774         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24775         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24776         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24777         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24778         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24779         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24780
24781         warn-on-use: new module
24782         * modules/warn-on-use: New file.
24783         * build-aux/warn-on-use.h: Likewise.
24784         * m4/warn-on-use.m4: Likewise.
24785         * MODULES.html.sh (Support for building): Mention it.
24786
24787 2010-01-10  Bruno Haible  <bruno@clisp.org>
24788
24789         Tests for module 'unistr/u32-strdup'.
24790         * modules/unistr/u32-strdup-tests: New file.
24791         * tests/unistr/test-u32-strdup.c: New file.
24792
24793         Tests for module 'unistr/u16-strdup'.
24794         * modules/unistr/u16-strdup-tests: New file.
24795         * tests/unistr/test-u16-strdup.c: New file.
24796
24797         Tests for module 'unistr/u8-strdup'.
24798         * modules/unistr/u8-strdup-tests: New file.
24799         * tests/unistr/test-u8-strdup.c: New file.
24800         * tests/unistr/test-strdup.h: New file.
24801
24802         Tests for module 'unistr/u32-strncmp'.
24803         * modules/unistr/u32-strncmp-tests: New file.
24804         * tests/unistr/test-u32-strncmp.c: New file.
24805
24806         Tests for module 'unistr/u16-strncmp'.
24807         * modules/unistr/u16-strncmp-tests: New file.
24808         * tests/unistr/test-u16-strncmp.c: New file.
24809
24810         Tests for module 'unistr/u8-strncmp'.
24811         * modules/unistr/u8-strncmp-tests: New file.
24812         * tests/unistr/test-u8-strncmp.c: New file.
24813         * tests/unistr/test-strncmp.h: New file.
24814
24815         Tests for module 'unistr/u32-strcoll'.
24816         * modules/unistr/u32-strcoll-tests: New file.
24817         * tests/unistr/test-u32-strcoll.c: New file.
24818
24819         Tests for module 'unistr/u16-strcoll'.
24820         * modules/unistr/u16-strcoll-tests: New file.
24821         * tests/unistr/test-u16-strcoll.c: New file.
24822
24823         Tests for module 'unistr/u8-strcoll'.
24824         * modules/unistr/u8-strcoll-tests: New file.
24825         * tests/unistr/test-u8-strcoll.c: New file.
24826
24827         Tests for module 'unistr/u32-strcmp'.
24828         * modules/unistr/u32-strcmp-tests: New file.
24829         * tests/unistr/test-u32-strcmp.c: New file.
24830         * tests/unistr/test-u32-strcmp.h: New file.
24831
24832         Tests for module 'unistr/u16-strcmp'.
24833         * modules/unistr/u16-strcmp-tests: New file.
24834         * tests/unistr/test-u16-strcmp.c: New file.
24835         * tests/unistr/test-u16-strcmp.h: New file.
24836
24837         Tests for module 'unistr/u8-strcmp'.
24838         * modules/unistr/u8-strcmp-tests: New file.
24839         * tests/unistr/test-u8-strcmp.c: New file.
24840         * tests/unistr/test-u8-strcmp.h: New file.
24841         * tests/unistr/test-strcmp.h: New file.
24842
24843         Tests for module 'unistr/u32-strncat'.
24844         * modules/unistr/u32-strncat-tests: New file.
24845         * tests/unistr/test-u32-strncat.c: New file.
24846
24847         Tests for module 'unistr/u16-strncat'.
24848         * modules/unistr/u16-strncat-tests: New file.
24849         * tests/unistr/test-u16-strncat.c: New file.
24850
24851         Tests for module 'unistr/u8-strncat'.
24852         * modules/unistr/u8-strncat-tests: New file.
24853         * tests/unistr/test-u8-strncat.c: New file.
24854         * tests/unistr/test-strncat.h: New file.
24855
24856         Tests for module 'unistr/u32-strcat'.
24857         * modules/unistr/u32-strcat-tests: New file.
24858         * tests/unistr/test-u32-strcat.c: New file.
24859
24860         Tests for module 'unistr/u16-strcat'.
24861         * modules/unistr/u16-strcat-tests: New file.
24862         * tests/unistr/test-u16-strcat.c: New file.
24863
24864         Tests for module 'unistr/u8-strcat'.
24865         * modules/unistr/u8-strcat-tests: New file.
24866         * tests/unistr/test-u8-strcat.c: New file.
24867         * tests/unistr/test-strcat.h: New file.
24868
24869         Tests for module 'unistr/u32-stpncpy'.
24870         * modules/unistr/u32-stpncpy-tests: New file.
24871         * tests/unistr/test-u32-stpncpy.c: New file.
24872
24873         Tests for module 'unistr/u16-stpncpy'.
24874         * modules/unistr/u16-stpncpy-tests: New file.
24875         * tests/unistr/test-u16-stpncpy.c: New file.
24876
24877         Tests for module 'unistr/u8-stpncpy'.
24878         * modules/unistr/u8-stpncpy-tests: New file.
24879         * tests/unistr/test-u8-stpncpy.c: New file.
24880         * tests/unistr/test-stpncpy.h: New file.
24881
24882         Tests for module 'unistr/u32-strncpy'.
24883         * modules/unistr/u32-strncpy-tests: New file.
24884         * tests/unistr/test-u32-strncpy.c: New file.
24885
24886         Tests for module 'unistr/u16-strncpy'.
24887         * modules/unistr/u16-strncpy-tests: New file.
24888         * tests/unistr/test-u16-strncpy.c: New file.
24889
24890         Tests for module 'unistr/u8-strncpy'.
24891         * modules/unistr/u8-strncpy-tests: New file.
24892         * tests/unistr/test-u8-strncpy.c: New file.
24893         * tests/unistr/test-strncpy.h: New file.
24894
24895         Tests for module 'unistr/u32-stpcpy'.
24896         * modules/unistr/u32-stpcpy-tests: New file.
24897         * tests/unistr/test-u32-stpcpy.c: New file.
24898
24899         Tests for module 'unistr/u16-stpcpy'.
24900         * modules/unistr/u16-stpcpy-tests: New file.
24901         * tests/unistr/test-u16-stpcpy.c: New file.
24902
24903         Tests for module 'unistr/u8-stpcpy'.
24904         * modules/unistr/u8-stpcpy-tests: New file.
24905         * tests/unistr/test-u8-stpcpy.c: New file.
24906         * tests/unistr/test-stpcpy.h: New file.
24907
24908         Tests for module 'unistr/u32-strcpy'.
24909         * modules/unistr/u32-strcpy-tests: New file.
24910         * tests/unistr/test-u32-strcpy.c: New file.
24911
24912         Tests for module 'unistr/u16-strcpy'.
24913         * modules/unistr/u16-strcpy-tests: New file.
24914         * tests/unistr/test-u16-strcpy.c: New file.
24915
24916         Tests for module 'unistr/u8-strcpy'.
24917         * modules/unistr/u8-strcpy-tests: New file.
24918         * tests/unistr/test-u8-strcpy.c: New file.
24919         * tests/unistr/test-strcpy.h: New file.
24920
24921         Tests for module 'unistr/u32-strnlen'.
24922         * modules/unistr/u32-strnlen-tests: New file.
24923         * tests/unistr/test-u32-strnlen.c: New file.
24924
24925         Tests for module 'unistr/u16-strnlen'.
24926         * modules/unistr/u16-strnlen-tests: New file.
24927         * tests/unistr/test-u16-strnlen.c: New file.
24928
24929         Tests for module 'unistr/u8-strnlen'.
24930         * modules/unistr/u8-strnlen-tests: New file.
24931         * tests/unistr/test-u8-strnlen.c: New file.
24932         * tests/unistr/test-strnlen.h: New file.
24933
24934         Tests for module 'unistr/u32-strlen'.
24935         * modules/unistr/u32-strlen-tests: New file.
24936         * tests/unistr/test-u32-strlen.c: New file.
24937
24938         Tests for module 'unistr/u16-strlen'.
24939         * modules/unistr/u16-strlen-tests: New file.
24940         * tests/unistr/test-u16-strlen.c: New file.
24941
24942         Tests for module 'unistr/u8-strlen'.
24943         * modules/unistr/u8-strlen-tests: New file.
24944         * tests/unistr/test-u8-strlen.c: New file.
24945
24946         Tests for module 'unistr/u32-prev'.
24947         * modules/unistr/u32-prev-tests: New file.
24948         * tests/unistr/test-u32-prev.c: New file.
24949
24950         Tests for module 'unistr/u16-prev'.
24951         * modules/unistr/u16-prev-tests: New file.
24952         * tests/unistr/test-u16-prev.c: New file.
24953
24954         Tests for module 'unistr/u8-prev'.
24955         * modules/unistr/u8-prev-tests: New file.
24956         * tests/unistr/test-u8-prev.c: New file.
24957
24958         Tests for module 'unistr/u32-next'.
24959         * modules/unistr/u32-next-tests: New file.
24960         * tests/unistr/test-u32-next.c: New file.
24961
24962         Tests for module 'unistr/u16-next'.
24963         * modules/unistr/u16-next-tests: New file.
24964         * tests/unistr/test-u16-next.c: New file.
24965
24966         Tests for module 'unistr/u8-next'.
24967         * modules/unistr/u8-next-tests: New file.
24968         * tests/unistr/test-u8-next.c: New file.
24969
24970         Tests for module 'unistr/u32-strmbtouc'.
24971         * modules/unistr/u32-strmbtouc-tests: New file.
24972         * tests/unistr/test-u32-strmbtouc.c: New file.
24973
24974         Tests for module 'unistr/u16-strmbtouc'.
24975         * modules/unistr/u16-strmbtouc-tests: New file.
24976         * tests/unistr/test-u16-strmbtouc.c: New file.
24977
24978         Tests for module 'unistr/u8-strmbtouc'.
24979         * modules/unistr/u8-strmbtouc-tests: New file.
24980         * tests/unistr/test-u8-strmbtouc.c: New file.
24981
24982         Tests for module 'unistr/u32-strmblen'.
24983         * modules/unistr/u32-strmblen-tests: New file.
24984         * tests/unistr/test-u32-strmblen.c: New file.
24985
24986         Tests for module 'unistr/u16-strmblen'.
24987         * modules/unistr/u16-strmblen-tests: New file.
24988         * tests/unistr/test-u16-strmblen.c: New file.
24989
24990         Tests for module 'unistr/u8-strmblen'.
24991         * modules/unistr/u8-strmblen-tests: New file.
24992         * tests/unistr/test-u8-strmblen.c: New file.
24993
24994         Tests for module 'unistr/u32-cpy-alloc'.
24995         * modules/unistr/u32-cpy-alloc-tests: New file.
24996         * tests/unistr/test-u32-cpy-alloc.c: New file.
24997
24998         Tests for module 'unistr/u16-cpy-alloc'.
24999         * modules/unistr/u16-cpy-alloc-tests: New file.
25000         * tests/unistr/test-u16-cpy-alloc.c: New file.
25001
25002         Tests for module 'unistr/u8-cpy-alloc'.
25003         * modules/unistr/u8-cpy-alloc-tests: New file.
25004         * tests/unistr/test-u8-cpy-alloc.c: New file.
25005         * tests/unistr/test-cpy-alloc.h: New file.
25006
25007         Tests for module 'unistr/u32-mbsnlen'.
25008         * modules/unistr/u32-mbsnlen-tests: New file.
25009         * tests/unistr/test-u32-mbsnlen.c: New file.
25010
25011         Tests for module 'unistr/u16-mbsnlen'.
25012         * modules/unistr/u16-mbsnlen-tests: New file.
25013         * tests/unistr/test-u16-mbsnlen.c: New file.
25014
25015         Tests for module 'unistr/u8-mbsnlen'.
25016         * modules/unistr/u8-mbsnlen-tests: New file.
25017         * tests/unistr/test-u8-mbsnlen.c: New file.
25018
25019         Tests for module 'unistr/u32-chr'.
25020         * modules/unistr/u32-chr-tests: New file.
25021         * tests/unistr/test-u32-chr.c: New file.
25022
25023         Tests for module 'unistr/u16-chr'.
25024         * modules/unistr/u16-chr-tests: New file.
25025         * tests/unistr/test-u16-chr.c: New file.
25026
25027         Tests for module 'unistr/u8-chr'.
25028         * modules/unistr/u8-chr-tests: New file.
25029         * tests/unistr/test-u8-chr.c: New file.
25030         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25031
25032         Tests for module 'unistr/u32-cmp2'.
25033         * modules/unistr/u32-cmp2-tests: New file.
25034         * tests/unistr/test-u32-cmp2.c: New file.
25035
25036         Tests for module 'unistr/u16-cmp2'.
25037         * modules/unistr/u16-cmp2-tests: New file.
25038         * tests/unistr/test-u16-cmp2.c: New file.
25039
25040         Tests for module 'unistr/u8-cmp2'.
25041         * modules/unistr/u8-cmp2-tests: New file.
25042         * tests/unistr/test-u8-cmp2.c: New file.
25043         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25044
25045         Tests for module 'unistr/u32-cmp'.
25046         * modules/unistr/u32-cmp-tests: New file.
25047         * tests/unistr/test-u32-cmp.c: New file.
25048
25049         Tests for module 'unistr/u16-cmp'.
25050         * modules/unistr/u16-cmp-tests: New file.
25051         * tests/unistr/test-u16-cmp.c: New file.
25052
25053         Tests for module 'unistr/u8-cmp'.
25054         * modules/unistr/u8-cmp-tests: New file.
25055         * tests/unistr/test-u8-cmp.c: New file.
25056         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25057
25058         Tests for module 'unistr/u32-set'.
25059         * modules/unistr/u32-set-tests: New file.
25060         * tests/unistr/test-u32-set.c: New file.
25061
25062         Tests for module 'unistr/u16-set'.
25063         * modules/unistr/u16-set-tests: New file.
25064         * tests/unistr/test-u16-set.c: New file.
25065
25066         Tests for module 'unistr/u8-set'.
25067         * modules/unistr/u8-set-tests: New file.
25068         * tests/unistr/test-u8-set.c: New file.
25069         * tests/unistr/test-set.h: New file.
25070
25071         Tests for module 'unistr/u32-move'.
25072         * modules/unistr/u32-move-tests: New file.
25073         * tests/unistr/test-u32-move.c: New file.
25074
25075         Tests for module 'unistr/u16-move'.
25076         * modules/unistr/u16-move-tests: New file.
25077         * tests/unistr/test-u16-move.c: New file.
25078
25079         Tests for module 'unistr/u8-move'.
25080         * modules/unistr/u8-move-tests: New file.
25081         * tests/unistr/test-u8-move.c: New file.
25082         * tests/unistr/test-move.h: New file.
25083
25084         Tests for module 'unistr/u32-cpy'.
25085         * modules/unistr/u32-cpy-tests: New file.
25086         * tests/unistr/test-u32-cpy.c: New file.
25087
25088         Tests for module 'unistr/u16-cpy'.
25089         * modules/unistr/u16-cpy-tests: New file.
25090         * tests/unistr/test-u16-cpy.c: New file.
25091
25092         Tests for module 'unistr/u8-cpy'.
25093         * modules/unistr/u8-cpy-tests: New file.
25094         * tests/unistr/test-u8-cpy.c: New file.
25095         * tests/unistr/test-cpy.h: New file.
25096
25097 2010-01-09  Bruno Haible  <bruno@clisp.org>
25098
25099         Tests for module 'unistr/u32-uctomb'.
25100         * modules/unistr/u32-uctomb-tests: New file.
25101         * tests/unistr/test-u32-uctomb.c: New file.
25102
25103         Tests for module 'unistr/u16-uctomb'.
25104         * modules/unistr/u16-uctomb-tests: New file.
25105         * tests/unistr/test-u16-uctomb.c: New file.
25106
25107         Tests for module 'unistr/u8-uctomb'.
25108         * modules/unistr/u8-uctomb-tests: New file.
25109         * tests/unistr/test-u8-uctomb.c: New file.
25110
25111         Tests for module 'unistr/u32-mbtoucr'.
25112         * modules/unistr/u32-mbtoucr-tests: New file.
25113         * tests/unistr/test-u32-mbtoucr.c: New file.
25114
25115         Tests for module 'unistr/u16-mbtoucr'.
25116         * modules/unistr/u16-mbtoucr-tests: New file.
25117         * tests/unistr/test-u16-mbtoucr.c: New file.
25118
25119         Tests for module 'unistr/u8-mbtoucr'.
25120         * modules/unistr/u8-mbtoucr-tests: New file.
25121         * tests/unistr/test-u8-mbtoucr.c: New file.
25122
25123         Tests for module 'unistr/u32-mbtouc'.
25124         * modules/unistr/u32-mbtouc-tests: New file.
25125         * tests/unistr/test-u32-mbtouc.c: New file.
25126
25127         Tests for module 'unistr/u16-mbtouc'.
25128         * modules/unistr/u16-mbtouc-tests: New file.
25129         * tests/unistr/test-u16-mbtouc.c: New file.
25130
25131         Tests for module 'unistr/u8-mbtouc'.
25132         * modules/unistr/u8-mbtouc-tests: New file.
25133         * tests/unistr/test-u8-mbtouc.c: New file.
25134
25135         Tests for module 'unistr/u32-mbtouc-unsafe'.
25136         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25137         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25138         * tests/unistr/test-u32-mbtouc.h: New file.
25139
25140         Tests for module 'unistr/u16-mbtouc-unsafe'.
25141         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25142         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25143         * tests/unistr/test-u16-mbtouc.h: New file.
25144
25145         Tests for module 'unistr/u8-mbtouc-unsafe'.
25146         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25147         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25148         * tests/unistr/test-u8-mbtouc.h: New file.
25149
25150         Tests for module 'unistr/u32-mblen'.
25151         * modules/unistr/u32-mblen-tests: New file.
25152         * tests/unistr/test-u32-mblen.c: New file.
25153
25154         Tests for module 'unistr/u16-mblen'.
25155         * modules/unistr/u16-mblen-tests: New file.
25156         * tests/unistr/test-u16-mblen.c: New file.
25157
25158         Tests for module 'unistr/u8-mblen'.
25159         * modules/unistr/u8-mblen-tests: New file.
25160         * tests/unistr/test-u8-mblen.c: New file.
25161
25162         Tests for module 'unistr/u32-to-u16'.
25163         * modules/unistr/u32-to-u16-tests: New file.
25164         * tests/unistr/test-u32-to-u16.c: New file.
25165
25166         Tests for module 'unistr/u32-to-u8'.
25167         * modules/unistr/u32-to-u8-tests: New file.
25168         * tests/unistr/test-u32-to-u8.c: New file.
25169
25170         Tests for module 'unistr/u16-to-u32'.
25171         * modules/unistr/u16-to-u32-tests: New file.
25172         * tests/unistr/test-u16-to-u32.c: New file.
25173
25174         Tests for module 'unistr/u16-to-u8'.
25175         * modules/unistr/u16-to-u8-tests: New file.
25176         * tests/unistr/test-u16-to-u8.c: New file.
25177
25178         Tests for module 'unistr/u8-to-u32'.
25179         * modules/unistr/u8-to-u32-tests: New file.
25180         * tests/unistr/test-u8-to-u32.c: New file.
25181
25182         Tests for module 'unistr/u8-to-u16'.
25183         * modules/unistr/u8-to-u16-tests: New file.
25184         * tests/unistr/test-u8-to-u16.c: New file.
25185
25186         Tests for module 'unistr/u32-check'.
25187         * modules/unistr/u32-check-tests: New file.
25188         * tests/unistr/test-u32-check.c: New file.
25189
25190         Tests for module 'unistr/u16-check'.
25191         * modules/unistr/u16-check-tests: New file.
25192         * tests/unistr/test-u16-check.c: New file.
25193
25194         Tests for module 'unistr/u8-check'.
25195         * modules/unistr/u8-check-tests: New file.
25196         * tests/unistr/test-u8-check.c: New file.
25197
25198         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25199         (category_equals): New function.
25200         (main): Add more tests.
25201         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25202
25203         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25204
25205 2010-01-10  Bruno Haible  <bruno@clisp.org>
25206
25207         unistr/u*-strcoll: Try harder to distinguish different strings.
25208         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25209         compare s1 and s2 to see if they are different.
25210
25211 2010-01-10  Bruno Haible  <bruno@clisp.org>
25212
25213         unistr/u*-stpncpy: Fix the return value.
25214         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25215         description of the return value consistent with stpncpy in glibc.
25216         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25217         written non-NUL unit.
25218
25219 2010-01-10  Bruno Haible  <bruno@clisp.org>
25220
25221         unistr/u*-next: Add missing dependencies.
25222         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25223         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25224         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25225
25226 2010-01-10  Bruno Haible  <bruno@clisp.org>
25227
25228         unistr/u8-mbsnlen: Fix return value for incomplete character.
25229         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25230         u8_mblen.
25231         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25232         Remove unistr/u8-mblen.
25233         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25234         u16_mblen.
25235         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25236         Remove unistr/u16-mblen.
25237
25238 2010-01-10  Bruno Haible  <bruno@clisp.org>
25239
25240         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25241         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25242         Reported by Brian Gough <bjg@gnu.org> and
25243         Chris Clayton <chris2553@googlemail.com> via
25244         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25245
25246 2010-01-09  Bruno Haible  <bruno@clisp.org>
25247
25248         unistr/u16-to-u32: Reject invalid input.
25249         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25250         u16_mbtouc.
25251         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25252         Remove unistr/u16-mbtouc.
25253
25254         unistr/u16-to-u8: Reject invalid input.
25255         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25256         u16_mbtouc.
25257         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25258         Remove unistr/u16-mbtouc.
25259
25260         unistr/u8-to-u32: Reject invalid input.
25261         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25262         u8_mbtouc.
25263         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25264         Remove unistr/u8-mbtouc.
25265
25266         unistr/u8-to-u16: Reject invalid input.
25267         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25268         u8_mbtouc.
25269         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25270         Remove unistr/u8-mbtouc.
25271
25272 2010-01-09  Bruno Haible  <bruno@clisp.org>
25273
25274         Tests for module 'getlogin'.
25275         * modules/getlogin-tests: New file.
25276         * tests/test-getlogin.c: New file.
25277
25278         New module 'getlogin'.
25279         * lib/unistd.in.h (getlogin): New declaration.
25280         * lib/getlogin.c: New file.
25281         * m4/getlogin.m4: New file.
25282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25283         HAVE_GETLOGIN.
25284         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25285         HAVE_GETLOGIN.
25286         * modules/getlogin: New file.
25287         * doc/posix-functions/getlogin.texi: Mention the new module.
25288         Reported by John W. Eaton <jwe@gnu.org>.
25289
25290 2010-01-09  Bruno Haible  <bruno@clisp.org>
25291
25292         getlogin_r: Support for native Windows.
25293         * lib/getlogin_r.c: Include <windows.h>
25294         (getlogin_r): Implement for native Windows.
25295         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25296         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25297         via John W. Eaton <jwe@gnu.org>.
25298
25299 2010-01-09  Bruno Haible  <bruno@clisp.org>
25300
25301         getlogin_r: Small fixes.
25302         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25303         succeeds.
25304         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25305         before testing whether getlogin_r is declared. No need to set
25306         HAVE_DECL_GETLOGIN_R to 1.
25307         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25308
25309 2010-01-09  Bruno Haible  <bruno@clisp.org>
25310
25311         * lib/unistd.in.h (getlogin_r): Add comment.
25312
25313 2010-01-09  Bruno Haible  <bruno@clisp.org>
25314
25315         Tests for module 'getlogin_r'.
25316         * modules/getlogin_r-tests: New file.
25317         * tests/test-getlogin_r.c: New file.
25318
25319 2010-01-09  Jim Meyering  <meyering@redhat.com>
25320
25321         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25322         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25323         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25324
25325 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25326
25327         * lib/dup2.c (rpl_dup2): Improve comment.
25328
25329 2010-01-08  Eric Blake  <ebb9@byu.net>
25330
25331         maint.mk: allow packages to add makefile @@ exceptions
25332         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25333         (sc_makefile_check): Rename...
25334         (sc_makefile_at_at_check): ...to this, and use hook.
25335
25336         dup2: work around mingw bug
25337         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25338         Reported by Simon Josefsson.
25339
25340 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25341
25342         glob: Fix C++ compilation.
25343         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25344         C++.
25345
25346 2010-01-07  Bruno Haible  <bruno@clisp.org>
25347
25348         Fix indentation of wctype.in.h, broken since 2007-01-06.
25349         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25350
25351 2010-01-07  Bruno Haible  <bruno@clisp.org>
25352
25353         mbslen: Avoid collision with system function.
25354         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25355         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25356         * m4/mbslen.m4: New file.
25357         * modules/mbslen (Files): Add it.
25358         (configure.ac): Invoke gl_MBSLEN.
25359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25360         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25361         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25362         via Ian Beckwith <ianb@erislabs.net>.
25363
25364 2010-01-07  Bruno Haible  <bruno@clisp.org>
25365
25366         dirent: Document the last fix.
25367         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25368
25369 2010-01-07  Bruno Haible  <bruno@clisp.org>
25370
25371         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25372         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25373         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25374         va_list are defined.
25375         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25376         Reported by Eric Blake.
25377
25378 2010-01-07  Bruno Haible  <bruno@clisp.org>
25379
25380         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25381         * modules/xlist (Depends-on): Add 'list',
25382         * modules/xoset (Depends-on): Add 'oset'.
25383         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25384
25385 2010-01-07  Bruno Haible  <bruno@clisp.org>
25386
25387         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25388         * doc/posix-functions/strncasecmp.texi: Likewise.
25389
25390 2010-01-07  Bruno Haible  <bruno@clisp.org>
25391
25392         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25393
25394 2010-01-07  John W. Eaton  <jwe@octave.org>
25395
25396         wctype: allow C++ use
25397         * lib/wctype.in.h: Add extern "C" block for C++.
25398
25399 2010-01-06  Eric Blake  <ebb9@byu.net>
25400
25401         maint.mk: detect incorrect GFDL usage
25402         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25403
25404 2010-01-06  Jim Meyering  <meyering@redhat.com>
25405         and Eric Blake  <ebb9@byu.net>
25406
25407         maint.mk: ignore multi-line copyright in NEWS
25408         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25409
25410 2010-01-06  Eric Blake  <ebb9@byu.net>
25411
25412         select: add missing dependency
25413         * modules/select-tests (Depends-on): Move sockets dependency...
25414         * modules/select (Depends-on): ...here.
25415         Reported by Ian Beckwith.
25416
25417         doc: regenerate INSTALL
25418         * doc/INSTALL: Reflect recent autoconf update.
25419         * doc/INSTALL.ISO: Likewise.
25420         * doc/INSTALL.UTF-8: Likewise.
25421
25422         pread: fix compilation on glibc
25423         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25424         Reported by Ralf Wildenhues.
25425
25426         dirent: fix test failure
25427         * lib/dirent.in.h (includes): Guarantee ino_t.
25428         Reported by Ralf Wildenhues.
25429
25430 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25431
25432         linkat, renameat: avoid bad free
25433         * lib/at-func2.c (at_func2): Fix typo.
25434         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25435
25436 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25437
25438         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25439         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25440         to avoid failure of symlink test later.
25441
25442 2010-01-06  Eric Blake  <ebb9@byu.net>
25443
25444         stdio, unistd: guarantee ssize_t
25445         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25446         2008 are exposed when needed.
25447         * lib/stdio.in.h (includes): Likewise.
25448         Reported by Ralf Wildenhues.
25449
25450 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25451
25452         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25453         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25454         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25455
25456 2010-01-06  Jim Meyering  <meyering@redhat.com>
25457
25458         readtokens: this module *does* require xalloc.h
25459         It uses only functions that were omitted by the old syntax-check rule.
25460         * lib/readtokens.c: Include "xalloc.h" once again.
25461         * modules/readtokens (Depends-on): Add xalloc.
25462         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25463
25464 2010-01-05  Eric Blake  <ebb9@byu.net>
25465
25466         maint: support 'make announcement' from a VPATH build
25467         * top/maint.mk (announcement): Look for correct NEWS file.
25468
25469 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25470
25471         utimens (fdutimens): ignore a negative FD, per contract
25472         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25473         when we have a valid file descriptor.  Otherwise, using a brand
25474         new glibc (with just-patched futimens that now fails with EBADF)
25475         would cause this function to fail with ENOSYS.
25476         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25477         See also http://bugzilla.redhat.com/552320.
25478
25479 2010-01-05  Eric Blake  <ebb9@byu.net>
25480
25481         strcase: document what it provides
25482         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25483         gnulib module.
25484         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25485         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25486
25487 2010-01-05  Jim Meyering  <meyering@redhat.com>
25488
25489         maint: remove useless inclusions of "xalloc.h"
25490         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25491         * lib/readtokens.c: Likewise.
25492         * lib/same.c: Likewise.
25493         * modules/getloadavg (Depends-on): Remove xalloc.
25494         * modules/readtokens: Likewise.
25495         * modules/same: Likewise.
25496
25497         maint.mk: include 4 more function names in alloca.h-checking regexp
25498         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25499         regexp.  Before, we would give a false-positive (saying alloca.h
25500         is included unnecessarily) when the only uses involved omitted symbols.
25501
25502         xalloc.h: use consistent formatting
25503         * lib/xalloc.h: Move declarations to start in the first column.
25504
25505 2010-01-05  Eric Blake  <ebb9@byu.net>
25506
25507         mkdir: avoid xalloc
25508         * lib/mkdir.c (includes): Drop unused header.
25509         Reported by John W. Eaton.
25510
25511 2010-01-04  Jim Meyering  <meyering@redhat.com>
25512
25513         nl_langinfo: avoid configure-time syntax error
25514         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25515         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25516         the empty string.  Don't let that provoke a shell syntax error.
25517
25518         regcomp, regexec, fnmatch: avoid array bounds read error
25519         * lib/regcomp.c (build_equiv_class): From glibc:
25520         Use only the low 24 bits of a findidx return value as an index
25521         into the weights array.  Patch by Ulrich Drepper:
25522         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25523         * lib/regexec.c (check_node_accept_bytes): Likewise.
25524         * lib/fnmatch_loop.c (FCT): Likewise.
25525
25526         regcomp: skip collseq lookup when there are no rules
25527         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25528         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25529
25530         regcomp: recognize ill-formed { } expressions
25531         * lib/regcomp.c (parse_dup_op): From glibc:
25532         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25533
25534         regcomp: fix typo in comment
25535         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25536         s/satisfy/satisfies/.
25537
25538         regcomp: sync from glibc: remove dead store
25539         * lib/regcomp.c (duplicate_node_closure): Remove useless
25540         search_duplicated_node call and dead store.
25541
25542         regcomp: sync from glibc; always use nl_langinfo
25543         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25544         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25545         * modules/regex (Depends-on): Add nl_langinfo.
25546
25547 2010-01-04  Eric Blake  <ebb9@byu.net>
25548
25549         fdopendir: fix configure test
25550         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25551
25552 2010-01-01  Bruno Haible  <bruno@clisp.org>
25553
25554         wchar: Remove unused configure check.
25555         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25556
25557 2010-01-01  Eric Blake  <ebb9@byu.net>
25558
25559         headers: make check of system header explicit
25560         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25561         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25562         ourselves.
25563         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25565         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25566         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25567         internals.
25568         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25569         missing.
25570         Suggested by Bruno Haible.
25571
25572 2010-01-01  Jim Meyering  <meyering@redhat.com>
25573
25574         ChangeLog: tweak to eliminate unnecessary copyright line
25575         * ChangeLog: Remove a copyright line that was mistakenly updated
25576         by today's update-copyright run.  Reported by Eric Blake.
25577
25578         test-update-copyright: don't let envvar setting cause test failure
25579         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25580
25581 2010-01-01  Bruno Haible  <bruno@clisp.org>
25582
25583         localename: Avoid gcc warning.
25584         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25585         function if it is not used.
25586
25587 2010-01-01  Jim Meyering  <meyering@redhat.com>
25588
25589         update nearly all FSF copyright year lists to include 2010
25590         Use the same procedure as for 2009, outlined in
25591         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25592
25593         version-etc: set COPYRIGHT_YEAR to 2010
25594         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25595
25596 2009-12-31  Eric Blake  <ebb9@byu.net>
25597
25598         doc: correct availability of cygwin 1.5.x getopt
25599         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25600         variables.
25601         * doc/posix-functions/opterr.texi (opterr): Likewise.
25602         * doc/posix-functions/optind.texi (optind): Likewise.
25603         * doc/posix-functions/optopt.texi (optopt): Likewise.
25604         * doc/posix-functions/tzname.texi (tzname): Likewise.
25605
25606         openat: update maintainer
25607         * modules/openat (Maintainer): Add myself.
25608
25609         utimens: avoid shadowing warning
25610         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25611         buffers into one, to avoid shadowing, as well as avoiding a
25612         redundant stat.
25613         Reported by Jim Meyering.
25614
25615         test-dup2: avoid compiler warning
25616         * tests/test-dup2.c (is_inheritable): Only define if used.
25617
25618 2010-01-01  Bruno Haible  <bruno@clisp.org>
25619
25620         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25621         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25622         defined, use wctomb instead of wcrtomb.
25623
25624 2010-01-01  Bruno Haible  <bruno@clisp.org>
25625
25626         iconv: Reject native Solaris iconv.
25627         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25628         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25629
25630 2009-12-31  Bruno Haible  <bruno@clisp.org>
25631
25632         * tests/test-signal.c (main): Remove test of 'SIG'.
25633
25634 2009-12-31  Bruno Haible  <bruno@clisp.org>
25635
25636         spawn: Fix incomplete fix.
25637         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25638         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25639         warnings for GNULIB_POSIXCHECK again.
25640         Reported by Eric Blake.
25641
25642 2009-12-31  Bruno Haible  <bruno@clisp.org>
25643
25644         Avoid namespace pollution on glibc systems.
25645         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25646         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25647         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25648         glibc systems.
25649
25650 2009-12-31  Bruno Haible  <bruno@clisp.org>
25651
25652         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25653         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25654         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25655         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25656         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25657         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25658         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25659
25660 2009-12-31  Bruno Haible  <bruno@clisp.org>
25661
25662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25663         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25664         afterwards.
25665
25666 2009-12-31  Bruno Haible  <bruno@clisp.org>
25667
25668         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25669         SYS_UTSNAME_H.
25670
25671 2009-12-31  Bruno Haible  <bruno@clisp.org>
25672
25673         spawn: Fix misapplied patch.
25674         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25675         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25676         warnings for GNULIB_POSIXCHECK.
25677
25678 2009-12-31  Bruno Haible  <bruno@clisp.org>
25679
25680         times: Update after sys_times changed.
25681         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25682         * modules/times (Files): Add it.
25683         (configure.ac): Invoke gl_FUNC_TIMES.
25684
25685 2009-12-31  Bruno Haible  <bruno@clisp.org>
25686
25687         Use AC_C_INLINE where necessary.
25688         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25691         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25692         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25693         * m4/mbiter.m4 (gl_MBITER): Likewise.
25694         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25695         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25696         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25697         * modules/u64 (configure.ac): Likewise.
25698
25699 2009-12-31  Bruno Haible  <bruno@clisp.org>
25700
25701         Use AC_C_INLINE instead of module 'inline' where possible.
25702         * modules/inline (Description): Clarify purpose.
25703         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25704         * modules/count-one-bits (Depends-on): Remove inline.
25705         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25706         * modules/openat (Depends-on): Remove inline.
25707         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25708         instead of depending on module 'inline'.
25709         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25710         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25711         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25712         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25713         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25714         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25715         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25716         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25717         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25718         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25719         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25720         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25721         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25722         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25723         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25724         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25725         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25726         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25727         Likewise.
25728         * modules/unictype/property-ascii-hex-digit (Depends-on,
25729         configure.ac): Likewise.
25730         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25731         configure.ac): Likewise.
25732         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25733         configure.ac): Likewise.
25734         * modules/unictype/property-bidi-block-separator (Depends-on,
25735         configure.ac): Likewise.
25736         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25737         configure.ac): Likewise.
25738         * modules/unictype/property-bidi-common-separator (Depends-on,
25739         configure.ac): Likewise.
25740         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25741         Likewise.
25742         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25743         configure.ac): Likewise.
25744         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25745         configure.ac): Likewise.
25746         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25747         configure.ac): Likewise.
25748         * modules/unictype/property-bidi-european-digit (Depends-on,
25749         configure.ac): Likewise.
25750         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25751         configure.ac): Likewise.
25752         * modules/unictype/property-bidi-left-to-right (Depends-on,
25753         configure.ac): Likewise.
25754         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25755         configure.ac): Likewise.
25756         * modules/unictype/property-bidi-other-neutral (Depends-on,
25757         configure.ac): Likewise.
25758         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25759         Likewise.
25760         * modules/unictype/property-bidi-segment-separator (Depends-on,
25761         configure.ac): Likewise.
25762         * modules/unictype/property-bidi-whitespace (Depends-on,
25763         configure.ac): Likewise.
25764         * modules/unictype/property-combining (Depends-on, configure.ac):
25765         Likewise.
25766         * modules/unictype/property-composite (Depends-on, configure.ac):
25767         Likewise.
25768         * modules/unictype/property-currency-symbol (Depends-on,
25769         configure.ac): Likewise.
25770         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25771         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25772         Likewise.
25773         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25774         configure.ac): Likewise.
25775         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25776         Likewise.
25777         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25778         Likewise.
25779         * modules/unictype/property-extender (Depends-on, configure.ac):
25780         Likewise.
25781         * modules/unictype/property-format-control (Depends-on, configure.ac):
25782         Likewise.
25783         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25784         Likewise.
25785         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25786         Likewise.
25787         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25788         Likewise.
25789         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25790         Likewise.
25791         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25792         Likewise.
25793         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25794         Likewise.
25795         * modules/unictype/property-id-start (Depends-on, configure.ac):
25796         Likewise.
25797         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25798         Likewise.
25799         * modules/unictype/property-ids-binary-operator (Depends-on,
25800         configure.ac): Likewise.
25801         * modules/unictype/property-ids-trinary-operator (Depends-on,
25802         configure.ac): Likewise.
25803         * modules/unictype/property-ignorable-control (Depends-on,
25804         configure.ac): Likewise.
25805         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25806         Likewise.
25807         * modules/unictype/property-join-control (Depends-on, configure.ac):
25808         Likewise.
25809         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25810         Likewise.
25811         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25812         Likewise.
25813         * modules/unictype/property-logical-order-exception (Depends-on,
25814         configure.ac): Likewise.
25815         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25816         Likewise.
25817         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25818         * modules/unictype/property-non-break (Depends-on, configure.ac):
25819         Likewise.
25820         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25821         Likewise.
25822         * modules/unictype/property-numeric (Depends-on, configure.ac):
25823         Likewise.
25824         * modules/unictype/property-other-alphabetic (Depends-on,
25825         configure.ac): Likewise.
25826         * modules/unictype/property-other-default-ignorable-code-point
25827         (Depends-on, configure.ac): Likewise.
25828         * modules/unictype/property-other-grapheme-extend (Depends-on,
25829         configure.ac): Likewise.
25830         * modules/unictype/property-other-id-continue (Depends-on,
25831         configure.ac): Likewise.
25832         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25833         Likewise.
25834         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25835         Likewise.
25836         * modules/unictype/property-other-math (Depends-on, configure.ac):
25837         Likewise.
25838         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25839         Likewise.
25840         * modules/unictype/property-paired-punctuation (Depends-on,
25841         configure.ac): Likewise.
25842         * modules/unictype/property-paragraph-separator (Depends-on,
25843         configure.ac): Likewise.
25844         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25845         Likewise.
25846         * modules/unictype/property-pattern-white-space (Depends-on,
25847         configure.ac): Likewise.
25848         * modules/unictype/property-private-use (Depends-on, configure.ac):
25849         Likewise.
25850         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25851         Likewise.
25852         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25853         Likewise.
25854         * modules/unictype/property-radical (Depends-on, configure.ac):
25855         Likewise.
25856         * modules/unictype/property-sentence-terminal (Depends-on,
25857         configure.ac): Likewise.
25858         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25859         Likewise.
25860         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25861         * modules/unictype/property-terminal-punctuation (Depends-on,
25862         configure.ac): Likewise.
25863         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25864         Likewise.
25865         * modules/unictype/property-unassigned-code-value (Depends-on,
25866         configure.ac): Likewise.
25867         * modules/unictype/property-unified-ideograph (Depends-on,
25868         configure.ac): Likewise.
25869         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25870         Likewise.
25871         * modules/unictype/property-variation-selector (Depends-on,
25872         configure.ac): Likewise.
25873         * modules/unictype/property-white-space (Depends-on, configure.ac):
25874         Likewise.
25875         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25876         Likewise.
25877         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25878         Likewise.
25879         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25880         Likewise.
25881         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25882         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25883         Likewise.
25884
25885 2009-12-31  Bruno Haible  <bruno@clisp.org>
25886
25887         Remove unnecessary AC_C_INLINE invocation.
25888         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25889         since 2009-08-21.
25890
25891 2009-12-31  Jim Meyering  <meyering@redhat.com>
25892
25893         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25894         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25895         With this change, we can all remove the gpg_key_ID = ... definition
25896         from our respective cfg.mk files.
25897
25898         maint.mk: create announcement template in ~/, not in /tmp
25899         * top/maint.mk (emit_upload_commands): Adjust.
25900         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25901         Remove temporary file, .ci-msg.
25902
25903 2009-12-31  Eric Blake  <ebb9@byu.net>
25904
25905         link-warning: always build headers with link warnings
25906         * modules/arpa_inet (Makefile.am): Always build replacement
25907         header.
25908         * modules/ctype (Makefile.am): Likewise.
25909         * modules/dirent (Makefile.am): Likewise.
25910         * modules/inttypes (Makefile.am): Likewise.
25911         * modules/langinfo (Makefile.am): Likewise.
25912         * modules/locale (Makefile.am): Likewise.
25913         * modules/spawn (Makefile.am): Likewise.
25914         * modules/sys_file (Makefile.am): Likewise.
25915         * modules/sys_ioctl (Makefile.am): Likewise.
25916         * modules/sys_select (Makefile.am): Likewise.
25917         * modules/sys_socket (Makefile.am): Likewise.
25918         * modules/sys_times (Makefile.am): Likewise.
25919         * modules/sys_utsname (Makefile.am): Likewise.
25920         * modules/sys_wait (Makefile.am): Likewise.
25921         * modules/wchar (Makefile.am): Likewise.
25922         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25923         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25924         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25925         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25926         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25927         Likewise.
25928         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25929         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25930         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25931         Likewise.
25932         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25933         Likewise.
25934         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25935         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25936         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25937         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25938         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25939         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25940         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25941         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25942         (gl_WCHAR_H_DEFAULTS): Likewise.
25943
25944 2009-12-31  Eric Blake  <ebb9@byu.net>
25945
25946         signal, spawn: use link warnings
25947         * lib/signal.in.h (sigset_t): Make unconditional.
25948         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25949         (sigpending, sigprocmask, sigaction): Add link warnings.
25950         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25951         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25952         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25953         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25954         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25955         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25956         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25957         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25958         (posix_spawn_file_actions_destroy)
25959         (posix_spawn_file_actions_addopen)
25960         (posix_spawn_file_actions_addclose)
25961         (posix_spawn_file_actions_adddup2): Likewise.
25962         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25963         * tests/test-signal.c (main): Enhance test.
25964
25965         spawn: improve wrapper support
25966         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25967         (gl_SPAWN_H_DEFAULTS): New defaults.
25968         * modules/spawn (Makefile.am): Substitute them.
25969         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25970         Only declare if missing or broken.
25971
25972         sys_times, sys_utsname: use include_next
25973         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25974         header.
25975         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25976         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25977         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25978         * modules/sys_times (Depends-on): Add include_next.
25979         (Makefile.am): Substitute additional values.
25980         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25981         * lib/sys_times.in.h (includes): Include native header, if
25982         available.
25983         * lib/sys_utsname.in.h (includes): Likewise.
25984         * tests/test-sys_times.c (main): Enhance test.
25985
25986         fdutimensat: revert prior patch
25987         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25988         utimens.h.
25989         Reported by Bruno Haible.
25990
25991 2009-12-30  Eric Blake  <ebb9@byu.net>
25992
25993         sys_wait: drop link-warning dependency
25994         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25995         link-warning efforts.
25996         * lib/sys_wait.in.h: Likewise.
25997
25998         fdutimensat: remove bogus dependency
25999         * modules/fdutimensat (Depends-on): Drop inline.
26000
26001         unistd: fix typo
26002         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26003
26004 2009-12-30  Bruno Haible  <bruno@clisp.org>
26005
26006         Fix compilation error with Solaris cc.
26007         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26008         * lib/unicase/u16-is-invariant.c: Likewise.
26009         * lib/unicase/u32-is-invariant.c: Likewise.
26010         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26011
26012 2009-12-30  Bruno Haible  <bruno@clisp.org>
26013
26014         Fix test crash.
26015         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26016         locales.
26017         Reported by Simon Josefsson <simon@josefsson.org>.
26018
26019 2009-12-30  Bruno Haible  <bruno@clisp.org>
26020
26021         Fix compilation error on most platforms.
26022         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26023         Reported by Simon Josefsson <simon@josefsson.org>
26024         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26025
26026 2009-12-30  Eric Blake  <ebb9@byu.net>
26027
26028         futimens, utimensat: work around ntfs-3g bug
26029         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26030         a ctime bug is present, and expand workaround to cover ntfs-3g.
26031         * lib/utimens.c (fdutimens, lutimens): Likewise.
26032         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26033         (validate_timespec): Adjust return value.
26034         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26035         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26036         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26037
26038 2009-12-29  Eric Blake  <ebb9@byu.net>
26039
26040         link-warning: make usage consistent
26041         * modules/ctype (Depends-on): Add link-warning.
26042         (Makefile.am): Update rules accordingly.
26043         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26044         * modules/locale (Depends-on, Makefile.am): Likewise.
26045         * modules/sys_file (Makefile.am): Likewise.
26046         * modules/getopt-posix (Makefile.am): Delete unused link warning
26047         efforts.
26048         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26049         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26050         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26051         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26052
26053         stdio: remove unused variables
26054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26055         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26056         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26057
26058         tests: test more substitute headers
26059         * modules/ctype-tests: New file.
26060         * modules/dirent-tests: Likewise.
26061         * modules/spawn-tests: Likewise.
26062         * modules/sys_file-tests: Likewise.
26063         * modules/sys_ioctl-tests: Likewise.
26064         * modules/sys_wait-tests: Likewise.
26065         * tests/test-ctype.c: Likewise.
26066         * tests/test-dirent.c: Likewise.
26067         * tests/test-spawn.c: Likewise.
26068         * tests/test-sys_file.c: Likewise.
26069         * tests/test-sys_ioctl.c: Likewise.
26070         * tests/test-sys_wait.c: Likewise.
26071         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26072         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26073         whether or not flock is in use.
26074
26075         tests: remove License section from module
26076         * modules/arpa_inet-tests: Remove unneeded section.
26077         * modules/byteswap-tests: Likewise.
26078         * modules/ceilf-tests: Likewise.
26079         * modules/ceill-tests: Likewise.
26080         * modules/crypto/des-tests: Likewise.
26081         * modules/crypto/gc-arcfour-tests: Likewise.
26082         * modules/crypto/gc-arctwo-tests: Likewise.
26083         * modules/crypto/gc-des-tests: Likewise.
26084         * modules/crypto/gc-hmac-md5-tests: Likewise.
26085         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26086         * modules/crypto/gc-md2-tests: Likewise.
26087         * modules/crypto/gc-md4-tests: Likewise.
26088         * modules/crypto/gc-md5-tests: Likewise.
26089         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26090         * modules/crypto/gc-rijndael-tests: Likewise.
26091         * modules/crypto/gc-sha1-tests: Likewise.
26092         * modules/crypto/gc-tests: Likewise.
26093         * modules/crypto/md2-tests: Likewise.
26094         * modules/crypto/md4-tests: Likewise.
26095         * modules/fcntl-h-tests: Likewise.
26096         * modules/floorf-tests: Likewise.
26097         * modules/floorl-tests: Likewise.
26098         * modules/frexp-nolibm-tests: Likewise.
26099         * modules/frexp-tests: Likewise.
26100         * modules/frexpl-nolibm-tests: Likewise.
26101         * modules/frexpl-tests: Likewise.
26102         * modules/getaddrinfo-tests: Likewise.
26103         * modules/inttypes-tests: Likewise.
26104         * modules/isfinite-tests: Likewise.
26105         * modules/isinf-tests: Likewise.
26106         * modules/ldexpl-tests: Likewise.
26107         * modules/locale-tests: Likewise.
26108         * modules/math-tests: Likewise.
26109         * modules/netdb-tests: Likewise.
26110         * modules/netinet_in-tests: Likewise.
26111         * modules/printf-frexp-tests: Likewise.
26112         * modules/printf-frexpl-tests: Likewise.
26113         * modules/priv-set-tests: Likewise.
26114         * modules/random_r-tests: Likewise.
26115         * modules/round-tests: Likewise.
26116         * modules/roundf-tests: Likewise.
26117         * modules/roundl-tests: Likewise.
26118         * modules/search-tests: Likewise.
26119         * modules/select-tests: Likewise.
26120         * modules/signal-tests: Likewise.
26121         * modules/stdbool-tests: Likewise.
26122         * modules/stddef-tests: Likewise.
26123         * modules/stdint-tests: Likewise.
26124         * modules/stdio-tests: Likewise.
26125         * modules/stdlib-tests: Likewise.
26126         * modules/string-tests: Likewise.
26127         * modules/strings-tests: Likewise.
26128         * modules/sys_select-tests: Likewise.
26129         * modules/sys_socket-tests: Likewise.
26130         * modules/sys_stat-tests: Likewise.
26131         * modules/sys_time-tests: Likewise.
26132         * modules/sys_utsname-tests: Likewise.
26133         * modules/sysexits-tests: Likewise.
26134         * modules/time-tests: Likewise.
26135         * modules/trunc-tests: Likewise.
26136         * modules/truncf-tests: Likewise.
26137         * modules/truncl-tests: Likewise.
26138         * modules/tsearch-tests: Likewise.
26139         * modules/unistd-tests: Likewise.
26140         * modules/wchar-tests: Likewise.
26141         * modules/wctype-tests: Likewise.
26142
26143         tests: fix license on several tests
26144         * tests/test-des.c: Update to GPLv3+.
26145         * tests/test-flock.c: Likewise.
26146         * tests/test-fsync.c: Likewise.
26147         * tests/test-futimens.h: Likewise.
26148         * tests/test-gc-arcfour.c: Likewise.
26149         * tests/test-gc-arctwo.c: Likewise.
26150         * tests/test-gc-des.c: Likewise.
26151         * tests/test-gc-hmac-md5.c: Likewise.
26152         * tests/test-gc-hmac-sha1.c: Likewise.
26153         * tests/test-gc-md2.c: Likewise.
26154         * tests/test-gc-md4.c: Likewise.
26155         * tests/test-gc-md5.c: Likewise.
26156         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26157         * tests/test-gc-rijndael.c: Likewise.
26158         * tests/test-gc-sha1.c: Likewise.
26159         * tests/test-gc.c: Likewise.
26160         * tests/test-getcwd.c: Likewise.
26161         * tests/test-link.c: Likewise.
26162         * tests/test-link.h: Likewise.
26163         * tests/test-lutimens.h: Likewise.
26164         * tests/test-md2.c: Likewise.
26165         * tests/test-md4.c: Likewise.
26166         * tests/test-mkdir.h: Likewise.
26167         * tests/test-rename.c: Likewise.
26168         * tests/test-rename.h: Likewise.
26169         * tests/test-safe-alloc.c: Likewise.
26170         * tests/test-utimens-common.h: Likewise.
26171         * tests/test-utimens.h: Likewise.
26172
26173         maint: sync license texts
26174         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26175         * doc/gpl-3.0.texi: Revert copyright year update.
26176         * doc/lgpl-3.0.texi: Likewise.
26177
26178 2009-12-29  Jim Meyering  <meyering@redhat.com>
26179
26180         update nearly all FSF copyright year lists to include 2009
26181         The files named by the following are exempted:
26182             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26183               test -f "$dst" && { echo "$dst"; continue; }
26184               test -d "$dst" || continue
26185               echo "$dst"/$(basename "$src")
26186             done > exempt
26187             git ls-files tests/unictype >> exempt
26188         In the remaining files, convert to all-interval notation if
26189         - there is already at least one year interval like 2000-2003
26190         - the file is maintained by me
26191         - the file is in lib/uni*/, where that style already prevails
26192         Otherwise, use update-copyright's default.
26193
26194 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26195         and Eric Blake  <ebb9@byu.net>
26196
26197         tests: don't require debug system() to pass
26198         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26199         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26200         * tests/test-unlink.h (test_unlink_func): Likewise.
26201         * tests/test-fstatat.c (main): ...into callers.
26202         * tests/test-lstat.c (main): Likewise.
26203         * tests/test-rmdir.c (main): Likewise.
26204         * tests/test-unlink.c (main): Likewise.
26205         * tests/test-unlinkat.c (main): Likewise.
26206         * tests/test-areadlink-with-size.c (main): Don't require a
26207         debug-only system call to pass, aiding cross-testing to mingw.
26208         * tests/test-areadlink.c (main): Likewise.
26209         * tests/test-areadlinkat-with-size.c (main): Likewise.
26210         * tests/test-areadlinkat.c (main): Likewise.
26211         * tests/test-canonicalize-lgpl.c (main): Likewise.
26212         * tests/test-canonicalize.c (main): Likewise.
26213         * tests/test-chown.c (main): Likewise.
26214         * tests/test-fchownat.c (main): Likewise.
26215         * tests/test-lchown.c (main): Likewise.
26216         * tests/test-fdutimensat.c (main): Likewise.
26217         * tests/test-futimens.c (main): Likewise.
26218         * tests/test-link.c (main): Likewise.
26219         * tests/test-linkat.c (main): Likewise.
26220         * tests/test-mkdir.c (main): Likewise.
26221         * tests/test-mkdirat.c (main): Likewise.
26222         * tests/test-mkfifo.c (main): Likewise.
26223         * tests/test-mkfifoat.c (main): Likewise.
26224         * tests/test-mknod.c (main): Likewise.
26225         * tests/test-readlink.c (main): Likewise.
26226         * tests/test-remove.c (main): Likewise.
26227         * tests/test-rename.c (main): Likewise.
26228         * tests/test-renameat.c (main): Likewise.
26229         * tests/test-symlink.c (main): Likewise.
26230         * tests/test-symlinkat.c (main): Likewise.
26231         * tests/test-utimens.c (main): Likewise.
26232         * tests/test-utimensat.c (main): Likewise.
26233
26234 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26235
26236         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26237         on $(UNUSED_PARAMETER_H) to avoid build failure.
26238
26239 2009-12-28  Jim Meyering  <meyering@redhat.com>
26240
26241         update-copyright: you may specify a max. line length other than 72
26242         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26243
26244         maint: use consistent FSF copyright line syntax
26245         * lib/posixtm.c: Add missing comma in FSF copyright line.
26246         * lib/posixtm.h: Likewise.
26247         * lib/getugroups.c: Add missing ", Inc.".
26248
26249         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26250         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26251         FSF copyright line.  Remove trailing blanks.
26252
26253 2009-12-28  Eric Blake  <ebb9@byu.net>
26254
26255         test-dup2: reduce dependencies
26256         * modules/cloexec (Configure.ac): Set witness.
26257         * modules/dup2-tests (Depends-on): Drop cloexec.
26258         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26259         not present.
26260         Suggested by Bruno Haible.
26261
26262 2009-12-26  Bruno Haible  <bruno@clisp.org>
26263
26264         Remove an unneeded dependency.
26265         * modules/fseterr (Depends-on): Remove dup2.
26266
26267 2009-12-26  Eric Blake  <ebb9@byu.net>
26268
26269         tests: use macros.h in more places
26270         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26271         (ASSERT_STREAM): Provide default of stderr.
26272         * tests/test-dirent-safer.c: Include macros.h, using alternate
26273         stream for assertions.
26274         * tests/test-dup-safer.c: Likewise.
26275         * tests/test-freopen-safer.c: Likewise.
26276         * tests/test-getopt.c: Likewise.
26277         * tests/test-openat-safer.c: Likewise.
26278         * tests/test-pipe.c: Likewise.
26279         * tests/test-popen-safer.c: Likewise.
26280         * modules/dirent-safer-tests (Files): Include macros.h.
26281         * modules/unistd-safer-tests (Files): Likewise.
26282         * modules/freopen-safer-tests (Files): Likewise.
26283         * modules/getopt-posix-tests (Files): Likewise.
26284         * modules/openat-safer-tests (Files): Likewise.
26285         * modules/pipe-tests (Files): Likewise.
26286
26287 2009-12-26  Bruno Haible  <bruno@clisp.org>
26288
26289         javacomp: Portability fix.
26290         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26291         that it also works on Solaris.
26292
26293 2009-12-26  Bruno Haible  <bruno@clisp.org>
26294
26295         localename: Fix storage allocation of gl_locale_name_thread's result.
26296         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26297         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26298         all platforms that have 'uselocale'.
26299         (gl_locale_name_thread_unsafe): New function, extracted from
26300         gl_locale_name_thread.
26301         (gl_locale_name_thread): Call struniq on all platforms that have
26302         'uselocale'.
26303         * tests/test-localename.c (test_locale_name_thread): Check that the
26304         resulting strings are permanently allocated.
26305         * modules/localename-tests (Depends-on): Add strdup.
26306
26307 2009-12-26  Bruno Haible  <bruno@clisp.org>
26308
26309         * tests/test-localename.c (categories): Fill in the strings.
26310
26311 2009-12-26  Jim Meyering  <meyering@redhat.com>
26312
26313         isdir: complete the removal of m4/isdir.m4
26314         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26315
26316         isdir: clean up, since at least grep still uses it
26317         * lib/isdir.c: Include "isdir.h".
26318         (S_ISDIR): Remove now-unneeded definition.
26319         * modules/isdir (Files): Add lib/isdir.h.
26320         * lib/isdir.h: New file, with declaration.
26321         * m4/isdir.m4: Remove file -- unneeded.
26322
26323 2009-12-25  Bruno Haible  <bruno@clisp.org>
26324
26325         selinux-h: Make generated .h files standalone.
26326         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26327         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26328         * lib/se-selinux.in.h: Likewise.
26329         * modules/selinux-h (Depends-on): Add unused-parameter.
26330         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26331         selinux/selinux.h and selinux/context.h.
26332         Suggested by Eric Blake.
26333
26334 2009-12-25  Bruno Haible  <bruno@clisp.org>
26335
26336         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26337         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26338         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26339         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26340         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26341
26342 2009-12-24  Bruno Haible  <bruno@clisp.org>
26343
26344         openat: Fix warning.
26345         * lib/openat-proc.c: Include <unistd.h>.
26346
26347 2009-12-24  Bruno Haible  <bruno@clisp.org>
26348
26349         New module 'unused-parameter'.
26350         * build-aux/unused-parameter.h: New file, extracted from earlier
26351         gnulib-common.m4.
26352         * modules/unused-parameter: New file.
26353         * lib/unistr.h: Include unused-parameter.h.
26354         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26355         _GL_UNUSED.
26356         * modules/unistr/base (Depends-on): Add unused-parameter.
26357
26358 2009-12-24  Bruno Haible  <bruno@clisp.org>
26359
26360         Add missing dependencies to 'extensions' module.
26361         * m4/extensions.m4: Add comment.
26362         * modules/accept4 (Depends-on): Add extensions.
26363         * modules/dup3 (Depends-on): Likewise.
26364         * modules/fcntl (Depends-on): Likewise.
26365         * modules/futimens (Depends-on): Likewise.
26366         * modules/mknod (Depends-on): Likewise.
26367         * modules/pipe2 (Depends-on): Likewise.
26368         * modules/stat-time (Depends-on): Likewise.
26369         * modules/strcasestr-simple (Depends-on): Likewise.
26370         * modules/strsignal (Depends-on): Likewise.
26371         * modules/utimensat (Depends-on): Likewise.
26372         * modules/localcharset (Depends-on): Likewise. Needed because of
26373         gl_FCNTL_O_FLAGS.
26374         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26375         AC_TYPE_MBSTATE_T.
26376         * modules/wcsnrtombs (Depends-on): Likewise.
26377         * modules/wcsrtombs (Depends-on): Likewise.
26378
26379 2009-12-24  Bruno Haible  <bruno@clisp.org>
26380
26381         binary-io: Avoid gcc warning due to SET_BINARY.
26382         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26383         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26384
26385 2009-12-24  Bruno Haible  <bruno@clisp.org>
26386
26387         Avoid future namespace pollution on glibc systems.
26388         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26389         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26390         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26391         glibc systems.
26392
26393 2009-12-24  Bruno Haible  <bruno@clisp.org>
26394
26395         Refactor common macros used in tests.
26396         * tests/macros.h: New file.
26397         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26398         and/or <stdlib.h>, if appropriate.
26399         (ASSERT, SIZEOF): Remove macros.
26400         * tests/test-areadlink-with-size.c: Likewise.
26401         * tests/test-areadlinkat.c: Likewise.
26402         * tests/test-areadlinkat-with-size.c: Likewise.
26403         * tests/test-argmatch.c: Likewise.
26404         * tests/test-argv-iter.c: Likewise.
26405         * tests/test-array-mergesort.c: Likewise.
26406         * tests/test-array_list.c: Likewise.
26407         * tests/test-array_oset.c: Likewise.
26408         * tests/test-avltree_list.c: Likewise.
26409         * tests/test-avltree_oset.c: Likewise.
26410         * tests/test-avltreehash_list.c: Likewise.
26411         * tests/test-base64.c: Likewise.
26412         * tests/test-binary-io.c: Likewise.
26413         * tests/test-bitrotate.c: Likewise.
26414         * tests/test-btowc.c: Likewise.
26415         * tests/test-byteswap.c: Likewise.
26416         * tests/test-c-ctype.c: Likewise.
26417         * tests/test-c-stack.c: Likewise.
26418         * tests/test-c-strcasecmp.c: Likewise.
26419         * tests/test-c-strcasestr.c: Likewise.
26420         * tests/test-c-strncasecmp.c: Likewise.
26421         * tests/test-c-strstr.c: Likewise.
26422         * tests/test-canonicalize-lgpl.c: Likewise.
26423         * tests/test-canonicalize.c: Likewise.
26424         * tests/test-carray_list.c: Likewise.
26425         * tests/test-ceilf1.c: Likewise.
26426         * tests/test-ceilf2.c: Likewise.
26427         * tests/test-ceill.c: Likewise.
26428         * tests/test-chown.c: Likewise.
26429         * tests/test-cloexec.c: Likewise.
26430         * tests/test-copy-acl.c: Likewise.
26431         * tests/test-copy-file.c: Likewise.
26432         * tests/test-count-one-bits.c: Likewise.
26433         * tests/test-dprintf-posix.c: Likewise.
26434         * tests/test-dup2.c: Likewise.
26435         * tests/test-dup3.c: Likewise.
26436         * tests/test-duplocale.c: Likewise.
26437         * tests/test-fbufmode.c: Likewise.
26438         * tests/test-fchdir.c: Likewise.
26439         * tests/test-fchownat.c: Likewise.
26440         * tests/test-fcntl-safer.c: Likewise.
26441         * tests/test-fcntl.c: Likewise.
26442         * tests/test-fdopendir.c: Likewise.
26443         * tests/test-fdutimensat.c: Likewise.
26444         * tests/test-fflush2.c: Likewise.
26445         * tests/test-file-has-acl.c: Likewise.
26446         * tests/test-filevercmp.c: Likewise.
26447         * tests/test-flock.c: Likewise.
26448         * tests/test-floorf1.c: Likewise.
26449         * tests/test-floorf2.c: Likewise.
26450         * tests/test-floorl.c: Likewise.
26451         * tests/test-fnmatch.c: Likewise.
26452         * tests/test-fopen.h: Likewise.
26453         * tests/test-fpending.c: Likewise.
26454         * tests/test-fprintf-posix.c: Likewise.
26455         * tests/test-fpurge.c: Likewise.
26456         * tests/test-freadable.c: Likewise.
26457         * tests/test-freadahead.c: Likewise.
26458         * tests/test-freading.c: Likewise.
26459         * tests/test-freadptr.c: Likewise.
26460         * tests/test-freadptr2.c: Likewise.
26461         * tests/test-freadseek.c: Likewise.
26462         * tests/test-freopen.c: Likewise.
26463         * tests/test-frexp.c: Likewise.
26464         * tests/test-frexpl.c: Likewise.
26465         * tests/test-fseek.c: Likewise.
26466         * tests/test-fseeko.c: Likewise.
26467         * tests/test-fstatat.c: Likewise.
26468         * tests/test-fstrcmp.c: Likewise.
26469         * tests/test-fsync.c: Likewise.
26470         * tests/test-ftell.c: Likewise.
26471         * tests/test-ftello.c: Likewise.
26472         * tests/test-func.c: Likewise.
26473         * tests/test-futimens.c: Likewise.
26474         * tests/test-fwritable.c: Likewise.
26475         * tests/test-fwriting.c: Likewise.
26476         * tests/test-getcwd.c: Likewise.
26477         * tests/test-getdate.c: Likewise.
26478         * tests/test-getdelim.c: Likewise.
26479         * tests/test-getdtablesize.c: Likewise.
26480         * tests/test-getgroups.c: Likewise.
26481         * tests/test-getline.c: Likewise.
26482         * tests/test-getndelim2.c: Likewise.
26483         * tests/test-glob.c: Likewise.
26484         * tests/test-hash.c: Likewise.
26485         * tests/test-i-ring.c: Likewise.
26486         * tests/test-iconv-utf.c: Likewise.
26487         * tests/test-iconv.c: Likewise.
26488         * tests/test-idpriv-drop.c: Likewise.
26489         * tests/test-idpriv-droptemp.c: Likewise.
26490         * tests/test-inet_ntop.c: Likewise.
26491         * tests/test-inet_pton.c: Likewise.
26492         * tests/test-isblank.c: Likewise.
26493         * tests/test-isfinite.c: Likewise.
26494         * tests/test-isinf.c: Likewise.
26495         * tests/test-isnan.c: Likewise.
26496         * tests/test-isnand.h: Likewise.
26497         * tests/test-isnanf.h: Likewise.
26498         * tests/test-isnanl.h: Likewise.
26499         * tests/test-lchown.c: Likewise.
26500         * tests/test-ldexpl.c: Likewise.
26501         * tests/test-link.c: Likewise.
26502         * tests/test-linkat.c: Likewise.
26503         * tests/test-linked_list.c: Likewise.
26504         * tests/test-linkedhash_list.c: Likewise.
26505         * tests/test-localename.c: Likewise.
26506         * tests/test-lseek.c: Likewise.
26507         * tests/test-lstat.c: Likewise.
26508         * tests/test-mbmemcasecmp.c: Likewise.
26509         * tests/test-mbmemcasecoll.c: Likewise.
26510         * tests/test-mbrtowc.c: Likewise.
26511         * tests/test-mbscasecmp.c: Likewise.
26512         * tests/test-mbscasestr1.c: Likewise.
26513         * tests/test-mbscasestr2.c: Likewise.
26514         * tests/test-mbscasestr3.c: Likewise.
26515         * tests/test-mbscasestr4.c: Likewise.
26516         * tests/test-mbschr.c: Likewise.
26517         * tests/test-mbscspn.c: Likewise.
26518         * tests/test-mbsinit.c: Likewise.
26519         * tests/test-mbsncasecmp.c: Likewise.
26520         * tests/test-mbsnrtowcs.c: Likewise.
26521         * tests/test-mbspbrk.c: Likewise.
26522         * tests/test-mbspcasecmp.c: Likewise.
26523         * tests/test-mbsrchr.c: Likewise.
26524         * tests/test-mbsrtowcs.c: Likewise.
26525         * tests/test-mbsspn.c: Likewise.
26526         * tests/test-mbsstr1.c: Likewise.
26527         * tests/test-mbsstr2.c: Likewise.
26528         * tests/test-mbsstr3.c: Likewise.
26529         * tests/test-memchr.c: Likewise.
26530         * tests/test-memchr2.c: Likewise.
26531         * tests/test-memcmp.c: Likewise.
26532         * tests/test-memmem.c: Likewise.
26533         * tests/test-memrchr.c: Likewise.
26534         * tests/test-mkdir.c: Likewise.
26535         * tests/test-mkdirat.c: Likewise.
26536         * tests/test-mkfifo.c: Likewise.
26537         * tests/test-mkfifoat.c: Likewise.
26538         * tests/test-mknod.c: Likewise.
26539         * tests/test-nanosleep.c: Likewise.
26540         * tests/test-nl_langinfo.c: Likewise.
26541         * tests/test-obstack-printf.c: Likewise.
26542         * tests/test-open.c: Likewise.
26543         * tests/test-openat.c: Likewise.
26544         * tests/test-pipe-filter-gi1.c: Likewise.
26545         * tests/test-pipe-filter-gi2-main.c: Likewise.
26546         * tests/test-pipe-filter-ii1.c: Likewise.
26547         * tests/test-pipe-filter-ii2-main.c: Likewise.
26548         * tests/test-pipe2.c: Likewise.
26549         * tests/test-popen.h: Likewise.
26550         * tests/test-posixtm.c: Likewise.
26551         * tests/test-pread.c: Likewise.
26552         * tests/test-printf-frexp.c: Likewise.
26553         * tests/test-printf-frexpl.c: Likewise.
26554         * tests/test-printf-posix.c: Likewise.
26555         * tests/test-priv-set.c: Likewise.
26556         * tests/test-quotearg.c: Likewise.
26557         * tests/test-random_r.c: Likewise.
26558         * tests/test-rawmemchr.c: Likewise.
26559         * tests/test-rbtree_list.c: Likewise.
26560         * tests/test-rbtree_oset.c: Likewise.
26561         * tests/test-rbtreehash_list.c: Likewise.
26562         * tests/test-readlink.c: Likewise.
26563         * tests/test-remove.c: Likewise.
26564         * tests/test-rename.c: Likewise.
26565         * tests/test-renameat.c: Likewise.
26566         * tests/test-rmdir.c: Likewise.
26567         * tests/test-round1.c: Likewise.
26568         * tests/test-roundf1.c: Likewise.
26569         * tests/test-roundl.c: Likewise.
26570         * tests/test-safe-alloc.c: Likewise.
26571         * tests/test-sameacls.c: Likewise.
26572         * tests/test-set-mode-acl.c: Likewise.
26573         * tests/test-setenv.c: Likewise.
26574         * tests/test-sigaction.c: Likewise.
26575         * tests/test-signbit.c: Likewise.
26576         * tests/test-sleep.c: Likewise.
26577         * tests/test-snprintf-posix.c: Likewise.
26578         * tests/test-snprintf.c: Likewise.
26579         * tests/test-sprintf-posix.c: Likewise.
26580         * tests/test-stat-time.c: Likewise.
26581         * tests/test-stat.c: Likewise.
26582         * tests/test-strcasestr.c: Likewise.
26583         * tests/test-strchrnul.c: Likewise.
26584         * tests/test-strerror.c: Likewise.
26585         * tests/test-striconv.c: Likewise.
26586         * tests/test-striconveh.c: Likewise.
26587         * tests/test-striconveha.c: Likewise.
26588         * tests/test-strsignal.c: Likewise.
26589         * tests/test-strstr.c: Likewise.
26590         * tests/test-strtod.c: Likewise.
26591         * tests/test-strverscmp.c: Likewise.
26592         * tests/test-symlink.c: Likewise.
26593         * tests/test-symlinkat.c: Likewise.
26594         * tests/test-trunc1.c: Likewise.
26595         * tests/test-trunc2.c: Likewise.
26596         * tests/test-truncf1.c: Likewise.
26597         * tests/test-truncf2.c: Likewise.
26598         * tests/test-truncl.c: Likewise.
26599         * tests/test-uname.c: Likewise.
26600         * tests/test-unlink.c: Likewise.
26601         * tests/test-unlinkat.c: Likewise.
26602         * tests/test-unsetenv.c: Likewise.
26603         * tests/test-usleep.c: Likewise.
26604         * tests/test-utimens.c: Likewise.
26605         * tests/test-utimensat.c: Likewise.
26606         * tests/test-vasnprintf-posix.c: Likewise.
26607         * tests/test-vasnprintf-posix2.c: Likewise.
26608         * tests/test-vasnprintf.c: Likewise.
26609         * tests/test-vasprintf-posix.c: Likewise.
26610         * tests/test-vasprintf.c: Likewise.
26611         * tests/test-vdprintf-posix.c: Likewise.
26612         * tests/test-vfprintf-posix.c: Likewise.
26613         * tests/test-vprintf-posix.c: Likewise.
26614         * tests/test-vsnprintf-posix.c: Likewise.
26615         * tests/test-vsnprintf.c: Likewise.
26616         * tests/test-vsprintf-posix.c: Likewise.
26617         * tests/test-wcrtomb.c: Likewise.
26618         * tests/test-wcsnrtombs.c: Likewise.
26619         * tests/test-wcsrtombs.c: Likewise.
26620         * tests/test-wctype.c: Likewise.
26621         * tests/test-wcwidth.c: Likewise.
26622         * tests/test-xfprintf-posix.c: Likewise.
26623         * tests/test-xmemdup0.c: Likewise.
26624         * tests/test-xprintf-posix.c: Likewise.
26625         * tests/test-xvasprintf.c: Likewise.
26626         * tests/unicase/test-locale-language.c: Likewise.
26627         * tests/unicase/test-mapping-part1.h: Likewise.
26628         * tests/unicase/test-predicate-part1.h: Likewise.
26629         * tests/unicase/test-u8-casecmp.c: Likewise.
26630         * tests/unicase/test-u8-casecoll.c: Likewise.
26631         * tests/unicase/test-u8-casefold.c: Likewise.
26632         * tests/unicase/test-u8-is-cased.c: Likewise.
26633         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26634         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26635         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26636         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26637         * tests/unicase/test-u8-tolower.c: Likewise.
26638         * tests/unicase/test-u8-totitle.c: Likewise.
26639         * tests/unicase/test-u8-toupper.c: Likewise.
26640         * tests/unicase/test-u16-casecmp.c: Likewise.
26641         * tests/unicase/test-u16-casecoll.c: Likewise.
26642         * tests/unicase/test-u16-casefold.c: Likewise.
26643         * tests/unicase/test-u16-is-cased.c: Likewise.
26644         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26645         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26646         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26647         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26648         * tests/unicase/test-u16-tolower.c: Likewise.
26649         * tests/unicase/test-u16-totitle.c: Likewise.
26650         * tests/unicase/test-u16-toupper.c: Likewise.
26651         * tests/unicase/test-u32-casecmp.c: Likewise.
26652         * tests/unicase/test-u32-casecoll.c: Likewise.
26653         * tests/unicase/test-u32-casefold.c: Likewise.
26654         * tests/unicase/test-u32-is-cased.c: Likewise.
26655         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26656         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26657         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26658         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26659         * tests/unicase/test-u32-tolower.c: Likewise.
26660         * tests/unicase/test-u32-totitle.c: Likewise.
26661         * tests/unicase/test-u32-toupper.c: Likewise.
26662         * tests/unicase/test-ulc-casecmp.c: Likewise.
26663         * tests/unicase/test-ulc-casecoll.c: Likewise.
26664         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26665         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26666         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26667         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26668         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26669         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26670         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26671         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26672         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26673         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26674         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26675         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26676         * tests/unictype/test-bidi_byname.c: Likewise.
26677         * tests/unictype/test-bidi_name.c: Likewise.
26678         * tests/unictype/test-bidi_of.c: Likewise.
26679         * tests/unictype/test-bidi_test.c: Likewise.
26680         * tests/unictype/test-block_list.c: Likewise.
26681         * tests/unictype/test-block_of.c: Likewise.
26682         * tests/unictype/test-block_test.c: Likewise.
26683         * tests/unictype/test-categ_and.c: Likewise.
26684         * tests/unictype/test-categ_and_not.c: Likewise.
26685         * tests/unictype/test-categ_byname.c: Likewise.
26686         * tests/unictype/test-categ_name.c: Likewise.
26687         * tests/unictype/test-categ_none.c: Likewise.
26688         * tests/unictype/test-categ_of.c: Likewise.
26689         * tests/unictype/test-categ_or.c: Likewise.
26690         * tests/unictype/test-categ_test_withtable.c: Likewise.
26691         * tests/unictype/test-combining.c: Likewise.
26692         * tests/unictype/test-decdigit.c: Likewise.
26693         * tests/unictype/test-digit.c: Likewise.
26694         * tests/unictype/test-mirror.c: Likewise.
26695         * tests/unictype/test-numeric.c: Likewise.
26696         * tests/unictype/test-pr_byname.c: Likewise.
26697         * tests/unictype/test-pr_test.c: Likewise.
26698         * tests/unictype/test-predicate-part1.h: Likewise.
26699         * tests/unictype/test-scripts.c: Likewise.
26700         * tests/unictype/test-sy_c_ident.c: Likewise.
26701         * tests/unictype/test-sy_java_ident.c: Likewise.
26702         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26703         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26704         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26705         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26706         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26707         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26708         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26709         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26710         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26711         * tests/uninorm/test-compat-decomposition.c: Likewise.
26712         * tests/uninorm/test-composition.c: Likewise.
26713         * tests/uninorm/test-decomposing-form.c: Likewise.
26714         * tests/uninorm/test-decomposition.c: Likewise.
26715         * tests/uninorm/test-u8-nfc.c: Likewise.
26716         * tests/uninorm/test-u8-nfd.c: Likewise.
26717         * tests/uninorm/test-u8-nfkc.c: Likewise.
26718         * tests/uninorm/test-u8-nfkd.c: Likewise.
26719         * tests/uninorm/test-u8-normcmp.c: Likewise.
26720         * tests/uninorm/test-u8-normcoll.c: Likewise.
26721         * tests/uninorm/test-u16-nfc.c: Likewise.
26722         * tests/uninorm/test-u16-nfd.c: Likewise.
26723         * tests/uninorm/test-u16-nfkc.c: Likewise.
26724         * tests/uninorm/test-u16-nfkd.c: Likewise.
26725         * tests/uninorm/test-u16-normcmp.c: Likewise.
26726         * tests/uninorm/test-u16-normcoll.c: Likewise.
26727         * tests/uninorm/test-u32-nfc.c: Likewise.
26728         * tests/uninorm/test-u32-nfd.c: Likewise.
26729         * tests/uninorm/test-u32-nfkc.c: Likewise.
26730         * tests/uninorm/test-u32-nfkd.c: Likewise.
26731         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26732         * tests/uninorm/test-u32-normcmp.c: Likewise.
26733         * tests/uninorm/test-u32-normcoll.c: Likewise.
26734         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26735         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26736         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26737         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26738         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26739         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26740         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26741         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26742         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26743         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26744         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26745         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26746         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26747         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26748         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26749         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26750         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26751         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26752         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26753         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26754         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26755         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26756         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26757         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26758         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26759         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26760         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26761         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26762         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26763         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26764         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26765         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26766         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26767         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26768         * tests/uniwidth/test-u8-width.c: Likewise.
26769         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26770         * tests/uniwidth/test-u16-width.c: Likewise.
26771         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26772         * tests/uniwidth/test-u32-width.c: Likewise.
26773         * tests/uniwidth/test-uc_width.c: Likewise.
26774         * tests/uniwidth/test-uc_width2.c: Likewise.
26775         * modules/acl-tests (Files): Add tests/macros.h.
26776         * modules/areadlink-tests (Files): Likewise.
26777         * modules/areadlink-with-size-tests (Files): Likewise.
26778         * modules/areadlinkat-tests (Files): Likewise.
26779         * modules/areadlinkat-with-size-tests (Files): Likewise.
26780         * modules/argmatch-tests (Files): Likewise.
26781         * modules/argv-iter-tests (Files): Likewise.
26782         * modules/array-list-tests (Files): Likewise.
26783         * modules/array-mergesort-tests (Files): Likewise.
26784         * modules/array-oset-tests (Files): Likewise.
26785         * modules/avltree-list-tests (Files): Likewise.
26786         * modules/avltree-oset-tests (Files): Likewise.
26787         * modules/avltreehash-list-tests (Files): Likewise.
26788         * modules/base64-tests (Files): Likewise.
26789         * modules/binary-io-tests (Files): Likewise.
26790         * modules/bitrotate-tests (Files): Likewise.
26791         * modules/btowc-tests (Files): Likewise.
26792         * modules/byteswap-tests (Files): Likewise.
26793         * modules/c-ctype-tests (Files): Likewise.
26794         * modules/c-stack-tests (Files): Likewise.
26795         * modules/c-strcase-tests (Files): Likewise.
26796         * modules/c-strcasestr-tests (Files): Likewise.
26797         * modules/c-strstr-tests (Files): Likewise.
26798         * modules/canonicalize-lgpl-tests (Files): Likewise.
26799         * modules/canonicalize-tests (Files): Likewise.
26800         * modules/carray-list-tests (Files): Likewise.
26801         * modules/ceilf-tests (Files): Likewise.
26802         * modules/ceill-tests (Files): Likewise.
26803         * modules/chown-tests (Files): Likewise.
26804         * modules/cloexec-tests (Files): Likewise.
26805         * modules/copy-file-tests (Files): Likewise.
26806         * modules/count-one-bits-tests (Files): Likewise.
26807         * modules/dprintf-posix-tests (Files): Likewise.
26808         * modules/dup2-tests (Files): Likewise.
26809         * modules/dup3-tests (Files): Likewise.
26810         * modules/duplocale-tests (Files): Likewise.
26811         * modules/fbufmode-tests (Files): Likewise.
26812         * modules/fchdir-tests (Files): Likewise.
26813         * modules/fcntl-safer-tests (Files): Likewise.
26814         * modules/fcntl-tests (Files): Likewise.
26815         * modules/fdopendir-tests (Files): Likewise.
26816         * modules/fdutimensat-tests (Files): Likewise.
26817         * modules/fflush-tests (Files): Likewise.
26818         * modules/filevercmp-tests (Files): Likewise.
26819         * modules/flock-tests (Files): Likewise.
26820         * modules/floorf-tests (Files): Likewise.
26821         * modules/floorl-tests (Files): Likewise.
26822         * modules/fnmatch-tests (Files): Likewise.
26823         * modules/fopen-safer-tests (Files): Likewise.
26824         * modules/fopen-tests (Files): Likewise.
26825         * modules/fpending-tests (Files): Likewise.
26826         * modules/fprintf-posix-tests (Files): Likewise.
26827         * modules/fpurge-tests (Files): Likewise.
26828         * modules/freadable-tests (Files): Likewise.
26829         * modules/freadahead-tests (Files): Likewise.
26830         * modules/freading-tests (Files): Likewise.
26831         * modules/freadptr-tests (Files): Likewise.
26832         * modules/freadseek-tests (Files): Likewise.
26833         * modules/freopen-tests (Files): Likewise.
26834         * modules/frexp-nolibm-tests (Files): Likewise.
26835         * modules/frexp-tests (Files): Likewise.
26836         * modules/frexpl-nolibm-tests (Files): Likewise.
26837         * modules/frexpl-tests (Files): Likewise.
26838         * modules/fseek-tests (Files): Likewise.
26839         * modules/fseeko-tests (Files): Likewise.
26840         * modules/fstrcmp-tests (Files): Likewise.
26841         * modules/fsync-tests (Files): Likewise.
26842         * modules/ftell-tests (Files): Likewise.
26843         * modules/ftello-tests (Files): Likewise.
26844         * modules/func-tests (Files): Likewise.
26845         * modules/futimens-tests (Files): Likewise.
26846         * modules/fwritable-tests (Files): Likewise.
26847         * modules/fwriting-tests (Files): Likewise.
26848         * modules/getcwd-tests (Files): Likewise.
26849         * modules/getdate-tests (Files): Likewise.
26850         * modules/getdelim-tests (Files): Likewise.
26851         * modules/getdtablesize-tests (Files): Likewise.
26852         * modules/getgroups-tests (Files): Likewise.
26853         * modules/getline-tests (Files): Likewise.
26854         * modules/getndelim2-tests (Files): Likewise.
26855         * modules/glob-tests (Files): Likewise.
26856         * modules/hash-tests (Files): Likewise.
26857         * modules/i-ring-tests (Files): Likewise.
26858         * modules/iconv-tests (Files): Likewise.
26859         * modules/iconv_open-utf-tests (Files): Likewise.
26860         * modules/idpriv-drop-tests (Files): Likewise.
26861         * modules/idpriv-droptemp-tests (Files): Likewise.
26862         * modules/inet_ntop-tests (Files): Likewise.
26863         * modules/inet_pton-tests (Files): Likewise.
26864         * modules/isblank-tests (Files): Likewise.
26865         * modules/isfinite-tests (Files): Likewise.
26866         * modules/isinf-tests (Files): Likewise.
26867         * modules/isnan-tests (Files): Likewise.
26868         * modules/isnand-nolibm-tests (Files): Likewise.
26869         * modules/isnand-tests (Files): Likewise.
26870         * modules/isnanf-nolibm-tests (Files): Likewise.
26871         * modules/isnanf-tests (Files): Likewise.
26872         * modules/isnanl-nolibm-tests (Files): Likewise.
26873         * modules/isnanl-tests (Files): Likewise.
26874         * modules/lchown-tests (Files): Likewise.
26875         * modules/ldexpl-tests (Files): Likewise.
26876         * modules/link-tests (Files): Likewise.
26877         * modules/linkat-tests (Files): Likewise.
26878         * modules/linked-list-tests (Files): Likewise.
26879         * modules/linkedhash-list-tests (Files): Likewise.
26880         * modules/localename-tests (Files): Likewise.
26881         * modules/lseek-tests (Files): Likewise.
26882         * modules/lstat-tests (Files): Likewise.
26883         * modules/mbmemcasecmp-tests (Files): Likewise.
26884         * modules/mbmemcasecoll-tests (Files): Likewise.
26885         * modules/mbrtowc-tests (Files): Likewise.
26886         * modules/mbscasecmp-tests (Files): Likewise.
26887         * modules/mbscasestr-tests (Files): Likewise.
26888         * modules/mbschr-tests (Files): Likewise.
26889         * modules/mbscspn-tests (Files): Likewise.
26890         * modules/mbsinit-tests (Files): Likewise.
26891         * modules/mbsncasecmp-tests (Files): Likewise.
26892         * modules/mbsnrtowcs-tests (Files): Likewise.
26893         * modules/mbspbrk-tests (Files): Likewise.
26894         * modules/mbspcasecmp-tests (Files): Likewise.
26895         * modules/mbsrchr-tests (Files): Likewise.
26896         * modules/mbsrtowcs-tests (Files): Likewise.
26897         * modules/mbsspn-tests (Files): Likewise.
26898         * modules/mbsstr-tests (Files): Likewise.
26899         * modules/memchr-tests (Files): Likewise.
26900         * modules/memchr2-tests (Files): Likewise.
26901         * modules/memcmp-tests (Files): Likewise.
26902         * modules/memmem-tests (Files): Likewise.
26903         * modules/memrchr-tests (Files): Likewise.
26904         * modules/mkdir-tests (Files): Likewise.
26905         * modules/mkfifo-tests (Files): Likewise.
26906         * modules/mkfifoat-tests (Files): Likewise.
26907         * modules/mknod-tests (Files): Likewise.
26908         * modules/nanosleep-tests (Files): Likewise.
26909         * modules/nl_langinfo-tests (Files): Likewise.
26910         * modules/obstack-printf-tests (Files): Likewise.
26911         * modules/open-tests (Files): Likewise.
26912         * modules/openat-tests (Files): Likewise.
26913         * modules/pipe-filter-gi-tests (Files): Likewise.
26914         * modules/pipe-filter-ii-tests (Files): Likewise.
26915         * modules/pipe2-tests (Files): Likewise.
26916         * modules/popen-safer-tests (Files): Likewise.
26917         * modules/popen-tests (Files): Likewise.
26918         * modules/posixtm-tests (Files): Likewise.
26919         * modules/pread-tests (Files): Likewise.
26920         * modules/printf-frexp-tests (Files): Likewise.
26921         * modules/printf-frexpl-tests (Files): Likewise.
26922         * modules/printf-posix-tests (Files): Likewise.
26923         * modules/priv-set-tests (Files): Likewise.
26924         * modules/quotearg-tests (Files): Likewise.
26925         * modules/random_r-tests (Files): Likewise.
26926         * modules/rawmemchr-tests (Files): Likewise.
26927         * modules/rbtree-list-tests (Files): Likewise.
26928         * modules/rbtree-oset-tests (Files): Likewise.
26929         * modules/rbtreehash-list-tests (Files): Likewise.
26930         * modules/readlink-tests (Files): Likewise.
26931         * modules/remove-tests (Files): Likewise.
26932         * modules/rename-tests (Files): Likewise.
26933         * modules/renameat-tests (Files): Likewise.
26934         * modules/rmdir-tests (Files): Likewise.
26935         * modules/round-tests (Files): Likewise.
26936         * modules/roundf-tests (Files): Likewise.
26937         * modules/roundl-tests (Files): Likewise.
26938         * modules/safe-alloc-tests (Files): Likewise.
26939         * modules/setenv-tests (Files): Likewise.
26940         * modules/sigaction-tests (Files): Likewise.
26941         * modules/signbit-tests (Files): Likewise.
26942         * modules/sleep-tests (Files): Likewise.
26943         * modules/snprintf-posix-tests (Files): Likewise.
26944         * modules/snprintf-tests (Files): Likewise.
26945         * modules/sprintf-posix-tests (Files): Likewise.
26946         * modules/stat-tests (Files): Likewise.
26947         * modules/stat-time-tests (Files): Likewise.
26948         * modules/strcasestr-tests (Files): Likewise.
26949         * modules/strchrnul-tests (Files): Likewise.
26950         * modules/strerror-tests (Files): Likewise.
26951         * modules/striconv-tests (Files): Likewise.
26952         * modules/striconveh-tests (Files): Likewise.
26953         * modules/striconveha-tests (Files): Likewise.
26954         * modules/strsignal-tests (Files): Likewise.
26955         * modules/strstr-tests (Files): Likewise.
26956         * modules/strtod-tests (Files): Likewise.
26957         * modules/strverscmp-tests (Files): Likewise.
26958         * modules/symlink-tests (Files): Likewise.
26959         * modules/symlinkat-tests (Files): Likewise.
26960         * modules/trunc-tests (Files): Likewise.
26961         * modules/truncf-tests (Files): Likewise.
26962         * modules/truncl-tests (Files): Likewise.
26963         * modules/uname-tests (Files): Likewise.
26964         * modules/unicase/cased-tests (Files): Likewise.
26965         * modules/unicase/ignorable-tests (Files): Likewise.
26966         * modules/unicase/locale-language-tests (Files): Likewise.
26967         * modules/unicase/tolower-tests (Files): Likewise.
26968         * modules/unicase/totitle-tests (Files): Likewise.
26969         * modules/unicase/toupper-tests (Files): Likewise.
26970         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26971         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26972         * modules/unicase/u8-casefold-tests (Files): Likewise.
26973         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26974         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26975         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26976         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26977         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26978         * modules/unicase/u8-tolower-tests (Files): Likewise.
26979         * modules/unicase/u8-totitle-tests (Files): Likewise.
26980         * modules/unicase/u8-toupper-tests (Files): Likewise.
26981         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26982         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26983         * modules/unicase/u16-casefold-tests (Files): Likewise.
26984         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26985         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26986         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26987         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26988         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26989         * modules/unicase/u16-tolower-tests (Files): Likewise.
26990         * modules/unicase/u16-totitle-tests (Files): Likewise.
26991         * modules/unicase/u16-toupper-tests (Files): Likewise.
26992         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26993         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26994         * modules/unicase/u32-casefold-tests (Files): Likewise.
26995         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26996         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26997         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26998         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26999         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27000         * modules/unicase/u32-tolower-tests (Files): Likewise.
27001         * modules/unicase/u32-totitle-tests (Files): Likewise.
27002         * modules/unicase/u32-toupper-tests (Files): Likewise.
27003         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27004         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27005         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27006         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27007         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27008         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27009         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27010         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27011         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27012         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27013         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27014         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27015         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27016         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27017         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27018         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27019         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27020         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27021         * modules/unictype/block-list-tests (Files): Likewise.
27022         * modules/unictype/block-of-tests (Files): Likewise.
27023         * modules/unictype/block-test-tests (Files): Likewise.
27024         * modules/unictype/category-C-tests (Files): Likewise.
27025         * modules/unictype/category-Cc-tests (Files): Likewise.
27026         * modules/unictype/category-Cf-tests (Files): Likewise.
27027         * modules/unictype/category-Cn-tests (Files): Likewise.
27028         * modules/unictype/category-Co-tests (Files): Likewise.
27029         * modules/unictype/category-Cs-tests (Files): Likewise.
27030         * modules/unictype/category-L-tests (Files): Likewise.
27031         * modules/unictype/category-Ll-tests (Files): Likewise.
27032         * modules/unictype/category-Lm-tests (Files): Likewise.
27033         * modules/unictype/category-Lo-tests (Files): Likewise.
27034         * modules/unictype/category-Lt-tests (Files): Likewise.
27035         * modules/unictype/category-Lu-tests (Files): Likewise.
27036         * modules/unictype/category-M-tests (Files): Likewise.
27037         * modules/unictype/category-Mc-tests (Files): Likewise.
27038         * modules/unictype/category-Me-tests (Files): Likewise.
27039         * modules/unictype/category-Mn-tests (Files): Likewise.
27040         * modules/unictype/category-N-tests (Files): Likewise.
27041         * modules/unictype/category-Nd-tests (Files): Likewise.
27042         * modules/unictype/category-Nl-tests (Files): Likewise.
27043         * modules/unictype/category-No-tests (Files): Likewise.
27044         * modules/unictype/category-P-tests (Files): Likewise.
27045         * modules/unictype/category-Pc-tests (Files): Likewise.
27046         * modules/unictype/category-Pd-tests (Files): Likewise.
27047         * modules/unictype/category-Pe-tests (Files): Likewise.
27048         * modules/unictype/category-Pf-tests (Files): Likewise.
27049         * modules/unictype/category-Pi-tests (Files): Likewise.
27050         * modules/unictype/category-Po-tests (Files): Likewise.
27051         * modules/unictype/category-Ps-tests (Files): Likewise.
27052         * modules/unictype/category-S-tests (Files): Likewise.
27053         * modules/unictype/category-Sc-tests (Files): Likewise.
27054         * modules/unictype/category-Sk-tests (Files): Likewise.
27055         * modules/unictype/category-Sm-tests (Files): Likewise.
27056         * modules/unictype/category-So-tests (Files): Likewise.
27057         * modules/unictype/category-Z-tests (Files): Likewise.
27058         * modules/unictype/category-Zl-tests (Files): Likewise.
27059         * modules/unictype/category-Zp-tests (Files): Likewise.
27060         * modules/unictype/category-Zs-tests (Files): Likewise.
27061         * modules/unictype/category-and-not-tests (Files): Likewise.
27062         * modules/unictype/category-and-tests (Files): Likewise.
27063         * modules/unictype/category-byname-tests (Files): Likewise.
27064         * modules/unictype/category-name-tests (Files): Likewise.
27065         * modules/unictype/category-none-tests (Files): Likewise.
27066         * modules/unictype/category-of-tests (Files): Likewise.
27067         * modules/unictype/category-or-tests (Files): Likewise.
27068         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27069         * modules/unictype/combining-class-tests (Files): Likewise.
27070         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27071         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27072         * modules/unictype/ctype-blank-tests (Files): Likewise.
27073         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27074         * modules/unictype/ctype-digit-tests (Files): Likewise.
27075         * modules/unictype/ctype-graph-tests (Files): Likewise.
27076         * modules/unictype/ctype-lower-tests (Files): Likewise.
27077         * modules/unictype/ctype-print-tests (Files): Likewise.
27078         * modules/unictype/ctype-punct-tests (Files): Likewise.
27079         * modules/unictype/ctype-space-tests (Files): Likewise.
27080         * modules/unictype/ctype-upper-tests (Files): Likewise.
27081         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27082         * modules/unictype/decimal-digit-tests (Files): Likewise.
27083         * modules/unictype/digit-tests (Files): Likewise.
27084         * modules/unictype/mirror-tests (Files): Likewise.
27085         * modules/unictype/numeric-tests (Files): Likewise.
27086         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27087         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27088         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27089         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27090         Likewise.
27091         * modules/unictype/property-bidi-block-separator-tests (Files):
27092         Likewise.
27093         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27094         Likewise.
27095         * modules/unictype/property-bidi-common-separator-tests (Files):
27096         Likewise.
27097         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27098         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27099         Likewise.
27100         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27101         Likewise.
27102         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27103         Likewise.
27104         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27105         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27106         Likewise.
27107         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27108         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27109         Likewise.
27110         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27111         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27112         * modules/unictype/property-bidi-segment-separator-tests (Files):
27113         Likewise.
27114         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27115         * modules/unictype/property-byname-tests (Files): Likewise.
27116         * modules/unictype/property-combining-tests (Files): Likewise.
27117         * modules/unictype/property-composite-tests (Files): Likewise.
27118         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27119         * modules/unictype/property-dash-tests (Files): Likewise.
27120         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27121         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27122         Likewise.
27123         * modules/unictype/property-deprecated-tests (Files): Likewise.
27124         * modules/unictype/property-diacritic-tests (Files): Likewise.
27125         * modules/unictype/property-extender-tests (Files): Likewise.
27126         * modules/unictype/property-format-control-tests (Files): Likewise.
27127         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27128         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27129         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27130         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27131         * modules/unictype/property-hyphen-tests (Files): Likewise.
27132         * modules/unictype/property-id-continue-tests (Files): Likewise.
27133         * modules/unictype/property-id-start-tests (Files): Likewise.
27134         * modules/unictype/property-ideographic-tests (Files): Likewise.
27135         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27136         * modules/unictype/property-ids-trinary-operator-tests (Files):
27137         Likewise.
27138         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27139         * modules/unictype/property-iso-control-tests (Files): Likewise.
27140         * modules/unictype/property-join-control-tests (Files): Likewise.
27141         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27142         * modules/unictype/property-line-separator-tests (Files): Likewise.
27143         * modules/unictype/property-logical-order-exception-tests (Files):
27144         Likewise.
27145         * modules/unictype/property-lowercase-tests (Files): Likewise.
27146         * modules/unictype/property-math-tests (Files): Likewise.
27147         * modules/unictype/property-non-break-tests (Files): Likewise.
27148         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27149         * modules/unictype/property-numeric-tests (Files): Likewise.
27150         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27151         * modules/unictype/property-other-default-ignorable-code-point-tests
27152         (Files): Likewise.
27153         * modules/unictype/property-other-grapheme-extend-tests (Files):
27154         Likewise.
27155         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27156         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27157         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27158         * modules/unictype/property-other-math-tests (Files): Likewise.
27159         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27160         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27161         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27162         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27163         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27164         * modules/unictype/property-private-use-tests (Files): Likewise.
27165         * modules/unictype/property-punctuation-tests (Files): Likewise.
27166         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27167         * modules/unictype/property-radical-tests (Files): Likewise.
27168         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27169         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27170         * modules/unictype/property-space-tests (Files): Likewise.
27171         * modules/unictype/property-terminal-punctuation-tests (Files):
27172         Likewise.
27173         * modules/unictype/property-test-tests (Files): Likewise.
27174         * modules/unictype/property-titlecase-tests (Files): Likewise.
27175         * modules/unictype/property-unassigned-code-value-tests (Files):
27176         Likewise.
27177         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27178         * modules/unictype/property-uppercase-tests (Files): Likewise.
27179         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27180         * modules/unictype/property-white-space-tests (Files): Likewise.
27181         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27182         * modules/unictype/property-xid-start-tests (Files): Likewise.
27183         * modules/unictype/property-zero-width-tests (Files): Likewise.
27184         * modules/unictype/scripts-tests (Files): Likewise.
27185         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27186         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27187         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27188         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27189         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27190         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27191         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27192         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27193         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27194         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27195         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27196         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27197         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27198         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27199         * modules/uninorm/composition-tests (Files): Likewise.
27200         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27201         * modules/uninorm/decomposition-tests (Files): Likewise.
27202         * modules/uninorm/filter-tests (Files): Likewise.
27203         * modules/uninorm/nfc-tests (Files): Likewise.
27204         * modules/uninorm/nfd-tests (Files): Likewise.
27205         * modules/uninorm/nfkc-tests (Files): Likewise.
27206         * modules/uninorm/nfkd-tests (Files): Likewise.
27207         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27208         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27209         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27210         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27211         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27212         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27213         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27214         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27215         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27216         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27217         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27218         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27219         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27220         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27221         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27222         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27223         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27224         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27225         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27226         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27227         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27228         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27229         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27230         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27231         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27232         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27233         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27234         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27235         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27236         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27237         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27238         * modules/uniwidth/u8-width-tests (Files): Likewise.
27239         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27240         * modules/uniwidth/u16-width-tests (Files): Likewise.
27241         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27242         * modules/uniwidth/u32-width-tests (Files): Likewise.
27243         * modules/uniwidth/width-tests (Files): Likewise.
27244         * modules/unlink-tests (Files): Likewise.
27245         * modules/unsetenv-tests (Files): Likewise.
27246         * modules/usleep-tests (Files): Likewise.
27247         * modules/utimens-tests (Files): Likewise.
27248         * modules/utimensat-tests (Files): Likewise.
27249         * modules/vasnprintf-posix-tests (Files): Likewise.
27250         * modules/vasnprintf-tests (Files): Likewise.
27251         * modules/vasprintf-posix-tests (Files): Likewise.
27252         * modules/vasprintf-tests (Files): Likewise.
27253         * modules/vdprintf-posix-tests (Files): Likewise.
27254         * modules/vfprintf-posix-tests (Files): Likewise.
27255         * modules/vprintf-posix-tests (Files): Likewise.
27256         * modules/vsnprintf-posix-tests (Files): Likewise.
27257         * modules/vsnprintf-tests (Files): Likewise.
27258         * modules/vsprintf-posix-tests (Files): Likewise.
27259         * modules/wcrtomb-tests (Files): Likewise.
27260         * modules/wcsnrtombs-tests (Files): Likewise.
27261         * modules/wcsrtombs-tests (Files): Likewise.
27262         * modules/wctype-tests (Files): Likewise.
27263         * modules/wcwidth-tests (Files): Likewise.
27264         * modules/xmemdup0-tests (Files): Likewise.
27265         * modules/xprintf-posix-tests (Files): Likewise.
27266         * modules/xvasprintf-tests (Files): Likewise.
27267
27268 2009-12-24  Eric Blake  <ebb9@byu.net>
27269
27270         test-nanosleep: fix typo
27271         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27272         patch.
27273         Reported by Bruno Haible.
27274
27275 2009-12-24  Bruno Haible  <bruno@clisp.org>
27276
27277         Reduce namespace pollution on glibc systems.
27278         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27279         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27280         systems.
27281         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27282         <getopt.h> on glibc systems.
27283         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27284         systems.
27285         * lib/fcntl.c: Include <unistd.h> here instead.
27286
27287 2009-12-24  Bruno Haible  <bruno@clisp.org>
27288
27289         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27290
27291 2009-12-24  Eric Blake  <ebb9@byu.net>
27292
27293         tests: add signature checks
27294         * tests/signature.h (SIGNATURE_CHECK): New file.
27295         * modules/atexit-tests (Files): Use it.
27296         * modules/btowc-tests (Files): Likewise.
27297         * modules/canonicalize-lgpl-tests (Files): Likewise.
27298         * modules/ceilf-tests (Files): Likewise.
27299         * modules/ceill-tests (Files): Likewise.
27300         * modules/chown-tests (Files): Likewise.
27301         * modules/dprintf-posix-tests (Files): Likewise.
27302         * modules/dup2-tests (Files): Likewise.
27303         * modules/dup3-tests (Files): Likewise.
27304         * modules/duplocale-tests (Files): Likewise.
27305         * modules/fchdir-tests (Files): Likewise.
27306         * modules/fcntl-tests (Files): Likewise.
27307         * modules/fdopendir-tests (Files): Likewise.
27308         * modules/fflush-tests (Files): Likewise.
27309         * modules/flock-tests (Files): Likewise.
27310         * modules/floorf-tests (Files): Likewise.
27311         * modules/floorl-tests (Files): Likewise.
27312         * modules/fnmatch-tests (Files): Likewise.
27313         * modules/fopen-tests (Files): Likewise.
27314         * modules/fprintf-posix-tests (Files): Likewise.
27315         * modules/freopen-tests (Files): Likewise.
27316         * modules/frexp-nolibm-tests (Files): Likewise.
27317         * modules/frexp-tests (Files): Likewise.
27318         * modules/frexpl-nolibm-tests (Files): Likewise.
27319         * modules/frexpl-tests (Files): Likewise.
27320         * modules/fseek-tests (Files): Likewise.
27321         * modules/fseeko-tests (Files): Likewise.
27322         * modules/fsync-tests (Files): Likewise.
27323         * modules/ftell-tests (Files): Likewise.
27324         * modules/ftello-tests (Files): Likewise.
27325         * modules/futimens-tests (Files): Likewise.
27326         * modules/getaddrinfo-tests (Files): Likewise.
27327         * modules/getcwd-tests (Files): Likewise.
27328         * modules/getdelim-tests (Files): Likewise.
27329         * modules/getdtablesize-tests (Files): Likewise.
27330         * modules/getgroups-tests (Files): Likewise.
27331         * modules/gethostname-tests (Files): Likewise.
27332         * modules/getline-tests (Files): Likewise.
27333         * modules/getopt-posix-tests (Files): Likewise.
27334         * modules/gettimeofday-tests (Files): Likewise.
27335         * modules/glob-tests (Files): Likewise.
27336         * modules/iconv-tests (Files): Likewise.
27337         * modules/inet_ntop-tests (Files): Likewise.
27338         * modules/inet_pton-tests (Files): Likewise.
27339         * modules/isblank-tests (Files): Likewise.
27340         * modules/lchown-tests (Files): Likewise.
27341         * modules/ldexpl-tests (Files): Likewise.
27342         * modules/link-tests (Files): Likewise.
27343         * modules/linkat-tests (Files): Likewise.
27344         * modules/lseek-tests (Files): Likewise.
27345         * modules/lstat-tests (Files): Likewise.
27346         * modules/mbrtowc-tests (Files): Likewise.
27347         * modules/mbsinit-tests (Files): Likewise.
27348         * modules/mbsnrtowcs-tests (Files): Likewise.
27349         * modules/mbsrtowcs-tests (Files): Likewise.
27350         * modules/memchr-tests (Files): Likewise.
27351         * modules/memcmp-tests (Files): Likewise.
27352         * modules/memmem-tests (Files): Likewise.
27353         * modules/memrchr-tests (Files): Likewise.
27354         * modules/mkdir-tests (Files): Likewise.
27355         * modules/mkfifo-tests (Files): Likewise.
27356         * modules/mkfifoat-tests (Files): Likewise.
27357         * modules/mknod-tests (Files): Likewise.
27358         * modules/nanosleep-tests (Files): Likewise.
27359         * modules/nl_langinfo-tests (Files): Likewise.
27360         * modules/obstack-printf-tests (Files): Likewise.
27361         * modules/open-tests (Files): Likewise.
27362         * modules/openat-tests (Files): Likewise.
27363         * modules/perror-tests (Files): Likewise.
27364         * modules/pipe2-tests (Files): Likewise.
27365         * modules/poll-tests (Files): Likewise.
27366         * modules/popen-tests (Files): Likewise.
27367         * modules/posix_spawn-tests (Files): Likewise.
27368         * modules/posix_spawnp-tests (Files): Likewise.
27369         * modules/pread-tests (Files): Likewise.
27370         * modules/printf-posix-tests (Files): Likewise.
27371         * modules/pty-tests (Files): Likewise.
27372         * modules/random_r-tests (Files): Likewise.
27373         * modules/rawmemchr-tests (Files): Likewise.
27374         * modules/readlink-tests (Files): Likewise.
27375         * modules/remove-tests (Files): Likewise.
27376         * modules/rename-tests (Files): Likewise.
27377         * modules/renameat-tests (Files): Likewise.
27378         * modules/rmdir-tests (Files): Likewise.
27379         * modules/round-tests (Files): Likewise.
27380         * modules/roundf-tests (Files): Likewise.
27381         * modules/roundl-tests (Files): Likewise.
27382         * modules/select-tests (Files): Likewise.
27383         * modules/setenv-tests (Files): Likewise.
27384         * modules/sigaction-tests (Files): Likewise.
27385         * modules/sleep-tests (Files): Likewise.
27386         * modules/snprintf-posix-tests (Files): Likewise.
27387         * modules/snprintf-tests (Files): Likewise.
27388         * modules/sprintf-posix-tests (Files): Likewise.
27389         * modules/stat-tests (Files): Likewise.
27390         * modules/strcasestr-tests (Files): Likewise.
27391         * modules/strchrnul-tests (Files): Likewise.
27392         * modules/strerror-tests (Files): Likewise.
27393         * modules/strsignal-tests (Files): Likewise.
27394         * modules/strstr-tests (Files): Likewise.
27395         * modules/strtod-tests (Files): Likewise.
27396         * modules/strverscmp-tests (Files): Likewise.
27397         * modules/symlink-tests (Files): Likewise.
27398         * modules/symlinkat-tests (Files): Likewise.
27399         * modules/times-tests (Files): Likewise.
27400         * modules/trunc-tests (Files): Likewise.
27401         * modules/truncf-tests (Files): Likewise.
27402         * modules/truncl-tests (Files): Likewise.
27403         * modules/tsearch-tests (Files): Likewise.
27404         * modules/uname-tests (Files): Likewise.
27405         * modules/unlink-tests (Files): Likewise.
27406         * modules/unsetenv-tests (Files): Likewise.
27407         * modules/usleep-tests (Files): Likewise.
27408         * modules/utimensat-tests (Files): Likewise.
27409         * modules/vasprintf-tests (Files): Likewise.
27410         * modules/vdprintf-posix-tests (Files): Likewise.
27411         * modules/vfprintf-posix-tests (Files): Likewise.
27412         * modules/vprintf-posix-tests (Files): Likewise.
27413         * modules/vsnprintf-posix-tests (Files): Likewise.
27414         * modules/vsnprintf-tests (Files): Likewise.
27415         * modules/vsprintf-posix-tests (Files): Likewise.
27416         * modules/wcrtomb-tests (Files): Likewise.
27417         * modules/wcsnrtombs-tests (Files): Likewise.
27418         * modules/wcsrtombs-tests (Files): Likewise.
27419         * modules/wcwidth-tests (Files): Likewise.
27420         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27421         * tests/test-isinf.c (isinf): Likewise.
27422         * tests/test-isnan.c (isnan): Likewise.
27423         * tests/test-signbit.c (signbit): Likewise.
27424         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27425         declaration, either as macro or with correct signature.
27426         (select): Ensure function under test is declared with correct
27427         signature in correct header.
27428         * tests/test-atexit.c (atexit): Likewise.
27429         * tests/test-btowc.c (btowc): Likewise.
27430         * tests/test-canonicalize-lgpl.c (realpath)
27431         (canonicalize_file_name): Likewise.
27432         * tests/test-ceilf1.c (ceilf): Likewise.
27433         * tests/test-ceill.c (ceill): Likewise.
27434         * tests/test-chown.c (chown): Likewise.
27435         * tests/test-dprintf-posix.c (dprintf): Likewise.
27436         * tests/test-dup2.c (dup2): Likewise.
27437         * tests/test-dup3.c (dup3): Likewise.
27438         * tests/test-duplocale.c (duplocale): Likewise.
27439         * tests/test-fchdir.c (fchdir): Likewise.
27440         * tests/test-fchownat.c (fchownat): Likewise.
27441         * tests/test-fcntl.c (fcntl): Likewise.
27442         * tests/test-fdopendir.c (fdopendir): Likewise.
27443         * tests/test-fflush.c (fflush): Likewise.
27444         * tests/test-flock.c (flock): Likewise.
27445         * tests/test-floorf1.c (floorf): Likewise.
27446         * tests/test-floorl.c (floorl): Likewise.
27447         * tests/test-fnmatch.c (fnmatch): Likewise.
27448         * tests/test-fopen.c (fopen): Likewise.
27449         * tests/test-fprintf-posix.c (fprintf): Likewise.
27450         * tests/test-freopen.c (freopen): Likewise.
27451         * tests/test-frexp.c (frexp): Likewise.
27452         * tests/test-frexpl.c (frexpl): Likewise.
27453         * tests/test-fseek.c (fseek): Likewise.
27454         * tests/test-fseeko.c (fseeko): Likewise.
27455         * tests/test-fstatat.c (fstatat): Likewise.
27456         * tests/test-fsync.c (fsync): Likewise.
27457         * tests/test-ftell.c (ftell): Likewise.
27458         * tests/test-ftello.c (ftello): Likewise.
27459         * tests/test-futimens.c (futimens): Likewise.
27460         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27461         (gai_strerror): Likewise.
27462         * tests/test-getcwd.c (getcwd): Likewise.
27463         * tests/test-getdelim.c (getdelim): Likewise.
27464         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27465         * tests/test-getgroups.c (getgroups): Likewise.
27466         * tests/test-gethostname.c (gethostname): Likewise.
27467         * tests/test-getline.c (getline): Likewise.
27468         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27469         Likewise.
27470         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27471         * tests/test-glob.c (glob, globfree): Likewise.
27472         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27473         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27474         * tests/test-inet_pton.c (inet_pton): Likewise.
27475         * tests/test-isblank.c (isblank): Likewise.
27476         * tests/test-lchown.c (lchown): Likewise.
27477         * tests/test-ldexpl.c (ldexpl): Likewise.
27478         * tests/test-link.c (link): Likewise.
27479         * tests/test-linkat.c (linkat): Likewise.
27480         * tests/test-lseek.c (lseek): Likewise.
27481         * tests/test-lstat.c (lstat): Likewise.
27482         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27483         * tests/test-mbsinit.c (mbsinit): Likewise.
27484         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27485         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27486         * tests/test-memchr.c (memchr): Likewise.
27487         * tests/test-memcmp.c (memcmp): Likewise.
27488         * tests/test-memmem.c (memmem): Likewise.
27489         * tests/test-memrchr.c (memrchr): Likewise.
27490         * tests/test-mkdir.c (mkdir): Likewise.
27491         * tests/test-mkdirat.c (mkdirat): Likewise.
27492         * tests/test-mkfifo.c (mkfifo): Likewise.
27493         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27494         * tests/test-mknod.c (mknod): Likewise.
27495         * tests/test-nanosleep.c (nanosleep): Likewise.
27496         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27497         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27498         Likewise.
27499         * tests/test-open.c (open): Likewise.
27500         * tests/test-openat.c (openat): Likewise.
27501         * tests/test-perror.c (perror): Likewise.
27502         * tests/test-pipe2.c (pipe2): Likewise.
27503         * tests/test-poll.c (poll): Likewise.
27504         * tests/test-popen.c (popen, pclose): Likewise.
27505         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27506         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27507         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27508         (posix_spawn_file_actions_destroy)
27509         (posix_spawn_file_actions_addclose)
27510         (posix_spawn_file_actions_addopen)
27511         (posix_spawn_file_actions_adddup2): Likewise.
27512         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27513         * tests/test-pread.c (pread): Likewise.
27514         * tests/test-printf-posix.c (printf): Likewise.
27515         * tests/test-pty.c (openpty, forkpty): Likewise.
27516         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27517         (random_r): Likewise.
27518         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27519         * tests/test-readlink.c (readlink): Likewise.
27520         * tests/test-remove.c (remove): Likewise.
27521         * tests/test-rename.c (rename): Likewise.
27522         * tests/test-renameat.c (renameat): Likewise.
27523         * tests/test-rmdir.c (rmdir): Likewise.
27524         * tests/test-round1.c (round): Likewise.
27525         * tests/test-roundf1.c (roundf): Likewise.
27526         * tests/test-roundl.c (roundl): Likewise.
27527         * tests/test-setenv.c (setenv): Likewise.
27528         * tests/test-sigaction.c (sigaction): Likewise.
27529         * tests/test-sleep.c (sleep): Likewise.
27530         * tests/test-snprintf.c (snprintf): Likewise.
27531         * tests/test-sprintf-posix.c (sprintf): Likewise.
27532         * tests/test-stat.c (stat): Likewise.
27533         * tests/test-stpncpy.c (stpncpy): Likewise.
27534         * tests/test-strcasestr.c (strcasestr): Likewise.
27535         * tests/test-strchrnul.c (strchrnul): Likewise.
27536         * tests/test-strerror.c (strerror): Likewise.
27537         * tests/test-strsignal.c (strsignal): Likewise.
27538         * tests/test-strstr.c (strstr): Likewise.
27539         * tests/test-strtod.c (strtod): Likewise.
27540         * tests/test-strverscmp.c (strverscmp): Likewise.
27541         * tests/test-symlink.c (symlink): Likewise.
27542         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27543         * tests/test-times.c (times): Likewise.
27544         * tests/test-trunc1.c (trunc): Likewise.
27545         * tests/test-truncf1.c (truncf): Likewise.
27546         * tests/test-truncl.c (truncl): Likewise.
27547         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27548         Likewise.
27549         * tests/test-uname.c (uname): Likewise.
27550         * tests/test-unlink.c (unlink): Likewise.
27551         * tests/test-unlinkat.c (unlinkat): Likewise.
27552         * tests/test-unsetenv.c (unsetenv): Likewise.
27553         * tests/test-usleep.c (usleep): Likewise.
27554         * tests/test-utimensat.c (utimensat): Likewise.
27555         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27556         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27557         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27558         * tests/test-vprintf-posix.c (vprintf): Likewise.
27559         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27560         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27561         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27562         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27563         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27564         * tests/test-wcwidth.c (wcwidth): Likewise.
27565
27566         build: pull in conditional headers during GNULIB_POSIXCHECK
27567         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27568         definitions from any conditionally-included headers.
27569         * lib/stdlib.in.h (includes): Likewise.
27570         * lib/unistd.in.h (includes): Likewise.
27571
27572 2009-12-24  Bruno Haible  <bruno@clisp.org>
27573
27574         * tests/test-argv-iter.c: Include header file being tested immediately
27575         after config.h.
27576         * tests/test-base64.c: Likewise.
27577         * tests/test-flock.c: Likewise.
27578         * tests/test-fsync.c: Likewise.
27579         * tests/test-getdate.c: Likewise.
27580         * tests/test-getndelim2.c: Likewise.
27581         * tests/test-isfinite.c: Likewise.
27582         * tests/test-isinf.c: Likewise.
27583         * tests/test-strerror.c: Likewise.
27584         * tests/test-strsignal.c: Likewise.
27585
27586 2009-12-23  Eric Blake  <ebb9@byu.net>
27587
27588         unistd: work around cygwin bug
27589         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27590         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27591         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27592
27593 2009-12-23  Bruno Haible  <bruno@clisp.org>
27594
27595         localename: More tests.
27596         * tests/test-localename.c (SIZEOF): New macro.
27597         (categories): New variable.
27598         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27599         test_locale_name_default): Add test w.r.t. thread locale.
27600         (test_locale_name_thread): New function.
27601         (main): Invoke it.
27602
27603         localename: Make aware of thread locale.
27604         * lib/localename.h (gl_locale_name_thread): New declaration.
27605         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27606         behaviour with respect to thread locale.
27607         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27608         <langinfo.h>, glthread/lock.h.
27609         (SIZE_BITS): New macro.
27610         (string_hash): New function.
27611         (struct hash_node): New type.
27612         (HASH_TABLE_SIZE): New macro.
27613         (struniq_hash_table, struniq_lock): New variables.
27614         (struniq): New function.
27615         (gl_locale_name_thread): New function.
27616         (gl_locale_name): Invoke it.
27617         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27618         * modules/localename (Depends-on): Add lock.
27619         Reported by Mike Gran <spk121@yahoo.com>.
27620
27621 2009-12-23  Eric Blake  <ebb9@byu.net>
27622
27623         va-args: new module
27624         * modules/va-args: New file.
27625         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27626         * MODULES.html.sh (Core language properties): Mention it.
27627
27628         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27629         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27630         named alias for __attribute__((__unused__)).
27631         * lib/chown.c: Update client.
27632         * lib/fchmodat.c: Likewise.
27633         * lib/fts.c: Likewise.
27634         * lib/getdate.y: Likewise.
27635         * lib/getgroups.c: Likewise.
27636         * lib/getopt.c: Likewise.
27637         * lib/getugroups.c: Likewise.
27638         * lib/mkdir.c: Likewise.
27639         * lib/mkfifo.c: Likewise.
27640         * lib/mkfifoat.c: Likewise.
27641         * lib/mknod.c: Likewise.
27642         * lib/mknodat.c: Likewise.
27643         * lib/readlink.c: Likewise.
27644         * lib/se-context.in.h: Likewise.
27645         * lib/se-selinux.in.h: Likewise.
27646         * lib/sockets.c: Likewise.
27647         * lib/symlink.c: Likewise.
27648         * lib/symlinkat.c: Likewise.
27649         * lib/unicodeio.c: Likewise.
27650         * lib/unistr.h: Likewise.
27651         * tests/test-areadlink.c: Likewise.
27652         * tests/test-areadlinkat.c: Likewise.
27653         * tests/test-filenamecat.c: Likewise.
27654         * tests/test-fseeko.c: Likewise.
27655         * tests/test-ftello.c: Likewise.
27656         * tests/test-getdate.c: Likewise.
27657         * tests/test-getgroups.c: Likewise.
27658         * tests/test-gethostname.c: Likewise.
27659         * tests/test-quotearg.c: Likewise.
27660         * tests/test-version-etc.c: Likewise.
27661         * tests/test-xalloc-die.c: Likewise.
27662         * tests/test-xfprintf-posix.c: Likewise.
27663         * tests/test-xprintf-posix.c: Likewise.
27664         * tests/test-xvasprintf.c: Likewise.
27665
27666         tests: avoid compiler warnings
27667         * tests/test-fcntl.c (main): Delete unused parameters.
27668         * tests/test-freopen-safer.c (main): Likewise.
27669         * tests/test-xalloc-die.c (main): Mark unused parameters.
27670         * tests/test-fseeko.c (main): Likewise.
27671         * tests/test-ftello.c (main): Likewise.
27672         * tests/test-nanosleep.c (main): Avoid declaration warning.
27673         * tests/test-sleep.c (main): Likewise.
27674         * tests/test-unsetenv.c (main): Silence warning about string
27675         literal.
27676         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27677
27678 2009-12-23  Bruno Haible  <bruno@clisp.org>
27679
27680         * tests/test-localename.c (test_locale_name): New function, extracted
27681         from main. Also test mixed situations.
27682         (test_locale_name_posix, test_locale_name_environ,
27683         test_locale_name_default): New functions.
27684         (main): Invoke them all.
27685         * modules/localename-tests (configure.ac): Test for newlocale.
27686
27687 2009-12-23  Bruno Haible  <bruno@clisp.org>
27688
27689         unistd: Ensure getcwd gets declared before being overridden.
27690         * lib/unistd.in.h: Conditionally include <io.h>.
27691
27692 2009-12-22  Bruno Haible  <bruno@clisp.org>
27693
27694         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27695         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27696         (gl_WCHAR_H): Invoke it.
27697         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27698         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27699         Reported by Karl Berry <karl@freefriends.org>.
27700
27701 2009-12-22  Eric Blake  <ebb9@byu.net>
27702
27703         math, unistd: avoid redundant includes
27704         * lib/math.in.h (isnan): No need to re-include <math.h>.
27705         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27706
27707         getsubopt: work around cygwin bug
27708         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27709         avoid conflicting with system getsubopt.
27710         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27711         bug.
27712
27713         getopt: synchronize from glibc
27714         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27715         parameter order.  Adjust all callers.
27716         (_getopt_internal_r, main): Adjust quoting in error messages.
27717         Drop considerations for outdated POSIX 1003.2 error message.
27718         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27719         callers.
27720         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27721
27722         test-getopt: test stderr behavior
27723         * modules/getopt-posix-tests (Depends-on): Add dup2.
27724         * tests/test-getopt.c (ASSERT): Avoid stderr.
27725         (main): Move stderr to a temporary file.
27726         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27727         Instead, add parameter to inform caller if output occurred.
27728         (test_getopt): Adjust all existing tests to expect silence, and
27729         add new tests of leading ":".
27730         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27731         glibc shortcomings with leading "-:" or "+:" in optstring.
27732         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27733         Likewise.
27734         * doc/posix-functions/getopt.texi (getopt): Likewise.
27735
27736         test-getopt: enhance test
27737         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27738         supports optind=0.
27739         * tests/test-getopt.c (OPTIND_MIN): Move...
27740         * tests/test-getopt.h (OPTIND_MIN): ...here.
27741         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27742         Require that optind=0 works, since modern BSD supports it in
27743         addition to optreset, and since coreutils expects it.
27744         (test_getopt_long_only): New test.
27745         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27746         glibc shortcomings with 'W;', and enforcement of optind=0.
27747         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27748         Likewise.
27749
27750 2009-12-21  Bruno Haible  <bruno@clisp.org>
27751
27752         localename: Improvements for MacOS X and Cygwin.
27753         * lib/localename.h (gl_locale_name_environ): New declaration.
27754         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27755         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27756         (gl_locale_name_posix): Invoke it.
27757         (gl_locale_name_default): Add comments. Use Windows native API also on
27758         Cygwin.
27759
27760 2009-12-21  Bruno Haible  <bruno@clisp.org>
27761
27762         Update list of Win32 locale ids.
27763         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27764         (LANG_SAMI): Renamed from LANG_SAAMI.
27765         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27766         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27767         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27768         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27769         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27770         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27771         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27772         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27773         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27774         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27775         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27776         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27777         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27778         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27779         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27780         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27781         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27782         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27783         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27784         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27785         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27786         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27787         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27788         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27789         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27790         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27791         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27792         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27793         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27794         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27795         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27796         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27797         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27798         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27799         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27800         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27801         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27802         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27803         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27804         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27805         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27806         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27807         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27808         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27809         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27810         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27811         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27812         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27813         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27814         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27815         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27816         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27817         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27818         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27819         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27820         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27821         Add more languages and countries for Sami, Sorbian. Add more countries
27822         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27823         for Pashto. Change country for Syriac, Tswana.
27824
27825 2009-12-21  Eric Blake  <ebb9@byu.net>
27826
27827         test-utimens: avoid spurious failure
27828         * tests/test-chown.h (nap): Factor...
27829         * tests/nap.h: ...into new file.
27830         * tests/test-lchown.h (nap): Avoid duplication.
27831         * tests/test-utimens-common.h (nap): Use shared implementation,
27832         necessary on file systems with 1-second resolution.
27833         * modules/chown-tests (Files): Include new file.
27834         * modules/fdutimensat-tests (Files): Likewise.
27835         * modules/futimens-tests (Files): Likewise.
27836         * modules/lchown-tests (Files): Likewise.
27837         * modules/openat-tests (Files): Likewise.
27838         * modules/utimens-tests (Files): Likewise.
27839         * modules/utimensat-tests (Files): Likewise.
27840
27841 2009-12-19  Eric Blake  <ebb9@byu.net>
27842
27843         futimens, utimensat: work around Linux bug
27844         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27845         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27846         * lib/utimensat.c (rpl_utimensat): Work around it.
27847         * lib/futimens.c (rpl_futimens): Adjust comment.
27848
27849         utimens: work around Linux ctime bug
27850         * lib/utimens.c (detect_ctime_bug): New helper function.
27851         (update_timespec): Differentiate between workaround needed for
27852         this bug vs. what is needed for systems that lack utimensat.
27853         (fdutimens, lutimens): Work around bug.
27854
27855         utimens: check for ctime update
27856         * tests/test-utimens-common.h (check_ctime): Define.
27857         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27858         * tests/test-futimens.h (test_futimens): Likewise.
27859         * tests/test-lutimens.h (test_lutimens): Likewise.
27860         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27861         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27862
27863 2009-12-19  Bruno Haible  <bruno@clisp.org>
27864
27865         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27866         * tests/test-dprintf-posix2.sh: New file.
27867         * tests/test-dprintf-posix2.c: New file.
27868         * modules/dprintf-posix-tests (Files): Add them.
27869         (configure.ac): Check for getrlimit and setrlimit.
27870         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27871
27872 2009-12-19  Bruno Haible  <bruno@clisp.org>
27873
27874         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27875         * tests/test-fprintf-posix3.sh: New file.
27876         * tests/test-fprintf-posix3.c: New file.
27877         * modules/fprintf-posix-tests (Files): Add them.
27878         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27879
27880 2009-12-19  Eric Blake  <ebb9@byu.net>
27881
27882         dirfd: fix prototype
27883         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27884         * lib/dirfd.c (dirfd): Likewise.
27885
27886         canonicalize: reduce memory usage
27887         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27888         allocation to size.
27889         Reported by Solar Designer <solar@openwall.com>.
27890
27891 2009-12-19  Bruno Haible  <bruno@clisp.org>
27892
27893         New module attribute 'Applicability'.
27894         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27895         * gnulib-tool: New option --extract-applicability.
27896         (func_usage): Document it.
27897         (sed_extract_prog): Recognize it.
27898         (func_get_applicability): New function.
27899         (func_import): Generalize handling of 'link-warning' module.
27900         * modules/link-warning (Applicability): New section.
27901         * modules/arg-nonnull (Applicability): New section.
27902         Repoted by Simon Josefsson <simon@josefsson.org>.
27903
27904 2009-12-19  Bruno Haible  <bruno@clisp.org>
27905
27906         fflush: tweak
27907         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27908         * lib/fseeko.c (rpl_fseeko): Likewise.
27909
27910 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27911
27912         * lib/gl_list.h: Fix typo in comment.
27913
27914 2009-12-16  Eric Blake  <ebb9@byu.net>
27915
27916         fcntl: use to simplify other modules
27917         * modules/cloexec (Depends-on): Add fcntl.
27918         * modules/fchdir (Depends-on): Likewise.
27919         * modules/fd-safer-flag (Depends-on): Likewise.
27920         * modules/unistd-safer (Depends-on): Likewise.
27921         * modules/dup3 (configure.ac): Set module indicator.
27922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27923         missing.
27924         * lib/fchdir.c (_gl_register_dup): Fix comment.
27925         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27926         * lib/dup-safer.c (dup_safer): Likewise.
27927         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27928         * lib/dup3.c (dup3): Likewise.
27929         * tests/test-fchdir.c (main): Enhance test.
27930         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27931
27932         fcntl: port portions of fcntl to mingw
27933         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27934         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27935         replacement for mingw.
27936         * modules/fcntl (Description): Update.
27937         (Depends-on): Add dup2.
27938         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27939         * modules/fcntl-h (Makefile.am): Substitute it.
27940         * lib/fcntl.in.h (fcntl): Update declaration.
27941         (F_DUPFD, F_GETFD): New macros, when needed.
27942         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27943         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27944         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27945         we now guarantee.
27946
27947         fcntl: work around cygwin bug in F_DUPFD
27948         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27949         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27950         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27951         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27952         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27953
27954         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27955         * modules/fcntl (Files): List new files.
27956         (configure.ac): Run a test.
27957         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27958         * lib/fcntl.c (rpl_fcntl): Likewise.
27959         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27960         (gl_FCNTL_H): Always replace fcntl.h.
27961         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27962         * lib/fcntl.in.h (fcntl): Declare replacement.
27963         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27964         needed, plus a witness.
27965         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27966         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27967         * tests/test-fcntl.c: New file.
27968         * modules/fcntl-tests: Likewise.
27969
27970         binary-io: avoid potential compilation warning
27971         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27972         directives.
27973
27974         fflush: avoid compilation error on NetBSD
27975         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27976         between off_t and fpos_t, since the latter is sometimes a struct.
27977         * lib/fseeko.c (rpl_fseeko): Likewise.
27978         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27979
27980 2009-12-15  Eric Blake  <ebb9@byu.net>
27981
27982         fcntl-h, stdio, sys_ioctl: fix declarations
27983         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27984         function must not take arguments.
27985         * lib/sys_ioctl.in.h (ioctl): Likewise.
27986         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27987         (open): Add a link warning.
27988
27989 2009-12-15  Jim Meyering  <meyering@redhat.com>
27990
27991         areadlink, areadlink-with-size: relax license to LGPLv2+
27992         * modules/areadlink (License): Relax to LGPLv2+.
27993         * modules/areadlink-with-size (License): Likewise.
27994
27995 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27996             Bruno Haible  <bruno@clisp.org>
27997
27998         *printf: Fix memory leak.
27999         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28000         * lib/vfprintf.c (vfprintf): Likewise.
28001         * lib/dprintf.c (dprintf): Likewise.
28002         * lib/vdprintf.c (vdprintf): Likewise.
28003
28004 2009-12-14  Eric Blake  <ebb9@byu.net>
28005
28006         accept4: adjust module dependencies
28007         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28008
28009         utimens: one more try at avoiding compiler warning
28010         * lib/utimens.c (lutimens): Lower scope of result.
28011
28012 2009-12-13  Bruno Haible  <bruno@clisp.org>
28013
28014         Move the malloc checking from module 'list' to new module 'xlist'.
28015         * modules/xlist: New file.
28016         * lib/gl_xlist.h: New file.
28017         * lib/gl_xlist.c: New file.
28018         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28019         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28020         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28021         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28022         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28023         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28024         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28025         gl_sortedlist_nx_add): New declarations.
28026         (struct gl_list_implementation): Rename and change methods accordingly.
28027         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28028         (gl_list_nx_create): Renamed from gl_list_create.
28029         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28030         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28031         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28032         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28033         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28034         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28035         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28036         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28037         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28038         gl_list_create_empty.
28039         (gl_list_nx_create): Renamed from gl_list_create.
28040         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28041         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28042         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28043         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28044         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28045         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28046         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28047         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28048         * lib/gl_array_list.c: Don't include xalloc.h.
28049         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28050         NULL upon out-of-memory.
28051         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28052         out-of-memory.
28053         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28054         Change return type to 'int'.
28055         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28056         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28057         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28058         upon out-of-memory.
28059         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28060         upon out-of-memory.
28061         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28062         upon out-of-memory.
28063         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28064         upon out-of-memory.
28065         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28066         out-of-memory.
28067         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28068         Update.
28069         (gl_array_list_implementation): Update.
28070         * lib/gl_carray_list.c: Don't include xalloc.h.
28071         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28072         Return NULL upon out-of-memory.
28073         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28074         out-of-memory.
28075         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28076         Change return type to 'int'.
28077         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28078         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28079         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28080         upon out-of-memory.
28081         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28082         upon out-of-memory.
28083         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28084         out-of-memory.
28085         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28086         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28087         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28088         Update.
28089         (gl_carray_list_implementation): Update.
28090         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28091         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28092         gl_linked_create_empty. Return NULL upon out-of-memory.
28093         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28094         out-of-memory.
28095         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28096         Change return type to 'int'. Return -1 upon out-of-memory.
28097         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28098         out-of-memory.
28099         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28100         upon out-of-memory.
28101         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28102         upon out-of-memory.
28103         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28104         NULL upon out-of-memory.
28105         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28106         upon out-of-memory.
28107         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28108         out-of-memory.
28109         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28110         Update.
28111         * lib/gl_linked_list.c: Don't include xalloc.h.
28112         (gl_linked_list_implementation): Update.
28113         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28114         (add_to_bucket): Change return type to 'int'.
28115         (gl_linkedhash_list_implementation): Update.
28116         * lib/gl_anytree_list1.h (free_subtree): New function.
28117         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28118         gl_tree_create_empty. Return NULL upon out-of-memory.
28119         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28120         Change return type to 'int'. Return -1 upon out-of-memory.
28121         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28122         out-of-memory.
28123         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28124         (gl_tree_remove_node): New function, moved here from
28125         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28126         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28127         Update.
28128         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28129         malloc, not xmalloc. Return NULL upon out-of-memory.
28130         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28131         out-of-memory.
28132         (gl_tree_remove_node_from_tree): New function, extracted from
28133         gl_tree_remove_node.
28134         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28135         upon out-of-memory.
28136         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28137         out-of-memory.
28138         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28139         upon out-of-memory.
28140         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28141         upon out-of-memory.
28142         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28143         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28144         not xmalloc. Return NULL upon out-of-memory.
28145         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28146         out-of-memory.
28147         (gl_tree_remove_node_from_tree): New function, extracted from
28148         gl_tree_remove_node.
28149         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28150         upon out-of-memory.
28151         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28152         out-of-memory.
28153         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28154         upon out-of-memory.
28155         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28156         upon out-of-memory.
28157         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28158         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28159         gl_anytree_list1.h before gl_anyavltree_list2.h.
28160         (gl_avltree_list_implementation): Update.
28161         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28162         gl_anytree_list1.h before gl_anyavltree_list2.h.
28163         (gl_rbtree_list_implementation): Update.
28164         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28165         Change return type to 'int'. Return -1 upon out-of-memory. Use
28166         __builtin_expect.
28167         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28168         (gl_avltreehash_list_implementation): Update.
28169         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28170         (gl_rbtreehash_list_implementation): Update.
28171         * modules/array-list (Depends-on): Remove xalloc.
28172         * modules/carray-list (Depends-on): Likewise.
28173         * modules/linked-list (Depends-on): Likewise.
28174         * modules/linkedhash-list (Depends-on): Likewise.
28175         * modules/avltree-list (Depends-on): Likewise.
28176         * modules/rbtree-list (Depends-on): Likewise.
28177         * modules/avltreehash-list (Depends-on): Likewise.
28178         * modules/rbtreehash-list (Depends-on): Likewise.
28179
28180         * modules/xsublist: New file.
28181         * lib/gl_xsublist.h: New file.
28182         * lib/gl_xsublist.c: New file.
28183         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28184         (gl_sublist_nx_create): New declaration.
28185         * lib/gl_sublist.c: Don't include xalloc.h.
28186         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28187         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28188         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28189         Change return type to 'int'. Return -1 upon out-of-memory.
28190         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28191         upon out-of-memory.
28192         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28193         NULL upon out-of-memory.
28194         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28195         upon out-of-memory.
28196         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28197         NULL upon out-of-memory.
28198         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28199         NULL upon out-of-memory.
28200         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28201         upon out-of-memory.
28202         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28203         (gl_sublist_list_implementation): Update.
28204         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28205         upon out-of-memory.
28206         * modules/sublist (Depends-on): Remove xalloc.
28207
28208         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28209         * tests/test-carray_list.c: Likewise.
28210         * tests/test-linked_list.c: Likewise.
28211         * tests/test-linkedhash_list.c: Likewise.
28212         * tests/test-avltree_list.c: Likewise.
28213         * tests/test-rbtree_list.c: Likewise.
28214         * tests/test-avltreehash_list.c: Likewise.
28215         * tests/test-rbtreehash_list.c: Likewise.
28216         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28217         * modules/carray-list-tests (Makefile.am): Likewise.
28218         * modules/linked-list-tests (Makefile.am): Likewise.
28219         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28220         * modules/avltree-list-tests (Makefile.am): Likewise.
28221         * modules/rbtree-list-tests (Makefile.am): Likewise.
28222         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28223         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28224
28225         * NEWS: Mention the changes.
28226
28227         * lib/clean-temp.c: Include gl_xlist.h.
28228         * modules/clean-temp (Depends-on): Add xlist.
28229
28230         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28231         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28232
28233         * tests/test-array_oset.c: Include gl_xlist.h.
28234         * modules/array-oset-tests (Depends-on): Add xlist.
28235
28236         Reported by José E. Marchesi <jemarch@gnu.org>.
28237
28238 2009-12-13  Bruno Haible  <bruno@clisp.org>
28239
28240         Move the malloc checking from module 'oset' to new module 'xoset'.
28241         * modules/xoset: New file.
28242         * lib/gl_xoset.h: New file.
28243         * lib/gl_xoset.c: New file.
28244         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28245         declarations.
28246         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28247         (struct gl_oset_implementation): Rename and change methods accordingly.
28248         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28249         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28250         'int'. Mark as __warn_unused_result__.
28251         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28252         gl_oset_create_empty.
28253         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28254         'int'.
28255         * lib/gl_array_oset.c: Don't include xalloc.h.
28256         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28257         malloc, not xmalloc.
28258         (grow): Change return type to 'int'. Don't call xalloc_die.
28259         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28260         to 'int'.
28261         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28262         'int'.
28263         (gl_array_oset_implementation): Update.
28264         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28265         gl_tree_create_empty.
28266         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28267         'int'.
28268         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28269         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28270         xmalloc.
28271         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28272         not xmalloc.
28273         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28274         xmalloc.
28275         (gl_avltree_oset_implementation): Update.
28276         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28277         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28278         xmalloc.
28279         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28280         not xmalloc.
28281         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28282         xmalloc.
28283         (gl_rbtree_oset_implementation): Update.
28284         * modules/array-oset (Depends-on): Remove xalloc.
28285         * modules/avltree-oset (Depends-on): Likewise.
28286         * modules/rbtree-oset (Depends-on): Likewise.
28287         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28288         * tests/test-avltree_oset.c: Likewise.
28289         * tests/test-rbtree_oset.c: Likewise.
28290         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28291         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28292         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28293         * NEWS: Mention the change.
28294
28295 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28296
28297         maint.mk: allow a project to override release-prep commands
28298         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28299         commands into a new rule.
28300         (release-prep): New rule.
28301         (release-prep-hook): New overridable variable.
28302
28303 2009-12-13  Bruno Haible  <bruno@clisp.org>
28304
28305         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28306
28307 2009-12-13  Jim Meyering  <meyering@redhat.com>
28308
28309         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28310         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28311
28312 2009-12-12  Bruno Haible  <bruno@clisp.org>
28313
28314         duplocale: Tweak.
28315         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28316
28317 2009-12-12  Karl Berry  <karl@gnu.org>
28318
28319         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28320
28321 2009-12-12  Bruno Haible  <bruno@clisp.org>
28322
28323         * m4/po.m4: Undo incorrect untabification.
28324
28325 2009-12-12  Bruno Haible  <bruno@clisp.org>
28326
28327         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28328         * modules/c-strtod (Depends-on): Add locale.
28329         * modules/c-strtold (Depends-on): Likewise.
28330
28331 2009-12-12  Bruno Haible  <bruno@clisp.org>
28332
28333         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28334
28335 2009-12-11  Eric Blake  <ebb9@byu.net>
28336
28337         setenv: relax requirement in light of POSIX ruling
28338         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28339         not NULL.
28340         * tests/test-setenv.c (main): Relax test.
28341         * tests/test-unsetenv.c (main): Likewise.
28342         * doc/posix-functions/setenv.texi (setenv): Document this.
28343         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28344
28345 2009-12-11  Bruno Haible  <bruno@clisp.org>
28346
28347         New module 'fd-safer-flag'.
28348         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28349         * lib/dup-safer.c (dup_safer_flag): Remove function.
28350         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28351         * lib/fd-safer.c (fd_safer_flag): Remove function.
28352         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28353         * modules/cloexec (configure.ac): Drop indicator macro.
28354         * modules/fd-safer-flag: New file.
28355         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28356         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28357         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28358
28359 2009-12-11  Bruno Haible  <bruno@clisp.org>
28360
28361         Tests for module 'nl_langinfo'.
28362         * modules/nl_langinfo-tests: New file.
28363         * tests/test-nl_langinfo.sh: New file.
28364         * tests/test-nl_langinfo.c: New file.
28365
28366         New module 'nl_langinfo'.
28367         * lib/nl_langinfo.c: New file.
28368         * m4/nl_langinfo.m4: New file.
28369         * modules/nl_langinfo: New file.
28370         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28371
28372 2009-12-11  Bruno Haible  <bruno@clisp.org>
28373
28374         Tests for module 'langinfo'.
28375         * modules/langinfo-tests: New file.
28376         * tests/test-langinfo.c: New file.
28377
28378         New module 'langinfo'.
28379         * lib/langinfo.in.h: New file.
28380         * m4/langinfo_h.m4: New file.
28381         * modules/langinfo: New file.
28382         * doc/posix-headers/langinfo.texi: Mention the new module.
28383
28384 2009-12-11  Bruno Haible  <bruno@clisp.org>
28385
28386         * lib/config.charset: Untabify.
28387
28388 2009-12-11  Bruno Haible  <bruno@clisp.org>
28389
28390         * modules/unistd-safer (configure.ac): Drop indicator macro.
28391
28392 2009-12-11  Bruno Haible  <bruno@clisp.org>
28393
28394         Move pipe2-safer code to its own file.
28395         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28396         * lib/pipe-safer.c (pipe2_safer): Remove function.
28397         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28398         (Makefile.am): Add it to lib_SOURCES.
28399
28400 2009-12-10  Bruno Haible  <bruno@clisp.org>
28401
28402         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28403
28404 2009-12-10  Bruno Haible  <bruno@clisp.org>
28405
28406         Declare which arguments expect non-NULL values, for GCC and clang.
28407         * build-aux/arg-nonnull.h: New file.
28408         * modules/arg-nonnull: New file.
28409         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28410         (inet_ntop, inet_pton): Use it.
28411         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28412         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28413         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28414         (open, openat): Use it.
28415         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28416         (fnmatch): Use it.
28417         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28418         (getopt, getopt_long, getopt_long_only): Use it.
28419         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28420         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28421         Use it.
28422         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28423         (iconv_open): Use it.
28424         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28425         (strtoimax, strtoumax): Use it.
28426         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28427         (duplocale): Use it.
28428         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28429         (frexp, frexpl): Use it.
28430         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28431         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28432         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28433         (tsearch, tfind, tdelete, twalk): Use it.
28434         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28435         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28436         sigpending): Use it.
28437         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28438         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28439         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28440         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28441         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28442         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28443         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28444         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28445         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28446         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28447         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28448         Use it.
28449         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28450         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28451         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28452         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28453         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28454         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28455         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28456         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28457         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28458         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28459         strtoull, unsetenv): Use it.
28460         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28461         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28462         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28463         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28464         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28465         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28466         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28467         (strcasecmp, strncasecmp): Use it.
28468         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28469         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28470         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28471         rpl_setsockopt): Use it.
28472         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28473         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28474         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28475         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28476         (gettimeofday): Use it.
28477         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28478         (times): Use it.
28479         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28480         (uname): Use it.
28481         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28482         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28483         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28484         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28485         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28486         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28487         unlinkat, write): Use it.
28488         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28489         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28490         * lib/argv-iter.h: Include arg-nonnull.h.
28491         (_ATTRIBUTE_NONNULL_): Remove macro.
28492         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28493         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28494         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28495         optimization.
28496         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28497         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28498         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28499         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28500         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28501         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28502         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28503         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28504         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28505         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28506         * modules/dirent (Depends-on): Add arg-nonnull.
28507         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28508         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28509         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28510         * modules/fnmatch (Depends-on): Add arg-nonnull.
28511         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28512         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28513         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28514         * modules/glob (Depends-on): Add arg-nonnull.
28515         (Makefile.am): Insert arg-nonnull.h into glob.h.
28516         * modules/iconv_open (Depends-on): Add arg-nonnull.
28517         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28518         * modules/inttypes (Depends-on): Add arg-nonnull.
28519         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28520         * modules/locale (Depends-on): Add arg-nonnull.
28521         (Makefile.am): Insert arg-nonnull.h into locale.h.
28522         * modules/math (Depends-on): Add arg-nonnull.
28523         (Makefile.am): Insert arg-nonnull.h into math.h.
28524         * modules/netdb (Depends-on): Add arg-nonnull.
28525         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28526         * modules/search (Depends-on): Add arg-nonnull.
28527         (Makefile.am): Insert arg-nonnull.h into search.h.
28528         * modules/signal (Depends-on): Add arg-nonnull.
28529         (Makefile.am): Insert arg-nonnull.h into signal.h.
28530         * modules/spawn (Depends-on): Add arg-nonnull.
28531         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28532         * modules/stdio (Depends-on): Add arg-nonnull.
28533         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28534         * modules/stdlib (Depends-on): Add arg-nonnull.
28535         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28536         * modules/string (Depends-on): Add arg-nonnull.
28537         (Makefile.am): Insert arg-nonnull.h into string.h.
28538         * modules/strings (Depends-on): Add arg-nonnull.
28539         (Makefile.am): Insert arg-nonnull.h into strings.h.
28540         * modules/sys_socket (Depends-on): Add arg-nonnull.
28541         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28542         * modules/sys_stat (Depends-on): Add arg-nonnull.
28543         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28544         * modules/sys_time (Depends-on): Add arg-nonnull.
28545         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28546         * modules/sys_times (Depends-on): Add arg-nonnull.
28547         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28548         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28549         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28550         * modules/time (Depends-on): Add arg-nonnull.
28551         (Makefile.am): Insert arg-nonnull.h into time.h.
28552         * modules/unistd (Depends-on): Add arg-nonnull.
28553         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28554         * modules/wchar (Depends-on): Add arg-nonnull.
28555         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28556         * modules/argv-iter (Depends-on): Add arg-nonnull.
28557         * tests/test-canonicalize.c (null_ptr): New function.
28558         (main): Use it.
28559         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28560         (main): Use it.
28561         * tests/test-memmem.c (null_ptr): New function.
28562         (main): Use it.
28563         Reported by Jim Meyering.
28564
28565 2009-12-10  Bruno Haible  <bruno@clisp.org>
28566
28567         Use spaces for indentation, not tabs.
28568         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28569         * m4/*.m4: Untabify.
28570         * build-aux/*.h: Untabify.
28571         * tests/**/*.[hc]: Untabify.
28572         * README: New section "Indent with spaces, not TABs", based on
28573         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28574         * NEWS: Mention the change.
28575
28576 2009-12-10  Bruno Haible  <bruno@clisp.org>
28577
28578         pty test: Fix link error.
28579         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28580         test_pty_LDADD.
28581
28582 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28583
28584         * modules/pty: New file.
28585         * modules/pty-tests: New file.
28586         * m4/pty.m4: New file.
28587         * tests/test-pty.c: New file.
28588         * doc/glibc-headers/pty.texi: Modified.
28589         * doc/glibc-functions/forkpty.texi: Modified.
28590         * doc/glibc-functions/openpty.texi: Modified.
28591
28592 2009-12-10  Bruno Haible  <bruno@clisp.org>
28593
28594         Avoid syntax error in C++ mode.
28595         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28596
28597 2009-12-10  Bruno Haible  <bruno@clisp.org>
28598
28599         Use sed with option -e.
28600         * gnulib-tool (func_version, func_emit_copyright_notice,
28601         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28602         option -e to sed.
28603         * modules/link-warning (Makefile.am): Likewise.
28604
28605 2009-12-10  Jim Meyering  <meyering@redhat.com>
28606
28607         mgetgroups: do not write bytes beyond end of malloc'd buffer
28608         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28609         username, we call getgroups with a one-element-shorter buffer,
28610         but still told it the length was original, max_n_groups.
28611
28612 2009-12-09  Eric Blake  <ebb9@byu.net>
28613
28614         cloexec: relax license
28615         * modules/cloexec (Maintainer): Add myself.
28616         (License): Use LGPL, not GPL.
28617
28618         link-warning: optimize generation
28619         * modules/link-warning (Makefile.am): Reduce process usage.
28620
28621 2009-12-09  Bruno Haible  <bruno@clisp.org>
28622
28623         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28624         workaround was added on 2009-11-17.
28625
28626 2009-12-09  Jim Meyering  <meyering@redhat.com>
28627             Bruno Haible  <bruno@clisp.org>
28628
28629         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28630         * modules/link-warning (Makefile.am): Make the comment-removing sed
28631         command more robust in the face of bootstrap-prepended comment lines.
28632
28633 2009-12-09  Bruno Haible  <bruno@clisp.org>
28634
28635         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28636         most one group.
28637
28638 2009-12-09  Simon Josefsson <simon@josefsson.org>
28639             Bruno Haible  <bruno@clisp.org>
28640
28641         * build-aux/link-warning.h: Add copyright notice.
28642         * modules/link-warning (Makefile.am): Generate link-warning.h from
28643         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28644         * NEWS: Mention change in link-warning module.
28645         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28646         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28647         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28648         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28649         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28650         * modules/math (Makefile.am): Add dependency to math.h.
28651         * modules/search (Makefile.am): Add dependency to search.h.
28652         * modules/signal (Makefile.am): Add dependency to signal.h.
28653         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28654         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28655         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28656         * modules/string (Makefile.am): Add dependency to string.h.
28657         * modules/strings (Makefile.am): Add dependency to strings.h.
28658         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28659         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28660         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28661         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28662         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28663         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28664         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28665         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28666         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28667
28668 2009-12-09  Bruno Haible  <bruno@clisp.org>
28669
28670         fchdir: Optimize away rpl_fstat when possible.
28671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28672         REPLACE_OPEN_DIRECTORY.
28673         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28674
28675 2009-12-09  Bruno Haible  <bruno@clisp.org>
28676
28677         * lib/fchdir.c: Update comment.
28678
28679 2009-12-09  Bruno Haible  <bruno@clisp.org>
28680
28681         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28682
28683 2009-12-08  Eric Blake  <ebb9@byu.net>
28684
28685         fchdir: avoid memory leak on re-registration.
28686         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28687
28688 2009-12-08  Jim Meyering  <meyering@redhat.com>
28689
28690         init.sh: avoid Solaris 10 /bin/sh portability problem
28691         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28692         sourced script:
28693           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28694           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28695           bar
28696         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28697         and two tests used that idiom.
28698         * tests/init.sh: Update suggested usage comments.
28699         (path_prepend_): New function, to be used in place
28700         of the --src-path=DIR option.
28701         (setup_): Move PATH-prepending code into path_prepend_.
28702         * tests/test-pread.sh: Adapt to new usage.
28703         * tests/test-xalloc-die.sh: Likewise.
28704
28705 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28706
28707         * doc/gnulib.texi (Glibc pty.h): Add.
28708         * doc/glibc-functions/forkpty.texi: Add.
28709         * doc/glibc-functions/openpty.texi: Add.
28710         Suggested by Bruno Haible.
28711
28712 2009-12-08  Eric Blake  <ebb9@byu.net>
28713
28714         fchdir: fix logic bugs
28715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28716         * tests/test-fchdir.c (main): Enhance test.
28717         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28718         is in use.
28719
28720         dup2: fix logic bugs
28721         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28722         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28723         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28724         exists.
28725         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28726
28727 2009-12-07  Eric Blake  <ebb9@byu.net>
28728
28729         unlink: fix m4 detection
28730         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28731
28732         unistd-safer: add unit test
28733         * modules/unistd-safer-tests: New file.
28734         * tests/test-dup-safer.c: Likewise.
28735         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28736         * tests/test-dup2.c (setmode): Likewise.
28737         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28738
28739         cloexec: preserve text vs. binary across dup_cloexec
28740         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28741         mode.
28742         * modules/dup2-tests (Depends-on): Add binary-io.
28743         * modules/cloexec-tests (Depends-on): Likewise.
28744         * tests/test-dup2.c (setmode, is_mode): New helpers.
28745         (main): Add tests that translation mode is preserved.
28746         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28747         Reported by Bruno Haible.
28748
28749         mgetgroups: reduce duplicate listings
28750         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28751         resulting array.
28752         * tests/test-chown.h (test_chown): Simplify client.
28753         * tests/test-lchown.h (test_lchown): Likewise.
28754
28755 2009-12-06  Bruno Haible  <bruno@clisp.org>
28756
28757         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28758         value.
28759
28760 2009-12-06  Bruno Haible  <bruno@clisp.org>
28761
28762         * lib/progname.c: Include stdio.h, stdlib.h.
28763         (set_program_name): Reject a NULL argument.
28764
28765 2009-12-05  Eric Blake  <ebb9@byu.net>
28766
28767         pipe2-safer: new module
28768         * modules/pipe2-safer: New file.
28769         * lib/unistd-safer.h (pipe2_safer): New prototype.
28770         * lib/unistd--.h (pipe2): New wrapper.
28771         * lib/pipe-safer.c (pipe2_safer): New function.
28772         * modules/pipe (Depends-on): Add pipe2-safer.
28773         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28774
28775         stdlib-safer: preserve cloexec flag for mkostemp[s]
28776         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28777         fd_safer_flag.
28778
28779         unistd-safer: allow preservation of cloexec status via flag
28780         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28781         prototypes.
28782         * lib/dup-safer.c (dup_safer_flag): New function.
28783         * lib/fd-safer.c (fd_safer_flag): Likewise.
28784         * modules/cloexec (configure.ac): Set witness.
28785
28786         test-dup2: enhance test
28787         * modules/dup2-tests (Depends-on): Add cloexec.
28788         * tests/test-dup2.c (main): Enhance test.
28789
28790         cloexec: add dup_cloexec
28791         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28792         header and comments.
28793         * lib/cloexec.c (set_cloexec_flag): Add comments.
28794         (dup_cloexec): New function, with mingw implementation borrowed
28795         from...
28796         * lib/w32spawn.h (dup_noinherit): ...here.
28797         * modules/execute (Depends-on): Add cloexec.
28798         * modules/pipe (Depends-on): Likewise.
28799         * modules/cloexec (Depends-on): Add dup2.
28800         * modules/cloexec-tests (Files): New file.
28801         * tests/test-cloexec.c: Likewise.
28802
28803         test-xalloc-die: fix test for mingw
28804         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28805         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28806         directory and .exe suffix off argv[0] output.
28807
28808         test-fseeko: fix test for mingw
28809         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28810         than undefining fseek, so test will pass on mingw.
28811
28812 2009-12-05  Bruno Haible  <bruno@clisp.org>
28813
28814         * lib/progname.h (set_program_name): Clarify specification.
28815         * lib/progname.c (set_program_name): Likewise.
28816         Reported by Jim Meyering.
28817
28818 2009-12-05  Jim Meyering  <meyering@redhat.com>
28819
28820         maint.mk: backslash-escape parens in default regexp
28821         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28822         backslash-escape the literal parentheses.
28823
28824         maint.mk: news-date-check: use grep -E
28825         * top/maint.mk (today): Define a Make variable, not a...
28826         (news-date-check): ...shell variable.
28827         (news-date-regexp): Use the Make variable.
28828         Use grep's -E option.  Change the failing diagnostic to mention
28829         the variable, $(news-date-regexp).
28830
28831 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28832
28833         maintainer-makefile: allow customization of NEWS entry format
28834         * top/maint.mk (news-date-regexp): New overridable variable.
28835         (news-date-check): Use it.
28836
28837 2009-12-04  Eric Blake  <ebb9@byu.net>
28838
28839         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28840         * lib/mgetgroups.h (xgetgroups): New prototype.
28841         * lib/mgetgroups.c (xgetgroups): New wrapper.
28842         (mgetgroups): Handle ENOSYS.
28843         * modules/mgetgroups (Depends-on): Add realloc.
28844         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28845
28846         mgetgroups: avoid argument promotion issues with -1
28847         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28848         for invalid gid_t.
28849         * tests/test-chown.h (getegid, test_chown): Likewise.
28850         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28851
28852 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28853
28854         exclude: Fix header file problems.
28855         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28856
28857 2009-12-01  Jim Meyering  <meyering@redhat.com>
28858
28859         fts: fts_open: do not let an empty string cause immediate failure
28860         This is required in support of GNU rm, for which the command
28861         "rm A '' B" must process and remove both A and B, in spite of
28862         the empty string argument.
28863         * lib/fts.c (fts_open): Do not let the presence of an empty string
28864         cause fts_open to fail immediately.  Most fts-using tools must be
28865         able to process all arguments, in order, and can be expected to
28866         diagnose such arguments themselves.
28867
28868 2009-11-30  Eric Blake  <ebb9@byu.net>
28869
28870         utimens: fix compilation error
28871         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28872         Declare variable at right scope.
28873
28874 2009-11-29  Jim Meyering  <meyering@redhat.com>
28875
28876         bootstrap: handle perl-5.11's changed --version output
28877         * build-aux/bootstrap (get_version): Handle perl separately,
28878         since perl-5.11's --version output is different.
28879
28880 2009-11-28  Jim Meyering  <meyering@redhat.com>
28881
28882         userspec: depend on the inttostr module, too
28883         * modules/userspec (Depends-on): Add inttostr.
28884
28885         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28886         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28887         number of MAXUID when it evaluates to (uid_t) -1.
28888         Likewise for group ID.  Reported by Matt McCutchen in
28889         <http://savannah.gnu.org/bugs/?28113>
28890
28891         userspec: reformat to use spaces, not TABs
28892         * lib/userspec.c: Expand TABs to spaces.
28893         Add Emacs' "indent-tabs-mode: nil" hint.
28894
28895 2009-11-27  Eric Blake  <ebb9@byu.net>
28896
28897         getopt-gnu: flush out another BSD bug
28898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28899         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28900         flush out BSD bug.
28901         * tests/test-getopt.h (test_getopt): End lists with NULL.
28902         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28903         (test_getopt_long_posix): Enhance test.
28904         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28905         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28906         getopt-gnu.
28907         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28908         Likewise.
28909
28910 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28911
28912         * modules/idpriv-droptemp-tests (Notice): Fix text.
28913
28914 2009-11-27  Jim Meyering  <meyering@redhat.com>
28915
28916         test-xalloc-die: avoid spurious failure due to libtool argv difference
28917         In a libtool-enabled project, this test would fail due to a difference
28918         in the emitted program name, e.g.,
28919         -test-xalloc-die: memory exhausted
28920         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28921         Use program to avoid that.
28922         * modules/xalloc-die-tests (Depends-on): Add progname.
28923         * tests/test-xalloc-die.c: Include progname.h".
28924         (program_name): Remove decl.
28925         (main): Call set_program_name.
28926         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28927
28928 2009-11-26  Richard Jones  <rjones@redhat.com>
28929
28930         w32sock: leave win32 error in place.
28931         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28932
28933 2009-11-26  Eric Blake  <ebb9@byu.net>
28934
28935         init.sh: suggest to use skip_ and fail_ functions in comments
28936         * tests/init.sh: Add a sentence.
28937
28938 2009-11-25  Bruno Haible  <bruno@clisp.org>
28939
28940         init.sh: add documentation in comments
28941         * tests/init.sh: Add some developer and user documentation.
28942
28943 2009-11-26  Jim Meyering  <meyering@redhat.com>
28944
28945         init.sh: accommodate even those who specify bogus srcdir manually
28946         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28947         configure-time tests to be sanitized, so that there is no need to
28948         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28949         (with no double quotes) suffices.  However, since tests may be
28950         invoked manually, and since you may explicitly set srcdir to the
28951         name of a directory containing spaces, do quote its uses here.
28952         * tests/test-pread.sh: Likewise.
28953         Suggested by Bruno Haible.
28954
28955         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28956         * tests/test-pread.sh: Write no data into the pipe, because
28957         test-pread actually reads none.  This avoids a diagnostic,
28958         "bash: echo: write error: Broken pipe", that arises in the unusual
28959         event something is ignoring SIGPIPE, and might be interpreted
28960         as some sort of failure.  Reported by Bruno Haible.
28961
28962 2009-11-25  Jim Meyering  <meyering@redhat.com>
28963
28964         test-pread: cover failure with ESPIPE and EINVAL
28965         * tests/test-pread.c (main): Test for failure, too.
28966         * tests/test-pread.sh: Invoke with stdin on a pipe.
28967         Suggested by Eric Blake.
28968
28969         pread: improvement and fix
28970         * modules/pread (Depends-on): Depend on lseek, for portability to
28971         e.g., mingw.  Suggested by Eric Blake.
28972         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28973
28974         unistd.in.h: correct declaration of pread
28975         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28976         Reported by Richard W.M. Jones.
28977
28978         test-pread.sh: distribute the test script
28979         * modules/pread-tests (Files): Include test-pread.sh.
28980
28981         test-pread.sh: clean up
28982         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28983         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28984         That is unnecessary, since it's always ".".
28985         Suggestion from Eric Blake.
28986
28987         test-pread.sh: make executable
28988         * tests/test-pread.sh: Set executable bit.
28989         Reported by Eric Blake.
28990
28991         correct typo in test-pread.sh
28992         * tests/test-pread.sh: Add #! line.
28993
28994         test pread
28995         * tests/test-pread.c: New file.
28996         * tests/test-pread.sh: Likewise.
28997         * modules/pread-tests: Likewise.
28998
28999         pread: new module
29000         * modules/pread: New file.
29001         * lib/unistd.in.h (pread): Define/declare.
29002         * lib/pread.c (pread): New file.
29003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29004         * modules/unistd (Makefile.am): Substitute witnesses.
29005         * doc/posix-functions/pread.texi (pread): Update.
29006         * MODULES.html.sh: Add pread.
29007
29008 2009-11-25  Jim Meyering  <meyering@redhat.com>
29009
29010         tests/init.sh: new file to be used via most *.sh tests
29011         * tests/init.sh: New file.
29012
29013 2009-11-25  Eric Blake  <ebb9@byu.net>
29014
29015         utimens: work around older Linux failure with symlinks
29016         * lib/utimens.c (lutimensat_works_really): New variable.
29017         (fdutimens, lutimens): Use it to manage kernels that support
29018         nanosecond times on files, but not on symlinks.
29019         Reported by OndÅ™ej Vašík.
29020
29021         utimes: fix configure grammar
29022         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29023
29024 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29025
29026         regex: Fix fastmap for multibyte character ranges.
29027         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29028         characters when a multibyte character range is included.
29029
29030 2009-11-22  Andy Wingo  <wingo@pobox.com>
29031
29032         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29033         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29034
29035 2009-11-24  Bruno Haible  <bruno@clisp.org>
29036
29037         doc: Most *_l functions exist in MacOS X 10.5.
29038         * doc/posix-functions/duplocale.texi: Update platforms list.
29039         * doc/posix-functions/freelocale.texi: Likewise.
29040         * doc/posix-functions/newlocale.texi: Likewise.
29041         * doc/posix-functions/uselocale.texi: Likewise.
29042         * doc/posix-functions/isalnum_l.texi: Likewise.
29043         * doc/posix-functions/isalpha_l.texi: Likewise.
29044         * doc/posix-functions/isblank_l.texi: Likewise.
29045         * doc/posix-functions/iscntrl_l.texi: Likewise.
29046         * doc/posix-functions/isdigit_l.texi: Likewise.
29047         * doc/posix-functions/isgraph_l.texi: Likewise.
29048         * doc/posix-functions/islower_l.texi: Likewise.
29049         * doc/posix-functions/isprint_l.texi: Likewise.
29050         * doc/posix-functions/ispunct_l.texi: Likewise.
29051         * doc/posix-functions/isspace_l.texi: Likewise.
29052         * doc/posix-functions/isupper_l.texi: Likewise.
29053         * doc/posix-functions/iswalnum_l.texi: Likewise.
29054         * doc/posix-functions/iswalpha_l.texi: Likewise.
29055         * doc/posix-functions/iswblank_l.texi: Likewise.
29056         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29057         * doc/posix-functions/iswctype_l.texi: Likewise.
29058         * doc/posix-functions/iswdigit_l.texi: Likewise.
29059         * doc/posix-functions/iswgraph_l.texi: Likewise.
29060         * doc/posix-functions/iswlower_l.texi: Likewise.
29061         * doc/posix-functions/iswprint_l.texi: Likewise.
29062         * doc/posix-functions/iswpunct_l.texi: Likewise.
29063         * doc/posix-functions/iswspace_l.texi: Likewise.
29064         * doc/posix-functions/iswupper_l.texi: Likewise.
29065         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29066         * doc/posix-functions/isxdigit_l.texi: Likewise.
29067         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29068         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29069         * doc/posix-functions/strcoll_l.texi: Likewise.
29070         * doc/posix-functions/strfmon_l.texi: Likewise.
29071         * doc/posix-functions/strftime_l.texi: Likewise.
29072         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29073         * doc/posix-functions/strxfrm_l.texi: Likewise.
29074         * doc/posix-functions/tolower_l.texi: Likewise.
29075         * doc/posix-functions/toupper_l.texi: Likewise.
29076         * doc/posix-functions/towctrans_l.texi: Likewise.
29077         * doc/posix-functions/towlower_l.texi: Likewise.
29078         * doc/posix-functions/towupper_l.texi: Likewise.
29079         * doc/posix-functions/wcscoll_l.texi: Likewise.
29080         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29081         * doc/posix-functions/wctrans_l.texi: Likewise.
29082         * doc/posix-functions/wctype_l.texi: Likewise.
29083         * doc/glibc-functions/strptime_l.texi: Likewise.
29084         * doc/glibc-functions/strtod_l.texi: Likewise.
29085         * doc/glibc-functions/strtof_l.texi: Likewise.
29086         * doc/glibc-functions/strtol_l.texi: Likewise.
29087         * doc/glibc-functions/strtold_l.texi: Likewise.
29088         * doc/glibc-functions/strtoll_l.texi: Likewise.
29089         * doc/glibc-functions/strtoul_l.texi: Likewise.
29090         * doc/glibc-functions/strtoull_l.texi: Likewise.
29091         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29092         * doc/glibc-functions/wcstod_l.texi: Likewise.
29093         * doc/glibc-functions/wcstof_l.texi: Likewise.
29094         * doc/glibc-functions/wcstol_l.texi: Likewise.
29095         * doc/glibc-functions/wcstold_l.texi: Likewise.
29096         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29097         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29098         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29099
29100 2009-11-24  Bruno Haible  <bruno@clisp.org>
29101
29102         duplocale: Fix logic bug.
29103         * lib/duplocale.c: Don't include <langinfo.h>.
29104         (_NL_LOCALE_NAME): Remove macro.
29105         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29106         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29107
29108 2009-11-23  Jim Meyering  <meyering@redhat.com>
29109
29110         test-update-copyright: don't hard-code /usr/bin/perl
29111         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29112         perl to print the current year.  Gilles Espinasse reported that
29113         the replaced use of perl was hard-coded as /usr/bin/perl.
29114
29115 2009-11-23  Bruno Haible  <bruno@clisp.org>
29116
29117         duplocale: Add support for glibc 2.3.x.
29118         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29119
29120 2009-11-22  Bruno Haible  <bruno@clisp.org>
29121
29122         vasnprintf: Tiny optimization.
29123         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29124         MacOS X.
29125
29126 2009-11-22  Bruno Haible  <bruno@clisp.org>
29127
29128         Tests for module 'duplocale'.
29129         * modules/duplocale-tests: New file.
29130         * tests/test-duplocale.c: New file.
29131
29132         New module 'duplocale'.
29133         * m4/duplocale.m4: New file.
29134         * lib/locale.in.h (duplocale): New declaration.
29135         * lib/duplocale.c: New file.
29136         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29137         gl_LOCALE_H_DEFAULTS): New macros.
29138         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29139         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29140         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29141         REPLACE_DUPLOCALE.
29142         * modules/duplocale: New file.
29143         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29144
29145 2009-11-22  Bruno Haible  <bruno@clisp.org>
29146
29147         * modules/locale-tests (configure.ac): Test for newlocale function.
29148         * tests/test-locale.c: When the system has extended locale functions,
29149         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29150
29151         locale: Make locale_t available when possible.
29152         * lib/locale.in.h: Include <xlocale.h> when it exists.
29153         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29154         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29155         * modules/locale (Depends-on): Add extensions.
29156         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29157         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29158
29159 2009-11-22  Bruno Haible  <bruno@clisp.org>
29160
29161         Add comments.
29162         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29163         invocation.
29164         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29165         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29166         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29167
29168 2009-11-22  Bruno Haible  <bruno@clisp.org>
29169
29170         error: account for the possibility of freopen (stdout).
29171         * lib/error.c: Include <unistd.h>.
29172         (flush_stdout): New function, extracted from error and error_at_line.
29173         Determine stdout's fd dynamically.
29174         (error, error_at_line): Invoke flush_stdout.
29175         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29176         * modules/error (Depends-on): Add unistd.
29177
29178 2009-11-22  Bruno Haible  <bruno@clisp.org>
29179
29180         diffseq: Add comment.
29181         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29182
29183 2009-11-22  Jim Meyering  <meyering@redhat.com>
29184
29185         c-stack: avoid defining an unused static function
29186         * lib/c-stack.c (find_stack_direction): Do not define this function
29187         when it will not be used.
29188
29189         diffseq: avoid spurious gcc warnings
29190         * lib/diffseq.h (IF_LINT2): Define.
29191         (compareseq): Use it to initialize two members of "part".
29192         This avoids two used-uninitialized warnings.
29193
29194 2009-11-21  Jim Meyering  <meyering@redhat.com>
29195
29196         c-stack: avoid "ignoring return value of `write'" warning
29197         * lib/c-stack.c: Include "ignore-value.h".
29198         (die): Explicitly ignore each write return value.
29199         * modules/c-stack (Depends-on): Add ignore-value.
29200
29201 2009-11-21  Bruno Haible  <bruno@clisp.org>
29202
29203         diffseq: reduce scope of variable 'best'.
29204         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29205         variable, earlier used for two different purposes.
29206
29207 2009-11-21  Jim Meyering  <meyering@redhat.com>
29208
29209         diffseq: remove useless assignment to "best"
29210         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29211         assignment.  At that point "best" is already guaranteed to be zero.
29212
29213 2009-11-20  Eric Blake  <ebb9@byu.net>
29214
29215         build: mention ftp redirector in release announcements
29216         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29217         values that used to come from cfg.mk; mention FTP redirect URL.
29218         * build-aux/announce-gen: Mention the mirror list.
29219         Suggested by Karl Berry.
29220
29221         nanosleep: improve port to mingw
29222         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29224         LIB_NANOSLEEP, but only when needed.
29225         * modules/select (Link): Document LIBSOCKET.
29226         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29227         enough.
29228
29229         nanosleep: work around cygwin bug
29230         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29231         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29232         bug.
29233         (getnow): Delete, not needed.
29234         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29235         LIB_CLOCK_GETTIME.
29236         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29237         clock-time, gettime.
29238         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29239         bug.
29240         * modules/nanosleep-tests: New test.
29241         * tests/test-nanosleep.c: New file.
29242
29243         sleep: work around cygwin bug
29244         * lib/sleep.c (rpl_sleep): Work around the bug.
29245         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29246         (gl_PREREQ_SLEEP): Delete unused macro.
29247         * modules/sleep (Depends-on): Add verify.
29248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29249         * modules/unistd (Makefile.am): Substitute witness.
29250         * lib/unistd.in.h (sleep): Update prototype.
29251         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29252         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29253         * modules/sleep-tests (Depends-on): Check for alarm.
29254
29255 2009-11-20  Jim Meyering  <meyering@redhat.com>
29256
29257         maint.mk: improve sc_prohibit_magic_number_exit
29258         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29259         so it does not match uses like System.exit(1).
29260         Add comments showing how to correct all offenders.
29261
29262 2009-11-19  Eric Blake  <ebb9@byu.net>
29263
29264         xalloc-die-tests: add missing library
29265         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29266
29267         test-xvasprintf: silence compiler warnings
29268         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29269         empty string from gcc.
29270
29271 2009-11-19  Jim Meyering  <meyering@redhat.com>
29272
29273         xfreopen: new module, from coreutils
29274         * modules/xfreopen: New module.
29275         * lib/xfreopen.c: New file.
29276         * lib/xfreopen.h: New file.
29277         * MODULES.html.sh (File stream based Input/Output"): Add it.
29278
29279 2009-11-19  Eric Blake  <ebb9@byu.net>
29280
29281         manywarnings: depend on warnings
29282         * modules/manywarnings (Depends-on): Add warnings.
29283
29284         build: avoid compiler warnings
29285         * lib/select.c (rpl_select): Delete unused variable.
29286         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29287
29288 2009-11-18  Eric Blake  <ebb9@byu.net>
29289
29290         tests: avoid false negative with --with-packager
29291         * tests/test-version-etc.sh: Discard packager information.
29292         * tests/test-argp-version-etc-1.sh: Likewise.
29293         Reported by Mike Frysinger.
29294
29295         utimens: fix regression on Solaris
29296         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29297         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29298         can only change fd timestamps via futimesat.  Instead, use an
29299         additional witness macro to avoid BSD bug.
29300         Reported by Jim Meyering.
29301
29302 2009-11-17  Eric Blake  <ebb9@byu.net>
29303
29304         usleep: use it to simplify tests
29305         * modules/stat-time-tests (Depends-on): Add usleep.
29306         (configure.ac): Drop usleep check.
29307         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29308         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29309         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29310         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29311         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29312         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29313         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29314         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29315         Likewise.
29316         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29317         * tests/test-lchown.h (nap): Likewise.
29318         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29319         * tests/test-stat-time.c (nap): Likewise.
29320         * tests/test-utimens-common.h (nap): Update comments.
29321
29322         usleep: new module
29323         * modules/usleep: New file.
29324         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29325         * lib/usleep.c (usleep): Likewise.
29326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29327         * modules/unistd (Makefile.am): Substitute witnesses.
29328         * lib/unistd.in.h (usleep): Add declaration.
29329         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29330         * MODULES.html.sh (Date and time): Likewise.
29331         * modules/usleep-tests (Depends-on): New test.
29332         * tests/test-usleep.c: New file.
29333
29334         chown: work around OpenBSD bug
29335         * lib/chown.c (rpl_chown): Work around the bug.
29336         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29337         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29338         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29339         * modules/chown (Depends-on): Add stdbool.
29340         * modules/lchown (Depends-on): Likewise.
29341         * doc/posix-functions/chown.texi (chown): Document the bug.
29342         * doc/posix-functions/lchown.texi (lchown): Likewise.
29343         * tests/test-lchown.h (test_chown): Relax test.
29344
29345         mkstemp: avoid conflict with C++ keyword template
29346         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29347         * lib/mkostemp.c (mkostemp): Likewise.
29348         * lib/mkostemps.c (mkostemps): Likewise.
29349         * lib/mkstemp.c (mkstemp): Likewise.
29350         * lib/mkstemps.c (mkstemps): Likewise.
29351
29352         xalloc-die-tests: optimize
29353         * tests/test-xalloc-die.sh: Reduce number of processes.
29354
29355 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29356
29357         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29358         patch from ludo@gnu.org (Ludovic Courtès).
29359
29360 2009-11-17  Jim Meyering  <meyering@redhat.com>
29361
29362         version-etc: use proper license string
29363         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29364         * modules/version-etc-fsf: Likewise.
29365
29366 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29367
29368         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29369         printed to stdout.  Deal with EOL differences.
29370
29371 2009-11-17  Eric Blake  <ebb9@byu.net>
29372
29373         unsetenv: work around Solaris bug
29374         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29375         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29376         Reported by Jim Meyering.
29377
29378         vasnprintf: avoid compiler warnings
29379         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29380         variables.
29381         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29382
29383 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29384
29385         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29386         settings since xalloc-die is no longer the self test,
29387         xalloc-die.sh is.
29388
29389 2009-11-17  Jim Meyering  <meyering@redhat.com>
29390
29391         test-xalloc-die.sh: make the code agree with the commit log
29392         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29393         at the end, just in case you happen to have a test-xalloc-die
29394         program in some other PATH directory.
29395
29396         test-xalloc-die.sh: fix a portability bug
29397         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29398         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29399         Otherwise, argv[0] (as often seen in diagnostics) would be too
29400         system-dependent, sometimes with, and sometimes without the leading "./".
29401
29402         version-etc-fsf: relax license to LGPLv3+
29403         * modules/version-etc-fsf (License): Relax license.
29404
29405 2009-11-16  Eric Blake  <ebb9@byu.net>
29406
29407         xalloc-die-tests: avoid printing null pointer
29408         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29409         shell script.
29410         * tests/test-xalloc-die.c (program_name): Declare.
29411         * tests/test-xalloc-die.sh (tmpfiles): New file.
29412
29413         setenv, unsetenv: work around various bugs
29414         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29415         (setenv) [HAVE_SETENV]: Work around bugs.
29416         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29418         for bugs.
29419         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29420         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29422         * modules/stdlib (Makefile.am): Update substitutions.
29423         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29424         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29425         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29426         * modules/setenv-tests: New test.
29427         * modules/unsetenv-tests: Likewise.
29428         * tests/test-setenv.c: New file.
29429         * tests/test-unsetenv.c: Likewise.
29430
29431 2009-11-16  Jim Meyering  <meyering@redhat.com>
29432
29433         version-etc: relax license to LGPLv3+
29434         * modules/version-etc (License): Relax license.
29435
29436         better AC_REQUIRE expanded-before-required-warning avoidance
29437         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29438         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29439         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29440         which is no longer needed.
29441
29442 2009-11-16  Eric Blake  <ebb9@byu.net>
29443
29444         test-freading: clean up temporary file
29445         * tests/test-freading.c (main): Remove file on success, and use
29446         ASSERT more liberally.
29447         Reported by Jim Meyering.
29448
29449 2009-11-16  Jim Meyering  <meyering@redhat.com>
29450
29451         avoid new AC_REQUIRE expanded-before-required warnings
29452         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29453         merely using it.
29454         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29455         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29456
29457 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29458
29459         * tests/test-xalloc-die.c: New file.
29460         * modules/xalloc-die-tests: New file.
29461         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29462         XFAIL_TESTS so it can be appended by modules.
29463
29464 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29465
29466         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29467         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29468
29469 2009-11-14  Eric Blake  <ebb9@byu.net>
29470
29471         fnmatch: avoid compiler warning
29472         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29473         to silence compiler warning about mismatch signedness in ?:.
29474         Reported by Robert Millan.
29475
29476         intprops: add double-inclusion guard
29477         * lib/intprops.h: Allow idempotent includes.
29478         Suggested by Bruce Korb.
29479
29480         openat: detect Solaris fchownat bug
29481         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29482         penalizing glibc chownat when only lchownat is broken.
29483         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29484         trailing slash bugs.
29485         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29486         * modules/openat-tests (Files): Include more files.
29487         (Depends-on): Add mgetgroups, sleep, stat-time.
29488         (configure.ac): Add additional checks.
29489         (Makefile.am): Build new test.
29490         * tests/test-fchownat.c: New file.
29491
29492         lchown: detect Solaris and FreeBSD bug
29493         * lib/lchown.c (rpl_lchown): Work around bug.
29494         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29496         * modules/unistd (Makefile.am): Populate it.
29497         * lib/unistd.in.h (lchown): Update declaration.
29498         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29499         * modules/lchown-tests: New file.
29500         * tests/test-lchown.h (test_lchown): Likewise.
29501         * tests/test-lchown.c (main): Likewise.
29502
29503         chown: detect Solaris and FreeBSD bug
29504         * lib/chown.c (rpl_chown): Work around bug.
29505         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29506         (gl_PREREQ_CHOWN): Delete.
29507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29508         * modules/unistd (Makefile.am): Populate it.
29509         * lib/unistd.in.h (chown): Update declaration.
29510         * lib/lchown.c (chown): Update client.
29511         * modules/lchown (Depends-on): Add lstat.
29512         * doc/posix-functions/chown.texi (chown): Document the bug.
29513         * doc/posix-functions/getgroups.texi (getgroups): Document
29514         getgroups pitfall.
29515         * modules/chown-tests: New file.
29516         * tests/test-chown.h (test_chown): Likewise.
29517         * tests/test-chown.c (main): Likewise.
29518
29519 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29520
29521         gnulib-tool: correctly detect absence of m4 directories
29522         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29523
29524 2009-11-14  Jim Meyering  <meyering@redhat.com>
29525
29526         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29527         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29528
29529 2009-11-14  John W. Eaton  <jwe@gnu.org>
29530
29531         strftime.h: wrap funtion declaration in extern "C" block
29532         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29533
29534 2009-11-13  Eric Blake  <ebb9@byu.net>
29535
29536         getgroups: avoid compiler warning
29537         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29538
29539         getgroups: work around FreeBSD bug
29540         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29541         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29542         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29543         * tests/test-getgroups.c (main): Fix buffer overrun.
29544
29545         getgroups: avoid compilation failure
29546         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29547         * modules/getgroups (Depends-on): Add stdint.
29548
29549 2009-11-13  Jim Meyering  <meyering@redhat.com>
29550
29551         test-getgroups: avoid compilation failure
29552         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29553
29554 2009-11-13  Eric Blake  <ebb9@byu.net>
29555
29556         mgetgroups: new module, taken from coreutils
29557         * modules/mgetgroups: New file.
29558         * lib/mgetgroups.h: Likewise.
29559         * lib/mgetgroups.c (mgetgroups): Likewise.
29560         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29561         * MODULES.html.sh (Users and groups): Mention it.
29562
29563         getgroups: don't expose GETGROUPS_T to user
29564         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29565         an element at a time if GETGROUPS_T is wrong size.
29566         * lib/getugroups.h (getugroups): Change signature.
29567         * lib/unistd.in.h (getgroups): Likewise.
29568         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29569         signature needs fixing.
29570         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29571         AC_TYPE_GETGROUPS.
29572         * modules/group-member (Depends-on): Add getgroups.
29573         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29574         (group_member): Rely on getgroups replacement.
29575         * lib/getugroups.c (getugroups): Use gid_t.
29576         * tests/test-getgroups.c (main): Likewise.
29577         * NEWS: Mention the signature change.
29578         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29579         problem with signature.
29580         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29581         GETGROUPS_T is still useful for setgroups.
29582
29583         getgroups, getugroups: provide stubs for mingw
29584         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29585         * lib/getugroups.c (getugroups): Likewise.
29586         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29587         function.  Modernize replacement scheme.
29588         (gl_PREREQ_GETGROUPS): Delete.
29589         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29590         * modules/getgroups (configure.ac): Declare witness.
29591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29592         * modules/unistd (Depends-on): Substitute witness.
29593         * lib/unistd.in.h (getgroups): Declare replacement.
29594
29595         getgroups: avoid calling exit
29596         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29597         drop xalloc.
29598         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29599         dependencies.
29600         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29601         exiting, in the rare case of malloc failure.
29602
29603         getgroups: fix logic error
29604         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29605         has more than 20 groups.
29606         * modules/getgroups-tests: New test.
29607         * tests/test-getgroups.c: New file.
29608
29609 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29610
29611         * tests/test-base64.c: Improve.
29612
29613 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29614
29615         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29616         Blake <ebb9@byu.net>.
29617
29618 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29619
29620         * tests/test-xvasprintf.c: Add %s%s related checks.
29621
29622 2009-11-12  Eric Blake  <ebb9@byu.net>
29623
29624         version-etc: match standards.texi style
29625         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29626         and use <> only for URLs.
29627
29628 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29629
29630         fts: do not fail on a submount during traversal
29631         * lib/fts.c (fts_build): Read the stat info again after opening
29632         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29633         Original report at http://bugzilla.redhat.com/501848.
29634
29635 2009-11-12  Jim Meyering  <meyering@redhat.com>
29636
29637         bootstrap: sync from coreutils
29638         * build-aux/bootstrap (bootstrap_epilogue): New function.
29639         Use git_modules_config in one more place.  This make bootstrap's
29640         --gnulib-srcdir option more useful for testing.
29641
29642         bootstrap: generalize autoheader check
29643         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29644         AC_CONFIG_HEADERS.
29645
29646 2009-11-11  Eric Blake  <ebb9@byu.net>
29647
29648         mkfifoat: use new modules for Solaris and BSD bugs
29649         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29650         * lib/mkfifoat.c (mknodat): Split...
29651         * lib/mknodat.c (mknodat): ...into new file.
29652         * modules/mkfifoat (Files): Ship new file.
29653         (Depends-on): Add mkfifo, mknod.
29654         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29655         (Depends-on): Add symlink.
29656         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29657         redundant with test_mkfifo.h.
29658         (do_mkfifoat, do_mknodat): New helpers.
29659
29660         mknod: new module
29661         * modules/mknod: New file.
29662         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29663         * lib/mknod.c (mknod): Likewise.
29664         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29665         defaults.
29666         * modules/sys_stat (Makefile.am): Substitute them.
29667         * lib/sys_stat.in.h (mknod): Declare replacement.
29668         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29669         Document it.
29670         * doc/posix-functions/mknod.texi (mknod): Likewise.
29671         * modules/mknod-tests: New test.
29672         * tests/test-mknod.c: Likewise.
29673
29674         mkfifo: new module
29675         * modules/mkfifo: New file.
29676         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29677         * lib/mkfifo.c (mkfifo): Likewise.
29678         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29679         defaults.
29680         * modules/sys_stat (Makefile.am): Substitute them.
29681         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29682         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29683         Document it.
29684         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29685         * modules/mkfifo-tests: New test.
29686         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29687         from test-mkfifoat.c.
29688         * tests/test-mkfifo.c: New file.
29689
29690         readlink: detect FreeBSD bug
29691         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29692         slash on symlink.
29693         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29694         * tests/test-readlink.h (test_readlink): Enhance test.
29695
29696         symlink: detect FreeBSD bug
29697         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29698         slash on symlink.
29699         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29700         * tests/test-symlink.h (test_symlink): Enhance test.
29701
29702 2009-11-10  Eric Blake  <ebb9@byu.net>
29703
29704         link: detect FreeBSD bug
29705         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29706         symlink.
29707         * doc/posix-functions/link.texi (link): Document the bug.
29708         * tests/test-link.h (test_link): Enhance test.
29709         * tests/test-linkat.c (main): Update caller.
29710
29711         unlink, remove: detect FreeBSD bug
29712         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29713         slash on symlink.
29714         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29715         * doc/posix-functions/remove.texi (remove): Likewise.
29716         * tests/test-unlink.h (test_unlink): Enhance test.
29717         * tests/test-remove.c (main): Likewise.
29718
29719 2009-11-09  Eric Blake  <ebb9@byu.net>
29720
29721         rename: detect FreeBSD bug
29722         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29723         slash on symlink.
29724         * modules/renameat-tests (Depends-on): Add filenamecat.
29725         * tests/test-rename.h (test_rename): Allow one more errno.
29726         * tests/test-renameat.c (main): Likewise.
29727         * doc/posix-functions/rename.texi (rename): Document the bug.
29728
29729         open: detect FreeBSD bug
29730         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29731         symlink.
29732         * doc/posix-functions/open.texi (open): Document the bug.
29733         * doc/posix-functions/utimes.texi (utimes): Likewise.
29734         * tests/test-open.h (test_open): Add parameters, and test symlink
29735         handling.
29736         * tests/test-open.c (main): Adjust caller.
29737         * tests/test-fcntl-safer.c (main): Likewise.
29738         * modules/open-tests (Depends-on): Add stdbool, symlink.
29739         * modules/fcntl-safer-tests (Depends-on): Likewise.
29740         * tests/test-openat.c (main): Add test-open tests.
29741
29742         stat: detect FreeBSD bug
29743         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29744         symlink.
29745         * doc/posix-functions/stat.texi (stat): Document the bug.
29746         * tests/test-stat.h (test_stat_func): Add argument.
29747         * tests/test-stat.c (main): Adjust caller.
29748         * tests/test-fstatat.c (main): Likewise.
29749         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29750         Reported by Jim Meyering.
29751
29752 2009-11-09  James Youngman  <jay@gnu.org>
29753
29754         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29755         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29756
29757 2009-11-08  Jim Meyering  <meyering@redhat.com>
29758
29759         utimens: remove invalid futimesat call
29760         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29761         It used the file descriptor of the target file as the DIR_FD
29762         parameter and NULL as the file name.  That caused failure with
29763         errno == EFAULT on FreeBSD-8.0-rc2
29764
29765 2009-11-07  Eric Blake  <ebb9@byu.net>
29766
29767         fflush, freadseek: use fseeko, not fseek
29768         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29769         (clear_ungetc_buffer): Avoid potential problems on large files.
29770         * lib/freadseek.c (freadseek): Likewise.
29771         * modules/freadseek (Depends-on): Add fseeko.
29772         * modules/fseek (configure.ac): Set a witness.
29773         * tests/test-fflush.c (main): Use fseeko.
29774         * tests/test-fpurge.c (fseek): Disable link warning.
29775         * tests/test-freadable.c (fseek): Likewise.
29776         * tests/test-freading.c (fseek): Likewise.
29777         * tests/test-fseeko.c (fseek): Likewise.
29778         * tests/test-ftell.c (fseek): Likewise.
29779         * tests/test-ftello.c (fseek): Likewise.
29780         * tests/test-fwritable.c (fseek): Likewise.
29781         * tests/test-fwriting.c (fseek): Likewise.
29782
29783 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29784
29785         * modules/memchr (Depends-on): Drop getpagesize dependency.
29786
29787 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29788
29789         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29790         Reported by Ludovic Courtès.
29791         * build-aux/pmccabe2html: Improve example usage.
29792         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29793
29794 2009-11-06  Jim Meyering  <meyering@redhat.com>
29795
29796         do-release-commit-and-tag: New module.
29797         Automate the release-commit and tag process.
29798         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29799         * modules/do-release-commit-and-tag: New file.
29800         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29801
29802 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29803
29804         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29805         because test-select.c uses inet_pton.
29806
29807 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29808
29809         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29810         GETADDRINFO_LIB.  Bump serial number.
29811         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29812         Suggested by Eric Blake <ebb9@byu.net>.
29813
29814 2009-11-05  Eric Blake  <ebb9@byu.net>
29815
29816         strtod: detect darwin bug
29817         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29818         Reported by Leo Davis.
29819
29820         freopen-safer: new module
29821         * modules/freopen-safer: New module.
29822         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29823         * lib/freopen-safer.c (freopen_safer): New file.
29824         * lib/stdio-safer.h (freopen_safer): New declaration.
29825         * lib/stdio--.h (freopen): New override.
29826         * MODULES.html.sh (File stream based Input/Output): Mention it.
29827         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29828         freopen-safer module.
29829         * doc/posix-functions/stderr.texi (stderr): Likewise.
29830         * doc/posix-functions/stdin.texi (stdin): Likewise.
29831         * doc/posix-functions/stdout.texi (stdout): Likewise.
29832         * modules/freopen-safer-tests: New test.
29833         * tests/test-reopen-safer.c: New file.
29834
29835 2009-11-05  Jim Meyering  <meyering@redhat.com>
29836
29837         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29838         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29839
29840 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29841
29842         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29843
29844 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29845
29846         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29847
29848 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29849
29850         Fix link error.
29851         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29852         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29853
29854 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29855
29856         * tests/test-func.c: Also test value of __func__.
29857
29858 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29859
29860         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29861         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29862
29863 2009-11-05  Bruno Haible  <bruno@clisp.org>
29864
29865         Fix link error.
29866         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29867         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29868         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29869
29870 2009-11-05  Bruno Haible  <bruno@clisp.org>
29871
29872         Tests for module 'inet_pton'.
29873         * modules/inet_pton-tests: New file.
29874         * tests/test-inet_pton.c: New file.
29875
29876 2009-11-05  Bruno Haible  <bruno@clisp.org>
29877
29878         Tests for module 'inet_ntop'.
29879         * modules/inet_ntop-tests: New file.
29880         * tests/test-inet_ntop.c: New file.
29881
29882 2009-11-04  Eric Blake  <ebb9@byu.net>
29883
29884         stdlib-safer: wrap all mkstemp variants
29885         * modules/mkostemp (configure.ac): Set witness.
29886         * modules/mkostemps (configure.ac): Likewise.
29887         * modules/mkstemps (configure.ac): Likewise.
29888         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29889         (mkstemps_safer): Wrap more functions.
29890         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29891         wrapping.
29892         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29893         (mkstemps_safer): Implement the wrappers.
29894
29895         mkstemps, mkostemps: new modules
29896         * modules/mkostemps: New module.
29897         * modules/mkstemps: Likewise.
29898         * lib/mkostemps.c (mkostemps): New file.
29899         * lib/mkstemps.c (mkstemps): Likewise.
29900         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29901         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29903         * modules/stdlib (Makefile.am): Substitute them.
29904         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29905         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29906         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29907         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29908         * MODULES.html.sh (File system functions): Mention them.
29909
29910         tempname: resync from glibc
29911         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29912         same values for __GT_FILE as glibc.  Abort even when assertions
29913         are disabled.
29914         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29915         match its value otherwise.  Allow idempotent inclusion.
29916         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29917         * lib/mkostemp.c (mkostemp): Likewise.
29918         * lib/mkstemp.c (mkstemp): Likewise.
29919         * lib/tmpfile.c (tmpfile): Likewise.
29920         * NEWS: Document this.
29921
29922         utimens: fix use of futimens on older Linux
29923         * lib/utimens.c (fdutimens): Use updated, rather than original,
29924         timespec to avoid bug in older Linux kernel.
29925         Reported by Simon Josefsson.
29926
29927 2009-11-04  Bruno Haible  <bruno@clisp.org>
29928
29929         Make num_processors more flexible and consistent.
29930         * lib/nproc.h (enum nproc_query): New type.
29931         (num_processors): Add a 'query' argument.
29932         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29933         (num_processors): Add a 'query' argument. Test the value of the
29934         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29935         mingw, count the number of CPUs available for the current process.
29936         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29937         Check for sched_getaffinity and sched_getaffinity_np.
29938         * modules/nproc (Depends-on): Add c-ctype, extensions.
29939         * NEWS: Mention the change.
29940
29941 2009-11-03  Bruno Haible  <bruno@clisp.org>
29942
29943         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29944
29945 2009-11-03  Jim Meyering  <meyering@redhat.com>
29946
29947         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29948         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29949         if it is defined.
29950
29951 2009-11-02  Eric Blake  <ebb9@byu.net>
29952
29953         mktime, timegm: share common declaration
29954         * lib/mktime-internal.h: New file.
29955         * lib/mktime.c: Use it rather than open-coding a declaration.
29956         * lib/timegm.c: Likewise.
29957         * modules/mktime (Files): Ship it.
29958         * modules/timegm (Files): Likewise.
29959         Suggested by Bruno Haible.
29960
29961         test-update-copyright: update test to match script changes
29962         * tests/test-update-copyright.sh: Avoid hard-coding perl
29963         location.  Don't update *.bak created by earlier runs.
29964
29965 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29966             Simon Josefsson  <simon@josefsson.org>
29967             Bruno Haible  <bruno@clisp.org>
29968
29969         Fix link error on Solaris 8.
29970         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29971         also in libnsl. Define also INET_PTON_LIB.
29972         * modules/inet_pton (Link): New section.
29973
29974 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29975             Bruno Haible  <bruno@clisp.org>
29976
29977         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29978         * modules/inet_ntop (Link): New section.
29979         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29980
29981 2009-11-02  Eric Blake  <ebb9@byu.net>
29982
29983         maint: avoid compiler warnings in m4 macros
29984         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29985         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29986
29987 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29988
29989         * m4/pmccabe2html.m4: Remove file.
29990         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29991         function.  Change maintainer.
29992         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29993         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29994         Courtès).
29995
29996 2009-10-31  Eric Blake  <ebb9@byu.net>
29997
29998         fseeko: fix m4 regression
29999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30000         regression from 2009-10-27.
30001         Reported by Ralf Wildenhues.
30002
30003 2009-10-31  Jim Meyering  <meyering@redhat.com>
30004
30005         inttostr: aesthetics and improved (compile-time) safety
30006         Define inttype_is_signed rather than inttype_is_unsigned,
30007         since the sole use is via "#if inttype_is_signed".
30008         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30009         inttype_is_unsigned.
30010         * lib/offtostr.c (inttype_is_signed): Likewise.
30011         * lib/uinttostr.c (inttype_is_signed): Likewise.
30012         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30013         * lib/inttostr.c (inttostr): Use verify to cross-check the
30014         inttype_is_signed value and the signedness of the actual type.
30015         * modules/inttostr (Depends-on): Add verify.
30016
30017 2009-10-30  Eric Blake  <ebb9@byu.net>
30018
30019         build: avoid compiler warnings
30020         * lib/fchmodat.c (lchmod): Mark unused variables.
30021         * lib/getopt.c (_getopt_initialize): Likewise.
30022         * lib/mktime.c (__mktime_internal): Provide prototype.
30023         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30024         older gcc that do not understand #pragma GCC diagnostic.
30025         * lib/uinttostr.c (inttype_is_unsigned): Define.
30026         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30027
30028 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30029
30030         stat: fix compilation on AIX
30031         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30032         only see struct stat64.
30033
30034 2009-10-30  Eric Blake  <ebb9@byu.net>
30035
30036         exclude: make more robust
30037         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30038         rather than masking a coding bug.
30039         Suggested by Bruno Haible.
30040
30041 2009-10-30  Jim Meyering  <meyering@redhat.com>
30042
30043         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30044         Rather than putting #!/usr/bin/perl on the first line,
30045         start with a variant of what's recommended by "man perlrun" that
30046         invokes the first "perl" program from your shell's search path.
30047         * build-aux/gitlog-to-changelog: Replace #!... as above.
30048         Add a "Local Variables" perl mode setting.
30049         Prompted by a patch from Ludovic Courtès.
30050         Improved by Eric Blake.
30051         * build-aux/useless-if-before-free: Likewise.
30052         * build-aux/announce-gen: Likewise.
30053         * build-aux/update-copyright: Likewise.
30054
30055 2009-10-29  Eric Blake  <ebb9@byu.net>
30056
30057         filenamecat-lgpl: adjust clients
30058         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30059         filenamecat.
30060         * modules/renameat (Depends-on): Likewise.
30061
30062         filenamecat: split into filenamecat-lgpl
30063         * modules/filenamecat-lgpl: New module.
30064         * modules/filenamecat (Files): Move library-safe files into
30065         filenamecat-lgpl.
30066         (Depends-on): Add filenamecat-lgpl.
30067         (configure.ac): Declare witness.
30068         * lib/filenamecat.h (file_name_concat): Only declare when using
30069         GPL module.
30070         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30071         Move...
30072         * lib/filenamecat-lgpl.c: ...into new file.
30073         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30074         (gl_FILE_NAME_CONCAT): Use it.
30075         * MODULES.html.sh (File system functions): Mention new module.
30076
30077         argp: avoid memory leak
30078         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30079         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30080         base_name, since the latter malloc()s and can call exit().
30081         Leak introduced 2006-07-03.
30082
30083         dirname-lgpl: adjust clients that don't need full dirname
30084         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30085         * modules/filenamecat (Depends-on): Likewise.
30086         * modules/linkat (Depends-on): Likewise.
30087         * modules/mkancesdirs (Depends-on): Likewise.
30088         * modules/mkdir (Depends-on): Likewise.
30089         * modules/openat (Depends-on): Likewise.
30090         * modules/savewd (Depends-on): Likewise.
30091         * modules/rename (Depends-on): Likewise.
30092         (License): Relax license.
30093         * modules/mkdir-tests (Depends-on): Drop progname.
30094         (Makefile.am): Delete unneeded LDADD.
30095         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30096
30097         dirname: split into dirname-lgpl
30098         * modules/dirname-lgpl: New module.
30099         * modules/dirname (Files): Move library-safe files into
30100         dirname-lgpl.
30101         (Depends-on): Add dirname-lgpl.
30102         (configure.ac): Declare witness.
30103         * modules/double-slash-root (License): Relax license.
30104         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30105         module.
30106         * lib/dirname.c (dir_len, mdir_name): Move...
30107         * lib/dirname-lgpl.c: ...into new file.
30108         * lib/basename.c (last_component, base_len): Move...
30109         * lib/basename-lgpl.c: ...into new file.
30110         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30111         (gl_DIRNAME): Use it.
30112         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30113         Mention new module.
30114         * modules/dirname-tests (Depends-on): Add progname.
30115         * tests/test-dirname.c (program_name): Delete.
30116
30117         mkdir: make safe for libraries
30118         * modules/mkdir (Depends-on): Drop xalloc.
30119         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30120         exit.
30121
30122         tests: avoid some compiler warnings
30123         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30124         literals.
30125         * tests/test-memchr.c (main): Avoid type mismatch.
30126         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30127         * tests/test-base64.c (main): Likewise.
30128         * tests/test-getdelim.c (main): Likewise.
30129         * tests/test-gethostname.c (main): Likewise.
30130         * tests/test-getline.c (main): Likewise.
30131         * tests/test-netinet_in.c (main): Likewise.
30132         * tests/test-select.c (open_server_socket, main): Likewise.
30133         * tests/test-select-stdin.c (main): Likewise.
30134         * tests/test-sockets.c (main): Likewise.
30135         * tests/test-strsignal.c (main): Likewise.
30136         * tests/test-sys_select.c (main): Likewise.
30137         * tests/test-sys_socket.c (main): Likewise.
30138         * tests/test-u64.c (main): Likewise.
30139         * tests/test-xfprintf-posix.c (main): Likewise.
30140         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30141
30142         sockets: avoid compiler warning
30143         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30144
30145         maint: detect usage(1) and other suspicious exits
30146         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30147
30148 2009-10-29  Jim Meyering  <meyering@redhat.com>
30149
30150         timespec: long-to-int truncation could make timespec_cmp malfunction
30151         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30152         a multiple of 2^32 nanoseconds as no difference.
30153
30154 2009-10-28  Jim Meyering  <meyering@redhat.com>
30155
30156         fprintftime: wrap macro code argument in "do {...} while(0)"
30157         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30158         cpy macro must be a statement that can be followed by a semicolon.
30159         Now that the else clause contains a comment and is hence longer
30160         than one line, I require curly braces.  That in turn requires
30161         that we wrap this code block in the standard do...while(0).
30162
30163         fprintftime: remove stray semicolon from previous change
30164         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30165
30166         fprintftime: avoid a warning about ignored fwrite return value
30167         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30168         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30169         that is unsafe.
30170         * modules/fprintftime (Depends-on): Add ignore-value.
30171
30172         exclude: avoid an unwarranted warning
30173         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30174
30175 2009-10-27  Eric Blake  <ebb9@byu.net>
30176
30177         fseek: avoid compilation failure when fflush is replaced
30178         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30179         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30180         module is in use.
30181         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30182         module is not in use; since REPLACE_FSEEK worked otherwise.
30183         (GNULIB_FTELLO): Likewise for ftell.
30184         Reported by Ian Beckwith and others.
30185
30186 2009-10-27  Bruno Haible  <bruno@clisp.org>
30187
30188         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30189         Reported by Jim Meyering.
30190
30191 2009-10-27  Jim Meyering  <jim@meyering.net>
30192             Bruno Haible  <bruno@clisp.org>
30193
30194         Avoid warning despite dropping the return value of fwrite.
30195         * lib/unicodeio.c: Include ignore-value.h.
30196         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30197         * modules/unicodeio (Depends-on): Add ignore-value.
30198
30199 2009-10-26  Eric Blake  <ebb9@byu.net>
30200
30201         areadlinkat: fix fallback path
30202         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30203         pointer and zero.
30204
30205 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30206
30207         Use a better IO block size for modern systems
30208         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30209         * lib/md2.c: Likewise.
30210         * lib/md4.c: Likewise.
30211         * lib/md5.c: Likewise.
30212         * lib/sha1.c: Likewise.
30213         * lib/sha256.c: Likewise.
30214         * lib/sha512.c: Likewise.
30215
30216 2009-10-22  Eric Blake  <ebb9@byu.net>
30217
30218         tests: avoid several compiler warnings
30219         * tests/test-getcwd.c (main): Avoid buffer underflow.
30220         * tests/test-getdate.c (main): String literals are not safe with
30221         putenv, so use setenv.  Declare unused argument.
30222         * modules/getdate-tests (Depends-on): Add setenv.
30223         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30224         problems with string literals in char *.
30225         * tests/test-hash.c (main): Avoid shadowing declaration.
30226         (insert_new): Treat string literals as char const *.
30227         * tests/test-getopt.h (test_getopt): Likewise.
30228         (getopt_loop): Alter types to minimize casting elsewhere.
30229         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30230         (test_getopt_long_posix): Likewise.
30231         (do_getopt_long): Add wrapper to minimize casting.
30232         * tests/test-atexit.c (clear_temp_file): Use void.
30233         * tests/test-areadlink-with-size.c (main): Declare unused
30234         arguments.
30235         * tests/test-areadlink.c (main): Likewise.
30236         * tests/test-areadlinkat-with-size.c (main): Likewise.
30237         * tests/test-areadlinkat.c (main): Likewise.
30238         * tests/test-canonicalize-lgpl.c (main): Likewise.
30239         * tests/test-canonicalize.c (main): Likewise.
30240         * tests/test-dirent-safer.c (main): Likewise.
30241         * tests/test-dirname.c (main): Likewise.
30242         * tests/test-dup2.c (main): Likewise.
30243         * tests/test-fchdir.c (main): Likewise.
30244         * tests/test-fcntl-h.c (main): Likewise.
30245         * tests/test-fcntl-safer.c (main): Likewise.
30246         * tests/test-fdopendir.c (main): Likewise.
30247         * tests/test-fdutimensat.c (main): Likewise.
30248         * tests/test-fflush.c (main): Likewise.
30249         * tests/test-filenamecat.c (main): Likewise.
30250         * tests/test-filevercmp.c (main): Likewise.
30251         * tests/test-fopen-safer.c (main): Likewise.
30252         * tests/test-fopen.c (main): Likewise.
30253         * tests/test-fpending.c (main): Likewise.
30254         * tests/test-fpurge.c (main): Likewise.
30255         * tests/test-freading.c (main): Likewise.
30256         * tests/test-fstatat.c (main): Likewise.
30257         * tests/test-fsync.c (main): Likewise.
30258         * tests/test-futimens.c (main): Likewise.
30259         * tests/test-getndelim2.c (main): Likewise.
30260         * tests/test-gettimeofday.c (main): Likewise.
30261         * tests/test-getopt.c (main): Likewise.
30262         * tests/test-i-ring.c (main): Likewise.
30263         * tests/test-inttypes.c (main): Likewise.
30264         * tests/test-link.c (main): Likewise.
30265         * tests/test-lstat.c (main): Likewise.
30266         * tests/test-math.c (main): Likewise.
30267         * tests/test-md5.c (main): Likewise.
30268         * tests/test-memchr2.c (main): Likewise.
30269         * tests/test-memrchr.c (main): Likewise.
30270         * tests/test-mkdir.c (main): Likewise.
30271         * tests/test-mkdirat.c (main): Likewise.
30272         * tests/test-mkfifoat.c (main): Likewise.
30273         * tests/test-open.c (main): Likewise.
30274         * tests/test-openat-safer.c (main): Likewise.
30275         * tests/test-openat.c (main): Likewise.
30276         * tests/test-quotearg.c (main): Likewise.
30277         * tests/test-rawmemchr.c (main): Likewise.
30278         * tests/test-readlink.c (main): Likewise.
30279         * tests/test-remove.c (main): Likewise.
30280         * tests/test-rename.c (main): Likewise.
30281         * tests/test-renameat.c (main): Likewise.
30282         * tests/test-rmdir.c (main): Likewise.
30283         * tests/test-sha1.c (main): Likewise.
30284         * tests/test-signal.c (main): Likewise.
30285         * tests/test-sigaction.c (main): Likewise.
30286         * tests/test-stat.c (main): Likewise.
30287         * tests/test-stat-time.c (main): Likewise.
30288         * tests/test-stddef.c (main): Likewise.
30289         * tests/test-stdint.c (main): Likewise.
30290         * tests/test-stdio.c (main): Likewise.
30291         * tests/test-stdlib.c (main): Likewise.
30292         * tests/test-strchrnul.c (main): Likewise.
30293         * tests/test-strerror.c (main): Likewise.
30294         * tests/test-string.c (main): Likewise.
30295         * tests/test-strtod.c (main): Likewise.
30296         * tests/test-strverscmp.c (main): Likewise.
30297         * tests/test-symlink.c (main): Likewise.
30298         * tests/test-symlinkat.c (main): Likewise.
30299         * tests/test-sys_stat.c (main): Likewise.
30300         * tests/test-sys_time.c (main): Likewise.
30301         * tests/test-time.c (main): Likewise.
30302         * tests/test-unistd.c (main): Likewise.
30303         * tests/test-unlink.c (main): Likewise.
30304         * tests/test-unlinkat.c (main): Likewise.
30305         * tests/test-utimens.c (main): Likewise.
30306         * tests/test-utimensat.c (main): Likewise.
30307         * tests/test-version-etc.c (main): Likewise.
30308         * tests/test-wchar.c (main): Likewise.
30309         * tests/test-wctype.c (main): Likewise.
30310         * tests/test-xprintf-posix.c (main): Likewise.
30311         * tests/test-posixtm.c (main): Likewise.
30312         (STREQ): Delete unused macro.
30313         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30314         shadowed variables.
30315         * tests/test-memchr.c (main): Likewise.
30316
30317 2009-10-21  Eric Blake  <ebb9@byu.net>
30318
30319         areadlinkat: avoid failure on older glibc
30320         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30321         rather than mis-comparing 0 against FUNC_RESULT of char*.
30322
30323 2009-10-21  Bruno Haible  <bruno@clisp.org>
30324
30325         * modules/stpncpy (License): Relicense under LGPLv2+.
30326         Reported by David Lutterkort <lutter@redhat.com>.
30327
30328 2009-10-20  Eric Blake  <ebb9@byu.net>
30329
30330         utimensat: work around Solaris 9 bug
30331         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30332         has trailing slash bugs.
30333         * tests/test-lutimens.h (test_lutimens): Enhance test.
30334         * tests/test-utimens.h (test_utimens): Likewise.
30335         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30336         * doc/posix-functions/utimes.texi (utimes): Likewise.
30337         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30338         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30339         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30340         * doc/posix-functions/futimens.texi (futimens): Likewise.
30341
30342         fdutimensat: new module
30343         * modules/fdutimensat: New file.
30344         * lib/fdutimensat.c (fdutimensat): Likewise.
30345         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30346         * MODULES.html.sh (File system functions): Mention module.
30347         * modules/fdutimensat-tests: New test.
30348         * tests/test-fdutimensat.c: Likewise.
30349
30350         doc: regenerate INSTALL
30351         * doc/INSTALL: Reflect recent autoconf update.
30352         * doc/INSTALL.ISO: Likewise.
30353         * doc/INSTALL.UTF-8: Likewise.
30354
30355 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30356
30357         acl: warn if ACL support is not detected
30358         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30359
30360 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30361
30362         * lib/nproc.h: Add extern "C" block for C++.
30363
30364 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30365             Bruno Haible  <bruno@clisp.org>
30366
30367         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30368         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30369         * doc/posix-functions/isalpha.texi: Likewise.
30370         * doc/posix-functions/isblank.texi: Likewise.
30371         * doc/posix-functions/iscntrl.texi: Likewise.
30372         * doc/posix-functions/isdigit.texi: Likewise.
30373         * doc/posix-functions/isgraph.texi: Likewise.
30374         * doc/posix-functions/islower.texi: Likewise.
30375         * doc/posix-functions/isprint.texi: Likewise.
30376         * doc/posix-functions/ispunct.texi: Likewise.
30377         * doc/posix-functions/isspace.texi: Likewise.
30378         * doc/posix-functions/isupper.texi: Likewise.
30379         * doc/posix-functions/isxdigit.texi: Likewise.
30380
30381 2009-10-18  Bruno Haible  <bruno@clisp.org>
30382
30383         Tests for module 'isblank'.
30384         * modules/isblank-tests: New file.
30385         * tests/test-isblank.c: New file.
30386
30387         New module 'isblank'.
30388         * lib/isblank.c: New file.
30389         * m4/isblank.m4: New file.
30390         * modules/isblank: New file.
30391         * doc/posix-functions/isblank.texi: Mention the new module.
30392
30393 2009-10-18  Bruno Haible  <bruno@clisp.org>
30394
30395         New module 'ctype'.
30396         * lib/ctype.in.h: New file.
30397         * m4/ctype.m4: New file.
30398         * modules/ctype: New file.
30399         * doc/posix-headers/ctype.texi: Mention the new module.
30400
30401 2009-10-18  Jim Meyering  <meyering@redhat.com>
30402
30403         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30404         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30405         right after its initialization, rather than farther down.
30406         Keeping these in close proximity makes it easier to ensure
30407         that each such variable is initialized.  E.g.,
30408
30409             LIB_CLOCK_GETTIME=
30410             AC_SUBST([LIB_CLOCK_GETTIME])
30411
30412         This change also increments these serial numbers.
30413         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30414         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30416
30417 2009-10-18  Bruno Haible  <bruno@clisp.org>
30418
30419         Don't let environment variables perturb build.
30420         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30421         (gl_PREREQ_GETHRXTIME): ... not here.
30422
30423 2009-10-18  Bruno Haible  <bruno@clisp.org>
30424
30425         Avoid symlink attack in localcharset module.
30426         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30427         (O_NOFOLLOW): Define fallback.
30428         (get_charset_aliases): Don't open the file if it is a symbolic link.
30429         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30430         gl_FCNTL_H.
30431         (gl_FCNTL_H): Require it.
30432         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30433         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30434         Reported by Fergal Glynn <fglynn@veracode.com>.
30435
30436 2009-10-18  Bruno Haible  <bruno@clisp.org>
30437
30438         Implement nproc for mingw.
30439         * lib/nproc.c: Include <windows.h>
30440         (num_processors): On native Windows platforms, try GetSystemInfo.
30441
30442 2009-10-18  Bruno Haible  <bruno@clisp.org>
30443
30444         Implement nproc for IRIX.
30445         * lib/nproc.c: Include <sys/sysmp.h>.
30446         (num_processors): On IRIX systems, try sysmp.
30447         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30448
30449 2009-10-18  Bruno Haible  <bruno@clisp.org>
30450
30451         Implement nproc for HP-UX.
30452         * lib/nproc.c: Include <sys/pstat.h>
30453         (num_processors): On HP-UX systems, try pstat_getdynamic.
30454         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30455         pstat_getdynamic.
30456
30457 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30458             Bruno Haible  <bruno@clisp.org>
30459
30460         Implement nproc for NetBSD, OpenBSD.
30461         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30462         (ARRAY_SIZE): New macro.
30463         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30464         * m4/nproc.m4: New file.
30465         * modules/nproc (Files): Add m4/nproc.m4.
30466         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30467         (Makefile.am): Instead, augment lib_SOURCES.
30468
30469 2009-10-18  Bruno Haible  <bruno@clisp.org>
30470
30471         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30472         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30473         sys/param.h.
30474
30475 2009-10-16  Eric Blake  <ebb9@byu.net>
30476
30477         utimensat: new module
30478         * modules/utimensat: New file.
30479         * lib/utimensat.c (utimensat): Likewise.
30480         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30481         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30482         so we can work around Linux bugs.
30483         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30484         * modules/sys_stat (Makefile.am): Substitute them.
30485         * lib/sys_stat.in.h (utimensat): Declare it.
30486         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30487         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30488         * modules/utimensat-tests: New test.
30489         * tests/test-utimensat.c: Likewise.
30490
30491         utimens: let lutimens work on non-symlinks
30492         * lib/utimens.c (lutimens): Fall back to utimens rather than
30493         failing with ENOSYS, when file is not a symlink.
30494         (utimens): Reduce redirection.
30495         * tests/test-lutimens.h (test_lutimens): Update test to cover
30496         non-symlinks.
30497         * tests/test-utimens.h (test_utimens): Update test to cover
30498         symlinks.
30499         * tests/test-utimens.c (main): Update caller.
30500
30501         utimens: cache whether utimensat syscall works
30502         * lib/utimens.c (utimensat_works_really): New cache variable.
30503         (fdutimens, lutimens): Use it to avoid failing syscall.
30504
30505         test-stat-time, test-utimens: improve portability
30506         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30507         ext4 on alpha, and for cygwin.
30508         * tests/test-utimens-common.h: New file.
30509         (nap): Factor delays into single function.
30510         * tests/test-lutimens.h (test_lutimens): Use new header.
30511         * tests/test-futimens.h (test_futimens): Likewise.
30512         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30513         timestamps to occur from same machine, as was done previously for
30514         test_utimens.
30515         * modules/utimens-tests (Files): Ship new file.
30516         * modules/futimens-tests (Files): Likewise.
30517         Reported in part by Jim Meyering.
30518
30519         sys_stat: sort replacement declarations
30520         * lib/sys_stat.in.h: Sort declarations.
30521         * lib/futimens.c (futimens): Fix typo.
30522
30523 2009-10-15  Jim Meyering  <meyering@redhat.com>
30524
30525         don't let environment settings perturb build
30526         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30527         could cause a configure-time and/or build-time malfunction.
30528         Typically, a configure-time function-in-library test is performed
30529         via code like this:
30530
30531           LIB_VAR=
30532           AC_SUBST([LIB_VAR])
30533           prefix_saved_LIBS=$LIBS
30534             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30535                        [test "$ac_cv_search_FUNC" = "none required" ||
30536                         LIB_VAR=$ac_cv_search_FUNC])
30537           LIBS=$prefix_saved_LIBS
30538
30539         However, in each of the files affected by this change, the LIB_VAR=
30540         initialization was omitted.  Thus, when set in the environment, its
30541         value would propagate into generated Makefiles when FUNC is not found
30542         in LIB_NAME.
30543         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30544         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30546
30547 2009-10-14  Eric Blake  <ebb9@byu.net>
30548
30549         fchdir: avoid infinite recursion in mingw
30550         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30551         recursing.
30552
30553         test-stat-time: port to mingw
30554         * tests/test-stat-time.c (force_unlink): Return a value.
30555         (test_ctime) [W32]: Fix compilation error.
30556         (nap): Don't call usleep with too large an argument.  Use
30557         force_unlink.
30558         * doc/pastposix-functions/usleep.texi (usleep): Document the
30559         portability issue.
30560
30561 2009-10-13  Jim Meyering  <meyering@redhat.com>
30562
30563         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30564         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30565         * modules/pipe-filter-ii: Likewise.
30566         * modules/sys_socket-tests: Likewise.
30567         * modules/tsearch-tests: Likewise.
30568         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30569         (check): Depend on it.
30570
30571 2009-10-12  Eric Blake  <ebb9@byu.net>
30572
30573         utimens-tests: port to NFS file systems
30574         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30575         comparisons to avoid spurious failures from timestamp drift
30576         between NFS machines.
30577
30578 2009-10-12  Eric Blake  <ebb9@byu.net>
30579
30580         stat-time-tests: minor cleanups
30581         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30582         * tests/test-stat-time.c (nap): Separate assignment from call.
30583         Suggested by Paolo Bonzini and Bruno Haible.
30584
30585         sys_stat: guarantee struct timespec
30586         * lib/sys_stat.in.h (includes): Always include <time.h>
30587         * modules/sys_stat (Depends-on): Add time.
30588         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30589         mode_t permission values.
30590         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30591         get at subsecond timestamps.
30592
30593 2009-10-10  Eric Blake  <ebb9@byu.net>
30594
30595         futimens: new module
30596         * modules/futimens: New file.
30597         * lib/futimens.c (futimens): Likewise.
30598         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30599         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30600         we can work around Linux bugs.
30601         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30602         * modules/sys_stat (Makefile.am): Substitute them.
30603         * lib/sys_stat.in.h (futimens): Declare it.
30604         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30605         * doc/posix-functions/futimens.texi (futimens): Likewise.
30606         * modules/futimens-tests: New test.
30607         * tests/test-futimens.c: Likewise.
30608
30609         utimens: introduce fdutimens
30610         * lib/utimens.h (fdutimens): New prototype.
30611         * lib/utimens.c (gl_futimens): Move guts...
30612         (fdutimens): ...to new interface.
30613         * tests/test-utimens.c (do_fdutimens): Use it.
30614
30615         utimens: add UTIME_NOW and UTIME_OMIT support
30616         * lib/utimens.c (validate_timespec, update_timespec): New helper
30617         functions.
30618         (gl_futimens, lutimens): Use them.
30619         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30620         stdbool, sys_stat.
30621         (Link): Mention resulting library dependency.
30622         * modules/utimecmp (Link): Likewise.
30623         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30624         (Makefile.am): Pick up library dependency.
30625         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30626         definition.
30627         * tests/test-sys_stat.c: Test the definitions.
30628         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30629         * NEWS: Document library dependency.
30630
30631         utimecmp: support symlink timestamps
30632         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30633         hashing when possible.  Use pathconf when available.
30634         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30635         * modules/utimecmp (Depends-on): Add lstat.
30636
30637         utimens: add lutimens interface
30638         * lib/utimens.c (lutimens): New function.
30639         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30640         * lib/utimens.h (lutimens): Declare new interface.
30641         * tests/test-utimens.c (main): Enhance test.
30642         * tests/test-lutimens.h (test_lutimens): New file.
30643         * modules/utimens-tests (Files): Distribute it.
30644         (Depends-on): Add symlink.
30645         (configure.ac): Check for usleep.
30646
30647         utimens: validate futimens usage
30648         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30649         fewer syscalls on failure later on.  Avoid compiler warning on
30650         mingw.
30651         * modules/utimens (Depends-on): Add dup2.
30652
30653         utimens: add test
30654         * modules/utimens-tests: New test.
30655         * tests/test-utimens.h: New file.
30656         * tests/test-futimens.h: Likewise.
30657         * tests/test-utimens.c: Likewise.
30658
30659         doc: mention timestamp portability issues
30660         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30661         instead.
30662         * doc/posix-functions/utime.texi (utime): Likewise.
30663         * doc/posix-functions/utimes.texi (utimes): Likewise.
30664         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30665         instead.
30666         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30667         module.
30668         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30669         Mention weakness with symlink timestamps.
30670         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30671         to utimensat/futimens instead.
30672         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30673
30674         test-dup2: enhance test
30675         * tests/test-dup2.c (main): Also check AT_FDCWD.
30676
30677         test-stat-time: avoid more spurious failures
30678         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30679         xfs; and avoid race if the two timestamps cross quantization edge.
30680
30681         relocatable: prefer 'file system' over 'filesystem'
30682         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30683         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30684         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30685         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30686         * lib/relocatable.c (compute_curr_prefix): Likewise.
30687
30688 2009-10-10  Jim Meyering  <meyering@redhat.com>
30689
30690         stat-time-tests: check for the usleep function
30691         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30692
30693 2009-10-10  Bruno Haible  <bruno@clisp.org>
30694
30695         * modules/xnanosleep: Put the Link section after the Include section.
30696
30697 2009-10-09  Eric Blake  <ebb9@byu.net>
30698
30699         dup2: work around FreeBSD 6.1 bug
30700         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30701         * doc/posix-functions/dup2.texi (dup2): Document it.
30702         Reported by Nelson H. F. Beebe and Jim Meyering.
30703
30704         test-stat-time: port to buggy NFS clients
30705         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30706         (test_ctime): Also skip test if mtime and ctime are skewed.
30707
30708         maint: prefer 'file system' over 'filesystem'
30709         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30710         * doc/posix-functions/lstat.texi (lstat): Likewise.
30711         * lib/file-has-acl.c (file_has_acl): Likewise.
30712         * lib/fwriteerror.c [TEST]: Likewise.
30713         * tests/test-areadlink.h (test_areadlink): Likewise.
30714         * tests/test-areadlinkat-with-size.c (main): Likewise.
30715         * tests/test-areadlinkat.c (main): Likewise.
30716         * tests/test-canonicalize-lgpl.c (main): Likewise.
30717         * tests/test-canonicalize.c (main): Likewise.
30718         * tests/test-fstatat.c (main): Likewise.
30719         * tests/test-linkat.c (main): Likewise.
30720         * tests/test-lstat.h (test_lstat_func): Likewise.
30721         * tests/test-mkdir.h (test_mkdir): Likewise.
30722         * tests/test-readlink.h (test_readlink): Likewise.
30723         * tests/test-remove.c (main): Likewise.
30724         * tests/test-rename.h (test_rename): Likewise.
30725         * tests/test-renameat.c (main): Likewise.
30726         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30727         * tests/test-symlink.h (test_symlink): Likewise.
30728         * tests/test-symlinkat.c (main): Likewise.
30729         * tests/test-unlink.h (test_unlink_func): Likewise.
30730         * tests/test-unlinkat.c (main): Likewise.
30731
30732         maint: make realtime library usage explicit
30733         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30734         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30735         * modules/settime (Link): Likewise.
30736         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30737
30738         test-stat-time: speed up execution
30739         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30740         warning on mingw.
30741         (nap): New helper function.
30742         (prepare_test): Use it to reduce sleep time.
30743         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30744         execution.
30745         * modules/stat-time-tests (configure.ac): Check for usleep.
30746
30747 2009-10-09  Jim Meyering  <meyering@redhat.com>
30748
30749         selinux-h: always use getfilecon wrappers
30750         * lib/getfilecon.c: New file.
30751         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30752         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30753         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30754         (fgetfilecon): Provide a stub.
30755         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30756         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30757         file unconditionally.
30758         When <selinux/selinux.h> is found, arrange to use wrappers.
30759         * modules/selinux-h (Files): Add getfilecon.c.
30760         (Makefile.am): Substitute include-next-related bits
30761         into the now-always-generated selinux/selinux.h file.
30762         * doc/glibc-functions/lgetfilecon.texi: New file.
30763         * doc/glibc-functions/fgetfilecon.texi: New file.
30764         * doc/glibc-functions/getfilecon.texi: New file.
30765         * doc/glibc-functions/getfilecon-desc.texi: New file.
30766         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30767         which to pull in the new files.
30768         * MODULES.html.sh (Misc): Add selinux-h.
30769
30770 2009-10-08  Jim Meyering  <meyering@redhat.com>
30771
30772         unistd: fix comment typo
30773         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30774
30775 2009-10-08  Eric Blake  <ebb9@byu.net>
30776
30777         areadlink: use SIZE_MAX consistently
30778         * modules/areadlink (Depends-on): Add stdint.
30779         * modules/areadlink-with-size (Depends-on): Likewise.
30780         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30781         gives NULL; drop sys/types, since unistd gives size_t; and add
30782         stdint for SIZE_MAX.
30783         (SIZE_MAX): Rely on headers.
30784         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30785         and add stdint.
30786         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30787         (SIZE_MAX): Likewise.
30788         (INITIAL_BUF_SIZE): Turn into enum.
30789         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30790
30791 2009-10-08  Jim Meyering  <meyering@redhat.com>
30792
30793         areadlinkat: avoid compilation failure
30794         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30795         Fix typo in comment.
30796
30797 2009-10-07  Eric Blake  <ebb9@byu.net>
30798
30799         areadlinkat-with-size: new module
30800         * modules/areadlinkat-with-size: New module.
30801         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30802         * lib/areadlink.h (areadlinkat): Declare it.
30803         * MODULES.html.sh (File system functions): Mention it.
30804         * modules/areadlinkat-with-size-tests: New test.
30805         * tests/test-areadlinkat-with-size.c: New file.
30806
30807         xreadlinkat: new module
30808         * modules/xreadlinkat: New module.
30809         * lib/xreadlinkat.c (xreadlinkat): New file.
30810         * lib/xreadlink.h (xreadlinkat): Declare it.
30811         * MODULES.html.sh (File system functions): Mention it.
30812
30813         areadlinkat: new module
30814         * lib/at-func.c (FUNC_FAIL): New define.
30815         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30816         * modules/areadlinkat: New module.
30817         * lib/linkat.c (areadlinkat): Move...
30818         * lib/areadlinkat.c (areadlinkat): ...to new file.
30819         * lib/areadlink.h (areadlinkat): Declare it.
30820         * modules/linkat (Depends-on): Add areadlinkat.
30821         * MODULES.html.sh (File system functions): Mention it.
30822         * modules/areadlinkat-tests: New test.
30823         * tests/test-areadlinkat.c: New file.
30824
30825         areadlink, areadlink-with-size: add tests
30826         * modules/areadlink-tests: New test.
30827         * modules/areadlink-with-size-tests: Likewise.
30828         * tests/test-areadlink.h: New file.
30829         * tests/test-areadlink.c: Likewise.
30830         * tests/test-areadlink-with-size.c: Likewise.
30831
30832         maint: minor cleanups
30833         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30834         _UNUSED_PARAMETER_ instead.
30835         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30836         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30837         * modules/linkat-tests (Files): Distribute test-link.h.
30838
30839         openat, utimens: whitespace cleanup
30840         * lib/openat.c: Prefer space throughout, rather than mix of 8
30841         spaces vs. tabs.
30842         * lib/at-func.c: Likewise.
30843         * lib/utimens.c: Likewise.
30844
30845         openat: avoid using wrong fd
30846         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30847         working directory chooses same fd.
30848         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30849
30850         mkdir, mkdirat: fix cygwin 1.5.x bug
30851         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30852         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30853         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30854         bug.
30855         (gl_PREREQ_MKDIR): Delete unused macro.
30856         * modules/mkdir (Files): Track file rename.
30857         (configure.ac): Update macro name.
30858         * modules/openat (Depends-on): Add mkdir.
30859         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30860
30861         mkdir, mkdirat: add tests
30862         * modules/mkdir-tests: New test.
30863         * tests/test-mkdir.h: New file.
30864         * tests/test-mkdir.c: Likewise.
30865         * tests/test-mkdirat.c: Likewise.
30866         * modules/openat-tests (Files): Add new files.
30867         (Makefile.am): Run new test.
30868
30869 2009-10-06  Eric Blake  <ebb9@byu.net>
30870
30871         doc: tweak *at function documentation
30872         * doc/posix-functions/faccessat.texi (faccessat): Mention
30873         known issue with replacement.
30874         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30875         * doc/posix-functions/linkat.texi (linkat): Likewise.
30876         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30877         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30878         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30879         * doc/posix-functions/renameat.texi (renameat): Likewise.
30880         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30881
30882         openat: fix GNU/Hurd bug in unlinkat
30883         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30884         broken.
30885         * doc/posix-functions/unlink.texi (unlink): Document this.
30886         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30887
30888         fdopendir: fix GNU/Hurd bug
30889         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30890         allowing non-directory fds.
30891         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30892         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30893         * modules/dirent (Makefile.am): Substitute it.
30894         * lib/dirent.in.h (fdopendir): Declare replacement.
30895         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30896         * tests/test-fdopendir.c (main): Test something other than
30897         /dev/null, since on Hurd that behaves like a directory.
30898
30899         test-symlink: port to GNU/Hurd
30900         * tests/test-symlink.h (test_symlink): Relax expected errno.
30901
30902         doc: tweak more cygwin information
30903         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30904         now compatible with glibc.
30905         * doc/posix-functions/getopt.texi (getopt): Likewise.
30906
30907         getopt-gnu: add another test
30908         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30909         guarantee behavior relied on by m4.
30910         * tests/test-getopt.c (main): Use it.
30911         * modules/getopt-posix-tests (Depends-on): Add setenv.
30912         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30913
30914         getopt: fix compilation on darwin
30915         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30916         include.
30917         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30918         Reported by Ludovic Courtès.
30919
30920 2009-10-06  Bruno Haible  <bruno@clisp.org>
30921
30922         * modules/size_max (Description): Discourage its use.
30923         Reported by Simon Josefsson.
30924
30925 2009-10-06  Jim Meyering  <meyering@redhat.com>
30926
30927         linkat: avoid compilation failure
30928         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30929
30930 2009-10-05  Eric Blake  <ebb9@byu.net>
30931
30932         linkat: support Linux 2.6.17
30933         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30934         linkat on Linux, but allow cache variable override.
30935         * lib/linkat.c (rpl_linkat): Define override.
30936         * modules/linkat (Depends-on): Add symlinkat.
30937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30938         * modules/unistd (Makefile.am): Substitute it.
30939         * lib/unistd.in.h (linkat): Declare replacement.
30940         Reported by Pádraig Brady.
30941
30942         quotearg: port test to systems with C.UTF-8 locale
30943         * tests/test-quotearg.c (struct result_strings): Add another
30944         member, differentiating between C.ASCII and C.UTF-8 handling.
30945         (compare_strings): Add parameter.
30946         (main): Adjust all callers.
30947
30948         getopt: avoid clash with FreeBSD _getopt_internal
30949         * lib/getopt.in.h (_getopt_internal): Override the name.
30950         * lib/getopt_int.h (includes): Pick up any overrides.
30951         Reported by Reuben Thomas.
30952
30953         hash: allow C89 compilation
30954         * lib/hash.c (check_tuning): Move declaration before statement.
30955         Reported by Reuben Thomas.
30956
30957 2009-10-05  Karl Berry  <karl@gnu.org>
30958
30959         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30960
30961 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30962             Bruno Haible  <bruno@clisp.org>
30963
30964         * lib/uname.c (uname): Use a table-driven algorithm to compute
30965         Windows NT versions.
30966
30967 2009-10-04  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30970         program_invocation_short_name.
30971         * modules/progname (configure.ac): Test for presence of
30972         program_invocation_short_name.
30973         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30974
30975 2009-10-04  Bruno Haible  <bruno@clisp.org>
30976
30977         * lib/progname.c (set_program_name): Fix comment.
30978         Reported by Jim Meyering.
30979
30980 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30981             Bruno Haible  <bruno@clisp.org>
30982
30983         * lib/uname.c: Include <string.h>.
30984         (uname): Do only one call to GetVersionEx in the common case.
30985
30986 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30987             Bruno Haible  <bruno@clisp.org>
30988
30989         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30990         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30991         (uname): Add support for Windows CE and various non-x86 CPU types.
30992
30993 2009-10-03  Bruno Haible  <bruno@clisp.org>
30994
30995         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30996         invocation to tests/configure.ac.
30997         Reported by Ian Beckwith <ianb@erislabs.net>.
30998
30999 2009-10-02  Eric Blake  <ebb9@byu.net>
31000
31001         fchdir: avoid compiler warning
31002         * lib/fchdir.c (canonicalize_file_name)
31003         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31004
31005         test-open: support mingw errno values
31006         * tests/test-open.h (test_open): Relax test.
31007         * tests/test-fopen.h (test_fopen): Likewise.
31008         * tests/test-openat-safer.c (main): Likewise.
31009
31010         open: fix opening directory on mingw
31011         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31012
31013         test-open: on GNU/Hurd, /dev/null is a directory
31014         * tests/test-fopen.h (main): Rename...
31015         (test_fopen): ...to this.  Use a guaranteed non-directory when
31016         confirming open behavior on trailing slash.
31017         * tests/test-openat-safer.c (main): Likewise.
31018         * tests/test-open.h (main): Likewise....
31019         (test_open): ...to this.
31020         * tests/test-fopen.c (main): Adjust caller.
31021         * tests/test-fopen-safer.c (main): Likewise.
31022         * tests/test-open.c (main): Likewise.
31023         * tests/test-fcntl-safer.c (main): Likewise.
31024         Reported by Samuel Thibault.
31025
31026         rename, fchdir: don't ignore chdir failure
31027         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31028         * lib/rename.c (rpl_rename) [W32]: Likewise.
31029         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31030         an empty destination directory if source cannot be renamed,
31031         although there is still possibility for failure.
31032         * doc/posix-functions/rename.texi (rename): Document the race.
31033         Reported by Jim Meyering.
31034
31035         maint: cleanup whitespace in recent commits
31036         * lib/rename.c (rpl_rename): Remove tabs.
31037         * tests/test-link.h (test_link): Likewise.
31038         * lib/fchdir.c (get_name): Likewise.
31039         Reported by Jim Meyering.
31040
31041 2009-10-02  Ben Pfaff  <blp@gnu.org>
31042
31043         relocatable-prog-wrapper: Add missing dependency on
31044         double-slash-root.
31045         * modules/relocatable-prog-wrapper: Add dependency.
31046         Reported by Ian Beckwith <ianb@erislabs.net>.
31047
31048 2009-10-02  Eric Blake  <ebb9@byu.net>
31049
31050         renameat: fix Solaris bugs
31051         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31052         needed fixing.
31053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31054         * modules/stdio (Makefile.am): Substitute it.
31055         * lib/stdio.in.h (renameat): Declare replacement.
31056         * lib/renameat.c (rpl_renameat): Implement fix.
31057
31058         renameat: new module
31059         * modules/renameat: New file.
31060         * lib/renameat.c (renameat): Likewise.
31061         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31063         * modules/stdio (Makefile.am): Substitute them.
31064         * lib/stdio.in.h (renameat): Declare it.
31065         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31066         * doc/posix-functions/renameat.texi (renameat): Likewise.
31067         * modules/renameat-tests: New test.
31068         * tests/test-renameat.c: Likewise.
31069
31070         rename: fix mingw bugs
31071         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31072         directory overwrite bugs.
31073
31074         rename: fix another cygwin 1.5 bug
31075         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31076         checks.
31077         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31078         unnecessary cygwin workarounds.  Also work around bug with moving
31079         full directory onto an empty one.
31080         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31081
31082         rename-dest-slash: merge into rename module
31083         * modules/rename-dest-slash (Status): Mark obsolete.
31084         (Depends-on): Add rename.
31085         (Files): Let rename do it all.
31086         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31087         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31088         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31089         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31090         * lib/rename.c (rpl_rename): Update comments.
31091
31092         rename: fix cygwin 1.5.x bugs
31093         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31094         * lib/rename.c (rpl_rename): Work around them.
31095         * modules/rename (Depends-on): Add same-inode.
31096
31097         rename: fix Solaris 10 bug
31098         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31099         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31100         was the only bug.
31101
31102         rename: fix Solaris 9 bug
31103         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31104         on non-directory.  Avoid calling exit.
31105         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31106         strdup.
31107         * modules/rename-tests (Depends-on): Drop lstat.
31108         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31109         (gl_PREREQ_RENAME): Delete unused macro.
31110
31111         rename-dest-slash: fix NetBSD bug
31112         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31113         links.
31114         * modules/rename-dest-slash (Depends-on): Add same-inode.
31115
31116         rename-tests: new test, exposes several platform bugs
31117         * modules/rename-tests: New file.
31118         * tests/test-rename.h: Likewise.
31119         * tests/test-rename.c: Likewise.
31120         * doc/posix-functions/rename.texi (rename): Improve documentation,
31121         including bugs that will eventually be fixed in gnulib.
31122
31123 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31124
31125         * lib/uname.c: Include <stdlib.h>
31126         (uname): Assume version info is available.
31127
31128 2009-10-02  Jim Meyering  <meyering@redhat.com>
31129
31130         gnu-web-doc-update: correct --help output
31131         * build-aux/gnu-web-doc-update: Make --help output relevant.
31132
31133         gnu-web-doc-update: add standard options
31134         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31135
31136         gnu-web-doc-update: New module.
31137         Use this script to automatically update the on-line web documentation
31138         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31139         * modules/gnu-web-doc-update: New file, from coreutils.
31140         * build-aux/gnu-web-doc-update: New script.
31141
31142 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31143
31144         link: LoadLibrary is not needed.
31145         * lib/link.c: Use GetModuleHandle.
31146
31147 2009-10-01  Eric Blake  <ebb9@byu.net>
31148
31149         getopt: bump serial number
31150         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31151         change.
31152
31153         tests: tighten link, rmdir, and remove tests
31154         * tests/test-link.h (includes): No need to use <config.h> here.
31155         Clean up if directory hard link was created, otherwise test for
31156         trailing '.'.
31157         * tests/test-linkat.c (main): Simplify.
31158         * tests/test-remove.c (main): Enhance test for trailing '.'.
31159         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31160
31161 2009-10-01  Jim Meyering  <meyering@redhat.com>
31162
31163         maint.mk: requiring "make major" was annoying, for a "minor" release.
31164         What is intended is "stable", to contrast with alpha and beta,
31165         so require "make stable", not "make major".
31166         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31167         (get_tool_versions): Likewise.
31168         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31169
31170 2009-09-30  Ben Pfaff  <blp@gnu.org>
31171
31172         Fix broken build of replacement for Windows tmpfile().
31173         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31174         flags argument added along with the 'mkostemp' module.
31175
31176 2009-09-28  Bruno Haible  <bruno@clisp.org>
31177
31178         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31179         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31180         to 'remove_elt'.
31181         (gl_list_remove): Update.
31182         * lib/gl_list.c (gl_list_remove): Update.
31183         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31184         to 'remove_elt'.
31185         (gl_oset_remove): Update.
31186         * lib/gl_list.c (gl_oset_remove): Update.
31187         Reported by Eric Blake.
31188
31189 2009-09-28  Eric Blake  <ebb9@byu.net>
31190
31191         doc: mention yet more cygwin 1.7 status
31192         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31193         cygwin.
31194         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31195         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31196
31197         argp: fix test failure
31198         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31199         that are not upper-case.  Pass correct range to tolower.
31200
31201 2009-09-27  Jim Meyering  <meyering@redhat.com>
31202
31203         test-yesno: work around sparc-dash here-document infelicity
31204         Without this change, the literal \177 byte in a here document
31205         would make dash 0.5.5.1-3 access uninitialized memory.
31206         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31207         Instead, use a marker, "@", and filter through tr to create the desired
31208         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31209
31210 2009-09-27  Bruno Haible  <bruno@clisp.org>
31211
31212         Disable untested support for new flavours of ACLs on AIX.
31213         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31214         progress.
31215         * lib/set-mode-acl.c (qset_acl): Likewise.
31216
31217 2008-12-07  Bruno Haible  <bruno@clisp.org>
31218
31219         Add support for new flavours of ACLs on AIX. (Untested.)
31220         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31221         (file_has_acl): Add support for newer AIX.
31222         * lib/set-mode-acl.c (qset_acl): Likewise.
31223         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31224         Rainer Tammer <tammer@tammer.net>.
31225
31226 2009-09-26  Eric Blake  <ebb9@byu.net>
31227
31228         argp: fix compilation of getopt
31229         * lib/getopt.in.h (includes): Use different guard than glibc.
31230         Reported by Sergey Poznyakoff.
31231
31232         doc: mention more cygwin 1.7 status
31233         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31234         bug.
31235         * doc/posix-functions/execl.texi (execl): Likewise.
31236         * doc/posix-functions/execle.texi (execle): Likewise.
31237         * doc/posix-functions/execlp.texi (execlp): Likewise.
31238         * doc/posix-functions/execv.texi (execv): Likewise.
31239         * doc/posix-functions/execve.texi (execve): Likewise.
31240         * doc/posix-functions/execvp.texi (execvp): Likewise.
31241         * doc/glibc-functions/canonicalize_file_name.texi
31242         (canonicalize_file_name): Cygwin 1.7 now provides this.
31243         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31244         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31245         on AT_SYMLINK_NOFOLLOW.
31246
31247 2009-09-24  Eric Blake  <ebb9@byu.net>
31248
31249         test-linkat: make test more robust
31250         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31251
31252         getopt: fix inclusion guards for cygwin
31253         * modules/getopt-posix (Depends-on): Add include-next.
31254         (Makefile.am): Substitute more items in replacement header.
31255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31256         <getopt.h>.
31257         * lib/getopt.in.h (includes): Use split inclusion guard, and
31258         prefer <getopt.h> over include <unistd.h> when one is present.
31259         (option): Also override name of 'struct option'.
31260
31261         same-inode: revert prior change; it is not yet ready
31262         * NEWS: Undo mention of this change.
31263         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31264         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31265         * lib/cycle-check.c (cycle_check): Likewise.
31266         * lib/same.c (same_name): Likewise.
31267         * lib/at-func2.c (at_func2): Likewise.
31268
31269 2009-09-23  Eric Blake  <ebb9@byu.net>
31270
31271         linkat: new module
31272         * modules/linkat: New file.
31273         * lib/at-func2.c (at_func2): Likewise.
31274         * lib/linkat.c (linkat): Likewise.
31275         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31276         * lib/openat-priv.h (at_func2): Add declaration.
31277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31278         * modules/unistd (Makefile.am): Substitute them.
31279         * lib/unistd.in.h (linkat): Declare it.
31280         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31281         * doc/posix-functions/linkat.texi (linkat): Likewise.
31282         * doc/posix-functions/link.texi (link): Tweak wording.
31283         * tests/test-link.c (main): Move guts...
31284         * tests/test-link.h (test_link): ...into new file.
31285         * modules/linkat-tests: New test.
31286         * tests/test-linkat.c: Likewise.
31287         * modules/link-tests (Files): Ship new file.
31288         (Depends-on): Add stdbool.
31289
31290         dirname: add library-safe mdir_name
31291         * lib/dirname.h (mdir_name): New prototype.
31292         * lib/dirname.c (dir_name): Move guts...
31293         (mdir_name): ...to new function that avoids xalloc_die.
31294
31295         fchdir: another mingw fix
31296         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31297         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31298         on mingw (where it has not yet been ported), and make it optional
31299         elsewhere.
31300         (_gl_register_fd): Use it.
31301
31302         same-inode: make SAME_INODE tri-state, to port to mingw
31303         * NEWS: Mention this change.
31304         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31305         st_ino always being 0.
31306         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31307         * lib/cycle-check.c (cycle_check): Likewise.
31308         * lib/same.c (same_name): Likewise.
31309
31310         lstat: avoid mingw compilation error
31311         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31312         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31313         lstat ourselves.
31314         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31315         was adequate.
31316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31317         the checks for lstat.
31318         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31319
31320         link: fix test failure on Solaris 9
31321         * lib/link.c (rpl_link): Don't assume link will catch bogus
31322         trailing slash on source.
31323
31324         test-symlinkat: enhance test
31325         * tests/test-readlink.c (main): Move guts...
31326         * tests/test-readlink.h (test_readlink): ...into new file.
31327         * tests/test-symlink.c (main): Move guts...
31328         * tests/test-symlink.h (test_symlink): ...into new file.
31329         * tests/test-symlinkat.c (main): Use new files for further
31330         coverage.
31331         (do_symlink, do_readlink): New helper functions.
31332         * modules/symlink-tests (Files): Ship new file.
31333         (Depends-on): Add stdbool.
31334         * modules/readlink-tests (Files): Ship new file.
31335         (Depends-on): Add stdbool.
31336         * modules/symlinkat-tests (Files): Use new files.
31337
31338 2009-09-23  Eric Blake  <ebb9@byu.net>
31339
31340         readlink: document portability issue with symlink length
31341         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31342         systems have bogus st_size on symlinks, and mention the
31343         areadlink-with-size module.
31344         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31345         * doc/posix-functions/readlink.texi (readlink): Mention the
31346         areadlink module, and ERANGE failure.
31347         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31348         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31349
31350         readlink: fix Solaris 9 bug with trailing slash
31351         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31352         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31353         * doc/posix-functions/readlink.texi (readlink): Document this.
31354         * modules/readlink-tests: New test.
31355         * tests/test-readlink.c: Likewise.
31356
31357         readlink: fix cygwin 1.5.x bug with return type
31358         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31359         * lib/unistd.in.h (readlink): Use ssize_t.
31360         * lib/readlink.c (readlink): Likewise.
31361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31362         * modules/unistd (Makefile.am): Substitute it.
31363         * lib/unistd.in.h (readlink): Declare replacement.
31364         * doc/posix-functions/readlink.texi (readlink): Document this.
31365
31366         symlink: use throughout gnulib
31367         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31368         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31369         symlink is not used.
31370         * modules/symlinkat (Depends-on): Add symlink.
31371         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31372         * modules/canonicalize-tests (Depends-on): Likewise.
31373         * modules/lstat-tests (Depends-on): Likewise.
31374         * modules/openat-tests (Depends-on): Likewise.
31375         * modules/remove-tests (Depends-on): Likewise.
31376         * modules/rmdir-tests (Depends-on): Likewise.
31377         * modules/unlink-tests (Depends-on): Likewise.
31378         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31379         * tests/test-canonicalize.c (symlink): Likewise.
31380         * tests/test-fstatat.c (symlink): Likewise.
31381         * tests/test-lstat.c (symlink): Likewise.
31382         * tests/test-remove.c (symlink): Likewise.
31383         * tests/test-rmdir.c (symlink): Likewise.
31384         * tests/test-unlink.c (symlink): Likewise.
31385         * tests/test-unlinkat.c (symlink): Likewise.
31386
31387         symlink: new module, for Solaris 9 bug
31388         * modules/symlink: New file.
31389         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31390         * lib/symlink.c: Likewise.
31391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31392         * modules/unistd (Makefile.am): Substitute them.
31393         * lib/unistd.in.h (symlink): Declare replacement.
31394         * MODULES.html.sh (File system functions): Mention it.
31395         * doc/posix-functions/symlink.texi (symlink): Likewise.
31396         * modules/symlink-tests: New test.
31397         * tests/test-symlink.c: Likewise.
31398
31399 2009-09-23  Bruno Haible  <bruno@clisp.org>
31400
31401         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31402         when needed.
31403         Test case: gnulib-tool --import --with-tests atexit inttypes.
31404         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31405
31406 2009-09-23  Bruno Haible  <bruno@clisp.org>
31407
31408         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31409         subcommand, not in a subshell.
31410
31411 2009-09-22  Eric Blake  <ebb9@byu.net>
31412
31413         unistd: sort replacement declarations
31414         * lib/unistd.in.h: Sort declarations.
31415
31416         open, openat: minor optimization
31417         * lib/open.c (open): If open succeeded, len is non-zero.
31418         * lib/openat.c (rpl_openat): Likewise.
31419
31420         link-follow: ensure correct result
31421         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31422         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31423         distinguish between possible failures.
31424
31425 2009-09-21  Eric Blake  <ebb9@byu.net>
31426
31427         fts: avoid compiler warning
31428         * lib/fts.c (dirent_inode_sort_may_be_useful)
31429         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31430
31431 2009-09-19  Bruno Haible  <bruno@clisp.org>
31432
31433         * lib/progreloc.c (canonicalize_file_name): New declaration.
31434
31435 2009-09-19  Eric Blake  <ebb9@byu.net>
31436
31437         link: fix quoting
31438         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31439
31440         openat: fix openat bugs on Solaris 9
31441         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31442         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31443         * modules/openat (Depends-on): Add open.
31444         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31445         * modules/fcntl-h (Makefile.am): Substitute it.
31446         * lib/fcntl.in.h (openat): Declare replacement.
31447         * doc/posix-functions/openat.texi (openat): Document this.
31448
31449         openat: move fstatat and unlinkat into correct files
31450         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31451         compiled.
31452         * lib/openat.c (fstatat, unlinkat): Move...
31453         * lib/fstatat.c (fstatat): ...into correct files.
31454         * lib/unlinkat.c (unlinkat): Likewise.
31455
31456         openat: fix unlinkat bugs on Solaris 9
31457         * lib/unlinkat.c (unlinkat): New file.
31458         * modules/openat (Depends-on): Add unlink.
31459         (Files): Distribute it.
31460         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31461         trailing slash behavior is broken.
31462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31463         * modules/unistd (Makefile.am): Substitute it.
31464         * lib/unistd.in.h (unlinkat): Declare replacement.
31465         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31466
31467         openat: fix fstatat bugs on Solaris 9
31468         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31469         stat.
31470         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31471
31472         test-unlinkat: enhance test, to expose Solaris 9 bug
31473         * tests/test-unlink.c (main): Factor guts...
31474         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31475         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31476         * tests/test-rmdir.c (main): Adjust caller.
31477         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31478         (unlinker): New helper function.
31479         (rmdirat): Enhance check.
31480         * modules/rmdir-tests (Depends-on): Add stdbool.
31481         * modules/unlink-tests (Depends-on): Likewise.
31482         (Files): Add test-unlink.h.
31483         * modules/openat-tests (Files): Likewise.
31484         (Depends-on): Add unlinkdir.
31485
31486         test-fstatat: new test, to expose Solaris 9 bugs
31487         * tests/test-stat.c (main): Factor guts...
31488         * tests/test-stat.h (test_stat_func): ...into new file.
31489         * tests/test-lstat.c (main): Factor guts...
31490         * tests/test-lstat.h (test_lstat_func): ...into new file.
31491         * tests/test-fstatat.c: New file.
31492         * modules/stat-tests (Files): Add test-stat.h.
31493         * modules/lstat-tests (Files): Add test-lstat.h.
31494         (Depends-on): Add stdbool.
31495         * modules/openat-tests (Depends-on): Add pathmax.
31496         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31497         (Makefile.am): Run new test.
31498
31499         remove: new module, for mingw and Solaris 9 bugs
31500         * modules/remove: New file.
31501         * lib/remove.c: Likewise.
31502         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31504         * modules/stdio (Makefile.am): Use them.
31505         * lib/stdio.in.h (remove): Declare replacement.
31506         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31507         * doc/posix-functions/remove.texi (remove): Likewise.
31508         * modules/remove-tests: New test.
31509         * tests/test-remove.c: Likewise.
31510
31511         unlink: new module, for Solaris 9 bug
31512         * modules/unlink: New file.
31513         * lib/unlink.c: Likewise.
31514         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31516         * modules/unistd (Makefile.am): Use them.
31517         * lib/unistd.in.h (stat): Declare replacement.
31518         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31519         * doc/posix-functions/unlink.texi (unlink): Likewise.
31520         * modules/unlink-tests: New test.
31521         * tests/test-unlink.c: Likewise.
31522
31523         lstat: fix Solaris 9 bug
31524         * lib/lstat.c (lstat): Also check for trailing slash on
31525         non-symlink, non-directories.  Use stat module to simplify logic.
31526         * doc/posix-functions/lstat.texi (lstat): Document it.
31527         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31528         (configure.ac): Check for symlink.
31529         * tests/test-lstat.c (main): Add more tests.
31530
31531         stat: add as dependency to other modules
31532         * modules/chown (Depends-on): Add stat.
31533         * modules/euidaccess (Depends-on): Likewise.
31534         * modules/fchdir (Depends-on): Likewise.
31535         * modules/isdir (Depends-on): Likewise.
31536         * modules/link (Depends-on): Likewise.
31537         * modules/lstat (Depends-on): Likewise.
31538         * modules/mkdir-p (Depends-on): Likewise.
31539         * modules/modechange (Depends-on): Likewise.
31540         * modules/open (Depends-on): Likewise.
31541         * modules/readlink (Depends-on): Likewise.
31542         * modules/same (Depends-on): Likewise.
31543
31544         stat: fix Solaris 9 bug
31545         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31546         slash.
31547         * lib/stat.c (rpl_stat): Work around it.
31548         * doc/posix-functions/stat.texi (stat): Update documentation.
31549
31550         stat: new module, for mingw bug
31551         * modules/stat: New file.
31552         * lib/stat.c: Likewise.
31553         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31555         * modules/sys_stat (Makefile.am): Use them.
31556         * lib/sys_stat.in.h (stat): Declare replacement.
31557         * lib/openat.c (fstatat): Deal with lstat and stat being function
31558         macros.
31559         * modules/openat (Depends-on): Add inline.
31560         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31561         * doc/posix-functions/stat.texi (stat): Likewise.
31562         * modules/stat-tests: New test.
31563         * tests/test-stat.c: Likewise.
31564
31565 2009-09-19  Jim Meyering  <meyering@redhat.com>
31566
31567         syntax-check: detect unnecessary inclusion of canonicalize.h
31568         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31569
31570 2009-09-19  Eric Blake  <ebb9@byu.net>
31571
31572         canonicalize-lgpl: adjust clients to use correct header
31573         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31574         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31575         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31576         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31577         * lib/progreloc.c (includes): Likewise.
31578
31579 2009-09-19  Jim Meyering  <meyering@redhat.com>
31580
31581         test-posixtm.c: correct a comment
31582         * tests/test-posixtm.c: Correct first-line comment.
31583         Spotted by Eric Blake.
31584
31585 2009-09-16  Jim Meyering  <meyering@redhat.com>
31586
31587         posixtm-tests: make T const-correct; add a test case
31588         * tests/test-posixtm.c (T): Declare const.
31589         Add a test for -(2^31+1).
31590         Remove useless can-succeed-only-in-2002 test.
31591
31592         posixtm-tests: adjust the sole failing test
31593         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31594         expected output matches what mktime now produces.  Cross-checked via
31595         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31596
31597         posixtm: move #ifdef'd tests into a new module
31598         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31599         * tests/test-posixtm.c: ... this new file.
31600         * modules/posixtm-tests: New module.
31601
31602 2009-09-19  Eric Blake  <ebb9@byu.net>
31603
31604         openat: simplify use of at-func.c
31605         * lib/at-func.c (includes): Include prerequisites here, to
31606         simplify requirements on client files.
31607         * lib/openat-priv.h: Add double-inclusion guard.
31608         * lib/faccessat.c (includes): Simplify.
31609         * lib/fchmodat.c (includes): Likewise.
31610         * lib/fchownat.c (includes): Likewise.
31611         * lib/mkdirat.c (includes): Likewise.
31612         * lib/mkfifoat.c (includes): Likewise.
31613         * lib/symlinkat.c (includes): Likewise.
31614
31615         openat: allow return of fd 0
31616         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31617         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31618         unistd-safer.
31619         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31620         <fcntl.h>; this module does not leak fds.
31621         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31622         must be allowed to return 0, leaving openat_safer to add the
31623         safety.
31624         (openat_permissive): Avoid writing to just-opened fd 2 if
31625         restoring the current directory fails.
31626         * lib/openat-die.c (openat_restore_fail): Add comment.
31627         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31628         (save_cwd): Guarantee safe fd, but without use of open_safer.
31629         * tests/test-openat.c: New test.
31630         * modules/openat-tests (Files, Makefile.am): Distribute and build
31631         new file.
31632
31633         relocatable-prog-wrapper: fix build
31634         * modules/relocatable-prog-wrapper (Files): Update name of
31635         canonicalize m4 file, broken on 2009-09-17.
31636         Reported by emad hajjar <aleppos@hotmail.com>.
31637
31638 2009-09-19  Bruno Haible  <bruno@clisp.org>
31639
31640         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31641         * lib/safe-alloc.c: Likewise.
31642         Reported by Ian Beckwith <ianb@erislabs.net>.
31643
31644 2009-09-18  Bruno Haible  <bruno@clisp.org>
31645
31646         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31647         Reported by <erobles@sensacd.com.mx>.
31648
31649 2009-09-17  Eric Blake  <ebb9@byu.net>
31650
31651         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31652         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31653         slashes when checking if last component is missing.
31654         * tests/test-canonicalize.c (main): Test this.
31655
31656         canonicalize, canonicalize-lgpl: honor // if distinct from /
31657         * modules/canonicalize (Files): Add double-slash-root.m4.
31658         * modules/canonicalize-lgpl (Files): Likewise.
31659         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31660         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31661         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31662         fallback definition.
31663         (canonicalize_filename_mode): Use it to protect //.
31664         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31665         (__realpath): Likewise.
31666         * tests/test-canonicalize.c (main): Test this.
31667         * tests/test-canonicalize-lgpl.c (main): Likewise.
31668         * modules/canonicalize-tests (Depends-on): Add same-inode.
31669         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31670
31671         canonicalize-lgpl: fix glibc bug with trailing slash
31672         * m4/canonicalize-lgpl.m4: Move contents...
31673         * m4/canonicalize.m4: ...here.
31674         (gl_CANONICALIZE_LGPL): Factor realpath check...
31675         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31676         glibc 2.3.5 bug, fixed 2005-04-27.
31677         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31678         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31679         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31680         * modules/canonicalize-lgpl (Files): Manage file rename.
31681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31682         * modules/stdlib (Makefile.am): Substitute witness.
31683         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31684         is needed.
31685         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31686         replacement is required.
31687         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31688         * doc/glibc-functions/canonicalize_file_name.texi
31689         (canonicalize_file_name): Document this.
31690         * doc/posix-functions/realpath.texi (realpath): Likewise.
31691
31692         canonicalize-lgpl: reject non-directory with trailing slash
31693         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31694         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31695         catches failures in glibc 2.3.5.
31696         * tests/test-canonicalize.c (main): Likewise.
31697
31698         canonicalize-lgpl: use native realpath if it works
31699         * lib/canonicalize-lgpl.c (realpath): Guard with
31700         FUNC_REALPATH_WORKS.
31701         * lib/stdlib.in.h (realpath): Make declaration optional based on
31702         HAVE_REALPATH.
31703         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31704         native realpath works.
31705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31706         * modules/stdlib (Makefile.am): Substitute witness.
31707
31708         canonicalize, canonicalize-lgpl: use <stdlib.h>
31709         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31710         (Include): Mention <stdlib.h>.
31711         (configure.ac): Mention functions we provide.
31712         * modules/canonicalize (configure.ac): Likewise.
31713         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31714         realpath if canonicalize_file_name is missing.
31715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31716         * modules/stdlib (Makefile.am): Substitute witnesses.
31717         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31718         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31719         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31720         * NEWS: Document this.
31721         * doc/glibc-functions/canonicalize_file_name.texi
31722         (canonicalize_file_name): Likewise.
31723         * doc/posix-functions/realpath.texi (realpath): Likewise.
31724         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31725
31726         test-canonicalize: consolidate into single C program
31727         * tests/test-canonicalize.sh: Delete; move setup into...
31728         * tests/test-canonicalize.c (main): ...the program, making it
31729         easier to run in debugger.  Add some tests.
31730         * modules/canonicalize-tests (Files): Remove unused file.
31731         (Depends-on): Add progname.
31732         (configure.ac, Makefile.am): Simplify.
31733
31734         test-canonicalize-lgpl: consolidate into single C program
31735         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31736         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31737         easier to run in debugger.  Add some tests.
31738         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31739         (configure.ac, Makefile.am): Simplify.
31740
31741         canonicalize: avoid resolvepath
31742         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31743         unnecessary checks.
31744         * lib/canonicalize.c (includes): Simplify.
31745         (canonicalize_file_name): Drop resolvepath implementation.
31746         * modules/canonicalize (Depends-on): Drop filenamecat.
31747
31748         canonicalize: don't lose errno
31749         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31750         over calls to free.
31751
31752         canonicalize: simplify errno handling
31753         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31754         assignment.
31755
31756         canonicalize, canonicalize-lgpl: update module dependencies
31757         * modules/canonicalize (Depends-on): Add extensions, lstat,
31758         pathmax, stdlib.
31759         (Files): Drop pathmax.h.
31760         (configure.ac): Adjust macro name.
31761         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31762         lstat, stdlib, sys_stat.
31763         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31764         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31765         extensions.
31766         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31767         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31768         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31769         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31770         declaration, if available.
31771         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31772         we can rely on the readlink module.
31773         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31774         (includes): Use <unistd.h> unconditionally.
31775
31776 2009-09-17  Eric Blake  <ebb9@byu.net>
31777
31778         maint: make Include sections of modules consistent
31779         * modules/alloca: Use only header name; no need to list #include.
31780         * modules/alloca-opt: Likewise.
31781         * modules/arpa_inet: Likewise.
31782         * modules/canon-host: Likewise.
31783         * modules/configmake: Likewise.
31784         * modules/dirent: Likewise.
31785         * modules/eealloc: Likewise.
31786         * modules/environ: Likewise.
31787         * modules/fchdir: Likewise.
31788         * modules/fcntl: Likewise.
31789         * modules/fcntl-h: Likewise.
31790         * modules/gethrxtime: Likewise.
31791         * modules/gettime: Likewise.
31792         * modules/ignore-value: Likewise.
31793         * modules/inet_ntop: Likewise.
31794         * modules/inet_pton: Likewise.
31795         * modules/inttypes: Likewise.
31796         * modules/isnand-nolibm: Likewise.
31797         * modules/isnanf-nolibm: Likewise.
31798         * modules/mbchar: Likewise.
31799         * modules/mbfile: Likewise.
31800         * modules/mbiter: Likewise.
31801         * modules/mbuiter: Likewise.
31802         * modules/netdb: Likewise.
31803         * modules/netinet_in: Likewise.
31804         * modules/nproc: Likewise.
31805         * modules/pagealign_alloc: Likewise.
31806         * modules/poll: Likewise.
31807         * modules/printf-frexp: Likewise.
31808         * modules/pthread: Likewise.
31809         * modules/putenv: Likewise.
31810         * modules/random_r: Likewise.
31811         * modules/relocatable-prog: Likewise.
31812         * modules/search: Likewise.
31813         * modules/select: Likewise.
31814         * modules/selinux-h: Likewise.
31815         * modules/settime: Likewise.
31816         * modules/signal: Likewise.
31817         * modules/size_max: Likewise.
31818         * modules/socklen: Likewise.
31819         * modules/ssize_t: Likewise.
31820         * modules/stdarg: Likewise.
31821         * modules/stdbool: Likewise.
31822         * modules/stddef: Likewise.
31823         * modules/stdint: Likewise.
31824         * modules/stdio: Likewise.
31825         * modules/stdlib: Likewise.
31826         * modules/string: Likewise.
31827         * modules/strings: Likewise.
31828         * modules/sys_file: Likewise.
31829         * modules/sys_ioctl: Likewise.
31830         * modules/sys_select: Likewise.
31831         * modules/sys_socket: Likewise.
31832         * modules/sys_stat: Likewise.
31833         * modules/sys_time: Likewise.
31834         * modules/sys_times: Likewise.
31835         * modules/sys_utsname: Likewise.
31836         * modules/sys_wait: Likewise.
31837         * modules/sysexits: Likewise.
31838         * modules/time: Likewise.
31839         * modules/times: Likewise.
31840         * modules/tmpfile: Likewise.
31841         * modules/trim: Likewise.
31842         * modules/unistd: Likewise.
31843         * modules/wchar: Likewise.
31844         * modules/wctype: Likewise.
31845
31846 2009-09-17  Bruno Haible  <bruno@clisp.org>
31847
31848         Make getdate.y compile on QNX and NetBSD 5 / i386.
31849         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31850         TIME_T_FITS_IN_LONG_INT.
31851         * lib/getdate.y (long_time_t): New type.
31852         (relative_time): Change type of 'seconds' field to long_time_t.
31853         (get_date): Update types of local variables. Check against overflow
31854         during conversion from long_time_t to time_t.
31855         Reported by Matt Kraai <kraai@ftbfs.org>
31856         and Hasso Tepper <hasso@netbsd.org>.
31857
31858 2009-09-17  Bruno Haible  <bruno@clisp.org>
31859
31860         * modules/COPYING: Update copyright years.
31861         * modules/README: Likeiwse.
31862         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31863         Reported by Ian Beckwith <ianb@erislabs.net>.
31864
31865 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31866
31867         * users.txt: Update references for gnuit package.
31868
31869 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31870
31871         * m4/getdelim.m4: Fix typo in copyright line.
31872
31873 2009-09-17  Bruno Haible  <bruno@clisp.org>
31874
31875         * lib/atoll.c: Use the standard header with GPL copyright.
31876         * lib/argz.in.h: Likewise.
31877         * lib/glob.c: Likewise.
31878         * lib/glob-libc.h: Likewise.
31879         * lib/random_r.c: Likewise.
31880         * lib/siglist.h: Likewise.
31881         * lib/strsignal.c: Likewise.
31882         Reported by Ian Beckwith <ianb@erislabs.net>.
31883
31884 2009-09-17  Eric Blake  <ebb9@byu.net>
31885
31886         rmdir: ensure correct dependency order
31887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31888
31889 2009-09-17  Bruno Haible  <bruno@clisp.org>
31890
31891         Disable assertion that fails on NetBSD 5 / i386.
31892         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31893         Reported by Sam Steingold <sds@gnu.org>
31894         and Hasso Tepper <hasso@netbsd.org>.
31895
31896 2009-09-16  Eric Blake  <ebb9@byu.net>
31897
31898         unlinkdir: port to mingw
31899         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31900         on which no one can unlink a directory.
31901
31902         stdlib: sort witness names
31903         * modules/stdlib (Makefile.am): Sort replacements.
31904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31905         * lib/stdlib.in.h: Likewise.
31906
31907         parse-duration-tests: avoid link failure
31908         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31909         LIBINTL.
31910         Reported by Tom G. Christensen.
31911
31912         openat-tests: ensure unlinkat behaves like rmdir
31913         * tests/test-rmdir.c (main): Factor guts...
31914         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31915         * modules/rmdir-tests (Files): Ship new file.
31916         * modules/openat-tests: New test.
31917         * tests/test-unlinkat.c: Likewise.
31918
31919         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31920         * modules/rmdir-errno (Status, Notice): Now obsolete.
31921
31922         rmdir: work around cygwin 1.5.x and mingw bugs
31923         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31924         * lib/rmdir.c (rmdir): Work around it.
31925         * modules/rmdir (Status, Notice): No longer obsolete.
31926         (Files): Add dos.m4.
31927         (Depends-on): Add unistd.
31928         (configure.ac): Set witnesses.
31929         (License): Relax to LGPLv2+.
31930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31931         * modules/unistd (Makefile.am): Substitute witnesses.
31932         * lib/unistd.in.h (rmdir): Declare replacement.
31933         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31934         * modules/rmdir-tests: New tests.
31935         * tests/test-rmdir.c: Likewise.
31936
31937 2009-09-15  Eric Blake  <ebb9@byu.net>
31938
31939         fchdir: improve use of replacement functions
31940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31942         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31943         REPLACE_CLOSEDIR.
31944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31945         * modules/sys_stat (Makefile.am): Substitute correct witness.
31946         * modules/dirent (Makefile.am): Likewise.
31947         * modules/unistd (Makefile.am): Likewise.
31948         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31949         * lib/unistd.in.h (dup): Likewise.
31950         * lib/sys_stat.in.h (fstat): Likewise.
31951
31952         maint: ignore gnulib-tool temp files
31953         * .gitignore: Ignore files created during gnulib-tool --test.
31954
31955 2009-09-13  Jim Meyering  <meyering@redhat.com>
31956
31957         posixtm: don't reject a time that specify "60" as the number of seconds
31958         * lib/posixtm.c (posixtime): The code to reject invalid dates
31959         would also reject a time specified with the .60 suffix.
31960         But POSIX allows that, in order to accommodate leap seconds.
31961         So don't reject it.
31962         (main): Adjust tests accordingly.
31963         * modules/posixtm (Depends-on): Add stpcpy.
31964
31965 2009-09-11  Jim Meyering  <meyering@redhat.com>
31966
31967         announce-gen: include [$release_type] in emitted Subject:
31968         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31969         e.g., [stable] in the emitted Subject: line.
31970
31971 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31972
31973         Remove obsolete macros from several modules.
31974         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31975         obsolete Autoconf macros with their modern counterparts.
31976         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31977         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31979         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31980         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31981         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31983         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31984         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31985         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31986         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31988         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31989         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31990         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31991         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31992         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31993         * m4/time_r.m4 (gl_TIME_R): Likewise.
31994         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31995         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31996         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31997
31998         Fix copyright header in build-aux scripts.
31999         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32000         recommendation.
32001         * build-aux/ncftpput-ftp: Likewise.
32002         * build-aux/update-copyright: Likewise.
32003
32004 2009-09-09  Eric Blake  <ebb9@byu.net>
32005
32006         test-link: allow Linux choice of errno
32007         * tests/test-link.c (main): Relax test for alternate error.
32008
32009         strndup: fix improper m4 caching
32010         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32011         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32012         (gl_PREREQ_STRNDUP): Delete.
32013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32014         * modules/string (Makefile.am): Substitute it.
32015         * lib/string.in.h (strndup): Modernize prototype.
32016
32017         getcwd: port to mingw
32018         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32019         different from the POSIX assumptions made throughout the getcwd
32020         module; fortunately, the mingw getcwd does not need replacement.
32021         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32022         * modules/getcwd-tests: New test.
32023         * tests/test-getcwd.c: Likewise.
32024
32025         link: fix platform bugs
32026         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32027         * lib/link.c (link): Work around them.  Fix related mingw bug.
32028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32029         * modules/unistd (Makefile.am): Substitute it.
32030         * lib/unistd.in.h (link): Declare replacement.
32031         * doc/posix-functions/link.texi (link): Document this.
32032         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32033
32034         test-link: consolidate into single C program, test more cases
32035         * tests/test-link.sh: Delete.
32036         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32037         at least Cygwin and Solaris.
32038         * modules/link-tests (Files): Remove unused file.
32039         (Depends-on): Add errno, sys_stat.
32040         (Makefile.am): Simplify.
32041
32042 2009-09-08  Bruno Haible  <bruno@clisp.org>
32043
32044         Work around towlower, towupper bug on mingw.
32045         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32046         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32047         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32048         * doc/posix-functions/towupper.texi: Likewise.
32049         Reported by Eric Blake.
32050
32051 2009-09-08  Jim Meyering  <meyering@redhat.com>
32052
32053         build: don't try to run autoheader if we don't use it
32054         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32055         is not used in configure.ac.
32056
32057 2009-09-08  Eric Blake  <ebb9@byu.net>
32058
32059         euidaccess: fix compilation error
32060         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32061
32062         rawmemchr: relax license
32063         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32064         okay.
32065         Reported by Jim Meyering.
32066
32067         mkfifoat: new module
32068         * modules/mkfifoat: New file.
32069         * lib/mkfifoat.c: Likewise.
32070         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32072         * modules/sys_stat (Makefile.am): Use them.
32073         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32074         * MODULES.html.sh (File system functions): Mention module.
32075         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32076         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32077         * modules/mkfifoat-tests: New test.
32078         * tests/test-mkfifoat.c: Likewise.
32079
32080         strchrnul: relax license
32081         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32082         okay.
32083         Reported by Jim Meyering.
32084
32085 2009-09-08  Eric Blake  <ebb9@byu.net>
32086
32087         fstatat: fix compilation on Solaris
32088         * lib/fstatat.c (includes): Add fcntl.h.
32089         Reported by Pádraig Brady.
32090
32091 2009-09-07  Eric Blake  <ebb9@byu.net>
32092
32093         rename: modernize replacement
32094         * modules/rename (Depends-on): Add stdio.
32095         (configure.ac): Declare witness.
32096         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32097         stdio take care of replacement.
32098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32099         * modules/stdio (Makefile.am): Substitute them.
32100         * lib/stdio.in.h (rename): Declare replacement.
32101         * lib/rename.c (includes): Allow cross-compilation to non-windows
32102         machines.
32103         * doc/posix-functions/rename.texi (rename): Improve
32104         documentation.
32105
32106         stdio: sort witness names
32107         * modules/stdio (Makefile.am): Sort replacements.
32108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32109         * lib/stdio.in.h: Likewise.
32110
32111         getcwd: minor cleanups
32112         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32113         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32114
32115         openat: provide more convenience names
32116         * modules/faccessat (configure.ac): Add C witness.
32117         * lib/unistd.in.h (readlinkat): Fix typo.
32118         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32119         convenience wrappers.
32120         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32121         wrappers in syntax checks.
32122
32123 2009-09-06  Eric Blake  <ebb9@byu.net>
32124
32125         doc: fix comments in recent patches
32126         * lib/faccessat.c: Mention correct function.
32127         * lib/fchmodat.c: Likewise.
32128         * lib/fchownat.c: Likewise.
32129         * lib/symlinkat.c: Likewise.
32130         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32131         constants.
32132
32133         faccessat, symlinkat: continue cleanup of previous patch
32134         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32135         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32136         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32138         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32139         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32140         set.
32141
32142 2009-09-06  Bruno Haible  <bruno@clisp.org>
32143
32144         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32145         (fstatat): Declare if GNULIB_FSTATAT is set.
32146         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32147         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32148         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32149         * modules/fcntl-h (Files): Remove m4/openat.m4.
32150         * modules/sys_stat (Files): Remove m4/openat.m4.
32151         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32152         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32153         * modules/unistd (Files): Remove m4/openat.m4.
32154         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32155         GNULIB_OPENAT.
32156         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32157         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32158         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32159         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32160         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32161         gl_OPENAT_DEFAULTS.
32162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32163         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32164         Don't require gl_OPENAT_DEFAULTS.
32165         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32166         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32167         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32168         (gl_OPENAT_DEFAULTS): Remove macro.
32169
32170 2009-09-06  Bruno Haible  <bruno@clisp.org>
32171
32172         * modules/openat (configure.ac): Remove unneeded witness.
32173
32174 2009-09-06  Bruno Haible  <bruno@clisp.org>
32175
32176         Set errno to ENOSYS when a function is entirely unsupported.
32177         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32178         EOPNOTSUPP.
32179         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32180         * modules/chown (Depends-on): Remove errno.
32181
32182 2009-09-06  Bruno Haible  <bruno@clisp.org>
32183
32184         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32185
32186 2009-09-06  Bruno Haible  <bruno@clisp.org>
32187
32188         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32189
32190 2009-09-06  Ben Pfaff  <blp@gnu.org>
32191             Bruno Haible  <bruno@clisp.org>
32192
32193         Work around a glibc bug in strtok_r.
32194         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32195         Undefine if UNDEFINE_STRTOK_R is set.
32196         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32198         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32199         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32200         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32201         UNDEFINE_STRTOK_R.
32202         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32203
32204 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32205
32206         exclude: minor fix
32207         * lib/exclude.c: Include wctype.h
32208
32209 2009-09-06  Akim Demaille  <demaille@gostai.com>
32210
32211         bootstrap: improve error message
32212         * build-aux/bootstrap (find_tool): Upon failure, report the list
32213         of candidates.
32214         Honor the initial value of the envvar.
32215
32216 2009-09-05  Eric Blake  <ebb9@byu.net>
32217
32218         symlinkat: new module
32219         * modules/symlinkat: New file.
32220         * lib/symlinkat.c: Likewise.
32221         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32223         * modules/unistd (Makefile.am): Use them.
32224         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32225         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32226         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32227         * MODULES.html.sh (File system functions): Mention module.
32228         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32229         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32230         * modules/symlinkat-tests: New test.
32231         * tests/test-symlinkat.c: Likewise.
32232
32233         test-openat-safer: add more checks
32234         * tests/test-openat-safer.c (main): Check more code paths.
32235
32236 2009-09-05  Jim Meyering  <meyering@redhat.com>
32237
32238         syntax-check: detect unnecessary inclusion of openat.h
32239         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32240
32241 2009-09-05  Bruno Haible  <bruno@clisp.org>
32242
32243         Support towlower, towupper.
32244         * doc/posix-functions/towlower.texi: Mention module wctype.
32245         * doc/posix-functions/towupper.texi: Likewise.
32246         * lib/wctype.in.h (towlower, towupper): New functions.
32247         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32248         (ASSERT): New macro.
32249         (e): New variable.
32250         (main): Test also towlower, towupper. Test WEOF argument.
32251         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32252
32253 2009-09-05  Bruno Haible  <bruno@clisp.org>
32254
32255         Fix conversion behaviour when the input is invalid.
32256         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32257         mark occurring in first pass of indirect conversion.
32258         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32259         input.
32260         Found by clang's static analyzer.
32261
32262 2009-09-05  Bruno Haible  <bruno@clisp.org>
32263
32264         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32265         where direct conversion is possible.
32266
32267 2009-09-04  Eric Blake  <ebb9@byu.net>
32268
32269         openat: fail with ENOENT on empty name
32270         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32271         buffer.
32272
32273         link-follow: fix logic bug in prior patch
32274         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32275         reversed sense of yes and no in prior patch.  Avoid confusing
32276         compilation failure with desired semantics.
32277
32278         link-follow: accomodate mingw and cross-compilation
32279         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32280         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32281         cross-compilation results to -1, to make linkat easier to
32282         implement when cross-compiling.  Trivially support mingw.
32283         * modules/link-follow (configure.ac): Call new name.
32284         * NEWS: Mention this.
32285
32286 2009-09-03  Eric Blake  <ebb9@byu.net>
32287
32288         faccessat: compile replacement
32289         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32290         needed.
32291
32292         fts: fix compilation error
32293         * lib/fts.c (includes): Re-add "openat.h", for
32294         openat_needs_fchdir.
32295
32296         faccessat: new module
32297         * modules/faccessat: New file.
32298         * lib/faccessat.c: Likewise.
32299         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32301         * modules/unistd (Makefile.am): Use it.
32302         * lib/unistd.in.h (faccessat): Declare it.
32303         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32304         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32305         * MODULES.html.sh (File system functions): Mention it.
32306         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32307         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32308
32309         euidaccess: prefer POSIX over non-standard implementation
32310         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32311         * lib/euidaccess.c (euidaccess): Use it if available.
32312
32313         openat: make template easier to use
32314         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32315         AT_FUNC_F2 to be undefined.
32316         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32317         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32318         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32319         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32320         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32321         Likewise.
32322         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32323         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32324         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32325         Likewise.
32326
32327         openat: declare in POSIX headers
32328         * NEWS: Mention this.
32329         * modules/openat (configure.ac): Declare witnesses.
32330         (Depends-on): Add fcntl-h, sys_stat, unistd.
32331         (Include): Mention correct headers.
32332         * modules/fcntl-h (Depends-on): Add link-warning.
32333         (Files): Add openat.m4.
32334         (Makefile.am): Substitute witnesses.
32335         * modules/sys_stat (Files, Makefile.am): Likewise.
32336         * modules/unistd (Files, Makefile.am): Likewise.
32337         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32338         (gl_OPENAT_DEFAULTS): New macro.
32339         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32341         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32342         (SYS_STAT_H): Remove unused variable.
32343         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32344         * lib/fcntl--.h (includes): Remove unneeded header.
32345         * lib/openat-safer.c (includes): Likewise.
32346         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32347         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32348         appropriate headers.
32349         (__OPENAT_PREFIX): Delete.
32350         * lib/fcntl.in.h (openat): Provide declaration.
32351         (AT_FDCWD): Fix Solaris bug.
32352         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32353         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32354         * lib/fchmodat.c (includes):  Adjust to find declaration.
32355         * lib/fchownat.c (includes): Likewise.
32356         * lib/mkdirat.c (includes): Likewise.
32357         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32358         still visible.
32359
32360 2009-09-02  Eric Blake  <ebb9@byu.net>
32361
32362         errno: use consistently
32363         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32364         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32365         * lib/canonicalize.c (ELOOP): Likewise.
32366         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32367         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32368         * lib/lchown.c (EOPNOTSUPP): Likewise.
32369         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32370         * lib/savewd.c (ESTALE): Likewise.
32371         * lib/settime.c (ENOSYS): Likewise.
32372         * lib/utimens.c (ENOSYS): Likewise.
32373         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32374         * lib/chdir-safer.c (ELOOP): Likewise.
32375         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32376         * modules/c-stack (Depends-on): Add errno.
32377         * modules/canonicalize (Depends-on): Likewise.
32378         * modules/chdir-safer (Depends-on): Likewise.
32379         * modules/fdopendir (Depends-on): Likewise.
32380         * modules/inet_ntop (Depends-on): Likewise.
32381         * modules/inet_pton (Depends-on): Likewise.
32382         * modules/lchown (Depends-on): Likewise.
32383         * modules/openat (Depends-on): Likewise.
32384         * modules/savewd (Depends-on): Likewise.
32385         * modules/settime (Depends-on): Likewise.
32386         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32387
32388         fts: avoid leaking fds
32389         * modules/fts (Depends-on): Add cloexec.
32390         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32391         flag.
32392
32393         fts: make directory fds more robust
32394         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32395         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32396
32397         backupfile, chdir-long, fts, savedir: make safer
32398         * lib/backupfile.c (includes): Use "dirent--.h", since
32399         numbered_backup can write to stderr during readdir.
32400         * lib/savedir.c (includes): Likewise.
32401         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32402         emulation can write to stderr on failure.
32403         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32404         * lib/getcwd.c: Document why opendir_safer is unused.
32405         * lib/glob.c: Likewise.
32406         * lib/scandir.c: Likewise.
32407         * lib/openat-proc.c: Likewise, for open_safer.
32408         * modules/backupfile (Depends-on): Add dirent-safer.
32409         * modules/savedir (Depends-on): Likewise.
32410         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32411         * modules/chdir-long (Depends-on): Add openat-safer.
32412
32413         openat-safer: new module
32414         * modules/openat-safer: New file.
32415         * lib/openat-safer.c: Likewise.
32416         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32417         * lib/fcntl-safer.h (openat_safer): Declare.
32418         * lib/fcntl--.h (openat): Override.
32419         * MODULES.html.sh (File descriptor based I/O): Mention it.
32420         * lib/openat.h: Add double-inclusion guards.
32421         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32422         "fcntl--.h", so we can implement openat.
32423         * modules/openat-safer-tests: New test.
32424         * tests/test-openat-safer.c: New file.
32425
32426         dirent-safer: new module
32427         * modules/dirent-safer: New file.
32428         * lib/dirent--.h: Likewise.
32429         * lib/dirent-safer.h: Likewise.
32430         * lib/opendir-safer.c: Likewise.
32431         * m4/dirent-safer.m4: Likewise.
32432         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32433         * modules/dirent-safer-tests: New test.
32434         * tests/test-dirent-safer.c: New file.
32435         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32436
32437         fdopendir: optimize on mingw
32438         * lib/unistd.in.h (_gl_directory_name): New prototype.
32439         * lib/fchdir.c (_gl_directory_name): Implement it.
32440         (fchdir): Use it to simplify implementation.
32441         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32442         fchdir, when available, to avoid calling [f]chdir().
32443
32444         fdopendir: split into its own module
32445         * lib/openat.c (fdopendir): Move...
32446         * lib/fdopendir.c: ...into new file.
32447         * modules/fdopendir: New module.
32448         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32449         * modules/openat (Depends-on): Add fdopendir.
32450         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32451         fdopendir here.
32452         * modules/savedir (Depends-on): Only need fdopendir, not full
32453         openat.
32454         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32455         * lib/openat.h (fdopendir): Drop prototype.
32456         * lib/dirent.in.h (fdopendir): Provide prototype.
32457         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32458         * modules/dirent (Makefile.am): Substitute them.
32459         * MODULES.html.sh (File system functions): Mention it.
32460         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32461         * modules/fdopendir-tests: New file.
32462         * tests/test-fdopendir.c: Likewise.
32463
32464         fchdir: use more consistent macro convention
32465         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32466         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32467         REPLACE_FCHDIR, rather than relying on config.h macros.
32468         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32469         inside a single make-time REPLACE_FCHDIR block, rather than using
32470         the config.h FCHDIR_REPLACEMENT.
32471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32472         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32473         Manage fstat replacement.
32474         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32475         REPLACE_FCHDIR.
32476         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32477         (Makefile.am): Substitute REPLACE_FCHDIR.
32478         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32479         FCHDIR_REPLACEMENT.
32480         * lib/dup-safer.c (dup_safer): Likewise.
32481         * lib/dup2.c (rpl_dup2): Likewise.
32482         * lib/dup3.c (rpl_dup3): Likewise.
32483         * lib/open.c (rpl_open): Likewise.
32484
32485         fchdir: simplify error handling, and support dup3
32486         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32487         stdbool, malloc-posix, realloc-posix.
32488         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32489         (ensure_dirs_slot): Return false on allocation failure.
32490         (rpl_dup2): Delete.
32491         (_gl_register_dup): New function.
32492         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32493         (_gl_register_fd): Close fd on allocation failure.
32494         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32495         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32496         prototype.
32497         (rpl_dup2_fchdir): Delete prototype.
32498         * lib/open.c (open): Update caller.
32499         * lib/dup2.c (dup2): Track fchdir metadata.
32500         * lib/dup3.c (dup3): Likewise.
32501         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32503
32504 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32505
32506         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32507         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32508         don't pass arguments to AC_OUTPUT.
32509
32510 2009-09-02  Bruno Haible  <bruno@clisp.org>
32511
32512         * modules/mkdtemp (License): Relicense under LGPLv2+.
32513         Reported by Paolo Bonzini.
32514
32515 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32516
32517         Replace uses of obsolete autoconf macros in Jim's modules.
32518         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32519         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32520         can evoke a warning from autoconf when run with -Wobsolete
32521         enabled.  They were declared obsolete for good reasons (see
32522         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32523         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32524         should not continue using the deprecated macros.
32525         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32526         obsolete Autoconf macros with modern counterparts.
32527         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32528         * m4/dos.m4 (gl_AC_DOS): Likewise.
32529         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32531         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32532         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32533         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32535         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32536         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32537         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32538         Likewise.
32539         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32540         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32541         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32542         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32543         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32544         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32545
32546 2009-09-01  Eric Blake  <ebb9@byu.net>
32547
32548         fchdir: fix off-by-one bug in previous patch
32549         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32550         (_gl_unregister_fd): Delete useless if.
32551
32552 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32553
32554         maint.mk: sort the list of syntax-check rules
32555         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32556         easier to get a sense of progress when the rules are run sequentially
32557         and take a long time.
32558
32559 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32560
32561         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32562         * modules/netinet_in: Likewise.
32563         * modules/sys_file: Likewise.
32564         * modules/sys_ioctl: Likewise.
32565         * modules/sys_select: Likewise.
32566         * modules/sys_socket: Likewise.
32567         * modules/sys_stat: Likewise.
32568         * modules/sys_time: Likewise.
32569         * modules/sys_times: Likewise.
32570         * modules/sys_utsname: Likewise.
32571         * modules/sys_wait: Likewise.
32572
32573 2009-09-01  Jim Meyering  <meyering@redhat.com>
32574
32575         fts: help ensure that return values are not ignored
32576         * lib/fts_.h (__GNUC_PREREQ): Define.
32577         (__attribute_warn_unused_result__): Define.
32578         (fts_children, fts_close, fts_open, fts_read): Declare with
32579         __attribute_warn_unused_result__.
32580
32581         fts: fts_close now fails also when closing a dir file descriptor fails
32582         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32583         and propagate to caller, along with errno.
32584
32585         announce-gen: correct formatting in --help output
32586         * build-aux/announce-gen (usage): Move the one-line description in
32587         --help output "up", to where it belongs, just after Usage:.
32588
32589 2009-08-31  Eric Blake  <ebb9@byu.net>
32590
32591         fchdir: port to mingw
32592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32593         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32594         opened, then use a substitute.
32595         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32596         replacement.
32597         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32598         (_gl_register_fd): No need to check stat if open already filters
32599         all directories.
32600         (fchdir): Fix error condition to match POSIX.
32601         * modules/fchdir (Depends-on): Add sys_stat.
32602         * doc/posix-functions/open.texi (open): Document the limitation.
32603         * modules/fchdir-tests: New file.
32604         * tests/test-fchdir.c: Likewise.
32605
32606         canonicalize: allow cross-testing from cygwin to mingw
32607         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32608         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32609         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32610         Likewise.
32611         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32612         target does not support symlinks.
32613         * tests/test-canonicalize-lgpl.sh: Likewise.
32614
32615         chown: avoid compilation warning on mingw
32616         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32617         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32618         mingw.
32619         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32620         * modules/chown (Depends-on): Add errno.
32621
32622 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32623
32624         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32625         command.
32626
32627 2009-08-31  Jim Meyering  <meyering@redhat.com>
32628
32629         canonicalize: remove useless initialization
32630         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32631         initialization of local, "end".
32632
32633 2009-08-30  Bruno Haible  <bruno@clisp.org>
32634
32635         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32636         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32637         ENOSYS.
32638
32639 2009-08-30  Bruno Haible  <bruno@clisp.org>
32640
32641         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32642         /usr/xpg4/bin/tr when it exists.
32643         * tests/test-pipe-filter-gi1.sh: Likewise.
32644
32645 2009-08-30  Bruno Haible  <bruno@clisp.org>
32646
32647         Work around deficient /usr/bin/id program on Solaris.
32648         * tests/test-file-has-acl.sh (ID): New variable.
32649         * tests/test-set-mode-acl.sh (ID): Likewise.
32650         * tests/test-copy-acl.sh (ID): Likewise.
32651         * tests/test-copy-file.sh (ID): Likewise.
32652
32653 2009-08-30  Bruno Haible  <bruno@clisp.org>
32654
32655         New module 'xstriconveh'.
32656         * lib/xstriconveh.h: New file.
32657         * lib/xstriconveh.c: New file.
32658         * modules/xstriconveh: New file.
32659
32660 2009-08-30  Bruno Haible  <bruno@clisp.org>
32661
32662         Make it easier to use mem_cd_iconveh.
32663         * lib/striconveh.h (iconveh_t): New type.
32664         (iconveh_open, iconveh_close): New declarations.
32665         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32666         with a single 'const iconveh_t *' argument.
32667         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32668         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32669         with a single 'const iconveh_t *' argument.
32670         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32671         * tests/test-striconveh.c (main): Update.
32672         * NEWS: Mention the change.
32673
32674 2009-08-30  Bruno Haible  <bruno@clisp.org>
32675
32676         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32677         problem.
32678
32679 2009-08-30  Bruno Haible  <bruno@clisp.org>
32680
32681         Work around iconv_open problem on Solaris.
32682         * lib/iconv_open-solaris.gperf: New file.
32683         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32684         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32685         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32686         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32687         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32688         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32689
32690 2009-08-29  Jim Meyering  <meyering@redhat.com>
32691
32692         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32693         * top/maint.mk (cvs-check): Remove target; it was just an alias
32694         to the better-named vc-diff-check.
32695         (maintainer-distcheck): Remove rule.  It was used only from
32696         the (alpha/beta/major) target, and all of its commands but one
32697         were coreutils-specific.
32698         (vc-dist): Remove rule.
32699         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32700         Run vc-diff-check, not vc-dist.
32701         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32702
32703 2009-08-27  Bruno Haible  <bruno@clisp.org>
32704
32705         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32706         of 0.
32707
32708 2009-08-27  Bruno Haible  <bruno@clisp.org>
32709
32710         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32711         compilers.
32712         * doc/func.texi: Document the SunPRO C bug.
32713
32714 2009-08-27  Bruno Haible  <bruno@clisp.org>
32715
32716         Fix link error on Solaris.
32717         * tests/test-parse-duration.c (xstrdup): Remove function.
32718
32719 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32720
32721         ignore-value: handle pointer types, too
32722         * lib/ignore-value.h (__attribute__): Remove definition.
32723         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32724         of a more concise and more-often effective "(void) i" statement.
32725         (ignore_ptr): New function to suppress warnings from functions that
32726         return pointers, and to make it explicit that one function doesn't
32727         handle all cases.
32728
32729 2009-08-25  Bruno Haible  <bruno@clisp.org>
32730
32731         dup2: work around a Linux bug.
32732         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32733         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32734         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32735         Reported by Simon Josefsson.
32736
32737 2009-08-25  Jim Meyering  <meyering@redhat.com>
32738
32739         libguestfs uses gnulib
32740         * users.txt: Add libguestfs.
32741
32742 2009-08-24  Eric Blake  <ebb9@byu.net>
32743
32744         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32745         * lib/pipe2.c (includes): Add binary-io.h.
32746         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32747
32748 2009-08-24  Bruno Haible  <bruno@clisp.org>
32749
32750         Tolerate declared but missing accept4 syscall.
32751         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32752         available.
32753         * lib/sys_socket.in.h (accept4): If the function is already present,
32754         override it.
32755         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32756         * modules/accept4 (Makefile.am): Compile accept4.c always.
32757         Reported by Paolo Bonzini and Eric Blake.
32758
32759 2009-08-23  Bruno Haible  <bruno@clisp.org>
32760
32761         New module 'accept4'.
32762         * lib/sys_socket.in.h (accept4): New declaration.
32763         * lib/accept4.c: New file.
32764         * m4/accept4.m4: New file.
32765         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32766         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32767         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32768         HAVE_ACCEPT4.
32769         * modules/accept4: New file.
32770         * doc/glibc-functions/accept4.texi: Mention the new module.
32771
32772 2009-08-24  Jim Meyering  <meyering@redhat.com>
32773
32774         progname: also set global program_invocation_name, when possible
32775         Before this change, a libtool-enabled program that calls glibc's
32776         error function would report the program name as
32777         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32778         * modules/progname (configure.ac): Check for a declaration of
32779         program_invocation_name.
32780         * lib/progname.c:  Include <errno.h>.
32781         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32782         Set program_invocation_name.
32783
32784 2009-08-23  Bruno Haible  <bruno@clisp.org>
32785
32786         * lib/dup3.c: Include <string.h>.
32787
32788 2009-08-23  Bruno Haible  <bruno@clisp.org>
32789
32790         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32791         * lib/pipe2.c (pipe2): Likewise.
32792         Suggested by Eric Blake.
32793
32794 2009-08-23  Bruno Haible  <bruno@clisp.org>
32795
32796         Tolerate declared but missing dup3 syscall.
32797         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32798         * lib/unistd.in.h (dup3): If the function is already present,
32799         override it.
32800         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32801         * modules/dup3 (Makefile.am): Compile dup3.c always.
32802         Reported by Paolo Bonzini.
32803
32804 2009-08-23  Bruno Haible  <bruno@clisp.org>
32805
32806         Tolerate declared but missing pipe2 syscall.
32807         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32808         available.
32809         * lib/unistd.in.h (pipe2): If the function is already present,
32810         override it.
32811         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32812         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32813         Reported by Paolo Bonzini.
32814
32815 2009-08-23  Bruno Haible  <bruno@clisp.org>
32816
32817         * lib/pipe2.c (pipe2): Move #ifs inside function.
32818
32819 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32820
32821         quotearg: document limitations of quote_these_too
32822         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32823         those limitations are created.
32824         * lib/quotearg.h (set_char_quoting): Document that digits and
32825         letters that are special after backslash are not permitted.
32826         (quotearg_char): Cross-reference set_char_quoting documentation.
32827
32828 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32829
32830         quotearg: implement custom_quoting_style
32831         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32832         right_quote fields.
32833         (set_custom_quoting): New public function.
32834         (quotearg_buffer_restyled): Add left_quote and right_quote
32835         arguments, handle them very much like locale quoting, and update
32836         all uses.
32837         (quotearg_n_custom): New public function.
32838         (quotearg_n_custom_mem): New public function.
32839         (quotearg_custom): New public function.
32840         (quotearg_custom_mem): New public function.
32841         * lib/quotearg.h: Prototype and document new public functions.
32842         (enum quoting_style): For escape_quoting_style and
32843         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32844         ignored even though they're otherwise like c_quoting_style.
32845         Add custom_quoting_style member and document with comparison to
32846         clocale_quoting_style.
32847         * tests/test-quotearg.c (custom_quotes): New array.
32848         (custom_results): New array.
32849         (main): Extend to test custom quoting.
32850
32851 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32852
32853         quotearg: fix right quote escaping when it's in quote_these_too
32854         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32855         quote, be sure to prepend only one backslash.
32856         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32857         (main): Test it.
32858
32859 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32860
32861         quotearg-tests: test escaping of embedded locale quotes
32862         * tests/test-quotearg.c (struct result_strings): Add member for
32863         new input.
32864         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32865         (inputs): Add new input.
32866         (results_g): Add expected results.
32867         (flag_results): Likewise.
32868         (locale_results): Likewise.
32869         (compare_strings): Check those.
32870
32871 2009-08-23  Bruno Haible  <bruno@clisp.org>
32872
32873         Tests for module 'dup3'.
32874         * modules/dup3-tests: New file.
32875         * tests/test-dup3.c: New file.
32876
32877         New module 'dup3'.
32878         * lib/unistd.in.h (dup3): New declaration.
32879         * lib/dup3.c: New file.
32880         * m4/dup3.m4: New file.
32881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32882         HAVE_DUP3.
32883         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32884         * modules/dup3: New file.
32885         * doc/glibc-functions/dup3.texi: Mention the new module.
32886
32887 2009-08-23  Bruno Haible  <bruno@clisp.org>
32888
32889         Tweak the dup2 test.
32890         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32891         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32892         the test file is still empty. Fix argument order of lseek.
32893
32894 2009-08-23  Bruno Haible  <bruno@clisp.org>
32895
32896         Avoid test link errors when the modules getopt-gnu, gettext are used.
32897         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32899
32900 2009-08-23  Bruno Haible  <bruno@clisp.org>
32901
32902         Fix getdtablesize() on mingw.
32903         * lib/getdtablesize.c (getdtablesize): Implement differently.
32904         * lib/unistd.in.h (getdtablesize): Improve comment.
32905
32906 2009-08-23  Bruno Haible  <bruno@clisp.org>
32907
32908         New module 'mkostemp'.
32909         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32910         * lib/stdlib.in.h (mksotemp): New declaration.
32911         * lib/mkostemp.c: New file, from glibc with modifications.
32912         * lib/tempname.h (GT_FILE): Remove outdated comment.
32913         (gen_tempname): Add flags argument.
32914         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32915         (__GT_FILE): Map to 1.
32916         (small_open, large_open): Remove macros.
32917         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32918         * lib/mkstemp.c (mkstemp): Update.
32919         * lib/mkdtemp.c (mkdtemp): Likewise.
32920         * m4/mkostemp.m4: New file.
32921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32922         HAVE_MKOSTEMP.
32923         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32924         HAVE_MKOSTEMP.
32925         * modules/mkostemp: New file, based on modules/mkstemp.
32926         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32927         * NEWS: Mention the change.
32928
32929 2009-08-23  Bruno Haible  <bruno@clisp.org>
32930
32931         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32932         Reported by Eric Blake.
32933
32934 2009-08-23  Bruno Haible  <bruno@clisp.org>
32935
32936         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32937         Reported by Eric Blake.
32938
32939 2009-08-23  Bruno Haible  <bruno@clisp.org>
32940
32941         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32942         * modules/pipe2 (Depends-on): Likewise.
32943
32944 2009-08-23  Eric Blake  <ebb9@byu.net>
32945
32946         fcntl-h: add O_TTY_INIT support
32947         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32948         * tests/test-fcntl-h.c (o): Test it.
32949         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32950
32951         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32952         * modules/fcntl: Move <fcntl.h> header replacement...
32953         * modules/fcntl-h: ...to new name, so as not to collide with
32954         like-named function.
32955         * tests/test-fcntl.c: Rename...
32956         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32957         * modules/fcntl-tests: Rename...
32958         * modules/fcntl-h-tests: ...to this.  Update test file name.
32959         * modules/chdir-long (Depends-on): Update clients.
32960         * modules/chdir-safer (Depends-on): Likewise.
32961         * modules/fcntl-safer (Depends-on): Likewise.
32962         * modules/fts (Depends-on): Likewise.
32963         * modules/mkancesdirs (Depends-on): Likewise.
32964         * modules/mkdir-p (Depends-on): Likewise.
32965         * modules/open (Depends-on): Likewise.
32966         * modules/savewd (Depends-on): Likewise.
32967         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32968         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32969
32970 2009-08-22  Bruno Haible  <bruno@clisp.org>
32971
32972         * modules/binary-io (License): Relicense under LGPL.
32973         * modules/pipe2 (License): Likewise.
32974
32975 2009-08-22  Bruno Haible  <bruno@clisp.org>
32976
32977         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32978         return value.
32979         * lib/pipe-filter-gi.c (filter_init): Likewise.
32980         Reported by Eric Blake.
32981
32982 2009-08-22  Bruno Haible  <bruno@clisp.org>
32983
32984         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32985         * modules/pipe (Depends-on): Add pipe2.
32986
32987 2009-08-22  Bruno Haible  <bruno@clisp.org>
32988
32989         Tests for module 'pipe2'.
32990         * modules/pipe2-tests: New file.
32991         * tests/test-pipe2.c: New file.
32992
32993         New module 'pipe2'.
32994         * lib/unistd.in.h (pipe2): New declaration.
32995         * lib/pipe2.c: New file.
32996         * m4/pipe2.m4: New file.
32997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32998         HAVE_PIPE2.
32999         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33000         * modules/pipe2: New file.
33001         * doc/glibc-functions/pipe2.texi: Mention the new module.
33002
33003 2009-08-22  Bruno Haible  <bruno@clisp.org>
33004
33005         Reference some new glibc functions.
33006         * doc/glibc-functions/accept4.texi: New file.
33007         * doc/glibc-functions/dup3.texi: New file.
33008         * doc/glibc-functions/mkostemp.texi: New file.
33009         * doc/glibc-functions/pipe2.texi: New file.
33010         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33011         (Glibc sys/socket.h): Refer to accept4.
33012         (Glibc unistd.h): Refer to dup3, pipe2.
33013         Reported by Eric Blake.
33014
33015 2009-08-22  Jim Meyering  <meyering@redhat.com>
33016             Bruno Haible  <bruno@clisp.org>
33017
33018         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33019         This makes it so packages using automake-1.11's silent-rules option
33020         can print e.g., a single "GEN    configmake.h" line, rather than
33021         the 30+ statements that perform the job.  If you want to see the
33022         actual commands, you can still run "make V=1".
33023         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33024         so that make output is abbreviated when those variables are defined
33025         appropriately.
33026         * modules/argz: Likewise.
33027         * modules/arpa_inet: Likewise.
33028         * modules/byteswap: Likewise.
33029         * modules/configmake: Likewise.
33030         * modules/dirent: Likewise.
33031         * modules/errno: Likewise.
33032         * modules/fcntl: Likewise.
33033         * modules/float: Likewise.
33034         * modules/fnmatch: Likewise.
33035         * modules/getopt-posix: Likewise.
33036         * modules/glob: Likewise.
33037         * modules/iconv_open: Likewise.
33038         * modules/inttypes: Likewise.
33039         * modules/localcharset: Likewise.
33040         * modules/locale: Likewise.
33041         * modules/math: Likewise.
33042         * modules/netdb: Likewise.
33043         * modules/netinet_in: Likewise.
33044         * modules/poll: Likewise.
33045         * modules/posix_spawnp-tests: Likewise.
33046         * modules/sched: Likewise.
33047         * modules/search: Likewise.
33048         * modules/selinux-h: Likewise.
33049         * modules/signal: Likewise.
33050         * modules/spawn: Likewise.
33051         * modules/stdarg: Likewise.
33052         * modules/stdbool: Likewise.
33053         * modules/stddef: Likewise.
33054         * modules/stdint: Likewise.
33055         * modules/stdio: Likewise.
33056         * modules/stdlib: Likewise.
33057         * modules/string: Likewise.
33058         * modules/strings: Likewise.
33059         * modules/sys_file: Likewise.
33060         * modules/sys_ioctl: Likewise.
33061         * modules/sys_select: Likewise.
33062         * modules/sys_socket: Likewise.
33063         * modules/sys_stat: Likewise.
33064         * modules/sys_time: Likewise.
33065         * modules/sys_times: Likewise.
33066         * modules/sys_utsname: Likewise.
33067         * modules/sys_wait: Likewise.
33068         * modules/sysexits: Likewise.
33069         * modules/time: Likewise.
33070         * modules/unistd: Likewise.
33071         * modules/wchar: Likewise.
33072         * modules/wctype: Likewise.
33073
33074 2009-08-22  Jim Meyering  <meyering@redhat.com>
33075
33076         announce-gen: detect write failure
33077         * build-aux/announce-gen: Add Coda at end.
33078         Remove equivalent-but-more-verbose block at top.
33079
33080 2009-08-19  Akim Demaille  <demaille@gostai.com>
33081
33082         bootstrap: --help to stdout.
33083         * bootstrap (usage): Don't send --help to stderr.
33084         Use a here doc instead of a long string.
33085
33086 2009-08-21  Eric Blake  <ebb9@byu.net>
33087
33088         test-popen-safer: split from test-popen
33089         * tests/test-popen.c (main): Move...
33090         * tests/test-popen.h: ...into new file.
33091         * tests/test-popen-safer2.c: New file.
33092         * modules/popen-tests (Files): Add test-popen.h.
33093         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33094         Suggested by Bruno Haible.
33095
33096         test-fcntl-safer: split from test-open
33097         * tests/test-open.c (main): Move...
33098         * tests/test-open.h: ...into new file.
33099         * tests/test-fcntl-safer.c: New file.
33100         * modules/open-tests (Files): Add test-open.h.
33101         * modules/fcntl-safer-tests: New file.
33102         Suggested by Bruno Haible.
33103
33104         test-fopen-safer: split from test-fopen
33105         * tests/test-fopen.c (main): Move...
33106         * tests/test-fopen.h: ...into new file.
33107         * tests/test-fopen-safer.c: New file.
33108         * modules/fopen-tests (Files): Add test-fopen.h.
33109         * modules/fopen-safer-tests: New file.
33110         Suggested by Bruno Haible.
33111
33112 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33113
33114         popen-safer: test O_CLOEXEC at run-time.
33115         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33116
33117 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33118
33119         fcntl: move more flags to the header
33120         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33121         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33122         * lib/fcntl.in.h: Do both things here.
33123
33124 2009-08-21  Jim Meyering  <meyering@redhat.com>
33125
33126         consistently remove $@-t before redirecting to it
33127         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33128         * modules/alloca-opt: Likewise.
33129         * modules/byteswap: Likewise.
33130         * modules/fnmatch: Likewise.
33131         * modules/getopt-posix: Likewise.
33132         * modules/glob: Likewise.
33133         * modules/poll: Likewise.
33134         * modules/posix_spawnp-tests: Likewise.
33135         * modules/sys_socket: Likewise.
33136         * modules/sysexits: Likewise.
33137
33138 2009-08-21  Eric Blake  <ebb9@byu.net>
33139
33140         popen: simplify access to original popen
33141         * lib/popen.c (rpl_popen): No need to worry about popen being a
33142         macro.
33143         Reported by Bruno Haible.
33144
33145 2009-08-20  Eric Blake  <ebb9@byu.net>
33146
33147         build: avoid some compiler warnings
33148         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33149         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33150         type.
33151         (new_exclude_segment, excluded_file_pattern_p)
33152         (excluded_file_name_p): Reduce scope.
33153         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33154         old-style declaration.
33155
33156 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33157
33158         * tests/test-exclude1.sh: Handle Windows EOL.
33159         * tests/test-exclude2.sh: Likewise.
33160         * tests/test-exclude3.sh: Likewise.
33161         * tests/test-exclude4.sh: Likewise.
33162         * tests/test-exclude5.sh: Likewise.
33163         * tests/test-exclude6.sh: Likewise.
33164         * tests/test-exclude7.sh: Likewise.
33165
33166 2009-08-19  Akim Demaille  <demaille@gostai.com>
33167
33168         bootstrap: find sha1sum when named gsha1sum.
33169         * bootstrap (find_tool): New.
33170         ($SHA1SUM): New.
33171         Use it.
33172
33173 2009-08-20  Jim Meyering  <meyering@redhat.com>
33174
33175         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33176         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33177         expression that converts "." in a file name to "\." in the resulting
33178         regexp.  Start with a dummy statement, so that prior shell variable
33179         definitions are expanded portably.  Reported by Simon Josefsson.
33180
33181 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33182
33183         Fix polling for writeability of a screen buffer.
33184         * lib/poll.c: Distinguish input and screen buffers for the
33185         Win32 implementation.
33186         * lib/select.c: Likewise.
33187
33188 2009-08-19  Eric Blake  <ebb9@byu.net>
33189
33190         popen-safer: prevent popen from clobbering std descriptors
33191         * modules/popen-safer: New file.
33192         * lib/popen-safer.c: Likewise.
33193         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33194         * lib/stdio--.h (popen): Provide override.
33195         * lib/stdio-safer.h (popen_safer): Provide declaration.
33196         * tests/test-popen.c (includes): Partially test this.
33197         * modules/popen-safer-tests: New file, for more tests.
33198         * tests/test-popen-safer.c: Likewise.
33199         * MODULES.html.sh (file stream based Input/Output): Mention it.
33200
33201         tests: test some of the *-safer modules
33202         * modules/fopen-safer (Depends-on): Add fopen.
33203         * modules/fcntl-safer (Depends-on): Add fcntl.
33204         * modules/stdlib-safer (Depends-on): Add stdlib.
33205         (configure.ac): Set indicator.
33206         * modules/unistd-safer (configure.ac): Likewise.
33207         * modules/tmpfile-safer (configure.ac): Likewise.
33208         (Depends-on): Add tmpfile.
33209         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33210         active.
33211         * tests/test-fopen.c (includes): Test safer versions when they are
33212         in use.
33213         * tests/test-open.c (includes): Likewise.
33214
33215         popen: fix cygwin 1.5 bug when stdin closed
33216         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33217         * modules/popen: New file.
33218         * modules/popen-tests: Likewise.
33219         * tests/test-popen.c: Likewise.
33220         * m4/popen.m4: Likewise.
33221         * lib/popen.c: Likewise.
33222         * lib/stdio.in.h (popen): New declaration.
33223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33224         * modules/stdio (Makefile.am): Likewise.
33225         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33226
33227 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33228
33229         maint.mk: give full control over update-copyright exclusions
33230         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33231         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33232         (update-copyright): Don't force inclusion of top-level
33233         ChangeLog.  Don't force exclusion of all COPYING files, but make
33234         them the default exclusion instead.
33235
33236 2009-08-16  Bruno Haible  <bruno@clisp.org>
33237
33238         Fix test failures on Solaris 10.
33239         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33240         tests when Solaris iconv() is used.
33241         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33242         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33243         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33244         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33245         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33246
33247 2009-08-16  Bruno Haible  <bruno@clisp.org>
33248
33249         Fix test failures on Solaris 10.
33250         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33251         'tr' program and pass it as first argument.
33252         * tests/test-pipe-filter-gi1.sh: Likewise.
33253         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33254         program as first argument.
33255         * tests/test-pipe-filter-gi1.c (main): Likewise.
33256
33257 2009-08-16  Eric Blake  <ebb9@byu.net>
33258
33259         fpurge: fix previous commits
33260         * modules/fpurge (Makefile.am): Make replacement conditional,
33261         partially reverting 2007-04-29 change; missed in previous
33262         attempt.
33263         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33264         is missing.
33265
33266 2009-08-16  Bruno Haible  <bruno@clisp.org>
33267
33268         Clarify fpurge's effect on the file position.
33269         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33270         * tests/test-fpurge.c (main): Make a second pass for checking the file
33271         position.
33272
33273 2009-08-16  Bruno Haible  <bruno@clisp.org>
33274
33275         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33276         declaration of fpurge is missing.
33277         * tests/test-fpurge.c (main): Check that the file has not more contents
33278         than expected. Close the file before removing it.
33279
33280 2009-08-15  Eric Blake  <ebb9@byu.net>
33281
33282         fpurge: don't wrap working cygwin implementation
33283         * lib/fpurge.c (fpurge): Fix comment typo.
33284         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33285         1.7 to avoid replacement.
33286         * tests/test-fpurge.c (main): Enhance test.
33287
33288 2009-08-15  Eric Blake  <ebb9@byu.net>
33289         and Jim Meyering  <meyering@redhat.com>
33290
33291         test-update-copyright: skip if perl is insufficient
33292         * tests/test-update-copyright.sh: Failure to run maintainer tool
33293         should not cause testsuite failure on cygwin 1.5.
33294
33295 2009-08-14  Eric Blake  <ebb9@byu.net>
33296
33297         doc: mention more functions added in cygwin 1.7.0
33298         * doc/posix-headers/limits.texi (limits.h): Update for recent
33299         cygwin additions.
33300         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33301         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33302         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33303         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33304         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33305
33306 2009-08-14  Eric Blake  <ebb9@byu.net>
33307
33308         maint.mk: simplify update-copyright rule
33309         * top/maint.mk (update-copyright-local): Delete, and document how
33310         to do it in cfg.mk instead.
33311         (update-copyright-exclude-regexp): Delete, and document how to do
33312         it in .x-update-copyright instead.
33313         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33314         exclude ChangeLog.
33315
33316 2009-08-14  Bruno Haible  <bruno@clisp.org>
33317
33318         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33319
33320 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33321
33322         maint.mk: support update-copyright-env
33323         * top/maint.mk (update-copyright-env): Define place-holder.
33324         (update-copyright): Expand $(update-copyright-env) before
33325         invoking update-copyright.
33326
33327 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33328
33329         update-copyright: implement forced reformatting
33330         * build-aux/update-copyright: Implement and document
33331         UPDATE_COPYRIGHT_FORCE.
33332         * tests/test-update-copyright.sh: Test it.
33333
33334 2009-08-14  Eric Blake  <ebb9@byu.net>
33335         and Bruno Haible  <bruno@clisp.org>
33336
33337         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33338         * tests/test-locale.c: Revert previous patch related to NULL.
33339         * tests/test-stdio.c: Likewise.
33340         * tests/test-stdlib.c: Likewise.
33341         * tests/test-string.c: Likewise.
33342         * tests/test-unistd.c: Likewise.
33343         * modules/time-tests (Depends-on): Add verify.
33344         * modules/wchar-tests (Depends-on): Likewise.
33345         * tests/test-time.c: Test for NULL compliance.
33346         * tests/test-wchar.c: Likewise.
33347         * modules/locale (Depends-on): Add stddef.
33348         * modules/stdio (Depends-on): Likewise.
33349         * modules/stdlib (Depends-on): Likewise.
33350         * modules/string (Depends-on): Likewise.
33351         * modules/time (Depends-on): Likewise.
33352         * modules/unistd (Depends-on): Likewise.
33353         * modules/wchar (Depends-on): Likewise.
33354         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33355         * lib/stdlib.in.h (includes): Likewise.
33356         * lib/string.in.h (includes): Likewise.
33357         * lib/time.in.h (includes): Likewise.
33358         * lib/unistd.in.h (includes): Likewise.
33359         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33360         replaced.
33361         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33362         * m4/stddef_h.m4: New file.
33363         * modules/stddef: Likewise.
33364         * lib/stddef.in.h: Likewise.
33365         * modules/stddef-tests: Likewise.
33366         * tests/test-stddef.c: Likewise.
33367         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33368         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33369         * doc/posix-headers/locale.texi (locale.h): Likewise.
33370         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33371         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33372         * doc/posix-headers/string.texi (string.h): Likewise.
33373         * doc/posix-headers/time.texi (time.h): Likewise.
33374         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33375         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33376
33377 2009-08-14  Eric Blake  <ebb9@byu.net>
33378
33379         doc: improve git diff of texinfo files
33380         * .gitattributes: Add rule for *.texi files, with hint on how to
33381         use it.
33382         Copied from m4, and based on a report by Bruno Haible.
33383
33384 2009-08-14  Bruno Haible  <bruno@clisp.org>
33385
33386         Disable multithread support by default on Cygwin 1.5.x for real.
33387         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33388
33389 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33390
33391         update-copyright: much ado about intervals
33392         * build-aux/update-copyright: Implement and document
33393         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33394         of copyright year intervals.
33395         Also, document UPDATE_COPYRIGHT_YEAR.
33396         * tests/test-update-copyright.sh: Test it.
33397
33398         update-copyright: convert 2-digit to 4-digit years
33399         * build-aux/update-copyright: Implement and document.
33400         * tests/test-update-copyright.sh: Update.
33401
33402 2009-08-14  Jim Meyering  <meyering@redhat.com>
33403
33404         test-exclude: avoid coreutils "make check" failure
33405         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33406         just as in test-argmatch.c.
33407
33408 2009-08-13  Eric Blake  <ebb9@byu.net>
33409
33410         test-dup2: fix bad assumption
33411         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33412         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33413
33414         test-version-etc: fix CRLF portability issue
33415         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33416         recognize \r.
33417         * tests/test-argp-version-etc-1.sh: Likewise.
33418
33419         getopt: update client modules
33420         * modules/argp (Depends-on): Use getopt-gnu.
33421         * modules/git-merge-changelog (Depends-on): Likewise.
33422         * modules/long-options (Depends-on): Likewise.
33423         * modules/xstrtol (Depends-on): Likewise.
33424
33425 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33426
33427         * tests/test-version-etc.sh: Don't fail on different
33428         project/version.  Don't fail on CRLF differences.  Rewrite to use
33429         multiple -e instead of multiple sed forks, suggested by Eric Blake
33430         <ebb9@byu.net>.
33431         * tests/test-argp-version-etc-1.sh: Likewise.
33432
33433 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33434
33435         * tests/test-version-etc.sh: Don't fail on different
33436         project/version.
33437
33438 2009-08-12  Bruno Haible  <bruno@clisp.org>
33439
33440         Tests for modules 'getopt-posix', 'getopt-gnu'.
33441         * modules/getopt-posix-tests: New file.
33442         * tests/test-getopt.c: New file.
33443         * tests/test-getopt.h: New file.
33444         * tests/test-getopt_long.h: New file.
33445
33446         New modules 'getopt-posix', 'getopt-gnu'.
33447         * modules/getopt-gnu: New file, renamed from modules/getopt.
33448         * modules/getopt-posix: New file.
33449         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33450         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33451         (gl_GETOPT): Remove macro.
33452         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33453         Disable the test against BSD systems that declare optreset. Test
33454         against mingw bug. Test against lack of support of optional arguments
33455         on many platforms.
33456         * doc/glibc-headers/getopt.texi: Update module name and list of
33457         relevant platforms.
33458         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33459         'getopt-gnu' and more portability problems.
33460         * NEWS: Mention the changes.
33461
33462 2009-08-12  Bruno Haible  <bruno@clisp.org>
33463
33464         Ensure that optarg etc. get declared by <unistd.h>.
33465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33466         AC_USE_SYSTEM_EXTENSIONS.
33467         * modules/getopt (Depends-on): Add 'extensions'.
33468
33469 2009-08-12  Bruno Haible  <bruno@clisp.org>
33470
33471         Avoid test link errors.
33472         * modules/pipe-filter-ii-tests (Makefile.am): Define
33473         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33474         * modules/pipe-filter-gi-tests (Makefile.am): Define
33475         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33477
33478 2009-08-12  Bruno Haible  <bruno@clisp.org>
33479
33480         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33481         gl_GETOPT_SUBSTITUTE before.
33482         (gl_GETOPT): Use it.
33483         * m4/argp.m4 (gl_ARGP): Update.
33484         Reported by Sergey Poznyakoff.
33485
33486         * m4/getopt.m4: Reorder macros.
33487         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33488         (gl_GETOPT_SUBSTITUTE): Remove macro.
33489
33490 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33491
33492         Minor improvement in gitlog-to-changelog
33493
33494         * build-aux/gitlog-to-changelog: New option `--format' makes
33495         output format string configurable.
33496
33497 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33498
33499         Optimize exclude: use hash tables for non-wildcard patterns.
33500
33501         * lib/exclude.c: Include hash.h and mbuiter.h
33502         (struct exclude_pattern, exclude_segment): New data types.
33503         (struct exclude): Rewrite.
33504         (fnmatch_pattern_has_wildcards): New function.
33505         (new_exclude_segment, free_exclude_segment): New functions.
33506         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33507         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33508         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33509         * modules/exclude: Depend on hash and mbuiter.
33510
33511         * modules/exclude-tests: New file.
33512         * tests/test-exclude.c: New file.
33513         * tests/test-exclude1.sh: New file.
33514         * tests/test-exclude2.sh: New file.
33515         * tests/test-exclude3.sh: New file.
33516         * tests/test-exclude4.sh: New file.
33517         * tests/test-exclude5.sh: New file.
33518         * tests/test-exclude6.sh: New file.
33519         * tests/test-exclude7.sh: New file.
33520
33521 2009-08-12  Bruno Haible  <bruno@clisp.org>
33522
33523         Ensure that getopt() gets declared by <unistd.h>.
33524         * lib/unistd.in.h: Conditionally include getopt.h.
33525         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33526         Set GNULIB_UNISTD_H_GETOPT.
33527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33528         GNULIB_UNISTD_H_GETOPT.
33529         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33530
33531 2009-08-12  Bruno Haible  <bruno@clisp.org>
33532
33533         Clarify logic.
33534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33535         gl_replace_getopt instead of GETOPT_H.
33536
33537 2009-08-12  Bruno Haible  <bruno@clisp.org>
33538
33539         * m4/getopt.m4: Add comments.
33540
33541 2009-08-12  Bruno Haible  <bruno@clisp.org>
33542
33543         Disable multithread support by default on Cygwin 1.5.x.
33544         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33545         set gl_use_threads=no if not specified otherwise.
33546
33547 2009-08-11  Bruno Haible  <bruno@clisp.org>
33548
33549         Avoid compilation error on NetBSD 5.0.
33550         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33551         * tests/test-stdio.c: Likewise.
33552         * tests/test-stdlib.c: Likewise.
33553         * tests/test-string.c: Likewise.
33554         * tests/test-unistd.c: Likewise.
33555         Reported by Greg Troxel <gdt@ir.bbn.com>
33556         at <https://savannah.gnu.org/support/?106973>.
33557
33558 2009-08-11  Bruno Haible  <bruno@clisp.org>
33559
33560         * modules/dup2-tests (Depends-on): Remove close.
33561
33562         Undo 2009-07-19 commit.
33563         * modules/acl-tests (Depends-on): Remove close.
33564         * modules/binary-io-tests (Depends-on): Likewise.
33565         * modules/closein-tests (Depends-on): Likewise.
33566         * modules/flock-tests (Depends-on): Likewise.
33567         * modules/fsync-tests (Depends-on): Likewise.
33568         * modules/lseek-tests (Depends-on): Likewise.
33569         * modules/pipe-tests (Depends-on): Likewise.
33570         * modules/posix_spawn-tests (Depends-on): Likewise.
33571         * modules/posix_spawnp-tests (Depends-on): Likewise.
33572         * modules/stat-time-tests (Depends-on): Likewise.
33573         * modules/yesno-tests (Depends-on): Likewise.
33574
33575 2009-08-10  Bruno Haible  <bruno@clisp.org>
33576
33577         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33578
33579 2009-08-10  Bruno Haible  <bruno@clisp.org>
33580
33581         Fix a gcc warning.
33582         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33583
33584 2009-08-10  Bruno Haible  <bruno@clisp.org>
33585
33586         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33587         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33588         not only the first time.
33589         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33590         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33591         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33592         is 1, not only the the first time.
33593
33594 2009-08-10  Bruno Haible  <bruno@clisp.org>
33595
33596         Make it possible to use module 'gethostname' without module 'close'.
33597         * lib/unistd.in.h (close): Evoke a link error only if
33598         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33600         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33601         * modules/unistd (Makefile.am): Substitute
33602         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33603         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33604         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33605         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33606         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33607         * modules/sys_ioctl (Makefile.am): Substitute
33608         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33609         * modules/socket (configure.ac): On native Windows, set
33610         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33611         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33612         Reported by Sam Steingold <sds@gnu.org>.
33613
33614 2009-08-10  Bruno Haible  <bruno@clisp.org>
33615
33616         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33617         * modules/ioctl (configure.ac): Likewise.
33618
33619 2009-08-10  Bruno Haible  <bruno@clisp.org>
33620
33621         Avoid collision between gnulib wrapper and libintl wrapper.
33622         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33623         already defined in intl/printf.c.
33624         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33625         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33626
33627 2009-08-09  Bruno Haible  <bruno@clisp.org>
33628
33629         Make <sys/select.h> really self-contained, also on Solaris 10.
33630         * lib/sys_select.in.h: Include <string.h>.
33631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33632         Solaris 10 problem.
33633         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33634         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33635         Reported by Jim Meyering.
33636
33637 2009-08-09  Bruno Haible  <bruno@clisp.org>
33638
33639         Avoid warnings from 'aclocal' that are due to a use of macro name
33640         AM_XGETTEXT_OPTION that is not defined in automake.
33641         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33642         automake.
33643         * modules/error (configure.ac): Likewise.
33644         * modules/propername (configure.ac): Likewise.
33645         * modules/vasprintf (configure.ac): Likewise.
33646         * modules/verror (configure.ac): Likewise.
33647         * modules/xprintf (configure.ac): Likewise.
33648         * modules/xvasprintf (configure.ac): Likewise.
33649
33650 2009-08-08  Bruno Haible  <bruno@clisp.org>
33651
33652         Avoid compilation error in C++ mode.
33653         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33654         Reported by Sam Steingold <sds@gnu.org>.
33655
33656 2009-08-08  Bruno Haible  <bruno@clisp.org>
33657
33658         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33659         for the various Unix platforms.
33660         * doc/posix-headers/limits.texi: Update platforms list regarding
33661         HOST_NAME_MAX.
33662         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33663
33664 2009-08-07  Jim Meyering  <meyering@redhat.com>
33665
33666         selinux-at: fix typo in a comment
33667         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33668         Spotted by Paolo Bonzini.
33669
33670         selinux-at: remove redundant m4 code, add documentation
33671         * modules/selinux-at (configure.ac): Remove redundant code.
33672         LIB_SELINUX is already set via the dependent module, selinux-h.
33673         (Include): Add quotes around selinux-at.h.
33674         * lib/selinux-at.h: Add documentation.
33675         Reported by Bruno Haible in
33676         http://marc.info/?l=gnulib-bug&m=124958988300749
33677
33678 2009-08-07  Bruno Haible  <bruno@clisp.org>
33679
33680         Avoid link error on MacOS X 10.3 and 10.4.
33681         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33682         on non-ELF systems.
33683         * lib/argp-pv.c (argp_program_version): Likewise.
33684         Reported by Simon Josefsson.
33685
33686 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33687
33688         * tests/test-version-etc.sh: Use $EXEEXT.
33689
33690 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33691
33692         update-copyright: update documentation to point to maint.mk
33693         * build-aux/update-copyright: Here.
33694
33695 2009-08-06  Jim Meyering  <meyering@redhat.com>
33696
33697         maint.mk: support update-copyright-local
33698         * top/maint.mk (update-copyright-local): Define place-holder.
33699         (update-copyright): Depend on $(update-copyright-local).
33700
33701 2009-08-06  Jim Meyering  <meyering@redhat.com>
33702
33703         selinux-at: new module
33704         Initially written for coreutils, this module will soon be
33705         used by findutils, too.
33706         * MODULES.html.sh [Misc]: Add selinux-at.
33707         * lib/selinux-at.h: New file, from coreutils.
33708         * lib/selinux-at.c: Likewise.
33709         * modules/selinux-at: Likewise.
33710         (License): Change from LGPL to GPL, since it depends
33711         on the GPL'd openat module.
33712
33713         doc: update README
33714         * README: Remove references to cogito.
33715         Remove cvs-repo-updating instructions from 2007.
33716         Don't imply that CVS is better if you have limited disk space.
33717
33718 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33719
33720         update-copyright: support C-style comments
33721         * build-aux/update-copyright: Implement and document.
33722         * tests/test-update-copyright.sh: Test.
33723
33724 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33725
33726         update-copyright: support omitted "(C)"
33727         * build-aux/update-copyright: Implement and document.  Also,
33728         allow variable whitespace before "(C)".
33729         * tests/test-update-copyright.sh: Test.
33730
33731 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33732
33733         update-copyright: don't trip on non-FSF copyright statements
33734         * build-aux/update-copyright: Fix so that the first correctly
33735         formatted FSF copyright statement is recognized no matter what
33736         appears before it.  Update documentation.
33737         * tests/test-update-copyright.sh: Test that.
33738
33739 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33740
33741         update-copyright: clean up code a little
33742         * build-aux/update-copyright: Append "_re" to the name of any
33743         variable holding a regular expression.
33744         Replace "old" and "new" with "stmt" in variable names.
33745         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33746         handled correctly.
33747         Format code more consistently.
33748
33749 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33750
33751         update-copyright-tests: improve portability
33752         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33753         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33754
33755 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33756
33757         update-copyright: support @copyright{} and &copy;
33758         * build-aux/update-copyright: Implement and document.
33759         * tests/test-update-copyright.sh: Test.
33760
33761 2009-08-04  Jim Meyering  <meyering@redhat.com>
33762
33763         update-copyright-tests: correctly test EOL=\r\n handling
33764         * tests/test-update-copyright.sh: Put \r at the end of some lines
33765         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33766
33767         maint.mk: make update-copyright exclusion list more configurable
33768         * top/maint.mk (update-copyright): Default to excluding COPYING,
33769         but allow an override, in case someone does want to update that file.
33770
33771         maint.mk: don't update copyright date in COPYING
33772         * top/maint.mk (update-copyright): Exclude COPYING.
33773
33774         maint.mk: add a copyright-updating rule
33775         * top/maint.mk (update-copyright): New rule.
33776         Derived from coreutils/Makefile.am.
33777
33778         update-copyright: rename some variables
33779         * build-aux/update-copyright: Rename a few variables for clarity.
33780         Tweak syntax.  List Joel E. Denny as coauthor.
33781
33782 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33783
33784         update-copyright: fix bug for 2-digit last year and add tests
33785         * build-aux/update-copyright: Fix bug.
33786         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33787         specified.
33788         * modules/update-copyright-tests: New
33789         * tests/test-update-copyright.sh: New.
33790
33791 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33792
33793         update-copyright: handle leading tabs in line prefix
33794         * build-aux/update-copyright: Count leading tabs as 8 spaces
33795         when computing margin.  This helps with the formatting of
33796         ChangeLogs, for example.
33797         Fix documentation a little.
33798
33799 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33800
33801         update-copyright: support EOL=\r\n
33802         * build-aux/update-copyright: Implement that.
33803
33804 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33805
33806         update-copyright: automatically format copyright statements
33807         * build-aux/update-copyright: Implement that.
33808         Also, be a little more predictable and safer by always failing
33809         when the full copyright format is not perfectly recognized as an
33810         unbroken whole.  Discussed at
33811         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33812         Rewrite documentation.
33813
33814 2009-08-03  Bruno Haible  <bruno@clisp.org>
33815
33816         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33817
33818 2009-08-02  Bruno Haible  <bruno@clisp.org>
33819
33820         Tests for module 'uname'.
33821         * modules/uname-tests: New file.
33822         * tests/test-uname.c: New file.
33823
33824         New module 'uname'.
33825         * lib/uname.c: New file.
33826         * m4/uname.m4: New file.
33827         * modules/uname: New file.
33828         * doc/posix-functions/uname.texi: Mention the new module.
33829
33830 2009-08-02  Bruno Haible  <bruno@clisp.org>
33831
33832         Tests for module 'sys_utsname'.
33833         * modules/sys_utsname-tests: New file.
33834         * tests/test-sys_utsname.c: New file.
33835
33836         New module 'sys_utsname'.
33837         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33838         * m4/sys_utsname_h.m4: New file.
33839         * modules/sys_utsname: New file.
33840         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33841
33842 2009-08-02  Bruno Haible  <bruno@clisp.org>
33843
33844         Implicitly initialize the sockets library.
33845         * lib/gethostname.c: Include sockets.h.
33846         (rpl_gethostname): Invoke gl_sockets_startup.
33847         * lib/socket.c: Include sockets.h.
33848         (rpl_socket): Invoke gl_sockets_startup.
33849         * modules/gethostname (Depends-on): Add sockets.
33850         * modules/socket (Depends-on): Likewise.
33851         * tests/test-poll.c: Don't include sockets.h.
33852         (main): Don't invoke gl_sockets_startup.
33853         * tests/test-select.c: Don't include sockets.h.
33854         (main): Don't invoke gl_sockets_startup.
33855
33856 2009-08-02  Bruno Haible  <bruno@clisp.org>
33857
33858         Allow multiple calls to gl_sockets_startup.
33859         * lib/sockets.c (initialized_sockets_version): New variable.
33860         (gl_sockets_startup): Do nothing if already called for this or a higher
33861         version.
33862         (gl_sockets_cleanup): Reset initialized_sockets_version.
33863
33864 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33865
33866         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33867         different project/version.
33868
33869 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33870             Bruno Haible  <bruno@clisp.org>
33871
33872         Tests for module 'pipe-filter-gi'.
33873         * modules/pipe-filter-gi-tests: New file.
33874         * tests/test-pipe-filter-gi1.sh: New file.
33875         * tests/test-pipe-filter-gi1.c: New file.
33876         * tests/test-pipe-filter-gi2.sh: New file.
33877         * tests/test-pipe-filter-gi2-main.c: New file.
33878         * tests/test-pipe-filter-gi2-child.c: New file.
33879
33880         New module 'pipe-filter-gi'.
33881         * lib/pipe-filter-gi.c: New file.
33882         * modules/pipe-filter-gi: New file.
33883
33884 2009-08-02  Bruno Haible  <bruno@clisp.org>
33885             Paolo Bonzini  <bonzini@gnu.org>
33886
33887         Tests for module 'pipe-filter-ii'.
33888         * modules/pipe-filter-ii-tests: New file.
33889         * tests/test-pipe-filter-ii1.sh: New file.
33890         * tests/test-pipe-filter-ii1.c: New file.
33891         * tests/test-pipe-filter-ii2.sh: New file.
33892         * tests/test-pipe-filter-ii2-main.c: New file.
33893         * tests/test-pipe-filter-ii2-child.c: New file.
33894
33895         New module 'pipe-filter-ii'.
33896         * lib/pipe-filter.h: New file.
33897         * lib/pipe-filter-ii.c: New file.
33898         * lib/pipe-filter-aux.h: New file.
33899         * modules/pipe-filter-ii: New file.
33900
33901 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33902
33903         * lib/gc-libgcrypt.c: Change copyright to FSF.
33904         * lib/gc-gnulib.c: Likewise.
33905
33906 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33907
33908         * lib/gethostname.c: Include limits.h.
33909
33910 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33911             Bruno Haible  <bruno@clisp.org>
33912
33913         Ensure HOST_NAME_MAX as part of the gethostname module.
33914         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33915         define also HOST_NAME_MAX.
33916         * tests/test-gethostname.c: Include <limits.h>.
33917         (main): Check also HOST_NAME_MAX.
33918         * doc/posix-headers/limits.texi: Document the mingw problem.
33919
33920 2009-08-02  Bruno Haible  <bruno@clisp.org>
33921
33922         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33923         Add comments.
33924
33925 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33926
33927         * lib/gethostname.c: Add Windows wrapper.
33928         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33929         * modules/gethostname: Depend on sys_socket & errno, for also
33930         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33931         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33932
33933 2009-07-31  Jim Meyering  <meyering@redhat.com>
33934
33935         getloadavg: fix symbol name in comment
33936         * lib/getloadavg.c: Correct a typo I introduced when adding
33937         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33938         Matt Kraai spotted the problem.
33939
33940 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33941
33942         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33943         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33944         code also if ! defined N_NAME_POINTER.
33945         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33946         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33947         but the n_name member is a 12-byte array.
33948
33949 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33950
33951         update-copyright: generalize comment handling
33952         * build-aux/update-copyright: Handle copyright statements
33953         within more comment styles.
33954         Document usage.
33955         Report any file with an external copyright holder or parse failure.
33956
33957 2009-07-29  Jim Meyering  <meyering@redhat.com>
33958
33959         mktime: correct setting of REPLACE_MKTIME
33960         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33961
33962         update-copyright: new module
33963         * modules/update-copyright: New file.
33964         * build-aux/update-copyright: New file.
33965         * MODULES.html.sh (maint+release support): Add update-copyright.
33966
33967 2009-07-27  Bruno Haible  <bruno@clisp.org>
33968
33969         Fix compilation error when <ctime> is used and mktime is replaced.
33970         * lib/time.in.h (mktime): New declaration.
33971         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33972         REPLACE_MKTIME instead of defining mktime in config.h.
33973         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33974         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33975         Reported by Ross McFarland <rwmcfa1@neces.com>.
33976
33977 2009-07-27  Bruno Haible  <bruno@clisp.org>
33978
33979         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33980         Reported by Matt Kraai <mkraai@beckman.com>.
33981
33982 2009-07-25  Jim Meyering  <meyering@redhat.com>
33983
33984         maint.mk: avoid warnings about missing files
33985         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33986         diagnostic when .prev-version does not exist.
33987         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33988         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33989         nonexistent cfg.mk.
33990         Suggestions from Simon Josefsson.
33991
33992 2009-07-25  Bruno Haible  <bruno@clisp.org>
33993
33994         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33995         defined as macros. Needed on QNX 6.4.1.
33996         Reported by Matt Kraai <mkraai@beckman.com>.
33997
33998 2009-07-23  Jim Meyering  <meyering@redhat.com>
33999
34000         maint.mk: invoke "make dist" with a working value of XZ_OPT
34001         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34002
34003 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34004
34005         Make fseeko.c compile on QNX.
34006         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34007
34008 2009-07-22  Peter Simons  <simons@cryp.to>
34009
34010         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34011         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34012         * lib/md4.h: Likewise.
34013         * lib/md5.h: Likewise.
34014         * lib/sha1.h: Likewise.
34015         * lib/sha256.h: Likewise.
34016         * lib/sha512.h: Likewise.
34017
34018         tests-sha1: don't assign literal string to 'char *' variable
34019         * tests/test-sha1.c (main): Declare locals with "const" to match
34020         attributes of the right hand side.
34021
34022 2009-07-21  Eric Blake  <ebb9@byu.net>
34023
34024         dup2: fix more mingw problems
34025         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34026         fd to itself.
34027         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34028         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34029         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34030         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34031         care of mingw bugs.
34032
34033 2009-07-21  Jim Meyering  <meyering@redhat.com>
34034
34035         vc-list-files: avoid failure when /bin/sh is dash
34036         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34037         On some Debian based systems, /bin/sh is a symlink to dash, and running
34038         this command would omit the "/" following each 'tests' prefix:
34039           dash -x build-aux/vc-list-files -C . tests
34040         That is because bash and dash work differently:
34041           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34042           bash ok
34043           dash odd
34044
34045 2009-07-21  Eric Blake  <ebb9@byu.net>
34046
34047         dup2-tests: test previous patch
34048         * modules/dup2-tests: New file.
34049         * tests/test-dup2.c: Likewise.
34050         * tests/test-open.c (main): Avoid unspecified behavior.
34051         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34052         test.
34053
34054         dup2: work around mingw and cygwin 1.5 bug
34055         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34057         * modules/unistd (Makefile.am): Substitute it.
34058         * lib/unistd.in.h (dup2): Declare the replacement.
34059         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34060         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34061         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34062         * modules/execute (Depends-on): Add dup2.
34063         * modules/fseterr (Depends-on): Likewise.
34064         * modules/pipe (Depends-on): Likewise.
34065         * modules/posix_spawn-internal (Depends-on): Likewise.
34066
34067 2009-07-21  Bruno Haible  <bruno@clisp.org>
34068
34069         * modules/.gitattributes: New file.
34070
34071 2009-07-20  Bruno Haible  <bruno@clisp.org>
34072
34073         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34074         (main): Use it.
34075
34076 2009-07-20  Eric Blake  <ebb9@byu.net>
34077
34078         test-pipe: make a bit more robust.
34079         * tests/test-pipe.c (myerr): Allow error messages regardless of
34080         what we do to stderr.
34081         (test_pipe): Rearrange to avoid deadlock.
34082         (child_main): Try a larger read, to ensure we avoided deadlock.
34083         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34084         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34085         if misused.
34086
34087 2009-07-19  Jim Meyering  <meyering@redhat.com>
34088
34089         fts: avoid false-positive cycle-detection
34090         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34091         for each new command line argument.
34092
34093 2009-07-19  Bruno Haible  <bruno@clisp.org>
34094
34095         Fix build error on mingw with the modules sys_select and unistd.
34096         * modules/acl-tests (Depends-on): Add close.
34097         * modules/binary-io-tests (Depends-on): Likewise.
34098         * modules/closein-tests (Depends-on): Likewise.
34099         * modules/flock-tests (Depends-on): Likewise.
34100         * modules/fsync-tests (Depends-on): Likewise.
34101         * modules/lseek-tests (Depends-on): Likewise.
34102         * modules/pipe-tests (Depends-on): Likewise.
34103         * modules/posix_spawn-tests (Depends-on): Likewise.
34104         * modules/posix_spawnp-tests (Depends-on): Likewise.
34105         * modules/stat-time-tests (Depends-on): Likewise.
34106         * modules/yesno-tests (Depends-on): Likewise.
34107
34108 2009-07-19  Bruno Haible  <bruno@clisp.org>
34109
34110         Unify conditionals.
34111         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34112         macros, not at the compiler macros.
34113         * lib/pipe.c: Likewise.
34114         * lib/execute.c: Likewise.
34115         * lib/spawni.c: Likewise.
34116
34117 2009-07-19  Bruno Haible  <bruno@clisp.org>
34118
34119         Fix handling of closed stdin/stdout/stderr on mingw.
34120         * lib/w32spawn.h: Include unistd.h.
34121         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34122         file descriptor with O_NOINHERIT flag.
34123         (fd_safer_noinherit): New function, based on fd-safer.c.
34124         (dup_safer_noinherit): New function, based on dup-safer.c.
34125         (undup_safer_noinherit): New function.
34126         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34127         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34128         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34129         instead of fd_safer.
34130         * tests/test-pipe.c: Include <windows.h>.
34131         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34132         result.
34133
34134         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34135         from main.
34136         (test_pipe): Pass an extra argument for disambiguation.
34137         (main): Invoke parent_main or child_main.
34138
34139         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34140         consistently.
34141
34142 2009-07-18  Eric Blake  <ebb9@byu.net>
34143
34144         test-pipe: fix mingw build
34145         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34146
34147 2009-07-18  Bruno Haible  <bruno@clisp.org>
34148
34149         * modules/pipe-tests (Makefile.am): Fix typo.
34150
34151 2009-07-18  Eric Blake  <ebb9@byu.net>
34152
34153         error: fix mingw build
34154         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34155         Reported by Bruno Haible.
34156
34157         error: avoid undefined use of stdout
34158         * lib/error.c (error, error_at_line): Check that fd 1 is open
34159         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34160         is handling faults and the close_stdout module wants to report the
34161         detection of closed stdout as an error.
34162
34163 2009-07-17  Eric Blake  <ebb9@byu.net>
34164
34165         pipe: be robust in face of closed fds
34166         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34167         should cause child to misbehave.
34168         * modules/pipe-tests: New module.
34169         * tests/test-pipe.c: New file.
34170         * tests/test-pipe.sh: New file.
34171         Reported by Akim Demaille.
34172
34173 2009-07-14  Bruno Haible  <bruno@clisp.org>
34174
34175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34176         Reported by anonymous kc.
34177
34178 2009-07-07  Jim Meyering  <meyering@redhat.com>
34179
34180         maint.mk: don't look for translatable strings in *.m4 or *.mk
34181         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34182         when searching for translatable strings.
34183
34184 2009-07-05  Jim Meyering  <meyering@redhat.com>
34185
34186         remove superfluous parentheses in STREQ definition
34187         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34188         * lib/getugroups.c (STREQ): Likewise.
34189         * lib/fnmatch.c (STREQ): Likewise.
34190         Spotted by Bruno Haible.
34191
34192 2009-07-04  Jim Meyering  <meyering@redhat.com>
34193
34194         argv-iter: new module
34195         * MODULES.html.sh: Add argv-iter.
34196         * lib/argv-iter.c, lib/argv-iter.h: New files.
34197         * modules/argv-iter: New file.
34198         * modules/argv-iter-tests: New file.
34199         * tests/test-argv-iter.c: Test it.
34200
34201 2009-07-04  Bruno Haible  <bruno@clisp.org>
34202
34203         Fix assertion.
34204         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34205         contains more exact copies of a given entry than file2, leave the extra
34206         copies unpaired rather than aborting.
34207         Reported by Eric Blake.
34208
34209 2009-07-02  Bruno Haible  <bruno@clisp.org>
34210
34211         Speedup git-merge-changelog for git cherry-pick.
34212         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34213         (entries_mapping_get): New function, extracted from compute_mapping.
34214         (entries_mapping_reverse_get): New function.
34215         (compute_mapping): Add a 'full' argument. Return the result in a
34216         'struct entries_mapping'.
34217         (main): Update. Access the mappings through entries_mapping_get.
34218         Reported by Eric Blake.
34219
34220 2009-07-02  Bruno Haible  <bruno@clisp.org>
34221
34222         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34223         best_i.
34224
34225 2009-07-02  Bruno Haible  <bruno@clisp.org>
34226
34227         Speed up approximate search for matching ChangeLog entries.
34228         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34229         argument. Call fstrcmp_bounded instead of fstrcmp.
34230         (compute_mapping, try_split_merged_entry, main): Update callers.
34231
34232 2009-07-02  Bruno Haible  <bruno@clisp.org>
34233
34234         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34235
34236 2009-06-30  Bruno Haible  <bruno@clisp.org>
34237
34238         Reduce the number of uc_is_cased calls.
34239         * lib/unicase.h (casing_suffix_context_t): Add
34240         'first_char_except_ignorable' field.
34241         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34242         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34243         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34244         Update initializer.
34245         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34246         case-ignorable characters.
34247         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34248         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34249         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34250         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34251         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34252
34253 2009-06-30  Bruno Haible  <bruno@clisp.org>
34254
34255         Tests for module 'unicase/ignorable'.
34256         * modules/unicase/ignorable-tests: New file.
34257         * tests/unicase/test-ignorable.c: New file, generated by
34258         gen-uni-tables.
34259
34260         Tests for module 'unicase/cased'.
34261         * modules/unicase/cased-tests: New file.
34262         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34263         * tests/unicase/test-predicate-part1.h: New file, derived from
34264         tests/unictype/test-predicate-part1.h.
34265         * tests/unicase/test-predicate-part2.h: New file, same as
34266         tests/unictype/test-predicate-part2.h.
34267
34268         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34269         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34270         (output_casing_properties): New function.
34271         (main): Call it.
34272         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34273         * lib/unicase/cased.c: Include unictype/bitmap.h.
34274         (uc_is_cased): Define through a bitmap lookup.
34275         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34276         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34277         (uc_is_case_ignorable): Define through a bitmap lookup.
34278         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34279         lib/unictype/bitmap.h.
34280         (Depends-on): Add inline. Clean up.
34281         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34282         lib/unictype/bitmap.h.
34283         (Depends-on): Add inline. Clean up.
34284         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34285         recognition.
34286         * tests/unicase/test-u16-tolower.c (main): Likewise.
34287         * tests/unicase/test-u32-tolower.c (main): Likewise.
34288
34289 2009-06-30  Bruno Haible  <bruno@clisp.org>
34290
34291         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34292         * lib/unicase/u16-casemap.c: Likewise.
34293         * lib/unicase/u32-casemap.c: Likewise.
34294
34295 2009-06-29  Bruno Haible  <bruno@clisp.org>
34296
34297         Define u32_casefold as a wrapper around u32_ct_casefold.
34298         * lib/unicase/u32-casefold.c: Update.
34299         * modules/unicase/u32-casefold (Depends-on): Add
34300         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34301         unicase/empty-suffix-context. Clean up.
34302
34303         Define u16_casefold as a wrapper around u16_ct_casefold.
34304         * lib/unicase/u16-casefold.c: Update.
34305         * modules/unicase/u16-casefold (Depends-on): Add
34306         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34307         unicase/empty-suffix-context. Clean up.
34308
34309         Define u8_casefold as a wrapper around u8_ct_casefold.
34310         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34311         * lib/unicase/u8-casefold.c: Update.
34312         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34313         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34314
34315         Define u32_totitle as a wrapper around u32_ct_totitle.
34316         * lib/unicase/u32-totitle.c: Update.
34317         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34318         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34319
34320         Define u16_totitle as a wrapper around u16_ct_totitle.
34321         * lib/unicase/u16-totitle.c: Update.
34322         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34323         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34324
34325         Define u8_totitle as a wrapper around u8_ct_totitle.
34326         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34327         functions.
34328         (FUNC): Delegate to U_CT_TOTITLE.
34329         * lib/unicase/u8-totitle.c: Update.
34330         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34331         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34332
34333         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34334         invocation.
34335         * modules/unicase/u32-tolower (Depends-on): Add
34336         unicase/empty-prefix-context, unicase/empty-suffix-context.
34337
34338         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34339         invocation.
34340         * modules/unicase/u16-tolower (Depends-on): Add
34341         unicase/empty-prefix-context, unicase/empty-suffix-context.
34342
34343         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34344         * modules/unicase/u8-tolower (Depends-on): Add
34345         unicase/empty-prefix-context, unicase/empty-suffix-context.
34346
34347         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34348         invocation.
34349         * modules/unicase/u32-toupper (Depends-on): Add
34350         unicase/empty-prefix-context, unicase/empty-suffix-context.
34351
34352         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34353         invocation.
34354         * modules/unicase/u16-toupper (Depends-on): Add
34355         unicase/empty-prefix-context, unicase/empty-suffix-context.
34356
34357         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34358         * modules/unicase/u8-toupper (Depends-on): Add
34359         unicase/empty-prefix-context, unicase/empty-suffix-context.
34360
34361         New module 'unicase/u32-ct-casefold'.
34362         * lib/unicase/u32-ct-casefold.c: New file.
34363         * modules/unicase/u32-ct-casefold: New file.
34364
34365         New module 'unicase/u16-ct-casefold'.
34366         * lib/unicase/u16-ct-casefold.c: New file.
34367         * modules/unicase/u16-ct-casefold: New file.
34368
34369         New module 'unicase/u8-ct-casefold'.
34370         * lib/unicase/u8-ct-casefold.c: New file.
34371         * lib/unicase/u-ct-casefold.h: New file, derived from
34372         lib/unicase/u-casefold.h.
34373         * modules/unicase/u8-ct-casefold: New file.
34374
34375         New module 'unicase/u32-ct-totitle'.
34376         * lib/unicase/u32-ct-totitle.c: New file.
34377         * modules/unicase/u32-ct-totitle: New file.
34378
34379         New module 'unicase/u16-ct-totitle'.
34380         * lib/unicase/u16-ct-totitle.c: New file.
34381         * modules/unicase/u16-ct-totitle: New file.
34382
34383         New module 'unicase/u8-ct-totitle'.
34384         * lib/unicase/u8-ct-totitle.c: New file.
34385         * lib/unicase/u-ct-totitle.h: New file, derived from
34386         lib/unicase/u-totitle.h.
34387         * modules/unicase/u8-ct-totitle: New file.
34388
34389         New module 'unicase/u32-ct-tolower'.
34390         * lib/unicase/u32-ct-tolower.c: New file.
34391         * modules/unicase/u32-ct-tolower: New file.
34392
34393         New module 'unicase/u16-ct-tolower'.
34394         * lib/unicase/u16-ct-tolower.c: New file.
34395         * modules/unicase/u16-ct-tolower: New file.
34396
34397         New module 'unicase/u8-ct-tolower'.
34398         * lib/unicase/u8-ct-tolower.c: New file.
34399         * modules/unicase/u8-ct-tolower: New file.
34400
34401         New module 'unicase/u32-ct-toupper'.
34402         * lib/unicase/u32-ct-toupper.c: New file.
34403         * modules/unicase/u32-ct-toupper: New file.
34404
34405         New module 'unicase/u16-ct-toupper'.
34406         * lib/unicase/u16-ct-toupper.c: New file.
34407         * modules/unicase/u16-ct-toupper: New file.
34408
34409         New module 'unicase/u8-ct-toupper'.
34410         * lib/unicase/u8-ct-toupper.c: New file.
34411         * modules/unicase/u8-ct-toupper: New file.
34412
34413         Add context arguments to u*_casemap functions.
34414         * lib/unicase/unicasemap.h: Include unicase.h.
34415         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34416         suffix_context arguments.
34417         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34418         functions.
34419         (FUNC): Add prefix_context and suffix_context arguments. Use
34420         uc_is_cased and uc_is_case_ignorable.
34421         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34422         * lib/unicase/u16-casemap.c: Likewise.
34423         * lib/unicase/u32-casemap.c: Likewise.
34424         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34425         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34426         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34427         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34428         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34429         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34430
34431         New module 'unicase/u32-suffix-context'.
34432         * lib/unicase/u32-suffix-context.c: New file.
34433         * modules/unicase/u32-suffix-context: New file.
34434
34435         New module 'unicase/u16-suffix-context'.
34436         * lib/unicase/u16-suffix-context.c: New file.
34437         * modules/unicase/u16-suffix-context: New file.
34438
34439         New module 'unicase/u8-suffix-context'.
34440         * lib/unicase/u8-suffix-context.c: New file.
34441         * lib/unicase/u-suffix-context.h: New file.
34442         * modules/unicase/u8-suffix-context: New file.
34443
34444         New module 'unicase/empty-suffix-context'.
34445         * lib/unicase/empty-suffix-context.c: New file.
34446         * modules/unicase/empty-suffix-context: New file.
34447
34448         New module 'unicase/u32-prefix-context'.
34449         * lib/unicase/u32-prefix-context.c: New file.
34450         * modules/unicase/u32-prefix-context: New file.
34451
34452         New module 'unicase/u16-prefix-context'.
34453         * lib/unicase/u16-prefix-context.c: New file.
34454         * modules/unicase/u16-prefix-context: New file.
34455
34456         New module 'unicase/u8-prefix-context'.
34457         * lib/unicase/u8-prefix-context.c: New file.
34458         * lib/unicase/u-prefix-context.h: New file.
34459         * lib/unicase/context.h: New file.
34460         * modules/unicase/u8-prefix-context: New file.
34461
34462         New module 'unicase/empty-prefix-context'.
34463         * lib/unicase/empty-prefix-context.c: New file.
34464         * modules/unicase/empty-prefix-context: New file.
34465
34466         New module 'unicase/ignorable'.
34467         * lib/unicase/ignorable.c: New file.
34468         * modules/unicase/ignorable: New file.
34469
34470         New module 'unicase/cased'.
34471         * lib/unicase/caseprop.h: New file.
34472         * lib/unicase/cased.c: New file.
34473         * modules/unicase/cased: New file.
34474
34475         New functions for case mapping of substrings.
34476         * lib/unicase.h (casing_prefix_context_t): New type.
34477         (unicase_empty_prefix_context): New variable.
34478         (u8_casing_prefix_context, u16_casing_prefix_context,
34479         u32_casing_prefix_context, u8_casing_prefixes_context,
34480         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34481         declarations.
34482         (casing_suffix_context_t): New type.
34483         (unicase_empty_suffix_context): New variable.
34484         (u8_casing_suffix_context, u16_casing_suffix_context,
34485         u32_casing_suffix_context, u8_casing_suffixes_context,
34486         u16_casing_suffixes_context, u32_casing_suffixes_context,
34487         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34488         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34489         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34490         declarations.
34491
34492 2009-06-28  Jim Meyering  <meyering@redhat.com>
34493
34494         boostrap: indent only with spaces
34495         * build-aux/bootstrap: Indent only with spaces, never TABs.
34496
34497         bootstrap: split long lines
34498         * build-aux/bootstrap: Keep line length < 80.
34499
34500         bootstrap: sync from coreutils
34501         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34502         just as autoreconf does.  Verify a list of prerequisite
34503         package-name,version-number pairs if defined in bootstrap.conf.
34504         Refer to README-prereq, if prerequisites are not satisfied.
34505
34506 2009-06-27  Eric Blake  <ebb9@byu.net>
34507
34508         tests: add test for bogus NULL definition
34509         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34510         * tests/test-stdlib.c: Likewise.
34511         * tests/test-string.c: Likewise.
34512         * tests/test-locale.c: Likewise.
34513         * tests/test-unistd.c: Likewise.
34514         * modules/stdio-tests (Depends-on): Add verify.
34515         * modules/stdlib-tests (Depends-on): Likewise.
34516         * modules/string-tests (Depends-on): Likewise.
34517         * modules/locale-tests (Depends-on): Likewise.
34518         * modules/unistd-tests (Depends-on): Likewise.
34519
34520 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34521
34522         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34523         self-explaining comment.
34524         * m4/selinux-selinux-h: Update serial.
34525         (gl_LIBSELINUX): New macro, adding a warning for missing development
34526         packages to code extracted from...
34527         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34528         Add warning for missing development packages here, too.
34529
34530 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34531
34532         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34533
34534 2009-06-25  Eric Blake  <ebb9@byu.net>
34535
34536         version-etc: fix regression
34537         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34538         gcc.
34539         (version_etc): Use it, to catch bugs with trailing NULL.
34540         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34541         (version_etc_va): Fix logic bug.
34542         * modules/version-etc-tests: Add test.
34543         * tests/test-version-etc.c: New file.
34544         * tests/test-version-etc.sh: Likewise.
34545
34546 2009-06-25  Sam Steingold  <sds@gnu.org>
34547
34548         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34549         mbtowc declaration.
34550
34551 2009-06-25  Eric Blake  <ebb9@byu.net>
34552
34553         fpurge: migrate into <stdio.h>
34554         * lib/fpurge.h: Delete...
34555         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34556         * lib/fpurge.c (fpurge): Change declaring header.
34557         * modules/fpurge (Files): Drop deleted file.
34558         (Depends-on): Add stdio.
34559         (configure.ac): Set witness.
34560         * modules/stdio (Makefile.am): Support fpurge macros.
34561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34562         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34563         * lib/fflush.c: Update client.
34564         * tests/test-fpurge.c: Likewise.
34565         * NEWS: Mention the change.
34566
34567 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34568
34569         * lib/argp-version-etc.c (program_authors): Add const
34570         qualifier.
34571         * lib/version-etc.c: Fix typos in the comments.
34572         * modules/argp-version-etc: Depends on version-etc.
34573
34574 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34575
34576         argp-version-etc: new module.
34577
34578         * lib/argp-version-etc.c: New file.
34579         * lib/argp-version-etc.h: New file.
34580         * modules/argp-version-etc: New file.
34581         * modules/argp-version-etc-tests: New file.
34582         * tests/test-argp-version-etc.c: New test.
34583         * tests/test-argp-version-etc-1.sh: New test.
34584
34585 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34586
34587         Provide additional interfaces and documentation for version-etc
34588         module.
34589
34590         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34591         interfaces.
34592         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34593         prototypes.
34594
34595 2009-06-24  Bruno Haible  <bruno@clisp.org>
34596
34597         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34598         HAVE_LIB${NAME} macro.
34599         Reported by Sam Steingold <sds@gnu.org>.
34600
34601 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34602
34603         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34604         needed.
34605
34606 2009-06-21  Bruno Haible  <bruno@clisp.org>
34607
34608         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34609         work.
34610         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34611         together with LIB${NAME}, LTLIB${NAME}.
34612         Reported by Sam Steingold <sds@gnu.org>.
34613
34614 2009-06-20  Jim Meyering  <meyering@redhat.com>
34615
34616         tests: make sc_require_test_exit_idiom more generic
34617         * top/maint.mk (Exit_witness_file): New overridable variable.
34618         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34619         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34620
34621 2009-06-19  Jim Meyering  <meyering@redhat.com>
34622
34623         hash: reverse order of src/dst parameters in an internal interface
34624         * lib/hash.c (transfer_entries): Reverse order of parameters to
34625         put DST before SRC.  Adjust callers.
34626
34627         tests: test-hash: avoid wholesale duplication
34628         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34629         Instead, use a loop and add a single conditional.
34630
34631         tests: test-hash: allow seed selection via a command line argument
34632         * tests/test-hash.c (get_seed): New function.
34633         (main): Use it.
34634
34635 2009-06-19  Eric Blake  <ebb9@byu.net>
34636
34637         hash: avoid memory leak on allocation failure
34638         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34639         failure.  Factor repeated algorithm...
34640         (transfer_entries): ...into new helper routine.
34641         (hash_delete): React to hash_rehash return value.
34642
34643         hash: reduce memory pressure in hash_rehash no-op case
34644         * lib/hash.c (next_prime): Avoid overflow.
34645         (hash_initialize): Factor bucket size computation...
34646         (compute_bucket_size): ...into new helper function.
34647         (hash_rehash): Use new function and open coding to reduce memory
34648         pressure, and avoid a memory leak in USE_OBSTACK code.
34649         Reported by Jim Meyering.
34650
34651 2009-06-18  Eric Blake  <ebb9@byu.net>
34652
34653         hash: make rotation more obvious
34654         * modules/hash (Depends-on): Add bitrotate and stdint.
34655         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34656         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34657         (SIZE_MAX): Rely on headers for definition.
34658         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34659         (raw_hasher): Use rotr_sz.
34660         Suggested by Jim Meyering.
34661
34662         hash: fix memory leak in last patch
34663         * lib/hash.c (hash_rehash): Avoid memory leak.
34664
34665         hash: avoid no-op rehashing
34666         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34667
34668         hash: provide default callback functions
34669         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34670         (hash_initialize): Use them as defaults.
34671         * tests/test-hash.c (main): Test this.
34672
34673         hash: minor optimization
34674         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34675         when possible.
34676         (hash_initialize): Document this promise.
34677         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34678         * tests/test-hash.c (hash_compare_strings): Test this.
34679
34680 2009-06-18  Bruno Haible  <bruno@clisp.org>
34681
34682         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34683         going to be replaced anyway.
34684
34685 2009-06-18  Bruno Haible  <bruno@clisp.org>
34686
34687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34688         in one place.
34689         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34690         be replaced anyway.
34691
34692 2009-06-18  Eric Blake  <ebb9@byu.net>
34693
34694         hash: check for resize before insertion
34695         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34696         threshold before insertion, so that a pathological hash_rehash
34697         that fills every bucket can still trigger another rehash.
34698
34699 2009-06-18  Jim Meyering  <meyering@redhat.com>
34700
34701         hash-tests: add a loop around the small tests
34702         * tests/test-hash.c (main): Repeat small tests with selected
34703         small initial table sizes.
34704
34705 2009-06-17  Eric Blake  <ebb9@byu.net>
34706
34707         hash: minor cleanups
34708         * lib/hash.h (hash_entry): Make opaque, by moving...
34709         * lib/hash.c (hash_entry): ...here.
34710         (hash_insert): Clarify restrictions on what can be inserted.
34711         (hash_get_next): Clarify when it is safe to remove an element
34712         during traversal.
34713         (check_tuning): Skip verification when tuning is known safe.
34714         (hash_initialize): Clarify restrictions on tuning.
34715
34716 2009-06-17  Jim Meyering  <jim@meyering.net>
34717         and Eric Blake  <ebb9@byu.net>
34718
34719         hash-tests: new module
34720         * modules/hash-tests: New file.
34721         * tests/test-hash.c: New file.
34722
34723 2009-06-17  Eric Blake  <ebb9@byu.net>
34724
34725         strstr-simple: document new module
34726         * MODULES.html.sh: Document new module.
34727
34728         strstr, strcasestr: replace on platforms with broken memchr
34729         * modules/strstr: Split into...
34730         * modules/strstr-simple: ...new module that does not care about
34731         performance, but does care about glibc bug.
34732         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34733         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34734         if platform memchr is broken, per Debian bug 521737.
34735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34736         memchr.
34737         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34738         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34739         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34740         * modules/mountlist (Depends-on): Add strstr-simple.
34741         * modules/gen-uni-tables (Depends-on): Likewise.
34742         * modules/argz (Depends-on): Add strstr.
34743
34744 2009-06-17  Bruno Haible  <bruno@clisp.org>
34745
34746         * modules/posix_spawn-internal (Depends-on): Add errno.
34747
34748 2009-06-17  Bruno Haible  <bruno@clisp.org>
34749
34750         Define missing ESTALE on Interix 3.5.
34751         * lib/errno.in.h (ESTALE): Assign a value if missing.
34752         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34753         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34754         missing.
34755         * doc/posix-headers/errno.texi: Mention the Interix bug.
34756         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34757
34758 2009-06-15  Eric Blake  <ebb9@byu.net>
34759
34760         memchr, memchr2: add valgrind exception
34761         * lib/memchr.valgrind: New file.
34762         * lib/memchr2.valgrind: New file.
34763         * modules/memchr (Files): Distribute valgrind file.
34764         * modules/memchr2 (Files): Likewise.
34765
34766         docs: memchr is no longer obsolete
34767         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34768         * lib/string.in.h (memchr): Simplify logic.
34769
34770 2009-06-14  Jim Meyering  <meyering@redhat.com>
34771
34772         link-follow: fix the "checking..." message to not mention trailing slash
34773         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34774         never considered trailing slashes.
34775
34776 2009-06-14  Bruno Haible  <bruno@clisp.org>
34777
34778         * m4/memchr.m4: Mention also the bug on IA-64.
34779         * doc/posix-functions/memchr.texi: Likewise.
34780
34781 2009-06-12  Eric Blake  <ebb9@byu.net>
34782
34783         memchr: detect broken x86_64 and alpha implementations
34784         * modules/memchr-tests (Depends-on): Move mmap detection...
34785         * modules/memchr (Depends-on): ...here.
34786         (configure.ac): Set indicator.
34787         * lib/string.in.h (memchr): Declare replacement.
34788         * modules/string (Makefile.am): Trigger replacement.
34789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34790         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34791         bugs.
34792         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34793         * modules/getpagesize (License): Relax license.
34794
34795 2009-06-11  Bruno Haible  <bruno@clisp.org>
34796
34797         * lib/idpriv.h: Add more references.
34798
34799 2009-06-08  Bruno Haible  <bruno@clisp.org>
34800
34801         Tests for module 'idpriv-droptemp'.
34802         * modules/idpriv-droptemp-tests: New file.
34803         * tests/test-idpriv-droptemp.sh: New file.
34804         * tests/test-idpriv-droptemp.su.sh: New file.
34805         * tests/test-idpriv-droptemp.c: New file.
34806
34807         New module 'idpriv-droptemp'.
34808         * lib/idpriv-droptemp.c: New file.
34809         * modules/idpriv-droptemp: New file.
34810
34811 2009-06-08  Bruno Haible  <bruno@clisp.org>
34812
34813         Tests for module 'idpriv-drop'.
34814         * modules/idpriv-drop-tests: New file.
34815         * tests/test-idpriv-drop.sh: New file.
34816         * tests/test-idpriv-drop.su.sh: New file.
34817         * tests/test-idpriv-drop.c: New file.
34818
34819         New module 'idpriv-drop'.
34820         * lib/idpriv.h: New file.
34821         * lib-idpriv-drop.c: New file.
34822         * m4/idpriv.m4: New file.
34823         * modules/idpriv-drop: New file.
34824
34825 2009-06-08  Bruno Haible  <bruno@clisp.org>
34826
34827         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34828         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34829         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34830         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34831         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34832         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34833         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34834
34835 2009-06-08  Eric Blake  <ebb9@byu.net>
34836
34837         test-strstr: use memory fence, when possible
34838         * tests/test-strstr.c (main): Use memory fence, in order to be
34839         more likely to trigger Debian bug 521737.
34840         * modules/strstr-tests (Files): Pull in additional files.
34841
34842         memchr: no longer obsolete, for wider field testing
34843         * modules/memchr (Status, Notice): Delete, this module is no
34844         longer obsolete.
34845         * modules/vasnprintf (Depends-on): Add memchr.
34846
34847 2009-06-07  Jim Meyering  <meyering@redhat.com>
34848
34849         hash: declare some functions with the warn_unused_result attribute
34850         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34851
34852 2009-06-07  Bruno Haible  <bruno@clisp.org>
34853
34854         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34855         Reported by Eric Blake.
34856
34857 2009-06-06  Eric Blake  <ebb9@byu.net>
34858
34859         test-alignof: fix typo with long double
34860         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34861         compiler error.
34862
34863 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34864
34865         Escape non-texinfo { and }s.
34866         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34867         markup error.
34868
34869 2009-06-04  Jim Meyering  <meyering@redhat.com>
34870
34871         gitlog-to-changelog: don't infloop on an empty commit log
34872         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34873         Reported by Boris Petersen <transacid@centerim.org>.
34874
34875 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34876
34877         version-etc: extend for packagers
34878         Add three new configure options, intended for packagers:
34879           --with-packager="packager name"
34880           --with-packager-version="packager-specific version"
34881           --with-packager-bug-reports="packager bug reporting"
34882         An example with coreutils:
34883           $ ./configure \
34884             --with-packager=Gentoo \
34885             --with-packager-bug-report=http://bugs.gentoo.org/ \
34886             --with-packager-version="patchset 1.6"
34887           $ ./src/ls --version | head -n2
34888           ls (GNU coreutils) 7.1-dirty
34889           Packaged by Gentoo (patchset 1.6)
34890         Note that the bug reporting info via --help doesn't show up because
34891         coreutils uses its own custom emit_bug_reporting_address() implementation
34892         in src/system.h.  If it didn't, it'd look like:
34893           $ ./src/ls --help | tail -n4
34894           Report bugs to <bug-coreutils@gnu.org>.
34895           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34896           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34897           General help using GNU software: <http://www.gnu.org/gethelp/>.
34898         * lib/version-etc.c: Print new information, if provided.
34899         * m4/version-etc.m4: New file.
34900         * modules/version-etc (Files): Add m4/version-etc.m4.
34901         (configure.ac): Add gl_VERSION_ETC.
34902
34903 2009-05-31  Bruno Haible  <bruno@clisp.org>
34904
34905         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34906         and 'int64_t'.
34907         * modules/alignof-tests (Dependencies): Add stdint.
34908         Reported by Eric Blake.
34909
34910 2009-05-31  Bruno Haible  <bruno@clisp.org>
34911
34912         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34913         restriction due to compiler bugs.
34914         Reported by Eric Blake.
34915
34916 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34917             Bruno Haible  <bruno@clisp.org>
34918
34919         Fix test-alignof failure.
34920         * lib/alignof.h (alignof_slot): New macro.
34921         (alignof_type): New macro, with the same semantics as the previous
34922         'alignof'.
34923         (alignof): Alias to alignof_slot.
34924         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34925         check that the results are usable as constant expressions.
34926
34927 2009-05-31  Bruno Haible  <bruno@clisp.org>
34928
34929         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34930         * tests/test-memchr.c (main): Check that memchr does not read past the
34931         first occurrence of the byte.
34932         * tests/test-strstr.c (main): Update comment.
34933         Suggested by Eric Blake.
34934
34935 2009-05-30  Bruno Haible  <bruno@clisp.org>
34936
34937         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34938         detail how to use dumpbin.
34939         Reported by David Byron <dbyron@dbyron.com>.
34940
34941 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34942
34943         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34944
34945 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34946
34947         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34948
34949 2009-05-28  Bruno Haible  <bruno@clisp.org>
34950
34951         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34952         build-aux/ files.
34953
34954 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34955
34956         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34957
34958 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34959
34960         * gnulib-tool (sed_transform_main_lib_file)
34961         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34962         regexps.
34963
34964 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34965
34966         * tests/test-strstr.c: Add another self-test.
34967         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34968         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34969
34970 2009-05-23  Bruno Haible  <bruno@clisp.org>
34971
34972         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34973         change.
34974
34975 2009-05-21  Bruno Haible  <bruno@clisp.org>
34976
34977         Simplify use of mode_t varargs.
34978         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34979         uses 'mode_t' or 'int'.
34980         * lib/openat.c (openat): Likewise.
34981         * lib/open-safer.c (open_safer): Likewise.
34982         * m4/mode_t.m4: New file.
34983         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34984         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34985         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34986         * modules/open (Files): Add m4/mode_t.m4.
34987         * modules/openat (Files): Likewise.
34988         * modules/fcntl-safer (Files): Likewise.
34989         Suggested by Eric Blake.
34990
34991 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34992
34993         * doc/glibc-functions/fallocate.texi: New file.
34994         * doc/gnulib.texi: Include it.
34995
34996 2009-05-21  Eric Blake  <ebb9@byu.net>
34997             Bruno Haible  <bruno@clisp.org>
34998
34999         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35000         invocations.
35001         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35002
35003 2009-05-21  Eric Blake  <ebb9@byu.net>
35004             Bruno Haible  <bruno@clisp.org>
35005
35006         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35007         include_next. Fix of 2008-11-20 commit.
35008         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35009         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35010         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35011         NEXT_MATH_H.
35012         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35013         instead of NEXT_MATH_H.
35014
35015 2009-05-21  Bruno Haible  <bruno@clisp.org>
35016
35017         Avoid redefinition warnings for SIZE_MAX.
35018         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35019         Reported by Simon Josefsson.
35020
35021 2009-05-21  Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35024         AC_CACHE_VAL.
35025
35026 2009-05-20  Bruno Haible  <bruno@clisp.org>
35027
35028         Make zeroptr.h work on mingw.
35029         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35030         mprotect.
35031         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35032         * modules/memchr2-tests (configure.ac): Likewise.
35033         * modules/memcmp-tests (configure.ac): Likewise.
35034         * modules/memmem-tests (configure.ac): Likewise.
35035         * modules/memrchr-tests (configure.ac): Likewise.
35036         Reported by Simon Josefsson.
35037
35038 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35039
35040         * tests/test-glob.c: Include string.h for strcmp prototype.
35041
35042 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35043
35044         * modules/getdelim (Depends-on): Add explicit stdint, although it
35045         was implicitly already pulled in via realloc-posix.
35046         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35047
35048 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35049
35050         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35051         G. Christensen" <tgc@jupiterrise.com>.
35052         * m4/sys_socket_h.m4: Check for sa_family_t.
35053         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35054         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35055         * tests/test-sys_socket.c: Check that sa_family_t works.
35056
35057 2009-05-18  Eric Blake  <ebb9@byu.net>
35058
35059         maint.mk: allow gnulib_dir in VPATH build
35060         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35061
35062 2009-05-15  Jim Meyering  <meyering@redhat.com>
35063
35064         maint.mk: Give gnulib_dir a default definition.
35065         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35066         Thus, most packages no longer need to specify this variable in cfg.mk
35067
35068 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35069
35070         rename.m4: fix typos that would make non-mingw cross-configure fail
35071         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35072
35073 2009-05-13  Eric Blake  <ebb9@byu.net>
35074
35075         mmap-anon: avoid out-of-order autoconf expansion
35076         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35077         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35078         * modules/memchr-tests (Depends-on): Add extensions.
35079         * modules/memchr2-tests (Depends-on): Add extensions.
35080         * modules/memcmp-tests (Depends-on): Add extensions.
35081         * modules/memmem-tests (Depends-on): Add extensions.
35082         * modules/memrchr-tests (Depends-on): Add extensions.
35083
35084 2009-05-13  Bruno Haible  <bruno@clisp.org>
35085
35086         Make some tests ISO C 99 compliant.
35087         * tests/zerosize-ptr.h: New file.
35088         * tests/test-memchr.c: Include zerosize-ptr.h.
35089         (main): Use a zero-size object pointer instead of NULL.
35090         * tests/test-memchr2.c: Include zerosize-ptr.h.
35091         (main): Use a zero-size object pointer instead of NULL.
35092         * tests/test-memcmp.c: Include zerosize-ptr.h.
35093         (main): Use a zero-size object pointer instead of NULL.
35094         * tests/test-memmem.c: Include zerosize-ptr.h.
35095         (main): Use a zero-size object pointer instead of NULL.
35096         * tests/test-memrchr.c: Include zerosize-ptr.h.
35097         (main): Use a zero-size object pointer instead of NULL.
35098         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35099         m4/mmap-anon.m4.
35100         (Depends-on): Add getpagesize.
35101         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35102         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35103         m4/mmap-anon.m4.
35104         (Depends-on): Add getpagesize.
35105         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35106         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35107         m4/mmap-anon.m4.
35108         (Depends-on): Add getpagesize.
35109         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35110         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35111         m4/mmap-anon.m4.
35112         (Depends-on): Add getpagesize.
35113         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35114         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35115         m4/mmap-anon.m4.
35116         (Depends-on): Add getpagesize.
35117         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35118
35119 2009-05-12  Bruno Haible  <bruno@clisp.org>
35120
35121         Tests for module 'alignof'.
35122         * modules/alignof-tests: New file.
35123         * tests/test-alignof.c: New file.
35124
35125 2009-05-12  Bruno Haible  <bruno@clisp.org>
35126
35127         Fix alignof macro.
35128         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35129         vendor compilers that are always correct.
35130
35131 2009-05-12  Bruno Haible  <bruno@clisp.org>
35132
35133         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35134         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35135         not whether its fully works.
35136
35137 2009-05-12  Bruno Haible  <bruno@clisp.org>
35138
35139         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35140
35141 2009-05-12  Jim Meyering  <meyering@redhat.com>
35142
35143         * top/maint.mk: Adjust backslash alignment.
35144
35145 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35146
35147         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35148
35149 2009-05-11  Eric Blake  <ebb9@byu.net>
35150
35151         argp: avoid undefined behavior
35152         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35153         macros.
35154
35155 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35156
35157         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35158         user.name to prevent git commit from complaining.
35159
35160 2009-05-10  Bruno Haible  <bruno@clisp.org>
35161
35162         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35163         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35164         it rewrites every file name only once.
35165         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35166
35167 2009-05-08  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35170         instead of 'max'.
35171
35172 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35173
35174         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35175         sockaddr_storage test.
35176
35177 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35178
35179         * modules/sys_socket (Makefile.am): Substitute
35180         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35181         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35182         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35183         * tests/test-sys_socket.c: Check sockaddr_storage.
35184
35185 2009-05-08  Bruno Haible  <bruno@clisp.org>
35186
35187         New module 'alignof'.
35188         * lib/alignof.h: New file.
35189         * modules/alignof: New file.
35190
35191 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35192             Bruno Haible  <bruno@clisp.org>
35193
35194         Fix test-file-has-acl on FreeBSD.
35195         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35196         mask is implicitly added.
35197         * tests/test-file-has-acl.c: Include <signal.h>.
35198         (main): Terminate the test after 5 seconds.
35199         * modules/acl-tests (configure.ac): Check for alarm function.
35200
35201 2009-05-04  Bruno Haible  <bruno@clisp.org>
35202
35203         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35205         * modules/errno (configure.ac): Drop AC_REQUIRE.
35206         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35207         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35208
35209 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35210
35211         * modules/glob-tests: New module.
35212         * tests/test-glob.c: Add.
35213
35214 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35215
35216         * modules/fnmatch-tests: New module.
35217         * tests/test-fnmatch.c: Add.
35218
35219 2009-05-04  Eric Blake  <ebb9@byu.net>
35220
35221         maint: make the new no-submodule-changes rule VPATH-safe
35222         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35223
35224 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35225             Bruno Haible  <bruno@clisp.org>
35226
35227         acl: Fix infinite loop on FreeBSD.
35228         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35229         of return value from acl_get_entry.
35230         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35231         Likewise.
35232
35233 2009-05-03  Bruno Haible  <bruno@clisp.org>
35234
35235         * lib/acl-internal.h (acl_entries): Clarify return value.
35236         * lib/acl_entries.c (acl_entries): Likewise.
35237
35238 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35239
35240         Bug fix in acl module.
35241         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35242
35243 2009-05-03  Bruno Haible  <bruno@clisp.org>
35244
35245         Create gperf-generated file in the source dir, not in the build dir.
35246         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35247         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35248         * modules/unicase/locale-language (unicase/locale-languages.h):
35249         Likewise.
35250         * modules/unicase/special-casing (unicase/special-casing-table.h):
35251         Likewise.
35252         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35253         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35254         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35255         Reported by Ralf Wildenhues.
35256
35257 2009-05-03  Bruno Haible  <bruno@clisp.org>
35258
35259         * modules/fnmatch (Description, configure.ac): Taken from
35260         fnmatch-posix.
35261         * modules/fnmatch-posix: Turn into a symbolic reference to the
35262         'fnmatch' module, and deprecate.
35263         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35264
35265 2009-05-03  Bruno Haible  <bruno@clisp.org>
35266
35267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35268         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35269         Reported by Ralf Wildenhues.
35270
35271 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35272
35273         * m4/fnmatch.m4: Fix fnmatch re-define.
35274
35275 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35276
35277         priv-set: new module and tests; adapt write-any-file
35278         * lib/priv-set.c: New file.
35279         * lib/priv-set.h: New file.
35280         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35281         * lib/write-any-file.c: Simplify by using priv-set module.
35282         * m4/priv-set.m4: New file.
35283         * modules/priv-set: New file.
35284         * modules/unlinkdir: Add dependency on priv-set module.
35285         * modules/write-any-file: Likewise.
35286
35287         Tests for module 'priv-set'.
35288         * modules/priv-set-tests: New file.
35289         * tests/test-priv-set.c: New file.
35290
35291 2009-05-03  Jim Meyering  <meyering@redhat.com>
35292             Bruno Haible  <bruno@clisp.org>
35293
35294         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35295         use the converted UTF-8 variant of the name instead.
35296
35297 2009-05-03  Jim Meyering  <meyering@redhat.com>
35298
35299         tests: tighten some getdate tests
35300         * tests/test-getdate.c (main): Tighten tests: require equality,
35301         not just greater than.  Set TZ envvar to UTC0.
35302
35303 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35304
35305         getdate: correctly interpret "next monday" when run on a Monday
35306         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35307         that e.g., "next tues" (when run on a tuesday) results in a date
35308         that is one week in the future, and not today's date.
35309         I.e., add a week when the wday is the same as the current one.
35310         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35311         and earlier by Martin Bernreuther and Jan Minář.
35312         * tests/test-getdate.c (main): Check that "next DAY" is always in
35313         the future and that "last DAY" is always in the past.
35314
35315 2009-05-02  Jim Meyering  <meyering@redhat.com>
35316
35317         build: ensure that a release build fails when a submodule is unclean
35318         * top/maint.mk (no-submodule-changes): New rule.
35319         (alpha beta major): Depend on it.
35320
35321 2009-05-02  Bruno Haible  <bruno@clisp.org>
35322
35323         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35324         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35325         shell variable gl_fnmatch_required to detect which variant is
35326         requested.
35327         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35328         gl_FUNC_FNMATCH_POSIX.
35329         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35330         exclude fnmatch-posix.
35331
35332 2009-05-02  Bruno Haible  <bruno@clisp.org>
35333
35334         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35335         * modules/mbsrtowcs (License): Change to LGPLv2+.
35336         * modules/strnlen1 (License): Likewise.
35337         Reported by Simon Josefsson.
35338
35339 2009-05-02  Bruno Haible  <bruno@clisp.org>
35340
35341         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35342         "cross".
35343         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35344         gnulib-tool was called with option --source-base=lib.
35345
35346 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35347
35348         Use automake *-local hooks without commands, for extensibility.
35349         * modules/localcharset (Makefile.am): Rename install-exec-local
35350         rule to install-exec-localcharset, and make it a prerequisite of
35351         install-exec-local.  Likewise, rename the uninstall-local rule to
35352         uninstall-localcharset, and make it a prerequisite of the former.
35353
35354 2009-05-01  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35357         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35358         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35360         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35361         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35362         m4/locale-zh.m4, m4/codeset.m4.
35363
35364         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35365         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35366         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35367         m4/locale-zh.m4.
35368
35369         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35370         REPLACE_WCRTOMB if mbstate_t must be replaced.
35371         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35372         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35373
35374 2009-05-01  Bruno Haible  <bruno@clisp.org>
35375
35376         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35377         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35378         dngettext, dcngettext, textdomain, bindtextdomain,
35379         bind_textdomain_codeset): Undefine before redefining.
35380
35381 2009-04-30  Bruno Haible  <bruno@clisp.org>
35382
35383         Fix bug introduced on 2009-04-25.
35384         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35385         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35386         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35387         is defined.
35388         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35389         is defined.
35390         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35391         is defined.
35392         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35393
35394 2009-04-28  Bruno Haible  <bruno@clisp.org>
35395
35396         Comment tweaks.
35397         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35398         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35399         * lib/unicase.h (u*_casexfrm): Likewise.
35400         Reported by Paolo Bonzini.
35401
35402 2009-04-28  Bruno Haible  <bruno@clisp.org>
35403
35404         Fix a compilation error.
35405         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35406         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35407         Reported by Jim Meyering.
35408
35409 2009-04-27  Bruno Haible  <bruno@clisp.org>
35410
35411         New module 'libunistring'.
35412         * modules/libunistring: New file.
35413         * m4/libunistring.m4: New file.
35414         * MODULES.html.sh (Unicode string functions): Add it.
35415
35416 2009-04-27  Eric Blake  <ebb9@byu.net>
35417
35418         maint.mk: allow package-specific header to provide <config.h>
35419         * top/maint.mk (sc_require_config_h): New variable.
35420         (sc_require_config_h, sc_require_config_h_first): Use it.
35421
35422 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35423
35424         * top/maint.mk (sc_avoid_if_before_free): Except
35425         useless-if-before-free script.
35426
35427 2009-04-27  Eric Blake  <ebb9@byu.net>
35428
35429         maintainer-makefile: depend on all required helper scripts
35430         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35431         useless-if-before-free.
35432         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35433         version, rather than assuming gnulib checkout is available.
35434         Reported by Simen Josefsson.
35435
35436 2009-04-26  Bruno Haible  <bruno@clisp.org>
35437
35438         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35439         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35440         "../" or "..".
35441
35442 2009-04-26  Bruno Haible  <bruno@clisp.org>
35443
35444         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35445         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35446         AC_LIB_HAVE_LINKFLAGS.
35447
35448 2009-04-26  Bruno Haible  <bruno@clisp.org>
35449
35450         Simplify calling convention of u*_conv_from_encoding.
35451         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35452         u32_conv_from_encoding): Expect a resultbuf argument and return the
35453         result directly as a pointer.
35454         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35455         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35456         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35457         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35458         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35459         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35460         Update.
35461         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35462         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35463         * lib/vasnprintf.c (VASNPRINTF): Update.
35464         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35465         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35466         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35467         * NEWS: Mention the change.
35468
35469 2009-04-26  Bruno Haible  <bruno@clisp.org>
35470
35471         Simplify calling convention of u*_conv_to_encoding.
35472         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35473         u32_conv_to_encoding): Expect a resultbuf argument and return the
35474         result directly as a pointer.
35475         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35476         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35477         freeing scaled_offsets if mem_iconveha failed.
35478         * lib/unicase/u-casexfrm.h (FUNC): Update.
35479         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35480         * lib/vasnprintf.c (VASNPRINTF): Update.
35481         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35482         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35483         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35484         * NEWS: Mention the change.
35485
35486 2009-04-26  Bruno Haible  <bruno@clisp.org>
35487
35488         Avoid test failures on AIX and OSF/1.
35489         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35490         malloc(0).
35491         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35492         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35493         Likewise.
35494         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35495         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35496         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35497         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35498         * doc/posix-functions/malloc.texi: Document the portability problem
35499         related to malloc(0).
35500
35501 2009-04-26  Bruno Haible  <bruno@clisp.org>
35502
35503         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35504         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35505         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35506
35507 2009-04-25  Bruno Haible  <bruno@clisp.org>
35508
35509         Avoid link error when creating a namespace clean library.
35510         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35511         as macro with arguments if already defined as an alias.
35512         * lib/signbitf.c (gl_signbitf): Don't undefine.
35513         * lib/signbitd.c (gl_signbitd): Don't undefine.
35514         * lib/signbitl.c (gl_signbitl): Don't undefine.
35515
35516 2009-04-25  Jim Meyering  <meyering@redhat.com>
35517
35518         vc-list-files: fix another quoting bug
35519         * build-aux/vc-list-files: Avoid sed backslash expansion
35520         of pathological directory names.
35521
35522 2009-04-25  Eric Blake  <ebb9@byu.net>
35523
35524         vc-list-files: fix shell quoting error
35525         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35526         timestamp.
35527
35528 2009-04-25  Jim Meyering  <meyering@redhat.com>
35529
35530         vc-list-files: restore lost functionality with subdir argument
35531         * build-aux/vc-list-files: When given a non-"." sub-directory
35532         argument, substitute the $dir/ prefix back onto each resulting name.
35533         Otherwise, coreutils' root_tests check would fail.
35534
35535 2009-04-24  Eric Blake  <ebb9@byu.net>
35536
35537         vc-list-files: ignore git symlinks
35538         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35539         than ls-files, to ignore git symlinks.
35540
35541         maint.mk: import improvements from m4
35542         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35543         (move_if_change): Delete unused macro.
35544         (news-date-check, vc-diff-check): Support VPATH builds.
35545         (announcement): Likewise.  Split --bootstrap-tools list...
35546         (boostrap-tools): ...into separate list, which can be overridden
35547         in cfg.mk.
35548         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35549         requiring dependency on useless-if-before-free module.
35550         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35551         Support VPATH builds.
35552
35553 2009-04-24  Jim Meyering  <meyering@redhat.com>
35554
35555         maint.mk: remove coreutils-specific rules and variables
35556         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35557         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35558         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35559
35560         maint.mk: remove obsolete rule
35561         * top/maint.mk (rel-check): Remove rule.
35562         (WGET, WGETFLAGS): Remove now-unused variables.
35563
35564 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35565
35566         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35567         consistency.
35568
35569         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35570         '$(PATH_SEPARATOR)' instead of ':'.
35571
35572 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35573
35574         * lib/getopt1.c (main): Use 'const' for static array.
35575
35576 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35577
35578         * top/maint.mk: Sync with coreutils.
35579         * NEWS: Explain incompatibilities.
35580
35581 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35582             Bruno Haible  <bruno@clisp.org>
35583
35584         Fix cross-compilation results.
35585         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35586         statement, as third argument of AC_TRY_RUN.
35587         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35588         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35589         Likewise.
35590         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35591         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35592         Likewise.
35593         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35594         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35595         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35596
35597 2009-04-20  Bruno Haible  <bruno@clisp.org>
35598
35599         Avoid test failure on mingw.
35600         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35601
35602 2009-04-20  Bruno Haible  <bruno@clisp.org>
35603
35604         Avoid compilation error on mingw.
35605         * modules/localename-tests (Depends-on): Add locale.
35606
35607 2009-04-19  Bruno Haible  <bruno@clisp.org>
35608
35609         Support for building a shared library on Windows platforms.
35610         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35611         (main): Test the presence of UNINORM_NFC here.
35612         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35613         (main): Test the presence of UNINORM_NFD here.
35614         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35615         (main): Test the presence of UNINORM_NFKC here.
35616         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35617         (main): Test the presence of UNINORM_NFKD here.
35618
35619 2009-04-19  Bruno Haible  <bruno@clisp.org>
35620
35621         Avoid a compiler warning.
35622         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35623         Change type of variable 'sequence'.
35624
35625 2009-04-19  Bruno Haible  <bruno@clisp.org>
35626
35627         * modules/configmake (Makefile.am): When the contents of configmake.h
35628         does not change, arrange to preserve its modification time.
35629
35630 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35631
35632         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35633         gettext domain.
35634
35635 2009-04-16  Jim Meyering  <meyering@redhat.com>
35636
35637         useless-if-before-free: improve conversion code
35638         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35639         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35640
35641 2009-04-14  Bruno Haible  <bruno@clisp.org>
35642
35643         * modules/fcntl (Depends-on): Add extensions.
35644         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35645
35646 2009-04-12  Ben Pfaff  <blp@gnu.org>
35647
35648         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35649         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35650
35651 2009-03-20  Ben Pfaff  <blp@gnu.org>
35652
35653         Make rename replace existing destinations on Windows.
35654         * m4/rename.m4: Add test for Mingw.
35655         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35656         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35657         * doc/posix-functions/rename.texi: Document.
35658
35659 2009-04-10  Bruno Haible  <bruno@clisp.org>
35660
35661         New include file "iconveh.h".
35662         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35663         * lib/striconveh.h: Include it.
35664         (enum iconv_ilseq_handler): Remove definition.
35665         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35666         striconveh.h.
35667         * lib/striconveha.c: Include striconveh.h.
35668         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35669         * modules/striconveh (Files): Add lib/iconveh.h.
35670         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35671         lib/striconveh.h.
35672
35673 2009-04-10  Bruno Haible  <bruno@clisp.org>
35674
35675         * lib/uniconv.h: Update comment.
35676
35677 2009-04-10  Bruno Haible  <bruno@clisp.org>
35678
35679         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35680         always.
35681         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35682         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35683         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35684         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35685         "unistring-notinline.h", so that the function gets defined always.
35686         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35687         * lib/unistr/u8-uctomb.c: Likewise.
35688         * lib/unistr/u16-mbtouc.c: Likewise.
35689         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35690         * lib/unistr/u16-uctomb.c: Likewise.
35691         * lib/unistr/u32-mbtouc.c: Likewise.
35692         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35693         * lib/unistr/u32-uctomb.c: Likewise.
35694
35695 2009-04-10  Bruno Haible  <bruno@clisp.org>
35696
35697         Mark 'utime' obsolete.
35698         * modules/utime (Status, Notice): New sections.
35699         Suggested by Jim Meyering.
35700
35701         Fix cross-compile guess for utime test.
35702         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35703         autoconf.
35704         * doc/posix-functions/utime.texi: Give more precisions.
35705         Reported by Jan <ipif@ymail.com>.
35706
35707 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35708
35709         filevercmp: correct today's change
35710         * lib/filevercmp.c: Also handle coreutils' test inputs.
35711         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35712
35713         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35714         for reporting it.
35715         * lib/filevercmp.c: Special handle for "", "." and "..".
35716         * tests/test-filevercmp.c: Enlarge the set suite.
35717
35718 2009-04-07  Jim Meyering  <meyering@redhat.com>
35719
35720         useless-if-before-free: show how to remove braced useless free, too
35721         * build-aux/useless-if-before-free: still only in a comment, though.
35722
35723 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35724
35725         maint.mk: import changes to syntax-check macros from coreutils
35726         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35727         Use them in the relevant macros.
35728
35729 2009-04-06  Bruno Haible  <bruno@clisp.org>
35730
35731         Fix unportable use of bit-fields.
35732         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35733         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35734         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35735
35736 2009-04-06  Bruno Haible  <bruno@clisp.org>
35737
35738         Avoid test failures on AIX and OSF/1.
35739         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35740         that malloc(0) = NULL.
35741         * tests/unicase/test-u8-tolower.c (check): Likewise.
35742         * tests/unicase/test-u8-totitle.c (check): Likewise.
35743         * tests/unicase/test-u8-toupper.c (check): Likewise.
35744         * tests/unicase/test-u16-casefold.c (check): Likewise.
35745         * tests/unicase/test-u16-tolower.c (check): Likewise.
35746         * tests/unicase/test-u16-totitle.c (check): Likewise.
35747         * tests/unicase/test-u16-toupper.c (check): Likewise.
35748         * tests/unicase/test-u32-casefold.c (check): Likewise.
35749         * tests/unicase/test-u32-tolower.c (check): Likewise.
35750         * tests/unicase/test-u32-totitle.c (check): Likewise.
35751         * tests/unicase/test-u32-toupper.c (check): Likewise.
35752         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35753         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35754         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35755         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35756         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35757         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35758         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35759         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35760         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35761         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35762         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35763         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35764
35765 2009-04-05  Bruno Haible  <bruno@clisp.org>
35766
35767         Work around an autoconf limitation.
35768         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35769         comment line if it would be longer than 3 KB.
35770
35771 2009-04-05  Bruno Haible  <bruno@clisp.org>
35772
35773         Avoid test failure with libiconv-1.13.
35774         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35775         of the expected test results.
35776
35777 2009-04-05  Bruno Haible  <bruno@clisp.org>
35778
35779         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35780         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35781         that it should be installed.
35782
35783 2009-04-05  Bruno Haible  <bruno@clisp.org>
35784
35785         * gnulib-tool: New option --copy-file.
35786         (func_usage): Document it.
35787         (func_dest_tmpfilename): Moved out of func_import.
35788         (func_add_file, func_update_file): New functions, extracted from
35789         func_import.
35790         (func_import): Update.
35791
35792 2009-04-05  Karl Berry  <karl@gnu.org>
35793
35794         * README: prominently mention gnulib-tool.
35795         Rearrange sections so getting the code is near the top.
35796
35797 2009-04-05  Bruno Haible  <bruno@clisp.org>
35798
35799         * lib/unicase.h: Mention u*_cmp2.
35800         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35801         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35802         * lib/unicase/ulc-casecmp.c: Likewise.
35803         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35804         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35805         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35806         unistr/u8-cmp.
35807         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35808         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35809         unistr/u16-cmp.
35810         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35811         unistr/u32-cmp.
35812
35813         * lib/uninorm.h: Mention u*_cmp2.
35814         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35815         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35816         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35817         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35818         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35819         unistr/u8-cmp.
35820         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35821         unistr/u16-cmp.
35822         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35823         unistr/u32-cmp.
35824
35825         New module 'unistr/u32-cmp2'.
35826         * lib/unistr/u32-cmp2.c: New file.
35827         * modules/unistr/u32-cmp2: New file.
35828
35829         New module 'unistr/u16-cmp2'.
35830         * lib/unistr/u16-cmp2.c: New file.
35831         * modules/unistr/u16-cmp2: New file.
35832
35833         New module 'unistr/u8-cmp2'.
35834         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35835         * lib/unistr/u8-cmp2.c: New file.
35836         * lib/unistr/u-cmp2.h: New file.
35837         * modules/unistr/u8-cmp2: New file.
35838
35839 2009-04-05  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/unictype.h (uc_property_is_valid): New macro.
35842         * tests/unictype/test-pr_byname.c (main): Use it.
35843
35844         * lib/unistr.h: Doc fixes.
35845         * lib/uniconv.h: Doc fixes.
35846         * lib/unictype.h: Doc fixes.
35847
35848 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35849
35850         Port coreutils 7.2 to Solaris 8.
35851
35852         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35853         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35854         for Solaris 8.  This is a bit of a hack, as it means it's the
35855         caller's responsibility to add -lnsl if needed, but most likely it
35856         won't be needed since only getaddrinfo uses this and getaddrinfo
35857         isn't needed on Solaris 8.
35858
35859         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35860         problem to Solaris 8 encountered with coreutils 7.2, which
35861         resulted in a message "fnmatch.c:292: warning: passing argument 4
35862         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35863         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35864
35865 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35866
35867         * m4/ld-version-script.m4: Add FIXME comment.
35868
35869 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35870
35871         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35872         SOVERSION variable.
35873
35874 2009-04-02  Bruno Haible  <bruno@clisp.org>
35875
35876         * Makefile (info, html, dvi, pdf): Combine the rules.
35877         Suggested by Jim Meyering.
35878
35879 2009-04-01  Bruno Haible  <bruno@clisp.org>
35880
35881         * Makefile (info, html, dvi, pdf): New targets.
35882         Reported by Reuben Thomas <rrt@sc3d.org>.
35883
35884 2009-04-01  Bruno Haible  <bruno@clisp.org>
35885
35886         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35887         can be put into PATH.
35888         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35889
35890 2009-04-01  Bruno Haible  <bruno@clisp.org>
35891
35892         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35893
35894 2009-04-01  Bruno Haible  <bruno@clisp.org>
35895
35896         Rename module 'visibility'.
35897         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35898         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35899         * doc/gnulib.texi: Update.
35900         * MODULES.html.sh (Misc): Update.
35901         * NEWS: Mention the change.
35902
35903 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35904
35905         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35906         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35907         Eric Blake <ebb9@byu.net> for review.
35908         * MODULES.html.sh: Add lib-msvc-compat.
35909         * doc/gnulib.texi: Link to new section.
35910         * m4/ld-output-def.m4: New file.
35911         * doc/ld-output-def.texi: New file.
35912
35913 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35914
35915         Rename ld-version-script to lib-symbol-versions.  Suggested by
35916         Bruno Haible <bruno@clisp.org>.
35917         * modules/ld-version-script: Renamed to lib-symbol-versions.
35918         * doc/ld-version-script.texi: Fix module name.
35919         * MODULES.html.sh: Add lib-symbol-versions.
35920
35921 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35922
35923         * modules/u64-tests: New file.
35924         * tests/test-u64.c: New file.
35925
35926 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35927
35928         * MODULES.html.sh: Mention u64.
35929         * modules/u64: New module.
35930         * modules/crypto/sha512: Depend on u64 module instead of providing
35931         u64.h.
35932
35933 2009-03-27  Eric Blake  <ebb9@byu.net>
35934
35935         test-strerror: make debugging EAI_SYSTEM easier
35936         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35937         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35938         failure was EAI_SYSTEM.
35939
35940 2009-03-25  Bruno Haible  <bruno@clisp.org>
35941
35942         Fix a problem with --enable-relocatable on Solaris 7.
35943         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35944         since 2008-02-24.
35945
35946 2009-03-25  Eric Blake  <ebb9@byu.net>
35947
35948         test-sockets: avoid gcc warning
35949         * tests/test-sockets.c (main): Silence compiler warning.
35950
35951 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35952
35953         New modules nproc, pthread, contributed by Glen Lenker.
35954
35955         * MODULES.html.sh: Add pthread, nproc.
35956         * lib/nproc.c: New file.
35957         * lib/nproc.h: New file.
35958         * lib/pthread.in.h: New file.
35959         * m4/pthread.m4: New file.
35960         * modules/nproc: New file.
35961         * modules/pthread: New file.
35962
35963 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35964
35965         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35966         New variable.
35967
35968 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35969
35970         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35971         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35972         * tests/test-filevercmp.c: Add tests for backup suffixes.
35973
35974 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35975
35976         * modules/stdlib (Depends-on): Add stdint, needed when defining
35977         struct random_data on, for example, HP-UX 10.20.  Reported by
35978         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35979
35980 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35981
35982         * lib/readline.c (readline): Call fflush on stdout after printing
35983         prompt.
35984
35985 2009-03-20  Bruno Haible  <bruno@clisp.org>
35986
35987         Remove dependency from 'close' module to -lws2_32 on native Windows.
35988         * lib/close-hook.h: New file.
35989         * lib/close-hook.c: New file.
35990         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35991         w32sock.h.
35992         (_gl_close_fd_maybe_socket): Remove function.
35993         (rpl_close): Invoke execute_all_close_hooks instead of
35994         _gl_close_fd_maybe_socket.
35995         * lib/sockets.c: Include close-hook.h, w32sock.h.
35996         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35997         (close_sockets_hook): New variable.
35998         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35999         (gl_sockets_cleanup): Unregister it.
36000         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36001         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36002         * modules/close-hook: New file.
36003         * modules/close (Files): Remove lib/w32sock.h.
36004         (Depends-on): Add close-hook.
36005         (Link): Remove section.
36006         * modules/sockets (Files): Add lib/w32sock.h.
36007         (Depends-on): Add close-hook.
36008         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36009         invocation.
36010         * NEWS: Mention that LIB_CLOSE is gone.
36011
36012 2009-03-23  Eric Blake  <ebb9@byu.net>
36013
36014         signal-tests: test previous patch
36015         * tests/test-signal.c: New file.
36016         * modules/signal-tests: Likewise.
36017
36018         signal.h: always support 'volatile sig_atomic_t'
36019         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36020         (gl_SIGNAL_H_DEFAULTS): Add a default.
36021         * modules/signal (Makefile.am): Substitute if needed.
36022         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36023         users can blindly add volatile.
36024         * doc/posix-headers/signal.texi (signal.h): Document it.
36025         Reported by Matthew Woehlke.
36026
36027 2009-03-23  Jim Meyering  <meyering@redhat.com>
36028
36029         pathmax: PATH_MAX: use pathconf only when available
36030         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36031         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36032         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36033         This avoids a link failure in a PSP cross-compilation environment
36034         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36035
36036         * lib/vasnprintf.c (divide): Fix typo in comment.
36037
36038 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36039
36040         * gnulib-tool (func_filter_filelist): Fix comment.
36041
36042 2009-03-20  Bruno Haible  <bruno@clisp.org>
36043
36044         Make sockets.h self-contained.
36045         * lib/sockets.c: Include sockets.h first.
36046         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36047
36048 2009-03-19  Eric Blake  <ebb9@byu.net>
36049
36050         doc: mention more functions added in cygwin 1.7.0
36051         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36052         addition.
36053         * doc/posix-functions/log2f.texi: Likewise.
36054
36055 2009-03-19  Jim Meyering  <meyering@redhat.com>
36056
36057         fsusage: avoid syntax error due to statement-before-declaration
36058         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36059         after all declarations.  Reported by Matthew Woehlke in
36060         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36061
36062 2009-03-18  Eric Blake  <ebb9@byu.net>
36063
36064         build-aux/compile: sync from automake
36065         * build-aux/compile: New file, from automake.
36066         * config/srclist.txt: Mention build-aux/compile.
36067
36068 2009-03-17  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/git-merge-changelog.c: Fix typo in comment.
36071         Reported by Reuben Thomas <rrt@sc3d.org>.
36072
36073 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36074
36075         * m4/regex.m4: update and improve help for
36076         --without-included-regex.
36077
36078 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36079
36080         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36081         failure on missing include files.
36082
36083 2009-03-17  Eric Blake  <ebb9@byu.net>
36084
36085         doc: mention more functions added in cygwin 1.7.0
36086         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36087         addition.
36088         * doc/posix-functions/fwscanf.texi: Likewise.
36089         * doc/posix-functions/swprintf.texi: Likewise.
36090         * doc/posix-functions/swscanf.texi: Likewise.
36091         * doc/posix-functions/vfwprintf.texi: Likewise.
36092         * doc/posix-functions/vfwscanf.texi: Likewise.
36093         * doc/posix-functions/vswprintf.texi: Likewise.
36094         * doc/posix-functions/vswscanf.texi: Likewise.
36095         * doc/posix-functions/vwprintf.texi: Likewise.
36096         * doc/posix-functions/vwscanf.texi: Likewise.
36097         * doc/posix-functions/wcscasecmp.texi: Likewise.
36098         * doc/posix-functions/wcsdup.texi: Likewise.
36099         * doc/posix-functions/wcsftime.texi: Likewise.
36100         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36101         * doc/posix-functions/wprintf.texi: Likewise.
36102         * doc/posix-functions/wscanf.texi: Likewise.
36103         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36104
36105 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36106
36107         maint.mk: really add $(AM_MAKEFLAGS)
36108         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36109         was inadvertently omitted in the last commit.
36110         Spotted by Bruno Haible.
36111
36112         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36113         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36114         $(AM_MAKEFLAGS)' rather than plain `make'.
36115
36116         gnulib-tool: execute $MAKE not make
36117         * gnulib-tool: Default $MAKE to 'make'.
36118         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36119         than make.  Initialize $MAKE in the do-autobuild script.
36120
36121         gnulib-tool: use $MAKE not make in generated files
36122         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36123         make, in generated files.  Initialize $MAKE in the do-autobuild
36124         script.
36125
36126         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36127
36128         GNUmakefile: disable parallelism only for multiple, recursive targets
36129         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36130         additions in the Makefile.
36131         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36132         by Automake.
36133         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36134         are listed on the command line and at least one of them is
36135         listed in $(ALL_RECURSIVE_TARGETS).
36136
36137 2009-03-14  Bruno Haible  <bruno@clisp.org>
36138
36139         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36140         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36141         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36142         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36143         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36144         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36145         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36146         unistr/u8-uctomb.
36147         * modules/unistr/u8-strchr (Depends-on): Likewise.
36148         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36149         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36150         unistr/u16-uctomb.
36151         * modules/unistr/u16-strchr (Depends-on): Likewise.
36152         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36153
36154 2009-03-12  Bruno Haible  <bruno@clisp.org>
36155
36156         Work around select() bug on Interix 3.5.
36157         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36158         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36159         * m4/select.m4: New file.
36160         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36161         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36162         * modules/select (Files): Add m4/select.m4.
36163         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36164         * modules/nanosleep (Depends-on): Add select.
36165         * modules/poll (Depends-on): Likewise.
36166         * doc/posix-functions/select.texi: Mention the Interix bug.
36167         Reported by Markus Duft <mduft@gentoo.org>.
36168
36169         * lib/select.c: Renamed from lib/winsock-select.c.
36170         * modules/select (Files): Add lib/select.c, remove
36171         lib/winsock-select.c.
36172         (configure.ac): Update.
36173
36174 2009-03-12  Jim Meyering  <meyering@redhat.com>
36175
36176         avoid gcc warnings about unused macro definitions
36177         * lib/readtokens.c (STREQ): Remove unused definition.
36178         * lib/xmalloc.c (SIZE_MAX): Likewise.
36179         * lib/openat-die.c (N_): Likewise.
36180         * lib/mountlist.c (SIZE_MAX): Remove definition.
36181         Instead, include <stdint.h>.
36182         * lib/readutmp.c: Likewise.
36183         * modules/readutmp (Depends-on): Add stdint.
36184         * modules/mountlist (Depends-on): Add stdint.
36185         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36186
36187 2009-03-10  Bruno Haible  <bruno@clisp.org>
36188
36189         Tests for module 'mbmemcasecoll'.
36190         * modules/mbmemcasecoll-tests: New file.
36191         * tests/test-mbmemcasecoll1.sh: New file.
36192         * tests/test-mbmemcasecoll2.sh: New file.
36193         * tests/test-mbmemcasecoll3.sh: New file.
36194         * tests/test-mbmemcasecoll.c: New file.
36195
36196         New module 'mbmemcasecoll'.
36197         * lib/mbmemcasecoll.h: New file.
36198         * lib/mbmemcasecoll.c: New file.
36199         * modules/mbmemcasecoll: New file.
36200
36201         * tests/test-mbmemcasecmp.h: New file, extracted from
36202         tests/test-mbmemcasecmp.c.
36203         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36204         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36205         (main): Update.
36206         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36207
36208 2009-03-09  Bruno Haible  <bruno@clisp.org>
36209
36210         Tests for module 'mbmemcasecmp'.
36211         * modules/mbmemcasecmp-tests: New file.
36212         * tests/test-mbmemcasecmp1.sh: New file.
36213         * tests/test-mbmemcasecmp2.sh: New file.
36214         * tests/test-mbmemcasecmp3.sh: New file.
36215         * tests/test-mbmemcasecmp.c: New file.
36216
36217         New module 'mbmemcasecmp'.
36218         * lib/mbmemcasecmp.h: New file.
36219         * lib/mbmemcasecmp.c: New file.
36220         * modules/mbmemcasecmp: New file.
36221
36222 2009-03-09  Bruno Haible  <bruno@clisp.org>
36223
36224         Tests for module 'unicase/ulc-casecoll'.
36225         * modules/unicase/ulc-casecoll-tests: New file.
36226         * tests/unicase/test-ulc-casecoll1.sh: New file.
36227         * tests/unicase/test-ulc-casecoll2.sh: New file.
36228         * tests/unicase/test-ulc-casecoll.c: New file.
36229
36230         New module 'unicase/ulc-casecoll'.
36231         * lib/unicase.h (ulc_casecoll): New declaration.
36232         * lib/unicase/ulc-casecoll.c: New file.
36233         * modules/unicase/ulc-casecoll: New file.
36234
36235         New module 'unicase/ulc-casexfrm'.
36236         * lib/unicase.h (ulc_casexfrm): New declaration.
36237         * lib/unicase/ulc-casexfrm.c: New file.
36238         * modules/unicase/ulc-casexfrm: New file.
36239
36240 2009-03-09  Bruno Haible  <bruno@clisp.org>
36241
36242         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36243         invocations.
36244
36245         * m4/mbscasecmp.m4: Remove file.
36246         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36247         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36248
36249         * m4/mbscasestr.m4: Remove file.
36250         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36251         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36252
36253         * m4/mbschr.m4: Remove file.
36254         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36255         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36256
36257         * m4/mbscspn.m4: Remove file.
36258         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36259         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36260
36261         * m4/mbslen.m4: Remove file.
36262         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36263         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36264
36265         * m4/mbsncasecmp.m4: Remove file.
36266         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36267         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36268
36269         * m4/mbsnlen.m4: Remove file.
36270         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36271         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36272
36273         * m4/mbspbrk.m4: Remove file.
36274         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36275         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36276
36277         * m4/mbspcasecmp.m4: Remove file.
36278         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36279         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36280
36281         * m4/mbsrchr.m4: Remove file.
36282         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36283         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36284
36285         * m4/mbssep.m4: Remove file.
36286         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36287         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36288
36289         * m4/mbsspn.m4: Remove file.
36290         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36291         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36292
36293         * m4/mbsstr.m4: Remove file.
36294         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36295         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36296
36297         * m4/mbstok_r.m4: Remove file.
36298         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36299         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36300
36301         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36302
36303         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36304         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36305
36306         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36307
36308 2009-03-08  Bruno Haible  <bruno@clisp.org>
36309
36310         Tests for module 'unicase/ulc-casecmp'.
36311         * modules/unicase/ulc-casecmp-tests: New file.
36312         * tests/unicase/test-ulc-casecmp1.sh: New file.
36313         * tests/unicase/test-ulc-casecmp2.sh: New file.
36314         * tests/unicase/test-ulc-casecmp.c: New file.
36315
36316         New module 'unicase/ulc-casecmp'.
36317         * lib/unicase.h (ulc_casecmp): New declaration.
36318         * lib/unicase/ulc-casecmp.c: New file.
36319         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36320         'const SRC_UNIT *'.
36321         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36322         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36323         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36324         * modules/unicase/ulc-casecmp: New file.
36325
36326         Tests for module 'unicase/u32-is-cased'.
36327         * modules/unicase/u32-is-cased-tests: New file.
36328         * tests/unicase/test-u32-is-cased.c: New file.
36329
36330         Tests for module 'unicase/u16-is-cased'.
36331         * modules/unicase/u16-is-cased-tests: New file.
36332         * tests/unicase/test-u16-is-cased.c: New file.
36333
36334         Tests for module 'unicase/u8-is-cased'.
36335         * modules/unicase/u8-is-cased-tests: New file.
36336         * tests/unicase/test-u8-is-cased.c: New file.
36337         * tests/unicase/test-is-cased.h: New file.
36338
36339         New module 'unicase/u32-is-cased'.
36340         * lib/unicase/u32-is-cased.c: New file.
36341         * modules/unicase/u32-is-cased: New file.
36342
36343         New module 'unicase/u16-is-cased'.
36344         * lib/unicase/u16-is-cased.c: New file.
36345         * modules/unicase/u16-is-cased: New file.
36346
36347         New module 'unicase/u8-is-cased'.
36348         * lib/unicase/u8-is-cased.c: New file.
36349         * lib/unicase/u-is-cased.h: New file.
36350         * modules/unicase/u8-is-cased: New file.
36351
36352         Tests for module 'unicase/u32-is-casefolded'.
36353         * modules/unicase/u32-is-casefolded-tests: New file.
36354         * tests/unicase/test-u32-is-casefolded.c: New file.
36355
36356         Tests for module 'unicase/u16-is-casefolded'.
36357         * modules/unicase/u16-is-casefolded-tests: New file.
36358         * tests/unicase/test-u16-is-casefolded.c: New file.
36359
36360         Tests for module 'unicase/u8-is-casefolded'.
36361         * modules/unicase/u8-is-casefolded-tests: New file.
36362         * tests/unicase/test-u8-is-casefolded.c: New file.
36363         * tests/unicase/test-is-casefolded.h: New file.
36364
36365         New module 'unicase/u32-is-casefolded'.
36366         * lib/unicase/u32-is-casefolded.c: New file.
36367         * modules/unicase/u32-is-casefolded: New file.
36368
36369         New module 'unicase/u16-is-casefolded'.
36370         * lib/unicase/u16-is-casefolded.c: New file.
36371         * modules/unicase/u16-is-casefolded: New file.
36372
36373         New module 'unicase/u8-is-casefolded'.
36374         * lib/unicase/u8-is-casefolded.c: New file.
36375         * modules/unicase/u8-is-casefolded: New file.
36376
36377         Tests for module 'unicase/u32-is-titlecase'.
36378         * modules/unicase/u32-is-titlecase-tests: New file.
36379         * tests/unicase/test-u32-is-titlecase.c: New file.
36380
36381         Tests for module 'unicase/u16-is-titlecase'.
36382         * modules/unicase/u16-is-titlecase-tests: New file.
36383         * tests/unicase/test-u16-is-titlecase.c: New file.
36384
36385         Tests for module 'unicase/u8-is-titlecase'.
36386         * modules/unicase/u8-is-titlecase-tests: New file.
36387         * tests/unicase/test-u8-is-titlecase.c: New file.
36388         * tests/unicase/test-is-titlecase.h: New file.
36389
36390         New module 'unicase/u32-is-titlecase'.
36391         * lib/unicase/u32-is-titlecase.c: New file.
36392         * modules/unicase/u32-is-titlecase: New file.
36393
36394         New module 'unicase/u16-is-titlecase'.
36395         * lib/unicase/u16-is-titlecase.c: New file.
36396         * modules/unicase/u16-is-titlecase: New file.
36397
36398         New module 'unicase/u8-is-titlecase'.
36399         * lib/unicase/u8-is-titlecase.c: New file.
36400         * modules/unicase/u8-is-titlecase: New file.
36401
36402         Tests for module 'unicase/u32-is-lowercase'.
36403         * modules/unicase/u32-is-lowercase-tests: New file.
36404         * tests/unicase/test-u32-is-lowercase.c: New file.
36405
36406         Tests for module 'unicase/u16-is-lowercase'.
36407         * modules/unicase/u16-is-lowercase-tests: New file.
36408         * tests/unicase/test-u16-is-lowercase.c: New file.
36409
36410         Tests for module 'unicase/u8-is-lowercase'.
36411         * modules/unicase/u8-is-lowercase-tests: New file.
36412         * tests/unicase/test-u8-is-lowercase.c: New file.
36413         * tests/unicase/test-is-lowercase.h: New file.
36414
36415         New module 'unicase/u32-is-lowercase'.
36416         * lib/unicase/u32-is-lowercase.c: New file.
36417         * modules/unicase/u32-is-lowercase: New file.
36418
36419         New module 'unicase/u16-is-lowercase'.
36420         * lib/unicase/u16-is-lowercase.c: New file.
36421         * modules/unicase/u16-is-lowercase: New file.
36422
36423         New module 'unicase/u8-is-lowercase'.
36424         * lib/unicase/u8-is-lowercase.c: New file.
36425         * modules/unicase/u8-is-lowercase: New file.
36426
36427         Tests for module 'unicase/u32-is-uppercase'.
36428         * modules/unicase/u32-is-uppercase-tests: New file.
36429         * tests/unicase/test-u32-is-uppercase.c: New file.
36430
36431         Tests for module 'unicase/u16-is-uppercase'.
36432         * modules/unicase/u16-is-uppercase-tests: New file.
36433         * tests/unicase/test-u16-is-uppercase.c: New file.
36434
36435         Tests for module 'unicase/u8-is-uppercase'.
36436         * modules/unicase/u8-is-uppercase-tests: New file.
36437         * tests/unicase/test-u8-is-uppercase.c: New file.
36438         * tests/unicase/test-is-uppercase.h: New file.
36439
36440         New module 'unicase/u32-is-uppercase'.
36441         * lib/unicase/u32-is-uppercase.c: New file.
36442         * modules/unicase/u32-is-uppercase: New file.
36443
36444         New module 'unicase/u16-is-uppercase'.
36445         * lib/unicase/u16-is-uppercase.c: New file.
36446         * modules/unicase/u16-is-uppercase: New file.
36447
36448         New module 'unicase/u8-is-uppercase'.
36449         * lib/unicase/u8-is-uppercase.c: New file.
36450         * modules/unicase/u8-is-uppercase: New file.
36451
36452         New module 'unicase/u32-is-invariant'.
36453         * lib/unicase/u32-is-invariant.c: New file.
36454         * modules/unicase/u32-is-invariant: New file.
36455
36456         New module 'unicase/u16-is-invariant'.
36457         * lib/unicase/u16-is-invariant.c: New file.
36458         * modules/unicase/u16-is-invariant: New file.
36459
36460         New module 'unicase/u8-is-invariant'.
36461         * lib/unicase/u8-is-invariant.c: New file.
36462         * lib/unicase/invariant.h: New file.
36463         * lib/unicase/u-is-invariant.h: New file.
36464         * modules/unicase/u8-is-invariant: New file.
36465
36466         Tests for module 'unicase/u32-casecoll'.
36467         * modules/unicase/u32-casecoll-tests: New file.
36468         * tests/unicase/test-u32-casecoll.c: New file.
36469
36470         Tests for module 'unicase/u16-casecoll'.
36471         * modules/unicase/u16-casecoll-tests: New file.
36472         * tests/unicase/test-u16-casecoll.c: New file.
36473
36474         Tests for module 'unicase/u8-casecoll'.
36475         * modules/unicase/u8-casecoll-tests: New file.
36476         * tests/unicase/test-u8-casecoll.c: New file.
36477
36478         New module 'unicase/u32-casecoll'.
36479         * lib/unicase/u32-casecoll.c: New file.
36480         * modules/unicase/u32-casecoll: New file.
36481
36482         New module 'unicase/u16-casecoll'.
36483         * lib/unicase/u16-casecoll.c: New file.
36484         * modules/unicase/u16-casecoll: New file.
36485
36486         New module 'unicase/u8-casecoll'.
36487         * lib/unicase/u8-casecoll.c: New file.
36488         * lib/unicase/u-casecoll.h: New file.
36489         * modules/unicase/u8-casecoll: New file.
36490
36491         New module 'unicase/u32-casexfrm'.
36492         * lib/unicase/u32-casexfrm.c: New file.
36493         * modules/unicase/u32-casexfrm: New file.
36494
36495         New module 'unicase/u16-casexfrm'.
36496         * lib/unicase/u16-casexfrm.c: New file.
36497         * modules/unicase/u16-casexfrm: New file.
36498
36499         New module 'unicase/u8-casexfrm'.
36500         * lib/unicase/u8-casexfrm.c: New file.
36501         * lib/unicase/u-casexfrm.h: New file.
36502         * modules/unicase/u8-casexfrm: New file.
36503
36504         Tests for module 'unicase/u32-casecmp'.
36505         * modules/unicase/u32-casecmp-tests: New file.
36506         * tests/unicase/test-u32-casecmp.c: New file.
36507
36508         Tests for module 'unicase/u16-casecmp'.
36509         * modules/unicase/u16-casecmp-tests: New file.
36510         * tests/unicase/test-u16-casecmp.c: New file.
36511
36512         Tests for module 'unicase/u8-casecmp'.
36513         * modules/unicase/u8-casecmp-tests: New file.
36514         * tests/unicase/test-u8-casecmp.c: New file.
36515         * tests/unicase/test-casecmp.h: New file.
36516
36517         New module 'unicase/u32-casecmp'.
36518         * lib/unicase/u32-casecmp.c: New file.
36519         * modules/unicase/u32-casecmp: New file.
36520
36521         New module 'unicase/u16-casecmp'.
36522         * lib/unicase/u16-casecmp.c: New file.
36523         * modules/unicase/u16-casecmp: New file.
36524
36525         New module 'unicase/u8-casecmp'.
36526         * lib/unicase/u8-casecmp.c: New file.
36527         * lib/unicase/u-casecmp.h: New file.
36528         * modules/unicase/u8-casecmp: New file.
36529
36530         Tests for module 'unicase/u32-casefold'.
36531         * modules/unicase/u32-casefold-tests: New file.
36532         * tests/unicase/test-u32-casefold.c: New file.
36533
36534         Tests for module 'unicase/u16-casefold'.
36535         * modules/unicase/u16-casefold-tests: New file.
36536         * tests/unicase/test-u16-casefold.c: New file.
36537
36538         Tests for module 'unicase/u8-casefold'.
36539         * modules/unicase/u8-casefold-tests: New file.
36540         * tests/unicase/test-u8-casefold.c: New file.
36541
36542         New module 'unicase/u32-casefold'.
36543         * lib/unicase/u32-casefold.c: New file.
36544         * modules/unicase/u32-casefold: New file.
36545
36546         New module 'unicase/u16-casefold'.
36547         * lib/unicase/u16-casefold.c: New file.
36548         * modules/unicase/u16-casefold: New file.
36549
36550         New module 'unicase/u8-casefold'.
36551         * lib/unicase/u8-casefold.c: New file.
36552         * lib/unicase/u-casefold.h: New file.
36553         * modules/unicase/u8-casefold: New file.
36554
36555         New module 'unicase/tocasefold'.
36556         * lib/unicase/casefold.h: New file.
36557         * lib/unicase/tocasefold.c: New file.
36558         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36559         * modules/unicase/tocasefold: New file.
36560
36561         Tests for module 'unicase/u32-totitle'.
36562         * modules/unicase/u32-totitle-tests: New file.
36563         * tests/unicase/test-u32-totitle.c: New file.
36564
36565         Tests for module 'unicase/u16-totitle'.
36566         * modules/unicase/u16-totitle-tests: New file.
36567         * tests/unicase/test-u16-totitle.c: New file.
36568
36569         Tests for module 'unicase/u8-totitle'.
36570         * modules/unicase/u8-totitle-tests: New file.
36571         * tests/unicase/test-u8-totitle.c: New file.
36572
36573         New module 'unicase/u32-totitle'.
36574         * lib/unicase/u32-totitle.c: New file.
36575         * modules/unicase/u32-totitle: New file.
36576
36577         New module 'unicase/u16-totitle'.
36578         * lib/unicase/u16-totitle.c: New file.
36579         * modules/unicase/u16-totitle: New file.
36580
36581         New module 'unicase/u8-totitle'.
36582         * lib/unicase/u8-totitle.c: New file.
36583         * lib/unicase/u-totitle.h: New file.
36584         * modules/unicase/u8-totitle: New file.
36585
36586         Tests for module 'unicase/u32-tolower'.
36587         * modules/unicase/u32-tolower-tests: New file.
36588         * tests/unicase/test-u32-tolower.c: New file.
36589
36590         Tests for module 'unicase/u16-tolower'.
36591         * modules/unicase/u16-tolower-tests: New file.
36592         * tests/unicase/test-u16-tolower.c: New file.
36593
36594         Tests for module 'unicase/u8-tolower'.
36595         * modules/unicase/u8-tolower-tests: New file.
36596         * tests/unicase/test-u8-tolower.c: New file.
36597
36598         New module 'unicase/u32-tolower'.
36599         * lib/unicase/u32-tolower.c: New file.
36600         * modules/unicase/u32-tolower: New file.
36601
36602         New module 'unicase/u16-tolower'.
36603         * lib/unicase/u16-tolower.c: New file.
36604         * modules/unicase/u16-tolower: New file.
36605
36606         New module 'unicase/u8-tolower'.
36607         * lib/unicase/u8-tolower.c: New file.
36608         * modules/unicase/u8-tolower: New file.
36609
36610         Tests for module 'unicase/u32-toupper'.
36611         * modules/unicase/u32-toupper-tests: New file.
36612         * tests/unicase/test-u32-toupper.c: New file.
36613
36614         Tests for module 'unicase/u16-toupper'.
36615         * modules/unicase/u16-toupper-tests: New file.
36616         * tests/unicase/test-u16-toupper.c: New file.
36617
36618         Tests for module 'unicase/u8-toupper'.
36619         * modules/unicase/u8-toupper-tests: New file.
36620         * tests/unicase/test-u8-toupper.c: New file.
36621
36622         New module 'unicase/u32-toupper'.
36623         * lib/unicase/u32-toupper.c: New file.
36624         * modules/unicase/u32-toupper: New file.
36625
36626         New module 'unicase/u16-toupper'.
36627         * lib/unicase/u16-toupper.c: New file.
36628         * modules/unicase/u16-toupper: New file.
36629
36630         New module 'unicase/u8-toupper'.
36631         * lib/unicase/u8-toupper.c: New file.
36632         * modules/unicase/u8-toupper: New file.
36633
36634         New module 'unicase/u32-casemap'.
36635         * lib/unicase/u32-casemap.c: New file.
36636         * modules/unicase/u32-casemap: New file.
36637
36638         New module 'unicase/u16-casemap'.
36639         * lib/unicase/u16-casemap.c: New file.
36640         * modules/unicase/u16-casemap: New file.
36641
36642         New module 'unicase/u8-casemap'.
36643         * lib/unicase/unicasemap.h: New file.
36644         * lib/unicase/u8-casemap.c: New file.
36645         * lib/unicase/u-casemap.h: New file.
36646         * modules/unicase/u8-casemap: New file.
36647
36648         New module 'unicase/special-casing'.
36649         * lib/unicase/special-casing.h: New file.
36650         * lib/unicase/special-casing.c: New file.
36651         * lib/unicase/special-casing-table.gperf: New file, generated by
36652         gen-uni-tables.c.
36653         * modules/unicase/special-casing: New file.
36654
36655         Tests for module 'unicase/locale-language'.
36656         * modules/unicase/locale-language-tests: New file.
36657         * tests/unicase/test-locale-language.sh: New file.
36658         * tests/unicase/test-locale-language.c: New file.
36659
36660         New module 'unicase/locale-language'.
36661         * lib/unicase/locale-language.c: New file.
36662         * lib/unicase/locale-languages.gperf: New file.
36663         * modules/unicase/locale-language: New file.
36664
36665         Generate more tables for case conversion and case folding.
36666         * lib/gen-uni-tables.c (SCC_*): New enum items.
36667         (struct special_casing_rule): New type.
36668         (casing_rules, num_casing_rules, allocated_casing_rules): New
36669         variables.
36670         (add_casing_rule, fill_casing_rules): New functions.
36671         (struct casefold_rule): New type.
36672         (casefolding_rules, num_casefolding_rules,
36673         allocated_casefolding_rules): New variables.
36674         (fill_casefolding_rules): New function.
36675         (unicode_casefold): New variable.
36676         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36677         sort_casing_rules, output_casing_rules): New functions.
36678         (main): Accept to more arguments: SpecialCasing.txt and
36679         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36680         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36681         Output mapping for casefolding.
36682
36683         * lib/unicase.h: Include stdbool.h, uninorm.h.
36684         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36685         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36686         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36687         arguments.
36688         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36689         resultp arguments.
36690         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36691         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36692         resultp arguments.
36693         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36694         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36695         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36696         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36697         declarations.
36698         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36699
36700 2009-03-08  Bruno Haible  <bruno@clisp.org>
36701
36702         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36703         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36704         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36705         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36706
36707 2009-03-07  Bruno Haible  <bruno@clisp.org>
36708
36709         Adjust u*_normcmp, u*_normcoll API.
36710         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36711         u16_normcoll, u32_normcoll): Change failure conventions.
36712         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36713         errno and return -1.
36714         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36715
36716 2009-03-07  Bruno Haible  <bruno@clisp.org>
36717
36718         Tests for module 'uninorm/u32-normcoll'.
36719         * modules/uninorm/u32-normcoll-tests: New file.
36720         * tests/uninorm/test-u32-normcoll.c: New file.
36721
36722         Tests for module 'uninorm/u16-normcoll'.
36723         * modules/uninorm/u16-normcoll-tests: New file.
36724         * tests/uninorm/test-u16-normcoll.c: New file.
36725
36726         Tests for module 'uninorm/u8-normcoll'.
36727         * modules/uninorm/u8-normcoll-tests: New file.
36728         * tests/uninorm/test-u8-normcoll.c: New file.
36729
36730 2009-03-07  Bruno Haible  <bruno@clisp.org>
36731
36732         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36733         tests/uninorm/test-u32-normcmp.c.
36734         * tests/uninorm/test-u32-normcmp.c: Include it.
36735         (test_nonascii): New function, extracted from main. Add some more
36736         tests.
36737         (main): Invoke test_ascii and test_nonascii.
36738         * modules/uninorm/u32-normcmp-tests (Files): Add
36739         tests/uninorm/test-u32-normcmp.h.
36740         (Depends-on): Remove uninorm/u32-normcmp.
36741
36742         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36743         tests/uninorm/test-u16-normcmp.c.
36744         * tests/uninorm/test-u16-normcmp.c: Include it.
36745         (test_nonascii): New function, extracted from main. Add some more
36746         tests.
36747         (main): Invoke test_ascii and test_nonascii.
36748         * modules/uninorm/u16-normcmp-tests (Files): Add
36749         tests/uninorm/test-u16-normcmp.h.
36750         (Depends-on): Remove uninorm/u16-normcmp.
36751
36752         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36753         tests/uninorm/test-u8-normcmp.c.
36754         * tests/uninorm/test-u8-normcmp.c: Include it.
36755         (test_nonascii): New function, extracted from main. Add some more
36756         tests.
36757         (main): Invoke test_ascii and test_nonascii.
36758         * modules/uninorm/u8-normcmp-tests (Files): Add
36759         tests/uninorm/test-u8-normcmp.h.
36760         (Depends-on): Remove uninorm/u8-normcmp.
36761
36762 2009-03-07  Bruno Haible  <bruno@clisp.org>
36763
36764         New module 'uninorm/u32-normcoll'.
36765         * lib/uninorm/u32-normcoll.c: New file.
36766         * modules/uninorm/u32-normcoll: New file.
36767
36768         New module 'uninorm/u16-normcoll'.
36769         * lib/uninorm/u16-normcoll.c: New file.
36770         * modules/uninorm/u16-normcoll: New file.
36771
36772         New module 'uninorm/u8-normcoll'.
36773         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36774         declarations.
36775         * lib/uninorm/u8-normcoll.c: New file.
36776         * lib/uninorm/u-normcoll.h: New file.
36777         * modules/uninorm/u8-normcoll: New file.
36778
36779         New module 'uninorm/u32-normxfrm'.
36780         * lib/uninorm/u32-normxfrm.c: New file.
36781         * modules/uninorm/u32-normxfrm: New file.
36782
36783         New module 'uninorm/u16-normxfrm'.
36784         * lib/uninorm/u16-normxfrm.c: New file.
36785         * modules/uninorm/u16-normxfrm: New file.
36786
36787         New module 'uninorm/u8-normxfrm'.
36788         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36789         declarations.
36790         * lib/uninorm/u8-normxfrm.c: New file.
36791         * lib/uninorm/u-normxfrm.h: New file.
36792         * modules/uninorm/u8-normxfrm: New file.
36793
36794 2009-03-07  Bruno Haible  <bruno@clisp.org>
36795
36796         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36797         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36798         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36799
36800 2009-03-07  Bruno Haible  <bruno@clisp.org>
36801
36802         New module 'memxfrm'.
36803         * lib/memxfrm.h: New file.
36804         * lib/memxfrm.c: New file.
36805         * modules/memxfrm: New file.
36806
36807 2009-03-07  Bruno Haible  <bruno@clisp.org>
36808
36809         New module 'memcmp2'.
36810         * lib/memcmp2.h: New file.
36811         * lib/memcmp2.c: New file.
36812         * modules/memcmp2: New file.
36813
36814 2009-03-07  Bruno Haible  <bruno@clisp.org>
36815
36816         Tests for module 'uninorm/decomposing-form'.
36817         * modules/uninorm/decomposing-form-tests: New file.
36818         * tests/uninorm/test-decomposing-form.c: New file.
36819
36820         New module 'uninorm/decomposing-form'.
36821         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36822         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36823         Add 'decomposing_variant' field.
36824         * lib/uninorm/decomposing-form.c: New file.
36825         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36826         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36827         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36828         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36829         * modules/uninorm/decomposing-form: New file.
36830         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36831         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36832
36833 2009-03-07  Bruno Haible  <bruno@clisp.org>
36834
36835         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36836         strings.
36837
36838 2009-03-06  Bruno Haible  <bruno@clisp.org>
36839
36840         Tests for module 'uninorm/u32-normcmp'.
36841         * tests/uninorm/test-u32-normcmp.c: New file.
36842         * modules/uninorm/u32-normcmp-tests: New file.
36843
36844         Tests for module 'uninorm/u16-normcmp'.
36845         * tests/uninorm/test-u16-normcmp.c: New file.
36846         * modules/uninorm/u16-normcmp-tests: New file.
36847
36848         Tests for module 'uninorm/u8-normcmp'.
36849         * tests/uninorm/test-u8-normcmp.c: New file.
36850         * modules/uninorm/u8-normcmp-tests: New file.
36851
36852         New module 'uninorm/u32-normcmp'.
36853         * lib/uninorm/u32-normcmp.c: New file.
36854         * modules/uninorm/u32-normcmp: New file.
36855
36856         New module 'uninorm/u16-normcmp'.
36857         * lib/uninorm/u16-normcmp.c: New file.
36858         * modules/uninorm/u16-normcmp: New file.
36859
36860         New module 'uninorm/u8-normcmp'.
36861         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36862         declarations.
36863         * lib/uninorm/u8-normcmp.c: New file.
36864         * lib/uninorm/u-normcmp.h: New file.
36865         * modules/uninorm/u8-normcmp: New file.
36866
36867 2009-03-06  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36870         Reported by Eric Blake.
36871
36872 2009-03-06  Eric Blake  <ebb9@byu.net>
36873             Bruno Haible  <bruno@clisp.org>
36874
36875         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36876         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36877         condition.
36878         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36879         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36880         condition.
36881         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36882
36883 2009-03-06  Eric Blake  <ebb9@byu.net>
36884
36885         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36886         to avoid compiler warnings.
36887         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36888
36889 2009-03-05  Bruno Haible  <bruno@clisp.org>
36890
36891         * tests/test-ftell.c (main): Disable test beyond end of file on
36892         FreeMiNT.
36893         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36894
36895 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36896
36897         * lib/filevercmp.c: Move hidden files up in ordering.
36898         * tests/test-filevercmp.c: Add tests for hidden files.
36899
36900 2009-03-04  Bruno Haible  <bruno@clisp.org>
36901
36902         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36903         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36904         AM_CFLAGS.
36905         Reported by Simon Josefsson.
36906
36907 2009-03-03  Bruno Haible  <bruno@clisp.org>
36908
36909         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36910         Reported by Simon Josefsson.
36911
36912         * doc/ld-version-script.texi: Update node reference.
36913
36914 2009-03-03  Bruno Haible  <bruno@clisp.org>
36915
36916         * modules/visibility (License): Change to 'unlimited'.
36917         Suggested by Simon Josefsson.
36918
36919 2009-03-03  Jim Meyering  <meyering@redhat.com>
36920
36921         unlinkdir: cannot_unlink_dir may modify process state
36922         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36923         it's neither thread-safe nor appropriate for use in a library.
36924
36925 2009-03-03  Eric Blake  <ebb9@byu.net>
36926
36927         test-closein: silence test under Darwin
36928         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36929         care if it dies from EPIPE or EBADF.
36930
36931 2009-03-03  Bruno Haible  <bruno@clisp.org>
36932
36933         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36934         earlier.
36935         * doc/visibility.texi: Fix @node and @section.
36936
36937 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36938
36939         * doc/gnulib.texi: Link to sections for ld version script and
36940         visibility.
36941         * doc/visibility.texi: Add @node and @section.
36942         * modules/ld-version-script: New module.
36943         * m4/ld-version-script.m4: New file.
36944         * doc/ld-version-script.texi: New file.
36945
36946 2009-03-02  David Lutterkort  <lutter@redhat.com>
36947
36948         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36950
36951 2009-03-02  Bruno Haible  <bruno@clisp.org>
36952
36953         * doc/visibility.texi: Mention libtool's -export-symbols option.
36954
36955 2009-03-02  Jim Meyering  <meyering@redhat.com>
36956
36957         announce-gen: new option: --no-print-checksums
36958         * build-aux/announce-gen (usage): Describe it.
36959         (print_checksums): Print a newline here, not in the [*] footnote.
36960         (main): Honor it.
36961
36962 2009-03-01  Bruno Haible  <bruno@clisp.org>
36963
36964         Use socklen_t in the native Windows replacements prototypes.
36965         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36966         instead of 'int'.
36967         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36968         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36969         * modules/getsockopt (Depends-on): Add socklen.
36970         * modules/setsockopt (Depends-on): Add socklen.
36971
36972 2009-03-01  Bruno Haible  <bruno@clisp.org>
36973
36974         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36975         least 4.2.
36976
36977 2009-03-01  Eric Blake  <ebb9@byu.net>
36978             Bruno Haible  <bruno@clisp.org>
36979
36980         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36981         error messages.
36982         * lib/wait-process.c (wait_subprocess): Omit error message about
36983         deadly signal sent to the child of termsigp != NULL.
36984
36985 2009-03-01  Eric Blake  <ebb9@byu.net>
36986
36987         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36988
36989 2009-03-01  Bruno Haible  <bruno@clisp.org>
36990
36991         Avoid a gcc warning.
36992         * tests/test-sched.c (b): Make global.
36993         Reported by Eric Blake.
36994
36995 2009-01-19  Martin Lambers  <marlam@marlam.de>
36996
36997         Provide POSIX semantics for socket timeout options on W32.
36998         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36999         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37000         * modules/setsockopt: Depend on sys_time module for struct timeval.
37001         * modules/getsockopt: Depend on sys_time module for struct timeval.
37002
37003 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37004
37005         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37006         __USE_GNU, for consistency with netdb.in.h.
37007         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37008
37009 2009-03-01  Bruno Haible  <bruno@clisp.org>
37010
37011         More support for FreeMiNT.
37012         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37013         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37014
37015 2009-03-01  Bruno Haible  <bruno@clisp.org>
37016
37017         More support for FreeMiNT.
37018         * lib/fpurge.c (fpurge): Correct last commit.
37019         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37020
37021 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37022
37023         Fix unportable awk script in vc-list-files.
37024         * build-aux/vc-list-files: In the replacement awk script, use
37025         substr with a second argument of 1, not zero.
37026         Report by Simon Josefsson.
37027
37028 2009-02-28  Bruno Haible  <bruno@clisp.org>
37029
37030         More support for FreeMiNT.
37031         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37032         to FreeMiNT today.
37033         * lib/fwriting.c (fwriting): Likewise.
37034         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37035
37036 2009-02-28  Bruno Haible  <bruno@clisp.org>
37037
37038         * tests/test-freadseek.c (main): Disable test beyond end of file on
37039         FreeMiNT.
37040         * tests/test-ftello.c (main): Likewise.
37041         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37042
37043 2009-02-28  Bruno Haible  <bruno@clisp.org>
37044
37045         Add tentative support for FreeMiNT.
37046         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37047         * lib/fpurge.c (fpurge): Likewise.
37048         * lib/freadable.c (freadable): Likewise.
37049         * lib/freading.c (freading): Likewise.
37050         * lib/freadptr.c (freadptr): Likewise.
37051         * lib/freadseek.c (freadptrinc): Likewise.
37052         * lib/fseeko.c (rpl_fseeko): Likewise.
37053         * lib/fseterr.c (fseterr): Likewise.
37054         * lib/fwritable.c (fwritable): Likewise.
37055         * lib/fwriting.c (fwriting): Likewise.
37056         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37057         Hourihane.
37058         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37059
37060 2009-02-28  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37063         SIGCHLD.
37064         Reported by Jim Meyering.
37065
37066 2009-02-28  Bruno Haible  <bruno@clisp.org>
37067
37068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37069         Mention the results of these tests on various platforms.
37070         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37071         order.
37072         * doc/posix-functions/printf.texi: Likewise.
37073         * doc/posix-functions/snprintf.texi: Likewise.
37074         * doc/posix-functions/sprintf.texi: Likewise.
37075         * doc/posix-functions/vfprintf.texi: Likewise.
37076         * doc/posix-functions/vprintf.texi: Likewise.
37077         * doc/posix-functions/vsnprintf.texi: Likewise.
37078         * doc/posix-functions/vsprintf.texi: Likewise.
37079         * doc/glibc-functions/obstack_printf.texi: Likewise.
37080         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37081
37082 2009-02-28  Bruno Haible  <bruno@clisp.org>
37083
37084         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37085         Reported by Loïc Minier <lool@dooz.org>.
37086
37087 2009-02-27  Bruno Haible  <bruno@clisp.org>
37088
37089         * gnulib-tool (func_import): Make the sed expression used to create the
37090         sed script for updating the .gitignore file POSIX compliant.
37091         Reported by Eric Blake.
37092
37093 2009-02-27  Bruno Haible  <bruno@clisp.org>
37094
37095         * gnulib-tool (sed): Don't alias as "sed --posix".
37096         Reported by Eric Blake.
37097
37098 2009-02-27  Bruno Haible  <bruno@clisp.org>
37099
37100         Avoid test link errors.
37101         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37102         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37103         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37104         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37106
37107 2009-02-27  Bruno Haible  <bruno@clisp.org>
37108
37109         Avoid spurious "(cached)" in configure output.
37110         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37111         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37112         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37113         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37114         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37115         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37116         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37117         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37118         Reported by Eric Blake.
37119
37120 2009-02-27  Eric Blake  <ebb9@byu.net>
37121
37122         printf: fix regression in previous patch
37123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37124
37125 2009-02-27  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37128         value.
37129         * lib/stdint.in.h: Likewise.
37130         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37131
37132 2009-02-27  Eric Blake  <ebb9@byu.net>
37133
37134         doc: mention more functions added in cygwin 1.7.0
37135         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37136         addition.
37137         * doc/posix-functions/open_wmemstream.texi: Likewise.
37138         * doc/posix-functions/wcsnlen.texi: Likewise.
37139         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37140         * doc/posix-functions/wcstod.texi: Likewise.
37141         * doc/posix-functions/wcstof.texi: Likewise.
37142         * doc/posix-functions/wcstoimax.texi: Likewise.
37143         * doc/posix-functions/wcstok.texi: Likewise.
37144         * doc/posix-functions/wcstoumax.texi: Likewise.
37145
37146         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37148         * doc/posix-functions/fprintf.texi: Update.
37149         * doc/posix-functions/printf.texi: Update.
37150         * doc/posix-functions/snprintf.texi: Update.
37151         * doc/posix-functions/sprintf.texi: Update.
37152         * doc/posix-functions/vfprintf.texi: Update.
37153         * doc/posix-functions/vprintf.texi: Update.
37154         * doc/posix-functions/vsnprintf.texi: Update.
37155         * doc/posix-functions/vsprintf.texi: Update.
37156         * doc/glibc-functions/obstack_printf.texi: Update.
37157         * doc/glibc-functions/obstack_vprintf.texi: Update.
37158
37159 2009-02-26  Eric Blake  <ebb9@byu.net>
37160
37161         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37162         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37163         compilation bug by using runtime conversion.
37164         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37165         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37166         * modules/ceill-tests (Files): Use nan.h.
37167         * modules/floorl-tests (Files): Likewise.
37168         * modules/frexpl-tests (Files): Likewise.
37169         * modules/isnanl-tests (Files): Likewise.
37170         * modules/ldexpl-tests (Files): Likewise.
37171         * modules/roundl-tests (Files): Likewise.
37172         * modules/truncl-tests (Files): Likewise.
37173         * tests/test-ceill.c (main): Use a working NaN.
37174         * tests/test-floorl.c (main): Likewise.
37175         * tests/test-frexpl.c (main): Likewise.
37176         * tests/test-isnan.c (test_long_double): Likewise.
37177         * tests/test-isnanl.h (main): Likewise.
37178         * tests/test-ldexpl.h (main): Likewise.
37179         * tests/test-roundl.h (main): Likewise.
37180         * tests/test-truncl.h (main): Likewise.
37181         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37182
37183 2009-02-26  Eric Blake  <ebb9@byu.net>
37184             Bruno Haible  <bruno@clisp.org>
37185
37186         Work around a *printf bug with %ls on Solaris.
37187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37188         precision is specified, sprintf stops converting the wide string
37189         argument when the number of bytes that have been produced by this
37190         conversion equals or exceeds the precision.
37191         * doc/posix-functions/fprintf.texi: Update.
37192         * doc/posix-functions/printf.texi: Update.
37193         * doc/posix-functions/snprintf.texi: Update.
37194         * doc/posix-functions/sprintf.texi: Update.
37195         * doc/posix-functions/vfprintf.texi: Update.
37196         * doc/posix-functions/vprintf.texi: Update.
37197         * doc/posix-functions/vsnprintf.texi: Update.
37198         * doc/posix-functions/vsprintf.texi: Update.
37199         * doc/glibc-functions/obstack_printf.texi: Update.
37200         * doc/glibc-functions/obstack_vprintf.texi: Update.
37201
37202 2009-02-26  Eric Blake  <ebb9@byu.net>
37203
37204         stdlib: favor compiler check of random.h
37205         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37206         to avoid an ObjC random.h installed by Swarm.
37207
37208 2009-02-26  Bruno Haible  <bruno@clisp.org>
37209
37210         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37211         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37212         Reported by Gary V. Vaughan <gary@gnu.org>.
37213
37214 2009-02-26  Bruno Haible  <bruno@clisp.org>
37215
37216         Fix *printf behaviour regarding the %ls directive.
37217         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37218         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37219         NEED_PRINTF_DIRECTIVE_LS.
37220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37221         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37223         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37224         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37225         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37226         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37231         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37235         * doc/posix-functions/fprintf.texi: Update.
37236         * doc/posix-functions/printf.texi: Update.
37237         * doc/posix-functions/snprintf.texi: Update.
37238         * doc/posix-functions/sprintf.texi: Update.
37239         * doc/posix-functions/vfprintf.texi: Update.
37240         * doc/posix-functions/vprintf.texi: Update.
37241         * doc/posix-functions/vsnprintf.texi: Update.
37242         * doc/posix-functions/vsprintf.texi: Update.
37243         * doc/glibc-functions/obstack_printf.texi: Update.
37244         * doc/glibc-functions/obstack_vprintf.texi: Update.
37245         Reported by Eric Blake.
37246
37247 2009-02-25  Bruno Haible  <bruno@clisp.org>
37248
37249         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37250         with known value.
37251         Reported by Gary V. Vaughan <gary@gnu.org>.
37252
37253 2009-02-25  Bruno Haible  <bruno@clisp.org>
37254
37255         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37256         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37257         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37258         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37259         Reported by Gary V. Vaughan <gary@gnu.org>.
37260
37261 2009-02-25  Bruno Haible  <bruno@clisp.org>
37262
37263         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37264         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37265         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37266         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37267         Reported by Gary V. Vaughan <gary@gnu.org>.
37268
37269 2009-02-25  Eric Blake  <ebb9@byu.net>
37270
37271         tests: skip fseek/ftell tests if ungetc is broken
37272         * m4/ungetc.m4: New file.
37273         * modules/fseek-tests: Split test, so ungetc dependency is
37274         separate from rest of test.
37275         * modules/fseeko-tests: Likewise.
37276         * modules/ftell-tests: Likewise.
37277         * modules/ftello-tests: Likewise.
37278         * tests/test-fseek.c (main): Isolate ungetc dependency.
37279         * tests/test-fseeko.c (main): Likewise.
37280         * tests/test-ftell.c (main): Likewise.
37281         * tests/test-ftello.c (main): Likewise.
37282         * tests/test-fseek2.sh: New file.
37283         * tests/test-fseeko2.sh: Likewise.
37284         * tests/test-ftell2.sh: Likewise.
37285         * tests/test-ftello2.sh: Likewise.
37286
37287 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37288
37289         test-getaddrinfo: fix usage of skip return code 77
37290         * tests/test-gettaddrinfo.c: Return skip code 77 only
37291         for first occurance of skip (4x77 is not 77)
37292
37293 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37294
37295         strtod: avoid C99 decl-after-statement
37296         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37297
37298 2009-02-24  Eric Blake  <ebb9@byu.net>
37299
37300         strtod: detect HP-UX 11.31 bug
37301         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37302         Reported by Gary V. Vaughan.
37303
37304 2009-02-23  Bruno Haible  <bruno@clisp.org>
37305
37306         Fix invalid read past end of memory block.
37307         * lib/vasnprintf.c (DCHAR_SET): Define.
37308         (local_wcslen): Define only when needed.
37309         (local_strnlen, local_wcsnlen): New functions.
37310         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37311         directives that involve a conversion ourselves.
37312         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37313         wcsnlen, mbrtowc, wcrtomb.
37314         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37315         * tests/test-vasprintf-posix.c (test_function): Likewise.
37316         * tests/test-snprintf-posix.h (test_function): Likewise.
37317         * tests/test-sprintf-posix.h (test_function): Likewise.
37318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37319
37320 2009-02-22  Bruno Haible  <bruno@clisp.org>
37321
37322         Implement new clarified decomposition of Hangul syllables.
37323         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37324         of type LTV, return only a pairwise decomposition.
37325         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37326         Likewise.
37327         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37328         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37329         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37330
37331 2009-02-22  Bruno Haible  <bruno@clisp.org>
37332
37333         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37334         zero-length results and shrink excess allocated memory.
37335         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37336         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37337         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37338         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37339         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37340         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37341         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37342         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37343         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37344         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37345         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37346         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37347
37348 2009-02-21  Bruno Haible  <bruno@clisp.org>
37349
37350         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37351         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37352         spaces after a period. Put a space between a macro name and its
37353         argument list. Trivial rewordings.
37354         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37355         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37356         (main): Return 0 explicitly.
37357
37358 2009-02-21  Bruno Haible  <bruno@clisp.org>
37359
37360         Tests for module 'uninorm/filter'.
37361         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37362         * modules/uninorm/filter-tests: New file.
37363
37364         New module 'uninorm/filter'.
37365         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37366         uninorm_filter_flush, uninorm_filter_free): New declarations.
37367         * lib/uninorm/uninorm-filter.c: New file.
37368         * modules/uninorm/filter: New file.
37369
37370 2009-02-21  Bruno Haible  <bruno@clisp.org>
37371
37372         Tests for module 'uninorm/nfkc'.
37373         * tests/uninorm/test-nfkc.c: New file.
37374         * tests/uninorm/test-u8-nfkc.c: New file.
37375         * tests/uninorm/test-u16-nfkc.c: New file.
37376         * tests/uninorm/test-u32-nfkc.c: New file.
37377         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37378         * tests/uninorm/test-u32-nfkc-big.c: New file.
37379         * modules/uninorm/nfkc-tests: New file.
37380
37381         New module 'uninorm/nfkc'.
37382         * lib/uninorm/nfkc.c: New file.
37383         * modules/uninorm/nfkc: New file.
37384
37385         Tests for module 'uninorm/nfkd'.
37386         * tests/uninorm/test-nfkd.c: New file.
37387         * tests/uninorm/test-u8-nfkd.c: New file.
37388         * tests/uninorm/test-u16-nfkd.c: New file.
37389         * tests/uninorm/test-u32-nfkd.c: New file.
37390         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37391         * tests/uninorm/test-u32-nfkd-big.c: New file.
37392         * modules/uninorm/nfkd-tests: New file.
37393
37394         New module 'uninorm/nfkd'.
37395         * lib/uninorm/nfkd.c: New file.
37396         * modules/uninorm/nfkd: New file.
37397
37398         Tests for module 'uninorm/nfc'.
37399         * tests/uninorm/test-nfc.c: New file.
37400         * tests/uninorm/test-u8-nfc.c: New file.
37401         * tests/uninorm/test-u16-nfc.c: New file.
37402         * tests/uninorm/test-u32-nfc.c: New file.
37403         * tests/uninorm/test-u32-nfc-big.sh: New file.
37404         * tests/uninorm/test-u32-nfc-big.c: New file.
37405         * modules/uninorm/nfc-tests: New file.
37406
37407         New module 'uninorm/nfc'.
37408         * lib/uninorm/nfc.c: New file.
37409         * modules/uninorm/nfc: New file.
37410
37411         Tests for module 'uninorm/nfd'.
37412         * tests/uninorm/test-nfd.c: New file.
37413         * tests/uninorm/test-u8-nfd.c: New file.
37414         * tests/uninorm/test-u16-nfd.c: New file.
37415         * tests/uninorm/test-u32-nfd.c: New file.
37416         * tests/uninorm/test-u32-nfd-big.sh: New file.
37417         * tests/uninorm/test-u32-nfd-big.c: New file.
37418         * tests/uninorm/test-u32-normalize-big.h: New file.
37419         * tests/uninorm/test-u32-normalize-big.c: New file.
37420         * tests/uninorm/NormalizationTest.txt: New file, created from
37421         Unicode 5.1.0 NormalizationTest.txt.
37422         * modules/uninorm/nfd-tests: New file.
37423
37424         New module 'uninorm/nfd'.
37425         * lib/uninorm/nfd.c: New file.
37426         * modules/uninorm/nfd: New file.
37427
37428         New module 'uninorm/u32-normalize'.
37429         * lib/uninorm/u32-normalize.c: New file.
37430         * modules/uninorm/u32-normalize: New file.
37431
37432         New module 'uninorm/u16-normalize'.
37433         * lib/uninorm/u16-normalize.c: New file.
37434         * modules/uninorm/u16-normalize: New file.
37435
37436         New module 'uninorm/u8-normalize'.
37437         * lib/uninorm/u8-normalize.c: New file.
37438         * lib/uninorm/normalize-internal.h: New file.
37439         * lib/uninorm/u-normalize-internal.h: New file.
37440         * modules/uninorm/u8-normalize: New file.
37441
37442         New module 'uninorm/decompose-internal'.
37443         * lib/uninorm/decompose-internal.c: New file.
37444         * modules/uninorm/decompose-internal: New file.
37445
37446         Tests for module 'uninorm/composition'.
37447         * tests/uninorm/test-composition.c: New file.
37448         * modules/uninorm/composition-tests: New file.
37449
37450         New module 'uninorm/composition'.
37451         * lib/uninorm/composition.c: New file.
37452         * lib/uninorm/composition-table.gperf: New file, generated by
37453         gen-uni-tables.
37454         * modules/uninorm/composition: New file.
37455
37456         Tests for module 'uninorm/compat-decomposition'.
37457         * tests/uninorm/test-compat-decomposition.c: New file.
37458         * modules/uninorm/compat-decomposition-tests: New file.
37459
37460         New module 'uninorm/compat-decomposition'.
37461         * lib/uninorm/decompose-internal.h: New file.
37462         * lib/uninorm/compat-decomposition.c: New file.
37463         * modules/uninorm/compat-decomposition: New file.
37464
37465         Tests for module 'uninorm/canonical-decomposition'.
37466         * tests/uninorm/test-canonical-decomposition.c: New file.
37467         * modules/uninorm/canonical-decomposition-tests: New file.
37468
37469         New module 'uninorm/canonical-decomposition'.
37470         * lib/uninorm/canonical-decomposition.c: New file.
37471         * modules/uninorm/canonical-decomposition: New file.
37472
37473         Tests for module 'uninorm/decomposition'.
37474         * tests/uninorm/test-decomposition.c: New file.
37475         * modules/uninorm/decomposition-tests: New file.
37476
37477         New module 'uninorm/decomposition'.
37478         * lib/uninorm/decomposition.c: New file.
37479         * modules/uninorm/decomposition: New file.
37480
37481         New module 'uninorm/decomposition-table'.
37482         * lib/uninorm/decomposition-table.h: New file.
37483         * lib/uninorm/decomposition-table.c: New file.
37484         * lib/uninorm/decomposition-table1.h: New file, generated by
37485         gen-uni-tables.
37486         * lib/uninorm/decomposition-table2.h: New file, generated by
37487         gen-uni-tables.
37488         * modules/uninorm/decomposition-table: New file.
37489
37490         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37491         (UC_DECOMP_*): New enumeration items.
37492         (get_decomposition): New function.
37493         (struct decomp_table): New type.
37494         (output_decomposition, output_decomposition_tables): New functions.
37495         (unicode_composition_exclusions): New variable.
37496         (fill_composition_exclusions, debug_output_composition_tables): New
37497         functions.
37498         (main): Accept one more argument. Invoke fill_composition_exclusions.
37499         Output decomposition and composition tables.
37500
37501         New module 'uninorm/base'.
37502         * lib/uninorm.h: New file.
37503         * lib/unictype.h: Update comment.
37504         * modules/uninorm/base: New file.
37505
37506 2009-02-21  David Lutterkort  <lutter@redhat.com>
37507
37508         Tests for module 'safe-alloc'.
37509         * tests/test-safe-alloc.c: New file.
37510         * modules/safe-alloc-tests: New file.
37511
37512         New module 'safe-alloc'.
37513         * lib/safe-alloc.h: New file.
37514         * lib/safe-alloc.c: New file.
37515         * m4/safe-alloc.m4: New file.
37516         * modules/safe-alloc: New file.
37517         * doc/safe-alloc.texi: New file.
37518         * doc/gnulib.texi: Include it.
37519         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37520         safe-alloc.
37521
37522 2009-02-18  Bruno Haible  <bruno@clisp.org>
37523
37524         Fix link error on non-glibc systems.
37525         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37526         variable.
37527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37528
37529 2009-02-18  Jim Meyering  <meyering@redhat.com>
37530
37531         fts: avoid used-uninitialized error due to recent change
37532         * lib/fts.c (fts_read): Guard uses of the new member,
37533         parent->fts_n_dirs_remaining, since it's not relevant for
37534         the parent of a directory specified on the command-line.
37535
37536 2009-02-17  James Youngman  <jay@gnu.org>
37537             Bruno Haible  <bruno@clisp.org>
37538
37539         * m4/include_next.m4: Reformulate comment.
37540
37541 2009-02-16  Jim Meyering  <meyering@redhat.com>
37542
37543         fts: add #if guards so that the fts_lgpl module still builds
37544         * lib/fts.c: Guard just-added hash-table-using parts with
37545         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37546         Reported by Simon Josefsson.
37547
37548 2009-02-15  Bruno Haible  <bruno@clisp.org>
37549
37550         * modules/array-mergesort-tests: New file.
37551         * tests/test-array-mergesort.c: New file.
37552
37553         New module 'array-mergesort'.
37554         * modules/array-mergesort: New file.
37555         * lib/array-mergesort.h: New file.
37556
37557 2009-02-15  Bruno Haible  <bruno@clisp.org>
37558
37559         Fix 2009-02-07 commit.
37560         * lib/gen-uni-tables.c (output_predicate, output_category,
37561         output_combclass, output_bidi_category, output_decimal_digit,
37562         output_digit, output_numeric, output_mirror, output_scripts,
37563         output_ident_category, output_simple_mapping): Fix format directives.
37564         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37565
37566 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37567
37568         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37569         fixes are available from IBM.
37570
37571 2009-02-13  Jim Meyering  <meyering@redhat.com>
37572
37573         fts: arrange not to stat non-directories in more cases
37574         This makes GNU find (when it doesn't need to stat each file)
37575         *much* more efficient at traversing reiserfs file systems.
37576         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37577         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37578         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37579         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37580         (leaf_optimization_applies): New function.
37581         (LCO_hash, LCO_compare): New helper functions.
37582         (link_count_optimize_ok): New function.
37583         (fts_stat): Initialize new member (if dir).
37584         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37585         we've just stat'ed a directory.  Skip the stat call when possible.
37586         ---
37587         Note this AFS-related exchange:
37588         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37589         and note find's pioctl call in find/fstype.c.
37590         But that is necessary only if you want to enable the
37591         optimization for AFS, and for now, I don't.
37592
37593         fts: move a function definition "up" (no semantic change)
37594         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37595         "up" to precede upcoming use of a related function.
37596
37597 2009-02-11  Jim Meyering  <meyering@redhat.com>
37598
37599         fts: correct internal computation of nlinks (optimization-related)
37600         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37601         whether the current entry is a directory, so don't test it.
37602
37603 2009-02-10  Bruno Haible  <bruno@clisp.org>
37604
37605         Tests for module 'uniwbrk/ulc-wordbreaks'.
37606         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37607         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37608         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37609
37610         Tests for module 'uniwbrk/u32-wordbreaks'.
37611         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37612         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37613
37614         Tests for module 'uniwbrk/u16-wordbreaks'.
37615         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37616         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37617
37618         Tests for module 'uniwbrk/u8-wordbreaks'.
37619         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37620         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37621
37622 2009-02-10  Bruno Haible  <bruno@clisp.org>
37623
37624         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37625         property.
37626         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37627         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37628         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37629
37630 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37631
37632         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37633         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37634
37635 2009-02-10  Bruno Haible  <bruno@clisp.org>
37636
37637         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37638         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37639         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37640         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37641         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37642         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37643
37644 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37645
37646         * lib/sockets.h (gl_fd_to_handle): New function.
37647
37648         * tests/test-sockets.c: Call gl_fd_to_handle.
37649
37650 2009-02-09  Bruno Haible  <bruno@clisp.org>
37651
37652         * doc/havelib.texi: Document the conventions on bi-arch systems.
37653
37654 2009-02-08  Bruno Haible  <bruno@clisp.org>
37655
37656         Document the AC_LIB_LINKFLAGS macro.
37657         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37658         * doc/gnulib.texi: Include it.
37659
37660 2009-02-08  Bruno Haible  <bruno@clisp.org>
37661
37662         Fix wrong order of sections, compared to TOC.
37663         * doc/gnulib.texi: Include relocatable-maint.texi after the
37664         "Regular expressions" node, not before.
37665
37666 2009-02-08  Bruno Haible  <bruno@clisp.org>
37667
37668         Tests for module 'unicase/totitle'.
37669         * modules/unicase/totitle-tests: New file.
37670
37671         Tests for module 'unicase/tolower'.
37672         * modules/unicase/tolower-tests: New file.
37673
37674         Tests for module 'unicase/toupper'.
37675         * modules/unicase/toupper-tests: New file.
37676         * tests/unicase/test-mapping-part1.h: New file.
37677         * tests/unicase/test-mapping-part2.h: New file.
37678
37679         New module 'unicase/totitle'.
37680         * modules/unicase/totitle: New file.
37681         * lib/unicase/totitle.c: New file.
37682
37683         New module 'unicase/tolower'.
37684         * modules/unicase/tolower: New file.
37685         * lib/unicase/tolower.c: New file.
37686
37687         New module 'unicase/toupper'.
37688         * modules/unicase/toupper: New file.
37689         * lib/unicase/toupper.c: New file.
37690         * lib/unicase/simple-mapping.h: New file.
37691
37692         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37693         (mapping_table): New structure.
37694         (output_simple_mapping): New function.
37695         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37696         * modules/gen-uni-tables (Description): Update.
37697         * lib/unicase/toupper.h: New file, automatically generated by
37698         gen-uni-tables.
37699         * lib/unicase/tolower.h: New file, automatically generated by
37700         gen-uni-tables.
37701         * lib/unicase/totitle.h: New file, automatically generated by
37702         gen-uni-tables.
37703         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37704         gen-uni-tables.
37705         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37706         gen-uni-tables.
37707         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37708         gen-uni-tables.
37709
37710         New module 'unicase/base'.
37711         * modules/unicase/base: New file.
37712         * lib/unicase.h: New file.
37713
37714 2009-02-08  Bruno Haible  <bruno@clisp.org>
37715
37716         New module 'uniwbrk/ulc-wordbreaks'.
37717         * modules/uniwbrk/ulc-wordbreaks: New file.
37718         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37719
37720         New module 'uniwbrk/u32-wordbreaks'.
37721         * modules/uniwbrk/u32-wordbreaks: New file.
37722         * lib/uniwbrk/u32-wordbreaks.c: New file.
37723
37724         New module 'uniwbrk/u16-wordbreaks'.
37725         * modules/uniwbrk/u16-wordbreaks: New file.
37726         * lib/uniwbrk/u16-wordbreaks.c: New file.
37727
37728         New module 'uniwbrk/u8-wordbreaks'.
37729         * modules/uniwbrk/u8-wordbreaks: New file.
37730         * lib/uniwbrk/u8-wordbreaks.c: New file.
37731         * lib/uniwbrk/u-wordbreaks.h: New file.
37732
37733         New module 'uniwbrk/table'.
37734         * modules/uniwbrk/table: New file.
37735         * lib/uniwbrk/wbrktable.h: New file.
37736         * lib/uniwbrk/wbrktable.c: New file.
37737
37738         New module 'uniwbrk/wordbreak-property'.
37739         * modules/uniwbrk/wordbreak-property: New file.
37740         * lib/uniwbrk/wordbreak-property.c: New file.
37741
37742         * lib/gen-uni-tables.c (WBP_*): New enum items.
37743         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37744         (unicode_org_wbp): New variable.
37745         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37746         New functions.
37747         (wbp_table): New structure.
37748         (output_wbp, output_wbrk_tables): New functions.
37749         (main): Accept additional argument. Invoke fill_org_wbp,
37750         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37751         output_wbrk_tables.
37752         * modules/gen-uni-tables (Description): Update.
37753         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37754         gen-uni-tables.
37755
37756         New module 'uniwbrk/base'.
37757         * modules/uniwbrk/base: New file.
37758         * lib/uniwbrk.h: New file.
37759
37760 2009-02-08  Bruno Haible  <bruno@clisp.org>
37761
37762         Update to Unicode 5.1.0.
37763         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37764         U+2185..U+2188.
37765         (is_property_default_ignorable_code_point): Don't include characters
37766         of category Cc or Cs and not-a-characters.
37767         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37768         U+0D79, U+109E, U+109F, U+A60C.
37769         * lib/unictype/bidi_of.h: Regenerated.
37770         * lib/unictype/blocks.h: Regenerated.
37771         * lib/unictype/categ_C.h: Regenerated.
37772         * lib/unictype/categ_Cf.h: Regenerated.
37773         * lib/unictype/categ_Cn.h: Regenerated.
37774         * lib/unictype/categ_L.h: Regenerated.
37775         * lib/unictype/categ_Ll.h: Regenerated.
37776         * lib/unictype/categ_Lm.h: Regenerated.
37777         * lib/unictype/categ_Lo.h: Regenerated.
37778         * lib/unictype/categ_Lu.h: Regenerated.
37779         * lib/unictype/categ_M.h: Regenerated.
37780         * lib/unictype/categ_Mc.h: Regenerated.
37781         * lib/unictype/categ_Me.h: Regenerated.
37782         * lib/unictype/categ_Mn.h: Regenerated.
37783         * lib/unictype/categ_N.h: Regenerated.
37784         * lib/unictype/categ_Nd.h: Regenerated.
37785         * lib/unictype/categ_Nl.h: Regenerated.
37786         * lib/unictype/categ_No.h: Regenerated.
37787         * lib/unictype/categ_P.h: Regenerated.
37788         * lib/unictype/categ_Pd.h: Regenerated.
37789         * lib/unictype/categ_Pe.h: Regenerated.
37790         * lib/unictype/categ_Pf.h: Regenerated.
37791         * lib/unictype/categ_Pi.h: Regenerated.
37792         * lib/unictype/categ_Po.h: Regenerated.
37793         * lib/unictype/categ_Ps.h: Regenerated.
37794         * lib/unictype/categ_S.h: Regenerated.
37795         * lib/unictype/categ_Sk.h: Regenerated.
37796         * lib/unictype/categ_Sm.h: Regenerated.
37797         * lib/unictype/categ_So.h: Regenerated.
37798         * lib/unictype/categ_of.h: Regenerated.
37799         * lib/unictype/combining.h: Regenerated.
37800         * lib/unictype/ctype_alnum.h: Regenerated.
37801         * lib/unictype/ctype_alpha.h: Regenerated.
37802         * lib/unictype/ctype_graph.h: Regenerated.
37803         * lib/unictype/ctype_lower.h: Regenerated.
37804         * lib/unictype/ctype_print.h: Regenerated.
37805         * lib/unictype/ctype_punct.h: Regenerated.
37806         * lib/unictype/ctype_upper.h: Regenerated.
37807         * lib/unictype/decdigit.h: Regenerated.
37808         * lib/unictype/digit.h: Regenerated.
37809         * lib/unictype/mirror.h: Regenerated.
37810         * lib/unictype/numeric.h: Regenerated.
37811         * lib/unictype/pr_alphabetic.h: Regenerated.
37812         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37813         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37814         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37815         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37816         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37817         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37818         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37819         * lib/unictype/pr_combining.h: Regenerated.
37820         * lib/unictype/pr_dash.h: Regenerated.
37821         * lib/unictype/pr_decimal_digit.h: Regenerated.
37822         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37823         * lib/unictype/pr_deprecated.h: Regenerated.
37824         * lib/unictype/pr_diacritic.h: Regenerated.
37825         * lib/unictype/pr_extender.h: Regenerated.
37826         * lib/unictype/pr_format_control.h: Regenerated.
37827         * lib/unictype/pr_grapheme_base.h: Regenerated.
37828         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37829         * lib/unictype/pr_grapheme_link.h: Regenerated.
37830         * lib/unictype/pr_id_continue.h: Regenerated.
37831         * lib/unictype/pr_id_start.h: Regenerated.
37832         * lib/unictype/pr_ideographic.h: Regenerated.
37833         * lib/unictype/pr_ignorable_control.h: Regenerated.
37834         * lib/unictype/pr_lowercase.h: Regenerated.
37835         * lib/unictype/pr_math.h: Regenerated.
37836         * lib/unictype/pr_numeric.h: Regenerated.
37837         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37838         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37839         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37840         * lib/unictype/pr_other_id_continue.h: Regenerated.
37841         * lib/unictype/pr_other_lowercase.h: Regenerated.
37842         * lib/unictype/pr_other_math.h: Regenerated.
37843         * lib/unictype/pr_punctuation.h: Regenerated.
37844         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37845         * lib/unictype/pr_soft_dotted.h: Regenerated.
37846         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37847         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37848         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37849         * lib/unictype/pr_uppercase.h: Regenerated.
37850         * lib/unictype/pr_xid_continue.h: Regenerated.
37851         * lib/unictype/pr_xid_start.h: Regenerated.
37852         * lib/unictype/pr_zero_width.h: Regenerated.
37853         * lib/unictype/scripts.h: Regenerated.
37854         * lib/unictype/scripts_byname.gperf: Regenerated.
37855         * lib/unictype/sy_java_ident.h: Regenerated.
37856         * lib/unilbrk/lbrkprop1.h: Regenerated.
37857         * lib/unilbrk/lbrkprop2.h: Regenerated.
37858         * tests/unictype/test-categ_C.c: Regenerated.
37859         * tests/unictype/test-categ_Cf.c: Regenerated.
37860         * tests/unictype/test-categ_Cn.c: Regenerated.
37861         * tests/unictype/test-categ_L.c: Regenerated.
37862         * tests/unictype/test-categ_Ll.c: Regenerated.
37863         * tests/unictype/test-categ_Lm.c: Regenerated.
37864         * tests/unictype/test-categ_Lo.c: Regenerated.
37865         * tests/unictype/test-categ_Lu.c: Regenerated.
37866         * tests/unictype/test-categ_M.c: Regenerated.
37867         * tests/unictype/test-categ_Mc.c: Regenerated.
37868         * tests/unictype/test-categ_Me.c: Regenerated.
37869         * tests/unictype/test-categ_Mn.c: Regenerated.
37870         * tests/unictype/test-categ_N.c: Regenerated.
37871         * tests/unictype/test-categ_Nd.c: Regenerated.
37872         * tests/unictype/test-categ_Nl.c: Regenerated.
37873         * tests/unictype/test-categ_No.c: Regenerated.
37874         * tests/unictype/test-categ_P.c: Regenerated.
37875         * tests/unictype/test-categ_Pd.c: Regenerated.
37876         * tests/unictype/test-categ_Pe.c: Regenerated.
37877         * tests/unictype/test-categ_Pf.c: Regenerated.
37878         * tests/unictype/test-categ_Pi.c: Regenerated.
37879         * tests/unictype/test-categ_Po.c: Regenerated.
37880         * tests/unictype/test-categ_Ps.c: Regenerated.
37881         * tests/unictype/test-categ_S.c: Regenerated.
37882         * tests/unictype/test-categ_Sk.c: Regenerated.
37883         * tests/unictype/test-categ_Sm.c: Regenerated.
37884         * tests/unictype/test-categ_So.c: Regenerated.
37885         * tests/unictype/test-ctype_alnum.c: Regenerated.
37886         * tests/unictype/test-ctype_alpha.c: Regenerated.
37887         * tests/unictype/test-ctype_graph.c: Regenerated.
37888         * tests/unictype/test-ctype_lower.c: Regenerated.
37889         * tests/unictype/test-ctype_print.c: Regenerated.
37890         * tests/unictype/test-ctype_punct.c: Regenerated.
37891         * tests/unictype/test-ctype_upper.c: Regenerated.
37892         * tests/unictype/test-decdigit.h: Regenerated.
37893         * tests/unictype/test-digit.h: Regenerated.
37894         * tests/unictype/test-numeric.h: Regenerated.
37895         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37896         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37897         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37898         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37899         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37900         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37901         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37902         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37903         * tests/unictype/test-pr_combining.c: Regenerated.
37904         * tests/unictype/test-pr_dash.c: Regenerated.
37905         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37906         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37907         * tests/unictype/test-pr_deprecated.c: Regenerated.
37908         * tests/unictype/test-pr_diacritic.c: Regenerated.
37909         * tests/unictype/test-pr_extender.c: Regenerated.
37910         * tests/unictype/test-pr_format_control.c: Regenerated.
37911         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37912         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37913         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37914         * tests/unictype/test-pr_id_continue.c: Regenerated.
37915         * tests/unictype/test-pr_id_start.c: Regenerated.
37916         * tests/unictype/test-pr_ideographic.c: Regenerated.
37917         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37918         * tests/unictype/test-pr_lowercase.c: Regenerated.
37919         * tests/unictype/test-pr_math.c: Regenerated.
37920         * tests/unictype/test-pr_numeric.c: Regenerated.
37921         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37922         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37923         Regenerated.
37924         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37925         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37926         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37927         * tests/unictype/test-pr_other_math.c: Regenerated.
37928         * tests/unictype/test-pr_punctuation.c: Regenerated.
37929         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37930         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37931         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37932         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37933         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37934         * tests/unictype/test-pr_uppercase.c: Regenerated.
37935         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37936         * tests/unictype/test-pr_xid_start.c: Regenerated.
37937         * tests/unictype/test-pr_zero_width.c: Regenerated.
37938
37939         Update to Unicode 5.1.0.
37940         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37941         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37942         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37943         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37944         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37945         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37946         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37947         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37948         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37949         (nonspacing_table_ind): Update.
37950         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37951
37952         Update to Unicode 5.1.0.
37953         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37954         code transform.
37955         * lib/uniname/uniname.c (unicode_character_name,
37956         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37957         * lib/uniname/uninames.h: Regenerated.
37958         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37959
37960 2009-02-07  Bruno Haible  <bruno@clisp.org>
37961
37962         Merge gen-ctype and gen-lbrk into a single program.
37963         * lib/gen-uni-tables.c: New file, incorporating
37964         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37965         Add directory prefixes to the names of the generated files.
37966         * lib/unictype/gen-ctype.c: Remove file.
37967         * lib/unilbrk/gen-lbrk.c: Remove file.
37968         * modules/gen-uni-tables: New file.
37969         * modules/unictype/gen-ctype: Remove file.
37970         * modules/unilbrk/gen-lbrk: Remove file.
37971
37972 2009-02-07  Bruno Haible  <bruno@clisp.org>
37973
37974         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37975
37976         New module 'unistr/u32-strcoll'.
37977         * modules/unistr/u32-strcoll: New file.
37978         * lib/unistr/u32-strcoll.c: New file.
37979
37980         New module 'unistr/u16-strcoll'.
37981         * modules/unistr/u16-strcoll: New file.
37982         * lib/unistr/u16-strcoll.c: New file.
37983
37984         New module 'unistr/u8-strcoll'.
37985         * modules/unistr/u8-strcoll: New file.
37986         * lib/unistr/u8-strcoll.c: New file.
37987         * lib/unistr/u-strcoll.h: New file.
37988
37989 2009-02-07  Bruno Haible  <bruno@clisp.org>
37990
37991         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37992         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37993         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37994         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37995         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37996         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37997
37998 2009-02-07  Bruno Haible  <bruno@clisp.org>
37999
38000         Make 64-bit clean.
38001         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38002         output_combclass, output_bidi_category, output_decimal_digit,
38003         output_digit, output_numeric, output_mirror, output_scripts,
38004         output_ident_category): Use proper width specifier in format strings.
38005
38006 2009-02-07  Bruno Haible  <bruno@clisp.org>
38007
38008         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38009         failure behaviour.
38010
38011 2009-02-07  Jim Meyering  <meyering@redhat.com>
38012
38013         regex: avoid compilation failure with upcoming gcc-4.4
38014         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38015         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38016         "... error: integer overflow in preprocessor expression".
38017
38018 2009-02-05  Ben Pfaff  <blp@gnu.org>
38019
38020         Fix link errors on Windows when close module is used.
38021         * modules/close: Add $(LIB_CLOSE) to Link section.
38022         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38023         $(LIB_CLOSE) on Windows.
38024
38025 2009-02-05  Jim Meyering  <meyering@redhat.com>
38026
38027         still avoid unused-parameter warnings, but do it cleanly
38028         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38029         (get_fs_usage): Cast to void instead.
38030         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38031         (dev_from_mount_options, read_file_system_list): Cast to void.
38032         Prompted by Bruno Haible.
38033
38034 2009-02-04  Jim Meyering  <meyering@redhat.com>
38035
38036         fsusage.c: correct copyright year
38037         * lib/fsusage.c: Reflect year in which the change is pushed into
38038
38039         avoid misc. warnings
38040         * lib/fsusage.c (UNUSED_PARAM): Define.
38041         (get_fs_usage): Mark parameter "disk" as unused.
38042         * lib/getugroups.c (getgrent): Use "void" in prototype.
38043         * lib/mountlist.c: Mark unused parameters.
38044         (read_file_system_list): Declare a local with "const".
38045         * lib/nanosleep.c (getnow): Declare static.
38046         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38047
38048         dirfd: set errno upon failure
38049         * lib/dirfd.c: Include <errno.h>.
38050         Set errno to ENOTSUP when returning -1.
38051         * modules/dirfd (Depends-on): Add errno.
38052         Suggested by John Kodis <kodis@comcast.net>.
38053
38054 2009-02-01  Bruno Haible  <bruno@clisp.org>
38055
38056         Don't assume sizeof (long) >= sizeof (void *).
38057         * lib/memcmp.c: Include stdint.h.
38058         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38059         srcp2 to 'const byte *'.
38060         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38061         types to uintptr_t.
38062         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38063         * modules/memcmp (Depends-on): Add stdint.
38064         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38065
38066 2009-01-30  Eric Blake  <ebb9@byu.net>
38067
38068         fix more require-before-expand issues
38069         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38070         expand, AC_PROG_AWK.
38071         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38072
38073 2009-01-28  Eric Blake  <ebb9@byu.net>
38074
38075         version-etc: use consistent URL formatting
38076         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38077         Improve formatting.  Use fputs for string without %.
38078
38079 2009-01-28  Jim Meyering  <meyering@redhat.com>
38080
38081         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38082         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38083         "underquoted definition of NAME" from autoconf-2.59.
38084
38085 2009-01-28  Bruno Haible  <bruno@clisp.org>
38086
38087         * doc/gnulib.texi: Add "Obsolete modules" to index.
38088
38089 2009-01-28  Jim Meyering  <meyering@redhat.com>
38090
38091         useless-if-before-free: recognize more variants
38092         * build-aux/useless-if-before-free: Also recognize e.g.,
38093         if (NULL != p) free (p);
38094
38095 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38096
38097         test-getaddrinfo: skip (don't fail) this test when there's no network
38098         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38099         on the presumption that it means you lack network access.
38100
38101 2009-01-26  Jim Meyering  <meyering@redhat.com>
38102
38103         fflush: avoid warnings on modern systems
38104         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38105         pos and result, into scopes where they're used.
38106
38107 2009-01-26  Eric Blake  <ebb9@byu.net>
38108
38109         Silence warning reintroduced by recent extensions patch.
38110         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38111         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38112         autoconf.
38113
38114         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38115         * m4/00gnulib.m4: New file.
38116         * gnulib-tool (func_get_filelist): Always use it.
38117         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38118         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38119
38120 2009-01-25  Bruno Haible  <bruno@clisp.org>
38121
38122         Make test-quotearg work on MacOS X and AIX.
38123         * tests/test-quotearg.sh: New file.
38124         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38125         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38126         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38127         include <libintl.h>.
38128         (fake_locale): Remove variable.
38129         (gettext, dgettext, dcgettext): Remove functions.
38130         (main): Instead of setting a fake locale, set a real locale. Call
38131         textdomain and bindtextdomain.
38132         * modules/quotearg-tests (Files): Add the new files.
38133         (Depends-on): Add gettext, setenv, unsetenv.
38134         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38135         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38136         Augment TESTS_ENVIRONMENT.
38137
38138 2009-01-25  Bruno Haible  <bruno@clisp.org>
38139
38140         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38141         fr_FR.ISO8859-1 locale on MacOS X.
38142         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38143         ja_JP.eucJP locale on MacOS X.
38144         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38145         zh_CN.GB18030 locale on MacOS X.
38146
38147 2009-01-25  Bruno Haible  <bruno@clisp.org>
38148
38149         Avoid link errors on MacOS X 10.3.
38150         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38151         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38152
38153 2009-01-25  Bruno Haible  <bruno@clisp.org>
38154
38155         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38156         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38157         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38158         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38159         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38160         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38161         posix_spawnattr_init, posix_spawnattr_setsigmask,
38162         posix_spawnattr_setflags, posix_spawnattr_destroy.
38163
38164         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38165         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38166         * modules/execute (Files): Remove m4/posix_spawn.m4.
38167         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38168         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38169         posix_spawnattr_init, posix_spawnattr_setsigmask,
38170         posix_spawnattr_setflags, posix_spawnattr_destroy.
38171
38172 2009-01-25  Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/glthread/threadlib.c: Include <stdlib.h>.
38175
38176 2009-01-25  Bruno Haible  <bruno@clisp.org>
38177
38178         * lib/glthread/threadlib.c (dummy): New declaration.
38179
38180 2009-01-25  Bruno Haible  <bruno@clisp.org>
38181
38182         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38183         multibyte characters also for the GB18030 encoding. Don't crash when
38184         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38185
38186 2009-01-25  Bruno Haible  <bruno@clisp.org>
38187
38188         Avoid redefining 'struct random_data' on OSF/1 5.1.
38189         * lib/stdlib.in.h: Include <random.h> if it exists.
38190         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38191         HAVE_RANDOM_H. Include <random.h> when testing whether
38192         'struct random_data' exists.
38193         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38194
38195 2009-01-25  Bruno Haible  <bruno@clisp.org>
38196
38197         Don't install charset.alias on MacOS X >= 10.3.
38198         * lib/localcharset.c (DARWIN7): New macro.
38199         (get_charset_aliases): Hardcode the result for Darwin7.
38200         * modules/localcharset (install-exec-local): Don't install
38201         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38202
38203 2009-01-25  Bruno Haible  <bruno@clisp.org>
38204
38205         Don't install charset.alias on mingw and Cygwin.
38206         * modules/localcharset (install-exec-local): Don't install
38207         charset.alias on mingw and Cygwin, if the file does not yet exist.
38208         The result for these platforms is hardcoded in localcharset.c.
38209
38210 2009-01-25  Bruno Haible  <bruno@clisp.org>
38211
38212         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38213         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38214         before requiring AC_USE_SYSTEM_EXTENSIONS.
38215
38216 2009-01-25  Jim Meyering  <meyering@redhat.com>
38217
38218         c-strtod: avoid warnings
38219         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38220         "assignment discards qualifiers from pointer target type" warnings.
38221
38222 2009-01-24  Bruno Haible  <bruno@clisp.org>
38223
38224         Add support for non-UTF-8 locales on MacOS X.
38225         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38226         canonical encodings. For Darwin 7 and newer, don't map traditional
38227         encodings to UTF-8.
38228         Reported by Vincent Lefevre <vincent@vinc17.org>
38229         at <http://savannah.gnu.org/bugs/?25235>.
38230
38231 2009-01-24  Bruno Haible  <bruno@clisp.org>
38232
38233         * doc/gnulib.texi (Obsolete modules): New section.
38234         Reported by Mike Frysinger <vapier@gentoo.org>.
38235
38236 2009-01-24  Bruno Haible  <bruno@clisp.org>
38237
38238         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38239         (%.dvi): New rule.
38240
38241 2009-01-24  Bruno Haible  <bruno@clisp.org>
38242
38243         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38244         Reported by Eric Blake.
38245
38246 2009-01-24  Bruno Haible  <bruno@clisp.org>
38247
38248         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38249         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38250         Reported by Gary V. Vaughan <gary@gnu.org>.
38251
38252 2009-01-24  Bruno Haible  <bruno@clisp.org>
38253
38254         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38255
38256 2009-01-23  Bruno Haible  <bruno@clisp.org>
38257
38258         Make c-strtod, c-strtold usable in libraries.
38259         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38260         (C_STRTOD): Call strdup instead of xstrdup.
38261         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38262         * modules/c-strtold (Depends-on): Likewise.
38263         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38264         * NEWS: Mention the change.
38265         Reported by Michael Gold <mgold@ncf.ca>.
38266
38267 2009-01-23  Jim Meyering  <meyering@redhat.com>
38268
38269         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38270         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38271         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38272
38273 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38274
38275         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38276         GNU CoreUtils.
38277         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38278         * modules/version-etc (Description): Update.
38279
38280 2009-01-22  Bruno Haible  <bruno@clisp.org>
38281
38282         Cache the C locale object.
38283         * lib/c-strtod.c (c_locale_cache): New variable.
38284         (c_locale): New function.
38285         (C_STRTOD): Use it, and don't call freelocale.
38286         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38287         Suggested by Paolo Bonzini.
38288
38289 2009-01-21  Bruno Haible  <bruno@clisp.org>
38290
38291         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38292         conditions other than overflow.
38293
38294 2009-01-21  Bruno Haible  <bruno@clisp.org>
38295
38296         * lib/c-strtod.c: Include errno.h.
38297         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38298         value from STRTOD_L and STRTOD.
38299
38300 2009-01-21  Bruno Haible  <bruno@clisp.org>
38301         and Jim Meyering  <meyering@redhat.com>
38302
38303         nanosleep: skip configure test (fail it) for apple universal builds
38304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38305         universal builds, assume that nanosleep does not work.
38306         * modules/nanosleep (Depends-on): Add multiarch.
38307
38308         mktime: skip configure test (fail it) for apple universal builds
38309         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38310         universal builds, assume that mktime does not work.
38311         * modules/mktime (Depends-on): Add multiarch.
38312
38313 2009-01-21  Eric Blake  <ebb9@byu.net>
38314
38315         multiarch: avoid expand-before-require warning
38316         * modules/multiarch (configure.ac): Require, rather than expand,
38317         gl_MULTIARCH.
38318         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38319         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38320         enforce that all clients require it.  Partial reversion of
38321         2008-12-29 patch.
38322
38323         error: avoid expand-before-require warning
38324         * modules/errno (configure.ac): Require, rather than expand,
38325         gl_HEADER_ERRNO_H.
38326         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38327         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38328         enforce that all clients require it.
38329
38330         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38331         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38332         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38333         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38334
38335 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38336
38337         Revert:
38338         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38339
38340         regex: do not depend on obsolete modules.
38341         * modules/regex: Remove memcmp and memmove.
38342
38343 2009-01-20  Bruno Haible  <bruno@clisp.org>
38344
38345         Make the 'link' module link on Windows NT 4.
38346         * lib/link.c (_WIN32_WINNT): Don't define.
38347         (CreateHardLinkFuncType): New type.
38348         (CreateHardLinkFunc, initialized): New variables.
38349         (initialize): New function.
38350         (link): Invoke CreateHardLink indirectly through the function pointer.
38351
38352 2009-01-20  Bruno Haible  <bruno@clisp.org>
38353
38354         Fix compilation failure on mingw.
38355         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38356
38357 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38358
38359         * doc/c-strtod.texi: Mention a couple of restrictions.
38360
38361 2009-01-20  Jim Meyering  <meyering@redhat.com>
38362
38363         gettimeofday: move more declarations out of functions
38364         * lib/gettimeofday.c: Move extern declarations of tzset and
38365         gmtime out of containing functions.  Prompted by Bruno Haible.
38366
38367 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38368
38369         regex: do not depend on obsolete modules.
38370         * modules/regex: Remove memcmp and memmove.
38371
38372 2009-01-19  Bruno Haible  <bruno@clisp.org>
38373
38374         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38375         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38376         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38377         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38378         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38379
38380 2009-01-19  Bruno Haible  <bruno@clisp.org>
38381
38382         * tests/test-link.c: Include <errno.h>.
38383         (main): Exit with code 77 when a hard link cannot be created due to
38384         the file system.
38385         * tests/test-link.sh: Skip test when a hard link cannot be created due
38386         to the file system.
38387         Suggested by Eric Blake.
38388
38389 2009-01-19  Martin Lambers  <marlam@marlam.de>
38390
38391         * modules/link-tests: New file.
38392         * tests/test-link.sh: New file.
38393         * tests/test-link.c: New file.
38394
38395 2009-01-19  Eric Blake  <ebb9@byu.net>
38396
38397         doc: mention another function added in cygwin 1.7.0
38398         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38399         Another new function in cygwin 1.7.
38400
38401 2009-01-19  Bruno Haible  <bruno@clisp.org>
38402
38403         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38404         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38405         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38406         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38407         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38408         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38409         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38410         * m4/md4.m4 (gl_MD4): Likewise.
38411         * m4/md5.m4 (gl_MD5): Likewise.
38412         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38413         * m4/sha1.m4 (gl_SHA1): Likewise.
38414         * m4/sha256.m4 (gl_SHA256): Likewise.
38415         * m4/sha512.m4 (gl_SHA512): Likewise.
38416
38417 2009-01-19  Bruno Haible  <bruno@clisp.org>
38418
38419         * modules/uniname/uniname-tests (Depends-on): Add progname.
38420         * tests/uniname/test-uninames.c: Include progname.h.
38421         (main): Call set_program_name.
38422
38423         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38424         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38425         (main): Call set_program_name.
38426
38427         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38428         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38429         (main): Call set_program_name.
38430
38431         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38432         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38433         (main): Call set_program_name.
38434
38435         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38436         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38437         (main): Call set_program_name.
38438
38439         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38440         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38441         (main): Call set_program_name.
38442
38443         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38444         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38445         (main): Call set_program_name.
38446
38447         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38448         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38449         (main): Call set_program_name.
38450
38451         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38452         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38453         (main): Call set_program_name.
38454
38455 2009-01-19  Eric Blake  <ebb9@byu.net>
38456
38457         test-unistd: test previous patch
38458         * tests/test-unistd.c: Test *_FILENO macros.
38459
38460         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38461         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38462         Guarantee a definition.
38463         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38464         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38465         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38466         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38467         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38468         Likewise.
38469         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38470         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38471         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38472         Likewise.
38473         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38474         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38475         (STDERR_FILENO): Likewise.
38476         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38477         (STDERR_FILENO): Likewise.
38478         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38479         (STDERR_FILENO): Likewise.
38480         Reported by Elbert Pol.
38481
38482 2009-01-19  Eric Blake  <ebb9@byu.net>
38483
38484         doc: mention more functions added in cygwin 1.7.0
38485         * doc/posix-functions/abort.texi (abort): Update wording related
38486         to cygwin.
38487         * doc/posix-functions/daylight.texi (daylight): Likewise.
38488         * doc/posix-functions/optarg.texi (optarg): Likewise.
38489         * doc/posix-functions/optarg.texi (opterr): Likewise.
38490         * doc/posix-functions/optarg.texi (optind): Likewise.
38491         * doc/posix-functions/optarg.texi (optopt): Likewise.
38492         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38493         worked in 1.5.x, and was withdrawn in 1.7.
38494         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38495         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38496         cygwin versions.
38497         * doc/posix-functions/perror.texi (perror): Likewise.
38498         * doc/posix-functions/printf.texi (printf): Likewise.
38499         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38500         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38501         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38502         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38503         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38504         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38505         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38506         Likewise.
38507         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38508         Likewise.
38509         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38510         this function.
38511         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38512         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38513         Likewise.
38514         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38515         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38516         * doc/posix-functions/confstr.texi (confstr): Likewise.
38517         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38518         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38519         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38520         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38521         * doc/posix-functions/fputws.texi (fputws): Likewise.
38522         * doc/posix-functions/fwide.texi (fwide): Likewise.
38523         * doc/posix-functions/getwc.texi (getwc): Likewise.
38524         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38525         * doc/posix-functions/putwc.texi (putwc): Likewise.
38526         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38527         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38528         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38529         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38530         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38531         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38532         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38533         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38534         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38535         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38536         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38537
38538 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38539
38540         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38541         * lib/ioctl.c: Include <sys/ioctl.h>.
38542
38543 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38544
38545         * modules/getdate-tests (Depends-on): Add progname.
38546         * tests/test-getdate.c: Use progname module, to avoid link errors
38547         on non-glibc systems.
38548
38549 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38550
38551         * modules/filenamecat-tests (Depends-on): Add progname.
38552         * modules/fstrcmp-tests (Depends-on): Likewise.
38553
38554         * tests/test-filenamecat.c: Use progname module, to avoid link
38555         errors on non-glibc systems.
38556         * tests/test-fstrcmp.c: Likewise.
38557
38558 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38559
38560         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38561         * lib/gettimeofday.c: Move extern declaration out of function.
38562
38563 2009-01-18  Bruno Haible  <bruno@clisp.org>
38564
38565         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38566         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38567         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38568
38569 2009-01-18  Bruno Haible  <bruno@clisp.org>
38570
38571         * lib/strftime.c (MEMPCPY): Remove unused macro.
38572         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38573
38574 2009-01-18  Martin Lambers  <marlam@marlam.de>
38575
38576         New module 'link'.
38577         * lib/unistd.in.h (link): New declaration.
38578         * lib/link.c: New file.
38579         * m4/link.m4: New file.
38580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38581         HAVE_LINK.
38582         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38583         * modules/link: New file.
38584         * doc/posix-functions/link.texi: Mention the new module.
38585
38586 2009-01-18  Bruno Haible  <bruno@clisp.org>
38587
38588         * tests/test-avltree_list.c (main): Call set_program_name.
38589         * tests/test-avltree_oset.c (main): Likewise.
38590         * tests/test-obstack-printf.c: Include progname.h.
38591         (main): Call set_program_name.
38592         * tests/test-quotearg.c: Include progname.h.
38593         (main): Call set_program_name.
38594         * tests/test-xmemdup0.c: Include progname.h.
38595         (main): Call set_program_name.
38596
38597 2009-01-18  Bruno Haible  <bruno@clisp.org>
38598
38599         New module 'alphasort'.
38600         * lib/dirent.in.h (alphasort): New declaration.
38601         * lib/alphasort.c: New file, from glibc with modifications.
38602         * m4/alphasort.m4: New file.
38603         * modules/alphasort: New file.
38604         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38605         HAVE_ALPHASORT.
38606         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38607         HAVE_ALPHASORT.
38608         * doc/posix-functions/alphasort.texi: Mention the new module and the
38609         portability problems.
38610
38611 2009-01-18  Bruno Haible  <bruno@clisp.org>
38612
38613         New module 'scandir'.
38614         * lib/dirent.in.h (scandir): New declaration.
38615         * lib/scandir.c: New file, from glibc with modifications.
38616         * m4/scandir.m4: New file.
38617         * modules/scandir: New file.
38618         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38619         HAVE_SCANDIR.
38620         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38621         HAVE_SCANDIR.
38622         * doc/posix-functions/scandir.texi: Mention the new module and the
38623         portability problems.
38624
38625 2009-01-17  Bruno Haible  <bruno@clisp.org>
38626
38627         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38628         Update documentation.
38629         (func_remove_suffix): Escape all dots in the suffix. Update
38630         documentation.
38631         (func_filter_filelist): Update documentation.
38632         Reported by Ralf Wildenhues.
38633
38634 2009-01-17  Bruno Haible  <bruno@clisp.org>
38635
38636         * modules/dprintf-posix-tests: New file.
38637         * tests/test-dprintf-posix.sh: New file.
38638         * tests/test-dprintf-posix.c: New file.
38639
38640         New modules 'dprintf', 'dprintf-posix'.
38641         * lib/stdio.in.h (dprintf): New declaration.
38642         * lib/dprintf.c: New file.
38643         * m4/dprintf.m4: New file.
38644         * m4/dprintf-posix.m4: New file.
38645         * modules/dprintf: New file.
38646         * modules/dprintf-posix: New file.
38647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38648         HAVE_DPRINTF, REPLACE_DPRINTF.
38649         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38650         HAVE_DPRINTF, REPLACE_DPRINTF.
38651         * doc/posix-functions/dprintf.texi: Mention the new modules.
38652
38653 2009-01-17  Bruno Haible  <bruno@clisp.org>
38654
38655         * modules/vdprintf-posix-tests: New file.
38656         * tests/test-vdprintf-posix.sh: New file.
38657         * tests/test-vdprintf-posix.c: New file.
38658
38659         New modules 'vdprintf', 'vdprintf-posix'.
38660         * lib/stdio.in.h (vdprintf): New declaration.
38661         * lib/vdprintf.c: New file.
38662         * m4/vdprintf.m4: New file.
38663         * m4/vdprintf-posix.m4: New file.
38664         * modules/vdprintf: New file.
38665         * modules/vdprintf-posix: New file.
38666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38667         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38668         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38669         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38670         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38671
38672 2009-01-17  Bruno Haible  <bruno@clisp.org>
38673
38674         Fix replacement of fopen on mingw.
38675         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38676         mingw.
38677
38678 2009-01-17  Bruno Haible  <bruno@clisp.org>
38679
38680         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38681         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38682
38683 2009-01-17  Bruno Haible  <bruno@clisp.org>
38684
38685         Avoid test-fflush2.sh failure on mingw.
38686         * tests/test-fflush2.c: Include binary-io.h.
38687         (main): Put standard input into binary mode.
38688         * modules/fflush-tests (Depends-on): Add binary-io.
38689
38690 2009-01-17  Bruno Haible  <bruno@clisp.org>
38691
38692         * lib/wchar.in.h: In another particular situation, include only the
38693         system's <wchar.h> file.
38694         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38695         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38696         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38697
38698 2009-01-17  Bruno Haible  <bruno@clisp.org>
38699
38700         Support for stripping executables in --enable-relocatable.
38701         * build-aux/install-reloc: Expect one more argument, or an environment
38702         variable RELOC_STRIP_PROG. If set, strip the destination program and
38703         its wrapper.
38704         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38705         RELOC_STRIP_PROG.
38706         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38707         to set RELOCATABLE_STRIP.
38708         * NEWS: Mention the new Makefile requirement.
38709
38710 2009-01-17  Bruno Haible  <bruno@clisp.org>
38711
38712         * build-aux/install-reloc: Remove debugging information left over by
38713         C compiler on MacOS X.
38714
38715 2009-01-17  Bruno Haible  <bruno@clisp.org>
38716
38717         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38718         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38719         _NSGetExecutablePath.
38720
38721 2009-01-16  Jim Meyering  <meyering@redhat.com>
38722
38723         strerror: avoid warnings about discarding "const"
38724         * lib/strerror.c (rpl_strerror): Instead of returning a const
38725         string from each and every "case", use a variable, and add a single
38726         cast after the switch.
38727
38728 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38729
38730         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38731
38732 2009-01-16  Bruno Haible  <bruno@clisp.org>
38733
38734         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38735         array initializer syntax that also works in C++ mode.
38736         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38737
38738 2009-01-16  Jim Meyering  <meyering@redhat.com>
38739
38740         poll: suppress a warning
38741         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38742         to ignore "...unsigned expression < 0 is always false" warnings.
38743
38744 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38745
38746         poll: remove declarations of unused variables
38747         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38748         sockbuf and optlen.
38749
38750 2009-01-15  Bruno Haible  <bruno@clisp.org>
38751
38752         Make fflush-after-ungetc POSIX compliant on BSD systems.
38753         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38754         (clear_ungetc_buffer): Implement also for other systems.
38755         (rpl_fflush): On glibc systems, invoke
38756         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38757         clear_ungetc_buffer after fetching the stream's position, not before.
38758
38759 2009-01-15  Bruno Haible  <bruno@clisp.org>
38760
38761         Make fflush-after-ungetc POSIX compliant on glibc systems.
38762         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38763         after ungetc.
38764         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38765         (rpl_fflush): On glibc systems, simply call the system's fflush
38766         function after clearing the ungetc buffer.
38767         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38768         Instead, lseek only to the end of file, then use the system's fseeko
38769         for the rest. On glibc systems, reset the EOF indicator bit.
38770
38771 2009-01-15  Jim Meyering  <meyering@redhat.com>
38772
38773         openmp.m4: revert quote-adding change, for portability to older autoconf
38774         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38775         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38776         Simon Josefsson noticed the problem when using autoconf-2.61.
38777
38778 2009-01-15  Bruno Haible  <bruno@clisp.org>
38779
38780         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38781         * tests/test-fflush2.c (ASSERT): Always fail.
38782         (main): Add two tests for fflush() after ungetc(), taking into account
38783         the Austin Group's clarification.
38784         Suggested by Eric Blake.
38785
38786 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38787
38788         mktime.m4: remove K&R-style function prototypes
38789         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38790         for the Sun C++ compiler.
38791
38792 2009-01-14  Bruno Haible  <bruno@clisp.org>
38793
38794         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38795         while including <wchar.h>.
38796         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38797         the system's <wchar.h> file.
38798         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38799
38800 2009-01-14  Bruno Haible  <bruno@clisp.org>
38801
38802         * m4/csharp.m4: Don't mention gettext on the serial number line.
38803         * m4/csharpexec.m4: Likewise.
38804         * m4/eaccess.m4: Likewise.
38805         * m4/javaexec.m4: Likewise.
38806         * m4/sig_atomic_t.m4: Likewise.
38807         * m4/tmpdir.m4: Likewise.
38808         * m4/intldir.m4: Bump gettext version.
38809         * m4/lib-ld.m4: Likewise.
38810
38811 2009-01-14  Bruno Haible  <bruno@clisp.org>
38812
38813         * lib/progname.c (set_program_name): Add more comments.
38814         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38815
38816 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38817
38818         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38819         were sys/stat.h does not define it.
38820
38821 2009-01-14  Jim Meyering  <meyering@redhat.com>
38822
38823         many *.m4 files: improve m4 quoting
38824         99% of this change was performed by running the following commands:
38825         git ls-files | grep '\.m4$' | xargs perl -pi \
38826           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38827           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38828           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38829           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38830         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38831         The remainder were to add Copyright dates, increment serial numbers,
38832         undo some changes in comments, exclude m4/intl.m4, and add quotes
38833         around the "1" in ",1" where the unusual spacing prohibited the
38834         above regexps from doing the job.  For more details, see
38835         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38836         * m4/acl.m4: Modified.
38837         * m4/afs.m4: Likewise.
38838         * m4/alloca.m4: Likewise.
38839         * m4/argp.m4: Likewise.
38840         * m4/argz.m4: Likewise.
38841         * m4/atexit.m4: Likewise.
38842         * m4/bison-i18n.m4: Likewise.
38843         * m4/bison.m4: Likewise.
38844         * m4/byteswap.m4: Likewise.
38845         * m4/c-stack.m4: Likewise.
38846         * m4/c-strtod.m4: Likewise.
38847         * m4/calloc.m4: Likewise.
38848         * m4/canonicalize-lgpl.m4: Likewise.
38849         * m4/chown.m4: Likewise.
38850         * m4/clock_time.m4: Likewise.
38851         * m4/codeset.m4: Likewise.
38852         * m4/copy-file.m4: Likewise.
38853         * m4/csharp.m4: Likewise.
38854         * m4/csharpcomp.m4: Likewise.
38855         * m4/csharpexec.m4: Likewise.
38856         * m4/d-ino.m4: Likewise.
38857         * m4/d-type.m4: Likewise.
38858         * m4/dirfd.m4: Likewise.
38859         * m4/double-slash-root.m4: Likewise.
38860         * m4/eaccess.m4: Likewise.
38861         * m4/eealloc.m4: Likewise.
38862         * m4/environ.m4: Likewise.
38863         * m4/errno_h.m4: Likewise.
38864         * m4/euidaccess.m4: Likewise.
38865         * m4/execute.m4: Likewise.
38866         * m4/fatal-signal.m4: Likewise.
38867         * m4/fchdir.m4: Likewise.
38868         * m4/fcntl_h.m4: Likewise.
38869         * m4/fileblocks.m4: Likewise.
38870         * m4/filenamecat.m4: Likewise.
38871         * m4/findprog.m4: Likewise.
38872         * m4/flexmember.m4: Likewise.
38873         * m4/fnmatch.m4: Likewise.
38874         * m4/fopen.m4: Likewise.
38875         * m4/fpending.m4: Likewise.
38876         * m4/fprintf-posix.m4: Likewise.
38877         * m4/free.m4: Likewise.
38878         * m4/frexp.m4: Likewise.
38879         * m4/frexpl.m4: Likewise.
38880         * m4/fsusage.m4: Likewise.
38881         * m4/ftruncate.m4: Likewise.
38882         * m4/gc-camellia.m4: Likewise.
38883         * m4/gc-random.m4: Likewise.
38884         * m4/gc.m4: Likewise.
38885         * m4/getaddrinfo.m4: Likewise.
38886         * m4/getcwd-abort-bug.m4: Likewise.
38887         * m4/getcwd-path-max.m4: Likewise.
38888         * m4/getdate.m4: Likewise.
38889         * m4/getdomainname.m4: Likewise.
38890         * m4/getgroups.m4: Likewise.
38891         * m4/gethostname.m4: Likewise.
38892         * m4/gethrxtime.m4: Likewise.
38893         * m4/getline.m4: Likewise.
38894         * m4/getloadavg.m4: Likewise.
38895         * m4/getndelim2.m4: Likewise.
38896         * m4/getpass.m4: Likewise.
38897         * m4/gettext.m4: Likewise.
38898         * m4/gettime.m4: Likewise.
38899         * m4/gettimeofday.m4: Likewise.
38900         * m4/gnulib-common.m4: Likewise.
38901         * m4/group-member.m4: Likewise.
38902         * m4/host-os.m4: Likewise.
38903         * m4/iconv.m4: Likewise.
38904         * m4/iconv_open.m4: Likewise.
38905         * m4/inet_ntop.m4: Likewise.
38906         * m4/inet_pton.m4: Likewise.
38907         * m4/inline.m4: Likewise.
38908         * m4/intldir.m4: Likewise.
38909         * m4/intlmacosx.m4: Likewise.
38910         * m4/intmax.m4: Likewise.
38911         * m4/intmax_t.m4: Likewise.
38912         * m4/inttypes.m4: Likewise.
38913         * m4/inttypes_h.m4: Likewise.
38914         * m4/inttypes-pri.m4: Likewise.
38915         * m4/isapipe.m4: Likewise.
38916         * m4/isnand.m4: Likewise.
38917         * m4/isnanf.m4: Likewise.
38918         * m4/isnanl.m4: Likewise.
38919         * m4/javacomp.m4: Likewise.
38920         * m4/javaexec.m4: Likewise.
38921         * m4/jm-winsz1.m4: Likewise.
38922         * m4/jm-winsz2.m4: Likewise.
38923         * m4/lchown.m4: Likewise.
38924         * m4/lcmessage.m4: Likewise.
38925         * m4/ldexpl.m4: Likewise.
38926         * m4/lib-ld.m4: Likewise.
38927         * m4/lib-link.m4: Likewise.
38928         * m4/libsigsegv.m4: Likewise.
38929         * m4/link-follow.m4: Likewise.
38930         * m4/localcharset.m4: Likewise.
38931         * m4/locale-fr.m4: Likewise.
38932         * m4/locale-ja.m4: Likewise.
38933         * m4/locale-tr.m4: Likewise.
38934         * m4/locale-zh.m4: Likewise.
38935         * m4/lock.m4: Likewise.
38936         * m4/longlong.m4: Likewise.
38937         * m4/ls-mntd-fs.m4: Likewise.
38938         * m4/lstat.m4: Likewise.
38939         * m4/malloc.m4: Likewise.
38940         * m4/mathl.m4: Likewise.
38941         * m4/mbrtowc.m4: Likewise.
38942         * m4/mbstate_t.m4: Likewise.
38943         * m4/mbswidth.m4: Likewise.
38944         * m4/memchr.m4: Likewise.
38945         * m4/memcmp.m4: Likewise.
38946         * m4/memcpy.m4: Likewise.
38947         * m4/memmem.m4: Likewise.
38948         * m4/memmove.m4: Likewise.
38949         * m4/mempcpy.m4: Likewise.
38950         * m4/memrchr.m4: Likewise.
38951         * m4/memset.m4: Likewise.
38952         * m4/minmax.m4: Likewise.
38953         * m4/mkdir-slash.m4: Likewise.
38954         * m4/mkdtemp.m4: Likewise.
38955         * m4/mktime.m4: Likewise.
38956         * m4/mmap-anon.m4: Likewise.
38957         * m4/mountlist.m4: Likewise.
38958         * m4/nanosleep.m4: Likewise.
38959         * m4/nls.m4: Likewise.
38960         * m4/nocrash.m4: Likewise.
38961         * m4/open.m4: Likewise.
38962         * m4/openat.m4: Likewise.
38963         * m4/openmp.m4: Likewise.
38964         * m4/pathmax.m4: Likewise.
38965         * m4/perl.m4: Likewise.
38966         * m4/physmem.m4: Likewise.
38967         * m4/pipe.m4: Likewise.
38968         * m4/po.m4: Likewise.
38969         * m4/poll.m4: Likewise.
38970         * m4/posixtm.m4: Likewise.
38971         * m4/posixver.m4: Likewise.
38972         * m4/printf-frexp.m4: Likewise.
38973         * m4/printf-frexpl.m4: Likewise.
38974         * m4/printf-posix.m4: Likewise.
38975         * m4/printf-posix-rpl.m4: Likewise.
38976         * m4/printf.m4: Likewise.
38977         * m4/progtest.m4: Likewise.
38978         * m4/putenv.m4: Likewise.
38979         * m4/readline.m4: Likewise.
38980         * m4/readlink.m4: Likewise.
38981         * m4/readutmp.m4: Likewise.
38982         * m4/realloc.m4: Likewise.
38983         * m4/regex.m4: Likewise.
38984         * m4/relocatable.m4: Likewise.
38985         * m4/relocatable-lib.m4: Likewise.
38986         * m4/rename-dest-slash.m4: Likewise.
38987         * m4/rename.m4: Likewise.
38988         * m4/rmdir-errno.m4: Likewise.
38989         * m4/rmdir.m4: Likewise.
38990         * m4/roundf.m4: Likewise.
38991         * m4/roundl.m4: Likewise.
38992         * m4/rpmatch.m4: Likewise.
38993         * m4/save-cwd.m4: Likewise.
38994         * m4/selinux-selinux-h.m4: Likewise.
38995         * m4/setenv.m4: Likewise.
38996         * m4/settime.m4: Likewise.
38997         * m4/sig2str.m4: Likewise.
38998         * m4/sig_atomic_t.m4: Likewise.
38999         * m4/signalblocking.m4: Likewise.
39000         * m4/signbit.m4: Likewise.
39001         * m4/sigpipe.m4: Likewise.
39002         * m4/sockets.m4: Likewise.
39003         * m4/sockpfaf.m4: Likewise.
39004         * m4/st_dm_mode.m4: Likewise.
39005         * m4/stat-time.m4: Likewise.
39006         * m4/stdbool.m4: Likewise.
39007         * m4/stdint.m4: Likewise.
39008         * m4/stdint_h.m4: Likewise.
39009         * m4/stpcpy.m4: Likewise.
39010         * m4/stpncpy.m4: Likewise.
39011         * m4/strcase.m4: Likewise.
39012         * m4/strchrnul.m4: Likewise.
39013         * m4/strcspn.m4: Likewise.
39014         * m4/strdup.m4: Likewise.
39015         * m4/strftime.m4: Likewise.
39016         * m4/strndup.m4: Likewise.
39017         * m4/strnlen.m4: Likewise.
39018         * m4/strpbrk.m4: Likewise.
39019         * m4/strptime.m4: Likewise.
39020         * m4/strsep.m4: Likewise.
39021         * m4/strtod.m4: Likewise.
39022         * m4/strtoimax.m4: Likewise.
39023         * m4/strtok_r.m4: Likewise.
39024         * m4/strtol.m4: Likewise.
39025         * m4/strtoll.m4: Likewise.
39026         * m4/strtoul.m4: Likewise.
39027         * m4/strtoull.m4: Likewise.
39028         * m4/strtoumax.m4: Likewise.
39029         * m4/strverscmp.m4: Likewise.
39030         * m4/threadlib.m4: Likewise.
39031         * m4/timegm.m4: Likewise.
39032         * m4/tm_gmtoff.m4: Likewise.
39033         * m4/tmpdir.m4: Likewise.
39034         * m4/tmpfile.m4: Likewise.
39035         * m4/tzset.m4: Likewise.
39036         * m4/uintmax_t.m4: Likewise.
39037         * m4/unlinkdir.m4: Likewise.
39038         * m4/unlocked-io.m4: Likewise.
39039         * m4/uptime.m4: Likewise.
39040         * m4/userspec.m4: Likewise.
39041         * m4/utimbuf.m4: Likewise.
39042         * m4/utime.m4: Likewise.
39043         * m4/utimes-null.m4: Likewise.
39044         * m4/utimes.m4: Likewise.
39045         * m4/vararrays.m4: Likewise.
39046         * m4/vasnprintf.m4: Likewise.
39047         * m4/vfprintf-posix.m4: Likewise.
39048         * m4/vprintf-posix.m4: Likewise.
39049         * m4/wait-process.m4: Likewise.
39050         * m4/wchar_t.m4: Likewise.
39051         * m4/wint_t.m4: Likewise.
39052         * m4/write-any-file.m4: Likewise.
39053         * m4/yield.m4: Likewise.
39054
39055 2009-01-13  Bruno Haible  <bruno@clisp.org>
39056
39057         Avoid test-copy-file.sh failures when ACL support insufficient.
39058         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39059         TESTS_ENVIRONMENT.
39060         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39061         Reported by Jim Meyering.
39062
39063 2009-01-13  Bruno Haible  <bruno@clisp.org>
39064
39065         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39066         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39067         * modules/unistdio/u8-printf-parse (Files): Likewise.
39068         * modules/unistdio/u32-printf-parse (Files): Likewise.
39069         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39070
39071 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39072
39073         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39074         and m4/inttypes_h.m4 too.
39075
39076 2009-01-12  Eric Blake  <ebb9@byu.net>
39077
39078         tests: IRIX 6.2 cc can't compile -0.0 into .data
39079         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39080         rather than at compile-time.
39081         * tests/test-floorl.c (minus_zero): Likewise.
39082         * tests/test-frexpl.c (minus_zero): Likewise.
39083         * tests/test-isnan.c (minus_zerol): Likewise.
39084         * tests/test-isnanl.h (minus_zero): Likewise.
39085         * tests/test-ldexpl.c (minus_zero): Likewise.
39086         * tests/test-roundl.c (minus_zero): Likewise.
39087         * tests/test-signbit.c (minus_zerol): Likewise.
39088         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39089         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39090         * tests/test-truncl.c (minus_zero): Likewise.
39091         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39092         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39093         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39094
39095 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39096
39097         regex: fix glibc bug 9697
39098         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39099         handling.
39100
39101 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39102
39103         regex: fix glibc bug 697
39104         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39105         being NULL also if there are no backreferences.
39106
39107 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39108
39109         regex: merge glibc changes
39110         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39111         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39112         re_string_skip_chars, re_string_reconstruct): Likewise.
39113         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39114
39115 2009-01-07  Jim Meyering  <meyering@redhat.com>
39116
39117         poll: filter through cppi
39118         * lib/poll.c: Indent cpp directives to reflect nesting.
39119
39120 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39121
39122         poll: don't return uninitialized
39123         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39124
39125 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39126
39127         avoid compile failure on AIX 6.1
39128         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39129         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39130
39131 2009-01-04  Jim Meyering  <meyering@redhat.com>
39132
39133         remove duplicate inclusion of <stdio.h>
39134         * tests/test-fprintf-posix.c: Likewise.
39135         * tests/test-printf-posix.c: Likewise.
39136         * tests/test-snprintf-posix.c: Likewise.
39137         * tests/test-sprintf-posix.c: Likewise.
39138         * tests/test-vasprintf-posix.c: Likewise.
39139         * tests/test-vfprintf-posix.c: Likewise.
39140         * tests/test-vprintf-posix.c: Likewise.
39141         * tests/test-vsnprintf-posix.c: Likewise.
39142         * tests/test-vsprintf-posix.c: Likewise.
39143
39144 2009-01-03  Jim Meyering  <meyering@redhat.com>
39145
39146         gnulib-tool: fix sed-based filtering
39147         * gnulib-tool (func_filter_filelist): Remove extra backslash
39148         in sed_fff_filter definition.
39149
39150 2009-01-02  Jim Meyering  <meyering@redhat.com>
39151
39152         strftime: avoid compilation failure on Solaris 2.6
39153         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39154         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39155         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39156         be available.  Reported by Tom G. Christensen.  Details in
39157         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39158
39159 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39160             Bruno Haible  <bruno@clisp.org>
39161
39162         Speed up gnulib-tool by doing more string processing through shell
39163         built-ins.
39164         * gnulib-tool (fast_func_append): New variable.
39165         (func_remove_prefix, func_remove_suffix): New functions.
39166         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39167         (func_filter_filelist): New function.
39168         (func_get_dependencies): Use func_remove_suffix instead of sed.
39169         (func_get_automake_snippet): Use func_filter_filelist instead of a
39170         subshell and sed invocation.
39171
39172 2009-01-01  Bruno Haible  <bruno@clisp.org>
39173
39174         Fix a security bug.
39175         * gnulib-tool (func_import, import, update): Don't allow the characters
39176         '"', '$', '`', '\' in macro arguments that become part of commands that
39177         are evaluated.
39178
39179 2009-01-01  Bruno Haible  <bruno@clisp.org>
39180
39181         * gnulib-tool (func_reset_sigpipe): Add more comments.
39182
39183 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39184
39185         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39186         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39187         already know the answer.
39188
39189 2009-01-01  Jim Meyering  <meyering@redhat.com>
39190
39191         * lib/version-etc.c (version_etc_va): Update copyright year.
39192
39193 2008-12-30  Bruno Haible  <bruno@clisp.org>
39194
39195         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39196         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39197         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39198
39199 2008-12-29  Eric Blake  <ebb9@byu.net>
39200
39201         multiarch: avoid autoconf AC_REQUIRE bug
39202         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39203         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39204         2.63 and older.
39205         Reported by Bruno Haible, and analyzed in
39206         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39207
39208 2008-12-29  Bruno Haible  <bruno@clisp.org>
39209
39210         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39211         files in subdirectories correctly.
39212         Reported by Ralf Wildenhues.
39213
39214 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39215
39216         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39217         rather than 'join FILE -', for Solaris join.
39218
39219 2008-12-29  Bruno Haible  <bruno@clisp.org>
39220
39221         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39222         quoting.
39223         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39224         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39225         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39226         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39227         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39228         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39229         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39230         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39231         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39232         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39233         * m4/nls.m4 (AM_NLS): Likewise.
39234         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39235         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39236         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39237         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39238         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39239         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39240         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39241         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39242         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39243         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39244         * m4/xsize.m4 (gl_XSIZE): Likewise.
39245         Suggested by Jim Meyering.
39246
39247 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39248
39249         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39250         * lib/parse-duration.c: use a switch instead of cascading if's.
39251
39252 2008-12-29  Eric Blake  <ebb9@byu.net>
39253
39254         wchar.h: supply WEOF on Irix 5.3
39255         * lib/wchar.in.h (wint_t): Also supply WEOF.
39256         * lib/wctype.in.h (wint_t): Likewise.
39257         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39258         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39259         Reported by Tom G. Christensen.
39260
39261 2008-12-26  Bruno Haible  <bruno@clisp.org>
39262
39263         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39264         i486, i586, i686.
39265
39266 2008-12-26  Bruno Haible  <bruno@clisp.org>
39267
39268         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39269
39270 2008-12-26  Bruno Haible  <bruno@clisp.org>
39271
39272         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39273         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39274         not __STDC_CONSTANT_MACROS.
39275         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39276
39277 2008-12-25  Bruno Haible  <bruno@clisp.org>
39278
39279         Add support for universal builds to vasnprintf.
39280         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39281         universal builds, guess no.
39282         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39283         * modules/vasprintf-posix (Depends-on): Likewise.
39284         * modules/fprintf-posix (Depends-on): Likewise.
39285         * modules/vfprintf-posix (Depends-on): Likewise.
39286         * modules/snprintf-posix (Depends-on): Likewise.
39287         * modules/vsnprintf-posix (Depends-on): Likewise.
39288         * modules/sprintf-posix (Depends-on): Likewise.
39289         * modules/vsprintf-posix (Depends-on): Likewise.
39290         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39291         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39292         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39293         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39294         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39295         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39296         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39297
39298         Add support for universal builds to <inttypes.h>.
39299         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39300         _SCNu64_PREFIX): In Apple
39301         universal builds, define directly, using _LP64.
39302         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39303         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39304         * modules/inttypes (Depends-on): Add multiarch.
39305         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39306
39307         Add support for universal builds to <stdint.h>.
39308         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39309         universal builds, define directly, using _LP64.
39310         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39311         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39312         and size_t.
39313         * modules/stdint (Depends-on): Add multiarch.
39314         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39315
39316         New module 'multiarch'.
39317         * modules/multiarch: New file.
39318         * m4/multiarch.m4: New file.
39319
39320 2008-12-25  Bruno Haible  <bruno@clisp.org>
39321
39322         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39323
39324 2008-12-25  Bruno Haible  <bruno@clisp.org>
39325
39326         * modules/btowc (License): Relicense under LGPLv2+.
39327         * modules/mbsinit (License): Likewise.
39328         * modules/mbrtowc (License): Likewise.
39329         * modules/wcrtomb (License): Likewise.
39330         * modules/streq (License): Likewise.
39331         Reported by David Lutterkort <lutter@redhat.com>.
39332
39333 2008-12-23  Bruno Haible  <bruno@clisp.org>
39334
39335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39336
39337 2008-12-23  Bruno Haible  <bruno@clisp.org>
39338
39339         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39341         GETADDRINFO_LIB, not in LIBS.
39342         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39343         * modules/canon-host (Link): Likewise.
39344         * NEWS: Mention the change.
39345         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39346         GETADDRINFO_LIB.
39347
39348 2008-12-22  Bruno Haible  <bruno@clisp.org>
39349
39350         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39351         * doc/posix-functions/iswalpha_l.texi: Likewise.
39352         * doc/posix-functions/iswblank_l.texi: Likewise.
39353         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39354         * doc/posix-functions/iswctype_l.texi: Likewise.
39355         * doc/posix-functions/iswdigit_l.texi: Likewise.
39356         * doc/posix-functions/iswgraph_l.texi: Likewise.
39357         * doc/posix-functions/iswlower_l.texi: Likewise.
39358         * doc/posix-functions/iswprint_l.texi: Likewise.
39359         * doc/posix-functions/iswpunct_l.texi: Likewise.
39360         * doc/posix-functions/iswspace_l.texi: Likewise.
39361         * doc/posix-functions/iswupper_l.texi: Likewise.
39362         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39363         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39364         * doc/posix-functions/open_wmemstream.texi: Likewise.
39365         * doc/posix-functions/swscanf.texi: Likewise.
39366         * doc/posix-functions/towctrans_l.texi: Likewise.
39367         * doc/posix-functions/towlower.texi: Likewise.
39368         * doc/posix-functions/towlower_l.texi: Likewise.
39369         * doc/posix-functions/towupper.texi: Likewise.
39370         * doc/posix-functions/towupper_l.texi: Likewise.
39371         * doc/posix-functions/vfwprintf.texi: Likewise.
39372         * doc/posix-functions/vfwscanf.texi: Likewise.
39373         * doc/posix-functions/vswscanf.texi: Likewise.
39374         * doc/posix-functions/vwprintf.texi: Likewise.
39375         * doc/posix-functions/vwscanf.texi: Likewise.
39376         * doc/posix-functions/wcpcpy.texi: Likewise.
39377         * doc/posix-functions/wcpncpy.texi: Likewise.
39378         * doc/posix-functions/wcscasecmp.texi: Likewise.
39379         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39380         * doc/posix-functions/wcscoll_l.texi: Likewise.
39381         * doc/posix-functions/wcsdup.texi: Likewise.
39382         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39383         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39384         * doc/posix-functions/wcsnlen.texi: Likewise.
39385         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39386         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39387         * doc/posix-functions/wctrans_l.texi: Likewise.
39388         * doc/posix-functions/wctype_l.texi: Likewise.
39389         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39390         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39391         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39392         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39393         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39394         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39395         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39396         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39397         * doc/glibc-functions/wcschrnul.texi: Likewise.
39398         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39399         * doc/glibc-functions/wcstod_l.texi: Likewise.
39400         * doc/glibc-functions/wcstof_l.texi: Likewise.
39401         * doc/glibc-functions/wcstol_l.texi: Likewise.
39402         * doc/glibc-functions/wcstold_l.texi: Likewise.
39403         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39404         * doc/glibc-functions/wcstoq.texi: Likewise.
39405         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39406         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39407         * doc/glibc-functions/wcstouq.texi: Likewise.
39408         * doc/glibc-functions/wmempcpy.texi: Likewise.
39409
39410 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39411             Eric Blake  <ebb9@byu.net>
39412             Paolo Bonzini  <bonzini@gnu.org>
39413             Bruno Haible  <bruno@clisp.org>
39414
39415         Make c-stack work on Haiku.
39416         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39417         (c_stack_action): Use SA_ONSTACK flag.
39418
39419 2008-12-22  Bruno Haible  <bruno@clisp.org>
39420
39421         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39422
39423 2008-12-22  Bruno Haible  <bruno@clisp.org>
39424
39425         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39426         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39427         being overridden.
39428         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39429         New macros.
39430         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39432         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39433         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39434
39435 2008-12-22  Bruno Haible  <bruno@clisp.org>
39436
39437         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39438         from test code.
39439
39440 2008-12-22  Eric Blake  <ebb9@byu.net>
39441
39442         Avoid gcc warnings on cygwin.
39443         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39444         Avoid unused variable.
39445         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39446         Likewise.
39447
39448 2008-12-22  Bruno Haible  <bruno@clisp.org>
39449
39450         Remove HAVE_MBRTOWC conditionals.
39451         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39452         (mbscasecmp): Assume mbrtowc function.
39453         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39454         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39455         * lib/mbschr.c: Include mbuiter.h unconditionally.
39456         (mbschr): Assume mbrtowc function.
39457         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39458         (mbscspn): Assume mbrtowc function.
39459         * lib/mbslen.c: Include mbuiter.h unconditionally.
39460         (mbslen): Assume mbrtowc function.
39461         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39462         (mbsncasecmp): Assume mbrtowc function.
39463         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39464         (mbsnlen): Assume mbrtowc function.
39465         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39466         (mbspbrk): Assume mbrtowc function.
39467         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39468         (mbspcasecmp): Assume mbrtowc function.
39469         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39470         (mbsrchr): Assume mbrtowc function.
39471         * lib/mbssep.c: Include mbuiter.h unconditionally.
39472         (mbssep): Assume mbrtowc function.
39473         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39474         (mbsspn): Assume mbrtowc function.
39475         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39476         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39477         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39478         (mbstok_r): Assume mbrtowc function.
39479         * lib/propername.c: Include mbuiter.h unconditionally.
39480         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39481         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39482         (trim2): Assume mbrtowc function.
39483         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39484         (mbsnwidth): Assume mbrtowc function.
39485         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39486         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39487         fallback definitions.
39488         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39489
39490 2008-12-22  Bruno Haible  <bruno@clisp.org>
39491
39492         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39493
39494 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39495
39496         * modules/regex: Request emulations for the mb*/wc* functions we need.
39497         * m4/regex.m4: Don't look for those functions here.
39498         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39499
39500 2008-12-22  Bruno Haible  <bruno@clisp.org>
39501
39502         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39503
39504 2008-12-21  Bruno Haible  <bruno@clisp.org>
39505
39506         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39507         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39508         (Include): Remove conditionalization.
39509         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39510         (Include): Remove conditionalization.
39511         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39512         (Include): Remove conditionalization.
39513         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39514         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39515         * NEWS: Mention the change.
39516         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39517         via Sergey Poznyakoff <gray@gnu.org.ua>.
39518
39519 2008-12-21  Bruno Haible  <bruno@clisp.org>
39520
39521         * MODULES.html.sh (Extended multibyte and wide character utilities
39522         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39523         wcrtomb, wcsrtombs.
39524         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39525         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39526         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39527         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39528
39529 2008-12-21  Bruno Haible  <bruno@clisp.org>
39530
39531         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39532
39533 2008-12-21  Bruno Haible  <bruno@clisp.org>
39534
39535         * modules/wcsnrtombs-tests: New file.
39536         * tests/test-wcsnrtombs1.sh: New file.
39537         * tests/test-wcsnrtombs2.sh: New file.
39538         * tests/test-wcsnrtombs3.sh: New file.
39539         * tests/test-wcsnrtombs4.sh: New file.
39540         * tests/test-wcsnrtombs.c: New file.
39541
39542         New module 'wcsnrtombs'.
39543         * lib/wchar.in.h (wcsnrtombs): New declaration.
39544         * lib/wcsnrtombs.c: New file.
39545         * lib/wcsrtombs-state.c: New file.
39546         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39547         (internal_state): Remove variable.
39548         * m4/wcsnrtombs.m4: New file.
39549         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39550         compilation units.
39551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39552         HAVE_WCSNRTOMBS.
39553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39554         HAVE_WCSNRTOMBS.
39555         * modules/wcsnrtombs: New file.
39556         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39557         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39558
39559 2008-12-21  Bruno Haible  <bruno@clisp.org>
39560
39561         * modules/wcsrtombs-tests: New file.
39562         * tests/test-wcsrtombs1.sh: New file.
39563         * tests/test-wcsrtombs2.sh: New file.
39564         * tests/test-wcsrtombs3.sh: New file.
39565         * tests/test-wcsrtombs4.sh: New file.
39566         * tests/test-wcsrtombs.c: New file.
39567
39568         New module 'wcsrtombs'.
39569         * lib/wchar.in.h (wcsrtombs): New declaration.
39570         * lib/wcsrtombs.c: New file.
39571         * m4/wcsrtombs.m4: New file.
39572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39573         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39575         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39576         * modules/wcsrtombs: New file.
39577         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39578         bugs.
39579
39580 2008-12-21  Bruno Haible  <bruno@clisp.org>
39581
39582         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39583         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39584         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39585         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39586         if not correct.
39587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39588         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39589         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39590         m4/locale-zh.m4, m4/codeset.m4.
39591         * doc/posix-functions/wcrtomb.texi: Document the bug.
39592
39593 2008-12-21  Bruno Haible  <bruno@clisp.org>
39594
39595         Work around a btowc() bug on IRIX 6.5.
39596         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39597         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39598         REPLACE_WTOBC if not.
39599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39600         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39601         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39602
39603 2008-12-21  Bruno Haible  <bruno@clisp.org>
39604
39605         * modules/wcrtomb-tests: New file.
39606         * tests/test-wcrtomb.sh: New file.
39607         * tests/test-wcrtomb.c: New file.
39608
39609         New module 'wcrtomb'.
39610         * lib/wchar.in.h (wcrtomb): New declaration.
39611         * lib/wcrtomb.c: New file.
39612         * m4/wcrtomb.m4: New file.
39613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39614         HAVE_WCRTOMB.
39615         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39616         HAVE_WCRTOMB.
39617         * modules/wcrtomb: New file.
39618         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39619
39620 2008-12-21  Bruno Haible  <bruno@clisp.org>
39621
39622         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39623         * modules/mbsrtowcs (Files): Likewise.
39624         * modules/wctob (Files): Likewise.
39625         * modules/c-strcase-tests (Files): Likewise.
39626         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39627         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39628         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39629         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39630         * modules/vasnprintf-posix-tests (Files): Likewise.
39631
39632 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39633
39634         gitlog-to-changelog: pass all command-line arguments to git-log
39635         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39636         it is sometimes convenient to filter the commits in various ways.
39637         gitlog-to-changelog only allows --since to specify a start date,
39638         but git-log itself supports many other filtering mechanisms.
39639         At the moment, I want to filter by branch name.  Rather than
39640         adding a --branch option to gitlog-to-changelog, it seems more
39641         flexible to simply pass all options directly to git-log and let
39642         git do the work.  Notice that this effectively makes --since a
39643         redundant option for gitlog-to-changelog, but removing it would
39644         require current usage to change since calls would then require
39645         an additional '--'.
39646
39647 2008-12-21  Bruno Haible  <bruno@clisp.org>
39648
39649         * modules/mbsnrtowcs-tests: New file.
39650         * tests/test-mbsnrtowcs1.sh: New file.
39651         * tests/test-mbsnrtowcs2.sh: New file.
39652         * tests/test-mbsnrtowcs3.sh: New file.
39653         * tests/test-mbsnrtowcs4.sh: New file.
39654         * tests/test-mbsnrtowcs.c: New file.
39655
39656         New module 'mbsnrtowcs'.
39657         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39658         * lib/mbsnrtowcs.c: New file.
39659         * lib/mbsrtowcs-state.c: New file.
39660         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39661         (internal_state): Remove variable.
39662         * m4/mbsnrtowcs.m4: New file.
39663         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39664         compilation units.
39665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39666         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39667         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39668         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39669         * modules/mbsnrtowcs: New file.
39670         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39671         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39672         portability problem.
39673
39674 2008-12-21  Bruno Haible  <bruno@clisp.org>
39675
39676         Work around mbsrtowcs bug.
39677         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39678         (gl_FUNC_MBSRTOWCS): Invoke it.
39679         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39680         m4/locale-zh.m4.
39681         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39682
39683 2008-12-21  Bruno Haible  <bruno@clisp.org>
39684
39685         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39686
39687 2008-12-21  Bruno Haible  <bruno@clisp.org>
39688
39689         Update doc for AIX.
39690         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39691         16-bit wchar_t type.
39692         * doc/posix-functions/btowc.texi: Likewise.
39693         * doc/posix-functions/fgetwc.texi: Likewise.
39694         * doc/posix-functions/fgetws.texi: Likewise.
39695         * doc/posix-functions/fputwc.texi: Likewise.
39696         * doc/posix-functions/fputws.texi: Likewise.
39697         * doc/posix-functions/fwide.texi: Likewise.
39698         * doc/posix-functions/fwprintf.texi: Likewise.
39699         * doc/posix-functions/fwscanf.texi: Likewise.
39700         * doc/posix-functions/getwchar.texi: Likewise.
39701         * doc/posix-functions/getwc.texi: Likewise.
39702         * doc/posix-functions/iswalnum.texi: Likewise.
39703         * doc/posix-functions/iswalpha.texi: Likewise.
39704         * doc/posix-functions/iswblank.texi: Likewise.
39705         * doc/posix-functions/iswcntrl.texi: Likewise.
39706         * doc/posix-functions/iswctype.texi: Likewise.
39707         * doc/posix-functions/iswdigit.texi: Likewise.
39708         * doc/posix-functions/iswgraph.texi: Likewise.
39709         * doc/posix-functions/iswlower.texi: Likewise.
39710         * doc/posix-functions/iswprint.texi: Likewise.
39711         * doc/posix-functions/iswpunct.texi: Likewise.
39712         * doc/posix-functions/iswspace.texi: Likewise.
39713         * doc/posix-functions/iswupper.texi: Likewise.
39714         * doc/posix-functions/iswxdigit.texi: Likewise.
39715         * doc/posix-functions/mbrtowc.texi: Likewise.
39716         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39717         * doc/posix-functions/mbstowcs.texi: Likewise.
39718         * doc/posix-functions/mbtowc.texi: Likewise.
39719         * doc/posix-functions/putwchar.texi: Likewise.
39720         * doc/posix-functions/putwc.texi: Likewise.
39721         * doc/posix-functions/swprintf.texi: Likewise.
39722         * doc/posix-functions/tolower.texi: Likewise.
39723         * doc/posix-functions/toupper.texi: Likewise.
39724         * doc/posix-functions/towctrans.texi: Likewise.
39725         * doc/posix-functions/ungetwc.texi: Likewise.
39726         * doc/posix-functions/vswprintf.texi: Likewise.
39727         * doc/posix-functions/wcrtomb.texi: Likewise.
39728         * doc/posix-functions/wcscat.texi: Likewise.
39729         * doc/posix-functions/wcschr.texi: Likewise.
39730         * doc/posix-functions/wcscmp.texi: Likewise.
39731         * doc/posix-functions/wcscoll.texi: Likewise.
39732         * doc/posix-functions/wcscpy.texi: Likewise.
39733         * doc/posix-functions/wcscspn.texi: Likewise.
39734         * doc/posix-functions/wcsftime.texi: Likewise.
39735         * doc/posix-functions/wcslen.texi: Likewise.
39736         * doc/posix-functions/wcsncat.texi: Likewise.
39737         * doc/posix-functions/wcsncmp.texi: Likewise.
39738         * doc/posix-functions/wcsncpy.texi: Likewise.
39739         * doc/posix-functions/wcspbrk.texi: Likewise.
39740         * doc/posix-functions/wcsrchr.texi: Likewise.
39741         * doc/posix-functions/wcsrtombs.texi: Likewise.
39742         * doc/posix-functions/wcsspn.texi: Likewise.
39743         * doc/posix-functions/wcsstr.texi: Likewise.
39744         * doc/posix-functions/wcstod.texi: Likewise.
39745         * doc/posix-functions/wcstof.texi: Likewise.
39746         * doc/posix-functions/wcstoimax.texi: Likewise.
39747         * doc/posix-functions/wcstok.texi: Likewise.
39748         * doc/posix-functions/wcstold.texi: Likewise.
39749         * doc/posix-functions/wcstoll.texi: Likewise.
39750         * doc/posix-functions/wcstol.texi: Likewise.
39751         * doc/posix-functions/wcstombs.texi: Likewise.
39752         * doc/posix-functions/wcstoull.texi: Likewise.
39753         * doc/posix-functions/wcstoul.texi: Likewise.
39754         * doc/posix-functions/wcstoumax.texi: Likewise.
39755         * doc/posix-functions/wcswidth.texi: Likewise.
39756         * doc/posix-functions/wcsxfrm.texi: Likewise.
39757         * doc/posix-functions/wctob.texi: Likewise.
39758         * doc/posix-functions/wctomb.texi: Likewise.
39759         * doc/posix-functions/wctrans.texi: Likewise.
39760         * doc/posix-functions/wctype.texi: Likewise.
39761         * doc/posix-functions/wcwidth.texi: Likewise.
39762         * doc/posix-functions/wmemchr.texi: Likewise.
39763         * doc/posix-functions/wmemcmp.texi: Likewise.
39764         * doc/posix-functions/wmemcpy.texi: Likewise.
39765         * doc/posix-functions/wmemmove.texi: Likewise.
39766         * doc/posix-functions/wmemset.texi: Likewise.
39767         * doc/posix-functions/wprintf.texi: Likewise.
39768         * doc/posix-functions/wscanf.texi: Likewise.
39769
39770 2008-12-21  Bruno Haible  <bruno@clisp.org>
39771
39772         Update doc for HP-UX 11.11.
39773         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39774         in HP-UX version 11.00, not in all versions of HP-UX 11.
39775         * doc/posix-functions/fwide.texi: Likewise.
39776         * doc/posix-functions/fwprintf.texi: Likewise.
39777         * doc/posix-functions/fwscanf.texi: Likewise.
39778         * doc/posix-functions/inet_ntop.texi: Likewise.
39779         * doc/posix-functions/inet_pton.texi: Likewise.
39780         * doc/posix-functions/mbrlen.texi: Likewise.
39781         * doc/posix-functions/mbrtowc.texi: Likewise.
39782         * doc/posix-functions/mbsinit.texi: Likewise.
39783         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39784         * doc/posix-functions/swprintf.texi: Likewise.
39785         * doc/posix-functions/swscanf.texi: Likewise.
39786         * doc/posix-functions/towctrans.texi: Likewise.
39787         * doc/posix-functions/vfwprintf.texi: Likewise.
39788         * doc/posix-functions/vswprintf.texi: Likewise.
39789         * doc/posix-functions/vwprintf.texi: Likewise.
39790         * doc/posix-functions/wcrtomb.texi: Likewise.
39791         * doc/posix-functions/wcsrtombs.texi: Likewise.
39792         * doc/posix-functions/wcsstr.texi: Likewise.
39793         * doc/posix-functions/wctob.texi: Likewise.
39794         * doc/posix-functions/wctrans.texi: Likewise.
39795         * doc/posix-functions/wmemchr.texi: Likewise.
39796         * doc/posix-functions/wmemcmp.texi: Likewise.
39797         * doc/posix-functions/wmemcpy.texi: Likewise.
39798         * doc/posix-functions/wmemmove.texi: Likewise.
39799         * doc/posix-functions/wmemset.texi: Likewise.
39800         * doc/posix-functions/wprintf.texi: Likewise.
39801         * doc/posix-functions/wscanf.texi: Likewise.
39802
39803 2008-12-21  Bruno Haible  <bruno@clisp.org>
39804
39805         Work around a portability problem.
39806         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39807         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39808
39809 2008-12-20  Bruno Haible  <bruno@clisp.org>
39810
39811         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39812         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39813         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39814         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39815         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39816
39817         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39818         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39819         set.
39820         (GNULIB_defined_mbstate_t): New macro.
39821         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39822         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39823         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39824         reuses the system's mbrtowc function but works around the bugs.
39825         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39826         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39827         macros.
39828         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39829         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39830         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39831         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39832         REPLACE_MBSINIT if mbsinit needs to be overridden.
39833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39834         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39835         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39836         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39837         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39838         m4/locale-zh.m4.
39839         (Depends): Add mbsinit.
39840         * modules/mbsinit (Depends): Add mbrtowc.
39841         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39842
39843 2008-12-20  Bruno Haible  <bruno@clisp.org>
39844
39845         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39846         so that there are no conversion errors on AIX.
39847         * tests/test-mbsrtowcs.c (main): LIkewise.
39848
39849 2008-12-20  Bruno Haible  <bruno@clisp.org>
39850
39851         Work around wctob bug on Solaris <= 9.
39852         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39853         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39855         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39856         * modules/wctob (Files): Add m4/locale-fr.m4.
39857         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39858
39859 2008-12-20  Bruno Haible  <bruno@clisp.org>
39860
39861         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39862         /dev/null.
39863         * tests/test-select-in.sh: Likewise.
39864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39865
39866 2008-12-20  Bruno Haible  <bruno@clisp.org>
39867
39868         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39869         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39870         Cygwin 1.5.x.
39871
39872 2008-12-20  Bruno Haible  <bruno@clisp.org>
39873
39874         Ensure mbstate_t is defined on HP-UX 11.11.
39875         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39876         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39877         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39878         AC_USE_SYSTEM_EXTENSIONS.
39879         * modules/fnmatch (Depends-on): Add extensions.
39880         * modules/mbrlen (Depends-on): Likewise.
39881         * modules/mbrtowc (Depends-on): Likewise.
39882         * modules/mbsinit (Depends-on): Likewise.
39883         * modules/mbsrtowcs (Depends-on): Likewise.
39884         * modules/mbswidth (Depends-on): Likewise.
39885         * modules/quotearg (Depends-on): Likewise.
39886         * modules/strftime (Depends-on): Likewise.
39887
39888 2008-12-20  Bruno Haible  <bruno@clisp.org>
39889
39890         Ensure wctob is declared on IRIX 6.5.
39891         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39892         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39893         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39895         of HAVE_WCTOB.
39896         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39897         HAVE_WCTOB.
39898         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39899
39900 2008-12-19  Bruno Haible  <bruno@clisp.org>
39901
39902         * modules/mbsrtowcs-tests: New file.
39903         * tests/test-mbsrtowcs1.sh: New file.
39904         * tests/test-mbsrtowcs2.sh: New file.
39905         * tests/test-mbsrtowcs3.sh: New file.
39906         * tests/test-mbsrtowcs4.sh: New file.
39907         * tests/test-mbsrtowcs.c: New file.
39908
39909         New module 'mbsrtowcs'.
39910         * lib/wchar.in.h (mbsrtowcs): New declaration.
39911         * lib/mbsrtowcs.c: New file.
39912         * m4/mbsrtowcs.m4: New file.
39913         * modules/mbsrtowcs: New file.
39914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39915         HAVE_MBSRTOWCS.
39916         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39917         HAVE_MBSRTOWCS.
39918         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39919
39920 2008-12-19  Bruno Haible  <bruno@clisp.org>
39921
39922         New module 'mbrlen'.
39923         * lib/wchar.in.h (mbrlen): New declaration.
39924         * lib/mbrlen.c: New file.
39925         * m4/mbrlen.m4: New file.
39926         * modules/mbrlen: New file.
39927         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39928         HAVE_MBRLEN.
39929         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39930         HAVE_MBRLEN.
39931         * doc/posix-functions/mbrlen.texi: Document the new module.
39932
39933 2008-12-19  Bruno Haible  <bruno@clisp.org>
39934
39935         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39936         * modules/mbrtowc (Depends-on): Add verify.
39937         Suggested by Paul Eggert.
39938
39939 2008-12-18  Bruno Haible  <bruno@clisp.org>
39940
39941         * modules/mbsinit-tests: New file.
39942         * tests/test-mbsinit.sh: New file.
39943         * tests/test-mbsinit.c: New file.
39944
39945 2008-12-18  Bruno Haible  <bruno@clisp.org>
39946
39947         * modules/mbrtowc-tests: New file.
39948         * tests/test-mbrtowc1.sh: New file.
39949         * tests/test-mbrtowc2.sh: New file.
39950         * tests/test-mbrtowc3.sh: New file.
39951         * tests/test-mbrtowc4.sh: New file.
39952         * tests/test-mbrtowc.c: New file.
39953
39954         New module 'mbrtowc'.
39955         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39956         mbsinit and mbrtowc.
39957         (mbrtowc): New declaration.
39958         * lib/mbrtowc.c: New file.
39959         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39960         * modules/mbrtowc: New file.
39961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39962         HAVE_MBRTOWC.
39963         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39964         HAVE_MBRTOWC.
39965         * doc/posix-functions/mbrtowc.texi: Document the new module.
39966
39967 2008-12-18  Bruno Haible  <bruno@clisp.org>
39968
39969         New module 'wctob'.
39970         * lib/wchar.in.h (wctob): New declaration.
39971         * lib/wctob.c: New file.
39972         * m4/wctob.m4: New file.
39973         * modules/wctob: New file.
39974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39975         HAVE_WCTOB.
39976         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39977         * doc/posix-functions/wctob.texi: Document the new module.
39978
39979 2008-12-18  Bruno Haible  <bruno@clisp.org>
39980
39981         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39982         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39983
39984 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39985
39986         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39987         G. Christensen" <tgc@jupiterrise.com>.
39988
39989         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39990         G. Christensen" <tgc@jupiterrise.com>.
39991
39992         * lib/flock.c: Need to include string.h.  Reported by "Tom
39993         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39994         <ebb9@byu.net>.
39995
39996 2008-12-18  Bruno Haible  <bruno@clisp.org>
39997
39998         * m4/locale-ja.m4: New file, from GNU gettext.
39999
40000 2008-12-17  Bruno Haible  <bruno@clisp.org>
40001
40002         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40003         Suggested by Eric Blake.
40004
40005 2008-12-17  Bruno Haible  <bruno@clisp.org>
40006
40007         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40008
40009 2008-12-17  Bruno Haible  <bruno@clisp.org>
40010
40011         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40012         * modules/mbsinit (Depends-on): Add verify.
40013         Suggested by Paul Eggert.
40014
40015 2008-12-17  Bruno Haible  <bruno@clisp.org>
40016
40017         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40018         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40019         gl_FUNC_MBRTOWC.
40020         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40021         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40022         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40023         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40024         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40025         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40026         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40027         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40028         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40029         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40030         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40031         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40032         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40033         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40034         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40035         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40036         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40037         * modules/trim (configure.ac): Likewise.
40038
40039 2008-12-17  Bruno Haible  <bruno@clisp.org>
40040
40041         * modules/btowc-tests: New file.
40042         * tests/test-btowc1.sh: New file.
40043         * tests/test-btowc2.sh: New file.
40044         * tests/test-btowc.c: New file.
40045
40046         New module 'btowc'.
40047         * lib/wchar.in.h (btowc): New declaration.
40048         * lib/btowc.c: New file.
40049         * m4/btowc.m4: New file.
40050         * modules/btowc: New file.
40051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40052         HAVE_BTOWC.
40053         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40054         * doc/posix-functions/btowc.texi: Document the new module.
40055
40056 2008-12-17  Bruno Haible  <bruno@clisp.org>
40057
40058         New module 'mbsinit'.
40059         * lib/wchar.in.h (mbsinit): New declaration.
40060         * lib/mbsinit.c: New file.
40061         * m4/mbsinit.m4: New file.
40062         * modules/mbsinit: New file.
40063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40064         HAVE_MBSINIT.
40065         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40066         HAVE_MBSINIT.
40067         * doc/posix-functions/mbsinit.texi: Document the new module.
40068
40069 2008-12-16  Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/unistd.in.h: Add comment.
40072         * tests/test-environ.c: Don't include <stdlib.h>.
40073
40074 2008-12-16  Bruno Haible  <bruno@clisp.org>
40075
40076         * lib/parse-duration.h (parse_duration): Document return value
40077         convention.
40078         * lib/parse-duration.c: Include specification header first. Add
40079         comments.
40080         (_): Remove macro.
40081         (parse_year_month_day, parse_hour_minute_second): Move side effects
40082         outside of strchr call.
40083         (parse_non_iso8601): Move side effects outside of isspace call.
40084         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40085         call.
40086
40087 2008-12-16  Bruno Haible  <bruno@clisp.org>
40088
40089         * tests/test-parse-duration.sh: Produce no output when the test
40090         succeeds.
40091
40092 2008-12-16  Bruno Haible  <bruno@clisp.org>
40093
40094         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40095         expressions.
40096
40097 2008-12-15  Bruno Haible  <bruno@clisp.org>
40098
40099         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40100         * doc/glibc-functions/flistxattr.texi: Likewise.
40101         * doc/glibc-functions/fopencookie.texi: Likewise.
40102         * doc/glibc-functions/fremovexattr.texi: Likewise.
40103         * doc/glibc-functions/fsetxattr.texi: Likewise.
40104         * doc/glibc-functions/getxattr.texi: Likewise.
40105         * doc/glibc-functions/lgetxattr.texi: Likewise.
40106         * doc/glibc-functions/listxattr.texi: Likewise.
40107         * doc/glibc-functions/llistxattr.texi: Likewise.
40108         * doc/glibc-functions/lremovexattr.texi: Likewise.
40109         * doc/glibc-functions/lsetxattr.texi: Likewise.
40110         * doc/glibc-functions/removexattr.texi: Likewise.
40111         * doc/glibc-functions/setxattr.texi: Likewise.
40112         * doc/posix-functions/open_memstream.texi: Likewise.
40113
40114 2008-12-15  Eric Blake  <ebb9@byu.net>
40115
40116         Update doc for cygwin 1.7.
40117         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40118         functions.
40119         * doc/posix-functions/fchmodat.texi: Likewise.
40120         * doc/posix-functions/fchownat.texi: Likewise.
40121         * doc/posix-functions/fdopendir.texi: Likewise.
40122         * doc/posix-functions/fmemopen.texi: Likewise.
40123         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40124         * doc/posix-functions/fstatat.texi: Likewise.
40125         * doc/posix-functions/futimens.texi: Likewise.
40126         * doc/posix-functions/gai_strerror.texi: Likewise.
40127         * doc/posix-functions/getaddrinfo.texi: Likewise.
40128         * doc/posix-functions/getnameinfo.texi: Likewise.
40129         * doc/posix-functions/if_freenameindex.texi: Likewise.
40130         * doc/posix-functions/if_indextoname.texi: Likewise.
40131         * doc/posix-functions/if_nameindex.texi: Likewise.
40132         * doc/posix-functions/if_nametoindex.texi: Likewise.
40133         * doc/posix-functions/insque.texi: Likewise.
40134         * doc/posix-functions/linkat.texi: Likewise.
40135         * doc/posix-functions/llrint.texi: Likewise.
40136         * doc/posix-functions/llrintf.texi: Likewise.
40137         * doc/posix-functions/llrintl.texi: Likewise.
40138         * doc/posix-functions/lockf.texi: Likewise.
40139         * doc/posix-functions/lrintl.texi: Likewise.
40140         * doc/posix-functions/mkdirat.texi: Likewise.
40141         * doc/posix-functions/mkfifoat.texi: Likewise.
40142         * doc/posix-functions/mknodat.texi: Likewise.
40143         * doc/posix-functions/mq_close.texi: Likewise.
40144         * doc/posix-functions/mq_getattr.texi: Likewise.
40145         * doc/posix-functions/mq_notify.texi: Likewise.
40146         * doc/posix-functions/mq_open.texi: Likewise.
40147         * doc/posix-functions/mq_receive.texi: Likewise.
40148         * doc/posix-functions/mq_send.texi: Likewise.
40149         * doc/posix-functions/mq_setattr.texi: Likewise.
40150         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40151         * doc/posix-functions/mq_timedsend.texi: Likewise.
40152         * doc/posix-functions/mq_unlink.texi: Likewise.
40153         * doc/posix-functions/open_memstream.texi: Likewise.
40154         * doc/posix-functions/openat.texi: Likewise.
40155         * doc/posix-functions/posix_fadvise.texi: Likewise.
40156         * doc/posix-functions/posix_fallocate.texi: Likewise.
40157         * doc/posix-functions/posix_madvise.texi: Likewise.
40158         * doc/posix-functions/posix_memalign.texi: Likewise.
40159         * doc/posix-functions/posix_openpt.texi: Likewise.
40160         * doc/posix-functions/readlinkat.texi: Likewise.
40161         * doc/posix-functions/remque.texi: Likewise.
40162         * doc/posix-functions/renameat.texi: Likewise.
40163         * doc/posix-functions/rintl.texi: Likewise.
40164         * doc/posix-functions/sem_unlink.texi: Likewise.
40165         * doc/posix-functions/shm_open.texi: Likewise.
40166         * doc/posix-functions/shm_unlink.texi: Likewise.
40167         * doc/posix-functions/signgam.texi: Likewise.
40168         * doc/posix-functions/sigset.texi: Likewise.
40169         * doc/posix-functions/stpcpy.texi: Likewise.
40170         * doc/posix-functions/stpncpy.texi: Likewise.
40171         * doc/posix-functions/strerror.texi: Likewise.
40172         * doc/posix-functions/strtod.texi: Likewise.
40173         * doc/posix-functions/symlinkat.texi: Likewise.
40174         * doc/posix-functions/unlinkat.texi: Likewise.
40175         * doc/posix-functions/utimensat.texi: Likewise.
40176         * doc/glibc-functions/bindresvport.texi: Likewise.
40177         * doc/glibc-functions/dn_expand.texi: Likewise.
40178         * doc/glibc-functions/exp10.texi: Likewise.
40179         * doc/glibc-functions/exp10f.texi: Likewise.
40180         * doc/glibc-functions/fgetxattr.texi: Likewise.
40181         * doc/glibc-functions/flistxattr.texi: Likewise.
40182         * doc/glibc-functions/fopencookie.texi: Likewise.
40183         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40184         * doc/glibc-functions/fremovexattr.texi: Likewise.
40185         * doc/glibc-functions/fsetxattr.texi: Likewise.
40186         * doc/glibc-functions/getifaddrs.texi: Likewise.
40187         * doc/glibc-functions/getxattr.texi: Likewise.
40188         * doc/glibc-functions/lgetxattr.texi: Likewise.
40189         * doc/glibc-functions/listxattr.texi: Likewise.
40190         * doc/glibc-functions/llistxattr.texi: Likewise.
40191         * doc/glibc-functions/lremovexattr.texi: Likewise.
40192         * doc/glibc-functions/lsetxattr.texi: Likewise.
40193         * doc/glibc-functions/pow10.texi: Likewise.
40194         * doc/glibc-functions/pow10f.texi: Likewise.
40195         * doc/glibc-functions/rcmd_af.texi: Likewise.
40196         * doc/glibc-functions/removexattr.texi: Likewise.
40197         * doc/glibc-functions/res_init.texi: Likewise.
40198         * doc/glibc-functions/res_mkquery.texi: Likewise.
40199         * doc/glibc-functions/res_query.texi: Likewise.
40200         * doc/glibc-functions/res_querydomain.texi: Likewise.
40201         * doc/glibc-functions/res_send.texi: Likewise.
40202         * doc/glibc-functions/rresvport_af.texi: Likewise.
40203         * doc/glibc-functions/setxattr.texi: Likewise.
40204         * doc/glibc-functions/strcasestr.texi: Likewise.
40205
40206 2008-12-15  Bruno Haible  <bruno@clisp.org>
40207
40208         Fix compilation error on OSF/1 4.0.
40209         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40210         <sys/time.h>, simply delegate to the system header.
40211         Reported by Daniel Richard G. <oss@teragram.com>.
40212
40213 2008-12-15  Bruno Haible  <bruno@clisp.org>
40214
40215         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40216         * doc/posix-functions/fchmodat.texi: Likewise.
40217         * doc/posix-functions/fchownat.texi: Likewise.
40218         * doc/posix-functions/fdopendir.texi: Likewise.
40219         * doc/posix-functions/fstatat.texi: Likewise.
40220         * doc/posix-functions/mkdirat.texi: Likewise.
40221         * doc/posix-functions/unlinkat.texi: Likewise.
40222
40223 2008-12-14  Bruno Haible  <bruno@clisp.org>
40224
40225         Update doc for POSIX:2008.
40226         * doc/posix-functions/faccessat.texi: New file.
40227         * doc/posix-functions/fchmodat.texi: New file.
40228         * doc/posix-functions/fchownat.texi: New file.
40229         * doc/posix-functions/fdopendir.texi: New file.
40230         * doc/posix-functions/fstatat.texi: New file.
40231         * doc/posix-functions/futimens.texi: New file.
40232         * doc/posix-functions/linkat.texi: New file.
40233         * doc/posix-functions/mkdirat.texi: New file.
40234         * doc/posix-functions/mkfifoat.texi: New file.
40235         * doc/posix-functions/mknodat.texi: New file.
40236         * doc/posix-functions/open_wmemstream.texi: New file.
40237         * doc/posix-functions/openat.texi: New file.
40238         * doc/posix-functions/psiginfo.texi: New file.
40239         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40240         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40241         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40242         * doc/posix-functions/readlinkat.texi: New file.
40243         * doc/posix-functions/renameat.texi: New file.
40244         * doc/posix-functions/strerror_l.texi: New file.
40245         * doc/posix-functions/symlinkat.texi: New file.
40246         * doc/posix-functions/unlinkat.texi: New file.
40247         * doc/posix-functions/utimensat.texi: New file.
40248         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40249
40250 2008-12-14  Bruno Haible  <bruno@clisp.org>
40251
40252         Update doc for POSIX:2008.
40253         * doc/posix-functions/alphasort.texi: Renamed from
40254         doc/glibc-functions/alphasort.texi.
40255         * doc/posix-functions/dirfd.texi: Renamed from
40256         doc/glibc-functions/dirfd.texi.
40257         * doc/posix-functions/dprintf.texi: Renamed from
40258         doc/glibc-functions/dprintf.texi.
40259         * doc/posix-functions/duplocale.texi: Renamed from
40260         doc/glibc-functions/duplocale.texi.
40261         * doc/posix-functions/fexecve.texi: Renamed from
40262         doc/glibc-functions/fexecve.texi.
40263         * doc/posix-functions/fmemopen.texi: Renamed from
40264         doc/glibc-functions/fmemopen.texi.
40265         * doc/posix-functions/freelocale.texi: Renamed from
40266         doc/glibc-functions/freelocale.texi.
40267         * doc/posix-functions/getdate_err.texi: Renamed from
40268         doc/glibc-functions/getdate_err.texi.
40269         * doc/posix-functions/isalnum_l.texi: Renamed from
40270         doc/glibc-functions/isalnum_l.texi.
40271         * doc/posix-functions/isalpha_l.texi: Renamed from
40272         doc/glibc-functions/isalpha_l.texi.
40273         * doc/posix-functions/isblank_l.texi: Renamed from
40274         doc/glibc-functions/isblank_l.texi.
40275         * doc/posix-functions/iscntrl_l.texi: Renamed from
40276         doc/glibc-functions/iscntrl_l.texi.
40277         * doc/posix-functions/isdigit_l.texi: Renamed from
40278         doc/glibc-functions/isdigit_l.texi.
40279         * doc/posix-functions/isgraph_l.texi: Renamed from
40280         doc/glibc-functions/isgraph_l.texi.
40281         * doc/posix-functions/islower_l.texi: Renamed from
40282         doc/glibc-functions/islower_l.texi.
40283         * doc/posix-functions/isprint_l.texi: Renamed from
40284         doc/glibc-functions/isprint_l.texi.
40285         * doc/posix-functions/ispunct_l.texi: Renamed from
40286         doc/glibc-functions/ispunct_l.texi.
40287         * doc/posix-functions/isspace_l.texi: Renamed from
40288         doc/glibc-functions/isspace_l.texi.
40289         * doc/posix-functions/isupper_l.texi: Renamed from
40290         doc/glibc-functions/isupper_l.texi.
40291         * doc/posix-functions/iswalnum_l.texi: Renamed from
40292         doc/glibc-functions/iswalnum_l.texi.
40293         * doc/posix-functions/iswalpha_l.texi: Renamed from
40294         doc/glibc-functions/iswalpha_l.texi.
40295         * doc/posix-functions/iswblank_l.texi: Renamed from
40296         doc/glibc-functions/iswblank_l.texi.
40297         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40298         doc/glibc-functions/iswcntrl_l.texi.
40299         * doc/posix-functions/iswctype_l.texi: Renamed from
40300         doc/glibc-functions/iswctype_l.texi.
40301         * doc/posix-functions/iswdigit_l.texi: Renamed from
40302         doc/glibc-functions/iswdigit_l.texi.
40303         * doc/posix-functions/iswgraph_l.texi: Renamed from
40304         doc/glibc-functions/iswgraph_l.texi.
40305         * doc/posix-functions/iswlower_l.texi: Renamed from
40306         doc/glibc-functions/iswlower_l.texi.
40307         * doc/posix-functions/iswprint_l.texi: Renamed from
40308         doc/glibc-functions/iswprint_l.texi.
40309         * doc/posix-functions/iswpunct_l.texi: Renamed from
40310         doc/glibc-functions/iswpunct_l.texi.
40311         * doc/posix-functions/iswspace_l.texi: Renamed from
40312         doc/glibc-functions/iswspace_l.texi.
40313         * doc/posix-functions/iswupper_l.texi: Renamed from
40314         doc/glibc-functions/iswupper_l.texi.
40315         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40316         doc/glibc-functions/iswxdigit_l.texi.
40317         * doc/posix-functions/isxdigit_l.texi: Renamed from
40318         doc/glibc-functions/isxdigit_l.texi.
40319         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40320         doc/glibc-functions/mbsnrtowcs.texi.
40321         * doc/posix-functions/mkdtemp.texi: Renamed from
40322         doc/glibc-functions/mkdtemp.texi.
40323         * doc/posix-functions/newlocale.texi: Renamed from
40324         doc/glibc-functions/newlocale.texi.
40325         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40326         doc/glibc-functions/nl_langinfo_l.texi.
40327         * doc/posix-functions/open_memstream.texi: Renamed from
40328         doc/glibc-functions/open_memstream.texi.
40329         * doc/posix-functions/opterr.texi: Renamed from
40330         doc/glibc-functions/opterr.texi.
40331         * doc/posix-functions/optind.texi: Renamed from
40332         doc/glibc-functions/optind.texi.
40333         * doc/posix-functions/optopt.texi: Renamed from
40334         doc/glibc-functions/optopt.texi.
40335         * doc/posix-functions/psignal.texi: Renamed from
40336         doc/glibc-functions/psignal.texi.
40337         * doc/posix-functions/scandir.texi: Renamed from
40338         doc/glibc-functions/scandir.texi.
40339         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40340         doc/glibc-functions/sched_get_priority_min.texi.
40341         * doc/posix-functions/signgam.texi: Renamed from
40342         doc/glibc-functions/signgam.texi.
40343         * doc/posix-functions/stpcpy.texi: Renamed from
40344         doc/glibc-functions/stpcpy.texi.
40345         * doc/posix-functions/stpncpy.texi: Renamed from
40346         doc/glibc-functions/stpncpy.texi.
40347         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40348         doc/glibc-functions/strcasecmp_l.texi.
40349         * doc/posix-functions/strcoll_l.texi: Renamed from
40350         doc/glibc-functions/strcoll_l.texi.
40351         * doc/posix-functions/strfmon_l.texi: Renamed from
40352         doc/glibc-functions/strfmon_l.texi.
40353         * doc/posix-functions/strftime_l.texi: Renamed from
40354         doc/glibc-functions/strftime_l.texi.
40355         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40356         doc/glibc-functions/strncasecmp_l.texi.
40357         * doc/posix-functions/strndup.texi: Renamed from
40358         doc/glibc-functions/strndup.texi.
40359         * doc/posix-functions/strnlen.texi: Renamed from
40360         doc/glibc-functions/strnlen.texi.
40361         * doc/posix-functions/strsignal.texi: Renamed from
40362         doc/glibc-functions/strsignal.texi.
40363         * doc/posix-functions/strxfrm_l.texi: Renamed from
40364         doc/glibc-functions/strxfrm_l.texi.
40365         * doc/posix-functions/timer_gettime.texi: Renamed from
40366         doc/glibc-functions/timer_gettime.texi.
40367         * doc/posix-functions/tolower_l.texi: Renamed from
40368         doc/glibc-functions/tolower_l.texi.
40369         * doc/posix-functions/toupper_l.texi: Renamed from
40370         doc/glibc-functions/toupper_l.texi.
40371         * doc/posix-functions/towctrans_l.texi: Renamed from
40372         doc/glibc-functions/towctrans_l.texi.
40373         * doc/posix-functions/towlower_l.texi: Renamed from
40374         doc/glibc-functions/towlower_l.texi.
40375         * doc/posix-functions/towupper_l.texi: Renamed from
40376         doc/glibc-functions/towupper_l.texi.
40377         * doc/posix-functions/uselocale.texi: Renamed from
40378         doc/glibc-functions/uselocale.texi.
40379         * doc/posix-functions/vdprintf.texi: Renamed from
40380         doc/glibc-functions/vdprintf.texi.
40381         * doc/posix-functions/wcpcpy.texi:
40382         Renamed from doc/glibc-functions/wcpcpy.texi.
40383         * doc/posix-functions/wcpncpy.texi: Renamed from
40384         doc/glibc-functions/wcpncpy.texi.
40385         * doc/posix-functions/wcscasecmp.texi: Renamed from
40386         doc/glibc-functions/wcscasecmp.texi.
40387         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40388         doc/glibc-functions/wcscasecmp_l.texi.
40389         * doc/posix-functions/wcscoll_l.texi: Renamed from
40390         doc/glibc-functions/wcscoll_l.texi.
40391         * doc/posix-functions/wcsdup.texi: Renamed from
40392         doc/glibc-functions/wcsdup.texi.
40393         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40394         doc/glibc-functions/wcsncasecmp.texi.
40395         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40396         doc/glibc-functions/wcsncasecmp_l.texi.
40397         * doc/posix-functions/wcsnlen.texi: Renamed from
40398         doc/glibc-functions/wcsnlen.texi.
40399         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40400         doc/glibc-functions/wcsnrtombs.texi.
40401         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40402         doc/glibc-functions/wcsxfrm_l.texi.
40403         * doc/posix-functions/wctrans_l.texi: Renamed from
40404         doc/glibc-functions/wctrans_l.texi.
40405         * doc/posix-functions/wctype_l.texi: Renamed from
40406         doc/glibc-functions/wctype_l.texi.
40407         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40408         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40409         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40410         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40411         these subsections.
40412         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40413         Remove sections.
40414
40415 2008-12-14  Bruno Haible  <bruno@clisp.org>
40416
40417         Update doc for POSIX:2008.
40418         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40419
40420 2008-12-14  Bruno Haible  <bruno@clisp.org>
40421
40422         Update doc for POSIX:2008.
40423         * doc/pastposix-functions/bcmp.texi: Renamed from
40424         doc/posix-functions/bcmp.texi.
40425         * doc/pastposix-functions/bcopy.texi: Renamed from
40426         doc/posix-functions/bcopy.texi.
40427         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40428         doc/posix-functions/bsd_signal.texi.
40429         * doc/pastposix-functions/bzero.texi: Renamed from
40430         doc/posix-functions/bzero.texi.
40431         * doc/pastposix-functions/ecvt.texi: Renamed from
40432         doc/posix-functions/ecvt.texi.
40433         * doc/pastposix-functions/fcvt.texi: Renamed from
40434         doc/posix-functions/fcvt.texi.
40435         * doc/pastposix-functions/ftime.texi: Renamed from
40436         doc/posix-functions/ftime.texi.
40437         * doc/pastposix-functions/gcvt.texi: Renamed from
40438         doc/posix-functions/gcvt.texi.
40439         * doc/pastposix-functions/getcontext.texi: Renamed from
40440         doc/posix-functions/getcontext.texi.
40441         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40442         doc/posix-functions/gethostbyaddr.texi.
40443         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40444         doc/posix-functions/gethostbyname.texi.
40445         * doc/pastposix-functions/getwd.texi: Renamed from
40446         doc/posix-functions/getwd.texi.
40447         * doc/pastposix-functions/h_errno.texi: Renamed from
40448         doc/posix-functions/h_errno.texi.
40449         * doc/pastposix-functions/index.texi: Renamed from
40450         doc/posix-functions/index.texi.
40451         * doc/pastposix-functions/makecontext.texi: Renamed from
40452         doc/posix-functions/makecontext.texi.
40453         * doc/pastposix-functions/mktemp.texi: Renamed from
40454         doc/posix-functions/mktemp.texi.
40455         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40456         doc/posix-functions/pthread_attr_getstackaddr.texi.
40457         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40458         doc/posix-functions/pthread_attr_setstackaddr.texi.
40459         * doc/pastposix-functions/rindex.texi: Renamed from
40460         doc/posix-functions/rindex.texi.
40461         * doc/pastposix-functions/scalb.texi: Renamed from
40462         doc/posix-functions/scalb.texi.
40463         * doc/pastposix-functions/setcontext.texi: Renamed from
40464         doc/posix-functions/setcontext.texi.
40465         * doc/pastposix-functions/swapcontext.texi: Renamed from
40466         doc/posix-functions/swapcontext.texi.
40467         * doc/pastposix-functions/ualarm.texi: Renamed from
40468         doc/posix-functions/ualarm.texi.
40469         * doc/pastposix-functions/usleep.texi: Renamed from
40470         doc/posix-functions/usleep.texi.
40471         * doc/pastposix-functions/vfork.texi: Renamed from
40472         doc/posix-functions/vfork.texi.
40473         * doc/pastposix-functions/wcswcs.texi: Renamed from
40474         doc/posix-functions/wcswcs.texi.
40475         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40476         (Function Substitutes): Update.
40477
40478 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40479
40480         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40481         m4/strerror.m4.
40482
40483 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40484             Bruno Haible  <bruno@clisp.org>
40485
40486         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40487
40488 2008-12-13  Bruno Haible  <bruno@clisp.org>
40489
40490         * modules/strtoull (Depends-on): Remove unistd.
40491
40492 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40493
40494         * modules/strtoull (Depends-on): Add stdlib.
40495
40496 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40497
40498         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40499
40500 2008-12-10  Jim Meyering  <meyering@redhat.com>
40501
40502         gl_ASSERT: don't say assertions are disabled when they're not
40503         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40504         "checking whether to enable assertions... no", when they are in
40505         fact enabled.  This is solely a bug in the output of configure.
40506         In spite of saying "no", NDEBUG was not defined in that case.
40507         Also, as noted by Eric Blake, leave assertions enabled upon
40508         --enable-assert=INVALID.
40509
40510 2008-12-10  Bruno Haible  <bruno@clisp.org>
40511
40512         Change MODULES.html to refer to POSIX:2008 where possible.
40513         * MODULES.html.sh (POSIX2008_URL): New variable.
40514         (posix_headers): Remove sys/timeb, ucontext.
40515         (posix2001_headers): New variable.
40516         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40517         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40518         index, makecontext, mktemp, pthread_attr_getstackaddr,
40519         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40520         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40521         (posix2001_functions): New variable.
40522         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40523         otherwise.
40524
40525 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40526
40527         add missing include to parse-duration.c
40528         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40529         * modules/parse-duration (Depends-on): Add xalloc.
40530
40531         fix sed script reading maint.mk
40532         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40533         (syntax-check-rules): Use it.
40534
40535 2008-12-09  Bruno Haible  <bruno@clisp.org>
40536
40537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40538         MacOS X 10.4/PowerPC.
40539         Reported by Simon Josefsson.
40540
40541 2008-12-08  Jim Meyering  <meyering@redhat.com>
40542
40543         work around mingw's lack of some S_IF definitions
40544         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40545         Reported by Simon Josefsson.
40546
40547 2008-12-08  Bruno Haible  <bruno@clisp.org>
40548
40549         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40550         applied to variables. Needed on MacOS X 10.4/PowerPC.
40551         Reported by Simon Josefsson.
40552
40553 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40554         and Eric Blake  <ebb9@byu.net>
40555
40556         assert: honor --enable-assert
40557         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40558         order to honor --enable-assert, rather than treating it as a
40559         synonym for --disable-assert.
40560
40561 2008-12-08  Jim Meyering  <meyering@redhat.com>
40562
40563         * lib/posixtm.c: Remove now-useless declaration of mktime.
40564
40565         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40566
40567 2008-12-07  Bruno Haible  <bruno@clisp.org>
40568
40569         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40570         test_once): Mark functions as static.
40571         * tests/test-tls.c (test_tls): Likewise.
40572
40573 2008-12-07  Bruno Haible  <bruno@clisp.org>
40574
40575         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40576         iconv_register_autodetect.
40577
40578 2008-12-07  Jim Meyering  <meyering@redhat.com>
40579
40580         posixtm.c: avoid a warning
40581         * lib/posixtm.c (posixtime): Don't initialize tm0.
40582         It's no longer needed to placate gcc4's -Wuninitialized,
40583         and the attempt to placate would elicit a new warning.
40584
40585         unicodeio.c: mark unused parameters
40586         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40587         (fallback_failure_callback): Likewise.
40588
40589 2008-12-07  Bruno Haible  <bruno@clisp.org>
40590
40591         * gnulib-tool (func_create_testdir): When building the tests
40592         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40593         Reported by Simon Josefsson.
40594
40595 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40596
40597         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40598
40599 2008-12-06  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40602         Suggested by Eric Blake.
40603
40604 2008-12-06  Bruno Haible  <bruno@clisp.org>
40605
40606         Fix a c-stack test failure on MacOS X.
40607         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40608         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40609         handler for SIGBUS as well.
40610         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40611         install a signal handler for SIGBUS as well.
40612         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40613
40614 2008-12-06  Bruno Haible  <bruno@clisp.org>
40615
40616         Advocacy documentation.
40617         * doc/gnulib-intro.texi (Benefits): New section.
40618         * doc/gnulib.texi: Update.
40619
40620 2008-12-06  Bruno Haible  <bruno@clisp.org>
40621
40622         Document the 'manywarnings' module.
40623         * doc/manywarnings.texi: New file.
40624         * doc/gnulib.texi: Include it.
40625
40626 2008-12-05  Eric Blake  <ebb9@byu.net>
40627
40628         tests: silence some gcc warnings
40629         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40630         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40631         type mismatches.
40632
40633 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40634             Bruno Haible  <bruno@clisp.org>
40635
40636         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40637
40638 2008-11-29  Jim Meyering  <meyering@redhat.com>
40639
40640         unicodeio.c: mark unused parameters
40641         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40642         (fallback_failure_callback): Likewise.
40643
40644         fts: fix a thinko
40645         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40646         (set_stat_type): Return S_IF*-valued "type" directly.
40647         Prompted by James Youngman's spotting a related bug.
40648         Confirmed by further testing through find.
40649
40650         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40651         * lib/fts.c (D_TYPE): Define.
40652         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40653         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40654         (s_ifmt_shift_bits): New function.
40655         (set_stat_type): New function.
40656         (fts_build): When not calling fts_stat, call set_stat_type
40657         to propagate dirent.d_type info to fts_read caller.
40658         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40659         fts_statp->st_mode type information may be valid.
40660
40661 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40662
40663         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40664         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40665         <sds@gnu.org>.
40666
40667 2008-11-20  Bruno Haible  <bruno@clisp.org>
40668
40669         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40670         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40671         INCLUDE_NEXT.
40672         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40673         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40674         * modules/math (Makefile.am): Substitute
40675         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40676         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40677
40678 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40679             Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/stdint.in.h: Define all type macros so that their expansion is
40682         a single typedef'ed token. Fixes a compilation failure in Boost which
40683         does "using ::int8_t;".
40684
40685 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40686
40687         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40688         gl_MANYWARN_ALL_GCC.
40689         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40690         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40691         * modules/manywarnings: New file.
40692         * MODULES.html.sh: Mention manywarnings module.
40693
40694 2008-11-18  Bruno Haible  <bruno@clisp.org>
40695
40696         * doc/gnulib-tool.texi (Unit tests): New section.
40697
40698 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40699
40700         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40701         paths like 'lib/po/foo.po'.
40702
40703 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40704
40705         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40706         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40707
40708 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40709
40710         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40711         parameter works.
40712
40713 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40714
40715         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40716
40717 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40718
40719         * modules/parse-duration-tests: New file.
40720         * tests/test-parse-duration.sh: New file.
40721         * tests/test-parse-duration.c: New file.
40722
40723         New module 'parse-duration'.
40724         * lib/parse-duration.h: New file.
40725         * lib/parse-duration.c: New file.
40726         * modules/parse-duration: New file.
40727
40728 2008-11-17  Bruno Haible  <bruno@clisp.org>
40729
40730         * tests/test-select-out.sh: Comment out the first pipe test.
40731         Reported by Simon Josefsson.
40732
40733 2008-11-17  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40737         gl_HOSTENT.
40738
40739 2008-11-17  Bruno Haible  <bruno@clisp.org>
40740
40741         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40742         -lnetwork and -lnet. Needed for Haiku and BeOS.
40743
40744 2008-11-16  Bruno Haible  <bruno@clisp.org>
40745
40746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40747
40748 2008-11-16  Bruno Haible  <bruno@clisp.org>
40749
40750         Avoid test failure on Haiku.
40751         * tests/test-fsync.c: Include <errno.h>.
40752         (main): Don't require that fsync (0) fails.
40753
40754 2008-11-15  Bruno Haible  <bruno@clisp.org>
40755
40756         New module 'hostent'.
40757         * modules/hostent: New file.
40758         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40759
40760 2008-11-15  Bruno Haible  <bruno@clisp.org>
40761
40762         New module 'servent'.
40763         * modules/servent: New file.
40764         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40765
40766 2008-11-15  Bruno Haible  <bruno@clisp.org>
40767
40768         Avoid generating same test program with two different rules.
40769         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40770         test-frexp to test-frexp-nolibm.
40771         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40772         test-frexpl to test-frexpl-nolibm.
40773
40774 2008-11-15  Bruno Haible  <bruno@clisp.org>
40775
40776         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40777         $(FREXPL_LIBM).
40778
40779 2008-11-15  Bruno Haible  <bruno@clisp.org>
40780
40781         * lib/netdb.in.h: Activate the definitions also when the system's
40782         <netdb.h> has 'struct addrinfo'.
40783         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40784         EAI_OVERFLOW or AI_NUMERICSERV.
40785         * doc/posix-headers/netdb.texi: Document the problem.
40786
40787 2008-11-15  Bruno Haible  <bruno@clisp.org>
40788
40789         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40790
40791         Make the 'sched' module work on platforms where <sched.h> exists but
40792         is incomplete (such as Haiku).
40793         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40794         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40795         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40796         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40797         HAVE_STRUCT_SCHED_PARAM.
40798         * modules/sched (Depends-on): Add include_next.
40799         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40800         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40801         * doc/posix-headers/sched.texi: Document the issue.
40802
40803 2008-11-13  Jim Meyering  <meyering@redhat.com>
40804
40805         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40806         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40807         test would fail due to the difference in the Report bugs to ...
40808         line.  The expected address is empty, "<>", while the actual
40809         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40810
40811 2008-11-12  Bruno Haible  <bruno@clisp.org>
40812
40813         lstat: don't compile lstat.c on systems lacking lstat
40814         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40815         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40816         Reported by Daniel P. Berrange via Jim Meyering.
40817
40818 2008-11-12  Jim Meyering  <meyering@redhat.com>
40819
40820         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40821
40822 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40823
40824         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40825         instead.
40826
40827 2008-11-12  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/unicodeio.c: Include unistr.h.
40830         (utf8_wctomb): Remove function.
40831         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40832
40833 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40834
40835         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40836         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40837         <bruno@clisp.org>.
40838         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40839
40840 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40841
40842         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40843         * doc/gnulib.texi: Add section for warnings.
40844
40845 2008-11-11  Bruno Haible  <bruno@clisp.org>
40846
40847         * lib/sockets.h: Add a comment.
40848
40849 2008-11-11  Karl Berry  <karl@gnu.org>
40850
40851         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40852
40853 2008-11-11  Eric Blake  <ebb9@byu.net>
40854
40855         fdl.texi: avoid git symlinks
40856         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40857
40858 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40859
40860         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40861
40862 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40863
40864         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40865         (gl_WARN_ADD): Substitute $2 if literal.
40866
40867 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40868
40869         * m4/warning.m4: Remove.
40870
40871 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40872
40873         * m4/warnings.m4: Almost complete rewrite. :-)
40874
40875 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40876
40877         * modules/warnings: New module.
40878         * m4/warnings.m4: New file.
40879         * MODULES.html.sh: Mention warnings module.
40880         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40881         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40882
40883 2008-11-10  Eric Blake  <ebb9@byu.net>
40884
40885         fdl.texi: make a symlink to the latest version
40886         * doc/standards.texi: Revert today's earlier change.
40887         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40888         * doc/fdl.texi: ...and replace this with a symlink to the newer
40889         fdl-1.3.texi.
40890
40891 2008-11-10  Bruno Haible  <bruno@clisp.org>
40892
40893         * tests/test-select-fd.c (main): Accept the result file name as fourth
40894         argument.
40895         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40896         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40897
40898 2008-11-10  Bruno Haible  <bruno@clisp.org>
40899
40900         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40901         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40902         as autoconf-substituted macros.
40903         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40904         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40905         gl_NETDB_H_DEFAULTS. Set these variables.
40906         * modules/netdb (Makefile.am): Substitute these variables.
40907
40908 2008-11-10  Eric Blake  <ebb9@byu.net>
40909
40910         standards.texi: include correct file for FDL 1.3
40911         * doc/standards.texi (GNU Free Documentation License): Change
40912         include file to pull in FDL 1.3, not 1.2.
40913
40914         fdl.texi: revert accidental change to license
40915         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40916
40917 2008-11-10  Bruno Haible  <bruno@clisp.org>
40918
40919         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40920         cross-compiling guesses also when the native compile gives no result.
40921
40922 2008-11-10  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/spawni.c (__spawni): Force variable into the stack.
40925
40926 2008-11-10  Bruno Haible  <bruno@clisp.org>
40927
40928         Add support for Haiku.
40929         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40930         glibc and BeOS, but also on Haiku.
40931         * lib/fpurge.c (fpurge): Likewise.
40932         * lib/freadable.c (freadable): Likewise.
40933         * lib/freadahead.c (freadahead): Likewise.
40934         * lib/freading.c (freading): Likewise.
40935         * lib/freadptr.c (freadptr): Likewise.
40936         * lib/freadseek.c (freadptrinc): Likewise.
40937         * lib/fseeko.c (rpl_fseeko): Likewise.
40938         * lib/fseterr.c (fseterr): Likewise.
40939         * lib/fwritable.c (fwritable): Likewise.
40940         * lib/fwriting.c (fwriting): Likewise.
40941         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40942
40943 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40944
40945         * lib/config.charset: Treat Haiku like BeOS.
40946
40947 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40948
40949         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40950         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40951
40952 2008-11-08  Bruno Haible  <bruno@clisp.org>
40953
40954         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40955         AC_CACHE_CHECK.
40956
40957 2008-11-08  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40960
40961 2008-11-08  Bruno Haible  <bruno@clisp.org>
40962
40963         * tests/test-select-fd.c: New file.
40964         * tests/test-select-in.sh: New file.
40965         * tests/test-select-out.sh: New file.
40966         * tests/test-select-stdin.c: New file.
40967         * modules/select-tests (Files): Add the new files.
40968         (Depends-on): Add gettimeofday.
40969         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40970         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40971         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40972
40973 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40974             Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40977
40978 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40979
40980         * build-aux/pmccabe2html: Added support for C++ source files.
40981
40982 2008-11-05  Ben Pfaff  <blp@gnu.org>
40983
40984         Fix lib/close.c build on Windows.
40985         * modules/close (Files): Add lib/w32sock.h.
40986
40987 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40988
40989         Accept Bison's NEWS format.
40990         * build-aux/announce-gen (print_news_deltas): Tweak
40991         $re_prefix.
40992
40993 2008-11-04  Bruno Haible  <bruno@clisp.org>
40994
40995         * modules/random_r (Maintainer): Add glibc.
40996
40997 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40998
40999         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41000         by karl@freefriends.org (Karl Berry).
41001         * doc/alloca.texi: Likewise.
41002         * doc/c-ctype.texi: Likewise.
41003         * doc/c-strcase.texi: Likewise.
41004         * doc/c-strcaseeq.texi: Likewise.
41005         * doc/c-strcasestr.texi: Likewise.
41006         * doc/c-strstr.texi: Likewise.
41007         * doc/c-strtod.texi: Likewise.
41008         * doc/c-strtold.texi: Likewise.
41009         * doc/ctime.texi: Likewise.
41010         * doc/error.texi: Likewise.
41011         * doc/fdl.texi: Likewise.
41012         * doc/gcd.texi: Likewise.
41013         * doc/getdate.texi: Likewise.
41014         * doc/gnulib-intro.texi: Likewise.
41015         * doc/gnulib-tool.texi: Likewise.
41016         * doc/gnulib.texi: Likewise.
41017         * doc/inet_ntoa.texi: Likewise.
41018         * doc/maintain.texi: Likewise.
41019         * doc/make-stds.texi: Likewise.
41020         * doc/quote.texi: Likewise.
41021         * doc/regexprops-generic.texi: Likewise.
41022         * doc/standards.texi: Likewise.
41023         * doc/verify.texi: Likewise.
41024         * doc/visibility.texi: Likewise.
41025         * doc/gnulib.texi (GNU Free Documentation License): Include
41026         fdl-1.3.texi instead of fdl.texi.
41027
41028 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41029
41030         * doc/fdl-1.3.texi: New file, from
41031         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41032         * modules/fdl-1.3: Add.
41033         * MODULES.html.sh: Add fdl-1.3.
41034
41035 2008-11-03  Bruno Haible  <bruno@clisp.org>
41036
41037         Make determination of absolute name of header file work with AIX xlc.
41038         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41039         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41040         preprocessing.
41041         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41042         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41043
41044 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41045
41046         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41047         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41048         <ludo@gnu.org>.
41049
41050 2008-11-02  Bruno Haible  <bruno@clisp.org>
41051
41052         Mark 'strpbrk' obsolete.
41053         * modules/strpbrk (Status, Notice): New sections.
41054         * modules/strtok_r (Depends-on): Add strpbrk.
41055
41056 2008-11-02  Bruno Haible  <bruno@clisp.org>
41057
41058         Mark 'strdup' obsolete.
41059         * modules/strdup (Status, Notice): New sections.
41060         * modules/findprog (Depends-on): Add strdup.
41061         * modules/getaddrinfo (Depends-on): Likewise.
41062         * modules/localename (Depends-on): Likewise.
41063         * modules/relocatable-lib (Depends-on): Likewise.
41064         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41065         * modules/relocatable-prog (Depends-on): Likewise.
41066         * modules/trim (Depends-on): Likewise.
41067         * modules/unictype/gen-ctype (Depends-on): Likewise.
41068         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41069
41070 2008-11-02  Bruno Haible  <bruno@clisp.org>
41071
41072         Mark 'strcspn' obsolete.
41073         * modules/strcspn (Status, Notice): New sections.
41074
41075 2008-11-02  Bruno Haible  <bruno@clisp.org>
41076
41077         Mark 'rmdir' obsolete.
41078         * modules/rmdir (Status, Notice): New sections.
41079         * modules/clean-temp (Depends-on): Add rmdir.
41080         * modules/openat (Depends-on): Likewise.
41081
41082 2008-11-02  Bruno Haible  <bruno@clisp.org>
41083
41084         Mark 'raise' obsolete.
41085         * modules/raise (Status, Notice): New sections.
41086         (Include): Specify <signal.h>.
41087         * modules/stdio (Depends-on): Add raise.
41088         * modules/write (Depends-on): Likewise.
41089
41090 2008-11-02  Bruno Haible  <bruno@clisp.org>
41091
41092         Mark 'memset' obsolete.
41093         * modules/memset (Status, Notice): New sections.
41094
41095 2008-11-02  Bruno Haible  <bruno@clisp.org>
41096
41097         Mark 'memmove' obsolete.
41098         * modules/memmove (Status, Notice): New sections.
41099         * modules/argp (Depends-on): Add memmove.
41100         * modules/argz (Depends-on): Likewise.
41101         * modules/canonicalize (Depends-on): Likewise.
41102         * modules/canonicalize-lgpl (Depends-on): Likewise.
41103         * modules/fts (Depends-on): Likewise.
41104         * modules/getcwd (Depends-on): Likewise.
41105         * modules/human (Depends-on): Likewise.
41106         * modules/regex (Depends-on): Likewise.
41107         * modules/striconveh (Depends-on): Likewise.
41108         * modules/trim (Depends-on): Likewise.
41109         * modules/unistr/u8-move (Depends-on): Likewise.
41110         * modules/unistr/u16-move (Depends-on): Likewise.
41111         * modules/unistr/u32-move (Depends-on): Likewise.
41112
41113 2008-11-02  Bruno Haible  <bruno@clisp.org>
41114
41115         Mark 'memcpy' obsolete.
41116         * modules/memcpy (Status, Notice): New sections.
41117
41118 2008-11-02  Bruno Haible  <bruno@clisp.org>
41119
41120         Mark 'memcmp' obsolete.
41121         * modules/memcmp (Status, Notice): New sections.
41122         * modules/argmatch (Depends-on): Add memchr.
41123         * modules/backupfile (Depends-on): Likewise.
41124         * modules/c-strcasestr (Depends-on): Likewise.
41125         * modules/crypto/des (Depends-on): Likewise.
41126         * modules/csharpcomp (Depends-on): Likewise.
41127         * modules/fnmatch (Depends-on): Likewise.
41128         * modules/git-merge-changelog (Depends-on): Likewise.
41129         * modules/isnand (Depends-on): Likewise.
41130         * modules/isnand-nolibm (Depends-on): Likewise.
41131         * modules/isnanf (Depends-on): Likewise.
41132         * modules/isnanf-nolibm (Depends-on): Likewise.
41133         * modules/isnanl (Depends-on): Likewise.
41134         * modules/isnanl-nolibm (Depends-on): Likewise.
41135         * modules/mbchar (Depends-on): Likewise.
41136         * modules/memcoll (Depends-on): Likewise.
41137         * modules/quotearg (Depends-on): Likewise.
41138         * modules/regex (Depends-on): Likewise.
41139         * modules/relocatable-prog (Depends-on): Likewise.
41140         * modules/same (Depends-on): Likewise.
41141         * modules/signbit (Depends-on): Likewise.
41142         * modules/strcasestr-simple (Depends-on): Likewise.
41143         * modules/unictype/gen-ctype (Depends-on): Likewise.
41144         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41145         * modules/uniname/uniname (Depends-on): Likewise.
41146         * modules/unistr/u8-cmp (Depends-on): Likewise.
41147
41148 2008-11-02  Bruno Haible  <bruno@clisp.org>
41149
41150         Mark 'memchr' obsolete.
41151         * modules/memchr (Status, Notice): New sections.
41152         * modules/argp (Depends-on): Add memchr.
41153         * modules/base64 (Depends-on): Likewise.
41154         * modules/c-strcasestr (Depends-on): Likewise.
41155         * modules/chdir-long (Depends-on): Likewise.
41156         * modules/fnmatch (Depends-on): Likewise.
41157         * modules/getsubopt (Depends-on): Likewise.
41158         * modules/git-merge-changelog (Depends-on): Likewise.
41159         * modules/glob (Depends-on): Likewise.
41160         * modules/strcasestr-simple (Depends-on): Likewise.
41161         * modules/strnlen (Depends-on): Likewise.
41162
41163 2008-11-02  Bruno Haible  <bruno@clisp.org>
41164
41165         Mark 'atexit' obsolete.
41166         * modules/atexit (Status, Notice): New sections.
41167         * modules/chdir-long (Depends-on): Add atexit.
41168         * modules/wait-process (Depends-on): Likewise.
41169
41170 2008-11-02  Bruno Haible  <bruno@clisp.org>
41171
41172         * gnulib-tool: New option --with-obsolete.
41173         (func_usage): Document it.
41174         (func_modules_transitive_closure): Drop obsolete dependencies if
41175         incobsolete is not true.
41176         (func_import): Read and save the incobsolete variable to the cache.
41177
41178 2008-11-02  Bruno Haible  <bruno@clisp.org>
41179
41180         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41181         * gnulib-tool: New option --extract-status.
41182         (func_usage): Document it.
41183         (sed_extract_prog): Recognize it.
41184         (func_get_status): New function.
41185
41186 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41187
41188         * modules/sockets (License): Change from LGPL to LGPLv2+.
41189
41190 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41191
41192         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41193
41194 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41195
41196         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41197         Mention times and sys_times.
41198         * modules/sys_times, modules/sys_times-tests: New modules.
41199         * modules/times, modules/times-tests: Likewise
41200         * m4/sys_times_h.m4: New file.
41201         * lib/sys_times.in.h: Likewise
41202         * lib/times.c: Likewise.
41203         * tests/test-sys_times.c: Likewise.
41204         * tests/test-times.c: Likewise.
41205         * doc/posix-headers/sys_times.texi: Update.
41206         * doc/posix-functions/times.texi: Update.
41207
41208 2008-10-28  Jim Meyering  <meyering@redhat.com>
41209
41210         * modules/tempname (Depends-on): Add lstat.
41211
41212         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41213
41214 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41215
41216         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41217         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41218         using idiom used elsewhere in gnulib.
41219
41220 2008-10-27  Jim Meyering  <meyering@redhat.com>
41221
41222         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41223
41224 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41225
41226         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41227         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41228         programs.
41229         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41230
41231 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41232
41233         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41234
41235 2008-10-27  Bruno Haible  <bruno@clisp.org>
41236
41237         * tests/test-lstat.c: Include <stdio.h>.
41238
41239 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41240
41241         * modules/lstat-tests: New module.
41242         * tests/test-lstat.c: New file.
41243
41244 2008-10-26  Jim Meyering  <meyering@redhat.com>
41245
41246         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41247
41248 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41249             Bruno Haible  <bruno@clisp.org>
41250
41251         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41252         * modules/configmake (Include): Add a note that the include must come
41253         after all system headers.
41254         * lib/javaversion.c: Include configmake.h after all other includes.
41255
41256 2008-10-26  Bruno Haible  <bruno@clisp.org>
41257
41258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41259         HAVE_STRUCT_RANDOM_DATA to 1.
41260         (gl_STDLIB_H): Simplify.
41261
41262 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41263
41264         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41265         substitute HAVE_STRUCT_RANDOM_DATA.
41266         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41267         random_data.
41268         * modules/stdlib (Makefile.am): Substitute
41269         HAVE_STRUCT_RANDOM_DATA.
41270
41271 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41272
41273         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41274         * doc/gnulib-intro.texi (Copyright): Likewise.
41275
41276 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41277
41278         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41279         findings.
41280
41281 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41282             Bruno Haible  <bruno@clisp.org>
41283
41284         * lib/unistd.in.h: Include <winsock2.h>.
41285         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41286         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41287         Provide dummy declarations.
41288         (gethostname): Override.
41289         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41290         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41291         gl_PREREQ_SYS_H_WINSOCK2.
41292         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41293         * doc/posix-functions/gethostname.texi: More details.
41294
41295 2008-10-25  Bruno Haible  <bruno@clisp.org>
41296
41297         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41298         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41299         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41300
41301         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41302         here ...
41303         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41304         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41305         gl_UNISTD_H_DEFAULTS.
41306
41307 2008-10-25  Eric Blake  <ebb9@byu.net>
41308
41309         signbit: avoid spurious compiler failure
41310         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41311         declarations inside function.
41312
41313 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41314             Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41317         * modules/random_r (Depends-on): Add stdint.
41318
41319 2008-10-24  Bruno Haible  <bruno@clisp.org>
41320
41321         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41322         Eggert.
41323         * modules/strerror (License): Likewise.
41324
41325 2008-10-24  Jim Meyering  <meyering@redhat.com>
41326
41327         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41328         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41329
41330 2008-10-24  Eric Blake  <ebb9@byu.net>
41331
41332         getgroups: fix compilation when getgroups is available
41333         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41334         but with <config.h> override of getgroups disabled.
41335
41336 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41337
41338         * doc/gnulib.texi (Header files): Add note about C++ problems.
41339         Explained by Bruno Haible <bruno@clisp.org>.
41340
41341 2008-10-23  Bruno Haible  <bruno@clisp.org>
41342
41343         Define a dummy SA_NODEFER macro on Interix.
41344         * lib/signal.in.h (SA_NODEFER): Define fallback.
41345         Reported by Aleksey Cheusov <cheusov@tut.by> via
41346         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41347
41348 2008-10-23  Bruno Haible  <bruno@clisp.org>
41349
41350         * modules/freadahead (License): Change to LGPLv2+.
41351         Suggested by Simon Josefsson.
41352
41353 2008-10-23  Jim Meyering  <meyering@redhat.com>
41354
41355         random_r: new module
41356         * modules/random_r: New file.
41357         * m4/random_r.m4: New file.
41358         * lib/random_r.c: New file, from glibc.
41359         * modules/random_r-tests: New file.
41360         * tests/test-random_r.c: New file.
41361         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41362          Declare.
41363         (RAND_MAX): Define.
41364         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41365         * modules/stdlib: Substitute them, too.
41366         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41367         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41368         * doc/glibc-functions/random_r.texi: Likewise.
41369         * doc/glibc-functions/setstate_r.texi: Likewise.
41370         * doc/glibc-functions/srandom_r.texi: Likewise.
41371         * config/srclist.txt: Mention it.
41372
41373 2008-10-23  David Lutterkort  <lutter@redhat.com>
41374
41375         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41376         link requirement
41377
41378 2008-10-23  Jim Meyering  <meyering@redhat.com>
41379
41380         selinux-h: mark parameters of stub functions as intentionally unused
41381         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41382         * lib/se-context.in.h: Likewise.
41383
41384 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41385
41386         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41387
41388 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41389
41390         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41391
41392 2008-10-22  Eric Blake  <ebb9@byu.net>
41393
41394         glthread/thread: avoid compiler warning
41395         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41396         Add unreachable abort to silence compiler.
41397
41398 2008-10-22  Eric Blake  <ebb9@byu.net>
41399
41400         netdb: also supply struct addrinfo for cygwin 1.5.x
41401         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41402         older cygwin.
41403         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41404         cygwin.
41405         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41406
41407 2008-10-22  Bruno Haible  <bruno@clisp.org>
41408
41409         * users.txt: Update entry about pspp.
41410
41411 2008-10-21  Bruno Haible  <bruno@clisp.org>
41412
41413         Simplification.
41414         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41415         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41416
41417         Simplification.
41418         * lib/ioctl.c (ioctl): Don't undefine.
41419         * lib/socket.c (socket): Don't undefine.
41420
41421         Remove unused module indicator macros.
41422         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41423         GNULIB_$1 as a C macro.
41424
41425         * doc/posix-functions/close.texi: Undo last change.
41426         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41427         Windows platforms.
41428
41429 2008-10-21  Bruno Haible  <bruno@clisp.org>
41430
41431         Add gethostname() declaration to <unistd.h>.
41432         * lib/unistd.in.h (gethostname): New declaration.
41433         * lib/gethostname.c: Include <unistd.h>.
41434         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41435         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41437         and HAVE_GETHOSTNAME.
41438         * modules/gethostname (Depends-on): Add unistd.
41439         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41440         (Include): Specify <unistd.h>.
41441         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41442         HAVE_GETHOSTNAME.
41443         * tests/test-gethostname.c: Include <unistd.h> first.
41444
41445 2008-10-21  Bruno Haible  <bruno@clisp.org>
41446
41447         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41448         * modules/select-tests (Depends-on): Likewise.
41449         Reported by Simon Josefsson.
41450
41451 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41452
41453         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41454         * lib/accept.c: New file, based on winsock.c.
41455         * lib/bind.c: New file, based on winsock.c.
41456         * lib/connect.c: New file, based on winsock.c.
41457         * lib/getpeername.c: New file, based on winsock.c.
41458         * lib/getsockname.c: New file, based on winsock.c.
41459         * lib/getsockopt.c: New file, based on winsock.c.
41460         * lib/ioctl.c: New file, based on winsock.c.
41461         * lib/listen.c: New file, based on winsock.c.
41462         * lib/recv.c: New file, based on winsock.c.
41463         * lib/recvfrom.c: New file, based on winsock.c.
41464         * lib/send.c: New file, based on winsock.c.
41465         * lib/sendto.c: New file, based on winsock.c.
41466         * lib/setsockopt.c: New file, based on winsock.c.
41467         * lib/shutdown.c: New file, based on winsock.c.
41468         * lib/socket.c: New file, based on winsock.c.
41469         * lib/w32sock.h: New file, based on winsock.c.
41470         * lib/winsock.c: Remove file.
41471         * modules/accept: Likewise.
41472         * modules/bind: Likewise.
41473         * modules/connect: Likewise.
41474         * modules/getpeername: Likewise.
41475         * modules/getsockname: Likewise.
41476         * modules/getsockopt: Likewise.
41477         * modules/ioctl: Likewise.
41478         * modules/listen: Likewise.
41479         * modules/recv: Likewise.
41480         * modules/recvfrom: Likewise.
41481         * modules/send: Likewise.
41482         * modules/sendto: Likewise.
41483         * modules/setsockopt: Likewise.
41484         * modules/shutdown: Likewise.
41485         * modules/socket: Use socket.c instead of winsock.c.
41486         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41487         * doc/posix-functions/accept.texi: Doc fix.
41488         * doc/posix-functions/bind.texi: Doc fix.
41489         * doc/posix-functions/close.texi: Doc fix.
41490         * doc/posix-functions/connect.texi: Doc fix.
41491         * doc/posix-functions/getpeername.texi: Doc fix.
41492         * doc/posix-functions/getsockname.texi: Doc fix.
41493         * doc/posix-functions/getsockopt.texi: Doc fix.
41494         * doc/posix-functions/ioctl.texi: Doc fix.
41495         * doc/posix-functions/listen.texi: Doc fix.
41496         * doc/posix-functions/recv.texi: Doc fix.
41497         * doc/posix-functions/recvfrom.texi: Doc fix.
41498         * doc/posix-functions/send.texi: Doc fix.
41499         * doc/posix-functions/sendto.texi: Doc fix.
41500         * doc/posix-functions/setsockopt.texi: Doc fix.
41501         * doc/posix-functions/shutdown.texi: Doc fix.
41502         * doc/posix-functions/socket.texi: Doc fix.
41503
41504 2008-10-20  Bruno Haible  <bruno@clisp.org>
41505
41506         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41507         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41508         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41509         as an alias for SIGABRT.
41510         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41511         (sigaction): Map it to SIGABRT.
41512         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41513
41514 2008-10-20  Bruno Haible  <bruno@clisp.org>
41515
41516         * lib/fts.c: Don't include lstat.h.
41517         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41518
41519         Move the lstat() declaration to <sys/stat.h>.
41520         * lib/lstat.h: Remove file.
41521         * lib/sys_stat.in.h: Add special invocation convention.
41522         (lstat): New declaration.
41523         * lib/lstat.c (orig_lstat): New function.
41524         (rpl_lstat): Use orig_lstat instead of lstat.
41525         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41526         AC_C_INLINE. Set REPLACE_LSTAT.
41527         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41528         and REPLACE_LSTAT.
41529         * modules/lstat (Files): Remove lib/lstat.h.
41530         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41531         (Include): Specify <sys/stat.h> instead of lstat.h.
41532         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41533         REPLACE_LSTAT.
41534         * NEWS: Mention the change.
41535
41536 2008-10-20  Bruno Haible  <bruno@clisp.org>
41537
41538         * modules/posix_spawn-tests: New file.
41539         * tests/test-posix_spawn3.c: New file.
41540
41541 2008-10-20  Bruno Haible  <bruno@clisp.org>
41542
41543         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41544         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41545         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41546         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41547         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41548
41549 2008-10-20  Bruno Haible  <bruno@clisp.org>
41550
41551         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41552         of posix_spawn on AIX 5.3.
41553
41554 2008-10-20  Bruno Haible  <bruno@clisp.org>
41555
41556         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41557
41558 2008-10-20  Bruno Haible  <bruno@clisp.org>
41559
41560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41561         of AC_LANG_PROGRAM.
41562
41563 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41564
41565         * lib/netdb.in.h: Don't define GNU specific constants until they
41566         are supported or needed.  Reported by Bruno Haible
41567         <bruno@clisp.org>.
41568
41569 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41570
41571         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41572
41573 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41574
41575         * lib/getaddrinfo.h: Remove file.
41576         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41577         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41578         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41579         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41580         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41581         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41582         * tests/test-getaddrinfo.c: Likewise.
41583         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41584         * NEWS: Mention change.
41585
41586 2008-10-19  Bruno Haible  <bruno@clisp.org>
41587
41588         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41589
41590 2008-10-19  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/wait-process.c: Include simply <sys/wait.h>.
41593         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41594         WIFSTOPPED): Remove fallback definitions.
41595         * modules/wait-process (Depends-on): Add sys_wait.
41596
41597         New module 'sys_wait'.
41598         * modules/sys_wait: New file.
41599         * lib/sys_wait.in.h: New file, partially copied from
41600         lib/wait-process.c.
41601         * m4/sys_wait_h.m4: New file.
41602         * doc/posix-headers/sys_wait.texi: Mention the new module.
41603
41604 2008-10-19  Bruno Haible  <bruno@clisp.org>
41605
41606         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41607
41608 2008-10-19  Bruno Haible  <bruno@clisp.org>
41609
41610         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41611         * lib/wait-process.c (WAIT_T): Remove type.
41612         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41613         (wait_subprocess): Update.
41614
41615 2008-10-19  Bruno Haible  <bruno@clisp.org>
41616
41617         New module 'atoll'.
41618         * modules/atoll: New file.
41619         * lib/stdlib.in.h (atoll): New declaration.
41620         * lib/atoll.c: New file, from glibc with modifications.
41621         * m4/atoll.m4: New file.
41622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41623         HAVE_ATOLL.
41624         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41625         * doc/posix-functions/atoll.texi: Mention the new module.
41626
41627 2008-10-19  Bruno Haible  <bruno@clisp.org>
41628
41629         Add strtoull() declaration to <stdlib.h>.
41630         * lib/stdlib.in.h (strtoull): New declaration.
41631         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41632         Set HAVE_STRTOULL.
41633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41634         HAVE_STRTOULL.
41635         * modules/strtoull (Depends-on): Add stdlib.
41636         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41637         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41638         HAVE_STRTOULL.
41639
41640 2008-10-19  Bruno Haible  <bruno@clisp.org>
41641
41642         Add strtoll() declaration to <stdlib.h>.
41643         * lib/stdlib.in.h (strtoll): New declaration.
41644         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41645         Set HAVE_STRTOLL.
41646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41647         HAVE_STRTOLL.
41648         * modules/strtoll (Depends-on): Add stdlib.
41649         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41650         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41651
41652 2008-10-19  Bruno Haible  <bruno@clisp.org>
41653
41654         * modules/bcopy (Depends-on): Add strings.
41655         (Include): Specify <strings.h>.
41656
41657 2008-10-19  Bruno Haible  <bruno@clisp.org>
41658
41659         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41660
41661 2008-10-19  Bruno Haible  <bruno@clisp.org>
41662
41663         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41664         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41665         mingw.
41666
41667 2008-10-19  Bruno Haible  <bruno@clisp.org>
41668
41669         * lib/atanl.c: Don't include isnanl.h.
41670         * lib/cosl.c: Likewise.
41671         * lib/ldexpl.c: Likewise.
41672         * lib/logl.c: Likewise.
41673         * lib/sinl.c: Likewise.
41674         * lib/sqrtl.c: Likewise.
41675         * lib/tanl.c: Likewise.
41676
41677         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41678         * lib/isnanf.h: Remove file.
41679         * lib/isnand.h: Remove file.
41680         * lib/isnanl.h: Remove file.
41681         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41682         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41683         macros.
41684         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41685         HAVE_ISNANF, don't define it as a C macro.
41686         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41687         HAVE_ISNAND, don't define it as a C macro.
41688         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41689         HAVE_ISNANL, don't define it as a C macro.
41690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41691         HAVE_ISNAN[FDL].
41692         * modules/isnanf (Files): Remove lib/isnanf.h.
41693         (Depends-on): Add math.
41694         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41695         (Include): Specify <math.h> instead of isnanf.h.
41696         * modules/isnand (Files): Remove lib/isnand.h.
41697         (Depends-on): Add math.
41698         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41699         (Include): Specify <math.h> instead of isnand.h.
41700         * modules/isnanl (Files): Remove lib/isnanl.h.
41701         (Depends-on): Add math.
41702         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41703         (Include): Specify <math.h> instead of isnanl.h.
41704         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41705         HAVE_ISNAN[FDL].
41706         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41707         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41708         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41709         * NEWS: Mention the change.
41710
41711 2008-10-18  Bruno Haible  <bruno@clisp.org>
41712
41713         Add getusershell(), setusershell(), endusershell() declarations to
41714         <unistd.h>.
41715         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41716         declarations.
41717         * lib/getusershell.c: Include unistd.h.
41718         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41719         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41720         HAVE_GETUSERSHELL.
41721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41722         and HAVE_GETUSERSHELL.
41723         * modules/getusershell (Depends-on): Add unistd, extensions.
41724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41725         (Include): Specify <unistd.h>.
41726         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41727         HAVE_GETUSERSHELL.
41728
41729 2008-10-18  Bruno Haible  <bruno@clisp.org>
41730
41731         Add a getloadavg() declaration to <stdlib.h>.
41732         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41733         getloadavg declaration.
41734         (getloadavg): New declaration.
41735         * lib/getloadavg.c: Include <stdlib.h> first.
41736         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41737         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41738         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41740         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41741         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41742         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41743         (Include): Specify <stdlib.h>.
41744         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41745         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41746
41747 2008-10-18  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/dirchownmod.c: Don't include lchmod.h.
41750
41751         Move the lchmod() declaration to <sys/stat.h>.
41752         * lib/lchmod.h: Remove file.
41753         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41754         (lchmod): New declaration, moved here from lib/lchown.h.
41755         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41756         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41757         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41758         and HAVE_LCHMOD.
41759         * modules/lchmod (Files): Remove lib/lchmod.h.
41760         (Depends-on): Add sys_stat, extensions.
41761         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41762         (Include): Specify <sys/stat.h> instead of lchmod.h.
41763         * modules/sys_stat (Depends-on): Add link-warning.
41764         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41765         definition of GL_LINK_WARNING.
41766         * NEWS: Mention the change.
41767
41768 2008-10-18  Bruno Haible  <bruno@clisp.org>
41769
41770         * lib/fchdir.c: Don't include dirfd.h.
41771         * lib/fts.c: Likewise.
41772         * lib/getcwd.c: Likewise.
41773         * lib/glob.c: Likewise.
41774
41775         Move the dirfd() declaration to <dirent.h>.
41776         * lib/dirfd.h: Remove file.
41777         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41778         (dirfd): New declaration.
41779         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41780         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41781         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41782         HAVE_DECL_DIRFD.
41783         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41784         HAVE_DECL_DIRFD.
41785         * modules/dirfd (Files): Remove lib/dirfd.h.
41786         (Depends-on): Add dirent, extensions.
41787         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41788         (Include): Specify <dirent.h> instead of dirfd.h.
41789         * modules/dirent (Depends-on): Add link-warning.
41790         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41791         definition of GL_LINK_WARNING.
41792         * NEWS: Mention the change.
41793
41794 2008-10-18  Bruno Haible  <bruno@clisp.org>
41795
41796         Move the euidaccess() declaration to <unistd.h>.
41797         * lib/euidaccess.h: Remove file.
41798         * lib/unistd.in.h (euidaccess): New declaration.
41799         * lib/euidaccess.c: Don't include euidaccess.h.
41800         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41801         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41803         and HAVE_EUIDACCESS.
41804         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41805         (Depends-on): Add unistd.
41806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41807         (Include): Specify <unistd.h> instead of euidaccess.h.
41808         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41809         HAVE_EUIDACCESS.
41810         * NEWS: Mention the change.
41811
41812 2008-10-18  Bruno Haible  <bruno@clisp.org>
41813
41814         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41815
41816         Move the getdomainname() declaration to <unistd.h>.
41817         * lib/getdomainname.h: Remove file.
41818         * lib/unistd.in.h (getdomainname): New declaration.
41819         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41820         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41821         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41822         HAVE_GETDOMAINNAME.
41823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41824         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41825         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41826         (Depends-on): Add unistd, extensions.
41827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41828         (Includes): Specify <unistd.h> instead of getdomainname.h.
41829         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41830         HAVE_GETDOMAINNAME.
41831         * NEWS: Mention the change.
41832
41833 2008-10-18  Bruno Haible  <bruno@clisp.org>
41834
41835         * modules/dirent: New file.
41836         * m4/dirent_h.m4: New file.
41837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41838         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41839         * modules/fchdir (Files): Remove lib/dirent.in.h.
41840         (Depends-on): Add dirent.
41841         (Makefile.am): Move rules to modules/dirent.
41842         * doc/posix-headers/dirent.texi: Mention the new module.
41843
41844 2008-10-18  Bruno Haible  <bruno@clisp.org>
41845
41846         Avoid -Wunused-parameter warnings in public gnulib header files.
41847         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41848         macro.
41849         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41850
41851 2008-10-18  Bruno Haible  <bruno@clisp.org>
41852
41853         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41854         * doc/glibc-functions/error.texi: Mention the module 'error'.
41855         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41856         * doc/glibc-functions/getdomainname.texi: Mention the module
41857         'getdomainname'.
41858         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41859         * doc/glibc-functions/getpagesize.texi: Mention the module
41860         'getpagesize'.
41861         * doc/glibc-functions/getusershell.texi: Mention the module
41862         'getusershell'.
41863         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41864         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41865         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41866         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41867         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41868         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41869         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41870         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41871         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41872         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41873         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41874         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41875         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41876         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41877
41878 2008-10-17  Bruno Haible  <bruno@clisp.org>
41879
41880         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41881         HP-UX and IRIX, use -0.0L.
41882         * tests/test-ceill.c (minus_zero): Likewise.
41883         * tests/test-floorl.c (minus_zero): Likewise.
41884         * tests/test-frexpl.c (minus_zero): Likewise.
41885         * tests/test-isnan.c (minus_zerol): Likewise.
41886         * tests/test-isnanl.h (minus_zero): Likewise.
41887         * tests/test-ldexpl.c (minus_zero): Likewise.
41888         * tests/test-roundl.c (minus_zero): Likewise.
41889         * tests/test-signbit.c (minus_zerol): Likewise.
41890         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41891         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41892         * tests/test-truncl.c (minus_zero): Likewise.
41893         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41894         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41895         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41896         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41897
41898 2008-10-17  Bruno Haible  <bruno@clisp.org>
41899
41900         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41901         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41902         that it gets activated only for gcc >= 3.0.
41903         * lib/dirent.in.h: Likewise.
41904         * lib/errno.in.h: Likewise.
41905         * lib/fcntl.in.h: Likewise.
41906         * lib/float.in.h: Likewise.
41907         * lib/iconv.in.h: Likewise.
41908         * lib/inttypes.in.h: Likewise.
41909         * lib/locale.in.h: Likewise.
41910         * lib/math.in.h: Likewise.
41911         * lib/netdb.in.h: Likewise.
41912         * lib/netinet_in.in.h: Likewise.
41913         * lib/search.in.h: Likewise.
41914         * lib/signal.in.h: Likewise.
41915         * lib/spawn.in.h: Likewise.
41916         * lib/stdarg.in.h: Likewise.
41917         * lib/stdint.in.h: Likewise.
41918         * lib/stdio.in.h: Likewise.
41919         * lib/stdlib.in.h: Likewise.
41920         * lib/string.in.h: Likewise.
41921         * lib/strings.in.h: Likewise.
41922         * lib/sys_file.in.h: Likewise.
41923         * lib/sys_ioctl.in.h: Likewise.
41924         * lib/sys_select.in.h: Likewise.
41925         * lib/sys_socket.in.h: Likewise.
41926         * lib/sys_stat.in.h: Likewise.
41927         * lib/sys_time.in.h: Likewise.
41928         * lib/sysexits.in.h: Likewise.
41929         * lib/time.in.h: Likewise.
41930         * lib/unistd.in.h: Likewise.
41931         * lib/wchar.in.h: Likewise.
41932         * lib/wctype.in.h: Likewise.
41933         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41934
41935 2008-10-17  Jim Meyering  <meyering@redhat.com>
41936
41937         ignore-value: don't depend on inline module
41938         * modules/ignore-value (Depends-on): Remove 'inline'.
41939         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41940         Suggestion from Bruno Haible.
41941
41942 2008-10-17  Bruno Haible  <bruno@clisp.org>
41943
41944         New implementation of condition variables for Win32.
41945         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41946         (gl_linked_waitqueue_t): New type.
41947         (gl_cond_t): Use it.
41948         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41949         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41950         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41951         (glthread_cond_init_func, glthread_cond_wait_func,
41952         glthread_cond_timedwait_func, glthread_cond_signal_func,
41953         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41954         Reimplemented on the basis of gl_linked_waitqueue_t.
41955         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41956         gl_waitqueue_t.
41957         (gl_rwlock_t): Update.
41958         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41959
41960 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41961
41962         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41963         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41964
41965 2008-10-17  Jim Meyering  <meyering@redhat.com>
41966
41967         ignore-value: new module
41968         * modules/ignore-value: New file.
41969         * lib/ignore-value.h: New file.
41970         * MODULES.html.sh (Compiler warning management): New section,
41971         just for this module.  More to come.
41972
41973 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41974
41975         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41976         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41977         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41978
41979 2008-10-16  Jim Meyering  <meyering@redhat.com>
41980
41981         openat-die.c: avoid 'no previous prototype' warning
41982         * lib/openat-die.c: Include "openat.h".
41983         Reported by Reuben Thomas <rrt@sc3d.org>.
41984
41985 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41986
41987         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41988         * lib/netdb.in.h: Fix typo.
41989         Reported by Bruno Haible  <bruno@clisp.org>
41990
41991         * lib/netdb.in.h: Include sys/socket.h for platforms without
41992         netdb.h, to get structures like hostent on MinGW.
41993         * modules/netdb (Depends-on): Add sys_socket.
41994
41995 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41996
41997         * modules/netdb, modules/netdb-tests: New file.
41998         * m4/netdb_h.m4: New file.
41999         * lib/netdb.in.h: Add, currently just an empty file pending
42000         definitions.
42001         * tests/test-netdb.c: New file.
42002         * doc/posix-headers/netdb.texi: Mention that we replace it if
42003         needed.
42004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42005         netdb.
42006
42007 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42008
42009         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42010         with code.
42011
42012 2008-10-13  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/glthread/cond.c (glthread_cond_wait_func,
42015         glthread_cond_timedwait_func): Add a comment.
42016
42017 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42018
42019         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42020         * tests/test-select.c: Likewise,
42021
42022 2008-10-13  Bruno Haible  <bruno@clisp.org>
42023
42024         * lib/glthread/cond.c (glthread_cond_wait_func,
42025         glthread_cond_timedwait_func): Fix variable name.
42026         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42027
42028 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42029
42030         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42031         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42032         struct sockaddr.sa_len.
42033         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42034
42035 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42036
42037         * build-aux/pmccabe2html: Add css and css_url parameters.
42038
42039 2008-10-12  Bruno Haible  <bruno@clisp.org>
42040
42041         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42042         calling aclx_get.
42043         Reported by Rainer Tammer <tammer@tammer.net>.
42044
42045 2008-10-12  Bruno Haible  <bruno@clisp.org>
42046
42047         Use msvcrt aware primitives for creation/termination of Win32 threads.
42048         * lib/glthread/thread.c: Include <process.h>.
42049         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42050         (wrapper_func): Update signature.
42051         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42052
42053 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42054             Bruno Haible  <bruno@clisp.org>
42055
42056         Provide a Win32 implementation of the 'cond' module.
42057         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42058         * lib/glthread/cond.c (glthread_cond_init_func,
42059         glthread_cond_wait_func, glthread_cond_timedwait_func,
42060         glthread_cond_signal_func, glthread_cond_broadcast_func,
42061         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42062         * modules/cond (Dependencies): Add gettimeofday.
42063
42064 2008-10-11  Bruno Haible  <bruno@clisp.org>
42065
42066         Make sleep work on older versions of mingw.
42067         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42068         only whether it exists.
42069         * doc/posix-functions/sleep.texi: Mention the problem with older
42070         versions of mingw.
42071
42072 2008-10-11  Bruno Haible  <bruno@clisp.org>
42073
42074         New module 'shutdown'.
42075         * modules/shutdown: New file.
42076         * lib/sys_socket.in.h (shutdown): New declaration.
42077         * lib/winsock.c (shutdown): New function.
42078         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42079         GNULIB_SHUTDOWN.
42080         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42081         * doc/posix-functions/shutdown.texi: Document the new module.
42082
42083 2008-10-11  Jim Meyering  <meyering@redhat.com>
42084
42085         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42086
42087 2008-10-11  Bruno Haible  <bruno@clisp.org>
42088
42089         New module 'fclose'.
42090         * modules/fclose: New file.
42091         * lib/stdio.in.h (fclose): New declaration.
42092         * lib/fclose.c: New file.
42093         * m4/fclose.m4: New file.
42094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42095         REPLACE_FCLOSE.
42096         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42097         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42098         REPLACE_FCLOSE.
42099         * modules/close (Depends-on): fclose.
42100         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42101
42102 2008-10-11  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42105         set errno and don't call _close.
42106
42107 2008-10-10  Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42110         ACL, not afterwards. Fixes test failure on Cygwin.
42111
42112 2008-10-09  Ben Pfaff  <blp@gnu.org>
42113
42114         * build-aux/announce-gen: Fix gnulib version related part of usage
42115         message.  Die with a useful error message if no tarballs are
42116         found.
42117
42118 2008-10-10  Jim Meyering  <meyering@redhat.com>
42119
42120         bootstrap: use git's --depth=N option only if it's supported
42121         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42122         recognize the --depth option.  Reported by Pádraig Brady.
42123
42124 2008-10-09  Bruno Haible  <bruno@clisp.org>
42125
42126         New module 'ioctl'.
42127         * modules/ioctl: New file.
42128         * lib/sys_socket.in.h (ioctl): Remove declaration.
42129         * lib/winsock.c: Include <sys/ioctl.h>.
42130         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42131         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42132         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42133         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42134         * doc/posix-functions/ioctl.texi: Mention the new module.
42135
42136 2008-10-09  Bruno Haible  <bruno@clisp.org>
42137
42138         New module 'sys_ioctl'.
42139         * lib/sys_ioctl.in.h: New file.
42140         * m4/sys_ioctl_h.m4: New file.
42141         * modules/sys_ioctl: New file.
42142         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42143
42144 2008-10-09  Bruno Haible  <bruno@clisp.org>
42145
42146         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42147         * lib/winsock.c: Include <stdarg.h>.
42148         (rpl_ioctl): Change to second argument 'int' and then varargs.
42149
42150 2008-10-09  Bruno Haible  <bruno@clisp.org>
42151
42152         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42153         when the sys_socket module is present and the system has <winsock2.h>.
42154
42155 2008-10-09  Bruno Haible  <bruno@clisp.org>
42156
42157         * doc/posix-functions/close.texi: Mention module 'close' instead of
42158         module 'sys_socket'.
42159
42160 2008-10-09  Bruno Haible  <bruno@clisp.org>
42161
42162         * doc/glibc-headers/sys_ioctl.texi: New file.
42163         * doc/gnulib.texi: Include it.
42164
42165 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42166             Bruno Haible  <bruno@clisp.org>
42167
42168         Combine the two replacements of 'close'.
42169         * lib/sys_socket.in.h (close): Define to a reminder to include
42170         <unistd.h>.
42171         (_gl_close_fd_maybe_socket): New declaration.
42172         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42173         * lib/winsock.c (close): Remove undefinition.
42174         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42175         needed for the gnulib module 'close'.
42176         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42177         define to an error symbol or to a warning, if suitable.
42178         * lib/close.c: Include <sys/socket.h>.
42179         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42180         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42181         UNISTD_H_HAVE_WINSOCK2_H.
42182         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42184         UNISTD_H_HAVE_WINSOCK2_H.
42185         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42186         (configure.ac): Set a module indicator.
42187         (Makefile.am): Substitute GNULIB_CLOSE.
42188         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42189         * modules/poll-tests (Depends-on): Add close.
42190         * modules/select-tests (Depends-on): Likewise.
42191
42192 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42193             Bruno Haible  <bruno@clisp.org>
42194
42195         New module 'close'.
42196         * modules/close: New file.
42197         * lib/unistd.in.h (close): Move declaration out of the
42198         FCHDIR_REPLACEMENT scope.
42199         (_gl_unregister_fd): New declaration.
42200         * lib/close.c: New file.
42201         * lib/fchdir.c (rpl_close): Remove function.
42202         * m4/close.m4: New file.
42203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42204         close.
42205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42206         REPLACE_CLOSE.
42207         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42208         REPLACE_CLOSE.
42209         * modules/fchdir (Depends-on): Add close.
42210
42211 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42212             Bruno Haible  <bruno@clisp.org>
42213
42214         * lib/fcntl.in.h (open): Simplify conditionals.
42215         (_gl_register_fd): New declaration.
42216         * lib/fchdir.c (rpl_open): Remove function.
42217         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42218         also.
42219         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42221         open.
42222
42223 2008-10-09  Jim Meyering  <meyering@redhat.com>
42224
42225         GNUmakefile: use the more name-space-friendly "_version"
42226         * top/GNUmakefile (_dummy): Update.
42227         (_version): Rename from "version".
42228
42229 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42230             Bruno Haible  <bruno@clisp.org>
42231
42232         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42233         rpl_close.
42234         (_gl_register_fd): New function, extracted from rpl_open.
42235         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42236         (rpl_open, rpl_opendir): Use _gl_register_fd.
42237
42238 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42239
42240         Fix organization of 'open' replacement.
42241         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42242         (gl_FUNC_OPEN): Use it.
42243         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42244
42245 2008-10-08  Bruno Haible  <bruno@clisp.org>
42246
42247         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42248
42249 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42250
42251         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42252         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42253         listen).
42254
42255 2008-10-08  Eric Blake  <ebb9@byu.net>
42256
42257         GNUmakefile: add 'make version' target
42258         * top/GNUmakefile (_curr-ver): Split version update rules...
42259         (version): ...into a target.
42260
42261 2008-10-07  Bruno Haible  <bruno@clisp.org>
42262
42263         Use a more portable replacement expression for -0.0L.
42264         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42265         instead of -0.0L. Fix m4 quotation.
42266
42267         * tests/test-signbit.c: Include <float.h>.
42268         (minus_zero): New variable.
42269         (test_signbitl): Use minus_zero instead of -zero.
42270         * modules/signbit-tests (Depends-on): Add float.
42271
42272         * tests/test-ceill.c: Include <float.h>.
42273         (zero): Remove variable.
42274         (minus_zero): New variable.
42275         (main): Use minus_zero instead of -zero.
42276         * modules/ceill-tests (Depends-on): Add float.
42277
42278         * tests/test-floorl.c: Include <float.h>.
42279         (zero): Remove variable.
42280         (minus_zero): New variable.
42281         (main): Use minus_zero instead of -zero.
42282         * modules/floorl-tests (Depends-on): Add float.
42283
42284         * tests/test-roundl.c: Include <float.h>.
42285         (zero): Remove variable.
42286         (minus_zero): New variable.
42287         (main): Use minus_zero instead of -zero.
42288         * modules/roundl-tests (Depends-on): Add float.
42289
42290         * tests/test-truncl.c: Include <float.h>.
42291         (zero): Remove variable.
42292         (minus_zero): New variable.
42293         (main): Use minus_zero instead of -zero.
42294         * modules/truncl-tests (Depends-on): Add float.
42295
42296         * tests/test-frexpl.c (zero): Remove variable.
42297         (minus_zero): New variable.
42298         (main): Use minus_zero instead of -zero.
42299         * modules/frexpl-tests (Depends-on): Add float.
42300
42301         * tests/test-isnan.c (zerol): Remove variable.
42302         (minus_zerol): New variable.
42303         (test_long_double): Use minus_zerol instead of -zerol.
42304         * modules/isnan-tests (Depends-on): Add float.
42305
42306         * tests/test-isnanl.h (zero): Remove variable.
42307         (minus_zero): New variable.
42308         (main): Use minus_zero instead of -zero.
42309         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42310         * modules/isnanl-tests (Depends-on): Add float.
42311
42312         * tests/test-ldexpl.c (zero): Remove variable.
42313         (minus_zero): New variable.
42314         (main): Use minus_zero instead of -zero.
42315         * modules/ldexpl-tests (Depends-on): Add float.
42316
42317         * tests/test-snprintf-posix.h (zerol): Remove variable.
42318         (minus_zerol): New variable.
42319         (test_function): Use minus_zerol instead of -zerol.
42320         * modules/snprintf-posix-tests (Depends-on): Add float.
42321         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42322
42323         * tests/test-sprintf-posix.h (zerol): Remove variable.
42324         (minus_zerol): New variable.
42325         (test_function): Use minus_zerol instead of -zerol.
42326         * modules/sprintf-posix-tests (Depends-on): Add float.
42327         * modules/vsprintf-posix-tests (Depends-on): Add float.
42328
42329         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42330         (minus_zerol): New variable.
42331         (test_function): Use minus_zerol instead of -zerol.
42332         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42333
42334         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42335         (minus_zerol): New variable.
42336         (test_function): Use minus_zerol instead of -zerol.
42337         * modules/vasprintf-posix-tests (Depends-on): Add float.
42338
42339 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42340
42341         * MODULES.html.sh (Support for building documentation): Mention
42342         pmccabe2html.  Sort entries.
42343
42344         Add pmccabe2html module, from gnupdf.
42345         * build-aux/pmccabe.css: New file.
42346         * build-aux/pmccabe2html: New file.
42347         * m4/pmccabe2html.m4: New file.
42348         * modules/pmccabe2html: New file.
42349
42350 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42351
42352         flock: new module
42353         * MODULES.html.sh: Add to list of modules.
42354         * lib/flock.c: flock implementation for Windows and Unix systems
42355         which have fcntl.
42356         * doc/glibc-functions/flock.texi: Update documentation.
42357         * lib/sys_file.in.h: <sys/file.h> header file.
42358         * m4/flock.m4: M4 macros.
42359         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42360         * modules/flock: flock module.
42361         * modules/flock-tests: flock tests module.
42362         * modules/sys_file: sys/file.h module.
42363         * tests/test-flock.c: test suite for flock.
42364
42365 2008-10-06  Jim Meyering  <meyering@redhat.com>
42366
42367         bootstrap: check for LT_INIT more portably still ;-)
42368         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42369         Spotted by Bruno Haible.
42370
42371 2008-10-06  Eric Blake  <ebb9@byu.net>
42372
42373         test-signbit: avoid tripping Irix cc bug on -0.0L
42374         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42375         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42376         entire testsuite consistent and avoids an Irix 6.2 bug.
42377
42378 2008-10-05  Bruno Haible  <bruno@clisp.org>
42379             Jim Meyering  <jim@meyering.net>
42380
42381         Add an option for ignoring EPIPE during close_stdout.
42382         * lib/closeout.h: Include <stdbool.h>.
42383         (close_stdout_set_ignore_EPIPE): New declaration.
42384         * lib/closeout.c: Include <stdbool.h>.
42385         (ignore_EPIPE): New variable.
42386         (close_stdout_set_ignore_EPIPE): New function.
42387         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42388         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42389         failure.
42390         * modules/closeout (Depends-on): Add stdbool.
42391
42392 2008-10-05  Bruno Haible  <bruno@clisp.org>
42393
42394         * modules/accept: New file.
42395         * modules/bind: New file.
42396         * modules/connect: New file.
42397         * modules/getpeername: New file.
42398         * modules/getsockname: New file.
42399         * modules/getsockopt: New file.
42400         * modules/listen: New file.
42401         * modules/recv: New file.
42402         * modules/recvfrom: New file.
42403         * modules/send: New file.
42404         * modules/sendto: New file.
42405         * modules/setsockopt: New file.
42406         * modules/socket: New file.
42407         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42408         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42409         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42410         the particular module is requested. Add a link warning when the
42411         particular module is not requested.
42412         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42413         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42414         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42415         the particular module is requested.
42416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42417         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42418         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42419         * modules/sys_socket (Depends-on): Add link-warning.
42420         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42421         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42422         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42423         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42424         GL_LINK_WARNING.
42425         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42426         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42427         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42428         * doc/posix-functions/getpeername.texi: Mention the new module
42429         'getpeername'.
42430         * doc/posix-functions/getsockname.texi: Mention the new module
42431         'getsockname'.
42432         * doc/posix-functions/getsockopt.texi: Mention the new module
42433         'getsockopt'.
42434         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42435         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42436         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42437         * doc/posix-functions/send.texi: Mention the new module 'send'.
42438         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42439         * doc/posix-functions/setsockopt.texi: Mention the new module
42440         'setsockopt'.
42441         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42442         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42443         listen, connect, accept.
42444         * modules/select-tests (Depends-on): Likewise.
42445
42446 2008-10-05  Bruno Haible  <bruno@clisp.org>
42447
42448         * lib/winsock.c (strerror): Remove unused #undef.
42449         (rpl_close): Remove unused local variable.
42450
42451         * modules/sys_socket (Depends-on); Add errno.
42452
42453 2008-10-05  Bruno Haible  <bruno@clisp.org>
42454
42455         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42456         (select): Add a link warning when the 'select' module is not used.
42457         * modules/sys_select (Depends-on): Add link-warning.
42458         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42459         Suggested by Paolo Bonzini.
42460
42461 2008-10-05  Jim Meyering  <meyering@redhat.com>
42462
42463         bootstrap: check for LT_INIT more portably
42464         * build-aux/bootstrap: Avoid using grep -E, since it's not
42465         portable enough.  Suggestion from Bruno Haible.
42466
42467 2008-10-05  Bruno Haible  <bruno@clisp.org>
42468
42469         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42470         as being fixed by gnulib.
42471
42472 2008-10-05  Bruno Haible  <bruno@clisp.org>
42473
42474         * modules/select-tests: New file, mostly copied from
42475         modules/sys_select-tests.
42476         * tests/test-select.c: New file, mostly copied from
42477         tests/test-sys_select.c.
42478         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42479         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42480         (Makefile.am): Remove test_sys_select_LDADD.
42481
42482         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42483         to an undefined symbol, for an error message.
42484         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42485         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42486         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42487         winsock-select.c here.
42488         * modules/sys_select (Files): Remove lib/winsock-select.c.
42489         (Depends-on): Remove alloca.
42490         (Makefile.am): Substitute GNULIB_SELECT.
42491         * modules/select: New file.
42492         * doc/posix-functions/select.texi: Update.
42493
42494 2008-10-05  Bruno Haible  <bruno@clisp.org>
42495
42496         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42497         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42498         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42499         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42500         getdtablesize.
42501         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42502         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42503
42504 2008-10-05  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/getdtablesize-tests: New file.
42507         * tests/test-getdtablesize.c: New file.
42508
42509         New module 'getdtablesize'.
42510         * lib/unistd.in.h (getdtablesize): New declaration.
42511         * lib/getdtablesize.c: New file.
42512         * m4/getdtablesize.m4: New file.
42513         * modules/getdtablesize: New file.
42514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42515         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42516         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42517         HAVE_GETDTABLESIZE.
42518         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42519
42520 2008-10-05  Bruno Haible  <bruno@clisp.org>
42521
42522         * modules/sched (Makefile.am): Fix typo.
42523         Reported by Simon Josefsson.
42524
42525 2008-10-05  Jim Meyering  <meyering@redhat.com>
42526
42527         bootstrap: check for LT_INIT, too
42528         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42529         are deprecated.  Suggestion from Ralf Wildenhues.
42530
42531 2008-10-05  Bruno Haible  <bruno@clisp.org>
42532
42533         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42534         overriding them by ours.
42535         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42536
42537 2008-10-05  Jim Meyering  <meyering@redhat.com>
42538
42539         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42540         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42541         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42542
42543 2008-10-04  Bruno Haible  <bruno@clisp.org>
42544
42545         * modules/dup2 (License): Change to LGPLv2+.
42546         * modules/sleep (License): Likewise.
42547         * modules/perror (License): Likewise.
42548         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42549         Blake.
42550         * modules/signal (License): Likewise.
42551         * modules/sigprocmask (License): Likewise.
42552         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42553         Meyering.
42554
42555 2008-10-04  Bruno Haible  <bruno@clisp.org>
42556
42557         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42558         Reported by Rainer Tammer <tammer@tammer.net>.
42559
42560 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42561             Bruno Haible  <bruno@clisp.org>
42562
42563         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42564         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42565         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42566
42567 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42568
42569         filevercmp: new module
42570         * lib/filevercmp.h: New function filevercmp comparing version strings.
42571         * lib/filevercmp.c: Implementation of filevercmp function.
42572         * modules/filevercmp: Module metadata.
42573         * tests/test-filevercmp.c: Unit test for new module.
42574         * modules/filevercmp-tests: Unit test metadata.
42575         * MODULES.html.sh: Add filevercmp module.
42576
42577 2008-10-03  Bruno Haible  <bruno@clisp.org>
42578
42579         * lib/c-ctype.h: Add comment.
42580         Reported by Jim Meyering.
42581
42582 2008-10-02  Bruno Haible  <bruno@clisp.org>
42583
42584         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42585
42586 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42587
42588         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42589         name of bootstrap.conf accordingly.
42590
42591 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42592
42593         * build-aux/bootstrap: Install git-merge-changelog configuration
42594         items into .gitconfig if needed.
42595
42596 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42597
42598         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42599         git repository, and initialize/update it accordingly.
42600
42601 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42602
42603         * modules/fsync-tests: New file.
42604         * tests/test-fsync.c: New file.
42605
42606         New module 'fsync'.
42607         * lib/fsync.c: New file.
42608         * m4/fsync.m4: New file.
42609         * modules/fsync: New file.
42610         * lib/unistd.in.h (fsync): New declaration.
42611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42612         GNULIB_FSYNC and HAVE_FSYNC.
42613         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42614         * MODULES.html.sh (posix_functions): Add fsync.
42615         * doc/posix-functions/fsync.texi: Mention the new module.
42616
42617 2008-10-02  Jim Meyering  <meyering@redhat.com>
42618
42619         fts.c: sync with similar code from coreutils' remove.c
42620         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42621         Guard also with "#if defined __linux__", since for now at least,
42622         this code is Linux-kernel-specific.
42623
42624 2008-10-02  Jim Meyering  <meyering@redhat.com>
42625
42626         fts: bug fixes
42627         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42628         Include <sys/vfs.h>, not <sys/statfs.h>.
42629
42630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42631         Include <sys/vfs.h>, not <sys/statfs.h>.
42632
42633 2008-10-01  Bruno Haible  <bruno@clisp.org>
42634
42635         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42636         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42637         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42638         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42639         * doc/posix-functions/posix_spawnp.texi: Likewise.
42640         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42641         whether posix_spawn actually works.
42642         * m4/pipe.m4 (gl_PIPE): Likewise.
42643         * modules/execute (Files): Add m4/posix_spawn.m4.
42644         * modules/pipe (Files): Add m4/posix_spawn.m4.
42645         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42646
42647 2008-10-01  Jim Meyering  <meyering@redhat.com>
42648
42649         remove trailing spaces
42650         * NEWS: Likewise.
42651         * lib/poll.c (poll): Likewise.
42652         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42653         * lib/winsock.c (rpl_close): Likewise.
42654         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42655         * modules/yield: Likewise.
42656         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42657         * tests/test-sys_select.c (connect_to_socket): Likewise.
42658
42659         fts.c: adjust a new interface to be more generally useful
42660         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42661         (fts_build): Adjust caller.
42662
42663 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42664
42665         * modules/cond-tests: New file.
42666         * tests/test-cond.c: New file.
42667
42668 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42669             Bruno Haible  <bruno@clisp.org>
42670
42671         * modules/cond (Dependencies): Add errno, time.
42672         * lib/glthread/cond.h: Include <time.h>.
42673         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42674         across platforms.
42675
42676 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42677             Bruno Haible  <bruno@clisp.org>
42678
42679         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42680
42681 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42682             Bruno Haible  <bruno@clisp.org>
42683
42684         * modules/tls-tests (Depends-on): Add thread, yield.
42685         (configure.ac): Remove all checks.
42686         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42687         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42688         gl_thread_self): Remove definitions. Include glthread/thread.h and
42689         glthread/yield.h instead.
42690         (test_tls): Pass an additional NULL argument to gl_thread_join.
42691
42692 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42693             Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/lock-tests (Depends-on): Add thread, yield.
42696         (configure.ac): Remove all checks.
42697         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42698         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42699         gl_thread_self): Remove definitions. Include glthread/thread.h and
42700         glthread/yield.h instead.
42701         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42702         additional NULL argument to gl_thread_join.
42703
42704 2008-09-30  Bruno Haible  <bruno@clisp.org>
42705
42706         Fix the Win32 implementation of the 'thread' module.
42707         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42708         pointer type.
42709         (gl_thread_self): Invoke gl_thread_self_func.
42710         (gl_thread_self_func): New declaration.
42711         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42712         (do_init_self_key, init_self_key): New functions.
42713         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42714         Remove some fields.
42715         (running_threads, running_lock): Remove variables.
42716         (get_current_thread_handle): New function.
42717         (gl_thread_self_func, wrapper_func, glthread_create_func,
42718         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42719         simplified.
42720
42721 2008-09-30  Bruno Haible  <bruno@clisp.org>
42722
42723         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42724         files.
42725
42726 2008-09-30  Jim Meyering  <meyering@redhat.com>
42727
42728         fts.m4: correct the test for statfs.f_type
42729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42730         when checking for statfs.f_type.
42731
42732 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42733
42734         tests: avoid some compiler warnings
42735         * tests/test-memchr.c (main): Pass NULL indirectly.
42736         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42737
42738 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42739
42740         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42741         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42742         exactly specified dayshifts.
42743         (dayshift): New rule.
42744         (rel): Add dayshift.
42745         (relative_time_table) [tomorrow, yesterday, today, now]:
42746         Use tDAY_SHIFT in place of tDAY_UNIT.
42747         * tests/test-getdate.c: Add tests for now-disallowed countable
42748         dayshifts, e.g., "4 yesterday ago".
42749
42750 2008-09-29  Bruno Haible  <bruno@clisp.org>
42751
42752         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42753         * tests/test-posix_spawn1.in.sh: Renamed from
42754         tests/test-posix_spawn.in.sh.
42755         * tests/test-posix_spawn2.c: New file.
42756         * tests/test-posix_spawn2.in.sh: New file.
42757         * modules/posix_spawnp-tests (Files): Update.
42758         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42759
42760 2008-09-29  Bruno Haible  <bruno@clisp.org>
42761
42762         Propagate effects of putenv/setenv/unsetenv to child processes.
42763         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42764         * lib/pipe.c (create_pipe): Likewise.
42765
42766 2008-09-29  Bruno Haible  <bruno@clisp.org>
42767
42768         Enable use of shell scripts as executables in mingw.
42769         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42770         run the program as a shell script.
42771         * lib/pipe.c (create_pipe): Likewise.
42772         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42773         resulting array.
42774
42775 2008-09-29  Eric Blake  <ebb9@byu.net>
42776
42777         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42778
42779 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42780
42781         * doc/posix-functions/accept.texi: Update mingw problems.
42782         * doc/posix-functions/bind.texi: Update mingw problems.
42783         * doc/posix-functions/close.texi: Update mingw problems.
42784         * doc/posix-functions/connect.texi: Update mingw problems.
42785         * doc/posix-functions/getpeername.texi: Update mingw problems.
42786         * doc/posix-functions/getsockname.texi: Update mingw problems.
42787         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42788         * doc/posix-functions/ioctl.texi: Update mingw problems.
42789         * doc/posix-functions/listen.texi: Update mingw problems.
42790         * doc/posix-functions/recv.texi: Update mingw problems.
42791         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42792         * doc/posix-functions/select.texi: Update mingw problems.
42793         * doc/posix-functions/send.texi: Update mingw problems.
42794         * doc/posix-functions/sendto.texi: Update mingw problems.
42795         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42796         * doc/posix-functions/socket.texi: Update mingw problems.
42797
42798 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42799             Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/sys_select.in.h: Include sys/time.h.
42802         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42803         * modules/sys_select: Depend on sys_time.
42804         * tests/test-sys_select.c: Test that sys/select.h defines struct
42805         timeval fully.
42806
42807 2008-09-29  Bruno Haible  <bruno@clisp.org>
42808
42809         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42810         * lib/sys_select.in.h: Likewise.
42811
42812 2008-09-29  Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42815
42816 2008-09-29  Bruno Haible  <bruno@clisp.org>
42817
42818         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42819         Set LIBSOCKET instead of augmenting LIBS.
42820         * modules/sockets (Link): New section.
42821         * modules/sockets-tests (test_sockets_LDADD): New variable.
42822         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42823         * modules/poll-tests (test_poll_LDADD): New variable.
42824         * NEWS: Document the change.
42825
42826 2008-09-29  Bruno Haible  <bruno@clisp.org>
42827
42828         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42829         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42830         ARPA_INET_H directly.
42831         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42832
42833 2008-09-28  Bruno Haible  <bruno@clisp.org>
42834
42835         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42836         from gl_HEADER_SYS_SOCKET.
42837         (gl_HEADER_SYS_SOCKET): Invoke it.
42838         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42839
42840 2008-09-28  Bruno Haible  <bruno@clisp.org>
42841
42842         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42843         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42844         Needed on OSF/1 4.0.
42845
42846 2008-09-28  Bruno Haible  <bruno@clisp.org>
42847
42848         Override open more carefully.
42849         * lib/open.c (orig_open): New function.
42850         (rpl_open): Use orig_open instead of open.
42851         * lib/fcntl.in.h: Add special invocation convention.
42852         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42853         (gl_FUNC_OPEN): Invoke it.
42854
42855         Override freopen more carefully.
42856         * lib/freopen.c (orig_freopen): New function.
42857         (rpl_freopen): Use orig_freopen instead of freopen.
42858         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42859         (gl_FUNC_FREOPEN): Invoke it.
42860
42861         Override fopen more carefully.
42862         * lib/fopen.c (orig_fopen): New function.
42863         (rpl_fopen): Use orig_fopen instead of fopen.
42864         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42865         (gl_FUNC_FOPEN): Invoke it.
42866         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42867
42868 2008-09-28  Bruno Haible  <bruno@clisp.org>
42869
42870         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42871         SIGPIPE.
42872
42873 2008-09-28  Bruno Haible  <bruno@clisp.org>
42874
42875         * tests/test-sigaction.c (handler, main): Disable the check whether
42876         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42877         glibc systems with LinuxThreads.
42878
42879 2008-09-28  Bruno Haible  <bruno@clisp.org>
42880
42881         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42882
42883         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42884         with AIX xlc.
42885         * lib/fcntl.in.h (open): Likewise.
42886         Reported by Rainer Tammer <tammer@tammer.net>.
42887
42888 2008-09-28  Bruno Haible  <bruno@clisp.org>
42889
42890         * modules/posix_spawnp-tests: New file.
42891         * tests/test-posix_spawn.c: New file.
42892         * tests/test-posix_spawn.in.sh: New file.
42893
42894         New module 'posix_spawnp'.
42895         * modules/posix_spawnp: New file.
42896         * lib/spawnp.c: New file, from GNU libc with modifications.
42897         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42898
42899         New module 'posix_spawn'.
42900         * modules/posix_spawn: New file.
42901         * lib/spawn.c: New file, from GNU libc with modifications.
42902         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42903
42904         New module 'posix_spawnattr_destroy'.
42905         * modules/posix_spawnattr_destroy: New file.
42906         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42907         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42908         module.
42909
42910         New module 'posix_spawnattr_setsigmask'.
42911         * modules/posix_spawnattr_setsigmask: New file.
42912         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42913         modifications.
42914         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42915         new module.
42916
42917         New module 'posix_spawnattr_getsigmask'.
42918         * modules/posix_spawnattr_getsigmask: New file.
42919         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42920         modifications.
42921         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42922         new module.
42923
42924         New module 'posix_spawnattr_setsigdefault'.
42925         * modules/posix_spawnattr_setsigdefault: New file.
42926         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42927         modifications.
42928         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42929         new module.
42930
42931         New module 'posix_spawnattr_getsigdefault'.
42932         * modules/posix_spawnattr_getsigdefault: New file.
42933         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42934         modifications.
42935         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42936         new module.
42937
42938         New module 'posix_spawnattr_setschedpolicy'.
42939         * modules/posix_spawnattr_setschedpolicy: New file.
42940         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42941         modifications.
42942         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42943         new module.
42944
42945         New module 'posix_spawnattr_getschedpolicy'.
42946         * modules/posix_spawnattr_getschedpolicy: New file.
42947         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42948         modifications.
42949         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42950         new module.
42951
42952         New module 'posix_spawnattr_setschedparam'.
42953         * modules/posix_spawnattr_setschedparam: New file.
42954         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42955         modifications.
42956         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42957         new module.
42958
42959         New module 'posix_spawnattr_getschedparam'.
42960         * modules/posix_spawnattr_getschedparam: New file.
42961         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42962         modifications.
42963         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42964         new module.
42965
42966         New module 'posix_spawnattr_setpgroup'.
42967         * modules/posix_spawnattr_setpgroup: New file.
42968         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42969         modifications.
42970         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42971         module.
42972
42973         New module 'posix_spawnattr_getpgroup'.
42974         * modules/posix_spawnattr_getpgroup: New file.
42975         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42976         modifications.
42977         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42978         module.
42979
42980         New module 'posix_spawnattr_setflags'.
42981         * modules/posix_spawnattr_setflags: New file.
42982         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42983         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42984         module.
42985
42986         New module 'posix_spawnattr_getflags'.
42987         * modules/posix_spawnattr_getflags: New file.
42988         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42989         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42990         module.
42991
42992         New module 'posix_spawnattr_init'.
42993         * modules/posix_spawnattr_init: New file.
42994         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42995         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42996         module.
42997
42998         New module 'posix_spawn_file_actions_destroy'.
42999         * modules/posix_spawn_file_actions_destroy: New file.
43000         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43001         modifications.
43002         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43003         the new module.
43004
43005         New module 'posix_spawn_file_actions_addopen'.
43006         * modules/posix_spawn_file_actions_addopen: New file.
43007         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43008         modifications.
43009         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43010         the new module.
43011
43012         New module 'posix_spawn_file_actions_adddup2'.
43013         * modules/posix_spawn_file_actions_adddup2: New file.
43014         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43015         modifications.
43016         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43017         the new module.
43018
43019         New module 'posix_spawn_file_actions_addclose'.
43020         * modules/posix_spawn_file_actions_addclose: New file.
43021         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43022         modifications.
43023         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43024         the new module.
43025
43026         New module 'posix_spawn_file_actions_init'.
43027         * modules/posix_spawn_file_actions_init: New file.
43028         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43029         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43030         new module.
43031
43032         New module 'posix_spawn-internal'.
43033         * modules/posix_spawn-internal: New file.
43034         * lib/spawn_int.h: New file, from GNU libc with modifications.
43035         * lib/spawni.c: New file, from GNU libc with modifications.
43036         * m4/posix_spawn.m4: New file.
43037
43038         New module 'spawn'.
43039         * modules/spawn: New file.
43040         * lib/spawn.in.h: New file, from GNU libc with modifications.
43041         * m4/spawn_h.m4: New file.
43042         * doc/posix-headers/spawn.texi: Mention the new module.
43043
43044 2008-09-28  Bruno Haible  <bruno@clisp.org>
43045
43046         * modules/sched-tests: New file.
43047         * tests/test-sched.c: New file.
43048
43049         New module 'sched'.
43050         * modules/sched: New file.
43051         * lib/sched.in.h: New file.
43052         * m4/sched_h.m4: New file.
43053         * doc/posix-headers/sched.texi: Mention the new module.
43054
43055 2008-09-27  Eric Blake  <ebb9@byu.net>
43056
43057         Fix previous patch, and tweak references to $0.
43058         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43059         (func_version, func_gnulib_dir): Don't call this program
43060         gnulib-tool.
43061         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43062         with using $0 in function.
43063         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43064         (func_fatal_error): Reuse the name the user invoked us with.
43065
43066 2008-09-27  Bruno Haible  <bruno@clisp.org>
43067
43068         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43069         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43070         (gl_ICONV_H): Not here.
43071         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43072         instead of assigning ICONV_H directly.
43073
43074         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43076         WCHAR_H directly.
43077
43078 2008-09-27  Bruno Haible  <bruno@clisp.org>
43079
43080         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43081         * modules/arpa_inet (Depends-on): Add link-warning.
43082         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43083         * modules/unistd (Makefile.am): Likewise.
43084
43085 2008-09-26  Bruno Haible  <bruno@clisp.org>
43086
43087         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43088         variables.
43089         (func_version): Essentially copied from gnulib-tool.
43090         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43091         func_readlink): Copied from gnulib-tool.
43092
43093 2008-09-26  Bruno Haible  <bruno@clisp.org>
43094
43095         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43096         invoking git-version-gen.
43097
43098 2008-09-26  Bruno Haible  <bruno@clisp.org>
43099
43100         * posix-modules: Update to directory names changed on 2008-01-19.
43101         Remove commas in output before splitting into words. No more need to
43102         avoid 'ftruncate' since 2007-02-19.
43103
43104 2008-09-26  Bruno Haible  <bruno@clisp.org>
43105
43106         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43107
43108 2008-09-26  Bruno Haible  <bruno@clisp.org>
43109
43110         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43111         * modules/fwriteerror (Depends-on): Add errno.
43112
43113 2008-09-26  Bruno Haible  <bruno@clisp.org>
43114
43115         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43116         * tests/test-vc-list-files-cvs.sh: Likewise.
43117
43118 2008-09-26  Bruno Haible  <bruno@clisp.org>
43119
43120         * doc/posix-headers/sys_resource.texi: Reorder items.
43121
43122 2008-09-26  Jim Meyering  <meyering@redhat.com>
43123
43124         fts: tweak inode comparison function
43125         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43126         inode numbers, as documented.
43127
43128         fts: sort dirent entries on inode number before traversing
43129         This avoids a quadratic, seek-related performance penalty when
43130         operating on a directory containing many entries (measurable at 10k;
43131         3.5 hours at 2 million entries with a cold cache) on certain types
43132         of file systems, including ext3 and ext4, but not tmpfs.
43133         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43134         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43135         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43136         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43137         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43138         (fts_build): Set the stat.st_ino member from D_INO.
43139         If it is likely to be useful, sort dirent entries on inode number.
43140
43141         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43142         and the struct statfs.f_type member.
43143         * modules/fts (Depends-on): Add d-ino.
43144
43145 2008-09-26  Bruno Haible  <bruno@clisp.org>
43146
43147         * modules/sigpipe-die (Depends-on): Add sigpipe.
43148
43149         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43150         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43151         and GNULIB_STDIO_H_SIGPIPE are set.
43152         * lib/stdio-write.c: New file.
43153         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43154         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43155         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43156         REPLACE_STDIO_WRITE_FUNCS.
43157         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43158         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43159         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43160         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43161         * modules/stdio (Files): Add lib/stdio-write.c.
43162         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43163         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43164         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43165         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43166         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43167         REPLACE_FPRINTF_POSIX.
43168         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43169         REPLACE_PRINTF_POSIX.
43170         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43171         REPLACE_VFPRINTF_POSIX.
43172         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43173         REPLACE_VPRINTF_POSIX.
43174         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43175         SIGPIPE issue.
43176         * doc/posix-functions/fputc.texi: Likewise.
43177         * doc/posix-functions/fputs.texi: Likewise.
43178         * doc/posix-functions/fwrite.texi: Likewise.
43179         * doc/posix-functions/printf.texi: Likewise.
43180         * doc/posix-functions/putc.texi: Likewise.
43181         * doc/posix-functions/putchar.texi: Likewise.
43182         * doc/posix-functions/puts.texi: Likewise.
43183         * doc/posix-functions/vfprintf.texi: Likewise.
43184         * doc/posix-functions/vprintf.texi: Likewise.
43185
43186         * modules/safe-write (Depends-on): Add write.
43187
43188         * modules/sigpipe-tests: New file.
43189         * tests/test-sigpipe.c: New file.
43190         * tests/test-sigpipe.sh: New file.
43191
43192         * modules/write: New file.
43193         * lib/unistd.in.h: Include <sys/types.h>.
43194         (write): New declaration.
43195         * lib/write.c: New file.
43196         * m4/write.m4: New file.
43197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43198         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43199         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43200         GNULIB_WRITE, REPLACE_WRITE.
43201         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43202         and the SIGPIPE issue.
43203
43204         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43205         (raise): New declaration.
43206         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43207         (ext_signal): New function.
43208         (rpl_raise): New function.
43209         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43210         GNULIB_SIGNAL_H_SIGPIPE.
43211         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43212         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43213
43214         * modules/sigpipe: New file.
43215         * m4/sigpipe.m4: New file.
43216
43217 2008-09-25  Derek Price  <derek@ximbiot.com>
43218             Bruno Haible  <bruno@clisp.org>
43219
43220         * gnulib-tool (func_import): Report all license incompatibilities, not
43221         just the first one.
43222
43223 2008-09-25  Bruno Haible  <bruno@clisp.org>
43224
43225         * gnulib-tool (func_import): When computing the edits, consider not
43226         only the Makefile.ams that exist but also those that will be generated.
43227
43228 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43229
43230         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43231         fixes gnulib-tool --test warning about duplicate dependency.
43232
43233 2008-09-25  Bruno Haible  <bruno@clisp.org>
43234
43235         * gnulib-tool: Don't ask the user to perform edits in the generated
43236         Makefile.ams.
43237         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43238         apply to the Makefile.am being generated.
43239         (func_emit_tests_Makefile_am): Execute edits that apply to the
43240         Makefile.am being generated.
43241         (func_import): Setup list of Makefile.am edits before emitting the
43242         Makefile.ams, not at the end.
43243         (func_create_testdir): Update.
43244         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43245
43246 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43247
43248         * gnulib-tool (func_import): Store the --tests-base option in the
43249         comment in gnulib-cache.m4.
43250
43251 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43252
43253         * NEWS: Document increased portability that sys_select now provides.
43254
43255         * lib/sys_select.in.h: Install select wrapper.
43256         * lib/sys_socket.in.h: Use more descriptive name when there is no
43257         select wrapper.
43258         * lib/winsock-select.c: New.
43259         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43260         Require gl_HEADER_SYS_SOCKET.
43261         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43262         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43263         * tests/test-sys_select.c: Add functional tests.
43264
43265 2008-09-24  Eric Blake  <ebb9@byu.net>
43266
43267         open, fopen: close fd leak in last patch
43268         * lib/open.c (rpl_open): Close fd before returning error.
43269         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43270         * doc/posix-functions/open.texi (open): Document that Irix also
43271         has the bug.
43272         * doc/posix-functions/fopen.texi (fopen): Likewise.
43273         Reported by Paolo Bonzini.
43274
43275 2008-09-24  Bruno Haible  <bruno@clisp.org>
43276
43277         Ensure that a filename ending in a slash cannot be used to access a
43278         non-directory.
43279         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43280         to check whether it's really a directory.
43281         * lib/fopen.c: Include fcntl.h, unistd.h.
43282         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43283         and fdopen().
43284         * modules/fopen (Depends-on): Add unistd.
43285         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43286         * tests/test-fopen.c (main): Likewise.
43287         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43288         * doc/posix-functions/fopen.texi: Likewise.
43289         Reported by Eric Blake.
43290
43291 2008-09-23  Eric Blake  <ebb9@byu.net>
43292
43293         c-stack: avoid compiler optimizations when provoking overflow
43294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43295         recursion harder to optimize, to ensure a stack overflow occurs.
43296         * tests/test-c-stack.c (recurse): Likewise.
43297         Borrowed from libsigsegv.
43298
43299         c-stack: work around Irix sigaltstack bug
43300         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43301         whether sigaltstack uses wrong end of stack_t (copied in part from
43302         libsigsegv).
43303         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43304         Irix bug, without requiring an over-allocation.
43305         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43306         bug.
43307
43308         fopen: document mingw bug on directories
43309         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43310         not allowing a stream visiting a directory, even though reading
43311         from such a stream is not portable.
43312
43313 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43314
43315         * lib/poll.c: Rewrite.
43316         * modules/poll: Depend on alloca.
43317
43318 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43319
43320         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43321         instead define prototypes for a full set of wrappers.  Ensure
43322         that Cygwin does not use the compatibility code, which is only
43323         for MinGW.
43324         * lib/winsock.c: New.
43325         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43326         * modules/sys_socket: Add lib/winsock.c.
43327
43328         * modules/poll-tests: Add errno and perror.
43329         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43330
43331 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43332
43333         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43334
43335 2008-09-23  Bruno Haible  <bruno@clisp.org>
43336
43337         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43338         * doc/glibc-functions/*: Likewise.
43339
43340 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43341
43342         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43343         success.
43344
43345 2008-09-22  Eric Blake  <ebb9@byu.net>
43346             Bruno Haible  <bruno@clisp.org>
43347
43348         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43349         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43350         supply %A but mishandle pseudo-NaN.
43351         Reported by Simon Josefsson.
43352
43353 2008-09-21  Bruno Haible  <bruno@clisp.org>
43354
43355         * tests/test-lock.c (main): Tweak skip message.
43356         * tests/test-tls.c (main): Likewise.
43357
43358 2008-09-21  Bruno Haible  <bruno@clisp.org>
43359
43360         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43361         whether 'struct sigaction' has sa_sigaction here...
43362         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43363         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43364
43365 2008-09-21  Bruno Haible  <bruno@clisp.org>
43366
43367         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43368         section.
43369         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43370         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43371         the new section.
43372         (Support for obsolete systems lacking POSIX:2001): New section.
43373         (String handling <string.h>): Move strdup to the new section.
43374         Suggested by Simon Josefsson and Paolo Bonzini.
43375
43376 2008-09-21  Bruno Haible  <bruno@clisp.org>
43377
43378         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43379         exponents in %e and %g results on 'long double'. Needed for mingw's
43380         improved *printf functions.
43381         * tests/test-vasprintf-posix.c (test_function): Likewise.
43382         * tests/test-snprintf-posix.h (test_function): Likewise.
43383         * tests/test-sprintf-posix.h (test_function): Likewise.
43384         Reported by Eric Blake.
43385
43386 2008-09-21  Bruno Haible  <bruno@clisp.org>
43387
43388         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43389         * tests/test-sprintf-posix.h (test_function): Likewise.
43390
43391 2008-09-21  Bruno Haible  <bruno@clisp.org>
43392
43393         * modules/getpass (Depends-on): Add strdup-posix.
43394
43395         New module 'strdup-posix'.
43396         * modules/strdup-posix: New file.
43397         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43398         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43400         REPLACE_STRDUP.
43401         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43402         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43403         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43404         strdup-posix.
43405
43406         * modules/strdup (Depends-on): Remove malloc-posix.
43407
43408 2008-09-20  Bruno Haible  <bruno@clisp.org>
43409
43410         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43411         Wildenhues.
43412
43413 2008-09-20  Bruno Haible  <bruno@clisp.org>
43414
43415         Ensure that wint_t gets defined on IRIX 5.3.
43416         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43417         * lib/wctype.in.h (wint_t): Likewise.
43418         (__wctype_wint_t): Remove type.
43419         (isw*): Use wint_t instead of __wctype_wint_t.
43420         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43421         * modules/wchar (Files): Add m4/wint_t.m4.
43422         (Makefile.am): Substitute HAVE_WINT_T.
43423         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43424         * tests/test-wctype.c: Check that wint_t is defined.
43425         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43426         * doc/posix-headers/wctype.texi: Likewise.
43427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43428
43429 2008-09-18  Bruno Haible  <bruno@clisp.org>
43430
43431         * gnulib-tool (func_exit): Update comment.
43432
43433 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43434
43435         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43436         assumes strdup exists and does not depend on strdup to return
43437         ENOMEM on out of memory conditions.
43438
43439 2008-09-18  Bruno Haible  <bruno@clisp.org>
43440
43441         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43442         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43443         digits for the exponent.
43444
43445 2008-09-18  Jim Meyering  <meyering@redhat.com>
43446             Bruno Haible  <bruno@clisp.org>
43447
43448         * lib/vasnprintf.c (decimal_point_char): Define also if
43449         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43450
43451 2008-09-16  Bruno Haible  <bruno@clisp.org>
43452         and Eric Blake  <ebb9@byu.net>
43453
43454         vasnprintf: support Irix 5.3
43455         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43456         that mishandle long double infinity.
43457         Reported by Tom G. Christensen.
43458
43459 2008-09-16  Bruno Haible  <bruno@clisp.org>
43460
43461         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43462         Solaris 9.
43463         * doc/glibc-functions/alphasort.texi: Likewise.
43464         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43465
43466 2008-09-16  Jim Meyering  <meyering@redhat.com>
43467
43468         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43469         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43470         a umask modification leak out of a subshell.  Otherwise, the
43471         opensolaris /bin/sh would be accepted and thus cause unwarranted
43472         failures in the coreutils test suite.
43473
43474 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43475
43476         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43477         to succeed.
43478
43479 2008-09-16  Jim Meyering  <meyering@redhat.com>
43480
43481         avoid spurious test failure when library is built without ACL support
43482         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43483         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43484         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43485         * tests/test-copy-acl.sh: Likewise.
43486
43487 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43488
43489         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43490         based on character occurrence counts.
43491
43492 2008-09-15  Eric Blake  <ebb9@byu.net>
43493
43494         tests: avoid some compiler warnings
43495         * tests/test-memchr.c (main): Pass NULL indirectly.
43496         * tests/test-closein.c (main): Avoid unused variable.
43497
43498 2008-09-15  Bruno Haible  <bruno@clisp.org>
43499
43500         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43501         are missing on OpenBSD 4.0 individually.
43502         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43503
43504 2008-09-15  Bruno Haible  <bruno@clisp.org>
43505
43506         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43507         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43508         * doc/posix-functions/perror.texi: Likewise.
43509         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43510         is missing.
43511         Reported by Eric Blake.
43512
43513         * lib/errno.in.h: Use replacement values >= 2000.
43514         Reported by Eric Blake.
43515
43516 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43517
43518         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43519         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43520         limit.
43521         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43522         compareseq was aborted.
43523
43524 2008-09-14  Bruno Haible  <bruno@clisp.org>
43525
43526         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43527         yvec_edit_count.
43528         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43529         (fstrcmp_bounded): Simplify result computation accordingly.
43530
43531 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43532
43533         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43534         (fstrcmp): Define in terms of fstrcmp_bounded.
43535         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43536         lower_bound argument.
43537         Return quickly if the result is certainly < lower_bound.
43538         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43539
43540 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43541
43542         * lib/diffseq.h (EARLY_ABORT): New macro.
43543         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43544         evaluates to true.
43545
43546 2008-09-14  Bruno Haible  <bruno@clisp.org>
43547
43548         * modules/perror-tests: New file.
43549         * tests/test-perror.sh: New file.
43550         * tests/test-perror.c: New file.
43551
43552         New module 'perror'.
43553         * lib/stdio.in.h (perror): New declaration.
43554         * lib/perror.c: New file.
43555         * m4/perror.m4: New file.
43556         * modules/perror: New file.
43557         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43558         * doc/posix-functions/perror.texi: Mention the perror module.
43559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43560         REPLACE_PERROR.
43561         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43562         REPLACE_PERROR.
43563
43564 2008-09-14  Bruno Haible  <bruno@clisp.org>
43565
43566         * modules/stdio (Makefile.am): Reorder to match the order in
43567         lib/stdio.in.h.
43568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43569
43570 2008-09-13  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43573
43574 2008-09-13  Bruno Haible  <bruno@clisp.org>
43575
43576         Extend strerror to cover the added errno values.
43577         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43578         (rpl_strerror): Provide error messages for the added errno values and
43579         for the WSA* values.
43580         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43581         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43582         strerror.
43583         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43584         * modules/strerror (Depends-on): Add errno.
43585         * doc/posix-functions/strerror.texi: Document the change.
43586         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43587         and EOVERFLOW.
43588
43589 2008-09-13  Bruno Haible  <bruno@clisp.org>
43590
43591         * modules/EOVERFLOW: Remove file.
43592         * m4/eoverflow.m4: Remove file.
43593         * modules/EOVERFLOW-tests: Remove file.
43594         * tests/test-EOVERFLOW.c: Remove file.
43595         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43596         * modules/ftell (Depends-on): Likewise.
43597         * modules/getdelim (Depends-on): Likewise.
43598         * modules/getugroups (Depends-on): Likewise.
43599         * modules/poll (Depends-on): Likewise.
43600         * modules/snprintf (Depends-on): Likewise.
43601         * modules/sprintf-posix (Depends-on): Likewise.
43602         * modules/vasnprintf (Depends-on): Likewise.
43603         * modules/vasprintf (Depends-on): Likewise.
43604         * modules/vfprintf-posix (Depends-on): Likewise.
43605         * modules/vsnprintf (Depends-on): Likewise.
43606         * modules/vsprintf-posix (Depends-on): Likewise.
43607         * modules/xvasprintf (Depends-on): Likewise.
43608         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43609         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43610         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43611         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43612         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43613         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43614         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43615         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43616         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43617         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43618         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43619         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43620         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43621         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43622         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43623         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43624         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43625         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43626         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43627         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43628         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43629         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43630         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43631         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43632         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43633         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43634         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43635         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43636         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43637         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43638         * MODULES.html.sh: Remove EOVERFLOW.
43639         * NEWS: Mention the change.
43640
43641 2008-09-13  Bruno Haible  <bruno@clisp.org>
43642
43643         * modules/errno-tests: New file.
43644         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43645
43646         * lib/errno.in.h: New file.
43647         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43648         * modules/errno: New file.
43649         * doc/posix-headers/errno.texi: Update documentation.
43650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43651
43652 2008-09-13  Bruno Haible  <bruno@clisp.org>
43653
43654         * tests/test-poll.c: Use #if for native Windows, rather than testing
43655         __MSVCRT__.
43656
43657 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43658             Bruno Haible  <bruno@clisp.org>
43659
43660         * lib/glob.c: Don't include <pwd.h> on native Windows.
43661         (WINDOWS32): New macro.
43662         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43663
43664 2008-09-13  Bruno Haible  <bruno@clisp.org>
43665
43666         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43667         (ETIMEDOUT): Remove macro.
43668         (glthread_cond_timedwait_multithreaded): New declaration.
43669         (glthread_cond_timedwait): Use it.
43670         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43671         (glthread_cond_timedwait_multithreaded): New function.
43672
43673 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43674
43675         * modules/poll-tests: Do not check for io.h.
43676         * tests/test-poll.c: Check for __MSVCRT__ instead.
43677
43678 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43679
43680         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43681         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43682         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43683
43684 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43685
43686         * modules/poll-tests: New.
43687         * tests/test-poll.c: New.
43688
43689 2008-09-12  Eric Blake  <ebb9@byu.net>
43690
43691         frexp: test for NetBSD failure on -0.0
43692         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43693         not all, bugs from NetBSD 3.0 have been fixed.
43694         * doc/posix-functions/frexp.texi (frexp): Document bug.
43695         Reported by Thomas Klausner.
43696
43697         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43698         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43699         literal -0.0.
43700         Reported by Jonathan C. Patschke <jp@centtech.com>.
43701
43702 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43703
43704         * lib/glthread/cond.h: Use dummy implementation also if
43705         USE_WIN32_THREADS.
43706
43707 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43708
43709         * modules/fnmatch-posix (License): Change to LGPLv2+.
43710         * modules/fnmatch-gnu (License): Likewise.
43711
43712 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43713
43714         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43715
43716 2008-09-11  Jim Meyering  <meyering@redhat.com>
43717
43718         * users.txt: Add gtk-vnc.
43719
43720 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43721
43722         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43723         rotate amounts.
43724
43725         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43726         required for 16-bit and 8-bit rotates.
43727         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43728         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43729         UINT8_MAX instead of hard-coded constants.
43730         Suggested by Paul Eggert.
43731
43732 2008-09-07  Bruno Haible  <bruno@clisp.org>
43733
43734         * tests/test-striconveh.c (main): Check behaviour when converting from
43735         UTF-7.
43736
43737         Make striconveh work better with stateful encodings.
43738         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43739         that iconv does not increment the inptr when returning -1/EINVAL.
43740
43741 2008-09-07  Bruno Haible  <bruno@clisp.org>
43742
43743         * build-aux/config.rpath: Update according to libtool-2.2.6.
43744         * build-aux/config.libpath: Likewise.
43745
43746 2008-09-06  Bruno Haible  <bruno@clisp.org>
43747
43748         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43749         * lib/freadptr.c (freadptr): Likewise.
43750         * lib/freadseek.c (freadptrinc): Likewise.
43751         Reported by Simon Josefsson.
43752
43753 2008-09-06  Bruno Haible  <bruno@clisp.org>
43754
43755         * modules/freadptr (License): Change to LGPLv2+.
43756         * modules/freadseek (License): Likewise.
43757         Suggested by Eric Blake.
43758
43759         * modules/memchr2 (License): Change to LGPLv2+.
43760         Approved by Eric Blake.
43761
43762 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43763             Bruno Haible  <bruno@clisp.org>
43764
43765         Make gnulib-tool work with native 'sed' on AIX.
43766         * gnulib-tool (sed_noop): New variable.
43767         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43768         func_add_or_update, func_create_testdir): Use it to initialize sed
43769         script variables.
43770         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43771
43772 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43773             Bruno Haible  <bruno@clisp.org>
43774
43775         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43776         also works after #include directives.
43777
43778 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43779
43780         getdate.y: reject an out-of-range timezone value
43781         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43782         the range [-24...+24].  When specified with only one or two digits,
43783         * tests/test-getdate.c: Tests for the fix.
43784         * doc/getdate.texi: Document this change.
43785
43786 2008-09-03  Bruno Haible  <bruno@clisp.org>
43787
43788         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43789
43790 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43791
43792         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43793         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43794         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43795         Blake <ebb9@byu.net>.
43796
43797         * tests/test-bitrotate.c: Add more test vectors.
43798
43799 2008-09-02  Eric Blake  <ebb9@byu.net>
43800
43801         vasnprintf-posix: handle large precision via %.*d
43802         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43803         when handling it ourselves.
43804         * tests/test-vasnprintf-posix.c (test_function): Add test.
43805         * tests/test-snprintf-posix.h (test_function): Likewise.
43806         * tests/test-sprintf-posix.h (test_function): Likewise.
43807         * tests/test-vasprintf-posix.c (test_function): Likewise.
43808         Reported by Alain Guibert.
43809
43810 2008-09-01  Eric Blake  <ebb9@byu.net>
43811
43812         c-stack: make configure-time check more robust
43813         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43814         successful sigaction call.
43815         Reported by Tom G. Christensen.
43816
43817 2008-09-01  Bruno Haible  <bruno@clisp.org>
43818
43819         New module 'findprog-lgpl'.
43820         * modules/findprog-lgpl: New file.
43821         * lib/findprog-lgpl.c: New file.
43822         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43823         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43824         to decide whether to use strdup or xstrdup, concatenated_filename or
43825         xconcatenated_filename.
43826
43827 2008-09-01  Bruno Haible  <bruno@clisp.org>
43828
43829         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43830         'xconcat-filename' (GPL).
43831         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43832         (License): Change to LGPLv2+.
43833         * modules/xconcat-filename: New file.
43834         * lib/concat-filename.h (concatenated_filename): Change specification.
43835         (xconcatenated_filename): New declaration.
43836         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43837         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43838         memory situations.
43839         * lib/xconcat-filename.c: New file.
43840         * NEWS: Mention the change.
43841         * lib/findprog.c: Include concat-filename.h, not filename.h.
43842         (find_in_path): Use xconcatenated_filename instead of
43843         concatenated_filename.
43844         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43845         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43846         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43847         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43848         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43849         instead of concatenated_filename.
43850         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43851         (execute_java_class): Use xconcatenated_filename instead of
43852         concatenated_filename.
43853         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43854         * modules/javacomp (Depends-on): Likewise.
43855         * modules/javaexec (Depends-on): Likewise.
43856
43857 2008-09-01  Bruno Haible  <bruno@clisp.org>
43858
43859         Split module 'filename' into 'filename' and 'concat-filename'.
43860         * modules/filename: Keep only lib/filename.h.
43861         (License): Change to LGPLv2+.
43862         * modules/concat-filename: New file, extracted from modules/filename.
43863         * lib/filename.h (concatenated_filename): Remove declaration.
43864         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43865         * lib/concat-filename.c: Include concat-filename.h.
43866         * NEWS: Mention the change.
43867
43868 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43869
43870         * lib/bitrotate.h (rotl8, rotr8): Add.
43871
43872         * modules/bitrotate (configure.ac): Need
43873         AC_REQUIRE([AC_C_INLINE]).
43874         (Description): Mention stdint.h.  Reported by Bruno Haible
43875         <bruno@clisp.org>.
43876
43877         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43878         Paolo Bonzini <bonzini@gnu.org>.
43879
43880 2008-08-31  Bruno Haible  <bruno@clisp.org>
43881
43882         Assume Solaris specific bi-arch conventions on Solaris systems.
43883         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43884         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43885         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43886         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43887         like acl_libdirstem.
43888         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43889         acl_libdirstem.
43890         * NEWS: Mention the change.
43891         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43892
43893 2008-08-31  Jim Meyering  <meyering@redhat.com>
43894
43895         * lib/strftime.h: Add comments describing the two added arguments.
43896
43897         remove duplicate #include directives
43898         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43899         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43900
43901 2008-08-31  Bruno Haible  <bruno@clisp.org>
43902
43903         New module 'sigpipe-die'.
43904         * modules/sigpipe-die: New file.
43905         * lib/sigpipe-die.h: New file.
43906         * lib/sigpipe-die.c: New file.
43907         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43908
43909 2008-08-31  Bruno Haible  <bruno@clisp.org>
43910
43911         Don't override previously installed signal handlers.
43912         * lib/fatal-signal.c (saved_sigactions): New variable.
43913         (uninstall_handlers): Reset the signal to the saved handler, not
43914         to SIG_DFL (except when ignored).
43915         (install_handlers): Save the previous handlers.
43916
43917 2008-08-30  Bruno Haible  <bruno@clisp.org>
43918
43919         * gnulib-tool (func_reset_sigpipe): New function.
43920         (func_get_automake_snippet, func_modules_transitive_closure,
43921         func_import): Invoke it before a join command that reads from stdin,
43922         to avoid "echo: write error: Broken pipe" error messages on stderr.
43923         Reported by Sam Steingold <sds@gnu.org>.
43924
43925 2008-08-30  Bruno Haible  <bruno@clisp.org>
43926
43927         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43928         Code copied from m4/open.m4.
43929         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43930         access and the filename ends in a slash. Code copied from lib/open.c.
43931         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43932         * tests/test-fopen.c (main): Check against bug with trailing slash.
43933
43934 2008-08-29  Bruno Haible  <bruno@clisp.org>
43935
43936         Avoid some "gcc -pedantic" warnings.
43937         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43938         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43939         * lib/dirent.in.h: Likewise.
43940         * lib/fcntl.in.h: Likewise.
43941         * lib/float.in.h: Likewise.
43942         * lib/iconv.in.h: Likewise.
43943         * lib/inttypes.in.h: Likewise.
43944         * lib/locale.in.h: Likewise.
43945         * lib/math.in.h: Likewise.
43946         * lib/netinet_in.in.h: Likewise.
43947         * lib/search.in.h: Likewise.
43948         * lib/signal.in.h: Likewise.
43949         * lib/stdarg.in.h: Likewise.
43950         * lib/stdint.in.h: Likewise.
43951         * lib/stdio.in.h: Likewise.
43952         * lib/stdlib.in.h: Likewise.
43953         * lib/string.in.h: Likewise.
43954         * lib/strings.in.h: Likewise.
43955         * lib/sys_select.in.h: Likewise.
43956         * lib/sys_socket.in.h: Likewise.
43957         * lib/sys_stat.in.h: Likewise.
43958         * lib/sys_time.in.h: Likewise.
43959         * lib/sysexits.in.h: Likewise.
43960         * lib/time.in.h: Likewise.
43961         * lib/unistd.in.h: Likewise.
43962         * lib/wchar.in.h: Likewise.
43963         * lib/wctype.in.h: Likewise.
43964         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43965         * modules/fchdir (Makefile.am): Likewise.
43966         * modules/fcntl (Makefile.am): Likewise.
43967         * modules/float (Makefile.am): Likewise.
43968         * modules/iconv_open (Makefile.am): Likewise.
43969         * modules/inttypes (Makefile.am): Likewise.
43970         * modules/locale (Makefile.am): Likewise.
43971         * modules/math (Makefile.am): Likewise.
43972         * modules/netinet_in (Makefile.am): Likewise.
43973         * modules/search (Makefile.am): Likewise.
43974         * modules/signal (Makefile.am): Likewise.
43975         * modules/stdarg (Makefile.am): Likewise.
43976         * modules/stdint (Makefile.am): Likewise.
43977         * modules/stdio (Makefile.am): Likewise.
43978         * modules/stdlib (Makefile.am): Likewise.
43979         * modules/string (Makefile.am): Likewise.
43980         * modules/strings (Makefile.am): Likewise.
43981         * modules/sys_select (Makefile.am): Likewise.
43982         * modules/sys_socket (Makefile.am): Likewise.
43983         * modules/sys_stat (Makefile.am): Likewise.
43984         * modules/sys_time (Makefile.am): Likewise.
43985         * modules/sysexits (Makefile.am): Likewise.
43986         * modules/time (Makefile.am): Likewise.
43987         * modules/unistd (Makefile.am): Likewise.
43988         * modules/wchar (Makefile.am): Likewise.
43989         * modules/wctype (Makefile.am): Likewise.
43990         Reported by Reuben Thomas <rrt@sc3d.org>.
43991
43992 2008-08-29  Bruno Haible  <bruno@clisp.org>
43993
43994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43995         any more.
43996
43997 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43998
43999         * MODULES.html.sh (Misc): Add bitrotate.
44000
44001         * modules/bitrotate: New file.
44002
44003         * lib/bitrotate.h: New file.
44004
44005         * modules/bitrotate-tests: New file.
44006
44007         * tests/test-bitrotate.c: New file.
44008
44009         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44010         on the bitrotate module.
44011
44012         * lib/arctwo.c: Use new bitrotate module.
44013
44014 2008-08-29  Jim Meyering  <meyering@redhat.com>
44015
44016         bootstrap: merge changes from coreutils
44017         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44018         of copied files.  Remove a kludge, now that this is fixed.
44019         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44020         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44021         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44022
44023 2008-08-29  Bruno Haible  <bruno@clisp.org>
44024
44025         * MODULES.html.sh: Remove --cvs-urls option.
44026
44027 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44028
44029         maint.mk: adjust to file name change
44030         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44031
44032 2008-08-28  Jim Meyering  <meyering@redhat.com>
44033
44034         * modules/getndelim2 (License): Relicense to LGPLv2+.
44035         Approved by Richard Stallman for the version of 1995, and by
44036         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44037
44038 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44039
44040         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44041         dummy if one is not available.  Do not touch them if
44042         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44043         (getc_maybe_unlocked): New.
44044         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44045
44046 2008-08-26  Eric Blake  <ebb9@byu.net>
44047
44048         doc/INSTALL: resync from autoconf
44049         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44050         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44051         moving...
44052         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44053         * INSTALL: Regenerate.
44054         * INSTALL.ISO: New file.
44055         * INSTALL.UTF-8: Likewise.
44056
44057 2008-08-26  Jim Meyering  <meyering@redhat.com>
44058
44059         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44060         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44061         these definitions conditional, so that they may be overridden, too.
44062
44063 2008-08-26  Bruno Haible  <bruno@clisp.org>
44064
44065         Generate INSTALL file variants with prettier quotes.
44066         * doc/Makefile (INSTALL_PRELUDE): New macro.
44067         (INSTALL): Use it.
44068         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44069
44070 2008-08-26  Bruno Haible  <bruno@clisp.org>
44071
44072         Run makeinfo in an English locale.
44073         * doc/Makefile (MAKEINFO): New variable.
44074
44075 2008-08-26  Bruno Haible  <bruno@clisp.org>
44076
44077         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44078         Suggested by Eric Blake.
44079
44080 2008-08-25  Bruno Haible  <bruno@clisp.org>
44081
44082         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44083
44084 2008-08-25  Eric Blake  <ebb9@byu.net>
44085
44086         c-stack: test that stack overflow can be caught
44087         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44088         that platform allows handling stack overflow; at least OS/2 EMX
44089         has sigaltstack, but crashes before transferring control to
44090         handler on stack overflow.
44091         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44092         check for HAVE_STACK_OVERFLOW_HANDLING.
44093         Reported by Elbert Pol.
44094
44095 2008-08-25  Bruno Haible  <bruno@clisp.org>
44096
44097         * doc/posix-functions/strftime.texi: Fix description of strftime
44098         module.
44099
44100 2008-08-24  Bruno Haible  <bruno@clisp.org>
44101
44102         * tests/uniwidth/test-uc_width2.c: New file.
44103         * tests/uniwidth/test-uc_width2.sh: New file.
44104         * modules/uniwidth/width-tests (Files): Add the new files.
44105         (TESTS): Add uniwidth/test-uc_width2.sh.
44106         (TESTS_ENVIRONMENT): New variable.
44107         (check_PROGRAMS): Add test-uc_width2.
44108         (test_uc_width2_SOURCES): New variable.
44109
44110         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44111         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44112         not 0x00AB.
44113         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44114
44115 2008-08-22  Eric Blake  <ebb9@byu.net>
44116
44117         test-lock, test-tls: mention why a test is skipped
44118         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44119         skipped.
44120         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44121
44122         count-one-bits: relax license
44123         * modules/count-one-bits (License): Relicense to LGPLv2+.
44124         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44125
44126 2008-08-22  Andreas Schwab  <schwab@suse.de>
44127
44128         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44129         Remove spurious space in assignment.
44130
44131 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44132
44133         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44134         Paul Eggert <eggert@CS.UCLA.EDU>.
44135
44136 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44137
44138         * modules/gettext: Add m4/threadlib.m4.
44139
44140 2008-08-19  Eric Blake  <ebb9@byu.net>
44141
44142         test-c-stack: fix compilation failure on FreeBSD 5.0
44143         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44144         headers before <sys/resource.h>.
44145         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44146         the bug.
44147         Reported by Nelson H. F. Beebe.
44148
44149         strverscmp: migrate from "strverscmp.h" to <string.h>
44150         * modules/string (Makefile.am): Add new hooks.
44151         * modules/strverscmp (Files): Remove strverscmp.h.
44152         (Depends-on): Add string.
44153         (configure.ac): Add indicator.
44154         (Include): Mention new header.
44155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44156         defaults.
44157         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44158         results.
44159         * lib/strverscmp.h: Delete.
44160         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44161         * tests/test-strverscmp.c (includes): Adjust client.
44162         * lib/check-version.c (includes): Likewise.
44163         * NEWS: Document the change.
44164
44165         strverscmp: add unit test
44166         * modules/strverscmp-tests: New file.
44167         * tests/test-strverscmp.c: Likewise.
44168
44169 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44170
44171         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44172         regarding Windows crypto stuff, from Mono.
44173
44174 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44175
44176         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44177         if present, for intel RND.  Return error on failures.
44178
44179 2008-08-18  Ben Pfaff  <blp@gnu.org>
44180
44181         gitlog-to-changelog: give better diagnostic for failed pipe-open
44182         * build-aux/gitlog-to-changelog: Improve error message: suggest
44183         that the version of Git may be too old.
44184
44185 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44186
44187         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44188         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44189
44190 2008-08-18  Bruno Haible  <bruno@clisp.org>
44191
44192         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44193         pthread_in_use().
44194
44195 2008-08-18  Bruno Haible  <bruno@clisp.org>
44196
44197         * lib/glthread/threadlib.c: Include <pthread.h>.
44198
44199 2008-08-18  Bruno Haible  <bruno@clisp.org>
44200
44201         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44202         glthread_recursive_lock_* macros.
44203         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44204         Fix syntax error.
44205
44206 2008-08-18  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/glthread/thread.c: Avoid forcing a context switch right after
44209         thread creation.
44210
44211 2008-08-17  Bruno Haible  <bruno@clisp.org>
44212
44213         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44214         * lib/glthread/thread.h: Provide Win32 specific implementation.
44215         * modules/thread (Files): Add lib/glthread/thread.c.
44216         (Depends-on): Add lock.
44217         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44218
44219 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44220
44221         New module 'yield'.
44222         * modules/yield: New file.
44223         * lib/glthread/yield.h: New file.
44224         * m4/yield.m4: New file.
44225         * MODULES.html.sh (Multithreading): Add yield.
44226
44227 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44228
44229         New module 'thread'.
44230         * modules/thread: New file.
44231         * lib/glthread/thread.h: New file.
44232         * m4/thread.m4: New file.
44233         * MODULES.html.sh (Multithreading): Add thread.
44234
44235 2008-08-17  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/glthread/lock.h: Include <stdlib.h> always.
44238         * lib/glthread/tls.h: Likewise.
44239         * lib/glthread/cond.h: Likewise.
44240
44241 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44242
44243         New module 'cond'.
44244         * modules/cond: New file.
44245         * lib/glthread/cond.h: New file.
44246         * lib/glthread/cond.c: New file.
44247         * m4/cond.m4: New file.
44248         * MODULES.html.sh (Multithreading): Add cond.
44249
44250 2008-08-16  Eric Blake  <ebb9@byu.net>
44251
44252         c-stack: fix regression on Irix 5.3 from 2008-06-21
44253         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44254         sa_sigaction...
44255         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44256         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44257         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44258         * modules/signal (Makefile.am): Use the value.
44259         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44260         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44261         * doc/posix-headers/signal.texi (signal.h): Document this
44262         portability issue.
44263         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44264         Reported by Tom G. Christensen.
44265
44266 2008-08-17  Bruno Haible  <bruno@clisp.org>
44267
44268         New module 'threadlib'.
44269         * modules/threadlib: New file.
44270         * lib/glthread/threadlib.c: New file, extracted from
44271         lib/glthread/lock.c.
44272         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44273         functions.
44274         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44275         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44276         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44277         macros.
44278         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44279         (gl_DISABLE_THREADS): Remove macro.
44280         * modules/lock (Files): Remove build-aux/config.rpath.
44281         (Depends-on): Remove havelib. Add threadlib.
44282         (configure.ac-early): Remove section.
44283         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44284         * modules/tls (Depends-on): Remove lock. Add threadlib.
44285         (Link): New section, copied from threadlib.
44286         * MODULES.html.sh (Multithreading): Add threadlib.
44287
44288 2008-08-14  Bruno Haible  <bruno@clisp.org>
44289
44290         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44291         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44292         glthread_rwlock_unlock, glthread_rwlock_destroy,
44293         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44294         glthread_recursive_lock_destroy): Define as macros always.
44295         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44296         glthread_lock_lock.
44297         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44298         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44299         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44300         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44301         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44302         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44303         (glthread_recursive_lock_lock_func): Renamed from
44304         glthread_recursive_lock_lock.
44305         (glthread_recursive_lock_unlock_func): Renamed from
44306         glthread_recursive_lock_unlock.
44307         (glthread_recursive_lock_destroy_func): Renamed from
44308         glthread_recursive_lock_destroy.
44309
44310 2008-08-14  Bruno Haible  <bruno@clisp.org>
44311
44312         * lib/glthread/lock.h: Renamed from lib/lock.h.
44313         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44314         * lib/glthread/tls.h: Renamed from lib/tls.h.
44315         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44316         * lib/fstrcmp.c: Update includes.
44317         * lib/strsignal.c: Update includes.
44318         * modules/lock (Files, Makefile.am): Update.
44319         (Include): Change to "glthread/lock.h".
44320         * modules/tls (Files, Makefile.am): Update.
44321         (Include): Change to "glthread/tls.h".
44322         * tests/test-lock.c: Update includes.
44323         * tests/test-tls.c: Update includes.
44324         * NEWS: Mention the renamed header files.
44325
44326 2008-08-11  Jim Meyering  <meyering@redhat.com>
44327
44328         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44329
44330 2008-08-11  Eric Blake  <ebb9@byu.net>
44331
44332         test-c-stack: avoid C99-ism
44333         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44334         before statement.
44335         Reported by Alain Guibert.
44336
44337 2008-08-10  Jim Meyering  <meyering@redhat.com>
44338
44339         ensure that return value of uinttostr et al are not ignored
44340         * lib/inttostr.h (__GNUC_PREREQ): Define.
44341         (__attribute_warn_unused_result__): Define.
44342         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44343
44344 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44345
44346         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44347         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44348
44349 2008-08-07  Jim Meyering  <meyering@redhat.com>
44350
44351         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44352
44353         * modules/mkstemp (License): Relicense under LGPLv2+.
44354         * modules/tempname (License): Likewise.
44355
44356 2008-08-06  Bruno Haible  <bruno@clisp.org>
44357
44358         * lib/poll.c (poll): Further micro-optimization.
44359
44360 2008-08-06  Jim Meyering  <meyering@redhat.com>
44361
44362         inet_pton.c: use locale-independent tolower
44363         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44364         (inet_pton6): Use c_tolower rather than tolower.
44365         * modules/inet_pton (Depends-on): Add c-ctype.
44366
44367 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44368
44369         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44370         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44371
44372 2008-08-06  Jim Meyering  <meyering@redhat.com>
44373
44374         * modules/inet_pton (License): Relicense under LGPLv2+.
44375
44376 2008-08-03  Bruno Haible  <bruno@clisp.org>
44377
44378         Additional non-aborting API for lock and tls.
44379         * lib/lock.h: Include <errno.h>.
44380         (glthread_lock_init): New macro/function.
44381         (gl_lock_init): Define as wrapper around glthread_lock_init.
44382         (glthread_lock_lock): New macro/function.
44383         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44384         (glthread_lock_unlock): New macro/function.
44385         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44386         (glthread_lock_destroy): New macro/function.
44387         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44388         (glthread_rwlock_init): New macro/function.
44389         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44390         (glthread_rwlock_rdlock): New macro/function.
44391         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44392         (glthread_rwlock_wrlock): New macro/function.
44393         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44394         (glthread_rwlock_unlock): New macro/function.
44395         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44396         (glthread_rwlock_destroy): New macro/function.
44397         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44398         (glthread_recursive_lock_init): New macro/function.
44399         (gl_recursive_lock_init): Define as wrapper around
44400         glthread_recursive_lock_init.
44401         (glthread_recursive_lock_lock): New macro/function.
44402         (gl_recursive_lock_lock): Define as wrapper around
44403         glthread_recursive_lock_lock.
44404         (glthread_recursive_lock_unlock): New macro/function.
44405         (gl_recursive_lock_unlock): Define as wrapper around
44406         glthread_recursive_lock_unlock.
44407         (glthread_recursive_lock_destroy): New macro/function.
44408         (gl_recursive_lock_destroy): Define as wrapper around
44409         glthread_recursive_lock_destroy.
44410         (glthread_once): New macro/function.
44411         (gl_once): Define as wrapper around glthread_once.
44412         Update function declarations.
44413         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44414         glthread_rwlock_init. Return error code.
44415         (glthread_rwlock_rdlock_multithreaded): Renamed from
44416         glthread_rwlock_rdlock. Return error code.
44417         (glthread_rwlock_wrlock_multithreaded): Renamed from
44418         glthread_rwlock_wrlock. Return error code.
44419         (glthread_rwlock_unlock_multithreaded): Renamed from
44420         glthread_rwlock_unlock. Return error code.
44421         (glthread_rwlock_destroy_multithreaded): Renamed from
44422         glthread_rwlock_destroy. Return error code.
44423         (glthread_recursive_lock_init_multithreaded): Renamed from
44424         glthread_recursive_lock_init. Return error code.
44425         (glthread_recursive_lock_lock_multithreaded): Renamed from
44426         glthread_recursive_lock_lock. Return error code.
44427         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44428         glthread_recursive_lock_unlock. Return error code.
44429         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44430         glthread_recursive_lock_destroy. Return error code.
44431         (glthread_once_call): Make static.
44432         (glthread_once_multithreaded): Renamed from glthread_once.
44433         * lib/tls.h: Include <errno.h>.
44434         (glthread_tls_key_init): New macro/function.
44435         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44436         (glthread_tls_set): New macro/function.
44437         (gl_tls_set): Define as wrapper around glthread_tls_set.
44438         (glthread_tls_key_destroy): New macro/function.
44439         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44440         Update function declarations.
44441         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44442         glthread_tls_get.
44443         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44444
44445 2008-08-04  Eric Blake  <ebb9@byu.net>
44446
44447         gnumakefile: use space, not TAB, outside of targets
44448         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44449
44450 2008-08-02  Jim Meyering  <meyering@redhat.com>
44451
44452         getdate.y: avoid locale-dependent date parsing failure
44453         In Turkish locales, getdate would fail to recognize keywords
44454         containing a lowercase "i".  The solution is not to rely on
44455         locale-sensitive case-conversion.
44456         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44457         (lookup_word): Use c_toupper in place of toupper.
44458         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44459         Reported by Vefa Bicakci <bicave@superonline.com> in
44460         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44461         * modules/getdate (Depends-on): Add c-ctype.
44462
44463 2008-08-02  Bruno Haible  <bruno@clisp.org>
44464
44465         * gnulib-tool (func_import): When updating or creating a .gitignore
44466         file, prepend each added line with a slash, and ignore leading slashes
44467         from the existing lines.
44468         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44469
44470 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44471
44472         Portability fix for GNU make 3.79.1.
44473         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44474         versions do not understand.
44475
44476 2008-08-01  Bruno Haible  <bruno@clisp.org>
44477
44478         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44479         * tests/test-isnanf.h (zero): New variable.
44480         (main): Avoid literal -0.0f.
44481         * tests/test-isnand.h (zero): New variable.
44482         (main): Avoid literal -0.0.
44483         * tests/test-isnanl.h (zero): New variable.
44484         (main): Avoid literal -0.0L.
44485         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44486         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44487         -0.0, -0.0L.
44488         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44489         (test_signbitd): Avoid literal -0.0.
44490         (test_signbitl): Avoid literal -0.0L.
44491         * tests/test-ceilf1.c (zero): New variable.
44492         (main): Avoid literal -0.0f.
44493         * tests/test-ceill.c (zero): New variable.
44494         (main): Avoid literal -0.0L.
44495         * tests/test-floorf1.c (zero): New variable.
44496         (main): Avoid literal -0.0f.
44497         * tests/test-floorl.c (zero): New variable.
44498         (main): Avoid literal -0.0L.
44499         * tests/test-roundf1.c (zero): New variable.
44500         (main): Avoid literal -0.0f.
44501         * tests/test-round1.c (zero): New variable.
44502         (main): Avoid literal -0.0.
44503         * tests/test-roundl.c (zero): New variable.
44504         (main): Avoid literal -0.0L.
44505         * tests/test-truncf1.c (zero): New variable.
44506         (main): Avoid literal -0.0f.
44507         * tests/test-trunc1.c (zero): New variable.
44508         (main): Avoid literal -0.0.
44509         * tests/test-truncl.c (zero): New variable.
44510         (main): Avoid literal -0.0L.
44511         * tests/test-frexp.c (zero): New variable.
44512         (main): Avoid literal -0.0.
44513         * tests/test-frexpl.c (zero): New variable.
44514         (main): Avoid literal -0.0L.
44515         * tests/test-ldexpl.c (zero): New variable.
44516         (main): Avoid literal -0.0L.
44517         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44518         (zerod, zerol): New variables.
44519         (test_function): Avoid literals -0.0, -0.0L.
44520         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44521         (zerod, zerol): New variables.
44522         (test_function): Avoid literals -0.0, -0.0L.
44523         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44524         (zerod, zerol): New variables.
44525         (test_function): Avoid literals -0.0, -0.0L.
44526         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44527         (zerod, zerol): New variables.
44528         (test_function): Avoid literals -0.0, -0.0L.
44529         * tests/test-strtod.c (zero): New variable.
44530         (main): Avoid literal -0.0.
44531         Reported by Jonathan C. Patschke <jp@centtech.com>.
44532
44533 2008-07-31  Jim Meyering  <meyering@redhat.com>
44534
44535         sha256.h: correct definition of SHA224_DIGEST_SIZE
44536         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44537         Reported by Paulie Pena IV <paulie4@gmail.com>.
44538         Define as 224 / 8, rather than as a literal.
44539         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44540         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44541         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44542
44543 2008-07-31  Bruno Haible  <bruno@clisp.org>
44544
44545         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44546         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44547         Reported by Jonathan Patschke <jp@centtech.com>.
44548
44549 2008-07-31  Bruno Haible  <bruno@clisp.org>
44550
44551         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44552         Reported by Paolo Bonzini <bonzini@gnu.org>.
44553
44554 2008-07-30  Eric Blake  <ebb9@byu.net>
44555
44556         test-strtod: allow compilation without -lm
44557         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44558         Reported by Dennis Clarke <blastwave@gmail.com>.
44559
44560 2008-07-28  Jim Meyering  <meyering@redhat.com>
44561
44562         bootstrap: work also when there are no .po files in po/
44563         * build-aux/bootstrap (update_po_files): Complete the change
44564         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44565
44566 2008-07-27  Jim Meyering  <meyering@redhat.com>
44567
44568         * users.txt: Add zile.
44569
44570 2008-07-26  Ben Pfaff  <blp@gnu.org>
44571
44572         Add missing dependencies on new m4/exponent[fdl].m4 files.
44573         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44574         * modules/isnand-nolibm: Add m4/exponentd.m4.
44575         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44576         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44577         m4/isnan[fdl].m4, because the macros actually used moved.
44578         Reported by Jim Meyering.
44579
44580 2008-07-14  Ben Pfaff  <blp@gnu.org>
44581
44582         Add isinf module.
44583         * lib/isinf.c: New file.
44584         * lib/math.in.h: Define isinf macro if we have decided to replace
44585         it.
44586         * m4/isinf.m4: New file.
44587         * m4/math_h.m4: Initialize and substitute variables for isinf
44588         module.
44589         * modules/isinf: New file.
44590         * modules/isinf-tests: New file.
44591         * modules/math: Add substitutions for new module.
44592         * tests/test-isinf.c: New file.
44593         * doc/posix-functions/isinf.texi: Mention new module.
44594         * MODULES.html.sh: Mention new module.
44595
44596 2008-07-14  Ben Pfaff  <blp@gnu.org>
44597
44598         Factor out some macros for use by additional modules.
44599         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44600         exponentf.m4.
44601         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44602         exponentd.m4.
44603         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44604         file exponentl.m4.
44605         * m4/exponentf.m4: New file.
44606         * m4/exponentd.m4: New file.
44607         * m4/exponentl.m4: New file.
44608         * modules/isnanf: Use new file m4/exponentf.m4.
44609         * modules/isnand: Use new file m4/exponentd.m4.
44610         * modules/isnanl: Use new file m4/exponentl.m4.
44611
44612 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44613
44614         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44615         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44616         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44617         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44618
44619         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44620         readlink on platforms without PATH_MAX.
44621
44622 2008-07-21  Eric Blake  <ebb9@byu.net>
44623
44624         Warn, not fail, on stale version.
44625         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44626
44627         Don't allow installation with stale devel version number.
44628         * top/GNUmakefile (_is-install-target): New macro.
44629         (_curr-ver): Forbid installation with stale version number.
44630
44631 2008-07-20  Bruno Haible  <bruno@clisp.org>
44632
44633         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44634         TESTS_ENVIRONMENT.
44635         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44636
44637 2008-07-20  Bruno Haible  <bruno@clisp.org>
44638
44639         * lib/c-stack.h (c_stack_action): Add documentation.
44640         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44641
44642 2008-07-20  Bruno Haible  <bruno@clisp.org>
44643
44644         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44645         * modules/readlink (License): Likewise.
44646
44647 2008-07-17  Eric Blake  <ebb9@byu.net>
44648
44649         * modules/c-stack (Link): Fix typo.
44650
44651         Make c-stack use libsigsegv, when available.
44652         * modules/c-stack (Depends-on): Add libsigsegv.
44653         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44654         needed.
44655         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44656         (segv_handler, overflow_handler, c_stack_action)
44657         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44658         implementation when libsigsegv is available, but only when using
44659         the library is necessary.
44660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44661         comment, explaining why XSI check fails on Linux.
44662         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44663         * tests/test-c-stack2.sh: Tweak skip message.
44664         * NEWS: Document new link-time requirements.
44665
44666 2008-07-16  Eric Blake  <ebb9@byu.net>
44667
44668         c-stack: Expose false positives when not using libsigsegv.
44669         * modules/c-stack-tests (Files): Expand test.
44670         * tests/test-c-stack.c (main): Add means to conditionally trigger
44671         non-overflow SIGSEGV.
44672         * tests/test-c-stack2.sh: New file.
44673
44674 2008-07-14  Bruno Haible  <bruno@clisp.org>
44675
44676         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44677         Reported by Eric Blake.
44678
44679 2008-07-14  Sam Steingold  <sds@gnu.org>
44680             Bruno Haible  <bruno@clisp.org>
44681
44682         New module libsigsegv.
44683         * modules/libsigsegv: New file.
44684         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44685         modifications.
44686         * MODULES.html.sh (Signal handling): New section.
44687
44688 2008-07-14  Bruno Haible  <bruno@clisp.org>
44689
44690         * modules/unictype/ctype-* (Description): Add the word "function".
44691         Improves the resulting doc in MODULES.html.
44692
44693 2008-07-12  Ben Pfaff  <blp@gnu.org>
44694
44695         Add longlong module.
44696         * modules/longlong: New file.
44697
44698 2008-07-12  Bruno Haible  <bruno@clisp.org>
44699
44700         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44701         to empty.
44702
44703 2008-07-10  Ben Pfaff  <blp@gnu.org>
44704
44705         Add isnan module.
44706         * doc/posix-functions/isnan.texi: Mention new module.
44707         * lib/math.in.h: Define isnan macro if we have decided to replace
44708         it.
44709         * m4/isnan.m4: New file.
44710         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44711         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44712         also.
44713         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44714         redundancy.
44715         * m4/math_h.m4: Initialize and substitute variables for isnan
44716         module.
44717         * modules/isnan: New file.
44718         * modules/isnan-tests: New file.
44719         * modules/math: Add substitutions for new module.
44720         * tests/test-isnan.c: New file.
44721         * MODULES.html.sh: Mention new module.
44722
44723 2008-07-10  Ben Pfaff  <blp@gnu.org>
44724
44725         Add isnanf module.
44726         * lib/isnanf.m4: New file.
44727         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44728         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44729         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44730         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44731         * modules/isnanf: New file.
44732         * modules/isnanf-tests: New file.
44733         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44734         files.
44735         * tests/test-isnanf-nolibm.c: factored most of its contents into
44736         new file tests/test-isnanf.h.
44737         * tests/test-isnanf.h: New file.
44738         * tests/test-isnanf.c: New file.
44739         * MODULES.html.sh: Mention new module.
44740         * doc/glibc-functions/isnanf.texi: Mention new module.
44741
44742 2008-07-10  Ben Pfaff  <blp@gnu.org>
44743
44744         Add isnand module.
44745         * lib/isnand.h: New file.
44746         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44747         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44748         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44749         functionality also.
44750         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44751         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44752         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44753         * modules/isnand: New file.
44754         * modules/isnand-tests: New file.
44755         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44756         files.
44757         * tests/test-isnand-nolibm.c: factored most of its contents into
44758         new file tests/test-isnand.h.
44759         * tests/test-isnand.h: New file.
44760         * tests/test-isnand.c: New file.
44761         * MODULES.html.sh: Mention new module.
44762
44763 2008-07-10  Ben Pfaff  <blp@gnu.org>
44764
44765         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44766         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44767         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44768         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44769         * modules/isnanf-nolibm: Update references to renamed files.
44770         * modules/isnand-nolibm: Likewise.
44771         * modules/isnanf-nolibm-tests: Likewise.
44772         * modules/isnand-nolibm-tests: Likewise.
44773         * lib/frexp.c: Likewise.
44774         * lib/isfinite.c: Likewise.
44775         * lib/signbitd.c: Likewise.
44776         * lib/signbitf.c: Likewise.
44777         * lib/vasnprintf.c: Likewise.
44778         * tests/test-ceilf1.c: Likewise.
44779         * tests/test-ceilf2.c: Likewise.
44780         * tests/test-floorf1.c: Likewise.
44781         * tests/test-floorf2.c: Likewise.
44782         * tests/test-frexp.c: Likewise.
44783         * tests/test-round1.c: Likewise.
44784         * tests/test-round2.c: Likewise.
44785         * tests/test-roundf1.c: Likewise.
44786         * tests/test-strtod.c: Likewise.
44787         * tests/test-trunc1.c: Likewise.
44788         * tests/test-trunc2.c: Likewise.
44789         * tests/test-truncf1.c: Likewise.
44790         * tests/test-truncf2.c: Likewise.
44791         * NEWS: Mention the renamed header files.
44792
44793 2008-07-11  Jim Meyering  <meyering@redhat.com>
44794
44795         vc-list-files: make the last-resort awk code more portable
44796         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44797         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44798         does not support it.
44799
44800 2008-07-10  Eric Blake  <ebb9@byu.net>
44801
44802         Work with tar's bootstrap.
44803         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44804         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44805         an m4 comment.
44806
44807 2008-07-09  Jim Meyering  <meyering@redhat.com>
44808
44809         posix-shell.m4: fix typo that made this test malfunction
44810         * m4/posix-shell.m4: Remove capitalization in variable name.
44811
44812 2008-07-08  Bruno Haible  <bruno@clisp.org>
44813
44814         * m4/onceonly.m4: Update comments.
44815         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44816
44817 2008-07-04  Jim Meyering  <meyering@redhat.com>
44818
44819         * users.txt: Add vc-dwim.
44820         (bison, coreutils): Use the gitweb URL.
44821
44822 2008-07-03  Jim Meyering  <meyering@redhat.com>
44823
44824         * users.txt: Add libffcall.  From Sam Steingold.
44825
44826 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44827
44828         getdate.y: do not ignore TZ with relative day, month or year offset
44829         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44830         relative-date-handling, since otherwise, the latter would clobber the
44831         sole output (an updated Start value) of the tz-handling block.
44832         * tests/test-getdate.c: Tests for the fix
44833
44834 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44835
44836         Recognize 'foo_LIBRARIES += libgnu.a'.
44837         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44838         makefile snippet has already specified an installation location,
44839         also using '+='.
44840
44841 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44842
44843         getdate.y: factor out common actions
44844         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44845         Use them in place of open-coded actions.
44846
44847 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44848
44849         Add self-test for getdate module.
44850         * modules/getdate-tests: New file.
44851         * tests/test-getdate.c: New file.
44852
44853 2008-06-29  Bruno Haible  <bruno@clisp.org>
44854
44855         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44856         .gitignore.
44857         Reported by Sylvain Beucler <beuc@beuc.net>.
44858
44859 2008-06-29  Bruno Haible  <bruno@clisp.org>
44860
44861         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44862         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44863
44864 2008-06-29  Bruno Haible  <bruno@clisp.org>
44865
44866         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44867         EXTRA_DIST.
44868         Reported by Sylvain Beucler <beuc@beuc.net>.
44869
44870 2008-06-26  Jim Meyering  <meyering@redhat.com>
44871
44872         make several modules depend on the "open" module
44873         This provides slightly increased consistency when opening-for-write
44874         the name of a non-directory spelled with a trailing slash.
44875         * modules/chdir-safer: Likewise.
44876         * modules/chown: Likewise.
44877         * modules/clean-temp: Likewise.
44878         * modules/copy-file: Likewise.
44879         * modules/fchdir: Likewise.
44880         * modules/fcntl-safer: Likewise.
44881         * modules/pipe: Likewise.
44882         * modules/utime: Likewise.
44883         Prompted by Eric Blake and Bruno Haible.
44884
44885 2008-06-24  Andreas Schwab  <schwab@suse.de>
44886
44887         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44888         literals can be used as initializers for global variables.
44889
44890 2008-06-23  Eric Blake  <ebb9@byu.net>
44891
44892         Make gnulib-cache.m4 easier to diff.
44893         * gnulib-tool (func_import): Allow newlines when reading cached
44894         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44895
44896 2008-06-23  Bruno Haible  <bruno@clisp.org>
44897
44898         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44899         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44900         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44901         m4/signalblocking.m4.
44902         (gl_PREREQ_SIGACTION): Don't invoke it.
44903         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44904         gl_PREREQ_SIG_HANDLER_H.
44905         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44906         Don't check for sigaction here.
44907
44908 2008-06-23  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44911         (install_handlers): Don't set the SA_RESETHAND flag.
44912
44913 2008-06-23  Bruno Haible  <bruno@clisp.org>
44914
44915         * m4/sigaction.m4: Comment fixes.
44916         * lib/signal.in.h: Likewise.
44917
44918 2008-06-23  Eric Blake  <ebb9@byu.net>
44919
44920         Fix typo.
44921         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44922
44923         Avoid SA_ namespace.
44924         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44925         Reported by Ralf Wildenhues.
44926
44927         Avoid test failure due to SA_RESTORER.
44928         * tests/test-sigaction.c (SA_MASK): New macro.
44929         (main): Avoid failing due to extension flags being set.
44930         Reported by Jim Meyering.
44931
44932         Revert use of sig-handler.h in sigprocmask.c.
44933         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44934         it requires the existence of struct sigaction.
44935         * lib/sigprocmask.c (handler_t): Restore typedef.
44936         (rpl_signal, old_handlers): Use local type.
44937
44938 2008-06-22  Bruno Haible  <bruno@clisp.org>
44939
44940         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44941         conditionally.
44942         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44943
44944 2008-06-22  Bruno Haible  <bruno@clisp.org>
44945
44946         * doc/posix-functions/siginterrupt.texi: Move note.
44947
44948         * lib/signal.in.h (SA_RESTART): New macro.
44949         * lib/sigaction.c: Update comment.
44950
44951         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44952
44953         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44954         (gl_PREREQ_SIGPROCMASK): Invoke it.
44955         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44956
44957         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44958
44959         * lib/sigprocmask.c: Update a comment.
44960
44961 2008-06-21  Eric Blake  <ebb9@byu.net>
44962
44963         Use sigaction module rather than signal().
44964         * modules/c-stack (Depends-on): Add sigaction.
44965         * modules/fatal-signal (Depends-on): Likewise.
44966         * modules/nanosleep (Depends-on): Likewise.
44967         * modules/sigprocmask (Files): Add sig-handler.h.
44968         * modules/sigaction (Files): Likewise.
44969         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44970         Eggert.
44971         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44972         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44973         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44974         (init_fatal_signals): Likewise.
44975         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44976         (siginterrupt): Delete fallback.
44977         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44978         instead.
44979         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44980         siginterrupt.
44981
44982         New module sigaction, for mingw.
44983         * modules/sigaction: New module...
44984         * modules/sigaction-tests: ...and its test.
44985         * m4/sigaction.m4: New file.
44986         * lib/sigaction.c: Likewise.
44987         * tests/test-sigaction.c: Likewise.
44988         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44989         * modules/signal (Makefile.am): Likewise.
44990         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44991         needed.
44992         * doc/posix-headers/signal.texi (signal.h): Mention provided
44993         types.
44994         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44995         that sigaction is preferable.
44996         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44997         module.
44998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44999         sigaction.
45000
45001         Improve robustness of sigprocmask by overriding signal.
45002         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45003         is in use.
45004         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45005         (SIGKILL, SIGSTOP): Provide fallbacks.
45006         (rpl_signal): Implement.
45007         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45008         signal can be called inside handlers.
45009
45010         Fix nanosleep module on mingw.
45011         * modules/nanosleep (Depends-on): Add sys_select.
45012         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45013
45014         Fix licensing of sigprocmask.
45015         * modules/raise (License): Relicense as LGPL.
45016
45017 2008-06-21  Bruno Haible  <bruno@clisp.org>
45018
45019         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45020         result if it contains question marks.
45021         Reported by Michael Geng <linux@michaelgeng.de>.
45022
45023 2008-06-19  Bruno Haible  <bruno@clisp.org>
45024
45025         Fix CVS-ism.
45026         * doc/gnulib.texi: Include updated-stamp.texi.
45027         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45028         (updated-stamp.texi): New rule.
45029         (gnulib.info): Depend on it.
45030         * doc/.gitignore: Add updated-stamp.texi.
45031         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45032
45033 2008-06-19  Bruno Haible  <bruno@clisp.org>
45034
45035         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45036         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45037
45038 2008-06-19  Eric Blake  <ebb9@byu.net>
45039
45040         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45041         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45042         Reported by Stepan Kasal.
45043
45044 2008-06-18  Bruno Haible  <bruno@clisp.org>
45045
45046         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45047         Reported by Eric Blake.
45048
45049 2008-06-18  Eric Blake  <ebb9@byu.net>
45050
45051         Work around cygwin 1.5.25 strsignal bug.
45052         * tests/test-strsignal.c: Allow for const char *.
45053         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45054
45055 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45056
45057         * users.txt: Update URL to article and add author/date
45058         information.
45059
45060 2008-06-17  Bruno Haible  <bruno@clisp.org>
45061
45062         New macro gl_DISABLE_THREADS.
45063         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45064         if the user did not pass --enable-threads or --disable-threads option.
45065         (gl_DISABLE_THREADS): New macro.
45066         Reported by Eric Blake <ebb9@byu.net>.
45067
45068 2008-06-17  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45071         when the macro ignores it.
45072         Based on a patch by Eric Blake <ebb9@byu.net>.
45073
45074 2008-06-17  Bruno Haible  <bruno@clisp.org>
45075
45076         * modules/tls (License): Change to LGPLv2+.
45077         Reported by Eric Blake.
45078
45079 2008-06-17  Eric Blake  <ebb9@byu.net>
45080
45081         Simplify c-stack prerequisites.
45082         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45084         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45085         check.
45086         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45087         <sys/resource.h>.
45088
45089         Move c-stack test into testsuite.
45090         * modules/c-stack-tests: New file.
45091         * lib/c-stack.c [DEBUG]: Move test program...
45092         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45093         fail test if sigaltstack is lacking.
45094         * tests/test-c-stack.sh: New driver file.
45095
45096 2008-06-16  Eric Blake  <ebb9@byu.net>
45097
45098         Use raise module consistently.
45099         * modules/fatal-signal (Depends-on): Add raise.
45100         * modules/sigprocmask (Depends-on): Likewise.
45101         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45102         * lib/sigprocmask.c (sigprocmask): Likewise.
45103         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45104         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45105
45106         Fix compliance bug in sigpending.
45107         * lib/sigprocmask.c (sigpending): Return pending array via
45108         parameter, not return value.
45109
45110 2008-06-14  Eric Blake  <ebb9@byu.net>
45111
45112         Improve obstack-printf test code.
45113         * tests/test-obstack-printf.c (test_function): Fix comment, and
45114         simplify usage of obstack_* in macros.  Add a test for coverage.
45115         Reported by Bruno Haible.
45116
45117 2008-06-14  Bruno Haible  <bruno@clisp.org>
45118
45119         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45120         array size as a constant, not as a const variable.
45121         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45122         AC_USE_SYSTEM_EXTENSIONS.
45123         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45124         Test whether the obstack_printf function actually exists.
45125         * modules/obstack-printf (Depends-on): Add extensions.
45126         (Include): Remove obstack.h.
45127         * modules/obstack-printf-posix (Depends-on): Add extensions.
45128         (Include): Remove obstack.h.
45129
45130 2008-06-13  Eric Blake  <ebb9@byu.net>
45131
45132         Add obstack-printf and obstack-printf-posix modules.
45133         * modules/obstack-printf: New file.
45134         * modules/obstack-printf-posix: Likewise.
45135         * MODULES.html.sh (Misc): Mention them.
45136         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45137         Likewise.
45138         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45139         Likewise.
45140         * modules/stdio (Makefile.am): Accomodate new modules.
45141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45142         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45143         Declare.
45144         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45145         functions.
45146         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45147         (gl_REPLACE_OBSTACK_PRINTF): New macros
45148         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45149         * tests/test-obstack-printf.c: New file.
45150         * modules/obstack-printf-tests: Likewise.
45151         * modules/obstack-printf-posix-tests: Likewise.
45152
45153 2008-06-11  Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45156         * lib/open.c: Include errno.h.
45157         (open): Fail when attempting to write to a file that has a trailing
45158         slash.
45159         * tests/test-open.c (main): Test against trailing slash bug.
45160         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45161
45162 2008-06-10  Bruno Haible  <bruno@clisp.org>
45163
45164         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45165         for $? to work inside the trap command, with various /bin/sh-s.
45166         * tests/test-vc-list-files-cvs.sh: Likewise.
45167
45168 2008-06-10  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/acl-internal.h: Don't include gettext.h here.
45171         * lib/set-mode-acl.c: Include gettext.h here.
45172         * lib/copy-acl.c: Likewise.
45173
45174 2008-06-10  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45177         * lib/wait-process.c (wait_subprocess): Likewise.
45178         * lib/execute.h (execute): Add termsigp argument.
45179         * lib/execute.c (execute): Likewise.
45180         * lib/csharpcomp.c (compile_csharp_using_pnet,
45181         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45182         * lib/csharpexec.c (execute_csharp_using_pnet,
45183         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45184         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45185         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45186         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45187         is_jikes_present): Update.
45188         * lib/javaexec.c (execute_java_class): Update.
45189         * lib/javaversion.c (execute_and_read_line): Update.
45190         * NEWS: Document the changes.
45191         Reported by Eric Blake.
45192
45193 2008-06-10  Eric Blake  <ebb9@byu.net>
45194
45195         Add missing include.
45196         * tests/test-strstr.c (includes): Add <signal.h>.
45197         * tests/test-strcasestr.c (includes): Likewise.
45198         * tests/test-memmem.c (includes): Likewise.
45199
45200 2008-06-10  Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/wait-process.c (wait_subprocess): Add an assertion.
45203
45204 2008-06-10  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45207
45208 2008-06-10  Bruno Haible  <bruno@clisp.org>
45209
45210         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45211         using alarm().
45212         * tests/test-strcasestr.c (main): Likewise.
45213         * tests/test-strstr.c (main): Likewise.
45214
45215 2008-06-09  Bruno Haible  <bruno@clisp.org>
45216
45217         Work around the Solaris 10 ACE ACLs ABI change.
45218         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45219         declare if ACL_NO_TRIVIAL is present.
45220         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45221         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45222         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45223         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45224         define if ACL_NO_TRIVIAL is present.
45225         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45226         and use the current ABI.
45227         (file_has_acl): Use same #if condition as elsewhere.
45228         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45229         in use, and use the current ABI.
45230         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45231         Reported by Jim Meyering.
45232
45233 2008-06-09  Eric Blake  <ebb9@byu.net>
45234
45235         Work around environments that (stupidly) ignore SIGALRM.
45236         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45237         before using alarm().
45238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45239         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45240         Reported by Ian Beckwith <ianb@erislabs.net>.
45241
45242         Produce autobuild blurb earlier in log.
45243         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45244
45245 2008-06-09  Jim Meyering  <meyering@redhat.com>
45246         and OndÅ™ej Vašík  <ovasik@redhat.com>
45247
45248         utimens.c: correct kernel bug work-around
45249         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45250         failure, not success, and the kernel bug we're trying to work
45251         around affects not just the utimensat call, but also the fallback
45252         futimens call.
45253         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45254         not success.
45255         [HAVE_FUTIMENS]: Use the same work-around, here.
45256
45257 2008-06-09  Jim Meyering  <meyering@redhat.com>
45258
45259         add more guards around definition of ACE_-related code
45260         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45261         ALLOW and ACE_OWNER are also defined.
45262
45263 2008-06-08  Bruno Haible  <bruno@clisp.org>
45264
45265         * lib/acl-internal.h: Add me as co-author.
45266         * lib/file-has-acl.c: Likewise.
45267         * lib/set-mode-acl.c: Likewise.
45268         * lib/copy-acl.c: Likewise.
45269
45270 2008-06-08  Bruno Haible  <bruno@clisp.org>
45271
45272         Add support for AIX ACLs.
45273         * lib/acl-internal.h (acl_nontrivial): New declaration.
45274         * lib/file-has-acl.c (acl_nontrivial): New function.
45275         (file_has_acl): Add implementation using AIX 4 ACL API.
45276         * lib/set-mode-acl.c (qset_acl): Likewise.
45277         * lib/copy-acl.c (qcopy_acl): Likewise.
45278
45279 2008-06-08  Bruno Haible  <bruno@clisp.org>
45280
45281         Add support for HP-UX ACLs.
45282         * lib/acl-internal.h (acl_nontrivial): New declaration.
45283         * lib/file-has-acl.c (acl_nontrivial): New function.
45284         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45285         * lib/set-mode-acl.c (qset_acl): Likewise.
45286         * lib/copy-acl.c (qcopy_acl): Likewise.
45287
45288 2008-06-08  Bruno Haible  <bruno@clisp.org>
45289
45290         Add support for Cygwin ACLs.
45291         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45292         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45293         the chmod_or_fchmod call.
45294         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45295
45296 2008-06-08  Bruno Haible  <bruno@clisp.org>
45297
45298         Fix bug with setuid modes in Solaris 10+ code.
45299         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45300         succeeded, when the mode contains some special bits.
45301
45302 2008-06-08  Bruno Haible  <bruno@clisp.org>
45303
45304         Add support for Solaris 7..10 ACLs.
45305         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45306         declarations.
45307         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45308         functions.
45309         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45310         * lib/set-mode-acl.c (qset_acl): Likewise.
45311         * lib/copy-acl.c (qcopy_acl): Likewise.
45312
45313 2008-06-08  Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45316         declaration.
45317         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45318         (acl_access_nontrivial): Remove MacOS X case.
45319         (file_has_acl): Use acl_extended_nontrivial.
45320         * lib/copy-acl.c (qcopy_acl): Likewise.
45321
45322 2008-06-08  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45325
45326 2008-06-08  Jim Meyering  <meyering@redhat.com>
45327
45328         * modules/acl (Maintainer): Add Bruno Haible.
45329
45330 2008-06-07  Bruno Haible  <bruno@clisp.org>
45331
45332         Improve support for Tru64 ACLs.
45333         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45334         ACL on OSF/1.
45335
45336 2008-06-07  Bruno Haible  <bruno@clisp.org>
45337
45338         Add support for MacOS X ACLs.
45339         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45340         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45341         * lib/set-mode-acl.c (qset_acl): Likewise.
45342         * lib/copy-acl.c (qcopy_acl): Likewise.
45343
45344 2008-06-07  Bruno Haible  <bruno@clisp.org>
45345
45346         Fix memory leak introduced on 2008-05-22.
45347         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45348         use.
45349
45350 2008-06-07  Bruno Haible  <bruno@clisp.org>
45351
45352         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45353         to construct an empty ACL.
45354
45355 2008-06-07  Bruno Haible  <bruno@clisp.org>
45356
45357         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45358         precisely.
45359         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45360
45361 2008-06-07  Bruno Haible  <bruno@clisp.org>
45362
45363         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45364         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45365
45366 2008-06-07  Bruno Haible  <bruno@clisp.org>
45367
45368         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45369         regardless of POSIX.
45370         * doc/posix-functions/_longjmp.texi: Likewise.
45371         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45372         SystemV platform in this case.
45373
45374 2008-06-06  Eric Blake  <ebb9@byu.net>
45375
45376         Document abort() bugs.
45377         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45378
45379         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45380         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45381         sigsetjmp.
45382         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45383         siglongjmp, but only as a macro.
45384         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45385         is obsolete.
45386         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45387
45388         Tweak documentation to cover cygwin argz bugs.
45389         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45390         argz bug fix; no code change needed since no cygwin releases
45391         occurred between the last fix and the bug being tested.
45392         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45393         module and recently fixed cygwin bugs.
45394         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45395         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45396         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45397         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45398         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45399         Likewise.
45400         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45401         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45402         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45403         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45404         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45405         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45406         Likewise.
45407
45408         Avoid gcc warning on cygwin.
45409         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45410         !ACL_NO_TRIVIAL]: Avoid unused variable.
45411
45412 2008-06-05  Eric Blake  <ebb9@byu.net>
45413
45414         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45415         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45416         git-version-gen fails to come up with a version.
45417         Reported by Simon Josefsson.
45418
45419 2008-06-05  Jim Meyering  <meyering@redhat.com>
45420             Paul Eggert  <eggert@cs.ucla.edu>
45421
45422         utimens.c: work around a probable Linux kernel bug
45423         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45424         appears to be a kernel bug that causes utimensat to return 280
45425         instead of 0, indicating success.
45426
45427 2008-06-04  Bruno Haible  <bruno@clisp.org>
45428
45429         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45430         2008-06-01 commit.
45431
45432 2008-06-04  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45435         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45436         (file_has_acl): Use it. Save errno afterwards.
45437         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45438
45439 2008-06-03  Bruno Haible  <bruno@clisp.org>
45440
45441         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45442         draft code. Simplify #ifs.
45443         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45444         Put Solaris code after POSIX-draft code. Fix comments regarding
45445         Solaris 10, HP-UX. Mention Cygwin.
45446         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45447
45448 2008-06-03  Eric Blake  <ebb9@byu.net>
45449
45450         Provide fallback for older kernels.
45451         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45452         Provide runtime fallback if kernel lacks support.
45453         Reported by Mike Frysinger.
45454
45455 2008-06-02  Bruno Haible  <bruno@clisp.org>
45456
45457         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45458         it exists.
45459
45460 2008-06-02  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45463         * lib/copy-acl.c (qcopy_acl): Update comment.
45464
45465 2008-06-02  Bruno Haible  <bruno@clisp.org>
45466
45467         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45468         like ACL APIs.
45469
45470 2008-06-02  Bruno Haible  <bruno@clisp.org>
45471
45472         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45473         * tests/test-set-mode-acl.sh: Likewise.
45474         * tests/test-copy-acl.sh: Likewise.
45475         * tests/test-copy-file.sh: Likewise.
45476
45477 2008-06-02  Bruno Haible  <bruno@clisp.org>
45478
45479         * tests/test-file-has-acl.sh: Remove unused code.
45480
45481 2008-06-01  Bruno Haible  <bruno@clisp.org>
45482
45483         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45484         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45485         messages.
45486         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45487
45488 2008-06-01  Bruno Haible  <bruno@clisp.org>
45489
45490         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45491         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45492         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45493         APIs.
45494         * modules/acl-tests (configure.ac): Remove tests now contained in
45495         m4/acl.m4.
45496
45497 2008-06-02  Jim Meyering  <meyering@redhat.com>
45498
45499         announce-gen: use a better key-server host name
45500         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45501         it may be more consistently reliable.  Suggested by Werner Koch
45502         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45503
45504 2008-06-01  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45507         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45508
45509 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45510
45511         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45512
45513 2008-06-01  Bruno Haible  <bruno@clisp.org>
45514
45515         New ACL tests.
45516         * tests/test-file-has-acl.sh: New file.
45517         * tests/test-file-has-acl.c: New file.
45518         * tests/test-set-mode-acl.sh: New file.
45519         * tests/test-set-mode-acl.c: New file.
45520         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45521         * tests/test-copy-acl.c: New file.
45522         * modules/acl-tests: New file, based on modules/copy-file-tests.
45523         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45524         (Depends-on): Add acl-tests.
45525         (configure.ac): Remove checks.
45526         (Makefile.am): Don't create test-sameacls program here any more.
45527
45528 2008-06-01  Bruno Haible  <bruno@clisp.org>
45529
45530         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45531         * tests/test-sameacls.c: Include progname.h.
45532         (main): Invoke set_program_name. Portability fixes for MacOS X,
45533         Solaris, HP-UX.
45534
45535 2008-06-01  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45538         function.
45539         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45540
45541 2008-06-01  Bruno Haible  <bruno@clisp.org>
45542
45543         * modules/rpmatch (Depends-on): Add strdup.
45544
45545 2008-06-01  Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/pipe.c: Include unistd-safer.h.
45548         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45549         * modules/pipe (Depends-on): Add unistd-safer.
45550
45551 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45552
45553         * modules/autobuild (configure.ac): Call AB_INIT.
45554
45555 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45556
45557         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45558         Suggested by Bruno Haible <bruno@clisp.org>.
45559
45560 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45561
45562         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45563         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45564         <bruno@clisp.org>.
45565
45566 2008-05-29  Eric Blake  <ebb9@byu.net>
45567
45568         Prefer new POSIX 200x interfaces over futimesat.
45569         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45570         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45571         when available.
45572         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45573
45574 2008-05-28  Bruno Haible  <bruno@clisp.org>
45575
45576         * modules/stpcpy (License): Change to LGPLv2+.
45577         Requested by David Lutterkort <dlutter@redhat.com>.
45578
45579 2008-05-27  Bruno Haible  <bruno@clisp.org>
45580
45581         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45582         current mingw.
45583         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45584
45585 2008-05-27  Bruno Haible  <bruno@clisp.org>
45586
45587         * modules/iconv_open (Link): New section, from module 'iconv'.
45588         * modules/striconv (Link): Likewise.
45589         * modules/striconveh (Link): Likewise.
45590         * modules/xstriconv (Link): Likewise.
45591         * modules/unicodeio (Link): Likewise.
45592         * modules/propername (Link): Likewise.
45593         Reported by Jim Meyering.
45594
45595 2008-05-26  Jim Meyering  <meyering@redhat.com>
45596
45597         sha256: do not artificially restrict buffer length to be < 2^32
45598         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45599         uint32_t to size_t.
45600         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45601         to match.
45602
45603         avoid unaligned access errors, e.g., on sparc
45604         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45605         direct access through a possibly-unaligned uint64* pointer.
45606         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45607         direct access through a possibly-unaligned uint32* pointer.
45608         Prompted by this patch from Tom "spot" Callaway:
45609         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45610
45611         sha512.c: fix typo in comment
45612         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45613
45614 2008-05-25  Bruno Haible  <bruno@clisp.org>
45615
45616         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45617         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45618         (Makefile.am): Update lib_SOURCES.
45619
45620 2008-05-25  Bruno Haible  <bruno@clisp.org>
45621
45622         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45623
45624 2008-05-25  Jim Meyering  <meyering@redhat.com>
45625
45626         useless-if-before-free: freed expr may have white-space differences
45627         * build-aux/useless-if-before-free: Recognize cases in which the
45628         freed expression differs from the tested one in embedded white
45629         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45630         $1 was used, so we can't make any regexp shy.  Improved tests now
45631         detect this.
45632
45633         useless-if-before-free: accept white space in the expression.
45634         * build-aux/useless-if-before-free: For now, any white space
45635         in the expression must be identical in the free argument.
45636
45637         useless-if-before-free: efficiency tweak
45638         * build-aux/useless-if-before-free: Make the expression-matching
45639         regexp "shy".
45640         Make the *outer* regexp shy, not the expr-matching one.
45641
45642         update code-in-comment to accept cast of free arg
45643         * build-aux/useless-if-before-free: Update regexp.
45644
45645 2008-05-25  Bruno Haible  <bruno@clisp.org>
45646
45647         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45648         * modules/copy-file-tests (Files, Makefile.am): Update.
45649         * tests/test-copy-file.c (func_test_copy): Update.
45650
45651 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45652
45653         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45654
45655 2008-05-23  Bruno Haible  <bruno@clisp.org>
45656
45657         Improve support for ACLs on OSF/1.
45658         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45659         Remove fallback for unknown flavors of ACLs.
45660
45661 2008-05-22  Bruno Haible  <bruno@clisp.org>
45662
45663         Add support for ACLs on OSF/1.
45664         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45665         replacements.
45666         (acl_free_text): New macro fallback.
45667         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45668         acl_free.
45669         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45670         acl_free_text function. Require AC_C_INLINE.
45671
45672 2008-05-22  Bruno Haible  <bruno@clisp.org>
45673
45674         Make copy_acl work on MacOS X 10.5.
45675         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45676         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45677         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45678         If MODE_INSIDE_ACL, don't assume that every system has the same text
45679         representation for ACLs as FreeBSD.
45680         * lib/copy-acl.c (copy_acl): Add support for platforms with
45681         !MODE_INSIDE_ACL.
45682         * lib/file-has-acl.c (file_has_acl): Likewise.
45683         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45684         FreeBSD, MacOS X, or IRIX, respectively.
45685
45686 2008-05-22  Bruno Haible  <bruno@clisp.org>
45687
45688         * lib/acl.h: Don't include <sys/acl.h>.
45689         (GETACLCNT): Move fallback to lib/acl-internal.h.
45690         * lib/acl-internal.h: Include <sys/acl.h> here.
45691         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45692
45693 2008-05-22  Bruno Haible  <bruno@clisp.org>
45694
45695         Split off copy_acl function to separate file.
45696         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45697         * lib/acl.c (copy_acl): Moved function to separate file.
45698         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45699         * modules/acl (Files): Add lib/copy-acl.c.
45700         (Makefiles.am): Augment lib_SOURCES.
45701
45702 2008-05-22  Bruno Haible  <bruno@clisp.org>
45703
45704         * modules/copy-file-tests: New file.
45705         * tests/test-copy-file.sh: New file.
45706         * tests/test-copy-file.c: New file.
45707         * tests/test-copy-file-sameacls.c: New file.
45708
45709 2008-05-22  Eric Blake  <ebb9@byu.net>
45710
45711         Avoid gcc warning.
45712         * tests/test-memcmp.c (main): Pass NULL indirectly.
45713
45714 2008-05-21  Bruno Haible  <bruno@clisp.org>
45715
45716         Add reference doc about ACLs.
45717         * doc/acl-resources.txt: New file.
45718         * doc/acl-cygwin.txt: New file.
45719
45720 2008-05-21  Bruno Haible  <bruno@clisp.org>
45721
45722         Avoid one more warning from gcc.
45723         * lib/vasnprintf.c (IF_LINT): Update comments.
45724         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45725
45726 2008-05-21  Jim Meyering  <meyering@redhat.com>
45727
45728         avoid a warning from gcc
45729         * lib/vasnprintf.c (IF_LINT): Define.
45730         (scale10_round_decimal_long_double):
45731         Use it to avoid a "may be used uninitialized" warning.
45732         (scale10_round_decimal_double): Likewise.
45733
45734 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45735
45736         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45737         declared.
45738
45739 2008-05-20  Bruno Haible  <bruno@clisp.org>
45740
45741         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45742         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45743
45744 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45745
45746         * modules/memcmp-tests: New file.
45747         * tests/test-memcmp.c: New file.
45748
45749 2008-05-19  Bruno Haible  <bruno@clisp.org>
45750
45751         * modules/propername (Notice, configure.ac): Put quoted "..." into
45752         --keyword option.
45753         * lib/propername.h: Update comments accordingly.
45754         Reported by Eric Blake.
45755
45756 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45757
45758         * modules/getpass-gnu (Depends-on): Add fseeko.
45759
45760 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45761
45762         * modules/base64-tests: New file.
45763
45764 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45765
45766         * lib/base64.c (base64_decode_ctx): If a decode context structure
45767         was passed in use it to ignore newlines.  If a context structure
45768         was _not_ passed in, continue to treat newlines as garbage (this
45769         is the historical behavior).  Formerly base64_decode.
45770         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45771         takes a decode context structure.
45772         * lib/base64.h (base64_decode): Macro for four-argument calls.
45773         (base64_decode_alloc): Likewise.
45774         * lib/base64.c (base64_decode_ctx): If a decode context structure
45775         was passed in use it to ignore newlines.  If a context structure
45776         was _not_ passed in, continue to treat newlines as garbage (this
45777         is the historical behavior).  Formerly base64_decode.
45778         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45779         takes a decode context structure.
45780         * lib/base64.h (base64_decode): Macro for four-argument calls.
45781         (base64_decode_alloc): Likewise.
45782
45783 2008-05-19  Jim Meyering  <meyering@redhat.com>
45784
45785         avoid a warning from gcc
45786         * lib/trim.c (IF_LINT): Define.
45787         (trim2): Use it to avoid a "may be used uninitialized" warning.
45788
45789         Fix doc typo.
45790         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45791
45792 2008-05-19  Bruno Haible  <bruno@clisp.org>
45793
45794         * doc/glibc-functions/getpass.texi: Document limits of other
45795         implementations.
45796
45797 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45798             Bruno Haible <bruno@clisp.org>
45799
45800         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45801
45802 2008-05-18  Bruno Haible  <bruno@clisp.org>
45803
45804         * modules/propername: New file, from GNU gettext.
45805         * lib/propername.h: New file, from GNU gettext.
45806         * lib/propername.c: New file, from GNU gettext.
45807         * MODULES.html.sh (Internationalization functions): Add propername.
45808
45809 2008-05-16  Jim Meyering  <meyering@redhat.com>
45810             Bruno Haible  <bruno@clisp.org>
45811
45812         Avoid some warnings from "gcc -Wshadow".
45813         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45814
45815 2008-05-15  Eric Blake  <ebb9@byu.net>
45816
45817         Extend previous patch to cygwin 1.7.0.
45818         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45819         fast implementation in cygwin >= 1.7.0.
45820         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45821         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45822
45823 2008-05-15  Bruno Haible  <bruno@clisp.org>
45824
45825         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45826         implementation in glibc >= 2.9.
45827         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45829
45830 2008-05-15  Bruno Haible  <bruno@clisp.org>
45831
45832         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45833         (Unicode string functions): Add unilbrk/*.
45834         Reported by Karl Berry.
45835
45836 2008-05-15  Eric Blake  <ebb9@byu.net>
45837
45838         Fix violation of <stdbool.h> replacement in regex.
45839         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45840         * lib/regexec.c (re_search_internal): Likewise.
45841         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45842
45843 2008-05-15  Jim Meyering  <meyering@redhat.com>
45844
45845         avoid distracting test output when git or cvs is not found
45846         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45847         * tests/test-vc-list-files-git.sh: Likewise.
45848
45849 2008-05-15  Eric Blake  <ebb9@byu.net>
45850
45851         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45852         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45853         glibc version.
45854         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45855         * doc/posix-functions/strstr.texi (strstr): Likewise.
45856         * lib/str-two-way.h (MAX): Sychronize with glibc.
45857
45858 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45859
45860         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45861         opr.ctx_type.
45862         (calc_first): Initialize constraint field.
45863         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45864         Fix grammar.
45865         (duplicate_node): Merge constraint field for all node types.
45866         (calc_eclosure_iter): Look at constraint field for all node types.
45867         * lib/regex_internal.c (create_cd_newstate): Don't look at
45868         opr.ctx_type.
45869
45870 2008-05-14  Bruno Haible  <bruno@clisp.org>
45871
45872         Help GCC to do better code generation.
45873         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45874         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45875         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45876         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45877         Declare with attribute 'malloc' if supported.
45878
45879 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45880
45881         use "echo STR|wc -c" rather than unportable "expr length STR"
45882         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45883         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45884
45885 2008-05-14  Jim Meyering  <meyering@redhat.com>
45886
45887         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45888         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45889         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45890         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45891         via Collin Lasse.
45892
45893 2008-05-14  Eric Blake  <ebb9@byu.net>
45894
45895         Avoid quadratic growth in gl_LIBSOURCES.
45896         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45897         Suggested by Bruno Haible.
45898
45899         Test xmemdup0.
45900         * modules/xmemdup0-tests: New file.
45901         * tests/test-xmemdup0.c: Likewise.
45902
45903 2008-05-13  Eric Blake  <ebb9@byu.net>
45904
45905         Split xmemdup0 into its own module.
45906         * modules/xmemdup0: New file.
45907         * lib/xmemdup0.h: Likewise.
45908         * lib/xmemdup0.c: Likewise.
45909         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45910         * lib/xalloc.h (xmemdup0): Remove.
45911         * lib/xmalloc.c (xmemdup0): Likewise.
45912
45913 2008-05-13  Eric Blake  <ebb9@byu.net>
45914             Bruno Haible  <bruno@clisp.org>
45915
45916         Reduce number of forks required during autoconf.
45917         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45918         and gl_LIBSOURCES_DIR.
45919         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45920         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45921         m4_syscmd per file.
45922         <m4_foreach_w>: Move...
45923         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45924
45925 2008-05-13  Eric Blake  <ebb9@byu.net>
45926
45927         * gnulib-tool: Fix various comment typos.
45928
45929 2008-05-12  Bruno Haible  <bruno@clisp.org>
45930
45931         Tailor the linebreaking algorithm.
45932         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45933
45934 2008-05-12  Bruno Haible  <bruno@clisp.org>
45935
45936         Update to Unicode 5.0.0.
45937         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45938         LBP_JV, LBP_JT. Redistribute values.
45939         (unilbrk_table): Change size.
45940         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45941         Unicode TR#14 rev. 22.
45942         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45943         LBP_JV, LBP_JT. Redistribute values.
45944         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45945         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45946         Update.
45947         * lib/unilbrk/lbrkprop1.h: Regenerated.
45948         * lib/unilbrk/lbrkprop2.h: Regenerated.
45949         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45950         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45951         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45952         Likewise.
45953         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45954         Likewise.
45955         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45956         result.
45957         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45958         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45959         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45960         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45961         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45962         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45963
45964 2008-05-11  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45967
45968 2008-05-11  Bruno Haible  <bruno@clisp.org>
45969
45970         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45971         * modules/unilbrk/gen-lbrk: New file.
45972
45973 2008-05-11  Bruno Haible  <bruno@clisp.org>
45974
45975         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45976         * m4/sha512.m4 (gl_SHA512): Likewise.
45977
45978 2008-05-11  Jim Meyering  <meyering@redhat.com>
45979
45980         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45981         * modules/crypto/sha256: New file.
45982         * modules/crypto/sha512: Likewise.
45983         * lib/sha256.c: Likewise.
45984         * lib/sha256.h: Likewise.
45985         * lib/sha512.c: Likewise.
45986         * lib/sha512.h: Likewise.
45987         * lib/u64.h: Likewise.
45988         * m4/sha256.m4: Likewise.
45989         * m4/sha512.m4: Likewise.
45990         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45991
45992 2008-05-10  Bruno Haible  <bruno@clisp.org>
45993
45994         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45995         (Input/Output <stdio.h>): Add xprintf.
45996         (Signal handling <signal.h>): Add strsignal.
45997         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45998         (Core language properties): Add func.
45999         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46000         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46001         strings.
46002         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46003         (Input/output): New section.
46004         (File system functions): Add openat-die, stat-macros.
46005         (Networking functions): Add sockets.
46006         (Unicode string functions): Add unictype/*.
46007         (Support for building libraries and executables): Add gperf.
46008         (Support for building documentation): Add agpl-3.0.
46009         (Misc): Add nocrash.
46010
46011 2008-05-10  Bruno Haible  <bruno@clisp.org>
46012
46013         * modules/unictype/gen-ctype: New file.
46014
46015 2008-05-10  Jim Meyering  <meyering@redhat.com>
46016
46017         Make chdir-safer.c more efficient on a system with no symlinks.
46018         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46019         also if ELOOP is zero.  Suggested by Bruno Haible.
46020
46021         Make chdir-safer.c slightly safer.
46022         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46023         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46024
46025         Avoid compile failure on systems without ELOOP (like mingw).
46026         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46027         Reported by Bruno Haible.
46028
46029 2008-05-10  Bruno Haible  <bruno@clisp.org>
46030
46031         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46032         (is_utf8_encoding): Use a case-insensitive comparison.
46033         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46034         streq.
46035
46036 2008-05-10  Bruno Haible  <bruno@clisp.org>
46037
46038         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46039         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46040         * lib/unilbrk/ulc-common.h (iconv_string_length,
46041         iconv_string_keeping_offsets): Remove declarations.
46042         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46043         Don't include <iconv.h>, streq.h, xsize.h.
46044         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46045         conversion.
46046         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46047         <iconv.h>, streq.h, xsize.h.
46048         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46049         conversion.
46050         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46051         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46052         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46053         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46054
46055 2008-05-10  Bruno Haible  <bruno@clisp.org>
46056
46057         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46058         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46059
46060         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46061         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46062
46063         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46064         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46065
46066         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46067         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46068
46069         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46070         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46071
46072         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46073         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46074
46075         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46076         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46077
46078         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46079         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46080
46081 2008-05-10  Bruno Haible  <bruno@clisp.org>
46082
46083         Split up 'linebreak' module.
46084         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46085         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46086         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46087         modifications.
46088         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46089         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46090         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46091         lib/linebreak.c.
46092         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46093         lib/linebreak.c.
46094         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46095         lib/linebreak.c.
46096         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46097         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46098         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46099         lib/linebreak.c.
46100         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46101         lib/linebreak.c.
46102         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46103         lib/linebreak.c.
46104         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46105         lib/linebreak.c.
46106         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46107         lib/linebreak.c.
46108         * modules/unilbrk/base: New file.
46109         * modules/unilbrk/tables: New file.
46110         * modules/unilbrk/u8-possible-linebreaks: New file.
46111         * modules/unilbrk/u16-possible-linebreaks: New file.
46112         * modules/unilbrk/u32-possible-linebreaks: New file.
46113         * modules/unilbrk/ulc-common: New file.
46114         * modules/unilbrk/ulc-possible-linebreaks: New file.
46115         * modules/unilbrk/u8-width-linebreaks: New file.
46116         * modules/unilbrk/u16-width-linebreaks: New file.
46117         * modules/unilbrk/u32-width-linebreaks: New file.
46118         * modules/unilbrk/ulc-width-linebreaks: New file.
46119         * lib/linebreak.h: Remove file.
46120         * lib/linebreak.c: Remove file.
46121         * m4/linebreak.m4: Remove file.
46122         * modules/linebreak: Remove file.
46123         * NEWS: Mention the changes.
46124
46125 2008-05-09  Eric Blake  <ebb9@byu.net>
46126
46127         Add xmemdup0.
46128         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46129         implementation.
46130         * lib/xmalloc.c (xmemdup0): New C implementation.
46131
46132 2008-05-08  Bruno Haible  <bruno@clisp.org>
46133
46134         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46135
46136 2008-05-07  Eric Blake  <ebb9@byu.net>
46137
46138         Support cross-compilation of <wctype.h>.
46139         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46140         AC_CACHE_CHECK.
46141
46142 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46143
46144         * build-aux/vc-list-files: Add support for bzr.
46145
46146 2008-05-03  Jim Meyering  <meyering@redhat.com>
46147
46148         avoid failed assertion with tight malloc
46149         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46150
46151 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46152
46153         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46154         are needed from arpa/inet.h.
46155         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46156         Reported by Bruno Haible.
46157
46158 2008-05-02  Jim Meyering  <meyering@redhat.com>
46159
46160         avoid compilation error on FreeBSD 6
46161         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46162
46163 2008-05-01  Jim Meyering  <meyering@redhat.com>
46164
46165         useless-if-before-free: correct --help's exit status description
46166         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46167         for one or more matches, etc.  Reported by Bruno Haible.
46168
46169         vc-list-files: make the stand-alone gnulib test work
46170         * modules/vc-list-files-tests (configure.ac):
46171         Define and AC_SUBST abs_aux_dir.
46172         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46173         $(abs_top_srcdir) to each script and having each of them
46174         duplicate the work of setting PATH, set PATH here, using
46175         the new variable, abs_aux_dir instead.
46176         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46177         * tests/test-vc-list-files-git.sh: Likewise.
46178         Reported by Bruno Haible.
46179
46180 2008-05-01  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46183         reallocation. Rename 'done' to 'found_delimiter'.
46184
46185 2008-05-01  Jim Meyering  <meyering@redhat.com>
46186
46187         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46188         * build-aux/vc-list-files: Use `...`, not $(...).
46189
46190 2008-04-30  Jim Meyering  <meyering@redhat.com>
46191
46192         add tests for vc-list-files
46193         * modules/vc-list-files-tests: New module.
46194         * tests/test-vc-list-files-cvs.sh: New file.
46195         * tests/test-vc-list-files-git.sh: New file.
46196
46197         avoid a warning from gcc
46198         * lib/getndelim2.c (IF_LINT): Define.
46199         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46200
46201         vc-list-files: work properly with build-aux/cvsu, too
46202         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46203         to all cvs-based clauses.
46204
46205         vc-list-files: work properly in the CVS+awk case, too
46206         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46207
46208         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46209         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46210         take more than one file argument, so .  Add quotes, just in case $dir
46211         ever contains a shell meta-character.  Prompted by Soren Hansen in
46212         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46213
46214 2008-04-29  Eric Blake  <ebb9@byu.net>
46215
46216         Optimize getndelim2 to use block operations when possible.
46217         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46218         freadseek, and memchr2.
46219         * lib/getndelim2.c (getndelim2): Use them for block reads.
46220
46221 2008-04-29  Bruno Haible  <bruno@clisp.org>
46222
46223         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46224         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46225         * modules/inet_ntop (Depends-on): Add extensions.
46226         * modules/inet_pton (Depends-on): Likewise.
46227         Reported by Simon Josefsson.
46228
46229 2008-04-29  Jim Meyering  <meyering@redhat.com>
46230
46231         When the is more than one match in a block, match all of them.
46232         * build-aux/useless-if-before-free: Iterate through each block
46233         until there are no more matches.
46234
46235         Fix broken useless-if-before-free script.
46236         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46237         the expression to match cast of argument to free-like function.
46238
46239 2008-04-29  Eric Blake  <ebb9@byu.net>
46240
46241         Use new header.
46242         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46243
46244 2008-04-29  Jim Meyering  <meyering@redhat.com>
46245
46246         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46247         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46248         by gnulib to exist and to declare e.g., inet_ntop.
46249         Don't include "inet_ntop.h", now removed.
46250
46251         * m4/arpa_inet_h.m4: Remove trailing blanks.
46252
46253 2008-04-29  Eric Blake  <ebb9@byu.net>
46254
46255         Silence valgrind on safe reads beyond potential array bounds.
46256         * lib/rawmemchr.valgrind: New file.
46257         * lib/strchrnul.valgrind: Likewise.
46258         * modules/rawmemchr (Files): Distribute new file.
46259         * modules/strchrnul (Files): Likewise.
46260         Suggested by Bruno Haible.
46261
46262 2008-04-29  Bruno Haible  <bruno@clisp.org>
46263
46264         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46265         (inet_ntop, inet_pton): Change portability warning's wording.
46266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46267         Invoke gl_CHECK_NEXT_HEADERS.
46268         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46269         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46270         set ARPA_INET_H.
46271         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46272         * modules/arpa_inet (Description): No longer only for systems that
46273         lack it.
46274         (Depends-on): Add include_next.
46275         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46276         HAVE_ARPA_INET_H.
46277
46278 2008-04-29  Jim Meyering  <meyering@redhat.com>
46279
46280         * modules/mkdir (License): Re-license as LGPLv2+.
46281
46282 2008-04-29  Bruno Haible  <bruno@clisp.org>
46283
46284         * modules/rawmemchr (Maintainer): Set to Eric.
46285         * modules/strchrnul (Maintainer): Likewise.
46286
46287 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46288
46289         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46290         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46291
46292         * modules/arpa_inet (arpa/inet.h): Use them.
46293
46294 2008-04-28  Eric Blake  <ebb9@byu.net>
46295
46296         Test getndelim2.
46297         * modules/getndelim2-tests: New file.
46298         * tests/test-getndelim2.c: Likewise.
46299         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46300         stream.
46301         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46302
46303         * MODULES.html.sh: Document new module.
46304
46305 2008-04-20  Bruno Haible  <bruno@clisp.org>
46306
46307         * lib/c-stack.c (die): Use raise.
46308         * modules/c-stack (Depends-on): Add raise.
46309
46310 2008-04-28  Bruno Haible  <bruno@clisp.org>
46311
46312         Expect rpmatch to be declared.
46313         * lib/yesno.c (rpmatch): Remove declaration.
46314
46315         Declare rpmatch.
46316         * lib/stdlib.in.h (rpmatch): New declaration.
46317         * lib/rpmatch.c: Include <stdlib.h> first.
46318         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46319         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46321         HAVE_RPMATCH.
46322         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46323         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46324         (Include): Set to <stdlib.h>.
46325         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46326         HAVE_RPMATCH.
46327         * NEWS: Document the change.
46328
46329 2008-04-28  Bruno Haible  <bruno@clisp.org>
46330
46331         Change rpmatch to use nl_langinfo when appropriate.
46332         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46333         (N_): New macro.
46334         (localized_pattern): New function/macro.
46335         (try): Remove match, nomatch arguments. Copy the pattern into safe
46336         memory before caching it.
46337         (rpmatch): Use localized_pattern. Add translator comments.
46338         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46339         Suggested by Eric Blake.
46340         * modules/rpmatch (Depends-on): Add stdbool.
46341
46342 2008-04-28  Eric Blake  <ebb9@byu.net>
46343
46344         Add rawmemchr module, matching glibc.
46345         * modules/string (Makefile.am): New indicator.
46346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46347         * lib/string.in.h (rawmemchr): Declare when appropriate.
46348         * modules/rawmemchr: New file.
46349         * m4/rawmemchr.m4: Likewise.
46350         * lib/rawmemchr.c: Likewise.
46351         * modules/rawmemchr-tests: Likewise.
46352         * tests/test-rawmemchr.c: Likewise.
46353         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46354         module.
46355         * modules/strchrnul (Depends-on): Add rawmemchr.
46356         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46357
46358         Whitespace cleanup.
46359         * tests/test-strchrnul.c: Reindent.
46360         * lib/strchrnul.c: Likewise.
46361
46362         Optimize and test strchrnul.
46363         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46364         * modules/strchrnul-tests: New file.
46365         * tests/test-strchrnul.c: Likewise.
46366
46367         Remove intprops dependency.
46368         * modules/memchr (Depends-on): Remove intprops.
46369         * modules/memrchr (Depends-on): Likewise.
46370         * modules/memchr2 (Depends-on): Likewise.
46371         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46372         * lib/memrchr.c (__memrchr): Likewise.
46373         * lib/memrchr2.c (memchr2): Likewise.
46374         Reported by Simon Josefsson.
46375
46376 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46377
46378         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46379         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46380
46381 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46382
46383         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46384
46385         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46386
46387         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46388
46389         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46390         declarations.
46391         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46392
46393         * m4/inet_pton.m4: Don't check for header files.
46394
46395         * m4/inet_ntop.m4: Don't check for header files.
46396
46397 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46398
46399         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46400         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46401         trigger for cygwin).
46402         Reported by Bruno Haible  <bruno@clisp.org>.
46403
46404 2008-04-28  Bruno Haible  <bruno@clisp.org>
46405
46406         * doc/posix-functions/strdup.texi: Mention mingw problem.
46407
46408 2008-04-27  Bruno Haible  <bruno@clisp.org>
46409
46410         * modules/stat-time-tests (Depends-on): Add sleep.
46411         * tests/test-stat-time.c (force_unlink): New function.
46412         (cleanup): Use it.
46413         (test_mtime): Remove the ctime related tests.
46414         (test_ctime): New function, containing the ctime related tests.
46415         (main): Call test_ctime, except on native Windows platforms.
46416
46417 2008-04-27  Bruno Haible  <bruno@clisp.org>
46418
46419         * lib/rpmatch.c (rpmatch): Add some comments.
46420         Reported by James Youngman <jay@gnu.org>.
46421
46422 2008-04-27  Bruno Haible  <bruno@clisp.org>
46423
46424         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46425         quiet NaNs.
46426
46427 2008-04-27  Bruno Haible  <bruno@clisp.org>
46428
46429         Make test-yesno.sh work on mingw.
46430         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46431         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46432         (main): Set stdin to binary mode.
46433         * modules/yesno-tests (Depends-on): Add binary-io.
46434
46435 2008-04-27  Bruno Haible  <bruno@clisp.org>
46436
46437         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46438         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46439         argument that lie outside the IEEE 854 domain.
46440         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46441         (gl_ISFINITE): Use it.
46442         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46443
46444 2008-04-27  Bruno Haible  <bruno@clisp.org>
46445
46446         Allow local renaming in config.h.
46447         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46448
46449 2008-04-27  Bruno Haible  <bruno@clisp.org>
46450
46451         * lib/memchr.c (__memchr): Change type of 'i'.
46452         * lib/memchr2.c (memchr2): Likewise.
46453
46454 2008-04-26  Eric Blake  <ebb9@byu.net>
46455         and Bruno Haible  <bruno@clisp.org>
46456
46457         Optimize and test memrchr.
46458         * modules/memrchr (Depends-on): Add intprops.
46459         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46460         * modules/memrchr-tests: New file.
46461         * tests/test-memrchr.c: New file.
46462
46463 2008-04-26  Bruno Haible  <bruno@clisp.org>
46464
46465         Add tentative support for DragonFly BSD.
46466         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46467         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46468         fp.
46469         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46470         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46471         * lib/fpurge.c (fpurge): Likewise.
46472         * lib/freadable.c (freaadable): Likewise.
46473         * lib/freadahead.c (freadahead): Likewise.
46474         * lib/freading.c (freading): Likewise.
46475         * lib/freadptr.c (freadptr): Likewise.
46476         * lib/freadseek.c (freadptrinc): Likewise.
46477         * lib/fseeko.c (fseeko): Likewise.
46478         * lib/fseterr.c (fseterr): Likewise.
46479         * lib/fwritable.c (fwritable): Likewise.
46480         * lib/fwriting.c (fwriting): Likewise.
46481
46482 2008-04-26  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/stdio-impl.h: New file.
46485         * lib/fbufmode.c: Include stdio-impl.h.
46486         (fbufmode): Use fp_, remove redundant #defines.
46487         * lib/fflush.c: Include stdio-impl.h.
46488         (clear_ungetc_buffer): Remove redundant #defines.
46489         * lib/fpurge.c: Include stdio-impl.h.
46490         (fpurge): Remove redundant #defines.
46491         * lib/freadable.c: Include stdio-impl.h.
46492         (freadable): Remove redundant #defines.
46493         * lib/freadahead.c: Include stdio-impl.h.
46494         (freadahead): Remove redundant #defines.
46495         * lib/freading.c: Include stdio-impl.h.
46496         (freading): Remove redundant #defines.
46497         * lib/freadptr.c: Include stdio-impl.h.
46498         (freadptr): Remove redundant #defines.
46499         * lib/freadseek.c: Include stdio-impl.h.
46500         (freadptrinc): Remove redundant #defines.
46501         * lib/fseeko.c: Include stdio-impl.h.
46502         (rpl_fseeko): Remove redundant #defines.
46503         * lib/fseterr.c: Include stdio-impl.h.
46504         (fseterr): Remove redundant #defines.
46505         * lib/fwritable.c: Include stdio-impl.h.
46506         (fwritable: Remove redundant #defines.
46507         * lib/fwriting.c: Include stdio-impl.h.
46508         (fwriting): Remove redundant #defines.
46509         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46510         * modules/fflush (Files): Likewise.
46511         * modules/fpurge (Files): Likewise.
46512         * modules/freadable (Files): Likewise.
46513         * modules/freadahead (Files): Likewise.
46514         * modules/freading (Files): Likewise.
46515         * modules/freadptr (Files): Likewise.
46516         * modules/freadseek (Files): Likewise.
46517         * modules/fseeko (Files): Likewise.
46518         * modules/fseterr (Files): Likewise.
46519         * modules/fwritable (Files): Likewise.
46520         * modules/fwriting (Files): Likewise.
46521
46522 2008-04-26  Bruno Haible  <bruno@clisp.org>
46523
46524         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46525         restore_seek_optimization, update_fpos_cache): New functions, extracted
46526         from rpl_fflush.
46527         (rpl_fflush): Use them.
46528         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46529         (gl_REPLACE_FFLUSH): Use it.
46530
46531 2008-04-26  Bruno Haible  <bruno@clisp.org>
46532
46533         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46534         on Solaris.
46535         * tests/test-xstrtoimax.sh: Likewise.
46536         * tests/test-xstrtoumax.sh: Likewise.
46537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46538
46539 2008-04-26  Bruno Haible  <bruno@clisp.org>
46540
46541         * modules/memchr-tests: New file.
46542         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46543
46544 2008-04-26  Eric Blake  <ebb9@byu.net>
46545             Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/memchr.c: Include intprops.h.
46548         (__memchr): Optimize parallel detection of matching bytes. Rename local
46549         variables. Add explanatory comments.
46550
46551 2008-04-26  Bruno Haible  <bruno@clisp.org>
46552
46553         Fix module 'memchr', broken since 2000-10-28.
46554         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46555
46556 2008-04-26  Bruno Haible  <bruno@clisp.org>
46557
46558         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46559         comments.
46560
46561 2008-04-25  Eric Blake  <ebb9@byu.net>
46562
46563         Use native fstatat on cygwin 1.7.0.
46564         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46565         first.
46566
46567 2008-04-23  Eric Blake  <ebb9@byu.net>
46568
46569         Improve memchr2 performance.
46570         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46571         NUL bytes.
46572         * modules/memchr2 (Depends-on): Use intprops.h.
46573
46574 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46575
46576         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46577         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46578         <blp@cs.stanford.edu>.
46579
46580 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46581
46582         * lib/arpa_inet.in.h: New file.
46583
46584         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46585         (Makefile.am): Sed in substitute header file.
46586
46587         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46588         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46589
46590         * modules/inet_ntop (configure.ac): Use
46591         gl_ARPA_INET_MODULE_INDICATOR.
46592
46593         * modules/inet_pton (configure.ac): Use
46594         gl_ARPA_INET_MODULE_INDICATOR.
46595
46596 2008-04-22  Jim Meyering  <meyering@redhat.com>
46597
46598         * modules/verify (License): Re-license as LGPLv2+.
46599
46600 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46601
46602         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46603         parameter to void* as per POSIX standard (MinGW uses char*).
46604
46605 2008-04-21  Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46608         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46609         Define to replacements if REPLACE_ISWCNTRL is 1.
46610         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46611         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46612         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46613         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46614         what it fixes.
46615         * doc/posix-functions/iswalpha.texi: Likewise.
46616         * doc/posix-functions/iswblank.texi: Likewise.
46617         * doc/posix-functions/iswcntrl.texi: Likewise.
46618         * doc/posix-functions/iswdigit.texi: Likewise.
46619         * doc/posix-functions/iswgraph.texi: Likewise.
46620         * doc/posix-functions/iswlower.texi: Likewise.
46621         * doc/posix-functions/iswprint.texi: Likewise.
46622         * doc/posix-functions/iswpunct.texi: Likewise.
46623         * doc/posix-functions/iswspace.texi: Likewise.
46624         * doc/posix-functions/iswupper.texi: Likewise.
46625         * doc/posix-functions/iswxdigit.texi: Likewise.
46626         Reported by Alain Guibert.
46627
46628 2008-04-21  Bruno Haible  <bruno@clisp.org>
46629
46630         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46631         Patch by Alain Guibert.
46632
46633 2008-04-21  Bruno Haible  <bruno@clisp.org>
46634
46635         Fix test failures on mingw.
46636         * tests/test-xstrtol.c (print_no_progname): New function.
46637         (main): Install it in error_print_progname hook.
46638         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46639         * tests/test-xstrtoimax.sh: Likewise.
46640         * tests/test-xstrtoumax.sh: Likewise.
46641
46642 2008-04-21  Bruno Haible  <bruno@clisp.org>
46643
46644         Fix test failure on mingw.
46645         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46646
46647 2008-04-21  Bruno Haible  <bruno@clisp.org>
46648
46649         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46650         Actually assign a value.
46651
46652 2008-04-20  Bruno Haible  <bruno@clisp.org>
46653
46654         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46655         take 2.
46656         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46657         'canonicalize-lgpl' module is also used.
46658         * lib/canonicalize-lgpl.c: Undo last change.
46659         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46660
46661 2008-04-20  Bruno Haible  <bruno@clisp.org>
46662
46663         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46664         config.h. Provide _mkdir based fallback for mingw.
46665         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46666         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46667         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46668         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46669         rather than defining mkdir in config.h.
46670         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46671         (gl_SYS_STAT_H_DEFAULTS): New macro.
46672         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46673         HAVE_IO_H any more.
46674         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46675         HAVE_DECL_MKDIR and HAVE_IO_H.
46676
46677 2008-04-20  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/isapipe.c: Port to native Windows platforms.
46680
46681 2008-04-20  Bruno Haible  <bruno@clisp.org>
46682
46683         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46684
46685 2008-04-21  Eric Blake  <ebb9@byu.net>
46686
46687         Work around preprocessors that don't handle UINTMAX_MAX.
46688         * lib/memchr2.c (memchr2): Avoid embedded #if.
46689         Reported by Alain Guibert, fix suggested by Bruno Haible.
46690
46691 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46692
46693         * doc/posix-functions/strftime.texi (strftime): Explain better
46694         Windows incompatibility.  Suggested by Micah Cowan
46695         <micah@cowan.name>.
46696
46697 2008-04-20  Bruno Haible  <bruno@clisp.org>
46698
46699         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46700         unistr/u8-mblen.
46701
46702 2008-04-20  Bruno Haible  <bruno@clisp.org>
46703
46704         Fix test failure on platforms with non-GNU iconv.
46705         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46706         (U_TO_U8): Use it, rather than u16_to_u8.
46707         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46708         units at the end of the input string.
46709         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46710
46711 2008-04-20  Bruno Haible  <bruno@clisp.org>
46712
46713         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46714         when the resulting length is 0.
46715         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46716
46717 2008-04-20  Bruno Haible  <bruno@clisp.org>
46718
46719         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46720         works.
46721         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46722
46723 2008-04-20  Bruno Haible  <bruno@clisp.org>
46724
46725         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46726         * modules/tsearch-tests (configure.ac): Test for initstate function.
46727
46728 2008-04-20  Bruno Haible  <bruno@clisp.org>
46729
46730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46731         for nlink_t if missing.
46732         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46733
46734 2008-04-19  Bruno Haible  <bruno@clisp.org>
46735
46736         Work around snprintf bug on Linux libc5.
46737         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46739         gl_SNPRINTF_SIZE1.
46740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46741         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46742         that test failed.
46743         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46744         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46745         * modules/snprintf (Files): Add m4/printf.m4.
46746         * modules/vsnprintf (Files): Likewise.
46747         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46748         * doc/posix-functions/vsnprintf.texi: Likewise.
46749
46750 2008-04-19  Bruno Haible  <bruno@clisp.org>
46751
46752         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46753         from 0.0058 to less than 10^-7.
46754
46755 2008-04-19  Bruno Haible  <bruno@clisp.org>
46756
46757         Fix rounding when a precision is given.
46758         * lib/vasnprintf.c (is_borderline): New function.
46759         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46760         9...9x.
46761         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46762         %e, %g.
46763         * tests/test-vasprintf-posix.c (test_function): Likewise.
46764         * tests/test-snprintf-posix.h (test_function): Likewise.
46765         * tests/test-sprintf-posix.h (test_function): Likewise.
46766         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46767         * tests/test-printf-posix.h (test_function): Likewise.
46768         * tests/test-printf-posix.output: Update.
46769         Reported by John Darrington <john@darrington.wattle.id.au> via
46770         Ben Pfaff <blp@cs.stanford.edu>.
46771
46772 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46773
46774         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46775         Suggested by Bruno Haible <bruno@clisp.org>.
46776
46777 2008-04-17  Bruno Haible  <bruno@clisp.org>
46778
46779         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46780         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46781         implementation.
46782         Patch by Bruce Merry <bmerry@gmail.com>.
46783
46784 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46785
46786         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46787         doesn't work under Windows.
46788
46789 2008-04-16  Bruno Haible  <bruno@clisp.org>
46790
46791         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46792         New macros.
46793         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46794         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46795         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46796         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46797         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46798         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46799         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46800         macros.
46801         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46802         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46803         Northern Sotho, Uighur.
46804
46805 2008-04-16  Bruno Haible  <bruno@clisp.org>
46806
46807         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46808         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46809         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46810         Reported by Daniel Bergström <daniel@octocode.com>.
46811
46812 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46813             Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46816         function.
46817         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46818         New functions, mostly extracted from gl_locale_name_default.
46819         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46820
46821 2008-04-16  Eric Blake  <ebb9@byu.net>
46822
46823         Adjust strtod detection to catch glibc 2.7 bug.
46824         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46825         Reported by John Gatewood Ham.
46826
46827 2008-04-16  Bruno Haible  <bruno@clisp.org>
46828
46829         Add tentative support for Linux libc5.
46830         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46831         * lib/fpurge.c (fpurge): Likewise.
46832         * lib/freadable.c (freadable): Likewise.
46833         * lib/freadahead.c (freadahead): Likewise.
46834         * lib/freading.c (freading): Likewise.
46835         * lib/freadptr.c (freadptr): Likewise.
46836         * lib/freadseek.c (freadptrinc): Likewise.
46837         * lib/fseeko.c (rpl_fseeko): Likewise.
46838         * lib/fseterr.c (fseterr): Likewise.
46839         * lib/fwritable.c (fwritable): Likewise.
46840         * lib/fwriting.c (fwriting): Likewise.
46841         Reported by Alain Guibert <alguibert+bts@free.fr>.
46842
46843 2008-04-15  Bruno Haible  <bruno@clisp.org>
46844
46845         * modules/mathl (configure.ac): Define module indicator.
46846
46847 2008-04-15  Bruno Haible  <bruno@clisp.org>
46848
46849         * lib/logl.c (logl): Remove unused variables.
46850
46851 2008-04-15  Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46854         fails.
46855
46856 2008-04-15  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/trim.c (trim2): Fix argument of isspace() macro.
46859
46860 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46861
46862         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46863         to 0.
46864         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46865
46866 2008-04-14  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46869         AC_LANG_PROGRAM argument.
46870         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46871         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46873         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46874         * m4/math_h.m4 (gl_MATH_H): Likewise.
46875         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46877         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46878         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46879         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46880         * m4/regex.m4 (gl_REGEX): Likewise.
46881         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46882         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46884         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46885         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46886         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46887         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46889
46890 2008-04-14  Jim Meyering  <meyering@redhat.com>
46891
46892         test-strtod: fix typos: s/abs/fabs/
46893         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46894
46895 2008-04-13  Bruno Haible  <bruno@clisp.org>
46896
46897         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46898         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46899         module is also used and while not building the reloc-wrapper.
46900
46901 2008-04-13  Bruno Haible  <bruno@clisp.org>
46902
46903         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46904
46905 2008-04-13  Bruno Haible  <bruno@clisp.org>
46906
46907         Fix AIX compilation failure introduced on 2008-04-02.
46908         * tests/test-frexp.c (exp): Undefine before redefining.
46909         * tests/test-frexpl.c (exp): Likewise.
46910
46911 2008-04-13  Bruno Haible  <bruno@clisp.org>
46912
46913         Work around a HP-UX stdio bug.
46914         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46915         * tests/test-ftello.c (main): Likewise.
46916         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46917         * doc/posix-functions/ftello.texi: Likewise.
46918
46919 2008-04-13  Bruno Haible  <bruno@clisp.org>
46920
46921         Make test-signbit pass on HP-UX/hppa.
46922         * tests/test-signbit.c (minus_zerol): New variable.
46923         (test_signbitl): Use it.
46924
46925 2008-04-13  Bruno Haible  <bruno@clisp.org>
46926
46927         Make truncl work on OSF/1 4.0.
46928         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46929         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46930         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46932         HAVE_DECL_TRUNCL.
46933         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46934         HAVE_DECL_TRUNCL.
46935         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46936
46937 2008-04-13  Bruno Haible  <bruno@clisp.org>
46938
46939         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46940
46941 2008-04-13  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46944         expression, so as to avoid HP-UX 11 cc compiler bug.
46945
46946 2008-04-13  Bruno Haible  <bruno@clisp.org>
46947
46948         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46949
46950 2008-04-13  Bruno Haible  <bruno@clisp.org>
46951
46952         * lib/git-merge-changelog.c: Remove empty declaration outside of
46953         functions.
46954
46955 2008-04-13  Bruno Haible  <bruno@clisp.org>
46956
46957         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46958
46959 2008-04-13  Bruno Haible  <bruno@clisp.org>
46960
46961         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46962         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46964         also if it exists but lacks definitions of the SHUT_* macros.
46965         * modules/sys_socket (Description): Update.
46966         Reported by Elbert Pol <e.pol@chello.nl>.
46967
46968 2008-04-13  Bruno Haible  <bruno@clisp.org>
46969
46970         * lib/localcharset.c (OS2): Don't redefine if already defined.
46971         Reported by Elbert Pol <e.pol@chello.nl>.
46972
46973 2008-04-13  Bruno Haible  <bruno@clisp.org>
46974
46975         * lib/binary-io.h [__EMX__]: Include <io.h>.
46976         Reported by Elbert Pol <e.pol@chello.nl>.
46977
46978 2008-04-12  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/fpucw.h: Enable the definitions also for x86_64.
46981         Needed for NetBSD/x86_64.
46982         Reported by Thomas Klausner <tk@giga.or.at>.
46983
46984 2008-04-12  Bruno Haible  <bruno@clisp.org>
46985
46986         * tests/test-strtod.c: Include isnand.h.
46987         (main): Use isnand instead of isnan.
46988         Reported by Jim Meyering.
46989
46990 2008-04-12  Bruno Haible  <bruno@clisp.org>
46991
46992         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46993         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46994
46995 2008-04-12  Jim Meyering  <meyering@redhat.com>
46996
46997         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46998
46999 2008-04-12  Bruno Haible  <bruno@clisp.org>
47000
47001         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47002         Reported by Elbert Pol <e.pol@chello.nl>.
47003
47004 2008-04-12  Eric Blake  <ebb9@byu.net>
47005
47006         Work around Solaris 10 math.h bug.
47007         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47008         (gl_MATH_H_DEFAULTS): Set up default.
47009         * modules/math (Makefile.am): Replace new indicators.
47010         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47011         * tests/test-math.c (main): Test this.
47012         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47013         * doc/posix-headers/math.texi (math.h): Mention bug.
47014         Reported by Nelson H. F. Beebe and Jim Meyering.
47015
47016 2008-04-11  Bruno Haible  <bruno@clisp.org>
47017
47018         Adapt to future versions of Apple GCC.
47019         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47020         Reported by Peter O'Gorman <peter@pogma.com>.
47021
47022 2008-04-11  Bruno Haible  <bruno@clisp.org>
47023
47024         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47025
47026 2008-04-11  Bruno Haible  <bruno@clisp.org>
47027
47028         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47029
47030         * modules/getaddrinfo-tests (Makefile.am): Define
47031         test_getaddrinfo_LDADD.
47032
47033 2008-04-11  Bruno Haible  <bruno@clisp.org>
47034
47035         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47036         (init): Fix syntax error.
47037         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47038         is declared.
47039
47040 2008-04-11  Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47043         * modules/glob (Depends-on): Add stdbool.
47044
47045 2008-04-11  Bruno Haible  <bruno@clisp.org>
47046
47047         * lib/trim.c: Include <string.h>.
47048
47049 2008-04-11  Eric Blake  <ebb9@byu.net>
47050
47051         Avoid compile failure on OS/2.
47052         * lib/regex_internal.h (internal_function): Disable optimization
47053         on OS/2 (__EMX__), where it caused compiler error.
47054         Reported by Elbert Pol.
47055
47056 2008-04-11  Bruno Haible  <bruno@clisp.org>
47057
47058         Flush the standard error stream before aborting. Needed on mingw.
47059         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47060         * tests/test-array_list.c (ASSERT): Likewise.
47061         * tests/test-array_oset.c (ASSERT): Likewise.
47062         * tests/test-avltree_list.c (ASSERT): Likewise.
47063         * tests/test-avltree_oset.c (ASSERT): Likewise.
47064         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47065         * tests/test-binary-io.c (ASSERT): Likewise.
47066         * tests/test-byteswap.c (ASSERT): Likewise.
47067         * tests/test-c-ctype.c (ASSERT): Likewise.
47068         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47069         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47070         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47071         * tests/test-c-strstr.c (ASSERT): Likewise.
47072         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47073         * tests/test-canonicalize.c (ASSERT): Likewise.
47074         * tests/test-carray_list.c (ASSERT): Likewise.
47075         * tests/test-ceilf1.c (ASSERT): Likewise.
47076         * tests/test-ceilf2.c (ASSERT): Likewise.
47077         * tests/test-ceill.c (ASSERT): Likewise.
47078         * tests/test-count-one-bits.c (ASSERT): Likewise.
47079         * tests/test-fbufmode.c (ASSERT): Likewise.
47080         * tests/test-fflush2.c (ASSERT): Likewise.
47081         * tests/test-floorf1.c (ASSERT): Likewise.
47082         * tests/test-floorf2.c (ASSERT): Likewise.
47083         * tests/test-floorl.c (ASSERT): Likewise.
47084         * tests/test-fopen.c (ASSERT): Likewise.
47085         * tests/test-fpending.c (ASSERT): Likewise.
47086         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47087         * tests/test-fpurge.c (ASSERT): Likewise.
47088         * tests/test-freadable.c (ASSERT): Likewise.
47089         * tests/test-freadahead.c (ASSERT): Likewise.
47090         * tests/test-freading.c (ASSERT): Likewise.
47091         * tests/test-freadptr.c (ASSERT): Likewise.
47092         * tests/test-freadptr2.c (ASSERT): Likewise.
47093         * tests/test-freadseek.c (ASSERT): Likewise.
47094         * tests/test-freopen.c (ASSERT): Likewise.
47095         * tests/test-frexp.c (ASSERT): Likewise.
47096         * tests/test-frexpl.c (ASSERT): Likewise.
47097         * tests/test-fseek.c (ASSERT): Likewise.
47098         * tests/test-fseeko.c (ASSERT): Likewise.
47099         * tests/test-fstrcmp.c (ASSERT): Likewise.
47100         * tests/test-ftell.c (ASSERT): Likewise.
47101         * tests/test-ftello.c (ASSERT): Likewise.
47102         * tests/test-func.c (ASSERT): Likewise.
47103         * tests/test-fwritable.c (ASSERT): Likewise.
47104         * tests/test-fwriting.c (ASSERT): Likewise.
47105         * tests/test-getdelim.c (ASSERT): Likewise.
47106         * tests/test-getline.c (ASSERT): Likewise.
47107         * tests/test-i-ring.c (ASSERT): Likewise.
47108         * tests/test-iconv-utf.c (ASSERT): Likewise.
47109         * tests/test-iconv.c (ASSERT): Likewise.
47110         * tests/test-isfinite.c (ASSERT): Likewise.
47111         * tests/test-isnand.c (ASSERT): Likewise.
47112         * tests/test-isnanf.c (ASSERT): Likewise.
47113         * tests/test-isnanl.h (ASSERT): Likewise.
47114         * tests/test-ldexpl.c (ASSERT): Likewise.
47115         * tests/test-linked_list.c (ASSERT): Likewise.
47116         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47117         * tests/test-localename.c (ASSERT): Likewise.
47118         * tests/test-lseek.c (ASSERT): Likewise.
47119         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47120         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47121         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47122         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47123         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47124         * tests/test-mbschr.c (ASSERT): Likewise.
47125         * tests/test-mbscspn.c (ASSERT): Likewise.
47126         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47127         * tests/test-mbspbrk.c (ASSERT): Likewise.
47128         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47129         * tests/test-mbsrchr.c (ASSERT): Likewise.
47130         * tests/test-mbsspn.c (ASSERT): Likewise.
47131         * tests/test-mbsstr1.c (ASSERT): Likewise.
47132         * tests/test-mbsstr2.c (ASSERT): Likewise.
47133         * tests/test-mbsstr3.c (ASSERT): Likewise.
47134         * tests/test-memchr2.c (ASSERT): Likewise.
47135         * tests/test-memmem.c (ASSERT): Likewise.
47136         * tests/test-open.c (ASSERT): Likewise.
47137         * tests/test-printf-frexp.c (ASSERT): Likewise.
47138         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47139         * tests/test-printf-posix.c (ASSERT): Likewise.
47140         * tests/test-quotearg.c (ASSERT): Likewise.
47141         * tests/test-rbtree_list.c (ASSERT): Likewise.
47142         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47143         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47144         * tests/test-round1.c (ASSERT): Likewise.
47145         * tests/test-roundf1.c (ASSERT): Likewise.
47146         * tests/test-roundl.c (ASSERT): Likewise.
47147         * tests/test-signbit.c (ASSERT): Likewise.
47148         * tests/test-sleep.c (ASSERT): Likewise.
47149         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47150         * tests/test-snprintf.c (ASSERT): Likewise.
47151         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47152         * tests/test-stat-time.c (ASSERT): Likewise.
47153         * tests/test-strcasestr.c (ASSERT): Likewise.
47154         * tests/test-strerror.c (ASSERT): Likewise.
47155         * tests/test-striconv.c (ASSERT): Likewise.
47156         * tests/test-striconveh.c (ASSERT): Likewise.
47157         * tests/test-striconveha.c (ASSERT): Likewise.
47158         * tests/test-strsignal.c (ASSERT): Likewise.
47159         * tests/test-strstr.c (ASSERT): Likewise.
47160         * tests/test-strtod.c (ASSERT): Likewise.
47161         * tests/test-trunc1.c (ASSERT): Likewise.
47162         * tests/test-trunc2.c (ASSERT): Likewise.
47163         * tests/test-truncf1.c (ASSERT): Likewise.
47164         * tests/test-truncf2.c (ASSERT): Likewise.
47165         * tests/test-truncl.c (ASSERT): Likewise.
47166         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47167         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47168         * tests/test-vasnprintf.c (ASSERT): Likewise.
47169         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47170         * tests/test-vasprintf.c (ASSERT): Likewise.
47171         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47172         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47173         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47174         * tests/test-vsnprintf.c (ASSERT): Likewise.
47175         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47176         * tests/test-wcwidth.c (ASSERT): Likewise.
47177         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47178         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47179         * tests/test-xvasprintf.c (ASSERT): Likewise.
47180         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47181         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47182         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47183         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47184         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47185         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47186         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47187         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47188         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47189         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47190         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47191         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47192         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47193         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47194         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47195         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47196         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47197         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47198         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47199         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47200         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47201         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47202         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47203         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47204         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47205         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47206         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47207         * tests/unictype/test-combining.c (ASSERT): Likewise.
47208         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47209         * tests/unictype/test-digit.c (ASSERT): Likewise.
47210         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47211         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47212         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47213         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47214         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47215         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47216         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47217         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47218         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47219         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47220         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47221         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47222         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47223         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47224         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47225         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47226         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47227         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47228         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47229         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47230         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47231         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47232         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47233         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47234         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47235         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47236         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47237         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47238         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47239         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47240         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47241         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47242         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47243         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47244         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47245         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47246         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47247         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47248         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47249         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47250         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47251         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47252         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47253         Reported by Eric Blake.
47254
47255 2008-04-11  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/wchar.in.h: Tweak comment.
47258
47259 2008-04-11  Bruno Haible  <bruno@clisp.org>
47260
47261         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47262         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47263         gl_COMMON.
47264         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47265
47266 2008-04-11  Bruno Haible  <bruno@clisp.org>
47267
47268         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47269
47270 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47271
47272         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47273         of attempting to use non-existing /dev/*random.  Based on patch
47274         from Adam Strzelecki <ono@java.pl> in
47275         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47276
47277 2008-04-08  Bruno Haible  <bruno@clisp.org>
47278
47279         Add tentative support for emx+gcc.
47280         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47281         * lib/fpurge.c (fpurge): Likewise.
47282         * lib/freadable.c (freadable): Likewise.
47283         * lib/freadahead.c (freadahead): Likewise.
47284         * lib/freading.c (freading): Likewise.
47285         * lib/freadptr.c (freadptr): Likewise.
47286         * lib/freadseek.c (freadptrinc): Likewise.
47287         * lib/fseeko.c (rpl_fseeko): Likewise.
47288         * lib/fseterr.c (fseterr): Likewise.
47289         * lib/fwritable.c (fwritable): Likewise.
47290         * lib/fwriting.c (fwriting): Likewise.
47291         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47292
47293 2008-04-09  Eric Blake  <ebb9@byu.net>
47294
47295         Avoid some autoconf warnings.
47296         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47297         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47298         * m4/afs.m4 (gl_AFS): Likewise.
47299         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47300         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47301         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47302         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47303         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47304         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47305         (AC_CHECK_DECLS_ONCE): Likewise.
47306         Rename file...
47307         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47308         gnulib-tool requires autoconf 2.59 or better.
47309         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47310
47311 2008-04-08  Eric Blake  <ebb9@byu.net>
47312
47313         Use 'git describe --match' if present (added in git 1.5.5).
47314         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47315         if possible.
47316
47317 2008-04-08  Bruno Haible  <bruno@clisp.org>
47318
47319         Add tentative support for OpenServer.
47320         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47321         _ptr, _cnt.
47322         * lib/fpurge.c (fpurge): Likewise.
47323         * lib/freadable.c (freadable): Likewise.
47324         * lib/freadahead.c (freadahead): Likewise.
47325         * lib/freading.c (freading): Likewise.
47326         * lib/freadptr.c (freadptr): Likewise.
47327         * lib/freadseek.c (freadptrinc): Likewise.
47328         * lib/fseeko.c (rpl_fseeko): Likewise.
47329         * lib/fseterr.c (fseterr): Likewise.
47330         * lib/fwritable.c (fwritable): Likewise.
47331         * lib/fwriting.c (fwriting): Likewise.
47332         Reported by Roger Cornelius <rac@tenzing.org> and
47333         Brian K. White <brian@aljex.com>.
47334
47335 2008-04-06  Jim Meyering  <meyering@redhat.com>
47336
47337         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47338
47339 2008-04-06  Bruno Haible  <bruno@clisp.org>
47340
47341         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47342         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47343         * tests/test-printf-posix.sh: Likewise.
47344         * tests/test-vfprintf-posix.sh: Likewise.
47345         * tests/test-vprintf-posix.sh: Likewise.
47346         * tests/test-xprintf-posix.sh: Likewise.
47347
47348 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47349
47350         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47351         hide error from 'ls', needed on OS/2.
47352         Report by Elbert Pol <elbert.pol@gmail.com>.
47353
47354 2008-04-04  Eric Blake  <ebb9@byu.net>
47355
47356         Make test-fseeko.c failures meaningful.
47357         * tests/test-fseeko.c: Print line number on failure.
47358         * tests/test-fseek.c: Likewise.
47359         Reported by Nelson H. F. Beebe.
47360
47361         Improve strtod bug detection check.
47362         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47363         required for Solaris 10.
47364         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47365
47366 2008-04-04  Bruno Haible  <bruno@clisp.org>
47367
47368         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47369         by m4/setenv.m4.
47370
47371 2008-04-03  Eric Blake  <ebb9@byu.net>
47372
47373         Ensure sane .version contents.
47374         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47375         version string.
47376         * build-aux/git-version-gen: Improve documentation.
47377
47378         Make GNU make output nicer.
47379         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47380         MAKECMDGOALS to enforce message for all command line targets.  Set
47381         srcdir for use in maint.mk.
47382
47383         Another maintainer tweak.
47384         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47385         a target that regenerates version.
47386
47387 2008-04-03  Jim Meyering  <meyering@redhat.com>
47388
47389         vc-list-files: don't cause coreutils "make po-check" failure
47390         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47391
47392 2008-04-03  Eric Blake  <ebb9@byu.net>
47393
47394         Allow VPATH usage of vc-list-files.
47395         * build-aux/vc-list-files (scriptversion): Add timestamp.
47396         (options): Add --help, --version, -C.
47397         (CVS): Support installed cvsu.
47398
47399 2008-04-02  Bruno Haible  <bruno@clisp.org>
47400
47401         Avoid some "statement with no effect" warnings from gcc.
47402         * tests/test-wctype.c (main): Explicitly ignore unused values.
47403         Reported by Jim Meyering.
47404
47405 2008-04-02  Jim Meyering  <meyering@redhat.com>
47406
47407         Avoid some warnings from "gcc -Wshadow".
47408         * tests/test-frexp.c (exp): Define to a different identifier.
47409         * tests/test-frexpl.c (exp): Likewise.
47410
47411 2008-04-03  Jim Meyering  <meyering@redhat.com>
47412
47413         bootstrap: remove dangling *.[ch] symlinks from lib
47414         * build-aux/bootstrap [dangling symlink removal]: Move find's
47415         -depth option to precede all others, to avoid a warning.
47416         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47417
47418 2008-04-02  Bruno Haible  <bruno@clisp.org>
47419
47420         Avoid some warnings from "gcc -Wshadow".
47421         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47422         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47423         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47424         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47425         Reported by Jim Meyering.
47426
47427 2008-04-01  Bruno Haible  <bruno@clisp.org>
47428
47429         Fix test to work on IRIX 6.5 with cc.
47430         * tests/test-math.c (numeric_equal): New function.
47431         (main): Use it.
47432
47433 2008-04-01  Bruno Haible  <bruno@clisp.org>
47434
47435         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47436
47437 2008-04-01  Bruno Haible  <bruno@clisp.org>
47438
47439         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47440         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47441         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47442         (Depends-on): Remove math.
47443
47444         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47445         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47446         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47447         (Depends-on): Remove math.
47448
47449         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47450         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47451         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47452         (Depends-on): Remove math.
47453         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47454         (Depends-on): Remove math.
47455
47456         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47457         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47458         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47459         (Depends-on): Remove math.
47460         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47461         (Depends-on): Remove math.
47462
47463         * tests/test-round1.c: Include nan.h.
47464         (main): Use NaNd instead of NAN.
47465         * modules/round-tests (Files): Add tests/nan.h.
47466
47467         * tests/test-trunc1.c: Include nan.h.
47468         (main): Use NaNd instead of NAN.
47469         * modules/trunc-tests (Files): Add tests/nan.h.
47470
47471         * tests/test-roundf1.c: Include nan.h.
47472         (main): Use NaNf instead of NAN.
47473         * modules/roundf-tests (Files): Add tests/nan.h.
47474
47475         * tests/test-truncf1.c: Include nan.h.
47476         (main): Use NaNf instead of NAN.
47477         * modules/truncf-tests (Files): Add tests/nan.h.
47478
47479         * tests/test-ceilf1.c: Include nan.h.
47480         (main): Use NaNf instead of NAN.
47481         * modules/ceilf-tests (Files): Add tests/nan.h.
47482
47483         * tests/test-floorf1.c: Include nan.h.
47484         (main): Use NaNf instead of NAN.
47485         * modules/floorf-tests (Files): Add tests/nan.h.
47486
47487         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47488         (main): Use NaNf instead of NAN.
47489         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47490
47491         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47492         (main): Use NaNd instead of NAN.
47493         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47494
47495         * tests/test-frexp.c: Include nan.h.
47496         (main): Use NaNd instead of NAN.
47497         * modules/frexp-tests (Files): Add tests/nan.h.
47498
47499         * lib/isnan.c: Don't include <math.h>.
47500         (FUNC): Don't use NAN macro.
47501         * modules/isnand-nolibm (Depends-on): Remove math.
47502         * modules/isnanf-nolibm (Depends-on): Remove math.
47503         * modules/isnanl (Depends-on): Remove math.
47504         * modules/isnanl-nolibm (Depends-on): Remove math.
47505
47506         * tests/nan.h: New file.
47507
47508 2008-04-01  Eric Blake  <ebb9@byu.net>
47509
47510         Fix typos.
47511         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47512         values to be the right type.
47513
47514         For now, cater to gnulib strtod inaccuracies.
47515         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47516         fractional results.  While not as nice from a QoI perspective, it
47517         is a quicker patch than correctly implementing decimal to binary
47518         rounding.
47519
47520 2008-03-31  Eric Blake  <ebb9@byu.net>
47521
47522         Guarantee a definition of NAN.
47523         * lib/math.in.h (NAN): Define if missing.
47524         * tests/test-math.c (main): Test it.
47525         * doc/posix-headers/math.texi (math.h): Document this.
47526         * lib/isnan.c (rpl_isnand): Use it.
47527         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47528         * tests/test-floorf1.c (NaN): Likewise.
47529         * tests/test-frexp.c (NaN): Likewise.
47530         * tests/test-isnand.c (NaN): Likewise.
47531         * tests/test-isnanf.c (NaN): Likewise.
47532         * tests/test-round1.c (NaN): Likewise.
47533         * tests/test-roundf1.c (NaN): Likewise.
47534         * tests/test-snprintf-posix.h (NaN): Likewise.
47535         * tests/test-sprintf-posix.h (NaN): Likewise.
47536         * tests/test-trunc1.c (NaN): Likewise.
47537         * tests/test-truncf1.c (NaN): Likewise.
47538         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47539         * tests/test-vasprintf-posix.c (NaN): Likewise.
47540         * modules/isnand-nolibm (Depends-on): Add math.
47541         * modules/isnanf-nolibm (Depends-on): Likewise.
47542         * modules/isnanl (Depends-on): Likewise.
47543         * modules/isnanl-nolibm (Depends-on): Likewise.
47544         * modules/snprintf-posix-tests (Depends-on): Likewise.
47545         * modules/sprintf-posix-tests (Depends-on): Likewise.
47546         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47547         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47548         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47549         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47550
47551 2008-03-31  Bruno Haible  <bruno@clisp.org>
47552
47553         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47554         * doc/posix-functions/strtod.texi: Likewise.
47555
47556 2008-03-31  Bruno Haible  <bruno@clisp.org>
47557
47558         * tests/test-strtod.c (main): Don't use C99 syntax.
47559
47560 2008-03-31  Bruno Haible  <bruno@clisp.org>
47561
47562         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47563         Reported by Eric Blake.
47564
47565 2008-03-31  Jim Meyering  <meyering@redhat.com>
47566
47567         Don't compare actual signbit return values.
47568         * tests/test-strtod.c (main): Rather, compare only their
47569         zero/non-zero nature.
47570
47571 2008-03-31  Eric Blake  <ebb9@byu.net>
47572
47573         More strtod documentation.
47574         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47575         failures as distinct bugs.
47576
47577 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47578
47579         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47580         Problem reported by Erik Benada in
47581         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47582
47583 2008-03-30  Bruno Haible  <bruno@clisp.org>
47584
47585         * tests/test-strtod.c: Add comments about which assertion fails on which
47586         platform.
47587         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47588
47589 2008-03-30  Eric Blake  <ebb9@byu.net>
47590
47591         Test signbit behavior on zeros.
47592         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47593         (test_signbitd, test_signbitl): Likewise.
47594
47595         More strtod touchups.
47596         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47597         sign of negative underflow, for now.  Use .5, not .1.
47598         * doc/posix-functions/strtod.texi (strtod): Mention these
47599         limitations.
47600         Reported by Jim Meyering.
47601
47602 2008-03-30  Bruno Haible  <bruno@clisp.org>
47603
47604         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47605         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47606
47607 2008-03-30  Bruno Haible  <bruno@clisp.org>
47608
47609         Avoid failure when attempting to return empty iconv results on some
47610         platforms.
47611         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47612         allocation, don't report ENOMEM when the resulting string is empty.
47613
47614 2008-03-30  Bruno Haible  <bruno@clisp.org>
47615
47616         Fix buffer overrun.
47617         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47618         Don't consider the width for tmp_length. Check count against tmp_length
47619         before doing the padding. Ensure enough allocation during padding.
47620
47621 2008-03-30  Eric Blake  <ebb9@byu.net>
47622
47623         strtod touchups.
47624         * lib/strtod.c (strtod): Avoid compiler warnings.
47625         Reported by Jim Meyering.
47626
47627 2008-03-30  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47630         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47631         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47632         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47633         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47634         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47635         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47636         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47637
47638         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47639         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47640         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47641         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47642         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47643         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47644         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47645         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47646
47647         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47648         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47649         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47650         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47651         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47652         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47653         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47654         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47655
47656         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47657         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47658
47659         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47660         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47661
47662         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47663         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47664
47665         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47667         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47668
47669         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47671         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47672
47673         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47675         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47676
47677         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47679         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47680
47681         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47682         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47683         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47684         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47685         (Depends-on): Add EOVERFLOW.
47686         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47687         (Depends-on): Add EOVERFLOW.
47688         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47689         (Depends-on): Add EOVERFLOW.
47690         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47691         (Depends-on): Add EOVERFLOW.
47692         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47693         (Depends-on): Add EOVERFLOW.
47694         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47695         (Depends-on): Add EOVERFLOW.
47696         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47697         (Depends-on): Add EOVERFLOW.
47698         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47699         (Depends-on): Add EOVERFLOW.
47700
47701         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47703         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47704
47705         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47707         * modules/snprintf (Depends-on): Add EOVERFLOW.
47708
47709         * lib/poll.c (EOVERFLOW): Remove fallback.
47710         * modules/poll (Depends-on): Add EOVERFLOW.
47711
47712         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47713         * modules/getugroups (Depends-on): Add EOVERFLOW.
47714
47715         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47716         * modules/getdelim (Depends-on): Add EOVERFLOW.
47717
47718         * lib/ftell.c (EOVERFLOW): Remove fallback.
47719         * modules/ftell (Depends-on): Add EOVERFLOW.
47720
47721         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47722         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47723         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47724
47725         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47726
47727         * modules/EOVERFLOW-tests: New file.
47728         * tests/test-EOVERFLOW.c: New file.
47729
47730         * modules/EOVERFLOW: New file.
47731         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47732
47733 2008-03-30  Bruno Haible  <bruno@clisp.org>
47734
47735         Fix bug introduced on 2007-06-10.
47736         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47737         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47738
47739 2008-03-30  Bruno Haible  <bruno@clisp.org>
47740
47741         Improve freadseek's efficiency after ungetc.
47742         * lib/freadseek.c: Include freadahead.h.
47743         (freadptrinc): New function, extracted from freadseek.
47744         (freadseek): Use it in a loop. Use freadahead to determine the number
47745         of loop iterations.
47746         * modules/freadseek (Depends-on): Add freadahead.
47747         (configure.ac): Require AC_C_INLINE.
47748
47749 2008-03-30  Bruno Haible  <bruno@clisp.org>
47750
47751         * lib/freadseek.c (freadseek): Don't ignore the return value of
47752         freadptr.
47753
47754 2008-03-29  Eric Blake  <ebb9@byu.net>
47755
47756         Add hex float support.
47757         * modules/strtod (Depends-on): Add c-ctype.
47758         (Link): Mention POW_LIB.
47759         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47760         whitespace between 'e' and exponent.
47761         * tests/test-strtod.c (main): Enable hex float tests.
47762         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47763         now provides.
47764
47765         Document various strtod bugs, with some fixes.
47766         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47767         "-0x", "inf", "nan", and hex constants.
47768         * doc/posix-functions/atof.texi (atof): Likewise.
47769         * modules/stdlib (Makefile.am): Support strtod.
47770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47771         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47772         detect additional strtod bugs.
47773         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47774         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47775         bool where appropriate.  Parse 'inf' and 'nan'.
47776         * tests/test-strtod.c: New file.
47777         * modules/strtod (Depends-on): Add stdbool, stdlib.
47778         (configure.ac): Turn on module indicator.
47779         * modules/strtod-tests: New module.
47780
47781 2008-03-29  Eric Blake  <ebb9@byu.net>
47782
47783         Fix ftell on mingw.
47784         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47785         * modules/ftell-tests (Depends-on): Add binary-io.
47786         * modules/ftello-tests (Depends-on): Likewise.
47787         * tests/test-ftell.c (main): Enhance test to cover behavior after
47788         ungetc.  Enforce binary mode.
47789         * tests/test-ftello.c (main): Likewise.
47790
47791         Pass test-freadseek on cygwin.
47792         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47793         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47794         ungetc buffer.
47795
47796         * tests/test-fflush2.c (main): Fix typo.
47797
47798 2008-03-29  Bruno Haible  <bruno@clisp.org>
47799
47800         * tests/test-fflush2.c (main): Temporarily disable the contents of
47801         this test.
47802         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47803         Reported by Eric Blake.
47804
47805 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47806
47807         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47808         (GC_SHA224_DIGEST_SIZE): Add.
47809
47810         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47811         (gc_hash_digest_length): Likewise.
47812         (gc_hash_buffer): Likewise.
47813
47814 2008-03-25  Bruno Haible  <bruno@clisp.org>
47815
47816         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47817         detail which gettext release to use.
47818         Reported by Simon Josefsson.
47819
47820 2008-03-26  Jim Meyering  <meyering@redhat.com>
47821
47822         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47823         * modules/gnumakefile (clean-GNUmakefile): Also, use
47824         test ... && ... || : syntax rather than if-then ... fi.
47825
47826         gnumakefile: Don't double-quote-expand $(VPATH) value.
47827         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47828
47829 2008-03-24  Eric Blake  <ebb9@byu.net>
47830
47831         Alter GNUmakefile to install into top directory.
47832         * modules/maintainer-makefile: Split, and add dependency...
47833         * modules/gnumakefile: to this new module.
47834         * build-aux/GNUmakefile: Move...
47835         * top/GNUmakefile: ...here.
47836         * build-aux/maint.mk: Move...
47837         * top/maint.mk: ...here.
47838         * MODULES.html.sh (Support for maintaining...): Document new
47839         module.
47840
47841 2008-03-23  Bruno Haible  <bruno@clisp.org>
47842
47843         * gnulib-tool: New options --vc-files, --no-vc-files.
47844         (func_usage): Document them.
47845         (vc_files): New variable.
47846         (func_import): Consider vc_files.
47847         (func_create_testdir): Set vc_files to empty.
47848         Suggested by Jim Meyering and Karl Berry.
47849
47850 2008-03-23  Bruno Haible  <bruno@clisp.org>
47851
47852         Fix regex compilation error on HP-UX 11.
47853         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47854         * modules/regex (Files): Add m4/mbstate_t.m4.
47855         Reported by Ton Voon <ton.voon@altinity.com>.
47856
47857 2008-03-23  Bruno Haible  <bruno@clisp.org>
47858
47859         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47860
47861 2008-03-23  Eric Blake  <ebb9@byu.net>
47862             Bruno Haible  <bruno@clisp.org>
47863
47864         Install files from top/ in the destination directory.
47865         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47866         augmentation also for the files from top/.
47867         (func_import, func_create_testdir): Rewrite file names:
47868         top/filename -> filename.
47869
47870 2008-03-23  Bruno Haible  <bruno@clisp.org>
47871
47872         Tweak "gnulib --version" output.
47873         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47874
47875 2008-03-23  Bruno Haible  <bruno@clisp.org>
47876
47877         Tweak "gnulib --version" output.
47878         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47879         rather than contents of ChangeLog, when possible.
47880
47881 2008-03-21  Eric Blake  <ebb9@byu.net>
47882
47883         More --version tweaks.
47884         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47885         date of last ChangeLog entry.
47886
47887 2008-03-21  Jim Meyering  <meyering@redhat.com>
47888
47889         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47890
47891 2008-03-20  Eric Blake  <ebb9@byu.net>
47892
47893         VPATH fix.
47894         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47895
47896 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47897
47898         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47899         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47900
47901 2008-03-20  Eric Blake  <ebb9@byu.net>
47902
47903         Sync GNUmakefile with coreutils.
47904         * build-aux/GNUmakefile (have-Makefile): Rename...
47905         (_have-Makefile): ...to this, for namespace consideration.
47906         (GNUmakefile.cfg): Include, if present.
47907         (_autoreconf): Define a default.
47908         (_is-dist-target): New rule for rebuilds to pick up intra-release
47909         version.
47910         (maint-cfg.mk): Rename...
47911         (cfg.mk): ...to this.
47912
47913 2008-03-18  Jim Meyering  <meyering@redhat.com>
47914
47915         New script and module: mktempd
47916         * MODULES.html.sh (maint+release support): Add mktempd.
47917         * build-aux/mktempd: New file.
47918         * modules/mktempd: New file.
47919
47920 2008-03-15  Jim Meyering  <meyering@redhat.com>
47921
47922         Undo last change.
47923         * lib/sha1.c, lib/md5.c: 63 != ~63.
47924         Reported by Andreas Schwab.
47925
47926         sha1.c, md5.c: Hoist a redundant expression.
47927         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47928         "ctx->buflen" only once, before calling *_process_block.
47929         * lib/md5.c (md5_process_bytes): Likewise.
47930
47931 2008-03-14  Eric Blake  <ebb9@byu.net>
47932
47933         Bump copyright year in files generated by gnulib-tool.
47934         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47935         gnulib-tool, rather than hard-coding it.
47936
47937         Fix 'gnulib-tool --version' output to work with git.
47938         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47939         (startup): ...here.
47940         (func_version): Use it to invoke git-version-gen, rather than
47941         relying on CVS keyword expansion.  Modernize wording.
47942         (cvsdatestamp, last_checkin_date, version): Kill unused
47943         variables.
47944
47945 2008-03-12  Jim Meyering  <meyering@redhat.com>
47946
47947         Recognize optional cast of the argument to free.
47948         * build-aux/useless-if-before-free: Update regexps.
47949
47950         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47951
47952 2008-03-11  Bruno Haible  <bruno@clisp.org>
47953
47954         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47955         by a single package.
47956         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47957         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47958         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47959         Reported by Sam Steingold <sds@gnu.org>.
47960
47961 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47962
47963         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47964         repositories.
47965
47966 2008-03-11  Bruno Haible  <bruno@clisp.org>
47967
47968         Avoid conflicts between local macro definitions.
47969         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47970         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47971
47972 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47973             Bruno Haible  <bruno@clisp.org>
47974
47975         Make va_copy work with some version of xlc on AIX 5.1.
47976         * lib/stdarg.in.h: New file.
47977         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47978         On AIX, use a <stdarg.h> file substitute.
47979         * modules/stdarg (Files): Add lib/stdarg.in.h.
47980         (Depends-on): Add include_next.
47981         (Makefile.am): Build a stdarg.h substitute if requested.
47982         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47983
47984 2008-03-10  Bruno Haible  <bruno@clisp.org>
47985
47986         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47987         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47988         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47989
47990 2008-03-10  Bruno Haible  <bruno@clisp.org>
47991
47992         * modules/stdlib (Depends-on): Add include_next, remove
47993         absolute-header.
47994
47995 2008-03-09  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/freadahead.h (freadahead): Document more precisely.
47998         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47999         the sum of both buffer sizes.
48000         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48001         * NEWS: Document the change.
48002
48003 2008-03-09  Bruno Haible  <bruno@clisp.org>
48004
48005         Extend freadptr to return also the buffer size.
48006         * lib/freadptr.h (freadptr): Add sizep argument.
48007         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48008         (freadptr): Add sizep argument. Determine buffer size like freadahead
48009         does.
48010         * tests/test-freadptr.c: Don't include freadahead.h.
48011         (main): Adapt for new calling convention of freadptr.
48012         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48013         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48014         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48015         tests/test-freadptr2.sh.
48016         (Depends): Remove freadahead.
48017         (TESTS): Add test-freadptr2.sh.
48018         (check_PROGRAMS): Add test-freadptr2.
48019
48020 2008-03-09  Bruno Haible  <bruno@clisp.org>
48021
48022         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48023         Report and solution by Simon Josefsson.
48024
48025 2008-03-06  Bruno Haible  <bruno@clisp.org>
48026
48027         Make fflush after ungetc work on BSD platforms.
48028         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48029         * tests/test-fflush2.c: New file.
48030         * tests/test-fflush2.sh: New file.
48031         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48032         tests/test-fflush2.c.
48033         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48034         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48035
48036 2008-03-06  Eric Blake  <ebb9@byu.net>
48037
48038         Likewise for ftello.
48039         * modules/ftello (Dependencies): Add extensions.
48040         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48041
48042 2008-03-06  Bruno Haible  <bruno@clisp.org>
48043
48044         * modules/fseeko (Dependencies): Add extensions.
48045         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48046         Needed on glibc systems.
48047
48048 2008-03-06  Bruno Haible  <bruno@clisp.org>
48049
48050         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48051         email address.
48052         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48053
48054 2008-03-06  Bruno Haible  <bruno@clisp.org>
48055
48056         * users.txt: Add libgnupdf.
48057
48058 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48059
48060         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48061         (Header File Substitutes, Function Substitutes,
48062         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48063         (Build robot for gnulib): Fix typo.
48064
48065 2008-03-06  Bruno Haible  <bruno@clisp.org>
48066
48067         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48068         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48069
48070 2008-03-06  Bruno Haible  <bruno@clisp.org>
48071
48072         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48073         * doc/gnulib.texi: Include it.
48074
48075 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48076
48077         * modules/func (License): Change license to unlimited; there was
48078         no LGPL parts in the module anyway.
48079
48080 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48081
48082         * modules/__func__: Renamed to modules/func.
48083         * modules/__func__-tests: Renamed to modules/func-tests.
48084         * tests/test-__func__.c: Renamed to tests/test-func.c.
48085         * m4/__func__.m4: Renamed to m4/func.m4.
48086         * doc/gnulib.texi (__func__): Section renamed to func.
48087         Suggested by Eric Blake <ebb9@byu.net>.
48088
48089 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48090
48091         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48092         about __func__.  Make example self-contained.  Suggested by Eric
48093         Blake <ebb9@byu.net>.
48094
48095         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48096         Suggested by Eric Blake <ebb9@byu.net>.
48097
48098 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48099
48100         * modules/__func__: New file.
48101         * modules/__func__-tests: New file.
48102         * tests/test-__func__.c: New file.
48103         * m4/__func__.m4: New file.
48104         * doc/gnulib.texi (__func__): Document __func__ module.
48105
48106 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48107
48108         * modules/byteswap (License): Re-license as LGPLv2+.
48109
48110 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48111
48112         * doc/Makefile: Add pdf target.
48113
48114 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48115
48116         * modules/inline (License): Use 'unlimited', since there are only
48117         *.m4 files in this module.
48118
48119 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48120             Bruno Haible  <bruno@clisp.org>
48121
48122         Add support for HP C 7.1 on OpenVMS 8.3.
48123         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48124
48125 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48126
48127         Update VMS specifics.
48128         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48129
48130 2008-03-02  Jim Meyering  <meyering@redhat.com>
48131
48132         Remove the last dependency on the "free" module.
48133         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48134         Reported by Bob Proulx.
48135
48136         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48137
48138         Remove useless "if" tests before free.  Deprecate "free" module.
48139         * doc/posix-functions/free.texi: Mention that this
48140         module is no longer useful.
48141         * modules/free (Notice): Say this module is obsolete.
48142         * modules/readutmp (Depends-on): Remove free.
48143         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48144         * lib/putenv.c (putenv): Likewise.
48145         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48146         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48147         * tests/test-c-strcasestr.c (main): Likewise.
48148         * tests/test-c-strstr.c (main): Likewise.
48149         * tests/test-mbscasestr1.c (main): Likewise.
48150         * tests/test-mbscasestr2.c (main): Likewise.
48151         * tests/test-mbsstr1.c (main): Likewise.
48152         * tests/test-mbsstr2.c (main): Likewise.
48153         * tests/test-memmem.c (main): Likewise.
48154         * tests/test-strcasestr.c (main): Likewise.
48155         * tests/test-striconv.c (main): Likewise.
48156         * tests/test-striconveh.c (main): Likewise.
48157         * tests/test-striconveha.c (main): Likewise.
48158         * tests/test-strstr.c (main): Likewise.
48159
48160         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48161
48162         bootstrap: sync from coreutils again
48163         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48164
48165 2008-03-01  Jim Meyering  <meyering@redhat.com>
48166
48167         bootstrap: sync from coreutils
48168         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48169         also when the target doesn't exist.
48170
48171 2008-03-01  Eric Blake  <ebb9@byu.net>
48172
48173         Fix bugs in last patch.
48174         * lib/memchr2.c (memchr2): Fix typo.
48175         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48176         extension.
48177         Reported by Bruce Korb.
48178
48179         New module 'memchr2'.
48180         * modules/memchr2: New file.
48181         * modules/memchr2-tests: Likewise.
48182         * lib/memchr2.h: Likewise.
48183         * lib/memchr2.c: Likewise, based on memchr.c.
48184         * tests/test-memchr2.c: New test.
48185         * MODULES.html.sh (String handling): Add memchr2.
48186
48187 2008-02-29  Bruno Haible  <bruno@clisp.org>
48188
48189         * modules/freadseek-tests: New file.
48190         * tests/test-freadseek.sh: New file.
48191         * tests/test-freadseek.c: New file.
48192
48193         New module 'freadseek'.
48194         * modules/freadseek: New file.
48195         * lib/freadseek.h: New file.
48196         * lib/freadseek.c: New file.
48197         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48198
48199 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48200
48201         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48202         wydawca.
48203
48204         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48205         program_invocation_name and program_invocation_short_name are
48206         present.
48207
48208 2008-02-28  Bruno Haible  <bruno@clisp.org>
48209
48210         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48211         * tests/test-freadptr.sh: Also test non-seekable stdin.
48212
48213 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48214
48215         * build-aux/bootstrap (source_base, m4_base)
48216         (doc_base, tests_base): New variables.
48217         (gnulib_tool_options): Do not hardcode base directories, use
48218         the above variables instead.
48219
48220 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48221
48222         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48223
48224 2008-02-28  Bruno Haible  <bruno@clisp.org>
48225
48226         * modules/freadptr-tests: New file.
48227         * tests/test-freadptr.sh: New file.
48228         * tests/test-freadptr.c: New file.
48229
48230         New module 'freadptr'.
48231         * modules/freadptr: New file.
48232         * lib/freadptr.h: New file.
48233         * lib/freadptr.c: New file.
48234         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48235
48236 2008-02-26  Karl Berry  <karl@freefriends.org>
48237
48238         Sync from Libtool:
48239         * libltdl/argz.c (argz_add, argz_count): New functions.
48240         * libltdl/argz.in.h: Declare them.
48241         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48242
48243 2008-02-22  Bruno Haible  <bruno@clisp.org>
48244
48245         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48246         is a pointer type.  Needed for HP-UX 10.
48247         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48248         * doc/posix-functions/gmtime_r.texi: Likewise.
48249         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48250
48251 2008-02-24  Bruno Haible  <bruno@clisp.org>
48252
48253         * modules/environ-tests: New file.
48254         * tests/test-environ.c: New file.
48255
48256         New module 'environ'.
48257         * modules/environ: New file.
48258         * lib/unistd.in.h (environ): New declaration.
48259         * m4/environ.m4: New file.
48260         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48261         after use.
48262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48263         HAVE_DECL_ENVIRON.
48264         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48265         HAVE_DECL_ENVIRON.
48266         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48267         wrong claim that 'environ' is missing on some systems.
48268         * modules/execute (Depends-on): Add environ.
48269         * lib/execute.c (environ): Remove fallback declaration.
48270         * modules/pipe (Depends-on): Add environ.
48271         * lib/pipe.c (environ): Remove fallback declaration.
48272         * modules/setenv (Depends-on): Add environ.
48273         * lib/setenv.c (environ): Remove fallback declaration.
48274         * modules/unsetenv (Depends-on): Add environ.
48275         * lib/unsetenv.c (environ): Remove fallback declaration.
48276         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48277         m4/environ.m4.
48278         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48279         (gl_PREREQ_UNSETENV): Likewise.
48280
48281 2008-02-24  Bruno Haible  <bruno@clisp.org>
48282
48283         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48284
48285 2008-02-20  Bob Proulx  <bob@proulx.com>
48286
48287         Enable use of older two part flavor 'git describe'.
48288         * build-aux/git-version-gen: If using the older two part flavor of
48289         git version then recreate the third part now present in the
48290         newer three part flavor of git describe.
48291
48292 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48293
48294         * lib/fts.c (fts_build): Typo correction to comment.
48295
48296 2008-02-17  Bruno Haible  <bruno@clisp.org>
48297
48298         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48299         generating no-op conflicts.
48300
48301 2008-02-17  Bruno Haible  <bruno@clisp.org>
48302
48303         Speed up by 10%.
48304         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48305         result_entries, rather than an index-based loop.
48306
48307 2008-02-17  Bruno Haible  <bruno@clisp.org>
48308
48309         Speed up by 25%.
48310         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48311         'hashcode_cached'.
48312         (entry_create): New function.
48313         (entry_hashcode): Use the cached hashcode if possible.
48314         (read_changelog_file, try_split_merged_entry): Use entry_create.
48315
48316 2008-02-17  Bruno Haible  <bruno@clisp.org>
48317
48318         Speed up from O(n^2) to O(n) for long ChangeLog files.
48319         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48320         (read_changelog_file): Change implementation of entries_reversed list
48321         to rbtreehash.
48322         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48323
48324 2008-02-17  Bruno Haible  <bruno@clisp.org>
48325
48326         New option --split-merged-entry.
48327         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48328         (find_paragraph_end, try_split_merged_entry): New functions.
48329         (long_options): Add option --split-merged-entry.
48330         (usage): Document option --split-merged-entry.
48331         (main): Implement option --split-merged-entry.
48332         Reported by Eric Blake.
48333
48334 2008-02-17  Bruno Haible  <bruno@clisp.org>
48335
48336         * lib/git-merge-changelog.c: Include c-strstr.h.
48337         (main): Support the "git pull --rebase" situation.
48338         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48339         Reported by Eric Blake.
48340
48341 2008-02-16  Eric Blake  <ebb9@byu.net>
48342
48343         Avoid doubling \ in common case of "c-maybe" quoting style.
48344         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48345         eliding outer quotes.
48346         * lib/quotearg.h: Document this.
48347         * tests/test-quotearg.c (result_strings, inputs, results_g)
48348         (flag_results, locale_results): Test it by adding a new string to
48349         each test group.
48350         (compare_strings): Test new string.
48351
48352 2008-02-13  Eric Blake  <ebb9@byu.net>
48353
48354         Avoid trigraph quoting in default output.
48355         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48356         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48357         unless explicitly requested.
48358         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48359
48360 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48361
48362         Don't rely on signed integer overflowing to negative value.
48363         * lib/getugroups.c (getugroups): Include <limits.h>.
48364         Instead, compare against INT_MAX, and increment only if the test passes.
48365
48366 2008-02-13  Jim Meyering  <meyering@redhat.com>
48367         and Eric Blake  <ebb9@byu.net>
48368
48369         Avoid shadowing warning and compile errors on Linux.
48370         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48371         forwarding macros on Linux.
48372         (dcgettext): Define a stub, for Linux.
48373         (results_g, main): Avoid warnings.
48374
48375 2008-02-12  Eric Blake  <ebb9@byu.net>
48376
48377         Silence warning in last patch.
48378         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48379
48380         Quotearg part 4: add tests, fix c-maybe colon quoting.
48381         * lib/quotearg.h: Improve documentation.
48382         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48383         escapes when adding outer quotes.  When quoting trigraphs, use
48384         valid C notation.  When quoting NUL, omit extra characters if next
48385         character is not digit.  Alter prototype.
48386         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48387         callers.
48388         * modules/quotearg-tests: New module.
48389         * tests/test-quotearg.c: New test.
48390
48391 2008-02-07  Eric Blake  <ebb9@byu.net>
48392
48393         Quotearg part 3: add flag to control outer quote elision.
48394         * lib/quotearg.h (c_maybe_quoting_style): New style.
48395         (enum quoting_flags): Better documentation of flags.
48396         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48397         c-maybe style.
48398         (quotearg_buffer_restyled): Handle new flag to elide outer
48399         quotes.
48400
48401         Quotearg part 2: add flag that can control NUL elision.
48402         * lib/quotearg.h (set_quoting_flags): New prototype.
48403         * lib/quotearg.c (struct quoting_options): Add flag field.
48404         (set_quoting_flags): New function.
48405         (quotearg_buffer_restyled): Add flags parameter.
48406         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48407         (quotearg_n_options): Set the flag, since length cannot be
48408         returned.
48409         (quoting_options_from_style): Default flags correctly.
48410
48411         Quotearg part 1: more wrappers, restore quotearg_char state.
48412         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48413         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48414         (quotearg_colon_mem): New wrappers.
48415         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48416         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48417         functions.
48418         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48419         (quotearg_colon_mem): New functions.
48420
48421 2008-02-11  Bruno Haible  <bruno@clisp.org>
48422
48423         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48424         library in the current directory: it does not work with parallel make.
48425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48426
48427 2008-02-11  Bruno Haible  <bruno@clisp.org>
48428
48429         * .gitattributes: New file.
48430
48431 2008-02-11  Jim Meyering  <meyering@redhat.com>
48432
48433         useless-if-before-free: Fix reversed exit values.
48434         * build-aux/useless-if-before-free: Use correct values
48435         for EXIT_MATCH and EXIT_NO_MATCH.
48436
48437         * build-aux/useless-if-before-free: Close stdout carefully.
48438
48439 2008-02-10  Bruno Haible  <bruno@clisp.org>
48440
48441         New module 'git-merge-changelog'.
48442         * modules/git-merge-changelog: New file.
48443         * lib/git-merge-changelog.c: New file.
48444
48445 2008-02-10  Jim Meyering  <meyering@redhat.com>
48446
48447         useless-if-before-free: New option: --list (-l).
48448
48449         useless-if-before-free: Don't exit immediately upon open failure.
48450         * build-aux/useless-if-before-free: Exit 2 for errors.
48451         Upon failure to open a file, don't exit immediately.
48452         Rather, just warn and continue with any remaining files.
48453
48454 2008-02-10  Bruno Haible  <bruno@clisp.org>
48455
48456         New abstract list operation 'node_set_value'.
48457         * lib/gl_list.h (gl_list_node_set_value): New function.
48458         (struct gl_list_implementation): New field node_set_value.
48459         * lib/gl_list.c (gl_list_node_set_value): New function.
48460         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48461         (gl_array_list_implementation): Update.
48462         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48463         (gl_carray_list_implementation): Update.
48464         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48465         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48466         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48467         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48468         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48469         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48470         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48471         Update.
48472         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48473         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48474         (gl_sublist_list_implementation): Update.
48475
48476 2008-02-10  Bruno Haible  <bruno@clisp.org>
48477
48478         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48479         Needed when ELEMENT is #defined to 'some_type *'.
48480
48481 2008-02-10  Jim Meyering  <meyering@redhat.com>
48482
48483         New script and module: useless-if-before-free
48484         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48485         * build-aux/useless-if-before-free: New file.
48486         * modules/useless-if-before-free: New file.
48487
48488         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48489
48490         xstrtol_error: Fix typo.
48491         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48492         s/exit_failure/exit_status/.
48493
48494 2008-02-09  Jim Meyering  <meyering@redhat.com>
48495
48496         New script and module: gitlog-to-changelog
48497         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48498         * modules/gitlog-to-changelog: New file.
48499         * build-aux/gitlog-to-changelog: New file.
48500
48501 2008-02-08  Jim Meyering  <meyering@redhat.com>
48502
48503         Avoid two "parameter unused" warnings.
48504         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48505         Mark "st" as used.
48506
48507         Use "git COMMAND", not "git-COMMAND".
48508         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48509         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48510         * build-aux/git-version-gen: Use "git status", not "git-status".
48511
48512 2008-02-07  Bruno Haible  <bruno@clisp.org>
48513
48514         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48515         Avoids a crash on Windows Vista.
48516         Reported by Adam Strzelecki <ono@java.pl> via
48517         Simon Josefsson <simon@josefsson.org>.
48518
48519 2008-02-06  Bruno Haible  <bruno@clisp.org>
48520
48521         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48522         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48523         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48525         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48527         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48528         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48530         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48531         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48532         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48533         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48536         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48537         left-adjust flag.
48538         * tests/test-snprintf-posix.h (test_function): Likewise.
48539         * tests/test-sprintf-posix.h (test_function): Likewise.
48540         * tests/test-vasprintf-posix.c (test_function): Likewise.
48541         * doc/posix-functions/fprintf.texi: Update.
48542         * doc/posix-functions/printf.texi: Update.
48543         * doc/posix-functions/snprintf.texi: Update.
48544         * doc/posix-functions/sprintf.texi: Update.
48545         * doc/posix-functions/vfprintf.texi: Update.
48546         * doc/posix-functions/vprintf.texi: Update.
48547         * doc/posix-functions/vsnprintf.texi: Update.
48548         * doc/posix-functions/vsprintf.texi: Update.
48549         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48550
48551 2008-02-06  Bruno Haible  <bruno@clisp.org>
48552
48553         Fix bug introduced on 2008-01-26.
48554         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48555
48556 2008-02-06  Bruno Haible  <bruno@clisp.org>
48557
48558         Fix bug introduced on 2007-06-10.
48559         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48560         !NEED_PRINTF_FLAG_ZERO.
48561
48562 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48563
48564         getloadavg: use libperfstat on AIX5
48565         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48566
48567 2008-02-03  Bruno Haible  <bruno@clisp.org>
48568
48569         * lib/diffseq.h: Add comments about required #includes.
48570         Reported by Michael Biggs <gnulib@doubleplum.net>.
48571
48572 2008-02-01  Bruno Haible  <bruno@clisp.org>
48573
48574         * users.txt: Add gnuit.
48575
48576 2008-01-31  Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/md4.c (set_uint32): Mark as inline.
48579         * lib/md5.c (set_uint32): Likewise.
48580         * lib/sha1.c (set_uint32): Likewise.
48581         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48582         * m4/md5.m4 (gl_MD5): Likewise.
48583         * m4/sha1.m4 (gl_SHA1): Likewise.
48584
48585 2008-01-31  Jim Meyering  <meyering@redhat.com>
48586
48587         Use "sizeof VAR", rather than a literal "4".
48588         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48589         * lib/md4.c (md4_read_ctx): Likewise.
48590         * lib/sha1.c (sha1_read_ctx): Likewise.
48591
48592 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48593
48594         * tests/test-sha1.c: New file, based on test-md5.c.
48595
48596         * modules/crypto/sha1-tests: New file.
48597
48598 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48599
48600         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48601
48602 2008-01-31  Jim Meyering  <meyering@redhat.com>
48603
48604         Prefer "sizeof v" over the equivalent "4".
48605         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48606         * lib/md5.c (set_uint32): Likewise.
48607         * lib/sha1.c (set_uint32): Likewise.
48608
48609 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48610
48611         * lib/sha1.c (set_uint32): Mark function as static.
48612
48613 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48614
48615         md2: clarify comments to say that alignment is not required.
48616         * lib/md2.h: Remove warning about alignment in comment.
48617         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48618         never been required.
48619
48620 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48621
48622         md4: adapt alignment constraint fix from sha1.
48623         * lib/md4.c (set_uint32): New function, from sha1.c
48624         (md4_read_ctx): Use it.
48625         (md4_finish_ctx): Doc fix.
48626         * lib/md4.h: Doc fix.
48627
48628 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48629
48630         md5: adapt alignment constraint fix from sha1.
48631         * lib/md5.c (set_uint32): New function, from sha1.c
48632         (md5_read_ctx): Use it.
48633         (md5_finish_ctx): Doc fix.
48634         * lib/md5.h: Doc fix.
48635
48636 2008-01-30  Peter Palfrader  <weasel@debian.org>
48637
48638         sha1: remove the result buffer alignment constraint
48639         * lib/sha1.c (set_uint32): New function.
48640         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48641         constraint.
48642         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48643         * lib/sha1.h: Likewise.
48644
48645 2008-01-30  Andreas Schwab  <schwab@suse.de>
48646             Bruno Haible  <bruno@clisp.org>
48647
48648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48649         correct definition of LDBL_MIN_EXP.
48650
48651 2008-01-30  Karl Berry  <karl@gnu.org>
48652
48653         * config/srclist-update: try to preserve x bit on updates.
48654         * config/srclistvars.sh: update for karl.
48655
48656 2008-01-29  Jim Meyering  <meyering@redhat.com>
48657
48658         vasnprintf.c: Avoid warning about unused label
48659         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48660         "overflow" label definition and associated code with the
48661         same cpp condition that guards the sole use of that label.
48662
48663 2008-01-26  Bruno Haible  <bruno@clisp.org>
48664
48665         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48666         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48667         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48668         * lib/isnanl-nolibm.h (isnanl): Likewise.
48669         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48670
48671 2008-01-26  Bruno Haible  <bruno@clisp.org>
48672
48673         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48674         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48675
48676 2008-01-26  Bruno Haible  <bruno@clisp.org>
48677
48678         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48679         GCC >= 4.0 built-in.
48680         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48681
48682 2008-01-26  Bruno Haible  <bruno@clisp.org>
48683
48684         Rename isnan, applicable to 'double' only, to isnand.
48685         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48686         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48687         (configure.ac): Update.
48688         (Include): Replace "isnan.h" with "isnand.h".
48689         * m4/isnand.m4: Renamed from m4/isnan.m4.
48690         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48691         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48692         instead of isnan.c.
48693         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48694         instead of HAVE_ISNAN_IN_LIBC.
48695         (isnand): Renamed from isnan.
48696         * lib/isnand.c: New file.
48697         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48698         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48699         (Makefile.am): Update.
48700         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48701         Include isnand.h instead of isnan.h.
48702         (main): Test isnand instead of isnan.
48703         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48704         isnan-nolibm.
48705         * modules/frexp (Depends-on): Likewise.
48706         * modules/frexp-tests (Depends-on): Likewise.
48707         * modules/frexp-nolibm (Depends-on): Likewise.
48708         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48709         * modules/isfinite (Depends-on): Likewise.
48710         * modules/round-tests (Depends-on): Likewise.
48711         * modules/signbit (Depends-on): Likewise.
48712         * modules/signbit-tests (Depends-on): Likewise.
48713         * modules/snprintf-posix (Depends-on): Likewise.
48714         * modules/sprintf-posix (Depends-on): Likewise.
48715         * modules/trunc-tests (Depends-on): Likewise.
48716         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48717         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48722         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48723         * modules/vasnprintf-posix (Depends-on): Likewise.
48724         * modules/vasprintf-posix (Depends-on): Likewise.
48725         * modules/vfprintf-posix (Depends-on): Likewise.
48726         * modules/vsnprintf-posix (Depends-on): Likewise.
48727         * modules/vsprintf-posix (Depends-on): Likewise.
48728         * lib/frexp.c: Include isnand.h instead of isnan.h.
48729         (ISNAN): Set to isnand instead of isnan.
48730         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48731         (gl_isfinited): Use isnand instead of isnan.
48732         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48733         (gl_signbitd): Use isnand instead of isnan.
48734         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48735         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48736         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48737         (main): Use isnand instead of isnan.
48738         * tests/test-round1.c: Include isnand.h.
48739         (main): Use isnand instead of isnan.
48740         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48741         (ISNAN): Set to isnand instead of isnan.
48742         * tests/test-trunc1.c: Include isnand.h.
48743         (main): Use isnand instead of isnan.
48744         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48745         (equal): Use isnand instead of isnan.
48746         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48747         isnand-nolibm.
48748         * NEWS: Mention the change.
48749
48750 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48751             Bruno Haible  <bruno@clisp.org>
48752
48753         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48754         the GCC builtins for signbits are present and set
48755         REPLACE_SIGNBIT_USING_GCC if so.
48756         * lib/math.in.h (signbit): Define using GCC builtins if
48757         REPLACE_SIGNBIT_USING_GCC is set.
48758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48759         REPLACE_SIGNBIT_USING_GCC.
48760         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48761
48762 2008-01-25  Jim Meyering  <meyering@redhat.com>
48763
48764         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48765         * lib/poll.c: Include <config.h>, not "config.h".
48766         * tests/test-getaddrinfo.c: Likewise.
48767
48768 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48769
48770         * modules/sockets-tests: New file.
48771
48772 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48773
48774         * modules/sockets: New module, can be used to call WSA_Startup and
48775         WSA_Cleanup when needed.
48776
48777         * lib/sockets.h, lib/sockets.c: New files.
48778
48779         * m4/sockets.m4: New file.
48780
48781         * tests/test-sockets.c: New file.
48782
48783 2008-01-19  Bruno Haible  <bruno@clisp.org>
48784
48785         * doc/posix-headers: Renamed from doc/headers.
48786         * doc/posix-functions: Renamed from doc/functions.
48787         * doc/gnulib.texi: Update.
48788
48789 2008-01-19  Bruno Haible  <bruno@clisp.org>
48790
48791         * doc/glibc-functions/strcasestr.texi: Include contents of
48792         doc/functions/strcasestr.texi, fixing the list of platforms.
48793         * doc/functions/strcasestr.texi: Remove file.
48794
48795 2008-01-19  Bruno Haible  <bruno@clisp.org>
48796
48797         * doc/glibc-functions/memmem.texi: Include contents of
48798         doc/functions/memmem.texi.
48799         * doc/functions/memmem.texi: Remove file.
48800
48801 2008-01-18  Bruno Haible  <bruno@clisp.org>
48802
48803         * doc/glibc-functions/*.texi: New files.
48804         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48805         to use the new files.
48806
48807 2008-01-17  Bruno Haible  <bruno@clisp.org>
48808
48809         * tests/test-gethostname.c (main): Fix printf statement.
48810
48811 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48812
48813         * modules/gethostname-tests: New file.
48814
48815         * tests/test-gethostname.c: New file.
48816
48817 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48818
48819         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48820         used by the UNAME case.  Reported by Bruno Haible
48821         <bruno@clisp.org>.
48822
48823 2008-01-17  Eric Blake  <ebb9@byu.net>
48824
48825         Convert c-strcasestr to be more efficient.
48826         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48827         (Depends-on): Add c-strcase, remove malloca, strnlen.
48828         * tests/test-c-strcasestr.c (main): Enhance test.
48829         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48830
48831 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48832
48833         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48834         Use it in creating po/Makevars.
48835
48836 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48837
48838         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48839         Applications that requires it should initialize libgcrypt
48840         manually.
48841
48842 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48843
48844         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48845
48846 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48847
48848         Fix problem with getdate on mingw32 reported by Simon Josefsson
48849         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48850         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48851         tzname", when deciding whether to declare tzname.
48852         * lib/strftime.c (tzname): Likewise.
48853
48854 2008-01-15  Bruno Haible  <bruno@clisp.org>
48855
48856         Work around a MacOS X 10.5 bug in frexpl().
48857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48858         * doc/functions/frexpl.texi: Document the bug.
48859         Reported by Elias Pipping <pipping@gentoo.org>.
48860
48861 2008-01-14  Eric Blake  <ebb9@byu.net>
48862
48863         Touch up previous patch.
48864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48865         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48866
48867         Convert strcasestr module to use Two-Way algorithm.
48868         * modules/strcasestr-simple: New module, based on the old
48869         strcasestr, but with Two-Way rather than KMP.
48870         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48871         * lib/string.in.h (rpl_strcasestr): Declare.
48872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48873         performance.
48874         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48875         * modules/string (Makefile.am): Support strcasestr.
48876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48877         * modules/strcasestr-tests (Depends-on): Check for alarm.
48878         * tests/test-strcasestr.c: Augment test.
48879         * lib/str-two-way.h: Clean up stray macro.
48880         * NEWS: Document new module.
48881         * MODULES.html.sh (string handling): Likewise.
48882         * doc/functions/strcasestr.texi: New file.
48883         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48884         here, since it is not a POSIX function.
48885
48886 2008-01-14  Colin Watson  <cjwatson@debian.org>
48887             Bruno Haible  <bruno@clisp.org>
48888
48889         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48890         works fine; if not, set REPLACE_STRSIGNAL.
48891         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48893         REPLACE_STRSIGNAL.
48894         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48895         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48896         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48897
48898 2008-01-14  Bruno Haible  <bruno@clisp.org>
48899
48900         * modules/strsignal (Include): Change to <string.h>.
48901
48902 2008-01-14  Colin Watson  <cjwatson@debian.org>
48903
48904         * modules/argp (Notice): Add a notice recommending to change
48905         XGETTEXT_OPTIONS.
48906         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48907
48908 2008-01-13  Colin Watson  <cjwatson@debian.org>
48909
48910         * modules/strsignal-tests: New file.
48911         * tests/test-strsignal.c: New file.
48912
48913         * lib/strsignal.c: New file, from glibc with modifications.
48914         * lib/siglist.h: New file, from glibc with modifications.
48915         * lib/string.in.h (strsignal): New declaration.
48916         * m4/strsignal.m4: New file.
48917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48918         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48919         * modules/strsignal: New file.
48920         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48921         HAVE_DECL_STRSIGNAL.
48922
48923 2008-01-13  Bruno Haible  <bruno@clisp.org>
48924
48925         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48926         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48927         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48928         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48929
48930 2008-01-13  Bruno Haible  <bruno@clisp.org>
48931
48932         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48933         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48934         * lib/argp.h (__attribute__): Likewise.
48935         * lib/c-stack.c (__attribute__): Likewise.
48936         * lib/error.h (__attribute__): Likewise.
48937         * lib/fts.c (__attribute__): Likewise.
48938         * lib/openat.h (__attribute__): Likewise.
48939         * lib/stdio.in.h (__attribute__): Likewise.
48940         * lib/string.in.h (__attribute__): Likewise.
48941         * lib/utimens.c (__attribute__): Likewise.
48942         * lib/vasnprintf.h (__attribute__): Likewise.
48943         * lib/xalloc.h (__attribute__): Likewise.
48944         * lib/xprintf.h (__attribute__): Likewise.
48945         * lib/xstrtol.h (__attribute__): Likewise.
48946         * lib/xvasprintf.h (__attribute__): Likewise.
48947
48948 2008-01-12  Bruno Haible  <bruno@clisp.org>
48949
48950         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48951         * doc/glibc-headers/a.out.texi: New file.
48952         * doc/glibc-headers/aliases.texi: New file.
48953         * doc/glibc-headers/alloca.texi: New file.
48954         * doc/glibc-headers/ar.texi: New file.
48955         * doc/glibc-headers/argp.texi: New file.
48956         * doc/glibc-headers/argz.texi: New file.
48957         * doc/glibc-headers/byteswap.texi: New file.
48958         * doc/glibc-headers/crypt.texi: New file.
48959         * doc/glibc-headers/endian.texi: New file.
48960         * doc/glibc-headers/envz.texi: New file.
48961         * doc/glibc-headers/err.texi: New file.
48962         * doc/glibc-headers/error.texi: New file.
48963         * doc/glibc-headers/execinfo.texi: New file.
48964         * doc/glibc-headers/fpu_control.texi: New file.
48965         * doc/glibc-headers/fstab.texi: New file.
48966         * doc/glibc-headers/fts.texi: New file.
48967         * doc/glibc-headers/getopt.texi: New file.
48968         * doc/glibc-headers/ieee754.texi: New file.
48969         * doc/glibc-headers/ifaddrs.texi: New file.
48970         * doc/glibc-headers/libintl.texi: New file.
48971         * doc/glibc-headers/mcheck.texi: New file.
48972         * doc/glibc-headers/mntent.texi: New file.
48973         * doc/glibc-headers/obstack.texi: New file.
48974         * doc/glibc-headers/paths.texi: New file.
48975         * doc/glibc-headers/printf.texi: New file.
48976         * doc/glibc-headers/pty.texi: New file.
48977         * doc/glibc-headers/resolv.texi: New file.
48978         * doc/glibc-headers/shadow.texi: New file.
48979         * doc/glibc-headers/sysexits.texi: New file.
48980         * doc/glibc-headers/ttyent.texi: New file.
48981
48982 2008-01-12  Jim Meyering  <meyering@redhat.com>
48983
48984         announce-gen: emit Gnulib's git-based version string.
48985         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48986         New option --gnulib-version=V, where V is expected to be
48987         the output of running git describe in the gnulib directory.
48988         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48989         not useful, and plan to stop publishing an xdelta file with each
48990         coreutils release.
48991
48992         * build-aux/announce-gen: Also check for lzma-compressed files.
48993
48994 2008-01-11  Bruno Haible  <bruno@clisp.org>
48995
48996         * tests/test-memmem.c (main): Increase maximum allowed time.
48997         * tests/test-strstr.c (main): Likewise.
48998
48999 2008-01-11  Bruno Haible  <bruno@clisp.org>
49000
49001         * doc/functions/memmem.texi: Add more precisions about platforms.
49002         * doc/functions/strstr.texi: Likewise.
49003
49004 2008-01-10  Eric Blake  <ebb9@byu.net>
49005
49006         * m4/strstr.m4: Delete cruft from copy-n-paste.
49007         Reported by Bruno Haible.
49008
49009 2008-01-10  Bruno Haible  <bruno@clisp.org>
49010
49011         Make c-strstr rely on strstr.
49012         * lib/c-strstr.c: Don't include str-kmp.h.
49013         (c_strstr): Define in terms of strstr.
49014         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49015         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49016
49017 2008-01-10  Bruno Haible  <bruno@clisp.org>
49018
49019         * doc/gnulib.texi (String Functions in C Locale): New section.
49020         * doc/c-ctype.texi: New file.
49021         * doc/c-strcase.texi: New file.
49022         * doc/c-strcaseeq.texi: New file.
49023         * doc/c-strcasestr.texi: New file.
49024         * doc/c-strstr.texi: New file.
49025         * doc/c-strtod.texi: New file.
49026         * doc/c-strtold.texi: New file.
49027
49028 2008-01-10  Eric Blake  <ebb9@byu.net>
49029
49030         * lib/relocatable.h: Fix a comment.
49031
49032 2008-01-10  Eric Blake  <ebb9@byu.net>
49033
49034         Share two-way algorithm.
49035         * lib/str-two-way.h: New file, merged from...
49036         * lib/memmem.c: ...here...
49037         * lib/strstr.c: ...and here.
49038         * modules/memmem (Files): Use it.
49039         * modules/strstr (Files): Likewise.
49040
49041         Avoid quadratic strstr implementations.
49042         * lib/strstr.c: New file.
49043         * m4/strstr.m4: Likewise.
49044         * modules/strstr: Likewise.
49045         * modules/strstr-tests: Likewise.
49046         * tests/test-strstr.c: Likewise.
49047         * lib/string.in.h (rpl_strstr): Declare.
49048         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49050         * modules/string (Makefile.am): Likewise.
49051         * MODULES.html.sh (string handling): Mention new module.
49052         * doc/functions/strstr.texi (strstr): Document the bug.
49053
49054 2008-01-10  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/relocatable.h (relocate): State whether result is freshly
49057         allocated or not.
49058         * lib/relocatable.c (relocate): Return a freshly allocated string
49059         instead of a pointer to a privately held string.
49060         Reported by Sylvain Beucler <beuc@gnu.org>.
49061
49062 2008-01-10  Colin Watson  <cjwatson@debian.org>
49063
49064         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49065         s/S_ISNLK/S_ISLNK/.
49066
49067 2008-01-09  Bruno Haible  <bruno@clisp.org>
49068
49069         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49070         and other files.
49071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49072         if it's only a guess.
49073         * modules/memmem: Simplify by depending on memmem-simple.
49074
49075 2008-01-09  Bruno Haible  <bruno@clisp.org>
49076
49077         Work around OpenBSD 4.0 tdelete() bug.
49078         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49079         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49080         macros and don't redefine the enum values.
49081         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49082         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49083         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49084
49085 2008-01-09  Bruno Haible  <bruno@clisp.org>
49086
49087         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49088         (main): Don't perform the tests if setlocale did not install a UTF-8
49089         locale. Needed on OpenBSD 4.0.
49090         * modules/wcwidth-tests (Depends-on): Add localcharset.
49091
49092 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49093
49094         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49095         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49096         * NEWS: announce this.
49097         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49098
49099 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49100         and Eric Blake  <ebb9@byu.net>
49101
49102         Add memmem-simple module.
49103         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49104         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49105         * modules/memmem-simple: New file.
49106         * modules/memmem (Description): Tweak.
49107         * MODULES.html.sh (string handling): Mention new module.
49108         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49109         addressed by memmem-simple.
49110         * NEWS: Document the difference.
49111
49112 2008-01-09  Eric Blake  <ebb9@byu.net>
49113
49114         Give gcc some memmem optimization hints.
49115         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49116         (strcasestr): Declare as pure.
49117         * modules/memmem (Maintainer): Claim my implementation.
49118
49119 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49120
49121         Support AIX 6.1 and higher.
49122         * build-aux/config.libpath: Likewise.
49123         * build-aux/config.rpath: Likewise.
49124
49125 2008-01-08  Jim Meyering  <meyering@redhat.com>
49126             Bruno Haible  <bruno@clisp.org>
49127
49128         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49129         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49130         Reported by Peter Fales in
49131         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49132
49133 2008-01-08  Bruno Haible  <bruno@clisp.org>
49134
49135         * modules/unictype/category-of (Depends-on): Add
49136         unictype/category-none.
49137         * modules/unictype/category-and-tests (Depends-on): Add
49138         unictype/category-{L,N,Lu,Nd}.
49139         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49140         * modules/unictype/category-or-tests (Depends-on): Add
49141         unictype/category-{L,N}.
49142         * modules/unictype/category-name-tests (Depends-on): Add
49143         unictype/category-{Z,Nl}.
49144         Reported by Simon Josefsson.
49145
49146 2008-01-08  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49149         convention better.
49150         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49151         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49152         Reported by Peter Miller <millerp@canb.auug.org.au>.
49153
49154 2008-01-08  Eric Blake  <ebb9@byu.net>
49155
49156         Rewrite memmem to guarantee linear complexity without malloc.
49157         * lib/memmem.c (memmem): Use Two-Way rather than
49158         Knuth-Morris-Pratt, to allow O(1) space usage.
49159         (critical_factorization, two_way_short_needle)
49160         (two_way_long_needle): New functions.
49161         (knuth_morris_pratt): Delete.
49162         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49163         Add stdint.
49164         * tests/test-memmem.c (main): Add tests for periodic needle and
49165         sublinear performance.
49166         * doc/functions/memmem.texi (memmem): Document other deficiencies
49167         in cygwin and older glibc.
49168
49169 2008-01-08  Bruno Haible  <bruno@clisp.org>
49170
49171         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49172         augmentation.
49173
49174 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49175
49176         Add a configure time option: --disable-acl.
49177         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49178         AC_ARG_ENABLE(acl).
49179
49180 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49181
49182         * tests/test-localename.c: Don't include obsolete "setenv.h".
49183
49184         * modules/localename-tests (Depends-on): Need unsetenv.
49185
49186 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49187
49188         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49189
49190 2008-01-06  Colin Watson  <cjwatson@debian.org>
49191
49192         * users.txt: Add man-db.
49193
49194 2008-01-07  Bruno Haible  <bruno@clisp.org>
49195
49196         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49197         previous section name.
49198
49199 2008-01-07  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/progname.c (set_program_name): Don't strip off a leading
49202         "lt-" prefix outside a .libs directory.
49203         Suggested by Paul Eggert.
49204
49205 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49206             Bruno Haible  <bruno@clisp.org>
49207
49208         Improve memory cleanup in 'relocatable' module.
49209         * lib/relocatable.h (compute_curr_prefix): Change return type to
49210         'char *'.
49211         * lib/relocatable.c (compute_curr_prefix): Change return type to
49212         'char *'. Free curr_installdir after use.
49213         (relocate): Free curr_prefix_better after use.
49214         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49215
49216 2008-01-01  Bruno Haible  <bruno@clisp.org>
49217
49218         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49219         failure on older glibc systems.
49220         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49221
49222 2008-01-05  Eric Blake  <ebb9@byu.net>
49223
49224         Avoid quadratic system memmem.
49225         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49226         Reported by Ralf Wildenhues.
49227
49228         Fix memmem test for mingw.
49229         * modules/memmem-tests (configure.ac): Check for alarm.
49230         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49231         it.
49232         * doc/functions/memmem.texi: New file.
49233         * doc/gnulib.texi (Function Substitutes): Add memmem.
49234         Reported by Bruno Haible.
49235
49236 2008-01-04  Bruno Haible  <bruno@clisp.org>
49237
49238         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49239         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49240         gl_HEADER_STRING_H_DEFAULTS.
49241
49242 2008-01-04  Eric Blake  <ebb9@byu.net>
49243
49244         Shorten duration of memmem test.
49245         * tests/test-memmem.c (main): Use alarm to declare failure if test
49246         is taking too long.
49247         Reported by Ralf Wildenhues.
49248
49249 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49250
49251         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49252         string, needed by strerror.
49253
49254 2008-01-03  Colin Watson  <cjwatson@debian.org>
49255             Bruno Haible  <bruno@clisp.org>
49256
49257         * doc/gnulib-tool.texi (Localization): New section.
49258
49259 2008-01-02  Bruno Haible  <bruno@clisp.org>
49260
49261         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49262         variables to 'unsigned char *' type.
49263         Reported by Paul Eggert.
49264
49265 2008-01-02  Jim Meyering  <jim@meyering.net>
49266
49267         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49268
49269 2007-12-31  Jim Meyering  <jim@meyering.net>
49270
49271         Avoid use of private FTS type name.
49272         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49273
49274 2007-12-30  Karl Berry  <karl@gnu.org>
49275
49276         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49277         work around defect in Texinfo and/or the standalone Info browser.
49278
49279 2007-12-30  Bruno Haible  <bruno@clisp.org>
49280
49281         Unify 5 copies of the KMP code.
49282         * lib/str-kmp.h: New file.
49283         * lib/c-strcasestr.c: Include str-kmp.h.
49284         (knuth_morris_pratt): Remove function.
49285         (c_strcasestr): Update.
49286         * lib/c-strstr.c: Include str-kmp.h.
49287         (knuth_morris_pratt): Remove function.
49288         (c_strcasestr): Update.
49289         * lib/mbscasestr.c: Include str-kmp.h.
49290         (knuth_morris_pratt_unibyte): Remove function.
49291         * lib/mbsstr.c: Include str-kmp.h.
49292         (knuth_morris_pratt_unibyte): Remove function.
49293         * lib/strcasestr.c: Include str-kmp.h.
49294         (knuth_morris_pratt): Remove function.
49295         (strcasestr): Update.
49296         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49297         * modules/c-strstr (Files): Likewise.
49298         * modules/mbscasestr (Files): Likewise.
49299         * modules/mbsstr (Files): Likewise.
49300         * modules/strcasestr (Files): Likewise.
49301         Suggested by Paul Eggert.
49302
49303 2007-12-30  Bruno Haible  <bruno@clisp.org>
49304
49305         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49306         defined.
49307
49308 2007-12-30  Bruno Haible  <bruno@clisp.org>
49309
49310         * lib/xmalloca.h: Include xalloc.h.
49311         (xnmalloca): New macro.
49312
49313 2007-12-30  Bruno Haible  <bruno@clisp.org>
49314
49315         * lib/malloca.h (nmalloca): New macro.
49316         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49317         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49318         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49319         knuth_morris_pratt_multibyte): Likewise.
49320         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49321         knuth_morris_pratt_multibyte): Likewise.
49322         * lib/memmem.c (knuth_morris_pratt): Likewise.
49323         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49324
49325 2007-12-25  Bruno Haible  <bruno@clisp.org>
49326
49327         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49328         * lib/glob.c: Don't include openat.h.
49329         (link_exists2_p): Add back the code that deals with the
49330         !GLOB_ALTDIRFUNC case.
49331         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49332         let it do the filename concatenation.
49333         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49334         * modules/glob (Depends-on): Remove openat.
49335
49336 2007-12-31  Bruno Haible  <bruno@clisp.org>
49337
49338         * modules/dirfd (License): Change to LGPLv2+.
49339         Approved by Jim Meyering.
49340
49341 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49344         when multiplying M by sizeof (size_t).
49345
49346 2007-12-10  Martin Lambers  <marlam@marlam.de>
49347
49348         Override getpagesize on mingw.
49349         * lib/getpagesize.c: New file.
49350         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49351         * modules/getpagesize (Files): Add lib/getpagesize.c.
49352         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49354         REPLACE_GETPAGESIZE.
49355         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49356
49357 2007-12-25  Bruno Haible  <bruno@clisp.org>
49358
49359         * modules/localcharset (Notice): New field.
49360         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49361         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49362
49363 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49364             Bruno Haible  <bruno@clisp.org>
49365
49366         Avoid using the syntax symbol() in formatted documentation.
49367         * MODULES.html.sh (func_module): When replacing symbol() with a
49368         hyperlink, remove the parentheses. Show an error if some remain.
49369         Recognize and render the '...' syntax.
49370         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49371         Rework. Add paragraph about GCC's inlining.
49372         * doc/alloca.texi: Likewise.
49373         * doc/error.texi: Remove parentheses from symbol reference.
49374         * doc/gnulib-intro.texi: Likewise.
49375         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49376         * modules/fnmatch (Description): Reword to say "the ... function".
49377         * modules/full-read (Description): Likewise.
49378         * modules/full-write (Description): Likewise.
49379         * modules/safe-read (Description): Likewise.
49380         * modules/safe-write (Description): Likewise.
49381         * modules/strchrnul (Description): Likewise.
49382         * modules/trim (Description): Likewise.
49383         * modules/error (Description): Remove parentheses from symbol
49384         references.
49385         * modules/verror (Description): Likewise.
49386         Reported by Karl Berry.
49387
49388 2007-12-25  Bruno Haible  <bruno@clisp.org>
49389
49390         Fixup after 2007-10-16 commit.
49391         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49392
49393 2007-12-24  Bruno Haible  <bruno@clisp.org>
49394
49395         Make --enable-relocatable work with DESTDIR.
49396         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49397         to compute installdir from destprog.
49398         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49399         also set the RELOC_DESTDIR variable.
49400         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49401
49402 2007-12-24  Bruno Haible  <bruno@clisp.org>
49403
49404         Fix link error due to xalloc_die().
49405         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49406         of xreadlink.
49407         * lib/relocwrapper.c: Update comments.
49408         * build-aux/install-reloc: Remove xreadlink.c from file list.
49409         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49410         xreadlink.c.
49411         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49412
49413 2007-12-24  Bruno Haible  <bruno@clisp.org>
49414
49415         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49416         * lib/setenv.h: Remove file.
49417         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49418         lib/setenv.h.
49419         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49420         (Depends-on): Add stdlib.
49421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49422         gl_FUNC_UNSETENV.
49423         (Include): Replace setenv.h with <stdlib.h>.
49424         * modules/unsetenv: New file.
49425         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49426         * lib/unsetenv.c: Include <stdlib.h> first.
49427         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49428         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49429         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49430         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49431         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49432         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49434         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49435         * doc/functions/unsetenv.texi: Update.
49436         * modules/xsetenv (Depends-on): Add unsetenv.
49437         * modules/getdate (Depends-on): Likewise.
49438         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49439         * lib/xsetenv.c: Don't include setenv.h.
49440         * lib/getdate.y: Likewise.
49441         * lib/relocwrapper.c: Likewise.
49442         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49443         (Depends-on): Add stdlib.
49444         * NEWS: Mention the changes.
49445         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49446
49447 2007-12-23  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49450         indentation.
49451
49452 2007-12-23  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/c-strcasestr.c: Add more comments.
49455         * lib/c-strstr.c: Likewise.
49456         * lib/mbscasestr.c: Likewise.
49457         * lib/mbsstr.c: Likewise.
49458         * lib/strcasestr.c: Likewise.
49459         * lib/memmem.c: Likewise.
49460
49461 2007-12-23  Bruno Haible  <bruno@clisp.org>
49462
49463         * tests/test-memmem.c: Include <string.h> first.
49464
49465 2007-12-22  Bruno Haible  <bruno@clisp.org>
49466
49467         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49468         the contents of $testsbase.
49469         Reported by Ralf Wildenhues.
49470
49471 2007-12-22  Bruno Haible  <bruno@clisp.org>
49472
49473         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49474         two variables local_ldadd_before, local_ldadd_last.
49475
49476 2007-12-20  Eric Blake  <ebb9@byu.net>
49477
49478         Work around circular library issue when cross-compiling.
49479         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49480         that progname.o does not need to pull in rpl_memcmp.
49481
49482 2007-12-19  Eric Blake  <ebb9@byu.net>
49483
49484         Fix memmem to avoid O(n^2) worst-case complexity.
49485         * lib/memmem.c (knuth_morris_pratt): New function.
49486         (memmem): Use it if first few naive iterations fail.
49487         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49488         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49489         * modules/memchr (License): Likewise.
49490         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49491         malloca.
49492         * tests/test-memmem.c: Rewrite, borrowing ideas from
49493         test-mbsstr1.c; the old version wouldn't even compile!
49494         * modules/memmem-tests: New file.
49495         * lib/string.in.h (rpl_memmem): Add declaration.
49496         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49498         REPLACE_MEMMEM.
49499
49500 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49501
49502         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49503         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49504         before any system include files, and undef after them all.  This
49505         should fix a problem on VMS reported by John E. Malmberg in
49506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49507
49508 2007-12-17  Eric Blake  <ebb9@byu.net>
49509
49510         Revert addition of verify, for BSD/OS.
49511         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49512         can't handle large files, for the sake of obsolete platforms.
49513         * modules/fseeko (Depends-on): Remove verify.
49514         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49515         * doc/functions/ftello.texi (ftello): Likewise.
49516         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49517         Reported by Larry Jones.
49518
49519 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49520
49521         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49522         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49523
49524 2007-12-17  Jim Meyering  <meyering@redhat.com>
49525
49526         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49527         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49528         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49529         * modules/getcwd (Depends-on): Add openat.
49530         Reported by Petr Salinger.
49531
49532 2007-12-17  Bruno Haible  <bruno@clisp.org>
49533
49534         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49535         avoid a segmentation fault of the configure test on x86_64 systems.
49536
49537 2007-12-15  Jim Meyering  <meyering@redhat.com>
49538
49539         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49540
49541 2007-12-13  Eric Blake  <ebb9@byu.net>
49542
49543         Another fseek test.
49544         * tests/test-fseek.c (main): Also test ungetc handling.
49545         * tests/test-fseeko.c (main): Likewise.
49546         * modules/fseeko (Depends-on): Add verify.
49547         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49548         large.
49549         Reported by Larry Jones.
49550
49551         Fix fseeko on mingw.
49552         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49553         seek.
49554
49555         Beef up fseek tests.
49556         * tests/test-fseek.c (main): Also test eof handling.
49557         * tests/test-fseeko.c (main): Likewise.
49558         Reported by Larry Jones.
49559
49560 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49561
49562         Fix fseeko on BSD-based platforms.
49563         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49564         successful seek.
49565
49566 2007-12-12  Eric Blake  <ebb9@byu.net>
49567
49568         Allow circular dependency of separate libtests.a
49569         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49570         when use_libtests.
49571
49572 2007-12-11  Eric Blake  <ebb9@byu.net>
49573
49574         Fix bug with -0.0L in previous patch.
49575         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49576         * tests/test-isnan.c (main): Also test on zeroes.
49577         * tests/test-isnanf.c (main): Likewise.
49578         * tests/test-isnanl.h (main): Likewise.
49579
49580         Detect pseudo-denormals on x86 even when cross-compiling.
49581         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49582         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49583         invalid bit patterns that happen to satisfy ==.
49584
49585         Avoid link failures with separate libtests.a.
49586         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49587         last, to satisfy circular dependencies.
49588
49589 2007-12-11  Eric Blake  <ebb9@byu.net>
49590         and Bruno Haible  <bruno@clisp.org>
49591
49592         Fix OpenBSD 4.0 <float.h> handling of long double.
49593         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49594         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49595         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49596
49597 2007-12-11  Jim Meyering  <meyering@redhat.com>
49598
49599         * users.txt: Add libvirt.
49600
49601         Support versions of autoconf prior to 2.59c.
49602         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49603         if it is not already defined.
49604
49605 2007-12-09  Bruno Haible  <bruno@clisp.org>
49606
49607         Let 'gnulib-tool --import' collect sources needed for the tests in
49608         tests/ rather than in lib/.
49609         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49610         argument. If true, add rules to generate libtests.a, and put libtests.a
49611         into $(LDADD). Consider source files in subdirectories and set
49612         uses_subdirs.
49613         (func_emit_initmacro_start, func_emit_initmacro_end,
49614         func_emit_initmacro_done): Pass all arguments explicitly.
49615         (func_import): Determine two module lists main_modules,
49616         testsrelated_modules. Determine use_libtests. Determine two variables
49617         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49618         instead of just sed_transform_lib_file. Determine two variables
49619         main_files and testsrelated_files. Compute 'files' as the union of
49620         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49621         func_add_or_update. In the generated gnulib-comp.m4, collect the
49622         object files for tests/ in different variables than those for lib/.
49623         Substitute LIBTESTS_LIBDEPS.
49624         (func_create_testdir): Combine the uses_subdirs results from
49625         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49626
49627 2007-12-09  Bruno Haible  <bruno@clisp.org>
49628
49629         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49630         the build-aux directory.
49631
49632 2007-12-09  Bruno Haible  <bruno@clisp.org>
49633
49634         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49635         introduced on 2006-09-09.
49636
49637 2007-12-07  Jim Meyering  <meyering@redhat.com>
49638
49639         Let these macros work also with autoconf-2.59.
49640         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49641         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49642         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49643
49644 2007-12-06  Jim Meyering  <meyering@redhat.com>
49645
49646         Avoid a configure-time syntax error in gl_FUNC_ACL.
49647         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49648         function in each branch, before testing the cache variable.
49649
49650 2007-12-04  Eric Blake  <ebb9@byu.net>
49651
49652         Make scripts executable.
49653         * build-aux/config.guess: Add execute permissions.
49654         * build-aux/config.sub: Likewise.
49655         * build-aux/gendocs.sh: Likewise.
49656
49657         Fix frexp on mingw.
49658         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49659         cross-compiling.
49660         * doc/functions/frexp.texi (frexp): Document the bug.
49661
49662         Make cygwin fseeko check more reliable.
49663         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49664         version numbers, rather than unrelated feature check.
49665         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49666         * doc/functions/ftello.texi (ftello): Likewise.
49667         Reported by Bruno Haible.
49668
49669         * m4/strerror.m4: Bump version number.
49670
49671 2007-12-03  Bruno Haible  <bruno@clisp.org>
49672
49673         * doc/functions/mprotect.texi: Mention the mingw problem.
49674
49675 2007-12-03  Eric Blake  <ebb9@byu.net>
49676
49677         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49678         REPLACE_STRERROR is initialized before this macro.
49679
49680 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49681
49682         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49683         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49684         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49685         put -lsec in even for programs other than 'ls'.  This fixes a problem
49686         for gettext reported by Bruno Haible in
49687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49688         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49689         Add support for Solaris 10.  This isn't efficient, but should get the
49690         job done for now.
49691
49692 2007-12-03  James Youngman  <jay@gnu.org>
49693
49694         * doc/regexprops-generic.texi: change "an close-group" to "a
49695         close-group" and "illegal" to "not allowed".
49696
49697 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49698
49699         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49700         pr_byname.h. Needed for the rare case when the maintainer has done
49701         "make maintainer-clean" in the source directory and then attempts a
49702         build outside the source directory.
49703         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49704         scripts_byname.h.
49705
49706 2007-12-02  Martin Lambers <marlam@marlam.de>
49707             Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/getpagesize.h: Remove file.
49710         * lib/unistd.in.h: Include declaration of getpagesize here.
49711         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49712         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49713         HAVE_SYS_PARAM_H.
49714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49715         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49716         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49717         (Depends-on): Add unistd.
49718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49719         (Include): Use <unistd.h> instead of getpagesize.h.
49720         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49721         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49722         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49723         gl_GETPAGESIZE invocation, already handled by module dependency.
49724         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49725
49726 2007-12-02  Bruno Haible  <bruno@clisp.org>
49727
49728         * modules/strings-tests: New file.
49729         * tests/test-strings.c: New file.
49730
49731         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49732         * lib/strings.in.h: New file.
49733         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49734         * m4/strings_h.m4: New file.
49735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49736         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49737         * modules/strings: New file.
49738         * modules/string (Makefile.am): Update.
49739         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49740         Reported by Karl Berry.
49741
49742 2007-12-01  Eric Blake  <ebb9@byu.net>
49743
49744         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49745         accomodate fix in cygwin 1.5.25.
49746
49747 2007-12-01  Jim Meyering  <meyering@redhat.com>
49748
49749         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49750         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49751         that would inhibit utf8-optimization of a regexp containing line-
49752         or buffer-anchors, e.g., `^', `$'.
49753
49754 2007-11-30  Bruno Haible  <bruno@clisp.org>
49755
49756         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49757         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49758         glthread_recursive_lock_init.
49759         * lib/lock.c (glthread_recursive_lock_init)
49760         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49761         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49762
49763 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49764
49765         New function qset_acl, like set_acl but with syscall semantics.
49766         * lib/acl.h (qset_acl): New decl.
49767         * lib/acl.c (qset_acl): New function.
49768         (set_acl): Use new function.  Use more-consistent diagnostics.
49769
49770 2007-11-28  Jim Meyering  <meyering@redhat.com>
49771
49772         * modules/physmem (License): Change from GPL to LGPLv2+.
49773
49774 2007-11-26  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49777         'long double' type has excess precision.
49778         Reported by Jim Meyering in
49779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49780
49781 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49782
49783         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49784         Sync from <http://gnu.org/licenses>.
49785         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49786         with license text from same location.
49787         * doc/maintain.texi, doc/standards.texi:  Sync from
49788         <http://savannah.gnu.org/projects/gnustandards>.
49789
49790 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49791         and Jim Meyering  <meyering@redhat.com>
49792
49793         Adjust getdate' grammar to accept a slightly more regular language.
49794         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49795         Before, the former was rejected.
49796         * lib/getdate.y (digits_to_date_time): New function, factored
49797         out of ...
49798         (number): ...here.  Just call digits_to_date_time.
49799         (hybrid): New non-terminal to handle an <unsigned number,
49800         signed relative offset> sequence consistently.
49801
49802 2007-11-18  Jim Meyering  <meyering@redhat.com>
49803
49804         Pull my changes from coreutils:
49805         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49806         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49807         use of $gnulib_tool_option_extras, so that it's separated from the
49808         preceding argument.
49809
49810         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49811         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49812         parent destination directories before copying a file into place.
49813
49814 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49815
49816         bootstrap: work also with 4-argument variant of AC_INIT
49817         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49818
49819 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49820
49821         Port test-getaddrinfo to Solaris.
49822         Problem reported by Bruno Haible in
49823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49824         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49825         explanation of setting 'hints'.
49826         Don't reject an implementation merely because it returns EAI_SERVICE.
49827         (EAI_SERVICE): Define to 0 if not defined.
49828
49829 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         The license of gnu-make and posix-shell is now "GPLed build tool".
49832         * modules/gnu-make (License): Likewise.
49833         * modules/posix-shell (License): Likewise.
49834
49835         New module posix-shell, for determining a POSIX shell
49836         or perhaps something that is close enough to a POSIX shell.
49837         * m4/posix-shell.m4: New file.
49838         * modules/posix-shell: New file.
49839
49840         * MODULES.html.sh: Mention new module.
49841
49842         New module gnu-make, for determining whether we're using GNU Make.
49843         * m4/gnu-make.m4: New file.
49844         * modules/gnu-make: New file.
49845         * MODULES.html.sh: Mention new module.
49846
49847 2007-11-14  Jim Meyering  <meyering@redhat.com>
49848
49849         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49850         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49851         use this macro to create a function _definition_.
49852         Remove useless "#undef ARGMATCH_DIE".
49853
49854 2007-11-14  Bruno Haible  <bruno@clisp.org>
49855
49856         * lib/config.charset: Update for OpenBSD 4.1.
49857         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49858
49859 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49860
49861         Document 64-bit #if problems in stdint.texi.
49862         * doc/headers/stdint.texi (stdint.h): Mention problems with
49863         64-bit-#if, and how to work around them.
49864
49865         Don't insist on 'long long int' support in the preprocessor.  It
49866         breaks too many things.  For example, PRIdMAX still uses a 'long
49867         long int' format with the latest Sun compiler, even though
49868         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49869         preprocessor problem.  This causes the latest coreutils to dump
49870         core on Solaris 10 sparc with the Sun C compiler.
49871         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49872         the troublesome expressions at configure-time, not at #if-time.
49873         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49874         preprocessor.
49875         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49876         compile-time C checks, done at 'configure'-time.
49877         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49878         * modules/inttypes (Makefile): Substitute the new symbols that
49879         gl_INTTYPES_H now generates.
49880         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49881
49882 2007-11-12  Bruno Haible  <bruno@clisp.org>
49883
49884         Tests for Unicode character classification functions.
49885
49886         * modules/unictype/bidicategory-byname-tests: New file.
49887         * modules/unictype/bidicategory-name-tests: New file.
49888         * modules/unictype/bidicategory-of-tests: New file.
49889         * modules/unictype/bidicategory-test-tests: New file.
49890         * modules/unictype/block-list-tests: New file.
49891         * modules/unictype/block-of-tests: New file.
49892         * modules/unictype/block-test-tests: New file.
49893         * modules/unictype/category-C-tests: New file.
49894         * modules/unictype/category-Cc-tests: New file.
49895         * modules/unictype/category-Cf-tests: New file.
49896         * modules/unictype/category-Cn-tests: New file.
49897         * modules/unictype/category-Co-tests: New file.
49898         * modules/unictype/category-Cs-tests: New file.
49899         * modules/unictype/category-L-tests: New file.
49900         * modules/unictype/category-Ll-tests: New file.
49901         * modules/unictype/category-Lm-tests: New file.
49902         * modules/unictype/category-Lo-tests: New file.
49903         * modules/unictype/category-Lt-tests: New file.
49904         * modules/unictype/category-Lu-tests: New file.
49905         * modules/unictype/category-M-tests: New file.
49906         * modules/unictype/category-Mc-tests: New file.
49907         * modules/unictype/category-Me-tests: New file.
49908         * modules/unictype/category-Mn-tests: New file.
49909         * modules/unictype/category-N-tests: New file.
49910         * modules/unictype/category-Nd-tests: New file.
49911         * modules/unictype/category-Nl-tests: New file.
49912         * modules/unictype/category-No-tests: New file.
49913         * modules/unictype/category-P-tests: New file.
49914         * modules/unictype/category-Pc-tests: New file.
49915         * modules/unictype/category-Pd-tests: New file.
49916         * modules/unictype/category-Pe-tests: New file.
49917         * modules/unictype/category-Pf-tests: New file.
49918         * modules/unictype/category-Pi-tests: New file.
49919         * modules/unictype/category-Po-tests: New file.
49920         * modules/unictype/category-Ps-tests: New file.
49921         * modules/unictype/category-S-tests: New file.
49922         * modules/unictype/category-Sc-tests: New file.
49923         * modules/unictype/category-Sk-tests: New file.
49924         * modules/unictype/category-Sm-tests: New file.
49925         * modules/unictype/category-So-tests: New file.
49926         * modules/unictype/category-Z-tests: New file.
49927         * modules/unictype/category-Zl-tests: New file.
49928         * modules/unictype/category-Zp-tests: New file.
49929         * modules/unictype/category-Zs-tests: New file.
49930         * modules/unictype/category-and-not-tests: New file.
49931         * modules/unictype/category-and-tests: New file.
49932         * modules/unictype/category-byname-tests: New file.
49933         * modules/unictype/category-name-tests: New file.
49934         * modules/unictype/category-none-tests: New file.
49935         * modules/unictype/category-of-tests: New file.
49936         * modules/unictype/category-or-tests: New file.
49937         * modules/unictype/category-test-withtable-tests: New file.
49938         * modules/unictype/combining-class-tests: New file.
49939         * modules/unictype/ctype-alnum-tests: New file.
49940         * modules/unictype/ctype-alpha-tests: New file.
49941         * modules/unictype/ctype-blank-tests: New file.
49942         * modules/unictype/ctype-cntrl-tests: New file.
49943         * modules/unictype/ctype-digit-tests: New file.
49944         * modules/unictype/ctype-graph-tests: New file.
49945         * modules/unictype/ctype-lower-tests: New file.
49946         * modules/unictype/ctype-print-tests: New file.
49947         * modules/unictype/ctype-punct-tests: New file.
49948         * modules/unictype/ctype-space-tests: New file.
49949         * modules/unictype/ctype-upper-tests: New file.
49950         * modules/unictype/ctype-xdigit-tests: New file.
49951         * modules/unictype/decimal-digit-tests: New file.
49952         * modules/unictype/digit-tests: New file.
49953         * modules/unictype/mirror-tests: New file.
49954         * modules/unictype/numeric-tests: New file.
49955         * modules/unictype/property-alphabetic-tests: New file.
49956         * modules/unictype/property-ascii-hex-digit-tests: New file.
49957         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49958         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49959         * modules/unictype/property-bidi-block-separator-tests: New file.
49960         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49961         * modules/unictype/property-bidi-common-separator-tests: New file.
49962         * modules/unictype/property-bidi-control-tests: New file.
49963         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49964         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49965         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49966         * modules/unictype/property-bidi-european-digit-tests: New file.
49967         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49968         * modules/unictype/property-bidi-left-to-right-tests: New file.
49969         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49970         * modules/unictype/property-bidi-other-neutral-tests: New file.
49971         * modules/unictype/property-bidi-pdf-tests: New file.
49972         * modules/unictype/property-bidi-segment-separator-tests: New file.
49973         * modules/unictype/property-bidi-whitespace-tests: New file.
49974         * modules/unictype/property-byname-tests: New file.
49975         * modules/unictype/property-combining-tests: New file.
49976         * modules/unictype/property-composite-tests: New file.
49977         * modules/unictype/property-currency-symbol-tests: New file.
49978         * modules/unictype/property-dash-tests: New file.
49979         * modules/unictype/property-decimal-digit-tests: New file.
49980         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49981         * modules/unictype/property-deprecated-tests: New file.
49982         * modules/unictype/property-diacritic-tests: New file.
49983         * modules/unictype/property-extender-tests: New file.
49984         * modules/unictype/property-format-control-tests: New file.
49985         * modules/unictype/property-grapheme-base-tests: New file.
49986         * modules/unictype/property-grapheme-extend-tests: New file.
49987         * modules/unictype/property-grapheme-link-tests: New file.
49988         * modules/unictype/property-hex-digit-tests: New file.
49989         * modules/unictype/property-hyphen-tests: New file.
49990         * modules/unictype/property-id-continue-tests: New file.
49991         * modules/unictype/property-id-start-tests: New file.
49992         * modules/unictype/property-ideographic-tests: New file.
49993         * modules/unictype/property-ids-binary-operator-tests: New file.
49994         * modules/unictype/property-ids-trinary-operator-tests: New file.
49995         * modules/unictype/property-ignorable-control-tests: New file.
49996         * modules/unictype/property-iso-control-tests: New file.
49997         * modules/unictype/property-join-control-tests: New file.
49998         * modules/unictype/property-left-of-pair-tests: New file.
49999         * modules/unictype/property-line-separator-tests: New file.
50000         * modules/unictype/property-logical-order-exception-tests: New file.
50001         * modules/unictype/property-lowercase-tests: New file.
50002         * modules/unictype/property-math-tests: New file.
50003         * modules/unictype/property-non-break-tests: New file.
50004         * modules/unictype/property-not-a-character-tests: New file.
50005         * modules/unictype/property-numeric-tests: New file.
50006         * modules/unictype/property-other-alphabetic-tests: New file.
50007         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50008         * modules/unictype/property-other-grapheme-extend-tests: New file.
50009         * modules/unictype/property-other-id-continue-tests: New file.
50010         * modules/unictype/property-other-id-start-tests: New file.
50011         * modules/unictype/property-other-lowercase-tests: New file.
50012         * modules/unictype/property-other-math-tests: New file.
50013         * modules/unictype/property-other-uppercase-tests: New file.
50014         * modules/unictype/property-paired-punctuation-tests: New file.
50015         * modules/unictype/property-paragraph-separator-tests: New file.
50016         * modules/unictype/property-pattern-syntax-tests: New file.
50017         * modules/unictype/property-pattern-white-space-tests: New file.
50018         * modules/unictype/property-private-use-tests: New file.
50019         * modules/unictype/property-punctuation-tests: New file.
50020         * modules/unictype/property-quotation-mark-tests: New file.
50021         * modules/unictype/property-radical-tests: New file.
50022         * modules/unictype/property-sentence-terminal-tests: New file.
50023         * modules/unictype/property-soft-dotted-tests: New file.
50024         * modules/unictype/property-space-tests: New file.
50025         * modules/unictype/property-terminal-punctuation-tests: New file.
50026         * modules/unictype/property-test-tests: New file.
50027         * modules/unictype/property-titlecase-tests: New file.
50028         * modules/unictype/property-unassigned-code-value-tests: New file.
50029         * modules/unictype/property-unified-ideograph-tests: New file.
50030         * modules/unictype/property-uppercase-tests: New file.
50031         * modules/unictype/property-variation-selector-tests: New file.
50032         * modules/unictype/property-white-space-tests: New file.
50033         * modules/unictype/property-xid-continue-tests: New file.
50034         * modules/unictype/property-xid-start-tests: New file.
50035         * modules/unictype/property-zero-width-tests: New file.
50036         * modules/unictype/scripts-tests: New file.
50037         * modules/unictype/syntax-c-ident-tests: New file.
50038         * modules/unictype/syntax-c-whitespace-tests: New file.
50039         * modules/unictype/syntax-java-ident-tests: New file.
50040         * modules/unictype/syntax-java-whitespace-tests: New file.
50041         * tests/unictype/test-bidi_byname.c: New file.
50042         * tests/unictype/test-bidi_name.c: New file.
50043         * tests/unictype/test-bidi_of.c: New file.
50044         * tests/unictype/test-bidi_test.c: New file.
50045         * tests/unictype/test-block_list.c: New file.
50046         * tests/unictype/test-block_of.c: New file.
50047         * tests/unictype/test-block_test.c: New file.
50048         * tests/unictype/test-categ_and.c: New file.
50049         * tests/unictype/test-categ_and_not.c: New file.
50050         * tests/unictype/test-categ_byname.c: New file.
50051         * tests/unictype/test-categ_name.c: New file.
50052         * tests/unictype/test-categ_none.c: New file.
50053         * tests/unictype/test-categ_of.c: New file.
50054         * tests/unictype/test-categ_or.c: New file.
50055         * tests/unictype/test-categ_test_withtable.c: New file.
50056         * tests/unictype/test-combining.c: New file.
50057         * tests/unictype/test-decdigit.c: New file.
50058         * tests/unictype/test-digit.c: New file.
50059         * tests/unictype/test-mirror.c: New file.
50060         * tests/unictype/test-numeric.c: New file.
50061         * tests/unictype/test-pr_byname.c: New file.
50062         * tests/unictype/test-pr_test.c: New file.
50063         * tests/unictype/test-predicate-part1.h: New file.
50064         * tests/unictype/test-predicate-part2.h: New file.
50065         * tests/unictype/test-scripts.c: New file.
50066         * tests/unictype/test-sy_c_ident.c: New file.
50067         * tests/unictype/test-sy_java_ident.c: New file.
50068
50069         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50070         for Unicode 5.0.0.
50071         * tests/unictype/test-categ_Cc.c: Likewise.
50072         * tests/unictype/test-categ_Cf.c: Likewise.
50073         * tests/unictype/test-categ_Cn.c: Likewise.
50074         * tests/unictype/test-categ_Co.c: Likewise.
50075         * tests/unictype/test-categ_Cs.c: Likewise.
50076         * tests/unictype/test-categ_L.c: Likewise.
50077         * tests/unictype/test-categ_Ll.c: Likewise.
50078         * tests/unictype/test-categ_Lm.c: Likewise.
50079         * tests/unictype/test-categ_Lo.c: Likewise.
50080         * tests/unictype/test-categ_Lt.c: Likewise.
50081         * tests/unictype/test-categ_Lu.c: Likewise.
50082         * tests/unictype/test-categ_M.c: Likewise.
50083         * tests/unictype/test-categ_Mc.c: Likewise.
50084         * tests/unictype/test-categ_Me.c: Likewise.
50085         * tests/unictype/test-categ_Mn.c: Likewise.
50086         * tests/unictype/test-categ_N.c: Likewise.
50087         * tests/unictype/test-categ_Nd.c: Likewise.
50088         * tests/unictype/test-categ_Nl.c: Likewise.
50089         * tests/unictype/test-categ_No.c: Likewise.
50090         * tests/unictype/test-categ_P.c: Likewise.
50091         * tests/unictype/test-categ_Pc.c: Likewise.
50092         * tests/unictype/test-categ_Pd.c: Likewise.
50093         * tests/unictype/test-categ_Pe.c: Likewise.
50094         * tests/unictype/test-categ_Pf.c: Likewise.
50095         * tests/unictype/test-categ_Pi.c: Likewise.
50096         * tests/unictype/test-categ_Po.c: Likewise.
50097         * tests/unictype/test-categ_Ps.c: Likewise.
50098         * tests/unictype/test-categ_S.c: Likewise.
50099         * tests/unictype/test-categ_Sc.c: Likewise.
50100         * tests/unictype/test-categ_Sk.c: Likewise.
50101         * tests/unictype/test-categ_Sm.c: Likewise.
50102         * tests/unictype/test-categ_So.c: Likewise.
50103         * tests/unictype/test-categ_Z.c: Likewise.
50104         * tests/unictype/test-categ_Zl.c: Likewise.
50105         * tests/unictype/test-categ_Zp.c: Likewise.
50106         * tests/unictype/test-categ_Zs.c: Likewise.
50107         * tests/unictype/test-ctype_alnum.c: Likewise.
50108         * tests/unictype/test-ctype_alpha.c: Likewise.
50109         * tests/unictype/test-ctype_blank.c: Likewise.
50110         * tests/unictype/test-ctype_cntrl.c: Likewise.
50111         * tests/unictype/test-ctype_digit.c: Likewise.
50112         * tests/unictype/test-ctype_graph.c: Likewise.
50113         * tests/unictype/test-ctype_lower.c: Likewise.
50114         * tests/unictype/test-ctype_print.c: Likewise.
50115         * tests/unictype/test-ctype_punct.c: Likewise.
50116         * tests/unictype/test-ctype_space.c: Likewise.
50117         * tests/unictype/test-ctype_upper.c: Likewise.
50118         * tests/unictype/test-ctype_xdigit.c: Likewise.
50119         * tests/unictype/test-decdigit.h: Likewise.
50120         * tests/unictype/test-digit.h: Likewise.
50121         * tests/unictype/test-numeric.h: Likewise.
50122         * tests/unictype/test-pr_alphabetic.c: Likewise.
50123         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50124         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50125         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50126         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50127         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50128         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50129         * tests/unictype/test-pr_bidi_control.c: Likewise.
50130         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50131         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50132         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50133         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50134         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50135         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50136         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50137         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50138         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50139         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50140         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50141         * tests/unictype/test-pr_combining.c: Likewise.
50142         * tests/unictype/test-pr_composite.c: Likewise.
50143         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50144         * tests/unictype/test-pr_dash.c: Likewise.
50145         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50146         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50147         * tests/unictype/test-pr_deprecated.c: Likewise.
50148         * tests/unictype/test-pr_diacritic.c: Likewise.
50149         * tests/unictype/test-pr_extender.c: Likewise.
50150         * tests/unictype/test-pr_format_control.c: Likewise.
50151         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50152         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50153         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50154         * tests/unictype/test-pr_hex_digit.c: Likewise.
50155         * tests/unictype/test-pr_hyphen.c: Likewise.
50156         * tests/unictype/test-pr_id_continue.c: Likewise.
50157         * tests/unictype/test-pr_id_start.c: Likewise.
50158         * tests/unictype/test-pr_ideographic.c: Likewise.
50159         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50160         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50161         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50162         * tests/unictype/test-pr_iso_control.c: Likewise.
50163         * tests/unictype/test-pr_join_control.c: Likewise.
50164         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50165         * tests/unictype/test-pr_line_separator.c: Likewise.
50166         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50167         * tests/unictype/test-pr_lowercase.c: Likewise.
50168         * tests/unictype/test-pr_math.c: Likewise.
50169         * tests/unictype/test-pr_non_break.c: Likewise.
50170         * tests/unictype/test-pr_not_a_character.c: Likewise.
50171         * tests/unictype/test-pr_numeric.c: Likewise.
50172         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50173         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50174         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50175         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50176         * tests/unictype/test-pr_other_id_start.c: Likewise.
50177         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50178         * tests/unictype/test-pr_other_math.c: Likewise.
50179         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50180         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50181         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50182         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50183         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50184         * tests/unictype/test-pr_private_use.c: Likewise.
50185         * tests/unictype/test-pr_punctuation.c: Likewise.
50186         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50187         * tests/unictype/test-pr_radical.c: Likewise.
50188         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50189         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50190         * tests/unictype/test-pr_space.c: Likewise.
50191         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50192         * tests/unictype/test-pr_titlecase.c: Likewise.
50193         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50194         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50195         * tests/unictype/test-pr_uppercase.c: Likewise.
50196         * tests/unictype/test-pr_variation_selector.c: Likewise.
50197         * tests/unictype/test-pr_white_space.c: Likewise.
50198         * tests/unictype/test-pr_xid_continue.c: Likewise.
50199         * tests/unictype/test-pr_xid_start.c: Likewise.
50200         * tests/unictype/test-pr_zero_width.c: Likewise.
50201         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50202         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50203
50204 2007-11-12  Bruno Haible  <bruno@clisp.org>
50205
50206         Unicode character classification functions.
50207         * lib/unictype.h: New file.
50208         * modules/unictype/base: New file.
50209         * modules/unictype/category-L: New file.
50210         * modules/unictype/category-Lu: New file.
50211         * modules/unictype/category-Ll: New file.
50212         * modules/unictype/category-Lt: New file.
50213         * modules/unictype/category-Lm: New file.
50214         * modules/unictype/category-Lo: New file.
50215         * modules/unictype/category-M: New file.
50216         * modules/unictype/category-Mn: New file.
50217         * modules/unictype/category-Mc: New file.
50218         * modules/unictype/category-Me: New file.
50219         * modules/unictype/category-N: New file.
50220         * modules/unictype/category-Nd: New file.
50221         * modules/unictype/category-Nl: New file.
50222         * modules/unictype/category-No: New file.
50223         * modules/unictype/category-P: New file.
50224         * modules/unictype/category-Pc: New file.
50225         * modules/unictype/category-Pd: New file.
50226         * modules/unictype/category-Ps: New file.
50227         * modules/unictype/category-Pe: New file.
50228         * modules/unictype/category-Pi: New file.
50229         * modules/unictype/category-Pf: New file.
50230         * modules/unictype/category-Po: New file.
50231         * modules/unictype/category-S: New file.
50232         * modules/unictype/category-Sm: New file.
50233         * modules/unictype/category-Sc: New file.
50234         * modules/unictype/category-Sk: New file.
50235         * modules/unictype/category-So: New file.
50236         * modules/unictype/category-Z: New file.
50237         * modules/unictype/category-Zs: New file.
50238         * modules/unictype/category-Zl: New file.
50239         * modules/unictype/category-Zp: New file.
50240         * modules/unictype/category-C: New file.
50241         * modules/unictype/category-Cc: New file.
50242         * modules/unictype/category-Cf: New file.
50243         * modules/unictype/category-Cs: New file.
50244         * modules/unictype/category-Co: New file.
50245         * modules/unictype/category-Cn: New file.
50246         * modules/unictype/category-or: New file.
50247         * modules/unictype/category-of: New file.
50248         * modules/unictype/category-test: New file.
50249         * modules/unictype/category-test-withtable: New file.
50250         * modules/unictype/category-byname: New file.
50251         * modules/unictype/category-none: New file.
50252         * modules/unictype/category-and: New file.
50253         * modules/unictype/category-and-not: New file.
50254         * modules/unictype/category-name: New file.
50255         * modules/unictype/combining-class: New file.
50256         * modules/unictype/category-all: New file.
50257         * modules/unictype/bidicategory-all: New file.
50258         * modules/unictype/bidicategory-byname: New file.
50259         * modules/unictype/bidicategory-name: New file.
50260         * modules/unictype/bidicategory-of: New file.
50261         * modules/unictype/bidicategory-test: New file.
50262         * modules/unictype/decimal-digit: New file.
50263         * modules/unictype/digit: New file.
50264         * modules/unictype/numeric: New file.
50265         * modules/unictype/mirror: New file.
50266         * modules/unictype/property-white-space: New file.
50267         * modules/unictype/property-alphabetic: New file.
50268         * modules/unictype/property-other-alphabetic: New file.
50269         * modules/unictype/property-not-a-character: New file.
50270         * modules/unictype/property-default-ignorable-code-point: New file.
50271         * modules/unictype/property-other-default-ignorable-code-point: New
50272         file.
50273         * modules/unictype/property-deprecated: New file.
50274         * modules/unictype/property-logical-order-exception: New file.
50275         * modules/unictype/property-variation-selector: New file.
50276         * modules/unictype/property-private-use: New file.
50277         * modules/unictype/property-unassigned-code-value: New file.
50278         * modules/unictype/property-uppercase: New file.
50279         * modules/unictype/property-other-uppercase: New file.
50280         * modules/unictype/property-lowercase: New file.
50281         * modules/unictype/property-other-lowercase: New file.
50282         * modules/unictype/property-titlecase: New file.
50283         * modules/unictype/property-soft-dotted: New file.
50284         * modules/unictype/property-id-start: New file.
50285         * modules/unictype/property-other-id-start: New file.
50286         * modules/unictype/property-id-continue: New file.
50287         * modules/unictype/property-other-id-continue: New file.
50288         * modules/unictype/property-xid-start: New file.
50289         * modules/unictype/property-xid-continue: New file.
50290         * modules/unictype/property-pattern-white-space: New file.
50291         * modules/unictype/property-pattern-syntax: New file.
50292         * modules/unictype/property-join-control: New file.
50293         * modules/unictype/property-grapheme-base: New file.
50294         * modules/unictype/property-grapheme-extend: New file.
50295         * modules/unictype/property-other-grapheme-extend: New file.
50296         * modules/unictype/property-grapheme-link: New file.
50297         * modules/unictype/property-bidi-control: New file.
50298         * modules/unictype/property-bidi-left-to-right: New file.
50299         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50300         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50301         * modules/unictype/property-bidi-european-digit: New file.
50302         * modules/unictype/property-bidi-eur-num-separator: New file.
50303         * modules/unictype/property-bidi-eur-num-terminator: New file.
50304         * modules/unictype/property-bidi-arabic-digit: New file.
50305         * modules/unictype/property-bidi-common-separator: New file.
50306         * modules/unictype/property-bidi-block-separator: New file.
50307         * modules/unictype/property-bidi-segment-separator: New file.
50308         * modules/unictype/property-bidi-whitespace: New file.
50309         * modules/unictype/property-bidi-non-spacing-mark: New file.
50310         * modules/unictype/property-bidi-boundary-neutral: New file.
50311         * modules/unictype/property-bidi-pdf: New file.
50312         * modules/unictype/property-bidi-embedding-or-override: New file.
50313         * modules/unictype/property-bidi-other-neutral: New file.
50314         * modules/unictype/property-hex-digit: New file.
50315         * modules/unictype/property-ascii-hex-digit: New file.
50316         * modules/unictype/property-ideographic: New file.
50317         * modules/unictype/property-unified-ideograph: New file.
50318         * modules/unictype/property-radical: New file.
50319         * modules/unictype/property-ids-binary-operator: New file.
50320         * modules/unictype/property-ids-trinary-operator: New file.
50321         * modules/unictype/property-zero-width: New file.
50322         * modules/unictype/property-space: New file.
50323         * modules/unictype/property-non-break: New file.
50324         * modules/unictype/property-iso-control: New file.
50325         * modules/unictype/property-format-control: New file.
50326         * modules/unictype/property-dash: New file.
50327         * modules/unictype/property-hyphen: New file.
50328         * modules/unictype/property-punctuation: New file.
50329         * modules/unictype/property-line-separator: New file.
50330         * modules/unictype/property-paragraph-separator: New file.
50331         * modules/unictype/property-quotation-mark: New file.
50332         * modules/unictype/property-sentence-terminal: New file.
50333         * modules/unictype/property-terminal-punctuation: New file.
50334         * modules/unictype/property-currency-symbol: New file.
50335         * modules/unictype/property-math: New file.
50336         * modules/unictype/property-other-math: New file.
50337         * modules/unictype/property-paired-punctuation: New file.
50338         * modules/unictype/property-left-of-pair: New file.
50339         * modules/unictype/property-combining: New file.
50340         * modules/unictype/property-composite: New file.
50341         * modules/unictype/property-decimal-digit: New file.
50342         * modules/unictype/property-numeric: New file.
50343         * modules/unictype/property-diacritic: New file.
50344         * modules/unictype/property-extender: New file.
50345         * modules/unictype/property-ignorable-control: New file.
50346         * modules/unictype/property-test: New file.
50347         * modules/unictype/property-byname: New file.
50348         * modules/unictype/property-all: New file.
50349         * modules/unictype/scripts: New file.
50350         * modules/unictype/scripts-all: New file.
50351         * modules/unictype/block-of: New file.
50352         * modules/unictype/block-test: New file.
50353         * modules/unictype/block-list: New file.
50354         * modules/unictype/block-all: New file.
50355         * modules/unictype/syntax-c-whitespace: New file.
50356         * modules/unictype/syntax-java-whitespace: New file.
50357         * modules/unictype/syntax-c-ident: New file.
50358         * modules/unictype/syntax-java-ident: New file.
50359         * modules/unictype/ctype-alnum: New file.
50360         * modules/unictype/ctype-alpha: New file.
50361         * modules/unictype/ctype-cntrl: New file.
50362         * modules/unictype/ctype-digit: New file.
50363         * modules/unictype/ctype-graph: New file.
50364         * modules/unictype/ctype-lower: New file.
50365         * modules/unictype/ctype-print: New file.
50366         * modules/unictype/ctype-punct: New file.
50367         * modules/unictype/ctype-space: New file.
50368         * modules/unictype/ctype-upper: New file.
50369         * modules/unictype/ctype-xdigit: New file.
50370         * modules/unictype/ctype-blank: New file.
50371         * lib/unictype/bidi_byname.c: New file.
50372         * lib/unictype/bidi_name.c: New file.
50373         * lib/unictype/bidi_of.c: New file.
50374         * lib/unictype/bidi_test.c: New file.
50375         * lib/unictype/bitmap.h: New file.
50376         * lib/unictype/block_test.c: New file.
50377         * lib/unictype/blocks.c: New file.
50378         * lib/unictype/categ_C.c: New file.
50379         * lib/unictype/categ_Cc.c: New file.
50380         * lib/unictype/categ_Cf.c: New file.
50381         * lib/unictype/categ_Cn.c: New file.
50382         * lib/unictype/categ_Co.c: New file.
50383         * lib/unictype/categ_Cs.c: New file.
50384         * lib/unictype/categ_L.c: New file.
50385         * lib/unictype/categ_Ll.c: New file.
50386         * lib/unictype/categ_Lm.c: New file.
50387         * lib/unictype/categ_Lo.c: New file.
50388         * lib/unictype/categ_Lt.c: New file.
50389         * lib/unictype/categ_Lu.c: New file.
50390         * lib/unictype/categ_M.c: New file.
50391         * lib/unictype/categ_Mc.c: New file.
50392         * lib/unictype/categ_Me.c: New file.
50393         * lib/unictype/categ_Mn.c: New file.
50394         * lib/unictype/categ_N.c: New file.
50395         * lib/unictype/categ_Nd.c: New file.
50396         * lib/unictype/categ_Nl.c: New file.
50397         * lib/unictype/categ_No.c: New file.
50398         * lib/unictype/categ_P.c: New file.
50399         * lib/unictype/categ_Pc.c: New file.
50400         * lib/unictype/categ_Pd.c: New file.
50401         * lib/unictype/categ_Pe.c: New file.
50402         * lib/unictype/categ_Pf.c: New file.
50403         * lib/unictype/categ_Pi.c: New file.
50404         * lib/unictype/categ_Po.c: New file.
50405         * lib/unictype/categ_Ps.c: New file.
50406         * lib/unictype/categ_S.c: New file.
50407         * lib/unictype/categ_Sc.c: New file.
50408         * lib/unictype/categ_Sk.c: New file.
50409         * lib/unictype/categ_Sm.c: New file.
50410         * lib/unictype/categ_So.c: New file.
50411         * lib/unictype/categ_Z.c: New file.
50412         * lib/unictype/categ_Zl.c: New file.
50413         * lib/unictype/categ_Zp.c: New file.
50414         * lib/unictype/categ_Zs.c: New file.
50415         * lib/unictype/categ_and.c: New file.
50416         * lib/unictype/categ_and_not.c: New file.
50417         * lib/unictype/categ_byname.c: New file.
50418         * lib/unictype/categ_name.c: New file.
50419         * lib/unictype/categ_none.c: New file.
50420         * lib/unictype/categ_of.c: New file.
50421         * lib/unictype/categ_or.c: New file.
50422         * lib/unictype/categ_test.c: New file.
50423         * lib/unictype/combining.c: New file.
50424         * lib/unictype/ctype_alnum.c: New file.
50425         * lib/unictype/ctype_alpha.c: New file.
50426         * lib/unictype/ctype_blank.c: New file.
50427         * lib/unictype/ctype_cntrl.c: New file.
50428         * lib/unictype/ctype_digit.c: New file.
50429         * lib/unictype/ctype_graph.c: New file.
50430         * lib/unictype/ctype_lower.c: New file.
50431         * lib/unictype/ctype_print.c: New file.
50432         * lib/unictype/ctype_punct.c: New file.
50433         * lib/unictype/ctype_space.c: New file.
50434         * lib/unictype/ctype_upper.c: New file.
50435         * lib/unictype/ctype_xdigit.c: New file.
50436         * lib/unictype/decdigit.c: New file.
50437         * lib/unictype/digit.c: New file.
50438         * lib/unictype/identsyntaxmap.h: New file.
50439         * lib/unictype/mirror.c: New file.
50440         * lib/unictype/numeric.c: New file.
50441         * lib/unictype/pr_alphabetic.c: New file.
50442         * lib/unictype/pr_ascii_hex_digit.c: New file.
50443         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50444         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50445         * lib/unictype/pr_bidi_block_separator.c: New file.
50446         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50447         * lib/unictype/pr_bidi_common_separator.c: New file.
50448         * lib/unictype/pr_bidi_control.c: New file.
50449         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50450         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50451         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50452         * lib/unictype/pr_bidi_european_digit.c: New file.
50453         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50454         * lib/unictype/pr_bidi_left_to_right.c: New file.
50455         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50456         * lib/unictype/pr_bidi_other_neutral.c: New file.
50457         * lib/unictype/pr_bidi_pdf.c: New file.
50458         * lib/unictype/pr_bidi_segment_separator.c: New file.
50459         * lib/unictype/pr_bidi_whitespace.c: New file.
50460         * lib/unictype/pr_byname.c: New file.
50461         * lib/unictype/pr_byname.gperf: New file.
50462         * lib/unictype/pr_combining.c: New file.
50463         * lib/unictype/pr_composite.c: New file.
50464         * lib/unictype/pr_currency_symbol.c: New file.
50465         * lib/unictype/pr_dash.c: New file.
50466         * lib/unictype/pr_decimal_digit.c: New file.
50467         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50468         * lib/unictype/pr_deprecated.c: New file.
50469         * lib/unictype/pr_diacritic.c: New file.
50470         * lib/unictype/pr_extender.c: New file.
50471         * lib/unictype/pr_format_control.c: New file.
50472         * lib/unictype/pr_grapheme_base.c: New file.
50473         * lib/unictype/pr_grapheme_extend.c: New file.
50474         * lib/unictype/pr_grapheme_link.c: New file.
50475         * lib/unictype/pr_hex_digit.c: New file.
50476         * lib/unictype/pr_hyphen.c: New file.
50477         * lib/unictype/pr_id_continue.c: New file.
50478         * lib/unictype/pr_id_start.c: New file.
50479         * lib/unictype/pr_ideographic.c: New file.
50480         * lib/unictype/pr_ids_binary_operator.c: New file.
50481         * lib/unictype/pr_ids_trinary_operator.c: New file.
50482         * lib/unictype/pr_ignorable_control.c: New file.
50483         * lib/unictype/pr_iso_control.c: New file.
50484         * lib/unictype/pr_join_control.c: New file.
50485         * lib/unictype/pr_left_of_pair.c: New file.
50486         * lib/unictype/pr_line_separator.c: New file.
50487         * lib/unictype/pr_logical_order_exception.c: New file.
50488         * lib/unictype/pr_lowercase.c: New file.
50489         * lib/unictype/pr_math.c: New file.
50490         * lib/unictype/pr_non_break.c: New file.
50491         * lib/unictype/pr_not_a_character.c: New file.
50492         * lib/unictype/pr_numeric.c: New file.
50493         * lib/unictype/pr_other_alphabetic.c: New file.
50494         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50495         * lib/unictype/pr_other_grapheme_extend.c: New file.
50496         * lib/unictype/pr_other_id_continue.c: New file.
50497         * lib/unictype/pr_other_id_start.c: New file.
50498         * lib/unictype/pr_other_lowercase.c: New file.
50499         * lib/unictype/pr_other_math.c: New file.
50500         * lib/unictype/pr_other_uppercase.c: New file.
50501         * lib/unictype/pr_paired_punctuation.c: New file.
50502         * lib/unictype/pr_paragraph_separator.c: New file.
50503         * lib/unictype/pr_pattern_syntax.c: New file.
50504         * lib/unictype/pr_pattern_white_space.c: New file.
50505         * lib/unictype/pr_private_use.c: New file.
50506         * lib/unictype/pr_punctuation.c: New file.
50507         * lib/unictype/pr_quotation_mark.c: New file.
50508         * lib/unictype/pr_radical.c: New file.
50509         * lib/unictype/pr_sentence_terminal.c: New file.
50510         * lib/unictype/pr_soft_dotted.c: New file.
50511         * lib/unictype/pr_space.c: New file.
50512         * lib/unictype/pr_terminal_punctuation.c: New file.
50513         * lib/unictype/pr_test.c: New file.
50514         * lib/unictype/pr_titlecase.c: New file.
50515         * lib/unictype/pr_unassigned_code_value.c: New file.
50516         * lib/unictype/pr_unified_ideograph.c: New file.
50517         * lib/unictype/pr_uppercase.c: New file.
50518         * lib/unictype/pr_variation_selector.c: New file.
50519         * lib/unictype/pr_white_space.c: New file.
50520         * lib/unictype/pr_xid_continue.c: New file.
50521         * lib/unictype/pr_xid_start.c: New file.
50522         * lib/unictype/pr_zero_width.c: New file.
50523         * lib/unictype/scripts.c: New file.
50524         * lib/unictype/sy_c_ident.c: New file.
50525         * lib/unictype/sy_c_whitespace.c: New file.
50526         * lib/unictype/sy_java_ident.c: New file.
50527         * lib/unictype/sy_java_whitespace.c: New file.
50528
50529         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50530         Unicode 5.0.0.
50531         * lib/unictype/blocks.h: Likewise.
50532         * lib/unictype/categ_C.h: Likewise.
50533         * lib/unictype/categ_Cc.h: Likewise.
50534         * lib/unictype/categ_Cf.h: Likewise.
50535         * lib/unictype/categ_Cn.h: Likewise.
50536         * lib/unictype/categ_Co.h: Likewise.
50537         * lib/unictype/categ_Cs.h: Likewise.
50538         * lib/unictype/categ_L.h: Likewise.
50539         * lib/unictype/categ_Ll.h: Likewise.
50540         * lib/unictype/categ_Lm.h: Likewise.
50541         * lib/unictype/categ_Lo.h: Likewise.
50542         * lib/unictype/categ_Lt.h: Likewise.
50543         * lib/unictype/categ_Lu.h: Likewise.
50544         * lib/unictype/categ_M.h: Likewise.
50545         * lib/unictype/categ_Mc.h: Likewise.
50546         * lib/unictype/categ_Me.h: Likewise.
50547         * lib/unictype/categ_Mn.h: Likewise.
50548         * lib/unictype/categ_N.h: Likewise.
50549         * lib/unictype/categ_Nd.h: Likewise.
50550         * lib/unictype/categ_Nl.h: Likewise.
50551         * lib/unictype/categ_No.h: Likewise.
50552         * lib/unictype/categ_P.h: Likewise.
50553         * lib/unictype/categ_Pc.h: Likewise.
50554         * lib/unictype/categ_Pd.h: Likewise.
50555         * lib/unictype/categ_Pe.h: Likewise.
50556         * lib/unictype/categ_Pf.h: Likewise.
50557         * lib/unictype/categ_Pi.h: Likewise.
50558         * lib/unictype/categ_Po.h: Likewise.
50559         * lib/unictype/categ_Ps.h: Likewise.
50560         * lib/unictype/categ_S.h: Likewise.
50561         * lib/unictype/categ_Sc.h: Likewise.
50562         * lib/unictype/categ_Sk.h: Likewise.
50563         * lib/unictype/categ_Sm.h: Likewise.
50564         * lib/unictype/categ_So.h: Likewise.
50565         * lib/unictype/categ_Z.h: Likewise.
50566         * lib/unictype/categ_Zl.h: Likewise.
50567         * lib/unictype/categ_Zp.h: Likewise.
50568         * lib/unictype/categ_Zs.h: Likewise.
50569         * lib/unictype/categ_of.h: Likewise.
50570         * lib/unictype/combining.h: Likewise.
50571         * lib/unictype/ctype_alnum.h: Likewise.
50572         * lib/unictype/ctype_alpha.h: Likewise.
50573         * lib/unictype/ctype_blank.h: Likewise.
50574         * lib/unictype/ctype_cntrl.h: Likewise.
50575         * lib/unictype/ctype_digit.h: Likewise.
50576         * lib/unictype/ctype_graph.h: Likewise.
50577         * lib/unictype/ctype_lower.h: Likewise.
50578         * lib/unictype/ctype_print.h: Likewise.
50579         * lib/unictype/ctype_punct.h: Likewise.
50580         * lib/unictype/ctype_space.h: Likewise.
50581         * lib/unictype/ctype_upper.h: Likewise.
50582         * lib/unictype/ctype_xdigit.h: Likewise.
50583         * lib/unictype/decdigit.h: Likewise.
50584         * lib/unictype/digit.h: Likewise.
50585         * lib/unictype/mirror.h: Likewise.
50586         * lib/unictype/numeric.h: Likewise.
50587         * lib/unictype/pr_alphabetic.h: Likewise.
50588         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50589         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50590         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50591         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50592         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50593         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50594         * lib/unictype/pr_bidi_control.h: Likewise.
50595         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50596         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50597         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50598         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50599         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50600         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50601         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50602         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50603         * lib/unictype/pr_bidi_pdf.h: Likewise.
50604         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50605         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50606         * lib/unictype/pr_combining.h: Likewise.
50607         * lib/unictype/pr_composite.h: Likewise.
50608         * lib/unictype/pr_currency_symbol.h: Likewise.
50609         * lib/unictype/pr_dash.h: Likewise.
50610         * lib/unictype/pr_decimal_digit.h: Likewise.
50611         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50612         * lib/unictype/pr_deprecated.h: Likewise.
50613         * lib/unictype/pr_diacritic.h: Likewise.
50614         * lib/unictype/pr_extender.h: Likewise.
50615         * lib/unictype/pr_format_control.h: Likewise.
50616         * lib/unictype/pr_grapheme_base.h: Likewise.
50617         * lib/unictype/pr_grapheme_extend.h: Likewise.
50618         * lib/unictype/pr_grapheme_link.h: Likewise.
50619         * lib/unictype/pr_hex_digit.h: Likewise.
50620         * lib/unictype/pr_hyphen.h: Likewise.
50621         * lib/unictype/pr_id_continue.h: Likewise.
50622         * lib/unictype/pr_id_start.h: Likewise.
50623         * lib/unictype/pr_ideographic.h: Likewise.
50624         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50625         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50626         * lib/unictype/pr_ignorable_control.h: Likewise.
50627         * lib/unictype/pr_iso_control.h: Likewise.
50628         * lib/unictype/pr_join_control.h: Likewise.
50629         * lib/unictype/pr_left_of_pair.h: Likewise.
50630         * lib/unictype/pr_line_separator.h: Likewise.
50631         * lib/unictype/pr_logical_order_exception.h: Likewise.
50632         * lib/unictype/pr_lowercase.h: Likewise.
50633         * lib/unictype/pr_math.h: Likewise.
50634         * lib/unictype/pr_non_break.h: Likewise.
50635         * lib/unictype/pr_not_a_character.h: Likewise.
50636         * lib/unictype/pr_numeric.h: Likewise.
50637         * lib/unictype/pr_other_alphabetic.h: Likewise.
50638         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50639         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50640         * lib/unictype/pr_other_id_continue.h: Likewise.
50641         * lib/unictype/pr_other_id_start.h: Likewise.
50642         * lib/unictype/pr_other_lowercase.h: Likewise.
50643         * lib/unictype/pr_other_math.h: Likewise.
50644         * lib/unictype/pr_other_uppercase.h: Likewise.
50645         * lib/unictype/pr_paired_punctuation.h: Likewise.
50646         * lib/unictype/pr_paragraph_separator.h: Likewise.
50647         * lib/unictype/pr_pattern_syntax.h: Likewise.
50648         * lib/unictype/pr_pattern_white_space.h: Likewise.
50649         * lib/unictype/pr_private_use.h: Likewise.
50650         * lib/unictype/pr_punctuation.h: Likewise.
50651         * lib/unictype/pr_quotation_mark.h: Likewise.
50652         * lib/unictype/pr_radical.h: Likewise.
50653         * lib/unictype/pr_sentence_terminal.h: Likewise.
50654         * lib/unictype/pr_soft_dotted.h: Likewise.
50655         * lib/unictype/pr_space.h: Likewise.
50656         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50657         * lib/unictype/pr_titlecase.h: Likewise.
50658         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50659         * lib/unictype/pr_unified_ideograph.h: Likewise.
50660         * lib/unictype/pr_uppercase.h: Likewise.
50661         * lib/unictype/pr_variation_selector.h: Likewise.
50662         * lib/unictype/pr_white_space.h: Likewise.
50663         * lib/unictype/pr_xid_continue.h: Likewise.
50664         * lib/unictype/pr_xid_start.h: Likewise.
50665         * lib/unictype/pr_zero_width.h: Likewise.
50666         * lib/unictype/scripts.h: Likewise.
50667         * lib/unictype/scripts_byname.gperf: Likewise.
50668         * lib/unictype/sy_c_ident.h: Likewise.
50669         * lib/unictype/sy_c_whitespace.h: Likewise.
50670         * lib/unictype/sy_java_ident.h: Likewise.
50671         * lib/unictype/sy_java_whitespace.h: Likewise.
50672
50673         * lib/unictype/Makefile: New file.
50674         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50675         glibc.
50676         * lib/unictype/3level.h: New file, copied from glibc.
50677         * lib/unictype/3levelbit.h: New file.
50678
50679 2007-11-11  Bruno Haible  <bruno@clisp.org>
50680
50681         * modules/gperf: New file.
50682         * modules/iconv_open (Depends-on): Add it.
50683         (Makefile.am): Remove the GPERF definition.
50684
50685 2007-11-11  Bruno Haible  <bruno@clisp.org>
50686
50687         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50688         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50689
50690 2007-11-11  Bruno Haible  <bruno@clisp.org>
50691
50692         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50693         (usage): Remove function.
50694
50695 2007-11-11  Bruno Haible  <bruno@clisp.org>
50696
50697         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50698         gl_FUNC_CEILF_LIBS.
50699         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50700         gl_FUNC_CEIL_LIBS.
50701         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50702         gl_FUNC_CEILL_LIBS.
50703         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50704         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50705         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50706
50707 2007-11-11  Bruno Haible  <bruno@clisp.org>
50708
50709         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50710         roundf were declared but do not exist on functions.
50711         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50712         roundl were declared but do not exist on functions.
50713         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50714         HAVE_FLOORL_AND_CEILL, respectively.
50715         Needed for Sun C on Solaris 10.
50716
50717 2007-11-11  Bruno Haible  <bruno@clisp.org>
50718
50719         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50720         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50721         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50722         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50724         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50725         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50726         HAVE_DECL_ROUNDF.
50727         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50728         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50730         of HAVE_DECL_ROUND*.
50731         * modules/math (Makefile.am): Update.
50732
50733 2007-11-10  Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50736         ptrdiff_t as m4/intl.m4.
50737
50738 2007-11-10  Jim Meyering  <meyering@redhat.com>
50739
50740         Avoid link failure for the argmatch test.
50741         * tests/test-argmatch.c (usage): Define function to avoid a link
50742         failure: argmatch_die requires a usage function.
50743
50744 2007-11-09  Bruno Haible  <bruno@clisp.org>
50745
50746         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50747         * doc/functions/vsnprintf.texi: Likewise.
50748         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50749         with a size argument < 2.
50750
50751 2007-11-09  Bruno Haible  <bruno@clisp.org>
50752
50753         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50754         buffer. Fixes an inefficiency introduced on 2007-11-03.
50755
50756 2007-11-09  Bruno Haible  <bruno@clisp.org>
50757
50758         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50759         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50760
50761 2007-11-08  Jim Meyering  <meyering@redhat.com>
50762
50763         Change cache variable name prefix "jm_" to "gl_" everywhere.
50764         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50765         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50766         * m4/uptime.m4: s/gl_/jm_/
50767
50768 2007-11-07  Bruno Haible  <bruno@clisp.org>
50769
50770         Update to GNU gettext 0.17.
50771         * m4/intl.m4: Update to GNU gettext 0.17.
50772         * m4/po.m4: Likewise.
50773         * modules/gettext (Files): Remove m4/ulonglong.m4.
50774         (configure.ac): Require gettext infrastructure from version 0.17.
50775
50776 2007-11-06  Bruno Haible  <bruno@clisp.org>
50777
50778         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50779         symbolic values are not defined in a public header.
50780         * lib/freadable.c (freadable) [QNX]: Likewise.
50781         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50782         * lib/freading.c (freading) [QNX]: Likewise.
50783         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50784         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50785         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50786         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50787         Reported by Alain Magloire.
50788
50789         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50790
50791 2007-11-05  Bruno Haible  <bruno@clisp.org>
50792
50793         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50794         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50795         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50796         Reported by Eric Blake.
50797
50798 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50799             Bruno Haible  <bruno@clisp.org>
50800
50801         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50802         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50803         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50804         (malloc): Undefine also before including <stdlib.h>.
50805         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50806         Needed on OSF/1 4.0.
50807
50808 2007-11-05  Jim Meyering  <meyering@redhat.com>
50809
50810         git-version-gen: sync from coreutils.
50811         * build-aux/git-version-gen: Add comments.
50812         Change the first '-' to '.' in the snapshot version string,
50813         e.g., 6.9-377-08144 -> 6.9.377-08144
50814         Remove first parameter.
50815         Don't declare a version "-dirty" merely because a time
50816         stamp has changed.
50817
50818 2007-11-04  Bruno Haible  <bruno@clisp.org>
50819
50820         * lib/lock.h: Protect all macro definitions containing an 'if'
50821         statement through a "do { ... } while (0)".
50822         * lib/tls.h: Likewise.
50823
50824 2007-11-04  Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50827
50828 2007-11-04  Bruno Haible  <bruno@clisp.org>
50829
50830         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50831         * modules/fprintf-posix (Depends-on): Add nocrash.
50832         * modules/snprintf-posix (Depends-on): Likewise.
50833         * modules/sprintf-posix (Depends-on): Likewise.
50834         * modules/vasnprintf-posix (Depends-on): Likewise.
50835         * modules/vasprintf-posix (Depends-on): Likewise.
50836         * modules/vfprintf-posix (Depends-on): Likewise.
50837         * modules/vsnprintf-posix (Depends-on): Likewise.
50838         * modules/vsprintf-posix (Depends-on): Likewise.
50839         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50840         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50841         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50842         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50843         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50844         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50845         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50846
50847 2007-11-04  Bruno Haible  <bruno@clisp.org>
50848
50849         * modules/nocrash: New file.
50850         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50851         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50852
50853 2007-11-04  Bruno Haible  <bruno@clisp.org>
50854
50855         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50856         precision handling.
50857         * tests/test-vasprintf-posix.c (test_function): Likewise.
50858         * tests/test-snprintf-posix.h (test_function): Likewise.
50859         * tests/test-sprintf-posix.h (test_function): Likewise.
50860
50861         Fix *printf behaviour for large precisions on mingw and BeOS.
50862         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50863         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50865         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50866         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50867         gl_PRINTF_PRECISION and test its result. Invoke
50868         gl_PREREQ_VASNPRINTF_PRECISION.
50869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50870         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50871         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50873         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50875         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50876         * doc/functions/fprintf.texi: Update.
50877         * doc/functions/printf.texi: Update.
50878         * doc/functions/snprintf.texi: Update.
50879         * doc/functions/sprintf.texi: Update.
50880         * doc/functions/vfprintf.texi: Update.
50881         * doc/functions/vprintf.texi: Update.
50882         * doc/functions/vsnprintf.texi: Update.
50883         * doc/functions/vsprintf.texi: Update.
50884
50885 2007-11-04  Bruno Haible  <bruno@clisp.org>
50886
50887         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50888
50889 2007-11-04  Bruno Haible  <bruno@clisp.org>
50890
50891         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50892         Reported by Sylvain Beucler <beuc@gnu.org>.
50893
50894 2007-11-03  Bruno Haible  <bruno@clisp.org>
50895
50896         * tests/test-fprintf-posix2.sh: New file.
50897         * tests/test-fprintf-posix2.c: New file.
50898         * modules/fprintf-posix-tests (Files): Add them.
50899         (TESTS): Add test-fprintf-posix2.sh.
50900         (configure.ac): Check for getrlimit and setrlimit.
50901         (check_PROGRAMS): Add test-fprintf-posix2.
50902
50903         * tests/test-printf-posix2.sh: New file.
50904         * tests/test-printf-posix2.c: New file.
50905         * modules/printf-posix-tests (Files): Add them.
50906         (TESTS): Add test-printf-posix2.sh.
50907         (configure.ac): Check for getrlimit and setrlimit.
50908         (check_PROGRAMS): Add test-printf-posix2.
50909
50910         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50911         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50912         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50913         (decode_double): New function, copied from decode_long_double.
50914         (scale10_round_decimal_decoded): New function, extracted from
50915         scale10_round_decimal_long_double.
50916         (scale10_round_decimal_long_double): Use it.
50917         (scale10_round_decimal_double): New function.
50918         (floorlog10): New function.
50919         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50921         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50922         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50923         gl_PRINTF_ENOMEM and test its result. Invoke
50924         gl_PREREQ_VASNPRINTF_ENOMEM.
50925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50932         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50933         * modules/snprintf-posix (Depends-on): Likewise.
50934         * modules/sprintf-posix (Depends-on): Likewise.
50935         * modules/vasnprintf-posix (Depends-on): Likewise.
50936         * modules/vasprintf-posix (Depends-on): Likewise.
50937         * modules/vfprintf-posix (Depends-on): Likewise.
50938         * modules/vsnprintf-posix (Depends-on): Likewise.
50939         * modules/vsprintf-posix (Depends-on): Likewise.
50940         * doc/functions/fprintf.texi: Update.
50941         * doc/functions/printf.texi: Update.
50942         * doc/functions/snprintf.texi: Update.
50943         * doc/functions/sprintf.texi: Update.
50944         * doc/functions/vfprintf.texi: Update.
50945         * doc/functions/vprintf.texi: Update.
50946         * doc/functions/vsnprintf.texi: Update.
50947         * doc/functions/vsprintf.texi: Update.
50948
50949 2007-11-03  Bruno Haible  <bruno@clisp.org>
50950
50951         * modules/frexp-nolibm-tests: New file.
50952
50953         * modules/frexp-nolibm: New file.
50954         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50955
50956 2007-11-03  Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50959         value is C99 compliant.
50960         Needed for OSF/1 5.1.
50961
50962 2007-11-03  Bruno Haible  <bruno@clisp.org>
50963
50964         Fix out-of-memory handling of vasnprintf.
50965         * lib/printf-parse.c: Include <errno.h>.
50966         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50967         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50968         is already set.
50969
50970 2007-11-02  Eric Blake  <ebb9@byu.net>
50971
50972         Fix tests on cygwin.
50973         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50974
50975 2007-11-01  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50978         warning.
50979         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50980         needed for POSIX compatibility.
50981
50982 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50985         for compatibility with GNU.
50986
50987 2007-11-01  Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50990         (putenv): Renamed from rpl_putenv. Change argument type from
50991         'const char *' to 'char *'.
50992         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50993         of defining putenv in config.h, just set REPLACE_PUTENV.
50994         * modules/putenv (Depends-on): Add stdlib.
50995         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50996         (Include): Use <stdlib.h>.
50997         * lib/stdlib.in.h (putenv): New declaration.
50998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50999         REPLACE_PUTENV.
51000         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51001         REPLACE_PUTENV.
51002         Needed for MacOS X 10.5.0.
51003         Reported by Peter O'Gorman <peter@pogma.com>.
51004
51005 2007-11-01  Jim Meyering  <meyering@redhat.com>
51006
51007         Treat an empty date string exactly like "0".
51008         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51009         if the remaining date string (to be parsed) is empty, use "0".
51010         Reported by Mischa Molhoek and discussed in this thread:
51011         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51012
51013 2007-10-31  Bruno Haible  <bruno@clisp.org>
51014
51015         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51016         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51017         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51018         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51019         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51020         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51021
51022 2007-10-31  Bruno Haible  <bruno@clisp.org>
51023
51024         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51025         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51026         (AC_TYPE_LONG_LONG_INT): Use it.
51027         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51028         it as well.
51029         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51030         to m4/longlong.m4.
51031         * modules/stdint (Files): Remove m4/ulonglong.m4.
51032         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51033         m4/ulonglong.m4.
51034         * modules/strtoumax (Files): Likewise.
51035
51036 2007-10-30  Bruno Haible  <bruno@clisp.org>
51037
51038         * modules/xvasprintf-posix: New file.
51039         Suggested by Eric Blake.
51040
51041 2007-10-30  Bruno Haible  <bruno@clisp.org>
51042
51043         * modules/xprintf-posix-tests: New file.
51044         * tests/test-xprintf-posix.sh: New file.
51045         * tests/test-xprintf-posix.c: New file.
51046         * tests/test-xfprintf-posix.c: New file.
51047
51048         * modules/xprintf-posix: New file.
51049
51050 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51051
51052         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51053         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51054         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51055
51056 2007-10-29  Bruno Haible  <bruno@clisp.org>
51057
51058         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51059         contain the special marker '_cv_'.
51060         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51061         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51062         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51063         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51064         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51065         Reported by Ralf Wildenhues.
51066
51067 2007-10-29  Bruno Haible  <bruno@clisp.org>
51068
51069         * gnulib-tool (func_import): When --lgpl is not specified, set
51070         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51071         GPLv3.
51072         Reported by Simon Josefsson.
51073
51074 2007-10-28  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51077         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51078         HAVE_DECL_ISFINITE.
51079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51080         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51081         HAVE_DECL_ISFINITE.
51082
51083 2007-10-28  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51086         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51087
51088 2007-10-28  Bruno Haible  <bruno@clisp.org>
51089
51090         Fix link errors with Sun C 5.0 on Solaris 10.
51091         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51092         function is declared but not present in the compiler's libm.
51093         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51094         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51095         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51096         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51097         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51098         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51099         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51101         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51102         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51103         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51104         HAVE_DECL_FLOORL.
51105
51106 2007-10-28  Bruno Haible  <bruno@clisp.org>
51107
51108         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51109         gl_FUNC_FLOORL. Cache the result.
51110         (gl_FUNC_FLOORL): Use it.
51111         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51112         gl_FUNC_CEILL. Cache the result.
51113         (gl_FUNC_CEILL): Use it.
51114
51115         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51116         gl_FUNC_FLOOR. Cache the result.
51117         (gl_FUNC_FLOOR): Use it.
51118         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51119         gl_FUNC_CEIL. Cache the result.
51120         (gl_FUNC_CEIL): Use it.
51121
51122         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51123         gl_FUNC_FLOORF. Cache the result.
51124         (gl_FUNC_FLOORF): Use it.
51125         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51126         gl_FUNC_CEILF. Cache the result.
51127         (gl_FUNC_CEILF): Use it.
51128
51129 2007-10-28  Bruno Haible  <bruno@clisp.org>
51130
51131         * gnulib-tool: Allow specifying the LGPL version number through
51132         --lgpl=2 or --lgpl=3.
51133         (func_usage): Document --lgpl with argument.
51134         Handle --lgpl=... arguments.
51135         (func_import): Recognize also gl_LGPL calls with an argument. When
51136         --lgpl=2 is used and the module's license is just LGPL, report an
51137         error. Set sed_transform_lib_file according to the lgpl variable. In
51138         the generated files, use --lgpl or gl_LGPL invocations with argument,
51139         if necessary.
51140         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51141         an LGPv2+ license.
51142         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51143         gl_LGPL macro.
51144
51145 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51146             Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51149         (u16_uctomb_aux): Likewise.
51150         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51151         !HAVE_INLINE.
51152         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51153
51154 2007-10-28  Bruno Haible  <bruno@clisp.org>
51155
51156         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51157         Invoke AM_GETTEXT_OPTION if it exists.
51158         * modules/vasprintf: Likewise.
51159         * modules/verror: Likewise.
51160         * modules/xprintf: Likewise.
51161         * modules/xvasprintf: Likewise.
51162
51163 2007-10-27  Ben Pfaff  <blp@gnu.org>
51164
51165         * lib/math.in.h: Define isfinite macro and prototypes for
51166         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51167         implementations.
51168         * m4/math_h.m4: New substitutions for isfinite module.
51169         * lib/isfinite.c: New file.
51170         * m4/isfinite.m4: New file.
51171         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51172         * modules/isfinite: New file.
51173         * modules/isfinite-tests: New file.
51174         * tests/tests-isfinite.c: New file.
51175         * doc/functions/isfinite.texi: Mention isfinite module.
51176         * MODULES.html.sh: Mention new module.
51177
51178 2007-10-27  Ben Pfaff  <blp@gnu.org>
51179
51180         Ralf Wildenhues reported that Tru64 4.0D declares the round
51181         functions but does not have definitions.
51182         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51183         cannot be found in any library, set the output variable to
51184         "missing" instead of "".
51185         * m4/round.m4: Also use our substitute if we cannot find round in
51186         any library, even if it is declared.
51187         * m4/roundf.m4: Likewise for roundf.
51188         * m4/roundl.m4: Likewise for roundl.
51189         * lib/math.in.h: Undefine roundf, round, roundl before defining
51190         their replacements, to allow for hypothetical systems where these
51191         may be defined as macros but not available in libraries.
51192
51193 2007-10-27  Bruno Haible  <bruno@clisp.org>
51194
51195         * doc/gnulib.texi: Invoke @firstparagraphindent.
51196         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51197         changes in gnulib.
51198         (Source changes): New section.
51199
51200 2007-10-26  Bruno Haible  <bruno@clisp.org>
51201
51202         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51203         borrowed from autoconf.
51204
51205 2007-10-26  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51208         strerror returned the empty string. Needed on HP-UX 11.00.
51209
51210 2007-10-24  Micah Cowan  <micah@cowan.name>
51211
51212         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51213         * build-aux/bootstrap: Remove support for now-unnecessary option,
51214         --cvs-user, and envvars CVS_USER, CVS_RSH.
51215
51216 2007-10-24  Jim Meyering  <meyering@redhat.com>
51217
51218         Avoid diagnostics from sha1sum when there is no cached checksum.
51219         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51220         if the po.s1 file hasn't been created yet.
51221
51222         * build-aux/bootstrap: Sync from coreutils:
51223         2007-10-24  Jim Meyering  <meyering@redhat.com>
51224         Get gnulib from the git repository, not from an obsolete cvs one.
51225         * build-aux/bootstrap: Suggestion from Micah Cowan.
51226         2007-10-04  Jim Meyering  <jim@meyering.net>
51227         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51228         (update_po_files): Work also when there are no .po files in po/.
51229
51230 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51231
51232         * README: Append ".git" to git and cg examples.
51233         Problem reported by Benoit Sigoure.
51234
51235 2007-10-23  Micah Cowan  <micah@cowan.name>
51236
51237         * users.txt: Add wget.
51238
51239 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51240
51241         Fix linking of some unistdio tests on FreeBSD.
51242         * modules/unistdio/u16-vsnprintf-tests
51243         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51244         * modules/unistdio/u16-vsprintf-tests
51245         (test_u16_vsnprintf1_LDADD): Likewise.
51246         * modules/unistdio/u32-vsnprintf-tests
51247         (test_u32_vsnprintf1_LDADD): Likewise.
51248         * modules/unistdio/u32-vsprintf-tests
51249         (test_u32_vsprintf1_LDADD): Likewise.
51250         * modules/unistdio/u8-vsnprintf-tests
51251         (test_u8_vsnprintf1_LDADD): Likewise.
51252         * modules/unistdio/u8-vsprintf-tests
51253         (test_u8_vsprintf1_LDADD): Likewise.
51254         * modules/unistdio/ulc-vsnprintf-tests
51255         (test_ulc_vsnprintf1_LDADD): Likewise.
51256         * modules/unistdio/ulc-vsprintf-tests
51257         (test_ulc_vsprintf1_LDADD): Likewise.
51258
51259         Fix linking of some uniconv tests on FreeBSD.
51260         * modules/uniconv/u16-conv-from-enc-tests
51261         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51262         * modules/uniconv/u16-conv-to-enc-tests
51263         (test_u16_conv_to_enc_LDADD): Likewise.
51264         * modules/uniconv/u16-strconv-from-enc-tests
51265         (test_u16_strconv_from_enc_LDADD): Likewise.
51266         * modules/uniconv/u16-strconv-to-enc-tests
51267         (test_u16_strconv_to_enc_LDADD): Likewise.
51268         * modules/uniconv/u32-conv-from-enc-tests
51269         (test_u32_conv_from_enc_LDADD): Likewise.
51270         * modules/uniconv/u32-conv-to-enc-tests
51271         (test_u32_conv_to_enc_LDADD): Likewise.
51272         * modules/uniconv/u32-strconv-from-enc-tests
51273         (test_u32_strconv_from_enc_LDADD): Likewise.
51274         * modules/uniconv/u32-strconv-to-enc-tests
51275         (test_u32_strconv_to_enc_LDADD): Likewise.
51276         * modules/uniconv/u8-conv-from-enc-tests
51277         (test_u8_conv_from_enc_LDADD): Likewise.
51278         * modules/uniconv/u8-conv-to-enc-tests
51279         (test_u8_conv_to_enc_LDADD): Likewise.
51280         * modules/uniconv/u8-strconv-from-enc-tests
51281         (test_u8_strconv_from_enc_LDADD): Likewise.
51282         * modules/uniconv/u8-strconv-to-enc-tests
51283         (test_u8_strconv_to_enc_LDADD): Likewise.
51284
51285 2007-10-22  Bruno Haible  <bruno@clisp.org>
51286
51287         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51288         size.
51289
51290 2007-10-22  Eric Blake  <ebb9@byu.net>
51291
51292         Tweak x*printf documentation.
51293         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51294         variable name and comments.
51295         Suggested by Bruno Haible.
51296
51297 2007-10-22  Bruno Haible  <bruno@clisp.org>
51298
51299         * lib/acl.c (copy_acl): Fix file name in comment.
51300
51301 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51302
51303         Fix Tru64 problem with stdbool.h.
51304         * lib/stdbool.in.h (false, true):
51305         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51306         Don't declare as an enum in this situation; it runs afoul of Tru64.
51307         Problem reported by Steven M. Schweda in
51308         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51309
51310 2007-10-22  Eric Blake  <ebb9@byu.net>
51311
51312         Also wrap vf?printf.
51313         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51314         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51315         (xvprintf, xvfprintf): New functions.
51316
51317 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51318
51319         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51320         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51321
51322         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51323         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51324
51325 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51326
51327         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51328         by Bruno Haible.
51329
51330 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51331
51332         * lib/getloadavg.c
51333         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51334         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51335
51336         * tests/test-i-ring.c: Work for C89.
51337
51338 2007-10-22  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51341         -1u, in preprocessor expression, so that we don't test for the bug
51342         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51344
51345 2007-10-22  Eric Blake  <ebb9@byu.net>
51346
51347         * tests/test-yesno.sh: Silence stderr during test.
51348
51349 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51350
51351         * modules/crypto/gc-camellia: New file.
51352
51353         * m4/gc-camellia.m4: New file.
51354
51355         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51356
51357         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51358
51359 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51360
51361         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51362         --help to stdout.  Reported by sms@antinode.org (Steven
51363         M. Schweda).
51364
51365 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51366
51367         * users.txt: Fix link to libksba.
51368
51369 2007-10-21  Ben Pfaff  <blp@gnu.org>
51370
51371         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51372         round.c roundf implementation that depends on floorf and ceilf to
51373         be tested unconditionally.
51374
51375 2007-10-21  Ben Pfaff  <blp@gnu.org>
51376
51377         * m4/check-libm-func.m4: Removed.
51378         * m4/check-math-lib.m4: New file.
51379         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51380         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51381         definition and lack of AC_LIBOBJ([roundf]).
51382         * m4/roundl.m4: Ditto, and similarly for roundl.
51383         * modules/round: Reference new m4 file.
51384         * modules/roundf: Ditto.
51385         * modules/roundl: Ditto.
51386         * tests/test-round2.c (main): Use ROUND instead of round.
51387         Bug report from Bruno Haible.
51388
51389 2007-10-21  Bruno Haible  <bruno@clisp.org>
51390
51391         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51392         context.
51393
51394 2007-10-21  Bruno Haible  <bruno@clisp.org>
51395
51396         * tests/test-wcwidth.c (main): Allow negative result for some control
51397         characters.
51398
51399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51400         Needed on OSF/1 5.1.
51401
51402 2007-10-21  Bruno Haible  <bruno@clisp.org>
51403
51404         * tests/test-floorf1.c: Include isnanf.h.
51405         (main): Use isnanf() instead of isnan().
51406         * tests/test-ceilf1.c: Include isnanf.h.
51407         (main): Use isnanf() instead of isnan().
51408         * tests/test-truncf1.c: Include isnanf.h.
51409         (main): Use isnanf() instead of isnan().
51410         * tests/test-roundf1.c: Include isnanf.h.
51411         (main): Use isnanf() instead of isnan().
51412
51413 2007-10-21  Eric Blake  <ebb9@byu.net>
51414
51415         * users.txt: Update URL for m4.
51416
51417 2007-10-21  Bruno Haible  <bruno@clisp.org>
51418
51419         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51420
51421 2007-10-21  Bruno Haible  <bruno@clisp.org>
51422
51423         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51424         Git's management files if the CVS files are not present.
51425
51426 2007-10-20  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51429         gcc-3.4.x.
51430
51431 2007-10-20  Ben Pfaff  <blp@gnu.org>
51432
51433         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51434         implementations.
51435         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51436         * lib/round.c: New file.
51437         * lib/roundf.c: New file.
51438         * lib/roundl.c: New file.
51439         * m4/round.m4: New file.
51440         * m4/roundf.m4: New file.
51441         * m4/roundl.m4: New file.
51442         * m4/check-libm-func-m4: New file.
51443         * modules/math: Replace round, roundf, roundl related @VARS@ in
51444         math.in.h.
51445         * modules/round: New file.
51446         * modules/round-tests: New file.
51447         * modules/roundf: New file.
51448         * modules/roundf-tests: New file.
51449         * modules/roundl: New file.
51450         * modules/roundl-tests: New file.
51451         * tests/test-round1.c: New file.
51452         * tests/test-round2.c: New file.
51453         * tests/test-roundf1.c: New file.
51454         * tests/test-roundf2.c: New file.
51455         * tests/test-roundl.c: New file.
51456         * doc/functions/round.texi: Mention round module.
51457         * doc/functions/roundf.texi: Mention roundf module.
51458         * doc/functions/roundl.texi: Mention roundl module.
51459         * MODULES.html.sh: Mention new modules.
51460         Thanks to Bruno Haible for suggestions.
51461
51462 2007-10-20  Jim Meyering  <meyering@redhat.com>
51463
51464         * lib/xprintf.c: Include <config.h> unconditionally.
51465
51466         Change xprintf's license to GPL.
51467         * modules/xprintf (License): s/LGPL/GPL/, since this module
51468         depends on modules (exit and exitfail) which are GPL.
51469         Suggestion from Bruno Haible.
51470
51471         xprintf fixes.
51472         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51473         Use a clearer diagnostic.
51474         Patch from Bruno Haible.
51475
51476 2007-10-20  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51479         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51481
51482 2007-10-20  Bruno Haible  <bruno@clisp.org>
51483
51484         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51485         precision in the comparison result > x - 1 or similar.
51486         * tests/test-ceilf2.c (correct_result_p): Likewise.
51487         * tests/test-truncf2.c (correct_result_p): Likewise.
51488         * tests/test-trunc2.c (correct_result_p): Likewise.
51489         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51490
51491 2007-10-20  Bruno Haible  <bruno@clisp.org>
51492
51493         * modules/ceil: New file.
51494         * m4/ceil.m4: New file.
51495         * doc/functions/ceil.texi: Mention the 'ceil' module.
51496
51497 2007-10-20  Bruno Haible  <bruno@clisp.org>
51498
51499         * modules/floor: New file.
51500         * m4/floor.m4: New file.
51501         * doc/functions/floor.texi: Mention the 'floor' module.
51502
51503 2007-10-20  Bruno Haible  <bruno@clisp.org>
51504
51505         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51506         of %a.
51507         * modules/floorf-tests (Depends-on): Likewise.
51508         * modules/truncf-tests (Depends-on): Likewise.
51509         * modules/trunc-tests (Depends-on): Likewise.
51510         Reported by Ben Pfaff.
51511
51512 2007-10-19  Jim Meyering  <meyering@redhat.com>
51513
51514         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51515         Don't bother testing specific errno values.  Just test ferror.
51516
51517         New module: xprintf
51518         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51519
51520 2007-10-19  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51523         syntax.
51524         * modules/javaexec (Makefile.am): Likewise.
51525         * modules/relocatable-prog (Makefile.am): Likewise.
51526         Suggested by Jim Meyering.
51527
51528 2007-10-18  Bruno Haible  <bruno@clisp.org>
51529
51530         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51531         Reported by Jim Meyering.
51532
51533 2007-10-18  Eric Blake  <ebb9@byu.net>
51534
51535         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51536
51537 2007-10-18  Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51540         the format string into writable memory. Needed in Fortify conditions.
51541
51542 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51543             Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51546         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51547         * modules/trim (Depends-on): Add mbchar.
51548         (configure.ac): Add gl_FUNC_MBRTOWC.
51549         (Makefile.am): Augment lib_SOURCES.
51550
51551 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         Modify glob.c to use fstatat and dirfd, to simplify it.
51554         Suggested by Eric Blake.
51555         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51556         Don't include <stdbool.h>; not used.
51557         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51558         (link_exists_p): Simplify implementation, since we can now assume
51559         dirfd and fstatat.
51560         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51561
51562 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51563
51564         * gnulib-tool (func_get_dependencies): Fix sed script to
51565         match only tests.
51566
51567 2007-10-17  Bruno Haible  <bruno@clisp.org>
51568
51569         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51570         allow locale names without encoding suffix.
51571         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51572         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51573
51574 2007-10-16  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51577         * lib/getgroups.c (getgroups): Likewise.
51578         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51579
51580 2007-10-16  Bruno Haible  <bruno@clisp.org>
51581
51582         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51583         * modules/malloc-posix (License): Likewise.
51584         * modules/realloc-posix (License): Likewise.
51585         * modules/calloc-posix (License): Likewise.
51586         * modules/intprops (License): Change from GPL to LGPL, with
51587         Paul Eggert's approval.
51588
51589 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51590
51591         Merge glibc changes into lib/glob.c.
51592
51593         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51594         2007-10-15 04:59:03 UTC.  Here are the changes:
51595
51596         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51597
51598         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51599
51600         * lib/glob.c: Add some branch prediction throughout.
51601
51602         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51603
51604         [BZ #5103]
51605         * lib/glob.c (glob): Recognize patterns starting \/.
51606
51607         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51608
51609         [BZ #3996]
51610         * lib/glob.c (attribute_hidden): Define if not defined.
51611         (glob): Unescape dirname, filename or username when needed and not
51612         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51613         is NULL.  Handle unescaped [ in pattern without closing ].
51614         Don't pass GLOB_CHECK down to recursive glob for directories.
51615         (__glob_pattern_type): New function.
51616         (__glob_pattern_p): Implement using __glob_pattern_type.
51617         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51618         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51619         Remove unreachable code.
51620
51621         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51622
51623         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51624         explain why there are no leaks.
51625
51626         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51627
51628         [BZ #3253]
51629         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51630         time, rather allocate increasingly bigger arrays of pointers, if
51631         possible with alloca, if too large with malloc.
51632
51633 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51634
51635         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51636         Problem reported by H.Merijn Brand in
51637         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51638         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51639         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51640
51641 2007-10-15  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51644         with explicit rpl_ prefix.
51645         * lib/fopen.c (fopen): Likewise.
51646         * lib/freopen.c (freopen): Likewise.
51647         * lib/iconv.c (iconv): Likewise.
51648         * lib/iconv_close.c (iconv_close): Likewise.
51649
51650 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51651
51652         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51653
51654 2007-10-15  Bruno Haible  <bruno@clisp.org>
51655
51656         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51657         <stddef.h> instead of <stdlib.h> since we only need NULL.
51658         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51659
51660 2007-10-15  Bruno Haible  <bruno@clisp.org>
51661
51662         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51663         Replace paragraph talking about LIBOBJS.
51664         Reported by Colin Watson <cjwatson@debian.org>.
51665
51666 2007-10-15  Bruno Haible  <bruno@clisp.org>
51667
51668         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51669         <stdlib.h> before using NULL.
51670
51671 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51672
51673         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51674         Reported by Albert Chin <china@thewrittenword.com>.
51675
51676 2007-10-14  Bruno Haible  <bruno@clisp.org>
51677
51678         * modules/iconv_open-utf-tests: New file.
51679         * tests/test-iconv-utf.c: New file.
51680
51681         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51682         * modules/iconv_open-utf: New file.
51683         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51684         (iconv, iconv_close): New declarations.
51685         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51686         be defined.
51687         (iconv_open): Add special handling of conversion between UTF-8 and
51688         UTF-{16,32}{BE,LE}.
51689         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51690         * lib/iconv_close.c: New file.
51691         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51692         gl_FUNC_ICONV_OPEN.
51693         (gl_FUNC_ICONV_OPEN): Use it.
51694         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51695         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51696         and REPLACE_ICONV_UTF.
51697         * modules/iconv_open (Depends-on): Add c-strcase.
51698         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51699         ICONV_CONST.
51700         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51701
51702 2007-10-13  Albert Chin  <china@thewrittenword.com>
51703             Bruno Haible  <bruno@clisp.org>
51704
51705         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51706         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51707
51708 2007-10-13  Bruno Haible  <bruno@clisp.org>
51709
51710         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51711         defined, use the ISO C99 inline semantics.
51712         * lib/argp.h (ARGP_EI): Likewise.
51713
51714 2007-10-13  Bruno Haible  <bruno@clisp.org>
51715
51716         Handle 'inline' change in gcc 4.3.0.
51717         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51718         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51719         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51720         argp_fmtstream_point): Disable 'extern' declaration if the function
51721         definition is going to be provided inline.
51722         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51723         semantics, not the ISO C99 inline semantics.
51724         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51725         'extern' declaration if the function definition is going to be provided
51726         inline.
51727         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51728         the GNU C inline semantics, not the ISO C99 inline semantics. With
51729         GCC 4.2, avoid a warning.
51730
51731 2007-10-13  Bruno Haible  <bruno@clisp.org>
51732
51733         * lib/freading.h (freading): Enable the use of __freading for
51734         glibc >= 2.7.
51735         * lib/freading.c (freading): Likewise.
51736
51737 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51738
51739         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51740         "warning: C99 inline functions are not supported; using GNU89".
51741
51742 2007-10-12  Bruno Haible  <bruno@clisp.org>
51743
51744         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51745         of 2.
51746         * tests/test-ceilf2.c: New file.
51747         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51748
51749         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51750         * modules/ceilf-tests: Update.
51751
51752 2007-10-12  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51755         of 2.
51756         * tests/test-floorf2.c: New file.
51757         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51758
51759         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51760         * modules/floorf-tests: Update.
51761
51762 2007-10-12  Bruno Haible  <bruno@clisp.org>
51763
51764         * tests/test-trunc2.c: New file.
51765         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51766
51767         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51768         * modules/trunc-tests: Update.
51769
51770 2007-10-12  Bruno Haible  <bruno@clisp.org>
51771
51772         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51773         of 2.
51774         * tests/test-truncf2.c: New file.
51775         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51776
51777         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51778         * modules/truncf-tests: Update.
51779
51780 2007-10-11  Eric Blake  <ebb9@byu.net>
51781
51782         Don't claim strerror is broken on Interix.
51783         * doc/functions/strerror.texi (strerror): Known broken systems are
51784         now Solaris 8, and not Interix.
51785         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51786         Interix on cross-compile.
51787         Reported by Martin Koeppe in
51788         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51789
51790 2007-10-11  Bruno Haible  <bruno@clisp.org>
51791
51792         * modules/i-ring-tests: New file.
51793         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51794         instead of assert.
51795
51796 2007-10-11  Bruno Haible  <bruno@clisp.org>
51797
51798         * modules/filenamecat-tests: New file.
51799         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51800         * lib/filenamecat.c: Remove test code.
51801
51802 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51803
51804         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51805
51806         * lib/strerror.c: Include <string.h> always, to test interface,
51807         and to remove the need for the dummy.
51808         Include intprops.h to compute width instead of doing it ourselves
51809         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51810         (strerror): Define it to return NULL if there's no system strerror.
51811         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51812         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51813         ancient pre-strerror Unix systems well any more.  Saying "unknown
51814         system error" is enough.
51815         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51816         simpler strerror.c implementation.
51817         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51818         Simplify the tests to reflect the simpler strerror implementation.
51819         * modules/strerror (Depends-on): Add intprops.
51820
51821 2007-10-09  Eric Blake  <ebb9@byu.net>
51822
51823         Silence test-fpending.
51824         * modules/fpending-tests (Files): Add wrapper script.
51825         * tests/test-fpending.sh: New file.
51826
51827 2007-10-09  Bruno Haible  <bruno@clisp.org>
51828
51829         * MODULES.html.sh (func_module): Don't create a hyperlink for
51830         function names like 'printf_frexp'.
51831         (Misc): Add crc, memxor.
51832         (Characteristics of floating types): New section.
51833         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51834         isnanf-nolibm, signbit, trunc, truncf, truncl.
51835         (Enhancements for ISO C 99 functions): New subsection Input/output.
51836         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51837         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51838         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51839         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51840         (Enhancements for POSIX:2001 functions): Add chdir-long.
51841         (File system functions): Add areadlink, chdir-safer, read-file.
51842         Remove cycle-check.
51843         (File system as inode set): New section.
51844         (Date and time): Add gethrxtime.
51845         (Multithreading): Add openmp.
51846         (Internationalization functions): Add localename.
51847         (Unicode string functions): Add unistr/u*-mbsnlen.
51848         (Support for maintaining and releasing projects): Add git-version-gen.
51849         (Lone files): Remove directories.
51850
51851 2007-10-08  Ben Pfaff  <blp@gnu.org>
51852
51853         * lib/xmalloca.h: Fix typo in comment.
51854
51855 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51856
51857         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51858         when avoiding problems with integer overflow.  Use a portable test
51859         instead.
51860
51861 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51862
51863         * modules/dummy (License): Change to LGPLv2+.
51864         * modules/float (License): Likewise
51865         * modules/realloc (License): Likewise
51866         * modules/stdlib (License): Likewise
51867
51868 2007-10-07  Bruno Haible  <bruno@clisp.org>
51869
51870         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51871         * floor.c (TWO_MANT_DIG): Likewise.
51872         * ceil.c (TWO_MANT_DIG): Likewise.
51873         Reported by Ben Pfaff.
51874
51875 2007-10-07  Bruno Haible  <bruno@clisp.org>
51876
51877         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51878         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51879         * lib/frexp.c (FUNC): Likewise.
51880         * lib/printf-frexp.h (printf_frexp): Likewise.
51881         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51882         * lib/printf-frexp.c (FUNC): Likewise.
51883         Suggested by Jim Meyering.
51884
51885 2007-10-07  Jim Meyering  <meyering@redhat.com>
51886
51887         Make xnanosleep's integer overflow test more robust.
51888         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51889         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51890
51891 2007-10-07  Bruno Haible  <bruno@clisp.org>
51892
51893         * NEWS: Mention the license change.
51894
51895         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51896         abbreviations in the modules files.
51897
51898         Change copyright notice from GPLv2+ to GPLv3+.
51899         * README: Change copyright notice.
51900         * MODULES.html.sh: Likewise.
51901         * build-aux/bootstrap.conf: Likewise.
51902         * build-aux/config.libpath: Likewise.
51903         * build-aux/csharpcomp.sh.in: Likewise.
51904         * build-aux/csharpexec.sh.in: Likewise.
51905         * build-aux/install-reloc: Likewise.
51906         * build-aux/javacomp.sh.in: Likewise.
51907         * build-aux/javaexec.sh.in: Likewise.
51908         * build-aux/ldd.sh.in: Likewise.
51909         * build-aux/reloc-ldflags: Likewise.
51910         * build-aux/relocatable.sh.in: Likewise.
51911         * build-aux/x-to-1.in: Likewise.
51912         * check-module: Likewise.
51913         * config/srclistvars.sh: Likewise.
51914         * gnulib-tool: Likewise.
51915         * lib/acl-internal.h: Likewise.
51916         * lib/acl.c: Likewise.
51917         * lib/acl.h: Likewise.
51918         * lib/acl_entries.c: Likewise.
51919         * lib/areadlink-with-size.c: Likewise.
51920         * lib/areadlink.c: Likewise.
51921         * lib/areadlink.h: Likewise.
51922         * lib/argmatch.c: Likewise.
51923         * lib/argmatch.h: Likewise.
51924         * lib/argp-ba.c: Likewise.
51925         * lib/argp-eexst.c: Likewise.
51926         * lib/argp-fmtstream.c: Likewise.
51927         * lib/argp-fmtstream.h: Likewise.
51928         * lib/argp-fs-xinl.c: Likewise.
51929         * lib/argp-help.c: Likewise.
51930         * lib/argp-namefrob.h: Likewise.
51931         * lib/argp-parse.c: Likewise.
51932         * lib/argp-pin.c: Likewise.
51933         * lib/argp-pv.c: Likewise.
51934         * lib/argp-pvh.c: Likewise.
51935         * lib/argp-xinl.c: Likewise.
51936         * lib/argp.h: Likewise.
51937         * lib/at-func.c: Likewise.
51938         * lib/atanl.c: Likewise.
51939         * lib/backupfile.c: Likewise.
51940         * lib/backupfile.h: Likewise.
51941         * lib/basename.c: Likewise.
51942         * lib/binary-io.h: Likewise.
51943         * lib/byteswap.in.h: Likewise.
51944         * lib/c-stack.c: Likewise.
51945         * lib/c-stack.h: Likewise.
51946         * lib/c-strcasestr.c: Likewise.
51947         * lib/c-strcasestr.h: Likewise.
51948         * lib/c-strstr.c: Likewise.
51949         * lib/c-strstr.h: Likewise.
51950         * lib/c-strtod.c: Likewise.
51951         * lib/calloc.c: Likewise.
51952         * lib/canon-host.c: Likewise.
51953         * lib/canon-host.h: Likewise.
51954         * lib/canonicalize-lgpl.c: Likewise.
51955         * lib/canonicalize.c: Likewise.
51956         * lib/canonicalize.h: Likewise.
51957         * lib/ceil.c: Likewise.
51958         * lib/ceilf.c: Likewise.
51959         * lib/ceill.c: Likewise.
51960         * lib/chdir-long.c: Likewise.
51961         * lib/chdir-long.h: Likewise.
51962         * lib/chdir-safer.c: Likewise.
51963         * lib/chdir-safer.h: Likewise.
51964         * lib/chown.c: Likewise.
51965         * lib/classpath.c: Likewise.
51966         * lib/classpath.h: Likewise.
51967         * lib/clean-temp.c: Likewise.
51968         * lib/clean-temp.h: Likewise.
51969         * lib/cloexec.c: Likewise.
51970         * lib/close-stream.c: Likewise.
51971         * lib/closein.c: Likewise.
51972         * lib/closein.h: Likewise.
51973         * lib/closeout.c: Likewise.
51974         * lib/closeout.h: Likewise.
51975         * lib/concat-filename.c: Likewise.
51976         * lib/copy-file.c: Likewise.
51977         * lib/copy-file.h: Likewise.
51978         * lib/count-one-bits.h: Likewise.
51979         * lib/crc.c: Likewise.
51980         * lib/crc.h: Likewise.
51981         * lib/creat-safer.c: Likewise.
51982         * lib/csharpcomp.c: Likewise.
51983         * lib/csharpcomp.h: Likewise.
51984         * lib/csharpexec.c: Likewise.
51985         * lib/csharpexec.h: Likewise.
51986         * lib/cycle-check.c: Likewise.
51987         * lib/cycle-check.h: Likewise.
51988         * lib/diacrit.c: Likewise.
51989         * lib/diacrit.h: Likewise.
51990         * lib/diffseq.h: Likewise.
51991         * lib/dirchownmod.c: Likewise.
51992         * lib/dirent.in.h: Likewise.
51993         * lib/dirfd.c: Likewise.
51994         * lib/dirfd.h: Likewise.
51995         * lib/dirname.c: Likewise.
51996         * lib/dirname.h: Likewise.
51997         * lib/dummy.c: Likewise.
51998         * lib/dup-safer.c: Likewise.
51999         * lib/dup2.c: Likewise.
52000         * lib/eealloc.h: Likewise.
52001         * lib/error.c: Likewise.
52002         * lib/error.h: Likewise.
52003         * lib/euidaccess.c: Likewise.
52004         * lib/exclude.c: Likewise.
52005         * lib/exclude.h: Likewise.
52006         * lib/execute.c: Likewise.
52007         * lib/execute.h: Likewise.
52008         * lib/exitfail.c: Likewise.
52009         * lib/exitfail.h: Likewise.
52010         * lib/expl.c: Likewise.
52011         * lib/fatal-signal.c: Likewise.
52012         * lib/fatal-signal.h: Likewise.
52013         * lib/fbufmode.c: Likewise.
52014         * lib/fbufmode.h: Likewise.
52015         * lib/fchdir.c: Likewise.
52016         * lib/fchmodat.c: Likewise.
52017         * lib/fchownat.c: Likewise.
52018         * lib/fcntl--.h: Likewise.
52019         * lib/fcntl-safer.h: Likewise.
52020         * lib/fcntl.in.h: Likewise.
52021         * lib/fd-safer.c: Likewise.
52022         * lib/fflush.c: Likewise.
52023         * lib/file-has-acl.c: Likewise.
52024         * lib/file-set.c: Likewise.
52025         * lib/file-type.c: Likewise.
52026         * lib/file-type.h: Likewise.
52027         * lib/fileblocks.c: Likewise.
52028         * lib/filemode.c: Likewise.
52029         * lib/filemode.h: Likewise.
52030         * lib/filename.h: Likewise.
52031         * lib/filenamecat.c: Likewise.
52032         * lib/filenamecat.h: Likewise.
52033         * lib/findprog.c: Likewise.
52034         * lib/findprog.h: Likewise.
52035         * lib/float.in.h: Likewise.
52036         * lib/floor.c: Likewise.
52037         * lib/floorf.c: Likewise.
52038         * lib/floorl.c: Likewise.
52039         * lib/fopen-safer.c: Likewise.
52040         * lib/fopen.c: Likewise.
52041         * lib/fpending.c: Likewise.
52042         * lib/fpending.h: Likewise.
52043         * lib/fprintf.c: Likewise.
52044         * lib/fprintftime.h: Likewise.
52045         * lib/fpucw.h: Likewise.
52046         * lib/fpurge.c: Likewise.
52047         * lib/fpurge.h: Likewise.
52048         * lib/freadable.c: Likewise.
52049         * lib/freadable.h: Likewise.
52050         * lib/freadahead.c: Likewise.
52051         * lib/freadahead.h: Likewise.
52052         * lib/freading.c: Likewise.
52053         * lib/freading.h: Likewise.
52054         * lib/free.c: Likewise.
52055         * lib/freopen.c: Likewise.
52056         * lib/frexp.c: Likewise.
52057         * lib/frexpl.c: Likewise.
52058         * lib/fseek.c: Likewise.
52059         * lib/fseterr.c: Likewise.
52060         * lib/fseterr.h: Likewise.
52061         * lib/fstatat.c: Likewise.
52062         * lib/fstrcmp.c: Likewise.
52063         * lib/fstrcmp.h: Likewise.
52064         * lib/fsusage.c: Likewise.
52065         * lib/fsusage.h: Likewise.
52066         * lib/ftell.c: Likewise.
52067         * lib/ftello.c: Likewise.
52068         * lib/fts-cycle.c: Likewise.
52069         * lib/fts.c: Likewise.
52070         * lib/fts_.h: Likewise.
52071         * lib/full-read.c: Likewise.
52072         * lib/full-read.h: Likewise.
52073         * lib/full-write.c: Likewise.
52074         * lib/full-write.h: Likewise.
52075         * lib/fwritable.c: Likewise.
52076         * lib/fwritable.h: Likewise.
52077         * lib/fwriteerror.c: Likewise.
52078         * lib/fwriteerror.h: Likewise.
52079         * lib/fwriting.c: Likewise.
52080         * lib/fwriting.h: Likewise.
52081         * lib/gcd.c: Likewise.
52082         * lib/gcd.h: Likewise.
52083         * lib/getcwd.c: Likewise.
52084         * lib/getdate.h: Likewise.
52085         * lib/getdate.y: Likewise.
52086         * lib/getdomainname.c: Likewise.
52087         * lib/getdomainname.h: Likewise.
52088         * lib/getgroups.c: Likewise.
52089         * lib/gethostname.c: Likewise.
52090         * lib/gethrxtime.c: Likewise.
52091         * lib/gethrxtime.h: Likewise.
52092         * lib/getloadavg.c: Likewise.
52093         * lib/getndelim2.c: Likewise.
52094         * lib/getndelim2.h: Likewise.
52095         * lib/getnline.c: Likewise.
52096         * lib/getnline.h: Likewise.
52097         * lib/getopt.c: Likewise.
52098         * lib/getopt.in.h: Likewise.
52099         * lib/getopt1.c: Likewise.
52100         * lib/getopt_int.h: Likewise.
52101         * lib/getpagesize.h: Likewise.
52102         * lib/getsubopt.c: Likewise.
52103         * lib/gettime.c: Likewise.
52104         * lib/getugroups.c: Likewise.
52105         * lib/getugroups.h: Likewise.
52106         * lib/getusershell.c: Likewise.
52107         * lib/gl_anyavltree_list1.h: Likewise.
52108         * lib/gl_anyavltree_list2.h: Likewise.
52109         * lib/gl_anyhash_list1.h: Likewise.
52110         * lib/gl_anyhash_list2.h: Likewise.
52111         * lib/gl_anylinked_list1.h: Likewise.
52112         * lib/gl_anylinked_list2.h: Likewise.
52113         * lib/gl_anyrbtree_list1.h: Likewise.
52114         * lib/gl_anyrbtree_list2.h: Likewise.
52115         * lib/gl_anytree_list1.h: Likewise.
52116         * lib/gl_anytree_list2.h: Likewise.
52117         * lib/gl_anytree_oset.h: Likewise.
52118         * lib/gl_anytreehash_list1.h: Likewise.
52119         * lib/gl_anytreehash_list2.h: Likewise.
52120         * lib/gl_array_list.c: Likewise.
52121         * lib/gl_array_list.h: Likewise.
52122         * lib/gl_array_oset.c: Likewise.
52123         * lib/gl_array_oset.h: Likewise.
52124         * lib/gl_avltree_list.c: Likewise.
52125         * lib/gl_avltree_list.h: Likewise.
52126         * lib/gl_avltree_oset.c: Likewise.
52127         * lib/gl_avltree_oset.h: Likewise.
52128         * lib/gl_avltreehash_list.c: Likewise.
52129         * lib/gl_avltreehash_list.h: Likewise.
52130         * lib/gl_carray_list.c: Likewise.
52131         * lib/gl_carray_list.h: Likewise.
52132         * lib/gl_linked_list.c: Likewise.
52133         * lib/gl_linked_list.h: Likewise.
52134         * lib/gl_linkedhash_list.c: Likewise.
52135         * lib/gl_linkedhash_list.h: Likewise.
52136         * lib/gl_list.c: Likewise.
52137         * lib/gl_list.h: Likewise.
52138         * lib/gl_oset.c: Likewise.
52139         * lib/gl_oset.h: Likewise.
52140         * lib/gl_rbtree_list.c: Likewise.
52141         * lib/gl_rbtree_list.h: Likewise.
52142         * lib/gl_rbtree_oset.c: Likewise.
52143         * lib/gl_rbtree_oset.h: Likewise.
52144         * lib/gl_rbtreehash_list.c: Likewise.
52145         * lib/gl_rbtreehash_list.h: Likewise.
52146         * lib/gl_sublist.c: Likewise.
52147         * lib/gl_sublist.h: Likewise.
52148         * lib/group-member.c: Likewise.
52149         * lib/group-member.h: Likewise.
52150         * lib/hard-locale.c: Likewise.
52151         * lib/hard-locale.h: Likewise.
52152         * lib/hash-pjw.c: Likewise.
52153         * lib/hash-pjw.h: Likewise.
52154         * lib/hash-triple.c: Likewise.
52155         * lib/hash.c: Likewise.
52156         * lib/hash.h: Likewise.
52157         * lib/human.c: Likewise.
52158         * lib/human.h: Likewise.
52159         * lib/i-ring.c: Likewise.
52160         * lib/i-ring.h: Likewise.
52161         * lib/idcache.c: Likewise.
52162         * lib/imaxabs.c: Likewise.
52163         * lib/imaxdiv.c: Likewise.
52164         * lib/inet_pton.c: Likewise.
52165         * lib/inet_pton.h: Likewise.
52166         * lib/intprops.h: Likewise.
52167         * lib/inttostr.c: Likewise.
52168         * lib/inttostr.h: Likewise.
52169         * lib/inttypes.in.h: Likewise.
52170         * lib/isapipe.c: Likewise.
52171         * lib/isdir.c: Likewise.
52172         * lib/isnan.c: Likewise.
52173         * lib/isnan.h: Likewise.
52174         * lib/isnanf.c: Likewise.
52175         * lib/isnanf.h: Likewise.
52176         * lib/isnanl-nolibm.h: Likewise.
52177         * lib/isnanl.c: Likewise.
52178         * lib/isnanl.h: Likewise.
52179         * lib/javacomp.c: Likewise.
52180         * lib/javacomp.h: Likewise.
52181         * lib/javaexec.c: Likewise.
52182         * lib/javaexec.h: Likewise.
52183         * lib/javaversion.c: Likewise.
52184         * lib/javaversion.h: Likewise.
52185         * lib/javaversion.java: Likewise.
52186         * lib/lbrkprop.h: Likewise.
52187         * lib/lchmod.h: Likewise.
52188         * lib/lchown.c: Likewise.
52189         * lib/ldexpl.c: Likewise.
52190         * lib/linebreak.c: Likewise.
52191         * lib/linebreak.h: Likewise.
52192         * lib/linebuffer.c: Likewise.
52193         * lib/linebuffer.h: Likewise.
52194         * lib/locale.in.h: Likewise.
52195         * lib/logl.c: Likewise.
52196         * lib/long-options.c: Likewise.
52197         * lib/long-options.h: Likewise.
52198         * lib/lstat.c: Likewise.
52199         * lib/lstat.h: Likewise.
52200         * lib/math.in.h: Likewise.
52201         * lib/mbchar.c: Likewise.
52202         * lib/mbchar.h: Likewise.
52203         * lib/mbfile.h: Likewise.
52204         * lib/mbiter.h: Likewise.
52205         * lib/mbscasecmp.c: Likewise.
52206         * lib/mbscasestr.c: Likewise.
52207         * lib/mbschr.c: Likewise.
52208         * lib/mbscspn.c: Likewise.
52209         * lib/mbslen.c: Likewise.
52210         * lib/mbsncasecmp.c: Likewise.
52211         * lib/mbsnlen.c: Likewise.
52212         * lib/mbspbrk.c: Likewise.
52213         * lib/mbspcasecmp.c: Likewise.
52214         * lib/mbsrchr.c: Likewise.
52215         * lib/mbssep.c: Likewise.
52216         * lib/mbsspn.c: Likewise.
52217         * lib/mbsstr.c: Likewise.
52218         * lib/mbstok_r.c: Likewise.
52219         * lib/mbswidth.c: Likewise.
52220         * lib/mbswidth.h: Likewise.
52221         * lib/mbuiter.h: Likewise.
52222         * lib/memcasecmp.c: Likewise.
52223         * lib/memcasecmp.h: Likewise.
52224         * lib/memchr.c: Likewise.
52225         * lib/memcmp.c: Likewise.
52226         * lib/memcoll.c: Likewise.
52227         * lib/memcoll.h: Likewise.
52228         * lib/memcpy.c: Likewise.
52229         * lib/memrchr.c: Likewise.
52230         * lib/mkancesdirs.c: Likewise.
52231         * lib/mkdir-p.c: Likewise.
52232         * lib/mkdir-p.h: Likewise.
52233         * lib/mkdir.c: Likewise.
52234         * lib/mkdirat.c: Likewise.
52235         * lib/mkdtemp.c: Likewise.
52236         * lib/mkstemp-safer.c: Likewise.
52237         * lib/mkstemp.c: Likewise.
52238         * lib/modechange.c: Likewise.
52239         * lib/modechange.h: Likewise.
52240         * lib/mountlist.c: Likewise.
52241         * lib/mountlist.h: Likewise.
52242         * lib/mpsort.c: Likewise.
52243         * lib/nanosleep.c: Likewise.
52244         * lib/obstack.c: Likewise.
52245         * lib/obstack.h: Likewise.
52246         * lib/open-safer.c: Likewise.
52247         * lib/open.c: Likewise.
52248         * lib/openat-die.c: Likewise.
52249         * lib/openat-priv.h: Likewise.
52250         * lib/openat-proc.c: Likewise.
52251         * lib/openat.c: Likewise.
52252         * lib/openat.h: Likewise.
52253         * lib/pagealign_alloc.c: Likewise.
52254         * lib/pagealign_alloc.h: Likewise.
52255         * lib/physmem.c: Likewise.
52256         * lib/physmem.h: Likewise.
52257         * lib/pipe-safer.c: Likewise.
52258         * lib/pipe.c: Likewise.
52259         * lib/pipe.h: Likewise.
52260         * lib/posixtm.c: Likewise.
52261         * lib/posixtm.h: Likewise.
52262         * lib/posixver.c: Likewise.
52263         * lib/printf-frexp.c: Likewise.
52264         * lib/printf-frexp.h: Likewise.
52265         * lib/printf-frexpl.c: Likewise.
52266         * lib/printf-frexpl.h: Likewise.
52267         * lib/printf.c: Likewise.
52268         * lib/progname.c: Likewise.
52269         * lib/progname.h: Likewise.
52270         * lib/progreloc.c: Likewise.
52271         * lib/putenv.c: Likewise.
52272         * lib/quote.c: Likewise.
52273         * lib/quote.h: Likewise.
52274         * lib/quotearg.c: Likewise.
52275         * lib/quotearg.h: Likewise.
52276         * lib/raise.c: Likewise.
52277         * lib/readline.c: Likewise.
52278         * lib/readline.h: Likewise.
52279         * lib/readlink.c: Likewise.
52280         * lib/readtokens.c: Likewise.
52281         * lib/readtokens.h: Likewise.
52282         * lib/readtokens0.c: Likewise.
52283         * lib/readtokens0.h: Likewise.
52284         * lib/readutmp.c: Likewise.
52285         * lib/readutmp.h: Likewise.
52286         * lib/realloc.c: Likewise.
52287         * lib/relocwrapper.c: Likewise.
52288         * lib/rename-dest-slash.c: Likewise.
52289         * lib/rename.c: Likewise.
52290         * lib/rmdir.c: Likewise.
52291         * lib/rpmatch.c: Likewise.
52292         * lib/safe-read.c: Likewise.
52293         * lib/safe-read.h: Likewise.
52294         * lib/safe-write.c: Likewise.
52295         * lib/safe-write.h: Likewise.
52296         * lib/same-inode.h: Likewise.
52297         * lib/same.c: Likewise.
52298         * lib/same.h: Likewise.
52299         * lib/save-cwd.c: Likewise.
52300         * lib/save-cwd.h: Likewise.
52301         * lib/savedir.c: Likewise.
52302         * lib/savedir.h: Likewise.
52303         * lib/savewd.c: Likewise.
52304         * lib/savewd.h: Likewise.
52305         * lib/search.in.h: Likewise.
52306         * lib/setenv.c: Likewise.
52307         * lib/setenv.h: Likewise.
52308         * lib/settime.c: Likewise.
52309         * lib/sh-quote.c: Likewise.
52310         * lib/sh-quote.h: Likewise.
52311         * lib/sig2str.c: Likewise.
52312         * lib/sig2str.h: Likewise.
52313         * lib/signal.in.h: Likewise.
52314         * lib/signbitd.c: Likewise.
52315         * lib/signbitf.c: Likewise.
52316         * lib/signbitl.c: Likewise.
52317         * lib/sigprocmask.c: Likewise.
52318         * lib/sincosl.c: Likewise.
52319         * lib/sleep.c: Likewise.
52320         * lib/sprintf.c: Likewise.
52321         * lib/sqrtl.c: Likewise.
52322         * lib/stat-time.h: Likewise.
52323         * lib/stdio--.h: Likewise.
52324         * lib/stdio-safer.h: Likewise.
52325         * lib/stdlib--.h: Likewise.
52326         * lib/stdlib-safer.h: Likewise.
52327         * lib/stdlib.in.h: Likewise.
52328         * lib/stpcpy.c: Likewise.
52329         * lib/stpncpy.c: Likewise.
52330         * lib/strchrnul.c: Likewise.
52331         * lib/strcspn.c: Likewise.
52332         * lib/strerror.c: Likewise.
52333         * lib/strftime.c: Likewise.
52334         * lib/strftime.h: Likewise.
52335         * lib/striconveh.c: Likewise.
52336         * lib/striconveh.h: Likewise.
52337         * lib/striconveha.c: Likewise.
52338         * lib/striconveha.h: Likewise.
52339         * lib/stripslash.c: Likewise.
52340         * lib/strnlen1.c: Likewise.
52341         * lib/strnlen1.h: Likewise.
52342         * lib/strtod.c: Likewise.
52343         * lib/strtoimax.c: Likewise.
52344         * lib/strtok_r.c: Likewise.
52345         * lib/strtol.c: Likewise.
52346         * lib/strtoll.c: Likewise.
52347         * lib/strtoul.c: Likewise.
52348         * lib/strtoull.c: Likewise.
52349         * lib/sysexits.in.h: Likewise.
52350         * lib/tempname.c: Likewise.
52351         * lib/tempname.h: Likewise.
52352         * lib/timespec.h: Likewise.
52353         * lib/tls.c: Likewise.
52354         * lib/tls.h: Likewise.
52355         * lib/tmpdir.c: Likewise.
52356         * lib/tmpdir.h: Likewise.
52357         * lib/tmpfile-safer.c: Likewise.
52358         * lib/tmpfile.c: Likewise.
52359         * lib/trigl.c: Likewise.
52360         * lib/trigl.h: Likewise.
52361         * lib/trim.c: Likewise.
52362         * lib/trim.h: Likewise.
52363         * lib/trunc.c: Likewise.
52364         * lib/truncf.c: Likewise.
52365         * lib/truncl.c: Likewise.
52366         * lib/tsearch.c: Likewise.
52367         * lib/unicodeio.c: Likewise.
52368         * lib/unicodeio.h: Likewise.
52369         * lib/unistd--.h: Likewise.
52370         * lib/unistd-safer.h: Likewise.
52371         * lib/unistdio/ulc-fprintf.c: Likewise.
52372         * lib/unistdio/ulc-vfprintf.c: Likewise.
52373         * lib/unlinkdir.c: Likewise.
52374         * lib/unlinkdir.h: Likewise.
52375         * lib/unlocked-io.h: Likewise.
52376         * lib/unsetenv.c: Likewise.
52377         * lib/userspec.c: Likewise.
52378         * lib/utime.c: Likewise.
52379         * lib/utimecmp.c: Likewise.
52380         * lib/utimecmp.h: Likewise.
52381         * lib/utimens.c: Likewise.
52382         * lib/verify.h: Likewise.
52383         * lib/verror.c: Likewise.
52384         * lib/verror.h: Likewise.
52385         * lib/version-etc-fsf.c: Likewise.
52386         * lib/version-etc.c: Likewise.
52387         * lib/version-etc.h: Likewise.
52388         * lib/vfprintf.c: Likewise.
52389         * lib/vprintf.c: Likewise.
52390         * lib/vsprintf.c: Likewise.
52391         * lib/w32spawn.h: Likewise.
52392         * lib/wait-process.c: Likewise.
52393         * lib/wait-process.h: Likewise.
52394         * lib/wcwidth.c: Likewise.
52395         * lib/write-any-file.c: Likewise.
52396         * lib/xalloc-die.c: Likewise.
52397         * lib/xalloc.h: Likewise.
52398         * lib/xasprintf.c: Likewise.
52399         * lib/xgetcwd.c: Likewise.
52400         * lib/xgetcwd.h: Likewise.
52401         * lib/xgetdomainname.c: Likewise.
52402         * lib/xgetdomainname.h: Likewise.
52403         * lib/xgethostname.c: Likewise.
52404         * lib/xmalloc.c: Likewise.
52405         * lib/xmalloca.c: Likewise.
52406         * lib/xmalloca.h: Likewise.
52407         * lib/xmemcoll.c: Likewise.
52408         * lib/xnanosleep.c: Likewise.
52409         * lib/xreadlink.c: Likewise.
52410         * lib/xreadlink.h: Likewise.
52411         * lib/xsetenv.c: Likewise.
52412         * lib/xsetenv.h: Likewise.
52413         * lib/xstriconv.c: Likewise.
52414         * lib/xstriconv.h: Likewise.
52415         * lib/xstrndup.c: Likewise.
52416         * lib/xstrndup.h: Likewise.
52417         * lib/xstrtod.c: Likewise.
52418         * lib/xstrtod.h: Likewise.
52419         * lib/xstrtol-error.c: Likewise.
52420         * lib/xstrtol.c: Likewise.
52421         * lib/xstrtol.h: Likewise.
52422         * lib/xtime.h: Likewise.
52423         * lib/xvasprintf.c: Likewise.
52424         * lib/xvasprintf.h: Likewise.
52425         * lib/yesno.c: Likewise.
52426         * lib/yesno.h: Likewise.
52427         * posix-modules: Likewise.
52428         * tests/test-alloca-opt.c: Likewise.
52429         * tests/test-arcfour.c: Likewise.
52430         * tests/test-arctwo.c: Likewise.
52431         * tests/test-argmatch.c: Likewise.
52432         * tests/test-argp-2.sh: Likewise.
52433         * tests/test-argp.c: Likewise.
52434         * tests/test-arpa_inet.c: Likewise.
52435         * tests/test-array_list.c: Likewise.
52436         * tests/test-array_oset.c: Likewise.
52437         * tests/test-atexit.c: Likewise.
52438         * tests/test-avltree_list.c: Likewise.
52439         * tests/test-avltree_oset.c: Likewise.
52440         * tests/test-avltreehash_list.c: Likewise.
52441         * tests/test-base64.c: Likewise.
52442         * tests/test-binary-io.c: Likewise.
52443         * tests/test-byteswap.c: Likewise.
52444         * tests/test-c-ctype.c: Likewise.
52445         * tests/test-c-strcasecmp.c: Likewise.
52446         * tests/test-c-strcasestr.c: Likewise.
52447         * tests/test-c-strncasecmp.c: Likewise.
52448         * tests/test-c-strstr.c: Likewise.
52449         * tests/test-canonicalize-lgpl.c: Likewise.
52450         * tests/test-canonicalize.c: Likewise.
52451         * tests/test-carray_list.c: Likewise.
52452         * tests/test-ceilf.c: Likewise.
52453         * tests/test-ceill.c: Likewise.
52454         * tests/test-count-one-bits.c: Likewise.
52455         * tests/test-crc.c: Likewise.
52456         * tests/test-dirname.c: Likewise.
52457         * tests/test-fbufmode.c: Likewise.
52458         * tests/test-fcntl.c: Likewise.
52459         * tests/test-fflush.c: Likewise.
52460         * tests/test-floorf.c: Likewise.
52461         * tests/test-floorl.c: Likewise.
52462         * tests/test-fopen.c: Likewise.
52463         * tests/test-fprintf-posix.c: Likewise.
52464         * tests/test-fprintf-posix.h: Likewise.
52465         * tests/test-fpurge.c: Likewise.
52466         * tests/test-freadable.c: Likewise.
52467         * tests/test-freadahead.c: Likewise.
52468         * tests/test-freading.c: Likewise.
52469         * tests/test-freopen.c: Likewise.
52470         * tests/test-frexp.c: Likewise.
52471         * tests/test-frexpl.c: Likewise.
52472         * tests/test-fseek.c: Likewise.
52473         * tests/test-fseeko.c: Likewise.
52474         * tests/test-fseterr.c: Likewise.
52475         * tests/test-fstrcmp.c: Likewise.
52476         * tests/test-ftell.c: Likewise.
52477         * tests/test-ftello.c: Likewise.
52478         * tests/test-fwritable.c: Likewise.
52479         * tests/test-fwriting.c: Likewise.
52480         * tests/test-getaddrinfo.c: Likewise.
52481         * tests/test-getpass.c: Likewise.
52482         * tests/test-gettimeofday.c: Likewise.
52483         * tests/test-hmac-md5.c: Likewise.
52484         * tests/test-hmac-sha1.c: Likewise.
52485         * tests/test-iconv.c: Likewise.
52486         * tests/test-iconvme.c: Likewise.
52487         * tests/test-inttypes.c: Likewise.
52488         * tests/test-isnan.c: Likewise.
52489         * tests/test-isnanf.c: Likewise.
52490         * tests/test-isnanl-nolibm.c: Likewise.
52491         * tests/test-isnanl.c: Likewise.
52492         * tests/test-isnanl.h: Likewise.
52493         * tests/test-ldexpl.c: Likewise.
52494         * tests/test-linked_list.c: Likewise.
52495         * tests/test-linkedhash_list.c: Likewise.
52496         * tests/test-locale.c: Likewise.
52497         * tests/test-localename.c: Likewise.
52498         * tests/test-lock.c: Likewise.
52499         * tests/test-lseek.c: Likewise.
52500         * tests/test-malloca.c: Likewise.
52501         * tests/test-math.c: Likewise.
52502         * tests/test-mbscasecmp.c: Likewise.
52503         * tests/test-mbscasestr1.c: Likewise.
52504         * tests/test-mbscasestr2.c: Likewise.
52505         * tests/test-mbscasestr3.c: Likewise.
52506         * tests/test-mbscasestr4.c: Likewise.
52507         * tests/test-mbschr.c: Likewise.
52508         * tests/test-mbscspn.c: Likewise.
52509         * tests/test-mbsncasecmp.c: Likewise.
52510         * tests/test-mbspbrk.c: Likewise.
52511         * tests/test-mbspcasecmp.c: Likewise.
52512         * tests/test-mbsrchr.c: Likewise.
52513         * tests/test-mbsspn.c: Likewise.
52514         * tests/test-mbsstr1.c: Likewise.
52515         * tests/test-mbsstr2.c: Likewise.
52516         * tests/test-mbsstr3.c: Likewise.
52517         * tests/test-md5.c: Likewise.
52518         * tests/test-memmem.c: Likewise.
52519         * tests/test-netinet_in.c: Likewise.
52520         * tests/test-open.c: Likewise.
52521         * tests/test-printf-frexp.c: Likewise.
52522         * tests/test-printf-frexpl.c: Likewise.
52523         * tests/test-printf-posix.c: Likewise.
52524         * tests/test-printf-posix.h: Likewise.
52525         * tests/test-rbtree_list.c: Likewise.
52526         * tests/test-rbtree_oset.c: Likewise.
52527         * tests/test-rbtreehash_list.c: Likewise.
52528         * tests/test-read-file.c: Likewise.
52529         * tests/test-rijndael.c: Likewise.
52530         * tests/test-search.c: Likewise.
52531         * tests/test-signbit.c: Likewise.
52532         * tests/test-sleep.c: Likewise.
52533         * tests/test-snprintf-posix.c: Likewise.
52534         * tests/test-snprintf-posix.h: Likewise.
52535         * tests/test-snprintf.c: Likewise.
52536         * tests/test-sprintf-posix.c: Likewise.
52537         * tests/test-sprintf-posix.h: Likewise.
52538         * tests/test-stat-time.c: Likewise.
52539         * tests/test-stdbool.c: Likewise.
52540         * tests/test-stdint.c: Likewise.
52541         * tests/test-stdio.c: Likewise.
52542         * tests/test-stdlib.c: Likewise.
52543         * tests/test-stpncpy.c: Likewise.
52544         * tests/test-strcasestr.c: Likewise.
52545         * tests/test-striconv.c: Likewise.
52546         * tests/test-striconveh.c: Likewise.
52547         * tests/test-striconveha.c: Likewise.
52548         * tests/test-string.c: Likewise.
52549         * tests/test-sys_select.c: Likewise.
52550         * tests/test-sys_socket.c: Likewise.
52551         * tests/test-sys_stat.c: Likewise.
52552         * tests/test-sys_time.c: Likewise.
52553         * tests/test-sysexits.c: Likewise.
52554         * tests/test-time.c: Likewise.
52555         * tests/test-tls.c: Likewise.
52556         * tests/test-trunc.c: Likewise.
52557         * tests/test-truncf.c: Likewise.
52558         * tests/test-truncl.c: Likewise.
52559         * tests/test-unistd.c: Likewise.
52560         * tests/test-vasnprintf-posix.c: Likewise.
52561         * tests/test-vasnprintf-posix2.c: Likewise.
52562         * tests/test-vasnprintf.c: Likewise.
52563         * tests/test-vasprintf-posix.c: Likewise.
52564         * tests/test-vasprintf.c: Likewise.
52565         * tests/test-verify.c: Likewise.
52566         * tests/test-vfprintf-posix.c: Likewise.
52567         * tests/test-vprintf-posix.c: Likewise.
52568         * tests/test-vsnprintf-posix.c: Likewise.
52569         * tests/test-vsnprintf.c: Likewise.
52570         * tests/test-vsprintf-posix.c: Likewise.
52571         * tests/test-wchar.c: Likewise.
52572         * tests/test-wctype.c: Likewise.
52573         * tests/test-wcwidth.c: Likewise.
52574         * tests/test-xstrtol.c: Likewise.
52575         * tests/test-xvasprintf.c: Likewise.
52576         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52577         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52578         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52579         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52580         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52581         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52582         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52583         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52584         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52585         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52586         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52587         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52588         * tests/uniname/test-uninames.c: Likewise.
52589         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52590         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52591         * tests/unistdio/test-u16-printf1.h: Likewise.
52592         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52593         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52594         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52595         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52596         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52597         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52598         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52599         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52600         * tests/unistdio/test-u32-printf1.h: Likewise.
52601         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52602         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52603         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52604         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52605         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52606         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52607         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52608         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52609         * tests/unistdio/test-u8-printf1.h: Likewise.
52610         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52611         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52612         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52613         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52614         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52615         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52616         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52617         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52618         * tests/unistdio/test-ulc-printf1.h: Likewise.
52619         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52620         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52621         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52622         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52623         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52624         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52625         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52626         * tests/uniwidth/test-u16-width.c: Likewise.
52627         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52628         * tests/uniwidth/test-u32-width.c: Likewise.
52629         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52630         * tests/uniwidth/test-u8-width.c: Likewise.
52631         * tests/uniwidth/test-uc_width.c: Likewise.
52632         * config/srclist-update: Likewise.
52633         (fixlicense): Update to GPLv3+.
52634
52635         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52636         * tests/test-tsearch.c: Change copyright notice.
52637
52638         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52639         * lib/c-strcaseeq.h: Change copyright notice.
52640         * lib/streq.h: Likewise.
52641         * lib/uniconv.h: Likewise.
52642         * lib/uniconv/u-conv-from-enc.h: Likewise.
52643         * lib/uniconv/u-conv-to-enc.h: Likewise.
52644         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52645         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52646         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52647         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52648         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52649         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52650         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52651         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52652         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52653         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52654         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52655         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52656         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52657         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52658         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52659         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52660         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52661         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52662         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52663         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52664         * lib/uniname.h: Likewise.
52665         * lib/uniname/uniname.c: Likewise.
52666         * lib/unistdio.h: Likewise.
52667         * lib/unistdio/u-asnprintf.h: Likewise.
52668         * lib/unistdio/u-asprintf.h: Likewise.
52669         * lib/unistdio/u-printf-args.c: Likewise.
52670         * lib/unistdio/u-printf-args.h: Likewise.
52671         * lib/unistdio/u-printf-parse.h: Likewise.
52672         * lib/unistdio/u-snprintf.h: Likewise.
52673         * lib/unistdio/u-sprintf.h: Likewise.
52674         * lib/unistdio/u-vasprintf.h: Likewise.
52675         * lib/unistdio/u-vsnprintf.h: Likewise.
52676         * lib/unistdio/u-vsprintf.h: Likewise.
52677         * lib/unistdio/u16-asnprintf.c: Likewise.
52678         * lib/unistdio/u16-asprintf.c: Likewise.
52679         * lib/unistdio/u16-printf-parse.c: Likewise.
52680         * lib/unistdio/u16-snprintf.c: Likewise.
52681         * lib/unistdio/u16-sprintf.c: Likewise.
52682         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52683         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52684         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52685         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52686         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52687         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52688         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52689         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52690         * lib/unistdio/u16-vasnprintf.c: Likewise.
52691         * lib/unistdio/u16-vasprintf.c: Likewise.
52692         * lib/unistdio/u16-vsnprintf.c: Likewise.
52693         * lib/unistdio/u16-vsprintf.c: Likewise.
52694         * lib/unistdio/u32-asnprintf.c: Likewise.
52695         * lib/unistdio/u32-asprintf.c: Likewise.
52696         * lib/unistdio/u32-printf-parse.c: Likewise.
52697         * lib/unistdio/u32-snprintf.c: Likewise.
52698         * lib/unistdio/u32-sprintf.c: Likewise.
52699         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52700         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52701         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52702         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52703         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52704         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52705         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52706         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52707         * lib/unistdio/u32-vasnprintf.c: Likewise.
52708         * lib/unistdio/u32-vasprintf.c: Likewise.
52709         * lib/unistdio/u32-vsnprintf.c: Likewise.
52710         * lib/unistdio/u32-vsprintf.c: Likewise.
52711         * lib/unistdio/u8-asnprintf.c: Likewise.
52712         * lib/unistdio/u8-asprintf.c: Likewise.
52713         * lib/unistdio/u8-printf-parse.c: Likewise.
52714         * lib/unistdio/u8-snprintf.c: Likewise.
52715         * lib/unistdio/u8-sprintf.c: Likewise.
52716         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52717         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52718         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52719         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52720         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52721         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52722         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52723         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52724         * lib/unistdio/u8-vasnprintf.c: Likewise.
52725         * lib/unistdio/u8-vasprintf.c: Likewise.
52726         * lib/unistdio/u8-vsnprintf.c: Likewise.
52727         * lib/unistdio/u8-vsprintf.c: Likewise.
52728         * lib/unistdio/ulc-asnprintf.c: Likewise.
52729         * lib/unistdio/ulc-asprintf.c: Likewise.
52730         * lib/unistdio/ulc-printf-parse.c: Likewise.
52731         * lib/unistdio/ulc-snprintf.c: Likewise.
52732         * lib/unistdio/ulc-sprintf.c: Likewise.
52733         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52734         * lib/unistdio/ulc-vasprintf.c: Likewise.
52735         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52736         * lib/unistdio/ulc-vsprintf.c: Likewise.
52737         * lib/unistr.h: Likewise.
52738         * lib/unistr/u-cpy-alloc.h: Likewise.
52739         * lib/unistr/u-cpy.h: Likewise.
52740         * lib/unistr/u-endswith.h: Likewise.
52741         * lib/unistr/u-move.h: Likewise.
52742         * lib/unistr/u-set.h: Likewise.
52743         * lib/unistr/u-startswith.h: Likewise.
52744         * lib/unistr/u-stpcpy.h: Likewise.
52745         * lib/unistr/u-stpncpy.h: Likewise.
52746         * lib/unistr/u-strcat.h: Likewise.
52747         * lib/unistr/u-strcpy.h: Likewise.
52748         * lib/unistr/u-strcspn.h: Likewise.
52749         * lib/unistr/u-strdup.h: Likewise.
52750         * lib/unistr/u-strlen.h: Likewise.
52751         * lib/unistr/u-strncat.h: Likewise.
52752         * lib/unistr/u-strncpy.h: Likewise.
52753         * lib/unistr/u-strnlen.h: Likewise.
52754         * lib/unistr/u-strpbrk.h: Likewise.
52755         * lib/unistr/u-strspn.h: Likewise.
52756         * lib/unistr/u-strstr.h: Likewise.
52757         * lib/unistr/u-strtok.h: Likewise.
52758         * lib/unistr/u16-check.c: Likewise.
52759         * lib/unistr/u16-chr.c: Likewise.
52760         * lib/unistr/u16-cmp.c: Likewise.
52761         * lib/unistr/u16-cpy-alloc.c: Likewise.
52762         * lib/unistr/u16-cpy.c: Likewise.
52763         * lib/unistr/u16-endswith.c: Likewise.
52764         * lib/unistr/u16-mblen.c: Likewise.
52765         * lib/unistr/u16-mbsnlen.c: Likewise.
52766         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52767         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52768         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52769         * lib/unistr/u16-mbtouc.c: Likewise.
52770         * lib/unistr/u16-mbtoucr.c: Likewise.
52771         * lib/unistr/u16-move.c: Likewise.
52772         * lib/unistr/u16-next.c: Likewise.
52773         * lib/unistr/u16-prev.c: Likewise.
52774         * lib/unistr/u16-set.c: Likewise.
52775         * lib/unistr/u16-startswith.c: Likewise.
52776         * lib/unistr/u16-stpcpy.c: Likewise.
52777         * lib/unistr/u16-stpncpy.c: Likewise.
52778         * lib/unistr/u16-strcat.c: Likewise.
52779         * lib/unistr/u16-strchr.c: Likewise.
52780         * lib/unistr/u16-strcmp.c: Likewise.
52781         * lib/unistr/u16-strcpy.c: Likewise.
52782         * lib/unistr/u16-strcspn.c: Likewise.
52783         * lib/unistr/u16-strdup.c: Likewise.
52784         * lib/unistr/u16-strlen.c: Likewise.
52785         * lib/unistr/u16-strmblen.c: Likewise.
52786         * lib/unistr/u16-strmbtouc.c: Likewise.
52787         * lib/unistr/u16-strncat.c: Likewise.
52788         * lib/unistr/u16-strncmp.c: Likewise.
52789         * lib/unistr/u16-strncpy.c: Likewise.
52790         * lib/unistr/u16-strnlen.c: Likewise.
52791         * lib/unistr/u16-strpbrk.c: Likewise.
52792         * lib/unistr/u16-strrchr.c: Likewise.
52793         * lib/unistr/u16-strspn.c: Likewise.
52794         * lib/unistr/u16-strstr.c: Likewise.
52795         * lib/unistr/u16-strtok.c: Likewise.
52796         * lib/unistr/u16-to-u32.c: Likewise.
52797         * lib/unistr/u16-to-u8.c: Likewise.
52798         * lib/unistr/u16-uctomb-aux.c: Likewise.
52799         * lib/unistr/u16-uctomb.c: Likewise.
52800         * lib/unistr/u32-check.c: Likewise.
52801         * lib/unistr/u32-chr.c: Likewise.
52802         * lib/unistr/u32-cmp.c: Likewise.
52803         * lib/unistr/u32-cpy-alloc.c: Likewise.
52804         * lib/unistr/u32-cpy.c: Likewise.
52805         * lib/unistr/u32-endswith.c: Likewise.
52806         * lib/unistr/u32-mblen.c: Likewise.
52807         * lib/unistr/u32-mbsnlen.c: Likewise.
52808         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52809         * lib/unistr/u32-mbtouc.c: Likewise.
52810         * lib/unistr/u32-mbtoucr.c: Likewise.
52811         * lib/unistr/u32-move.c: Likewise.
52812         * lib/unistr/u32-next.c: Likewise.
52813         * lib/unistr/u32-prev.c: Likewise.
52814         * lib/unistr/u32-set.c: Likewise.
52815         * lib/unistr/u32-startswith.c: Likewise.
52816         * lib/unistr/u32-stpcpy.c: Likewise.
52817         * lib/unistr/u32-stpncpy.c: Likewise.
52818         * lib/unistr/u32-strcat.c: Likewise.
52819         * lib/unistr/u32-strchr.c: Likewise.
52820         * lib/unistr/u32-strcmp.c: Likewise.
52821         * lib/unistr/u32-strcpy.c: Likewise.
52822         * lib/unistr/u32-strcspn.c: Likewise.
52823         * lib/unistr/u32-strdup.c: Likewise.
52824         * lib/unistr/u32-strlen.c: Likewise.
52825         * lib/unistr/u32-strmblen.c: Likewise.
52826         * lib/unistr/u32-strmbtouc.c: Likewise.
52827         * lib/unistr/u32-strncat.c: Likewise.
52828         * lib/unistr/u32-strncmp.c: Likewise.
52829         * lib/unistr/u32-strncpy.c: Likewise.
52830         * lib/unistr/u32-strnlen.c: Likewise.
52831         * lib/unistr/u32-strpbrk.c: Likewise.
52832         * lib/unistr/u32-strrchr.c: Likewise.
52833         * lib/unistr/u32-strspn.c: Likewise.
52834         * lib/unistr/u32-strstr.c: Likewise.
52835         * lib/unistr/u32-strtok.c: Likewise.
52836         * lib/unistr/u32-to-u16.c: Likewise.
52837         * lib/unistr/u32-to-u8.c: Likewise.
52838         * lib/unistr/u32-uctomb.c: Likewise.
52839         * lib/unistr/u8-check.c: Likewise.
52840         * lib/unistr/u8-chr.c: Likewise.
52841         * lib/unistr/u8-cmp.c: Likewise.
52842         * lib/unistr/u8-cpy-alloc.c: Likewise.
52843         * lib/unistr/u8-cpy.c: Likewise.
52844         * lib/unistr/u8-endswith.c: Likewise.
52845         * lib/unistr/u8-mblen.c: Likewise.
52846         * lib/unistr/u8-mbsnlen.c: Likewise.
52847         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52848         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52849         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52850         * lib/unistr/u8-mbtouc.c: Likewise.
52851         * lib/unistr/u8-mbtoucr.c: Likewise.
52852         * lib/unistr/u8-move.c: Likewise.
52853         * lib/unistr/u8-next.c: Likewise.
52854         * lib/unistr/u8-prev.c: Likewise.
52855         * lib/unistr/u8-set.c: Likewise.
52856         * lib/unistr/u8-startswith.c: Likewise.
52857         * lib/unistr/u8-stpcpy.c: Likewise.
52858         * lib/unistr/u8-stpncpy.c: Likewise.
52859         * lib/unistr/u8-strcat.c: Likewise.
52860         * lib/unistr/u8-strchr.c: Likewise.
52861         * lib/unistr/u8-strcmp.c: Likewise.
52862         * lib/unistr/u8-strcpy.c: Likewise.
52863         * lib/unistr/u8-strcspn.c: Likewise.
52864         * lib/unistr/u8-strdup.c: Likewise.
52865         * lib/unistr/u8-strlen.c: Likewise.
52866         * lib/unistr/u8-strmblen.c: Likewise.
52867         * lib/unistr/u8-strmbtouc.c: Likewise.
52868         * lib/unistr/u8-strncat.c: Likewise.
52869         * lib/unistr/u8-strncmp.c: Likewise.
52870         * lib/unistr/u8-strncpy.c: Likewise.
52871         * lib/unistr/u8-strnlen.c: Likewise.
52872         * lib/unistr/u8-strpbrk.c: Likewise.
52873         * lib/unistr/u8-strrchr.c: Likewise.
52874         * lib/unistr/u8-strspn.c: Likewise.
52875         * lib/unistr/u8-strstr.c: Likewise.
52876         * lib/unistr/u8-strtok.c: Likewise.
52877         * lib/unistr/u8-to-u16.c: Likewise.
52878         * lib/unistr/u8-to-u32.c: Likewise.
52879         * lib/unistr/u8-uctomb-aux.c: Likewise.
52880         * lib/unistr/u8-uctomb.c: Likewise.
52881         * lib/unitypes.h: Likewise.
52882         * lib/uniwidth.h: Likewise.
52883         * lib/uniwidth/cjk.h: Likewise.
52884         * lib/uniwidth/u16-strwidth.c: Likewise.
52885         * lib/uniwidth/u16-width.c: Likewise.
52886         * lib/uniwidth/u32-strwidth.c: Likewise.
52887         * lib/uniwidth/u32-width.c: Likewise.
52888         * lib/uniwidth/u8-strwidth.c: Likewise.
52889         * lib/uniwidth/u8-width.c: Likewise.
52890         * lib/uniwidth/width.c: Likewise.
52891
52892 2007-10-07  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52895         The file is still under LGPL (see modules/inttypes).
52896
52897 2007-10-06  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/trunc (Dependencies): Add 'extensions'.
52900         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52901         Reported by Ben Pfaff <blp@gnu.org>.
52902
52903 2007-10-06  Bruno Haible  <bruno@clisp.org>
52904
52905         * modules/freopen-tests: New file.
52906         * tests/test-freopen.c: New file.
52907
52908         * modules/fopen-tests: New file.
52909         * tests/test-fopen.c: New file.
52910
52911         * modules/fopen: New file.
52912         * lib/fopen.c: New file.
52913         * m4/fopen.m4: New file.
52914         * modules/freopen: New file.
52915         * lib/freopen.c: New file.
52916         * m4/freopen.m4: New file.
52917         * lib/stdio.in.h (fopen, freopen): New declarations.
52918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52919         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52920         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52921         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52922         * doc/functions/fopen.texi: Mention the 'fopen' module.
52923         * doc/functions/freopen.texi: Mention the 'freopen' module.
52924
52925 2007-10-06  Bruno Haible  <bruno@clisp.org>
52926
52927         * modules/open-tests: New file.
52928         * tests/test-open.c: New file.
52929
52930         * modules/open: New file.
52931         * lib/open.c: New file.
52932         * m4/open.m4: New file.
52933         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52934         lib/open.c does.
52935         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52936         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52937         macros.
52938         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52939         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52940         REPLACE_OPEN.
52941         * doc/functions/open.texi: Mention the 'open' module.
52942
52943 2007-10-04  Bruno Haible  <bruno@clisp.org>
52944
52945         * modules/ceill-tests: New file.
52946         * tests/test-ceill.c: New file.
52947
52948         * modules/ceill: New file.
52949         * lib/ceill.c: Replace entire file.
52950         * m4/ceill.m4: New file.
52951         * lib/math.in.h (ceill): Replace declaration.
52952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52953         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52954         * doc/functions/ceill.texi: Mention the 'ceill' module.
52955         * modules/mathl (Files): Remove lib/ceill.c.
52956         (Depends-on): Add ceill.
52957
52958 2007-10-04  Bruno Haible  <bruno@clisp.org>
52959
52960         * modules/ceilf-tests: New file.
52961         * tests/test-ceilf.c: New file.
52962
52963         * modules/ceilf: New file.
52964         * lib/ceil.c: New file.
52965         * lib/ceilf.c: New file.
52966         * m4/ceilf.m4: New file.
52967         * lib/math.in.h (ceilf): New declaration.
52968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52969         HAVE_DECL_CEILF.
52970         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52971         HAVE_DECL_CEILF.
52972         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52973
52974 2007-10-04  Bruno Haible  <bruno@clisp.org>
52975
52976         * modules/floorl-tests: New file.
52977         * tests/test-floorl.c: New file.
52978
52979         * modules/floorl: New file.
52980         * lib/floorl.c: Replace entire file.
52981         * m4/floorl.m4: New file.
52982         * lib/math.in.h (floorl): Replace declaration.
52983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52984         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52985         * doc/functions/floorl.texi: Mention the 'floorl' module.
52986         * modules/mathl (Files): Remove lib/floorl.c.
52987         (Depends-on): Add floorl.
52988
52989 2007-10-04  Bruno Haible  <bruno@clisp.org>
52990
52991         * modules/floorf-tests: New file.
52992         * tests/test-floorf.c: New file.
52993
52994         * modules/floorf: New file.
52995         * lib/floor.c: New file.
52996         * lib/floorf.c: New file.
52997         * m4/floorf.m4: New file.
52998         * lib/math.in.h (floorf): New declaration.
52999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53000         HAVE_DECL_FLOORF.
53001         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53002         HAVE_DECL_FLOORF.
53003         * doc/functions/floorf.texi: Mention the 'floorf' module.
53004
53005 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53006             Bruno Haible  <bruno@clisp.org>
53007
53008         Advertise for the Git server instead of the CVS server.
53009         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53010         repository instead of the CVS one.
53011         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53012         about all VCS systems generically.
53013         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53014
53015 2007-10-04  Bruno Haible  <bruno@clisp.org>
53016
53017         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53018         means.
53019         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53020
53021 2007-10-04  Bruno Haible  <bruno@clisp.org>
53022
53023         * modules/truncl-tests: New file.
53024         * tests/test-truncl.c: New file.
53025
53026         * modules/truncl: New file.
53027         * lib/truncl.c: New file.
53028         * m4/truncl.m4: New file.
53029         * lib/math.in.h (truncl): New declaration.
53030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53031         HAVE_DECL_TRUNCL.
53032         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53033         HAVE_DECL_TRUNCL.
53034         * doc/functions/truncl.texi: Mention the 'truncl' module.
53035
53036 2007-10-04  Bruno Haible  <bruno@clisp.org>
53037
53038         * modules/truncf-tests: New file.
53039         * tests/test-truncf.c: New file.
53040
53041         * modules/truncf: New file.
53042         * lib/trunc.c: Make paramerizable through USE_* macros.
53043         * lib/truncf.c: New file.
53044         * m4/truncf.m4: New file.
53045         * lib/math.in.h (truncf): New declaration.
53046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53047         HAVE_DECL_TRUNCF.
53048         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53049         HAVE_DECL_TRUNCF.
53050         * doc/functions/truncf.texi: Mention the 'truncf' module.
53051
53052 2007-10-03  Bruno Haible  <bruno@clisp.org>
53053
53054         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53055         augmentation also for tests modules.
53056         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53057         * modules/atexit-tests (Makefile.am): Likewise.
53058         * modules/binary-io-tests (Makefile.am): Likewise.
53059         * modules/c-strcase-tests (Makefile.am): Likewise.
53060         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53061         * modules/canonicalize-tests (Makefile.am): Likewise.
53062         * modules/closein-tests (Makefile.am): Likewise.
53063         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53064         * modules/freadahead-tests (Makefile.am): Likewise.
53065         * modules/fseek-tests (Makefile.am): Likewise.
53066         * modules/fseeko-tests (Makefile.am): Likewise.
53067         * modules/ftell-tests (Makefile.am): Likewise.
53068         * modules/ftello-tests (Makefile.am): Likewise.
53069         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53070         * modules/isnanl-tests (Makefile.am): Likewise.
53071         * modules/lseek-tests (Makefile.am): Likewise.
53072         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53073         * modules/mbscasestr-tests (Makefile.am): Likewise.
53074         * modules/mbschr-tests (Makefile.am): Likewise.
53075         * modules/mbscspn-tests (Makefile.am): Likewise.
53076         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53077         * modules/mbspbrk-tests (Makefile.am): Likewise.
53078         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53079         * modules/mbsrchr-tests (Makefile.am): Likewise.
53080         * modules/mbsspn-tests (Makefile.am): Likewise.
53081         * modules/mbsstr-tests (Makefile.am): Likewise.
53082         * modules/printf-posix-tests (Makefile.am): Likewise.
53083         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53084         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53085         * modules/tsearch-tests (Makefile.am): Likewise.
53086         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53087         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53088         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53089         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53090         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53091         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53092         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53093         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53094         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53095         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53096         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53097         * modules/xstrtol-tests (Makefile.am): Likewise.
53098         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53099         * modules/yesno-tests (Makefile.am): Likewise.
53100
53101 2007-10-03  Bruno Haible  <bruno@clisp.org>
53102
53103         * modules/trunc-tests: New file.
53104         * tests/test-trunc.c: New file.
53105
53106         * modules/trunc: New file.
53107         * lib/trunc.c: New file.
53108         * m4/trunc.m4: New file.
53109         * lib/math.in.h (trunc): New declaration.
53110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53111         HAVE_DECL_TRUNC.
53112         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53113         HAVE_DECL_TRUNC.
53114         * doc/functions/trunc.texi: Mention the 'trunc' module.
53115
53116 2007-10-03  Bruno Haible  <bruno@clisp.org>
53117
53118         * tests/test-fpending.c: New file, mostly copied
53119         from coreutils/lib/t-fpending.c.
53120         * modules/fpending-tests: New file.
53121
53122 2007-10-03  Bruno Haible  <bruno@clisp.org>
53123
53124         Port the stdio extensions to QNX (untested).
53125         * lib/fseterr.c (fseterr): Add support for QNX.
53126         * lib/fbufmode.c (fbufmode): Likewise.
53127         * lib/freadable.c (freadable): Likewise.
53128         * lib/fwritable.c (fwritable): Likewise.
53129         * lib/freading.c (freading): Likewise.
53130         * lib/fwriting.c (fwriting): Likewise.
53131         * lib/freadahead.c (freadahed): Likewise.
53132         * lib/fpurge.c (fpurge): Likewise.
53133         * lib/fseeko.c (rpl_fseeko): Likewise.
53134
53135 2007-10-03  Bruno Haible  <bruno@clisp.org>
53136             Jim Meyering  <jim@meyering.net>
53137             Eric Blake  <ebb9@byu.net>
53138
53139         * doc/relocatable.texi: Use @command instead of @program.
53140
53141 2007-10-02  Jim Meyering  <jim@meyering.net>
53142
53143         Perform one more "_.h" -> ".in.h" substitution.
53144         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53145         instead of unistd_.h here, too.
53146
53147 2007-10-01  Bruno Haible  <bruno@clisp.org>
53148
53149         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53150         Needed for the alloca-opt module.
53151
53152 2007-09-30  Bruno Haible  <bruno@clisp.org>
53153
53154         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53155         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53156         alloca_.h.
53157         * lib/argz.in.h: Renamed from lib/argz_.h.
53158         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53159         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53160         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53161         byteswap_.h.
53162         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53163         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53164         dirent_.h.
53165         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53166         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53167         fcntl_.h.
53168         * lib/float.in.h: Renamed from lib/float_.h.
53169         * modules/float (Files, Makefile.am): Use float.in.h instead of
53170         float_.h.
53171         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53172         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53173         fnmatch_.h.
53174         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53175         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53176         getopt_.h.
53177         * lib/glob.in.h: Renamed from lib/glob_.h.
53178         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53179         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53180         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53181         iconv_.h.
53182         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53183         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53184         inttypes_.h.
53185         * lib/locale.in.h: Renamed from lib/locale_.h.
53186         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53187         locale_.h.
53188         * lib/math.in.h: Renamed from lib/math_.h.
53189         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53190         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53191         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53192         of netinet_in_.h. Add dependency.
53193         * lib/poll.in.h: Renamed from lib/poll_.h.
53194         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53195         * lib/search.in.h: Renamed from lib/search_.h.
53196         * modules/search (Files, Makefile.am): Use search.in.h instead of
53197         search_.h.
53198         * lib/signal.in.h: Renamed from lib/signal_.h.
53199         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53200         _signal.h.
53201         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53202         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53203         stdbool_.h.
53204         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53205         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53206         stdint_.h.
53207         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53208         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53209         stdio_.h.
53210         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53211         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53212         stdlib_.h.
53213         * lib/string.in.h: Renamed from lib/string_.h.
53214         * modules/string (Files, Makefile.am): Use string.in.h instead of
53215         string_.h.
53216         * doc/gnulib-tool.texi (Initial import): Update.
53217         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53218         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53219         of sys_select_.h. Add dependency.
53220         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53221         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53222         of sys_socket_.h.
53223         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53224         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53225         sys_stat_.h.
53226         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53227         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53228         sys_time_.h.
53229         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53230         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53231         sysexits_.h.
53232         * lib/time.in.h: Renamed from lib/time_.h.
53233         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53234         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53235         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53236         unistd_.h.
53237         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53238         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53239         wchar_.h.
53240         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53241         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53242         wctype_.h.
53243         * build-aux/bootstrap (slurp): Update.
53244         * lib/.cppi-disable: Update.
53245
53246 2007-09-30  Bruno Haible  <bruno@clisp.org>
53247
53248         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53249         Needed on BeOS.
53250
53251 2007-09-30  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53254
53255 2007-09-29  Bruno Haible  <bruno@clisp.org>
53256
53257         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53258
53259 2007-09-29  Bruno Haible  <bruno@clisp.org>
53260
53261         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53262         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53263         * build-aux/install-reloc: Compile also areadlink.c.
53264         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53265
53266 2007-09-29  Bruno Haible  <bruno@clisp.org>
53267
53268         * gnulib-tool (func_emit_initmacro_done): Indentation.
53269
53270 2007-09-29  Bruno Haible  <bruno@clisp.org>
53271
53272         * README: Add CVS checkout update instructions.
53273         Info from Bob Proulx <bob@proulx.com>.
53274
53275 2007-09-28  Eric Blake  <ebb9@byu.net>
53276
53277         Provide move-if-change.
53278         * build-aux/move-if-change: New file, based on best practice
53279         rather than any canonical upstream location.
53280
53281 2007-09-28  Jim Meyering  <jim@meyering.net>
53282
53283         Fix canonicalize loop-detection corner case.
53284         Do not attempt to stat the symlink values stored via seen_triple.
53285         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53286         on linux-2.6.18, (but not 2.6.22).
53287         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53288         triple_compare.  The former compares dev,ino,filename, while the latter
53289         would actually stat dirname(filename) when dev and ino were equal.
53290         * lib/hash-triple.c: Install <string.h>.
53291         (STREQ): Define.
53292         (triple_compare_ino_str): New function.
53293         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53294
53295 2007-09-28  Eric Blake  <ebb9@byu.net>
53296
53297         Enforce that AC_REPLACE_FUNCS files exist.
53298         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53299         override check for typos.
53300
53301         Fix test-closein on Solaris 10.
53302         * tests/test-closein.c (main): Don't assume stdin can be inherited
53303         closed on all systems.
53304         * tests/test-closein.sh: Likewise.
53305         Reported by Piotr Tarnowski.
53306
53307 2007-09-28  Jim Meyering  <jim@meyering.net>
53308
53309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53310
53311 2007-09-27  Jim Meyering  <jim@meyering.net>
53312
53313         canonicalize: Avoid a false-positive cycle failure.
53314         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53315         Sort.  Remove cycle-check.
53316         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53317         not cycle-check.h.
53318         (seen_triple): New function.
53319         (canonicalize_filename_mode): Use it instead of cycle-check.
53320         * tests/test-canonicalize.c: Add a test for this bug.
53321         * tests/test-canonicalize.sh: Set up and run the test.
53322
53323         New module, file-set, from coreutils.
53324         * modules/file-set: Define it.
53325         * lib/file-set.c, lib/file-set.h: Implement.
53326
53327         New module, hash-triple, from coreutils.
53328         * modules/hash-triple: Define it.
53329         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53330
53331 2007-09-25  Eric Blake  <ebb9@byu.net>
53332
53333         Fix strerror on Interix.
53334         * lib/string_.h (strerror): Declare replacement.
53335         * doc/functions/strerror.texi (strerror): Document the Interix
53336         shortcoming.
53337         * modules/string (Makefile.am): Support new hooks.
53338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53339         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53340         gl_FUNC_STRERROR_SEPARATE.
53341         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53342         * lib/strerror.c (rpl_strerror): Provide replacement.
53343         * modules/strerror (Depends-on): Add string.
53344         (configure.ac): Detect use of module.
53345         * tests/test-strerror.c: New file.
53346         * modules/strerror-tests: New test module.
53347         * modules/argp (Depends-on): Add strerror.
53348         * modules/error (Depends-on): Likewise.
53349         Reported by Martin Koeppe.
53350
53351 2007-09-24  Bruno Haible  <bruno@clisp.org>
53352
53353         * README: Update git instructions.
53354
53355 2007-09-24  Eric Blake  <ebb9@byu.net>
53356
53357         Revert fpending breakage from 2007-09-08.
53358         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53359         __fpending.c.
53360
53361 2007-09-24  Jim Meyering  <jim@meyering.net>
53362
53363         filenamecat.c: Add a test.
53364         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53365         showing how the function works when DIR is the empty string.
53366
53367 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53368
53369         * tests/test-canonicalize.sh: Turn on executable bit.
53370
53371 2007-09-19  Eric Blake  <ebb9@byu.net>
53372
53373         * README: Update CVS instructions.
53374
53375 2007-09-18  Bruno Haible  <bruno@clisp.org>
53376
53377         * modules/areadlink: New file.
53378         * lib/areadlink.h (areadlink): New declaration.
53379         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53380
53381 2007-09-17  Jim Meyering  <jim@meyering.net>
53382
53383         * lib/savewd.c (ESTALE) [!defined]: Define.
53384         Reported to be required on Interix by Martin Koeppe.
53385
53386 2007-09-17  Bruno Haible  <bruno@clisp.org>
53387
53388         * gnulib-tool (func_version): Use $version.
53389
53390 2007-09-16  Bruno Haible  <bruno@clisp.org>
53391
53392         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53393         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53394         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53395         Reported by Greg Schafer <gschafer@zip.com.au>.
53396
53397 2007-09-15  Bruno Haible  <bruno@clisp.org>
53398
53399         * gnulib-tool (sed): Try a little harder to make bash understand the
53400         alias.
53401         Reported by Bruce Korb <bruce.korb@gmail.com>.
53402
53403 2007-09-13  Eric Blake  <ebb9@byu.net>
53404
53405         * ChangeLog: Remove conflict markers.
53406
53407 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53408
53409         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53410         Reported by Bruno Haible <bruno@clisp.org>.
53411
53412 2007-09-12  Bruno Haible  <bruno@clisp.org>
53413
53414         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53415         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53416         is not defined.
53417
53418 2007-09-12  Eric Blake  <ebb9@byu.net>
53419
53420         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53421         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53422         Autoconf definition.
53423         * modules/euidaccess (Depends-on): Add extensions, for
53424         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53425         * modules/fnmatch (Depends-on): Likewise.
53426         * modules/getaddrinfo (Depends-on): Likewise.
53427         * modules/getdelim (Depends-on): Likewise.
53428         * modules/getline (Depends-on): Likewise.
53429         * modules/getsubopt (Depends-on): Likewise.
53430         * modules/gettext (Depends-on): Likewise.
53431         * modules/group-member (Depends-on): Likewise.
53432         * modules/mbchar (Depends-on): Likewise.
53433         * modules/memmem (Depends-on): Likewise.
53434         * modules/mempcpy (Depends-on): Likewise.
53435         * modules/memrchr (Depends-on): Likewise.
53436         * modules/pagealign_alloc (Depends-on): Likewise.
53437         * modules/readutmp (Depends-on): Likewise.
53438         * modules/stpcpy (Depends-on): Likewise.
53439         * modules/stpncpy (Depends-on): Likewise.
53440         * modules/strchrnul (Depends-on): Likewise.
53441         * modules/strndup (Depends-on): Likewise.
53442         * modules/strsep (Depends-on): Likewise.
53443         * modules/strverscmp (Depends-on): Likewise.
53444         * modules/vasprintf (Depends-on): Likewise.
53445         * modules/wcwidth (Depends-on): Likewise.
53446         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53447         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53448         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53450         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53451         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53452         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53453         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53454         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53455         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53456         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53457         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53458         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53459         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53460         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53461         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53462         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53463         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53465         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53466         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53467         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53468         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53469         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53470         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53472         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53473         so that lock.m4 can be used in gettext without extensions module.
53474
53475 2007-09-11  Bruno Haible  <bruno@clisp.org>
53476
53477         * m4/isc-posix.m4: Remove file.
53478         Suggested by Eric Blake.
53479
53480 2007-09-11  Eric Blake  <ebb9@byu.net>
53481
53482         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53483
53484 2007-09-10  Bruno Haible  <bruno@clisp.org>
53485
53486         * posix-modules: Fix typo in error message.
53487         Reported by Matt <mkraai@beckman.com>.
53488
53489 2007-09-09  Bruno Haible  <bruno@clisp.org>
53490
53491         * doc/functions/getdelim.texi: Update list of platforms lacking the
53492         function.
53493         * doc/functions/getline.texi: Likewise.
53494
53495 2007-09-09  Jim Meyering  <jim@meyering.net>
53496
53497         * lib/hash.c (hash_initialize): Detect calloc failure.
53498         Reported by Bruno Haible.
53499
53500 2007-09-09  Bruno Haible  <bruno@clisp.org>
53501
53502         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53503         malloc or realloc fails.
53504
53505 2007-09-09  Bruno Haible  <bruno@clisp.org>
53506
53507         * modules/getcwd (Depends-on): Add malloc-posix.
53508         * modules/glob (Depends-on): Likewise.
53509         * modules/putenv (Depends-on): Likewise.
53510         * modules/strdup (Depends-on): Likewise.
53511         * modules/getdelim (Depends-on): Add realloc-posix.
53512         * modules/read-file (Depends-on): Likewise.
53513
53514 2007-09-09  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53517         (gl_FUNC_MALLOC_POSIX): Require it.
53518         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53519         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53520         * modules/realloc (Files): Add m4/malloc.m4.
53521         * modules/calloc (Files): Likewise.
53522
53523 2007-09-09  Bruno Haible  <bruno@clisp.org>
53524
53525         * modules/malloc-posix: New file.
53526         * modules/malloc (Depends-on): Add malloc-posix.
53527         * lib/malloc.c: Include errno.h.
53528         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53529         and a POSIX-compatible malloc into a single function. Set ENOMEM
53530         when returning NULL.
53531         * m4/malloc.m4: New file.
53532         * doc/functions/malloc.texi: Mention the malloc-posix module.
53533         * lib/stdlib_.h (malloc): New declaration.
53534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53535         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53536         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53537         and HAVE_MALLOC_POSIX.
53538
53539 2007-09-09  Bruno Haible  <bruno@clisp.org>
53540
53541         * modules/realloc-posix: New file.
53542         * modules/realloc (Depends-on): Add realloc-posix.
53543         * lib/realloc.c: Include errno.h.
53544         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53545         and a POSIX-compatible realloc into a single function. Set ENOMEM
53546         when returning NULL.
53547         * m4/realloc.m4: New file.
53548         * doc/functions/realloc.texi: Mention the realloc-posix module.
53549         * lib/stdlib_.h (realloc): New declaration.
53550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53551         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53552         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53553         and HAVE_REALLOC_POSIX.
53554
53555 2007-09-09  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/calloc-posix: New file.
53558         * modules/calloc (Depends-on): Add calloc-posix.
53559         * lib/calloc.c: Include errno.h.
53560         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53561         and a POSIX-compatible calloc into a single function. Set ENOMEM
53562         when returning NULL.
53563         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53564         * doc/functions/calloc.texi: Mention the calloc-posix module.
53565         * lib/stdlib_.h (calloc): New declaration.
53566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53567         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53568         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53569         and HAVE_CALLOC_POSIX.
53570
53571 2007-09-09  Bruno Haible  <bruno@clisp.org>
53572
53573         Allow for modules to show an arbitrary notice.
53574         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53575         * gnulib-tool: New option --extract-notice.
53576         (func_usage): Document it.
53577         (sed_extract_prog): Update.
53578         (func_get_notice): New function.
53579         (func_modules_notice): New function.
53580         (func_import, func_create_testdir): Invoke it.
53581         Suggested by Jim Meyering.
53582
53583 2007-09-09  Bruno Haible  <bruno@clisp.org>
53584
53585         * gnulib-tool: New options --verbose, --quiet.
53586         (func_usage): Document them.
53587         (verbose): New variable.
53588         (func_execute_command): New function.
53589         (func_import): Don't show the module list and the file list if
53590         $verbose < 0.
53591         (func_create_testdir): Likewise. Use func_execute_command.
53592         (func_create_megatestdir): Use func_execute_command.
53593
53594 2007-09-08  Bruno Haible  <bruno@clisp.org>
53595
53596         * gnulib-tool (func_import): Prefer rsync over wget when available,
53597         for fetching the PO files.
53598
53599 2007-09-08  Bruno Haible  <bruno@clisp.org>
53600
53601         * posix-modules: New file. Portions copied from gnulib-tool.
53602         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53603
53604 2007-09-08  Jim Meyering  <jim@meyering.net>
53605
53606         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53607         * lib/fpending.h: Rename from __fpending.h.
53608         * lib/fpending.c: Rename from __fpending.c.
53609         Include "fpending.h", not "__fpending.h".
53610         * lib/__fpending.h, lib/__fpending.c: Remove files.
53611         * modules/fpending (Files): Reflect new file names.
53612         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53613
53614 2007-09-08  Bruno Haible  <bruno@clisp.org>
53615
53616         * m4/inttypes-h.m4: Remove stub file.
53617
53618 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53619
53620         * doc/headers/stdint.texi: Discuss #include_next issue.
53621
53622 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53625
53626 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53627
53628         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53629         in variable name.
53630
53631 2007-09-03  Jim Meyering  <jim@meyering.net>
53632
53633         New module: git-version-gen.
53634         * modules/git-version-gen: New file.
53635
53636         Import changes from coreutils for bootstrap script.
53637
53638         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53639
53640         bootstrap: uses rsync to download the .po files
53641         * build-aux/bootstrap (po_download_command_format): New global.
53642         (download_po_files): Use rsync.
53643         (update_po_files): Don't remove .po files after download,
53644         so future rsync runs can take advantage of the copies.
53645
53646         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53647
53648         Solve the unnecessary-.po-file-regeneration problem once and for all.
53649         * build-aux/bootstrap (download_po_files): New function, renamed from
53650         get_translations.  Now, downloads, but doesn't update LINGUAS.
53651         (update_po_files): New function.
53652
53653         bootstrap: Ignore more.
53654         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53655         uniwidth to e.g., lib/.gitignore.
53656         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53657
53658         * build-aux/bootstrap: New setting: vc_ignore.
53659         (insert_sorted_if_absent): Create $file if absent.
53660         Adapt to new, possibly empty, list: $vc_ignore.
53661
53662         bootstrap: generate more ignorable names
53663         * build-aux/bootstrap (slurp): When generating ignorable names,
53664         also map .sin to .sed, .gperf to .c, and .y to .c.
53665
53666 2007-09-03  Jim Meyering  <jim@meyering.net>
53667
53668         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53669         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53670
53671 2007-09-02  Bruno Haible  <bruno@clisp.org>
53672
53673         Fix mis-recognition of 'mcs' on QNX 6.
53674         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53675         output contains the string "Mono".
53676         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53677         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53678
53679 2007-09-01  Bruno Haible  <bruno@clisp.org>
53680
53681         Fix collision between uniwidth/* and linebreak modules.
53682         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53683         u32_width): Remove declarations.
53684         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53685         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53686         streq3, streq2, streq1, streq0): Remove functions.
53687         (STREQ): Remove macro.
53688         (is_cjk_encoding): Remove function.
53689         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53690         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53691         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53692         * NEWS: Document the change.
53693
53694 2007-09-01  Bruno Haible  <bruno@clisp.org>
53695
53696         * lib/streq.h: Add double-inclusion guard.
53697
53698 2007-09-01  Karl Berry  <karl@gnu.org>
53699
53700         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53701
53702 2007-08-28  Jim Meyering  <jim@meyering.net>
53703
53704         Rename mreadlink_with_size to areadlink_with_size.
53705         * NEWS: Document the change.
53706         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53707         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53708         * lib/mreadlink.h: Rename this to...
53709         * lib/areadlink.h: ...this.
53710         * modules/mreadlink-with-size: Rename this to...
53711         * modules/areadlink-with-size: ...this.
53712         * lib/canonicalize.c: Reflect the renaming.
53713         * modules/canonicalize: Likewise.
53714
53715 2007-08-26  Bruno Haible  <bruno@clisp.org>
53716
53717         * gnulib-tool (func_import): When deciding which files to remove,
53718         consider also dangling symbolic links.
53719         Reported by Eric Blake.
53720
53721 2007-08-26  Bruno Haible  <bruno@clisp.org>
53722
53723         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53724
53725 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53726
53727         * lib/readline.c: Don't include getline.h, the prototype is now
53728         found in stdio.h.
53729
53730 2007-08-23  Jim Meyering  <jim@meyering.net>
53731
53732         Getdelim touchup.
53733         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53734         around the funlockfile call, since funlockfile never sets errno.
53735         Don't set errno upon failed realloc.
53736
53737 2007-08-22  Eric Blake  <ebb9@byu.net>
53738
53739         Getline touchups.
53740         * lib/getdelim.c (getdelim): Revert regression that required *n to
53741         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53742         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53743         getdelim, rather than whether implementation is missing.
53744         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53745         * lib/stdio_.h (getline): Also declare if replacement is
53746         required.
53747         * doc/functions/getdelim.texi: New file.
53748         * doc/functions/getline.texi: Likewise.
53749         * doc/gnulib.texi (Function Substitutes): Add new files.
53750         Reported by Bruno Haible.
53751
53752 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53753
53754         * users.txt: Add Guile.
53755
53756 2007-08-22  Eric Blake  <ebb9@byu.net>
53757
53758         * tests/test-getdelim.c (main): Use remove, not unlink.
53759         * tests/test-getline.c (main): Likewise.
53760
53761         Move getline and getdelim into stdio.h, per POSIX 200x.
53762         * modules/getline (Files): Remove getline.h.
53763         (Depends-on): Add stdio.
53764         (configure.ac): Add module indicator.
53765         * modules/getdelim (Files): Remove getdelim.h.
53766         (Depends-on): Add stdio.
53767         (configure.ac): Add module indicator.
53768         * modules/stdio (Makefile.am): Work with new indicators.
53769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53770         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53771         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53772         * lib/getdelim.h: Delete.
53773         * lib/getline.h: Delete.
53774         * lib/stdio_.h (getdelim, getline): Declare.
53775         * modules/getdelim-tests: New module.
53776         * modules/getline-tests: Likewise.
53777         * tests/test-getdelim.c: New file.
53778         * tests/test-getline.c: Likewise.
53779         * NEWS: Document the change.
53780         * lib/getline.c: Update choice of header.
53781         * lib/csharpcomp.c: Likewise.
53782         * lib/getpass.c: Likewise.
53783         * lib/javacomp.c: Likewise.
53784         * lib/javaversion.c: Likewise.
53785         * lib/yesno.c: Likewise.
53786         * lib/getdelim.c: Likewise.
53787         (getdelim): Set errno on failure, and avoid memory leak.
53788
53789 2007-08-19  Bruno Haible  <bruno@clisp.org>
53790
53791         * modules/closein (Depends-on): Add freadahead.
53792         * lib/closein.c: Include freadahead.h.
53793         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53794         is zero.
53795
53796 2007-08-19  Bruno Haible  <bruno@clisp.org>
53797
53798         * modules/freadahead-tests: New file.
53799         * tests/test-freadahead.sh: New file.
53800         * tests/test-freadahead.c: New file.
53801
53802         * modules/freadahead: New file.
53803         * lib/freadahead.h: New file.
53804         * lib/freadahead.c: New file.
53805         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53806         fbufmode, fpurge, freadable, fwritable.
53807
53808 2007-08-19  Eric Blake  <ebb9@byu.net>
53809
53810         Test yesno in combination with closein.
53811         * lib/yesno.c (yesno): Document use of stdin.
53812         * modules/yesno-tests (Files): New module.
53813         * tests/test-yesno.c (main): New file.
53814         * tests/test-yesno.sh: Likewise.
53815
53816 2007-08-19  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53819         * lib/fseeko.c (rpl_fseeko): Likewise.
53820         * lib/fseterr.c (fseterr): Likewise.
53821
53822 2007-08-19  Bruno Haible  <bruno@clisp.org>
53823
53824         * tests/test-lseek.c (main): Disable a test for BeOS.
53825         * doc/functions/lseek.texi: Document the BeOS bug.
53826
53827 2007-08-19  Bruno Haible  <bruno@clisp.org>
53828             Eric Blake  <ebb9@byu.net>
53829
53830         * lib/lseek.c: Include <sys/stat.h>.
53831         (rpl_lseek): Add workaround code also for Unix platforms.
53832         Needed for BeOS.
53833         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53834         * doc/functions/lseek.texi: Document BeOS definiency.
53835
53836 2007-08-18  Bruno Haible  <bruno@clisp.org>
53837
53838         * modules/fstrcmp-tests: New file.
53839         * tests/test-fstrcmp.c: New file.
53840
53841 2007-08-18  Bruno Haible  <bruno@clisp.org>
53842
53843         * modules/fstrcmp: New file, from GNU gettext with modifications.
53844         * lib/fstrcmp.h: New file, from GNU gettext.
53845         * lib/fstrcmp.c: New file, from GNU gettext.
53846         * MODULES.html.sh (String handling): Add fstrcmp.
53847
53848 2007-08-18  Bruno Haible  <bruno@clisp.org>
53849
53850         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53851         'bool'.
53852         (diag, compareseq): Remove const from the ctxt argument.
53853         (USE_HEURISTIC): Undefine at the end.
53854
53855 2007-08-18  Jim Meyering  <jim@meyering.net>
53856
53857         New file: lib/idcache.h
53858         * NEWS: Mention the addition.
53859         * modules/idcache (Files): Add lib/idcache.h
53860         * lib/idcache.c: Include "idcache.h".
53861         Don't include <sys/types.h>.
53862         Add a FIXME comment.
53863         Move file-scoped "static" declarations to the top.
53864         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53865
53866 2007-08-17  Bruno Haible  <bruno@clisp.org>
53867         and Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * MODULES.html.sh: Add diffseq.
53870         * modules/diffseq: New file.
53871         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53872         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53873
53874 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53875
53876         Import changes from coreutils for bootstrap script.
53877
53878         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53879
53880         * build-aux/bootstrap (slurp): Work even in environments where
53881         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53882         current code does not slurp files whose names start with ".", and
53883         this looks like it might be a troublesome area.
53884
53885         2007-07-11  Jim Meyering  <jim@meyering.net>
53886
53887         If there's a GPL vN copyright comment, require that N == 3.
53888
53889         2007-07-08  Jim Meyering  <jim@meyering.net>
53890
53891         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53892         * build-aux/bootstrap (mam_template): Move definition out of loop.
53893
53894         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53895
53896         * build-aux/bootstrap (symlink_to_dir): Rename function from
53897         symlink_to_gnulib.  Add a directory parameter.  Update all
53898         callers.
53899         (cp_mark_as_generated): Also check for -- and link to -- files in
53900         gl/.
53901
53902         2007-07-08  Jim Meyering  <jim@meyering.net>
53903
53904         Adapt to deeper hierarchy in gnulib.
53905         * build-aux/bootstrap (symlink_to_dir): If the destination
53906         directory doesn't exist, create it. This is required at least for
53907         "lib/uniwidth/cjk.h".
53908
53909         2007-05-15  Jim Meyering  <jim@meyering.net>
53910
53911         * build-aux/bootstrap: Now that generated Makefile.am files
53912         are no longer under version control, they must be created at
53913         bootstrap time.
53914
53915 2007-08-14  Ben Pfaff  <blp@gnu.org>
53916
53917         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53918
53919 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53920
53921         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53922         given the changes below.
53923         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53924         even on hosts that have padding bits beyond the supported 64.
53925
53926 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53927
53928         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53929         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53930         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53931         depends on it.
53932         (xstrtol_error): Remove.
53933         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53934         but with a different signature.
53935         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53936         * lib/xstrtol-error.c: Include exitfail.h.
53937         (xstrtol_fatal): New function, with a different signature from the
53938         old xstrtol_error, so that the caller need not worry about passing
53939         in an exit status, or about storage management of the option argument.
53940         (xstrtol_error): Now a static function.  Redo signature to
53941         implement xstrtol_fatal.  Output the correct number of hyphens in
53942         front of the option so that the caller need not worry about
53943         storage management.
53944         (N_): New macro.
53945         (_): Remove; not used now.
53946         * modules/xstrtol: Depend on getopt.
53947         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53948         of old STRTOL_FATAL_ERROR macro.
53949         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53950         of test program.
53951         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53952         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53953
53954 2007-08-08  Eric Blake  <ebb9@byu.net>
53955
53956         * lib/xstrtol-error.c: Add missing include.
53957
53958         Move xstrtol messages into gnulib domain, when --pobase is used.
53959         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53960         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53961         * modules/xstrtol (Files): Distribute new file.
53962         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53963         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53964         * tests/test-xstrtol.c: ...into new file.
53965         * tests/test-xstrtoul.c: Also test xstrtoul.
53966         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53967         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53968         * tests/test-xstrtol.sh: Drive the tests.
53969         * tests/test-xstrtoimax.sh: Likewise.
53970         * tests/test-xstrtoumax.sh: Likewise.
53971         * modules/xstrtol-tests: New module.
53972         * modules/xstrtoimax-tests: Likewise.
53973         * modules/xstrtoumax-tests: Likewise.
53974
53975 2007-08-08  Jim Meyering  <jim@meyering.net>
53976
53977         New function: mfile_name_concat.
53978         * lib/filenamecat.c (mfile_name_concat): New function, just like
53979         file_name_concat, but return NULL upon failure rather than exiting
53980         with a diagnostic.
53981         * lib/filenamecat.h: Declare it.
53982
53983 2007-08-07  Bruno Haible  <bruno@clisp.org>
53984
53985         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53986         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53987         warning from gcc.
53988         Reported by Eric Blake.
53989
53990 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53991
53992         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53993         * modules/crypto/arcfour (License): Likewise.
53994         * modules/crypto/des-tests (License): Likewise.
53995         * modules/crypto/gc-arctwo-tests (License): Likewise.
53996         * modules/crypto/gc-des-tests (License): Likewise.
53997         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53998         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53999         * modules/crypto/gc-md2-tests (License): Likewise.
54000         * modules/crypto/gc-md4-tests (License): Likewise.
54001         * modules/crypto/gc-md5-tests (License): Likewise.
54002         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54003         * modules/crypto/gc-rijndael-tests (License): Likewise.
54004         * modules/crypto/gc-sha1-tests (License): Likewise.
54005         * modules/crypto/gc-tests (License): Likewise.
54006         * modules/crypto/hmac-md5 (License): Likewise.
54007         * modules/crypto/hmac-sha1 (License): Likewise.
54008         * modules/crypto/md2-tests (License): Likewise.
54009         * modules/crypto/md4-tests (License): Likewise.
54010         * modules/crypto/md5 (License): Likewise.
54011         * modules/crypto/rijndael (License): Likewise.
54012         * modules/crypto/sha1 (License): Likewise.
54013         * modules/memxor (License): Likewise.
54014
54015 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54016         and Bruno Haible  <bruno@clisp.org>
54017
54018         * NEWS: Describe interface changes to human, xstrtol.
54019         * lib/human.h: Include <xstrtol.h>.
54020         (human_options): Return enum strtol_error, not int.  Remove
54021         bool arg; take int * instead.
54022         * lib/human.c: Don't include "gettext.h".
54023         (_): Remove; no longer used.
54024         Don't include <xstrtol.h>, since human.h does it.
54025         (human_options): Adjust to abovementioned interface changes.
54026         Do not report error to stderr; that's now the caller's
54027         responsibility.
54028         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54029         interface change.
54030         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54031         Str, Argument_type_string.  All uses changed.  Put " argument"
54032         in diagnostics to make them clearer.  Change wording of suffix
54033         message for clarity.
54034         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54035         Argument_type_string.
54036         (STRTOL_FATAL_WARN): Remove; no longer used.
54037         * modules/human (Depends-on): Remove gettext-h.
54038
54039 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54040
54041         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54042
54043 2007-07-31  Bruno Haible  <bruno@clisp.org>
54044
54045         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54046         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54047         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54048
54049 2007-07-31  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54052         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54053
54054 2007-07-30  Bruno Haible  <bruno@clisp.org>
54055
54056         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54057         * modules/c-ctype (License): Likewise.
54058         * modules/c-strcase (License): Likewise.
54059         * modules/check-version (License): Likewise.
54060         * modules/iconv (License): Likewise.
54061         * modules/iconv_open (License): Likewise.
54062         * modules/read-file (License): Likewise.
54063         * modules/striconv (License): Likewise.
54064         * modules/strverscmp (License): Likewise.
54065         * modules/vasprintf (License): Likewise.
54066         * modules/crypto/des (License): Likewise.
54067         * modules/crypto/gc (License): Likewise.
54068         * modules/crypto/gc-arcfour (License): Likewise.
54069         * modules/crypto/gc-arctwo (License): Likewise.
54070         * modules/crypto/gc-des (License): Likewise.
54071         * modules/crypto/gc-hmac-md5 (License): Likewise.
54072         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54073         * modules/crypto/gc-md2 (License): Likewise.
54074         * modules/crypto/gc-md4 (License): Likewise.
54075         * modules/crypto/gc-md5 (License): Likewise.
54076         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54077         * modules/crypto/gc-random (License): Likewise.
54078         * modules/crypto/gc-rijndael (License): Likewise.
54079         * modules/crypto/gc-sha1 (License): Likewise.
54080         * modules/crypto/md2 (License): Likewise.
54081         * modules/crypto/md4 (License): Likewise.
54082
54083 2007-07-30  Jim Meyering  <jim@meyering.net>
54084
54085         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54086         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54087         it has valid stat data.  This bug would cause du not to count the
54088         sizes of inaccessible directories.
54089         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54090         in <http://bugzilla.redhat.com/250077>.
54091
54092 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54093             Bruno Haible  <bruno@clisp.org>
54094
54095         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54096         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54097         #include_next, gives a diagnostic about it, but reports no error in
54098         the exit code.
54099         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54100
54101 2007-07-24  Ben Pfaff  <blp@gnu.org>
54102
54103         Improve name: "count-one-bits" is better than "popcount".
54104         * MODULES.html.sh: Update name.
54105         * lib/popcount.h: Renamed lib/count-one-bits.h.
54106         (popcount): Renamed count_one_bits.
54107         (popcountl): Renamed count_one_bits_l.
54108         (popcountll): Renamed count_one_bits_ll.
54109         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54110         * modules/popcount: Renamed module/count-one-bits.
54111         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54112         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54113
54114 2007-07-23  Ben Pfaff  <blp@gnu.org>
54115
54116         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54117         better code generation, and add U to large constants to avoid
54118         warnings, in non-GCC case.
54119         Suggested by Bruno Haible.
54120
54121 2007-07-23  Ben Pfaff  <blp@gnu.org>
54122
54123         * lib/popcount.h: Use verify_true instead of if...abort.
54124         * modules/popcount: Depend on verify module.
54125         Suggested by Jim Meyering.
54126
54127 2007-07-23  Bruno Haible  <bruno@clisp.org>
54128
54129         * gnulib-tool (func_import): Create a .cvsignore file also when the
54130         directory is not yet in CVS but the toplevel directory is. When
54131         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54132         Reported by Karl Berry.
54133
54134 2007-07-22  Ben Pfaff  <blp@gnu.org>
54135
54136         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54137         case.
54138         Suggested by Eric Blake.
54139
54140 2007-07-22  Ben Pfaff  <blp@gnu.org>
54141
54142         New module: popcount.
54143         * MODULES.html.sh: Add popcount.
54144         * modules/popcount: New file.
54145         * modules/popcount-tests: New file.
54146         * tests/test-popcount.c: New file.
54147         * lib/popcount.h: New file.
54148         * m4/popcount.m4: New file.
54149
54150 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54151
54152         * build-aux/announce-gen: Update to GPLv3.
54153
54154         * build-aux/config.guess: Update from config.
54155
54156 2007-07-21  Bruno Haible  <bruno@clisp.org>
54157
54158         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54159         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54160
54161 2007-07-20  Jim Meyering  <jim@meyering.net>
54162
54163         * check-module: Diagnose a self-dependency.
54164
54165 2007-07-19  Bruno Haible  <bruno@clisp.org>
54166
54167         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54168         empty.
54169         Reported by Eric Blake.
54170
54171 2007-07-18  Bruno Haible  <bruno@clisp.org>
54172
54173         * gnulib-tool: New options --po-base, --po-domain.
54174         (func_usage): Document them.
54175         (pobase, po_domain): New variables.
54176         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54177         DEFAULT_TEXT_DOMAIN.
54178         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54179         (func_import): Consider pobase and po_domain. Create a po/ directory.
54180         (func_create_testdir): Set pobase and po_domain to empty.
54181         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54182         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54183
54184 2007-07-18  Bruno Haible  <bruno@clisp.org>
54185
54186         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54187         EXTRA_DIST augmentation for files in build-aux/.
54188
54189 2007-07-16  Bruno Haible  <bruno@clisp.org>
54190
54191         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54192         * modules/getdelim (License): Likewise.
54193
54194 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54195
54196         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54197         * modules/d-type (License): Likewise.
54198         * modules/extensions (License): Likewise.
54199         * modules/fnmatch (License): Likewise.
54200         * modules/fseeko (License): Likewise.
54201         * modules/getaddrinfo (License): Likewise.
54202         * modules/getline (License): Likewise.
54203         * modules/getlogin_r (License): Likewise.
54204         * modules/getpass (License): Likewise.
54205         * modules/gettimeofday (License): Likewise.
54206         * modules/glob (License): Likewise.
54207         * modules/inet_ntop (License): Likewise.
54208         * modules/malloc (License): Likewise.
54209         * modules/malloca (License): Likewise.
54210         * modules/memmem (License): Likewise.
54211         * modules/mempcpy (License): Likewise.
54212         * modules/memset (License): Likewise.
54213         * modules/minmax (License): Likewise.
54214         * modules/mktime (License): Likewise.
54215         * modules/netinet_in (License): Likewise.
54216         * modules/pathmax (License): Likewise.
54217         * modules/poll (License): Likewise.
54218         * modules/regex (License): Likewise.
54219         * modules/snprintf (License): Likewise.
54220         * modules/stdbool (License): Likewise.
54221         * modules/stdint (License): Likewise.
54222         * modules/stdio (License): Likewise.
54223         * modules/strcase (License): Likewise.
54224         * modules/strcasestr (License): Likewise.
54225         * modules/strdup (License): Likewise.
54226         * modules/string (License): Likewise.
54227         * modules/strndup (License): Likewise.
54228         * modules/strnlen (License): Likewise.
54229         * modules/strpbrk (License): Likewise.
54230         * modules/strptime (License): Likewise.
54231         * modules/strsep (License): Likewise.
54232         * modules/sys_select (License): Likewise.
54233         * modules/sys_socket (License): Likewise.
54234         * modules/sys_stat (License): Likewise.
54235         * modules/sys_time (License): Likewise.
54236         * modules/time (License): Likewise.
54237         * modules/time_r (License): Likewise.
54238         * modules/timegm (License): Likewise.
54239         * modules/unistd (License): Likewise.
54240         * modules/vsnprintf (License): Likewise.
54241         * modules/wctype (License): Likewise.
54242
54243 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54244
54245         * modules/argz (License): LGPLv2+.
54246
54247 2007-07-15  Karl Berry  <karl@gnu.org>
54248
54249         * doc/gnulib.texi: revise node structure per new fdl.texi.
54250
54251 2007-07-14  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54254         the output file.
54255         * lib/uniname/uninames.h: Regenerated.
54256
54257 2007-07-14  Karl Berry  <karl@gnu.org>
54258
54259         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54260         omitting sectioning and index commands.
54261
54262 2007-07-13  Bruno Haible  <bruno@clisp.org>
54263
54264         New gnulib-tool option --more-symlinks.
54265         * gnulib-tool (func_usage): Document --more-symlinks.
54266         (do_copyrights): New variable.
54267         Recognize option --more-symlinks.
54268         (func_import): Don't add a copyright notice transform to
54269         sed_transform_lib_file if do_copyrights is empty.
54270
54271 2007-07-13  Bruno Haible  <bruno@clisp.org>
54272
54273         * lib/vasnprintf.c (decimal_point_char): Define also if
54274         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54275         && !NEED_PRINTF_DIRECTIVE_A.
54276         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54277         Gary V. Vaughan <gary@gnu.org>.
54278
54279 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54280
54281         * lib/inttypes_.h: Undo previous change, since it was fixed
54282         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54283
54284 2007-07-13  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54287         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54288
54289 2007-07-13  Jim Meyering  <jim@meyering.net>
54290
54291         df: Don't fail for Tru64's "file-on-file mount".
54292         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54293         so we fall through and use statfs instead.  Details here:
54294         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54295         Reported by Albert Chin.
54296
54297 2007-07-13  Bruno Haible  <bruno@clisp.org>
54298
54299         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54300         * modules/configmake (License): Likewise.
54301         * modules/gettext (License): Likewise.
54302         * modules/gettext-h (License): Likewise.
54303         * modules/include_next (License): Likewise.
54304         * modules/link-warning (License): Likewise.
54305         * modules/localcharset (License): Likewise.
54306         * modules/localename (License): Likewise.
54307         * modules/lock (License): Likewise.
54308         * modules/relocatable-lib-lgpl (License): Likewise.
54309         * modules/size_max (License): Likewise.
54310         * modules/vasnprintf (License): Likewise.
54311         * modules/wchar (License): Likewise.
54312         * modules/xsize (License): Likewise.
54313
54314 2007-07-13  Bruno Haible  <bruno@clisp.org>
54315
54316         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54317         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54318
54319 2007-07-12  Bruno Haible  <bruno@clisp.org>
54320
54321         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54322         in the modules files.
54323
54324 2007-07-11  Karl Berry  <karl@gnu.org>
54325
54326         * MODULES.html.sh (func_module): use
54327          sed -e '\|^'"${includefile}"'$|d'
54328          instead of /.../d, to avoid errors on $includefile's containing /.
54329
54330 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54331
54332         * gnulib-tool (func_import): Avoid duplication of --avoid
54333         statements
54334         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54335         names to `_' in variable names.
54336
54337 2007-07-10  Eric Blake  <ebb9@byu.net>
54338
54339         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54340         * NEWS: Document this change.
54341
54342 2007-07-08  Bruno Haible  <bruno@clisp.org>
54343
54344         Update to Unicode 5.0.
54345         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54346         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54347         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54348         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54349         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54350         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54351         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54352         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54353         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54354         U+10A3F, U+1D242..U+1D244.
54355         (nonspacing_table_ind): Update.
54356         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54357         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54358
54359 2007-07-08  Bruno Haible  <bruno@clisp.org>
54360
54361         Update to Unicode 5.0.
54362         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54363         code transform. Extend the name index field of unicode_name_to_code and
54364         unicode_code_to_name from 16 to 24 bits.
54365         * lib/uniname/uniname.c (unicode_character_name,
54366         unicode_name_character): Add the range 0x12xxx to the code transform.
54367         * lib/uniname/uninames.h: Regenerated.
54368         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54369
54370 2007-07-07  Bruno Haible  <bruno@clisp.org>
54371
54372         * modules/wcwidth-tests: New file.
54373         * tests/test-wcwidth.c: New file.
54374
54375         Work around MacOS X wcwidth() bug.
54376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54377         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54378         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54379         original wcwidth in non-UTF-8 locales.
54380         * modules/wcwidth (Depends-on): Add localcharset, streq,
54381         uniwidth/width.
54382         * doc/functions/wcwidth.texi: Update.
54383
54384 2007-07-07  Bruno Haible  <bruno@clisp.org>
54385
54386         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54387         (wcwidth): New declaration.
54388         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54389         macros.
54390         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54391         here. Prepare for creating <wchar.h> unconditionally.
54392         * modules/wchar (Depends-on): Add link-warning.
54393         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54394         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54395         * lib/wcwidth.h: Remove file.
54396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54397         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54398         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54399         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54400         (Include): Replace wcwidth.h with <wchar.h>.
54401         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54402         * lib/mbchar.h: Don't include wcwidth.h.
54403         * lib/mbswidth.c: Likewise.
54404         * NEWS: Mention the change.
54405
54406 2007-07-07  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54409         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54410         definition with an external declaration.
54411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54412         defined as a function. Remove AC_C_INLINE requirement.
54413         * modules/wcwidth (Files): Add lib/wcwidth.c.
54414         (Makefile.am): Remove redundant statement.
54415
54416 2007-07-07  Bruno Haible  <bruno@clisp.org>
54417
54418         * MODULES.html.sh (Unicode string functions): Add the new modules.
54419
54420         * tests/uniwidth/test-u32-strwidth.c: New file.
54421         * modules/uniwidth/u32-strwidth-tests: New file.
54422
54423         * lib/uniwidth/u32-strwidth.c: New file.
54424         * modules/uniwidth/u32-strwidth: New file.
54425
54426         * tests/uniwidth/test-u16-strwidth.c: New file.
54427         * modules/uniwidth/u16-strwidth-tests: New file.
54428
54429         * lib/uniwidth/u16-strwidth.c: New file.
54430         * modules/uniwidth/u16-strwidth: New file.
54431
54432         * tests/uniwidth/test-u8-strwidth.c: New file.
54433         * modules/uniwidth/u8-strwidth-tests: New file.
54434
54435         * lib/uniwidth/u8-strwidth.c: New file.
54436         * modules/uniwidth/u8-strwidth: New file.
54437
54438         * tests/uniwidth/test-u32-width.c: New file.
54439         * modules/uniwidth/u32-width-tests: New file.
54440
54441         * lib/uniwidth/u32-width.c: New file.
54442         * modules/uniwidth/u32-width: New file.
54443
54444         * tests/uniwidth/test-u16-width.c: New file.
54445         * modules/uniwidth/u16-width-tests: New file.
54446
54447         * lib/uniwidth/u16-width.c: New file.
54448         * modules/uniwidth/u16-width: New file.
54449
54450         * tests/uniwidth/test-u8-width.c: New file.
54451         * modules/uniwidth/u8-width-tests: New file.
54452
54453         * lib/uniwidth/u8-width.c: New file.
54454         * modules/uniwidth/u8-width: New file.
54455
54456         * tests/uniwidth/test-uc_width.c: New file.
54457         * modules/uniwidth/width-tests: New file.
54458
54459         * lib/uniwidth/width.c: New file, from GNU libiconv.
54460         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54461         * modules/uniwidth/width: New file.
54462
54463         * lib/uniwidth.h: New file, from GNU libiconv.
54464         * modules/uniwidth/base: New file.
54465
54466 2007-07-07  Bruno Haible  <bruno@clisp.org>
54467
54468         * lib/uniname.h: New file, from GNU gettext.
54469         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54470         * lib/uniname/uninames.h: New file, from GNU gettext.
54471         * lib/uniname/uniname.c: New file, from GNU gettext.
54472         * tests/uniname/test-uninames.sh: New file.
54473         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54474         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54475         * modules/uniname/base: New file.
54476         * modules/uniname/uniname: New file.
54477         * modules/uniname/uniname-tests: New file.
54478         * MODULES.html.sh (Unicode string functions): Add the new modules.
54479
54480 2007-07-06  Bruno Haible  <bruno@clisp.org>
54481
54482         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54483
54484 2007-07-06  Bruno Haible  <bruno@clisp.org>
54485
54486         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54487         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54488         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54489         include <sys/time.h>.
54490         Reported by Eric Blake.
54491
54492 2007-07-06  Eric Blake  <ebb9@byu.net>
54493
54494         Fix testing canonicalize on cygwin.
54495         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54496         Revert patch from 2007-06-19.
54497         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54498         canonicalize module is also in use.
54499         * tests/test-canonicalize.c: New file.
54500         * tests/test-canonicalize.sh: Likewise.
54501         * modules/canonicalize-tests: Likewise.
54502
54503 2007-07-06  Jim Meyering  <jim@meyering.net>
54504
54505         * lib/getugroups.c (getugroups): Detect getgrent failure.
54506         Adjust comment to reflect reality: this function may return -1.
54507
54508 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54509
54510         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54511         the new TP address.
54512         (usage): Fix typo
54513         (gnulib_mk): New variable.
54514
54515 2007-07-05  Jim Meyering  <jim@meyering.net>
54516
54517         Don't let endgrent clobber errno, no matter how improbable.
54518         * lib/getugroups.c (getugroups): Save and restore errno around
54519         endgrent call.
54520
54521         Close the group DB even when failing with 2^31 or more members.
54522         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54523
54524 2007-07-04  Jim Meyering  <jim@meyering.net>
54525
54526         * lib/getugroups.h: New file.
54527         * lib/getugroups.c: Include "getugroups.h".
54528         Remove uses of "register" keyword.
54529         Move local variable, "cp", down into scope where used.
54530         Give "username" parameter the "const" attribute.
54531         * modules/getugroups (Files): Add lib/getugroups.h
54532
54533 2007-07-04  Karl Berry  <karl@gnu.org>
54534
54535         * MODULES.html.sh (func_all_modules): Complete rename of
54536         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54537
54538 2007-07-02  Bruno Haible  <bruno@clisp.org>
54539
54540         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54541         mode, when inttypes.h comes from gnulib.
54542         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54543
54544 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54545
54546         * NEWS: Mention lgpl module name change.
54547
54548         * modules/lgpl-2.1: Renamed from lgpl.
54549
54550         * NEWS: Mention gpl module name change.
54551
54552         * modules/gpl-3.0: New file, based on gpl-2.0.
54553
54554         * modules/gpl-2.0: Renamed from gpl.
54555
54556         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54557         doc/gpl-2.0.texi.
54558
54559 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54560
54561         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54562         #define __STDC_LIMIT_MACROS temporarily while including
54563         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54564         Problem reported by Joel E. Denny in
54565         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54566
54567 2007-07-01  Bruno Haible  <bruno@clisp.org>
54568
54569         * lib/unistdio.h: New file.
54570         * lib/unistdio/u-asnprintf.h: New file.
54571         * lib/unistdio/u-asprintf.h: New file.
54572         * lib/unistdio/u-printf-args.c: New file.
54573         * lib/unistdio/u-printf-args.h: New file.
54574         * lib/unistdio/u-printf-parse.h: New file.
54575         * lib/unistdio/u-snprintf.h: New file.
54576         * lib/unistdio/u-sprintf.h: New file.
54577         * lib/unistdio/u-vasprintf.h: New file.
54578         * lib/unistdio/u-vsnprintf.h: New file.
54579         * lib/unistdio/u-vsprintf.h: New file.
54580         * lib/unistdio/ulc-asnprintf.c: New file.
54581         * lib/unistdio/ulc-asprintf.c: New file.
54582         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54583         * lib/unistdio/ulc-printf-parse.c: New file.
54584         * lib/unistdio/ulc-snprintf.c: New file.
54585         * lib/unistdio/ulc-sprintf.c: New file.
54586         * lib/unistdio/ulc-vasnprintf.c: New file.
54587         * lib/unistdio/ulc-vasprintf.c: New file.
54588         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54589         * lib/unistdio/ulc-vsnprintf.c: New file.
54590         * lib/unistdio/ulc-vsprintf.c: New file.
54591         * lib/unistdio/u8-asnprintf.c: New file.
54592         * lib/unistdio/u8-asprintf.c: New file.
54593         * lib/unistdio/u8-printf-parse.c: New file.
54594         * lib/unistdio/u8-snprintf.c: New file.
54595         * lib/unistdio/u8-sprintf.c: New file.
54596         * lib/unistdio/u8-vasnprintf.c: New file.
54597         * lib/unistdio/u8-vasprintf.c: New file.
54598         * lib/unistdio/u8-vsnprintf.c: New file.
54599         * lib/unistdio/u8-vsprintf.c: New file.
54600         * lib/unistdio/u8-u8-asnprintf.c: New file.
54601         * lib/unistdio/u8-u8-asprintf.c: New file.
54602         * lib/unistdio/u8-u8-snprintf.c: New file.
54603         * lib/unistdio/u8-u8-sprintf.c: New file.
54604         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54605         * lib/unistdio/u8-u8-vasprintf.c: New file.
54606         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54607         * lib/unistdio/u8-u8-vsprintf.c: New file.
54608         * lib/unistdio/u16-asnprintf.c: New file.
54609         * lib/unistdio/u16-asprintf.c: New file.
54610         * lib/unistdio/u16-printf-parse.c: New file.
54611         * lib/unistdio/u16-snprintf.c: New file.
54612         * lib/unistdio/u16-sprintf.c: New file.
54613         * lib/unistdio/u16-vasnprintf.c: New file.
54614         * lib/unistdio/u16-vasprintf.c: New file.
54615         * lib/unistdio/u16-vsnprintf.c: New file.
54616         * lib/unistdio/u16-vsprintf.c: New file.
54617         * lib/unistdio/u16-u16-asnprintf.c: New file.
54618         * lib/unistdio/u16-u16-asprintf.c: New file.
54619         * lib/unistdio/u16-u16-snprintf.c: New file.
54620         * lib/unistdio/u16-u16-sprintf.c: New file.
54621         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54622         * lib/unistdio/u16-u16-vasprintf.c: New file.
54623         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54624         * lib/unistdio/u16-u16-vsprintf.c: New file.
54625         * lib/unistdio/u32-asnprintf.c: New file.
54626         * lib/unistdio/u32-asprintf.c: New file.
54627         * lib/unistdio/u32-printf-parse.c: New file.
54628         * lib/unistdio/u32-snprintf.c: New file.
54629         * lib/unistdio/u32-sprintf.c: New file.
54630         * lib/unistdio/u32-vasnprintf.c: New file.
54631         * lib/unistdio/u32-vasprintf.c: New file.
54632         * lib/unistdio/u32-vsnprintf.c: New file.
54633         * lib/unistdio/u32-vsprintf.c: New file.
54634         * lib/unistdio/u32-u32-asnprintf.c: New file.
54635         * lib/unistdio/u32-u32-asprintf.c: New file.
54636         * lib/unistdio/u32-u32-snprintf.c: New file.
54637         * lib/unistdio/u32-u32-sprintf.c: New file.
54638         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54639         * lib/unistdio/u32-u32-vasprintf.c: New file.
54640         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54641         * lib/unistdio/u32-u32-vsprintf.c: New file.
54642         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54643         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54644         * tests/unistdio/test-ulc-printf1.h: New file.
54645         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54646         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54647         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54648         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54649         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54650         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54651         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54652         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54653         * tests/unistdio/test-u8-asnprintf1.c: New file.
54654         * tests/unistdio/test-u8-asnprintf1.h: New file.
54655         * tests/unistdio/test-u8-printf1.h: New file.
54656         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54657         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54658         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54659         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54660         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54661         * tests/unistdio/test-u8-vasprintf1.c: New file.
54662         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54663         * tests/unistdio/test-u8-vsprintf1.c: New file.
54664         * tests/unistdio/test-u16-asnprintf1.c: New file.
54665         * tests/unistdio/test-u16-asnprintf1.h: New file.
54666         * tests/unistdio/test-u16-printf1.h: New file.
54667         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54668         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54669         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54670         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54671         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54672         * tests/unistdio/test-u16-vasprintf1.c: New file.
54673         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54674         * tests/unistdio/test-u16-vsprintf1.c: New file.
54675         * tests/unistdio/test-u32-asnprintf1.c: New file.
54676         * tests/unistdio/test-u32-asnprintf1.h: New file.
54677         * tests/unistdio/test-u32-printf1.h: New file.
54678         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54679         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54680         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54681         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54682         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54683         * tests/unistdio/test-u32-vasprintf1.c: New file.
54684         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54685         * tests/unistdio/test-u32-vsprintf1.c: New file.
54686         * modules/unistdio/base: New file.
54687         * modules/unistdio/u-printf-args: New file.
54688         * modules/unistdio/ulc-asnprintf: New file.
54689         * modules/unistdio/ulc-asprintf: New file.
54690         * modules/unistdio/ulc-fprintf: New file.
54691         * modules/unistdio/ulc-printf-parse: New file.
54692         * modules/unistdio/ulc-snprintf: New file.
54693         * modules/unistdio/ulc-sprintf: New file.
54694         * modules/unistdio/ulc-vasnprintf: New file.
54695         * modules/unistdio/ulc-vasprintf: New file.
54696         * modules/unistdio/ulc-vfprintf: New file.
54697         * modules/unistdio/ulc-vsnprintf: New file.
54698         * modules/unistdio/ulc-vsprintf: New file.
54699         * modules/unistdio/u8-asnprintf: New file.
54700         * modules/unistdio/u8-asprintf: New file.
54701         * modules/unistdio/u8-printf-parse: New file.
54702         * modules/unistdio/u8-snprintf: New file.
54703         * modules/unistdio/u8-sprintf: New file.
54704         * modules/unistdio/u8-vasnprintf: New file.
54705         * modules/unistdio/u8-vasprintf: New file.
54706         * modules/unistdio/u8-vsnprintf: New file.
54707         * modules/unistdio/u8-vsprintf: New file.
54708         * modules/unistdio/u8-u8-asnprintf: New file.
54709         * modules/unistdio/u8-u8-asprintf: New file.
54710         * modules/unistdio/u8-u8-snprintf: New file.
54711         * modules/unistdio/u8-u8-sprintf: New file.
54712         * modules/unistdio/u8-u8-vasnprintf: New file.
54713         * modules/unistdio/u8-u8-vasprintf: New file.
54714         * modules/unistdio/u8-u8-vsnprintf: New file.
54715         * modules/unistdio/u8-u8-vsprintf: New file.
54716         * modules/unistdio/u16-asnprintf: New file.
54717         * modules/unistdio/u16-asprintf: New file.
54718         * modules/unistdio/u16-printf-parse: New file.
54719         * modules/unistdio/u16-snprintf: New file.
54720         * modules/unistdio/u16-sprintf: New file.
54721         * modules/unistdio/u16-vasnprintf: New file.
54722         * modules/unistdio/u16-vasprintf: New file.
54723         * modules/unistdio/u16-vsnprintf: New file.
54724         * modules/unistdio/u16-vsprintf: New file.
54725         * modules/unistdio/u16-u16-asnprintf: New file.
54726         * modules/unistdio/u16-u16-asprintf: New file.
54727         * modules/unistdio/u16-u16-snprintf: New file.
54728         * modules/unistdio/u16-u16-sprintf: New file.
54729         * modules/unistdio/u16-u16-vasnprintf: New file.
54730         * modules/unistdio/u16-u16-vasprintf: New file.
54731         * modules/unistdio/u16-u16-vsnprintf: New file.
54732         * modules/unistdio/u16-u16-vsprintf: New file.
54733         * modules/unistdio/u32-asnprintf: New file.
54734         * modules/unistdio/u32-asprintf: New file.
54735         * modules/unistdio/u32-printf-parse: New file.
54736         * modules/unistdio/u32-snprintf: New file.
54737         * modules/unistdio/u32-sprintf: New file.
54738         * modules/unistdio/u32-vasnprintf: New file.
54739         * modules/unistdio/u32-vasprintf: New file.
54740         * modules/unistdio/u32-vsnprintf: New file.
54741         * modules/unistdio/u32-vsprintf: New file.
54742         * modules/unistdio/u32-u32-asnprintf: New file.
54743         * modules/unistdio/u32-u32-asprintf: New file.
54744         * modules/unistdio/u32-u32-snprintf: New file.
54745         * modules/unistdio/u32-u32-sprintf: New file.
54746         * modules/unistdio/u32-u32-vasnprintf: New file.
54747         * modules/unistdio/u32-u32-vasprintf: New file.
54748         * modules/unistdio/u32-u32-vsnprintf: New file.
54749         * modules/unistdio/u32-u32-vsprintf: New file.
54750         * modules/unistdio/ulc-asnprintf-tests: New file.
54751         * modules/unistdio/ulc-vasnprintf-tests: New file.
54752         * modules/unistdio/ulc-vasprintf-tests: New file.
54753         * modules/unistdio/ulc-vsnprintf-tests: New file.
54754         * modules/unistdio/ulc-vsprintf-tests: New file.
54755         * modules/unistdio/u8-asnprintf-tests: New file.
54756         * modules/unistdio/u8-vasnprintf-tests: New file.
54757         * modules/unistdio/u8-vasprintf-tests: New file.
54758         * modules/unistdio/u8-vsnprintf-tests: New file.
54759         * modules/unistdio/u8-vsprintf-tests: New file.
54760         * modules/unistdio/u16-asnprintf-tests: New file.
54761         * modules/unistdio/u16-vasnprintf-tests: New file.
54762         * modules/unistdio/u16-vasprintf-tests: New file.
54763         * modules/unistdio/u16-vsnprintf-tests: New file.
54764         * modules/unistdio/u16-vsprintf-tests: New file.
54765         * modules/unistdio/u32-asnprintf-tests: New file.
54766         * modules/unistdio/u32-vasnprintf-tests: New file.
54767         * modules/unistdio/u32-vasprintf-tests: New file.
54768         * modules/unistdio/u32-vsnprintf-tests: New file.
54769         * modules/unistdio/u32-vsprintf-tests: New file.
54770         * MODULES.html.sh (Unicode string functions): Add the new modules.
54771
54772 2007-07-01  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/sprintf.c (sprintf): Limit the available length estimation,
54775         to avoid address wraparound.
54776         * lib/vsprintf.c (vsprintf): Likewise.
54777         * modules/sprintf-posix (Dependencies): Add stdint.
54778         * modules/vsprintf-posix (Dependencies): Likewise.
54779
54780 2007-07-01  Bruno Haible  <bruno@clisp.org>
54781
54782         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54783         Windows PATH as well. Conservative double-quoting. Comments.
54784
54785 2007-07-01  Bruno Haible  <bruno@clisp.org>
54786             Eric Blake  <ebb9@byu.net>
54787             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54788
54789         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54790         empty components in $PATH, denoting '.'.
54791
54792 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54793
54794         * gnulib-tool: Fix indentation.
54795         (func_create_megatestdir): Likewise.
54796         Report by Bruno Haible.
54797
54798 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54799
54800         Sync from Automake.
54801         * build-aux/gnupload: Fix shell portability issues with for loops.
54802         Report by Karl Berry.
54803
54804 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54805
54806         * build-aux/maint.mk (POURL): Use translationproject.org.
54807
54808 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54809             Bruno Haible  <bruno@clisp.org>
54810
54811         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54812         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54813         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54814         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54815         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54816
54817 2007-06-27  Bruno Haible  <bruno@clisp.org>
54818
54819         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54820         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54821
54822 2007-06-26  Karl Berry  <karl@gnu.org>
54823
54824         * MODULES.html.sh: remove xreadlink-with-size.
54825
54826 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54827
54828         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54829         method that I hope also handles the double-include problem noted
54830         by Bruno Haible in
54831         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54832
54833 2007-06-23  Bruno Haible  <bruno@clisp.org>
54834
54835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54836         Don't let the 'mostlyclean' target fail if the last subdirectory could
54837         not be removed.
54838         Reported by Karl Berry.
54839
54840 2007-06-23  Bruno Haible  <bruno@clisp.org>
54841
54842         * gnulib-tool (echo): Add a speedier workaround for ksh.
54843         * tests/test-echo.sh: Likewise.
54844
54845 2007-06-23  Bruno Haible  <bruno@clisp.org>
54846
54847         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54848         * tests/test-echo.sh: Likewise.
54849
54850 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54851
54852         * gnulib-tool (IFS): Initialize early, so we don't set it to
54853         empty later.
54854         (self_abspathname): Rewrite algorithm to set it, reindent.
54855         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54856         (func_create_megatestdir): Merge some sed scripts.
54857
54858 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54859
54860         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54861         exposed by Sun Studio 11 cc on Solaris 8.
54862
54863 2007-06-22  Bruno Haible  <bruno@clisp.org>
54864
54865         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54866         backslashes.
54867         * tests/test-echo.sh: New file.
54868
54869 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54870
54871         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54872         simplify `sed_replace_build_aux' scripts, they are portable but
54873         echoing them with `echo' is not.
54874         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54875
54876 2007-06-21  Karl Berry  <karl@gnu.org>
54877
54878         * config/srclist.txt: guess we can't handle the licenses via
54879         srclist at the moment.
54880
54881 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54882
54883         * MODULES.html.sh: Add include_next.
54884         * modules/include_next: New file.
54885
54886 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54887
54888         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54889         INCLUDE_NEXT.
54890         (gl_CHECK_NEXT_HEADERS): New macro.
54891         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54892         the obsolescent gl_ABSOLUTE_HEADER.
54893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54894         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54895         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54896         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54897         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54898         * m4/math_h.m4 (gl_MATH_H): Likewise.
54899         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54900         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54901         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54902         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54903         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54904         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54905         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54907         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54908         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54910         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54911         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54912         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54913         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54914         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54915         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54916         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54917         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54918         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54919         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54920         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54921         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54922         * lib/float_.h: Likewise.
54923         * lib/inttypes_.h: Likewise.
54924         * lib/math_.h: Likewise.
54925         * lib/search_.h: Likewise.
54926         * lib/signal_.h: Likewise.
54927         * lib/stdint_.h: Likewise.
54928         * lib/stdio_.h: Likewise.
54929         * lib/stdlib_.h: Likewise.
54930         * lib/string_.h: Likewise.
54931         * lib/sys_stat_.h: Likewise.
54932         * lib/sys_time_.h: Likewise.
54933         * lib/time_.h: Likewise.
54934         * lib/unistd_.h: Likewise.
54935         * lib/wchar_.h: Likewise.
54936         * lib/wctype_.h: Likewise.
54937         * lib/dirent_.h: Likewise.
54938         * lib/iconv_.h: Likewise.
54939         * lib/locale_.h: Likewise.
54940         * lib/netinet_in_.h: Likewise.
54941         * lib/sys_select_.h: Likewise.
54942         * lib/sys_socket_.h: Likewise.
54943         * lib/sysexits_.h: Likewise.
54944         * modules/fcntl (Depends-on): Depend on include_next, not
54945         absolute_header.
54946         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54947         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54948         * modules/fchdir: Likewise.
54949         * modules/float: Likewise.
54950         * modules/iconv_open: Likewise.
54951         * modules/inttypes: Likewise.
54952         * modules/locale: Likewise.
54953         * modules/math: Likewise.
54954         * modules/netinet_in: Likewise.
54955         * modules/search: Likewise.
54956         * modules/signal: Likewise.
54957         * modules/stdint: Likewise.
54958         * modules/stdio: Likewise.
54959         * modules/stdlib: Likewise.
54960         * modules/string: Likewise.
54961         * modules/sys_select: Likewise.
54962         * modules/sys_socket: Likewise.
54963         * modules/sys_stat: Likewise.
54964         * modules/sys_time: Likewise.
54965         * modules/sysexits: Likewise.
54966         * modules/time: Likewise.
54967         * modules/unistd: Likewise.
54968         * modules/wchar: Likewise.
54969         * modules/wctype: Likewise.
54970         * modules/sys_stat: Change maintainer to "all".
54971         * modules/unistd: Likewise.
54972
54973 2007-06-20  Karl Berry  <karl@gnu.org>
54974
54975         * config/srclist.txt: track www changes in license files.
54976
54977 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54978
54979         * build-aux/bootstrap: Remove stray dot.
54980         Make sure build_aux settings are honored when linking
54981         gnulib_extra_files.
54982
54983 2007-06-19  Eric Blake  <ebb9@byu.net>
54984
54985         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54986         Allow compilation on cygwin.
54987
54988 2007-06-19  Jim Meyering  <jim@meyering.net>
54989
54990         xreadlink-with-size: Remove module.  No longer used.
54991         Ex-callers now use xreadlink or mreadlink-with-size.
54992         * modules/xreadlink-with-size: Remove module.
54993         * lib/xreadlink-with-size.c: Remove file.
54994         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54995         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54996         just before the function definition *is* accurate.
54997
54998         Eliminate one way canonicalize_filename_mode could exit.
54999         * lib/canonicalize.c (canonicalize_filename_mode):
55000         Use mreadlink_with_size, not xreadlink_with_size.
55001
55002 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55003
55004         Detect porting problems to FreeBSD/arm, which has time_t wider than
55005         long int.  Original problem reported for GNU diff by Xin Li in
55006         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55007         * modules/getdate (Depends-on): Add intprops, verify.
55008         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55009         is an integer type no wider than long int.
55010
55011 2007-06-18  Jim Meyering  <jim@meyering.net>
55012
55013         New module: mreadlink-with-size.
55014         * MODULES.html.sh: Add mreadlink-with-size.
55015         * modules/mreadlink-with-size: New module
55016         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55017         not xreadlink-with-size.
55018         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55019
55020 2007-06-16  Bruno Haible  <bruno@clisp.org>
55021
55022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55023         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55024         Reported by Gary V. Vaughan <gary@gnu.org>.
55025
55026 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55027
55028         Revamp lchown so that it lives in unistd.h where it belongs.
55029         * lib/lchown.h: Remove.
55030         * lib/dirchownmod.c: Don't include lib/lchown.h.
55031         * lib/fchownat.c: Likewise.
55032         * lib/openat.c: Likewise.
55033         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55034         does not follow symlinks.
55035         (EOPNOTSUPP): Define if not defined.
55036         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55037         is defined to 0.
55038         (lchown): New decl.
55039         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55040         Do not check for lchown decl.
55041         Set REPLACE_LCHOWN.
55042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55043         REPLACE_LCHOWN.
55044         * modules/chown: Make it clear it follows symlinks.
55045         * modules/lchown: Make it clear it doesn't follow symlinks.
55046         (Files): Remove lib/lchown.h
55047         (Depends-on): Add unistd.
55048         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55049         (Include): Include <unistd.h>, not "lchown.h".
55050         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55051         REPLACE_LCHOWN.
55052
55053 2007-06-15  Jim Meyering  <jim@meyering.net>
55054
55055         Change license (GPL to LGPL) of fsusage and dependents.
55056         * modules/fsusage (License): Change to LGPL.
55057         * modules/full-read (License): Likewise.
55058         * modules/full-write (License): Likewise.
55059         * modules/safe-read (License): Likewise.
55060         * modules/safe-write (License): Likewise.
55061
55062 2007-06-14  Ben Pfaff  <blp@gnu.org>
55063
55064         Missing part of allocsa -> malloca transition.
55065         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55066         gl_MALLOCA.
55067
55068 2007-06-12  Bruno Haible  <bruno@clisp.org>
55069
55070         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55071         to ia64, x86_64, i386.
55072         Reported by Eric Blake.
55073
55074 2007-06-12  Bruno Haible  <bruno@clisp.org>
55075
55076         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55077         cross-compiling to x86_64.
55078
55079 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55082         glitch reported by Ralf Wildenhues in
55083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55084
55085         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55086         Vin Shelton.
55087
55088 2007-06-11  Bruno Haible  <bruno@clisp.org>
55089
55090         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55091         replacement string.
55092         Reported by Eric Blake.
55093
55094 2007-06-10  Bruno Haible  <bruno@clisp.org>
55095
55096         Prepare vasnprintf code for use with Unicode strings.
55097         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55098         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55099         TYPE_U32_STRING.
55100         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55101         a_u32_string variants.
55102         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55103         * lib/printf-args.c: Don't include config.h and the specification
55104         header if PRINTF_FETCHARGS is already defined.
55105         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55106         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55107         TYPE_U16_STRING, TYPE_U32_STRING.
55108         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55109         u16_directive, u16_directives, u32_directive, u32_directives): New
55110         types.
55111         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55112         New declarations.
55113         * lib/printf-parse.c: Don't include config.h and the specification
55114         header if PRINTF_PARSE is already defined. Eliminate the set of
55115         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55116         them now. Include c-ctype.h.
55117         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55118         directive and CHAR_T_ONLY_ASCII.
55119         * lib/vasnprintf.c: Don't include config.h and the specification header
55120         if VASNPRINTF is already defined.
55121         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55122         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55123         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55124         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55125         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55126         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55127         code accordingly.
55128         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55129         pad_ourselves also in this case, with the 'c' and 's' directives, and
55130         with a different notion of "width".
55131         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55132
55133 2007-06-10  Bruno Haible  <bruno@clisp.org>
55134
55135         * modules/unistr/u32-mbsnlen: New file.
55136         * lib/unistr/u32-mbsnlen.c: New file.
55137
55138         * modules/unistr/u16-mbsnlen: New file.
55139         * lib/unistr/u16-mbsnlen.c: New file.
55140
55141         * modules/unistr/u8-mbsnlen: New file.
55142         * lib/unistr/u8-mbsnlen.c: New file.
55143
55144         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55145         declarations.
55146
55147 2007-06-10  Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/string_.h (mbsnlen): New declaration.
55150         * lib/mbsnlen.c: New file.
55151         * m4/mbsnlen.m4: New file.
55152         * modules/mbsnlen: New file.
55153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55154         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55155         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55156
55157 2007-06-10  Bruno Haible  <bruno@clisp.org>
55158
55159         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55160
55161 2007-06-10  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55164         * lib/mbuiter.h: Likewise.
55165
55166 2007-06-10  Bruno Haible  <bruno@clisp.org>
55167
55168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55169         declaration.
55170
55171 2007-06-10  Karl Berry  <karl@gnu.org>
55172
55173         * config/srclist.txt: remove gettext entries, Bruno prefers
55174         to update individually.
55175
55176 2007-06-10  Bruno Haible  <bruno@clisp.org>
55177
55178         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55179         'maxlen'. Ensure only length + width bytes are allocated, not
55180         length + 1 + width.
55181
55182 2007-06-09  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55185         (CHAR_T): Remove macro.
55186         (VASNPRINTF): Update.
55187
55188 2007-06-09  Bruno Haible  <bruno@clisp.org>
55189
55190         * MODULES.html.sh (Unicode string functions): Add the new modules.
55191
55192         * modules/uniconv/u32-conv-to-enc: New file.
55193         * lib/uniconv/u32-conv-to-enc.c: New file.
55194         * modules/uniconv/u32-conv-to-enc-tests: New file.
55195         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55196
55197         * modules/uniconv/u16-conv-to-enc: New file.
55198         * lib/uniconv/u16-conv-to-enc.c: New file.
55199         * lib/uniconv/u-conv-to-enc.h: New file.
55200         * modules/uniconv/u16-conv-to-enc-tests: New file.
55201         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55202
55203         * modules/uniconv/u8-conv-to-enc: New file.
55204         * lib/uniconv/u8-conv-to-enc.c: New file.
55205         * modules/uniconv/u8-conv-to-enc-tests: New file.
55206         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55207
55208         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55209         u32_conv_to_encoding): New declarations.
55210
55211 2007-06-09  Bruno Haible  <bruno@clisp.org>
55212
55213         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55214
55215 2007-06-09  Bruno Haible  <bruno@clisp.org>
55216
55217         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55218         * modules/malloca: Renamed from modules/allocsa, updated.
55219         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55220         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55221         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55222         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55223         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55224         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55225         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55226         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55227         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55228         * modules/c-strcasestr (Depends-on): Update.
55229         * lib/c-strcasestr.c: Update.
55230         * modules/c-strstr (Depends-on): Update.
55231         * lib/c-strstr.c: Update.
55232         * modules/canonicalize-lgpl (Depends-on): Update.
55233         * lib/canonicalize-lgpl.c: Update.
55234         * modules/clean-temp (Depends-on): Update.
55235         * lib/clean-temp.c: Update.
55236         * modules/csharpcomp (Depends-on): Update.
55237         * lib/csharpcomp.c: Update.
55238         * modules/csharpexec (Depends-on): Update.
55239         * lib/csharpexec.c: Update.
55240         * modules/javacomp (Depends-on): Update.
55241         * lib/javacomp.c: Update.
55242         * modules/javaexec (Depends-on): Update.
55243         * lib/javaexec.c: Update.
55244         * modules/mbscasestr (Depends-on): Update.
55245         * lib/mbscasestr.c: Update.
55246         * modules/mbsstr (Depends-on): Update.
55247         * lib/mbsstr.c: Update.
55248         * modules/setenv (Depends-on): Update.
55249         * lib/setenv.c: Update.
55250         * modules/strcasestr (Depends-on): Update.
55251         * lib/strcasestr.c: Update.
55252         * modules/striconveha (Depends-on): Update.
55253         * lib/striconveha.c: Update.
55254         * modules/relocatable-prog-wrapper (Files): Update.
55255         * lib/relocwrapper.c: Update.
55256         * build-aux/install-reloc: Update.
55257         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55258
55259 2007-06-08  Bruno Haible  <bruno@clisp.org>
55260
55261         Port to uClibc.
55262         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55263         * lib/fpurge.c (fpurge): Likewise.
55264         * lib/freading.c (freading): Likewise.
55265         * lib/fseeko.c (rpl_fseeko): Likewise.
55266         * lib/fseterr.c (fseterr): Likewise.
55267         * lib/fwriting.c (fwriting): Likewise.
55268         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55269
55270 2007-06-08  Bruno Haible  <bruno@clisp.org>
55271
55272         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55273         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55274         * modules/gettext (Files): Add m4/intlmacosx.m4.
55275
55276 2007-06-07  Bruno Haible  <bruno@clisp.org>
55277
55278         * modules/localename-tests: New file.
55279         * tests/test-localename.c: New file.
55280
55281         New module 'localename'.
55282         * lib/localename.h: New file.
55283         * lib/localename.c: New file, from GNU gettext.
55284         * m4/localename.m4: New file.
55285         * modules/localename: New file.
55286
55287 2007-06-07  Bruno Haible  <bruno@clisp.org>
55288
55289         Work around the lack of <wchar.h> on some builds of uClibc.
55290         * doc/headers/wchar.texi: Update.
55291         * lib/wchar_.h: Include <wchar.h> only if it exists.
55292         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55293         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55294         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55295         doesn't exist.
55296         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55297         * modules/mbfile (Depends-on): Add wchar.
55298         * modules/mbiter (Depends-on): Likewise.
55299         * modules/mbuiter (Depends-on): Likewise.
55300         Reported by Simon Josefsson.
55301
55302 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55303
55304         Work around problem reported by Steven M. Schweda in
55305         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55306         Tru64 5.1B with the Compaq compiler environment installed declares
55307         an 'isblank' function but does not define it in the C library.
55308         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55309         * lib/regex_internal.h (isblank): Likewise.
55310         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55311         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55312
55313 2007-06-05  Bruno Haible  <bruno@clisp.org>
55314
55315         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55316         ia64.
55317         * modules/printf-safe: New file.
55318         * modules/fprintf-posix (Depends-on): Add printf-safe.
55319         * modules/printf-posix (Depends-on): Likewise.
55320         * modules/snprintf-posix (Depends-on): Likewise.
55321         * modules/sprintf-posix (Depends-on): Likewise.
55322         * modules/vasnprintf-posix (Depends-on): Likewise.
55323         * modules/vasprintf-posix (Depends-on): Likewise.
55324         * modules/vfprintf-posix (Depends-on): Likewise.
55325         * modules/vprintf-posix (Depends-on): Likewise.
55326         * modules/vsnprintf-posix (Depends-on): Likewise.
55327         * modules/vsprintf-posix (Depends-on): Likewise.
55328         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55329         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55330         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55331         "no" on i386, x86_64, ia64.
55332         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55333         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55334         on i386, x86_64, ia64.
55335         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55336         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55337         on i386, x86_64, ia64.
55338         * tests/test-vasnprintf-posix.c: Include float.h.
55339         (LDBL80_WORDS): New macro.
55340         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55341         on i386, x86_64, ia64.
55342         * tests/test-vasprintf-posix.c: Include float.h.
55343         (LDBL80_WORDS): New macro.
55344         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55345         on i386, x86_64, ia64.
55346         * tests/test-snprintf-posix.c: Include float.h.
55347         * tests/test-sprintf-posix.c: Likewise.
55348         * tests/test-vsnprintf-posix.c: Likewise.
55349         * tests/test-vsprintf-posix.c: Likewise.
55350
55351 2007-06-05  Bruno Haible  <bruno@clisp.org>
55352
55353         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55354         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55355         non-IEEE numbers on i386, x86_64, ia64.
55356         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55357         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55358         * tests/test-isnanl.h: Include float.h.
55359         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55360
55361 2007-06-05  Bruno Haible  <bruno@clisp.org>
55362
55363         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55364         also the %a / %A. Handle the %a / %A code before this extra handling.
55365
55366 2007-06-05  Bruno Haible  <bruno@clisp.org>
55367
55368         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55369         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55370
55371 2007-06-05  Bruno Haible  <bruno@clisp.org>
55372
55373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55374         typo in variable name.
55375
55376 2007-06-05  Eric Blake  <ebb9@byu.net>
55377
55378         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55379         Reported by Simon Josefsson.
55380
55381 2007-06-04  Bruno Haible  <bruno@clisp.org>
55382
55383         Avoid test failures on some PowerPC platforms.
55384         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55385         Define differently for PowerPC.
55386         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55387         Reported by Gary V. Vaughan <gary@gnu.org>.
55388
55389 2007-06-02  Bruno Haible  <bruno@clisp.org>
55390
55391         Fix test-stdint failure on FreeBSD/ia64.
55392         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55393         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55394         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55395         * doc/headers/stdint.texi: Update.
55396
55397 2007-06-01  Bruno Haible  <bruno@clisp.org>
55398
55399         * tests/test-binary-io.c (main): Pass a third argument to open().
55400         Reported by Gary V. Vaughan <gary@gnu.org>.
55401
55402 2007-06-01  Bruno Haible  <bruno@clisp.org>
55403
55404         * doc/functions/frexpl.texi: Update for mingw.
55405
55406 2007-06-01  Bruno Haible  <bruno@clisp.org>
55407
55408         * tests/test-lseek.c (main): Disable test of errno for invalid third
55409         argument.
55410         * doc/functions/lseek.texi: Update.
55411         Reported by Gary V. Vaughan <gary@gnu.org>.
55412
55413 2007-05-28  Bruno Haible  <bruno@clisp.org>
55414
55415         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55416
55417 2007-05-31  Eric Blake  <ebb9@byu.net>
55418
55419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55420         cross compiling.
55421
55422 2007-05-30  Eric Blake  <ebb9@byu.net>
55423         and Bruno Haible  <bruno@clisp.org>
55424
55425         Work around mingw test failures exposed by m4-1.4.9b.
55426         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55427         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55428         moment.
55429
55430 2007-05-30  Bruno Haible  <bruno@clisp.org>
55431
55432         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55433         assuming that they are closed. Needed on HP-UX 11.
55434
55435 2007-05-29  Bruno Haible  <bruno@clisp.org>
55436
55437         Fix a problem with #include_next.
55438         * lib/dirent_.h: Split the double-inclusion guard.
55439         * lib/fcntl_.h: Likewise.
55440         * lib/float_.h: Likewise.
55441         * lib/iconv_.h: Likewise.
55442         * lib/inttypes_.h: Likewise.
55443         * lib/locale_.h: Likewise.
55444         * lib/math_.h: Likewise.
55445         * lib/netinet_in_.h: Likewise.
55446         * lib/search_.h: Likewise.
55447         * lib/signal_.h: Likewise.
55448         * lib/stdint_.h: Likewise.
55449         * lib/stdio_.h: Likewise.
55450         * lib/stdlib_.h: Likewise.
55451         * lib/string_.h: Likewise.
55452         * lib/sys_select_.h: Likewise.
55453         * lib/sys_socket_.h: Likewise.
55454         * lib/sys_stat_.h: Likewise.
55455         * lib/sys_time_.h: Likewise.
55456         * lib/sysexits_.h: Likewise.
55457         * lib/time_.h: Likewise.
55458         * lib/unistd_.h: Likewise.
55459         * lib/wchar_.h: Likewise.
55460         * lib/wctype_.h: Likewise.
55461
55462 2007-05-29  Bruno Haible  <bruno@clisp.org>
55463
55464         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55465         for the moment.
55466
55467 2007-05-29  Bruno Haible  <bruno@clisp.org>
55468
55469         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55470         invocation.
55471         Reported by Eric Blake.
55472
55473 2007-05-29  Bruno Haible  <bruno@clisp.org>
55474
55475         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55476         compiling case.
55477
55478 2007-05-29  Eric Blake  <ebb9@byu.net>
55479             Bruno Haible  <bruno@clisp.org>
55480
55481         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55482         cross compiles.
55483
55484 2007-05-28  Eric Blake  <ebb9@byu.net>
55485
55486         * modules/closein-tests (test_closein_LDADD): Support test on
55487         cygwin with libtool.
55488
55489 2007-05-28  Bruno Haible  <bruno@clisp.org>
55490
55491         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55492         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55493         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55494         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55495         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55496         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55497         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55498         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55499         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55500
55501 2007-05-28  Eric Blake  <ebb9@byu.net>
55502
55503         Unconditionally include <config.h> in unit tests.
55504         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55505         * tests/test-allocsa.c, tests/test-arcfour.c,
55506         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55507         tests/test-array_list.c, tests/test-array_oset.c,
55508         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55509         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55510         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55511         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55512         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55513         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55514         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55515         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55516         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55517         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55518         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55519         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55520         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55521         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55522         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55523         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55524         test-md5.c, test-memmem.c, test-printf-posix.c,
55525         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55526         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55527         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55528         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55529         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55530         test-vasnprintf-posix2.c, test-vasnprintf.c,
55531         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55532         test-vfprintf-posix.c, test-vprintf-posix.c,
55533         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55534         test-xvasprintf.c: Likewise.
55535
55536 2007-05-28  Bruno Haible  <bruno@clisp.org>
55537
55538         * gnulib-tool (func_import): Remember the --with-tests command-line
55539         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55540         Reported by Eric Blake.
55541
55542 2007-05-28  Bruno Haible  <bruno@clisp.org>
55543
55544         * modules/ftell-tests: New file.
55545         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55546         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55547
55548         * lib/ftell.c: New file.
55549         * modules/ftell: New file.
55550         * m4/ftell.m4: New file.
55551         * doc/functions/ftell.texi: Update.
55552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55553         REPLACE_FTELL.
55554         * lib/stdio_.h (rpl_ftell): New declaration.
55555         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55556         REPLACE_FTELL.
55557
55558 2007-05-28  Eric Blake  <ebb9@byu.net>
55559
55560         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55561
55562 2007-05-28  Bruno Haible  <bruno@clisp.org>
55563
55564         * modules/fseek-tests: New file.
55565         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55566         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55567
55568         * lib/fseek.c: New file.
55569         * modules/fseek: New file.
55570         * m4/fseek.m4: New file.
55571         * doc/functions/fseek.texi: Update.
55572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55573         REPLACE_FSEEK.
55574         * lib/stdio_.h (rpl_fseek): New declaration.
55575         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55576         REPLACE_FSEEK.
55577
55578 2007-05-28  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/stdio_.h (fflush): More comments.
55581
55582 2007-05-28  Bruno Haible  <bruno@clisp.org>
55583
55584         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55585         runtime test.
55586
55587 2007-05-28  Eric Blake  <ebb9@byu.net>
55588
55589         Improve lseek module.
55590         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55591         * lib/unistd_.h (lseek): Scale back link warning message.
55592         * tests/test-lseek.c: Beef up test.
55593         * tests/test-lseek.sh: Exercise more facets of lseek.
55594         Reported by Bruno Haible.
55595
55596 2007-05-28  Bruno Haible  <bruno@clisp.org>
55597
55598         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55599         to define.
55600
55601 2007-05-27  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55604
55605 2007-05-27  Bruno Haible  <bruno@clisp.org>
55606
55607         * modules/openmp: New file.
55608         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55609         Noah Misch.
55610
55611 2007-05-26  Bruno Haible  <bruno@clisp.org>
55612
55613         * modules/chdir-long (Depends-on): Add fchdir.
55614         * modules/chdir-safer (Depends-on): Likewise.
55615         * modules/fts (Depends-on): Likewise.
55616         * modules/fts-lgpl (Depends-on): Likewise.
55617         * modules/openat (Depends-on): Likewise.
55618         * modules/savewd (Depends-on): Likewise.
55619
55620 2007-05-24  Eric Blake  <ebb9@byu.net>
55621
55622         Fix lseek on mingw.
55623         * modules/lseek: New module.
55624         * m4/lseek.m4: New file.
55625         * lib/lseek.c: New file.
55626         * modules/lseek-tests: New file.
55627         * tests/test-lseek.c: New file.
55628         * tests/test-lseek.sh: New file.
55629         * MODULES.html.sh: Document lseek module.
55630         * modules/fflush (Depends-on): Add lseek, fseeko.
55631         * modules/fseeko (Depends-on): Likewise.
55632         * modules/ftello (Depends-on): Likewise.
55633         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55634         broken.
55635         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55636         broken.
55637         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55638         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55639         * lib/ftello.c (rpl_ftello): Likewise.
55640         * tests/test-fseeko.c (main): Test this.
55641         * tests/test-fseeko.sh: Likewise.
55642         * tests/test-ftello.c (main): Likewise.
55643         * tests/test-ftello.sh: Likewise.
55644         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55645         implies replacing fseek.
55646         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55647         HAVE_FTELLO.
55648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55649         * modules/unistd (Makefile.am): Likewise.
55650         * lib/unistd_.h (lseek): Declare a replacement.
55651         * doc/functions/lseek.texi (lseek): Document this fix.
55652         * doc/functions/fseek.texi (fseek): Likewise.
55653         * doc/functions/ftell.texi (ftell): Likewise.
55654
55655 2007-05-24  Bruno Haible  <bruno@clisp.org>
55656
55657         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55658         in the printed representation of a NaN.
55659         * tests/test-vasprintf-posix.c (test_function): Likewise.
55660         * tests/test-snprintf-posix.h (test_function): Likewise.
55661         * tests/test-sprintf-posix.h (test_function): Likewise.
55662         Reported by Eric Blake.
55663
55664 2007-05-23  Eric Blake  <ebb9@byu.net>
55665
55666         Fix fseeko/ftello on cygwin 1.5.24.
55667         * doc/functions/fseeko.texi (fseeko): Document the fix.
55668         * doc/functions/ftello.texi (ftello): Document the fix.
55669         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55670         * doc/functions/stdout.text (stdout): New file.
55671         * doc/functions/stderr.text (stderr): New file.
55672         * doc/gnulib.texi (Function Substitutes): Use new files.
55673         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55674         prior to 1.7.0.
55675         * tests/test-ftello.c (main): Likewise for ftello.
55676         * tests/test-fseeko.sh: New file.
55677         * tests/test-ftello.sh: New file.
55678         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55679         with seekable stdin.
55680         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55681         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55682         (gl_REPLACE_FSEEKO): New macro.
55683         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55684         * modules/fseeko (Files): Distribute fseeko.c.
55685         * modules/ftello (Files): Distribute ftello.c.
55686         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55687         mode.
55688         * lib/ftello.c (rpl_ftello): New file.
55689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55690         fseeko, ftello.
55691         (gl_STDIN_LARGE_OFFSET): New macro.
55692         * modules/stdio (Makefile.am): Perform the replacement.
55693         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55694
55695 2007-05-23  Bruno Haible  <bruno@clisp.org>
55696
55697         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55698         GNULIB_POSIXCHECK is defined.
55699
55700 2007-05-21  Bruno Haible  <bruno@clisp.org>
55701
55702         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55703         Check also the output for NaN arguments. When cross-compiling, guess
55704         no on IRIX.
55705         * lib/vasnprintf.c: Update comments.
55706         * tests/test-vasnprintf-posix.c (strisnan): New function.
55707         (test_function): Use it.
55708         * tests/test-vasprintf-posix.c (strisnan): New function.
55709         (test_function): Use it.
55710         * tests/test-snprintf-posix.h (strisnan): New function.
55711         (test_function): Use it.
55712         * tests/test-sprintf-posix.h (strisnan): New function.
55713         (test_function): Use it.
55714         Reported by Eric Blake.
55715
55716 2007-05-20  Bruno Haible  <bruno@clisp.org>
55717
55718         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55719         numbers that fails on BeOS.
55720         * doc/functions/frexpl.texi: Update.
55721
55722 2007-05-20  Jim Meyering  <jim@meyering.net>
55723
55724         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55725         forced upon us by glibc-2.6.
55726
55727 2007-05-20  Bruno Haible  <bruno@clisp.org>
55728
55729         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55730         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55731         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55732         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55733         NEED_PRINTF_INFINITE.
55734         (is_infinitel): New function.
55735         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55736         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55737         gl_PREREQ_VASNPRINTF_INFINITE.
55738         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55739         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55740         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55741         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55742         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55743         gl_PREREQ_VASNPRINTF_INFINITE.
55744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55745         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55746         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55747         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55748         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55750         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55751         * doc/functions/fprintf.texi: Update.
55752         * doc/functions/printf.texi: Update.
55753         * doc/functions/snprintf.texi: Update.
55754         * doc/functions/sprintf.texi: Update.
55755         * doc/functions/vfprintf.texi: Update.
55756         * doc/functions/vprintf.texi: Update.
55757         * doc/functions/vsnprintf.texi: Update.
55758         * doc/functions/vsprintf.texi: Update.
55759
55760 2007-05-20  Bruno Haible  <bruno@clisp.org>
55761
55762         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55763         was not found in libc.
55764         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55765
55766 2007-05-20  Bruno Haible  <bruno@clisp.org>
55767
55768         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55769         printed as "-nan" instead of "nan".
55770         * tests/test-vasprintf-posix.c (test_function): Likewise.
55771         * tests/test-snprintf-posix.h (test_function): Likewise.
55772         * tests/test-sprintf-posix.h (test_function): Likewise.
55773         Needed for HP-UX 11.
55774
55775 2007-05-20  Jim Meyering  <jim@meyering.net>
55776
55777         Fix buggy test for the fchownat-deref bug.
55778         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55779         symlink required for the run-test.  Without it, this test would
55780         always declare that fchownat doesn't work, and client code would
55781         unnecessarily use the replacement function with fixed libc.
55782         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55783         Reported by Greg Schafer.
55784
55785 2007-05-19  Bruno Haible  <bruno@clisp.org>
55786
55787         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55788         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55789         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55790         Needed for IRIX 6.5 and Solaris 2.5.1.
55791
55792 2007-05-19  Bruno Haible  <bruno@clisp.org>
55793
55794         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55795         (test_function): Skip tests involving -0.0 on platforms where
55796         -0.0 = 0.0.
55797         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55798         (test_function): Skip tests involving -0.0 on platforms where
55799         -0.0 = 0.0.
55800         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55801         (test_function): Skip tests involving -0.0 on platforms where
55802         -0.0 = 0.0.
55803         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55804         (test_function): Skip tests involving -0.0 on platforms where
55805         -0.0 = 0.0.
55806         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55807         tests.
55808         * tests/test-printf-posix.h (test_function): Likewise.
55809         * tests/test-printf-posix.output: Remove all -0.0 related results.
55810         Needed for IRIX 6.5.
55811
55812 2007-05-19  Bruno Haible  <bruno@clisp.org>
55813
55814         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55815         printed as "nan0x7fffffff" instead of "nan".
55816         * tests/test-vasprintf-posix.c (test_function): Likewise.
55817         * tests/test-snprintf-posix.h (test_function): Likewise.
55818         * tests/test-sprintf-posix.h (test_function): Likewise.
55819         * tests/test-fprintf-posix.h (NaN): Remove macro.
55820         (test_function): Remove all NaN related tests.
55821         * tests/test-printf-posix.h (NaN): Remove macro.
55822         (test_function): Remove all NaN related tests.
55823         * tests/test-printf-posix.output: Remove all NaN related results.
55824         Needed for IRIX 6.5.
55825
55826 2007-05-19  Bruno Haible  <bruno@clisp.org>
55827
55828         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55830
55831 2007-05-19  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/float_.h: New file.
55834         * m4/float_h.m4: New file.
55835         * modules/float: New file.
55836         * modules/isnanl (Dependencies): Add float.
55837         * modules/isnanl-nolibm (Dependencies): Likewise.
55838         * modules/mathl (Dependencies): Likewise.
55839         * modules/printf-frexpl (Dependencies): Likewise.
55840         * modules/signbit (Dependencies): Likewise.
55841         * modules/vasnprintf (Dependencies): Likewise.
55842         * doc/headers/float.texi: Update.
55843
55844 2007-05-19  Jim Meyering  <jim@meyering.net>
55845
55846         * lib/utimens.c (gl_futimens): Rename from futimens,
55847         now that glibc-2.6 declares futimens.
55848         * lib/utimens.h: Likewise.
55849
55850 2007-05-19  Bruno Haible  <bruno@clisp.org>
55851
55852         Avoid test failures on mingw.
55853         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55854         * tests/test-printf-posix.sh: Likewise.
55855         * tests/test-vfprintf-posix.sh: Likewise.
55856         * tests/test-vprintf-posix.sh: Likewise.
55857
55858 2007-05-19  Bruno Haible  <bruno@clisp.org>
55859
55860         Fix *printf result for NaN, Inf, -0.0 on mingw.
55861         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55862         * lib/vasnprintf.c: Include math.h and isnan.h.
55863         (is_infinite_or_zero): New function.
55864         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55865         values in the %f, %F, %e, %E, %g, %G directives.
55866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55867         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55868         gl_PRINTF_INFINITE and test its result. Invoke
55869         gl_PREREQ_VASNPRINTF_INFINITE.
55870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55877         * doc/functions/fprintf.texi: Update.
55878         * doc/functions/printf.texi: Update.
55879         * doc/functions/snprintf.texi: Update.
55880         * doc/functions/sprintf.texi: Update.
55881         * doc/functions/vfprintf.texi: Update.
55882         * doc/functions/vprintf.texi: Update.
55883         * doc/functions/vsnprintf.texi: Update.
55884         * doc/functions/vsprintf.texi: Update.
55885
55886 2007-05-19  Bruno Haible  <bruno@clisp.org>
55887
55888         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55889         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55890         Instead of multiplying with 10^k, set extra_zeroes to k.
55891         (scale10_round_long_double): Remove function.
55892
55893 2007-05-18  Bruno Haible  <bruno@clisp.org>
55894
55895         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55896         introduced on 2007-05-06.
55897
55898 2007-05-18  Bruno Haible  <bruno@clisp.org>
55899
55900         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55901         %g directives.
55902         * tests/test-vasprintf-posix.c (test_function): Likewise.
55903         * tests/test-snprintf-posix.h (test_function): Likewise.
55904         * tests/test-sprintf-posix.h (test_function): Likewise.
55905
55906 2007-05-18  Bruno Haible  <bruno@clisp.org>
55907
55908         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55909         (strmatch): New function.
55910         (test_function): Test the %f directive on numbers of various exponents.
55911         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55912         (strmatch): New function.
55913         (test_function): Test the %f directive on numbers of various exponents.
55914         * tests/test-snprintf-posix.h (strmatch): New function.
55915         (test_function): Test the %f directive on numbers of various exponents.
55916         * tests/test-sprintf-posix.h (strmatch): New function.
55917         (test_function): Test the %f directive on numbers of various exponents.
55918         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55919         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55920         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55921         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55922
55923 2007-05-18  Bruno Haible  <bruno@clisp.org>
55924
55925         Add support for 'long double' number output.
55926         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55927         * lib/vasnprintf.c: Include math.h and float+.h.
55928         (mp_limb_t): New type.
55929         (GMP_LIMB_BITS): New macro.
55930         (mp_twolimb_t): New type.
55931         (GMP_TWOLIMB_BITS): New macro.
55932         (mpn_t): New type.
55933         (multiply, divide, convert_to_decimal, decode_long_double,
55934         scale10_round_long_double, scale10_round_decimal_long_double,
55935         floorlog10l): New functions.
55936         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55937         for the %f, %F, %e, %E, %g, %G directives.
55938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55939         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55940         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55941         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55943         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55944         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55945         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55946         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55949         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55950         * modules/snprintf-posix (Depends-on): Likewise.
55951         * modules/sprintf-posix (Depends-on): Likewise.
55952         * modules/vasnprintf-posix (Depends-on): Likewise.
55953         * modules/vasprintf-posix (Depends-on): Likewise.
55954         * modules/vfprintf-posix (Depends-on): Likewise.
55955         * modules/vsnprintf-posix (Depends-on): Likewise.
55956         * modules/vsprintf-posix (Depends-on): Likewise.
55957         * modules/vasnprintf (Files): Add lib/float+.h.
55958         * doc/functions/fprintf.texi: Update.
55959         * doc/functions/printf.texi: Update.
55960         * doc/functions/snprintf.texi: Update.
55961         * doc/functions/sprintf.texi: Update.
55962         * doc/functions/vfprintf.texi: Update.
55963         * doc/functions/vprintf.texi: Update.
55964         * doc/functions/vsnprintf.texi: Update.
55965         * doc/functions/vsprintf.texi: Update.
55966
55967 2007-05-18  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55970
55971 2007-05-18  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55974         for printing 64-bit integers. Needed for mingw.
55975
55976 2007-05-18  Bruno Haible  <bruno@clisp.org>
55977
55978         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55979         gl_FUNC_FREXPL_WORKS.
55980         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55981
55982 2007-05-18  Bruno Haible  <bruno@clisp.org>
55983
55984         * modules/frexpl-nolibm-tests: New file.
55985
55986         * modules/frexpl-nolibm: New file.
55987         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55988
55989 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55990
55991         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55992         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55993         GCC 4.2, which otherwise issues a lot of warnings.
55994         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55995         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55996         Likewise.
55997         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55998         * modules/iconv_open (iconv.h): Likewise.
55999         * modules/locale (locale.h): Likewise.
56000         * modules/netinet_in (netinet/in.h): Likewise.
56001         * modules/sys_select (sys_select.h): Likewise.
56002         * modules/sys_socket (sys/socket.h): Likewise.
56003         * modules/sys_stat (sys/stat.h): Likewise.
56004         * modules/sysexits (sysexits.h): Likewise.
56005         * modules/unistd (unistd.h): Likewise.
56006
56007 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56008
56009         * modules/closein-tests (Makefile.am): Distribute
56010         `test-closein.sh'.
56011
56012 2007-05-17  Bruno Haible  <bruno@clisp.org>
56013
56014         * tests/test-printf-posix.output: Renamed from
56015         tests/test-fprintf-posix.out.
56016         * modules/fprintf-posix-tests: Update.
56017         * modules/printf-posix-tests: Update.
56018         * modules/vfprintf-posix-tests: Update.
56019         * modules/vprintf-posix-tests: Update.
56020         * tests/test-fprintf-posix.sh: Update.
56021         * tests/test-printf-posix.sh: Update.
56022         * tests/test-vfprintf-posix.sh: Update.
56023         * tests/test-vprintf-posix.sh: Update.
56024         Reported by Ralf Wildenhues.
56025
56026 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56027
56028         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56029         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56030         GCC 4.2, which otherwise issues a lot of warnings.
56031         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56032         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56033         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56034         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56035         it should no longer be needed.
56036         * lib/string_.h: Likewise.
56037         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56038         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56039         * modules/inttypes (inttypes.h): Likewise.
56040         * modules/math (math.h): Likewise.
56041         * modules/search (search.h): Likewise.
56042         * modules/signal (signal.h): Likewise.
56043         * modules/stdint (stdint.h): Likewise.
56044         * modules/stdio (stdio.h): Likewise.
56045         * modules/stdlib (stdlib.h): Likewise.
56046         * modules/string (string.h): Likewise.
56047         * modules/sys_time (sys/time.h): Likewise.
56048         * modules/time (time.h): Likewise.
56049         * modules/wchar (wchar.h): Likewise.
56050         * modules/wctype (wtype.h): Likewise.
56051
56052 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56053
56054         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56055
56056 2007-05-13  Bruno Haible  <bruno@clisp.org>
56057
56058         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56059         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56060         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56061         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56062         (gl_PREREQ_STRTOK_R): Don't require it here.
56063
56064 2007-05-13  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56067         when used in C++ mode.
56068
56069 2007-05-12  Bruno Haible  <bruno@clisp.org>
56070
56071         * lib/linebuffer.h: Tweak doc.
56072         * lib/linebuffer.c: Likewise.
56073
56074 2007-05-12  James Youngman  <jay@gnu.org>
56075
56076         * lib/linebuffer.c (readlinebuffer_delim): New function,
56077         like readlinebuffer, but use a caller-specified delimiter.
56078         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56079         as the delimiter.
56080         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56081
56082 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56083
56084         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56085         * modules/openat (Files): Remove openat-die.c.
56086         (Depends-on): Add openat-die.
56087         * modules/openat-die: New module.
56088
56089 2007-05-06  Bruno Haible  <bruno@clisp.org>
56090
56091         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56092         Update with info about Cygwin.
56093         * doc/functions/fprintf.texi: Update.
56094         * doc/functions/printf.texi: Update.
56095         * doc/functions/snprintf.texi: Update.
56096         * doc/functions/sprintf.texi: Update.
56097         * doc/functions/vfprintf.texi: Update.
56098         * doc/functions/vprintf.texi: Update.
56099         * doc/functions/vsnprintf.texi: Update.
56100         * doc/functions/vsprintf.texi: Update.
56101         Reported by Eric Blake.
56102
56103 2007-05-06  Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56106         padding ourselves for the floating-point directives.
56107         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56110         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56111         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56112         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56113         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56114         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56118         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56119         * tests/test-snprintf-posix.h (test_function): Also check the width
56120         and some flags in the %f directive.
56121         * tests/test-sprintf-posix.h (test_function): Likewise.
56122         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56123         * tests/test-vasprintf-posix.c (test_function): Likewise.
56124         * doc/functions/fprintf.texi: Update.
56125         * doc/functions/printf.texi: Update.
56126         * doc/functions/snprintf.texi: Update.
56127         * doc/functions/sprintf.texi: Update.
56128         * doc/functions/vfprintf.texi: Update.
56129         * doc/functions/vprintf.texi: Update.
56130         * doc/functions/vsnprintf.texi: Update.
56131         * doc/functions/vsprintf.texi: Update.
56132
56133 2007-05-06  Bruno Haible  <bruno@clisp.org>
56134
56135         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56136         pass the ' flag character to sprintf or snprintf.
56137         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56140         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56141         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56142         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56144         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56146         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56148         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56149         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56150         flag.
56151         * tests/test-sprintf-posix.h (test_function): Likewise.
56152         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56153         * tests/test-vasprintf-posix.c (test_function): Likewise.
56154         * doc/functions/fprintf.texi: Update.
56155         * doc/functions/printf.texi: Update.
56156         * doc/functions/snprintf.texi: Update.
56157         * doc/functions/sprintf.texi: Update.
56158         * doc/functions/vfprintf.texi: Update.
56159         * doc/functions/vprintf.texi: Update.
56160         * doc/functions/vsnprintf.texi: Update.
56161         * doc/functions/vsprintf.texi: Update.
56162
56163 2007-05-01  Bruno Haible  <bruno@clisp.org>
56164
56165         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56166
56167 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56168
56169         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56170         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56171
56172 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56175         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56177
56178 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56179
56180         * lib/argp-help.c (struct hol_entry): New member `ord'.
56181         (HOL_ENTRY_PTRCMP): Use ord for comparison
56182         (hol_sort): Initialize ord.
56183
56184 2007-05-01  Bruno Haible  <bruno@clisp.org>
56185
56186         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56187         Reported by Eric Blake.
56188         * doc/gnulib.texi (Function Substitutes): Update.
56189
56190 2007-05-01  Bruno Haible  <bruno@clisp.org>
56191
56192         * doc/functions.texi: Remove file, now redundant through
56193         doc/functions/*.texi.
56194
56195 2007-05-01  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/argp (Depends-on): Add sleep.
56198
56199 2007-05-01  Bruno Haible  <bruno@clisp.org>
56200
56201         * modules/sleep-tests: New file.
56202         * tests/test-sleep.c: New file.
56203
56204         * modules/sleep: New file.
56205         * lib/sleep.c: New file.
56206         * m4/sleep.m4: New file.
56207         * lib/unistd_.h (sleep): New declaration.
56208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56209         HAVE_SLEEP.
56210         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56211         * doc/functions/sleep.texi: Document the sleep module.
56212
56213 2007-05-01  Bruno Haible  <bruno@clisp.org>
56214
56215         * lib/sigprocmask.h: Remove file.
56216         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56217         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56218         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56219         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56220         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56221         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56222         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56223         HAVE_SIGSET_T as a shell variable.
56224         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56225         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56226         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56227         (Depends-on): Add signal. Remove verify.
56228         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56229         (Include): Mention <signal.h> instead of sigprocmask.h.
56230         * NEWS: Mention the change.
56231         * lib/fatal-signal.c: Don't include sigprocmask.h.
56232
56233 2007-05-01  Bruno Haible  <bruno@clisp.org>
56234
56235         * modules/signal: New file.
56236         * lib/signal_.h: New file.
56237         * m4/signal_h.m4: New file.
56238
56239 2007-05-01  Bruno Haible  <bruno@clisp.org>
56240
56241         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56242         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56243         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56244         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56245
56246 2007-05-01  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56249         configure time.
56250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56251         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56252         * modules/sys_stat (Makefile.am): Substitute their values into
56253         sys/stat.h.
56254
56255 2007-05-01  Bruno Haible  <bruno@clisp.org>
56256
56257         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56258         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56259         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56260
56261 2007-05-01  Bruno Haible  <bruno@clisp.org>
56262
56263         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56264         'assert' module here.
56265
56266 2007-05-01  Bruno Haible  <bruno@clisp.org>
56267
56268         * doc/functions/*.texi: New files.
56269         * doc/functions/google-ranking.txt: New file.
56270         * doc/gnulib.texi (Function Substitutes): New chapter.
56271         (ctime, inet_ntoa): Remove sections.
56272         * doc/ctime.texi: Remove file.
56273         * doc/inet_ntoa.texi: Remove file.
56274         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56275         dependencies.
56276         (%.info): New rule, specifying a --reference-limit.
56277
56278 2007-05-01  Bruno Haible  <bruno@clisp.org>
56279
56280         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56281
56282 2007-05-01  Bruno Haible  <bruno@clisp.org>
56283
56284         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56285         the portability of 'mkdir' to mingw systems.
56286
56287 2007-05-01  Bruno Haible  <bruno@clisp.org>
56288
56289         * doc/headers/google-ranking.txt: New file.
56290
56291 2007-04-30  Eric Blake  <ebb9@byu.net>
56292
56293         Prefer fseeko to fseek.
56294         * modules/getpass (Depends-on): Add fseeko.
56295         * lib/getpass.c (getpass): Use fseeko, not fseek.
56296
56297 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56298
56299         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56300         assumes the sorting is stable, while most qsort implementations
56301         are not.  Use argument addresses to ensure they never compare as
56302         equal.
56303
56304         * tests/test-argp-2.sh (usage-indent test): Fix output
56305         (func_compare): Restore diff options
56306         * tests/test-argp.c: Restore #include "progname.h"
56307
56308 2007-04-29  Bruno Haible  <bruno@clisp.org>
56309
56310         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56312         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56314         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56315         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56316         (TESTS, check_PROGRAMS): Add test-snprintf.
56317         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56318         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56319         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56320         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56321         assertions that fail on HP-UX, OSF/1, or IRIX.
56322         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56323
56324 2007-04-29  Bruno Haible  <bruno@clisp.org>
56325
56326         * MODULES.html.sh (posix_functions): Remove 'contents'.
56327
56328 2007-04-29  Karl Berry  <karl@gnu.org>
56329
56330         * config/srclist.txt (gendocs_template_min): new entry.
56331
56332 2007-04-29  Bruno Haible  <bruno@clisp.org>
56333
56334         Work around fpurge bug on BSD systems.
56335         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56336         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56337         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56338         fpurge to rpl_fpurge if the system already has this function.
56339         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56340         the case where the system already has this function. Correct invariants
56341         on BSD systems.
56342         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56343         BSD systems.
56344
56345 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56346
56347         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56348         proposed by Sven Verdoolaege.
56349
56350         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56351         options.
56352         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56353         (usage and help tests): Update
56354
56355 2007-04-29  Bruno Haible  <bruno@clisp.org>
56356
56357         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56358         Print more information in case of failure. Disable a test on BeOS.
56359
56360 2007-04-29  Bruno Haible  <bruno@clisp.org>
56361
56362         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56363         This helps debugging on systems on which no gdb is available.
56364
56365 2007-04-29  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/freading.h: Improve comments.
56368         * lib/fwriting.h: Likewise.
56369         * tests/test-freading.c (main): Don't check freading immediately after
56370         repositioning. Needed for glibc.
56371
56372 2007-04-29  Bruno Haible  <bruno@clisp.org>
56373
56374         * lib/freading.c (freading): Trivial simplification.
56375
56376 2007-04-28  Bruno Haible  <bruno@clisp.org>
56377
56378         * tests/test-fwriting.c (main): Also test the interaction between
56379         fflush and fwriting.
56380         * modules/fwriting-tests (Depends-on): Add fflush.
56381
56382         * tests/test-freading.c (main): Also test the interaction between
56383         fflush and freading.
56384         * modules/freading-tests (Depends-on): Add fflush.
56385
56386 2007-04-28  Bruno Haible  <bruno@clisp.org>
56387
56388         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56389         fseeko and ftello.
56390         Suggested by Eric Blake.
56391
56392 2007-04-28  Jim Meyering  <jim@meyering.net>
56393
56394         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56395         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56396         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56397
56398 2007-04-27  Eric Blake  <ebb9@byu.net>
56399
56400         * doc/headers/assert.texi (assert.h): Document assert module use.
56401
56402 2007-04-27  Bruno Haible  <bruno@clisp.org>
56403
56404         * doc/headers/*.texi: New files.
56405         * doc/gnulib.texi (Header File Substitutes): New chapter.
56406         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56407         dependencies.
56408         (standards.info ,standards.html, standards.dvi): Update dependencies.
56409         (mostlyclean, clean): New targets.
56410
56411 2007-04-27  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56414         * modules/sysexits (Files, Makefile.am): Update.
56415
56416         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56417         * modules/sys_socket (Files, Makefile.am): Update.
56418
56419         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56420         * modules/sys_stat (Files, Makefile.am): Update.
56421
56422 2007-04-27  Eric Blake  <ebb9@byu.net>
56423
56424         * lib/freading.h: Improve comments.
56425         * lib/fwriting.h: Likewise.
56426         * lib/fflush.c: Likewise.
56427
56428         Fix closein for mingw.
56429         * modules/closein-tests: Add tests for closein.
56430         * tests/test-closein.c: New file.
56431         * tests/test-closein.sh: Likewise.
56432         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56433         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56434
56435 2007-04-27  Bruno Haible  <bruno@clisp.org>
56436
56437         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56438         version is < 6.
56439         * lib/math_.h [__DECC]: Likewise.
56440         * lib/stdio_.h [__DECC]: Likewise.
56441         * lib/stdlib_.h [__DECC]: Likewise.
56442         * lib/string_.h [__DECC]: Likewise.
56443         * lib/time_.h [__DECC]: Likewise.
56444         * lib/wchar_.h [__DECC]: Likewise.
56445         * lib/wctype_.h [__DECC]: Likewise.
56446
56447 2007-04-27  Bruno Haible  <bruno@clisp.org>
56448
56449         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56450
56451 2007-04-27  Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/fflush.c: Add comments.
56454         * modules/fpurge-tests (Depends-on): Add fflush.
56455         * modules/freadable-tests (Depends-on): Likewise.
56456         * modules/fwritable-tests (Depends-on): Likewise.
56457
56458 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56459
56460         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56461         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56462         Report by Bruno Haible <bruno@clisp.org>.
56463
56464 2007-04-26  Eric Blake  <ebb9@byu.net>
56465
56466         Fix fflush on mingw.
56467         * modules/fflush (Depends-on): Add freading.
56468         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56469         but unread data.
56470
56471 2007-04-26  Eric Blake  <ebb9@byu.net>
56472         and Bruno Haible  <bruno@clisp.org>
56473
56474         Implement freading and fwriting.
56475         * lib/freading.c: New file.
56476         * lib/freading.h: Likewise.
56477         * m4/freading.m4: Likewise.
56478         * modules/freading: Likewise.
56479         * modules/freading-tests: Likewise.
56480         * tests/test-freading.c: Likewise.
56481         * lib/fwriting.c: New file.
56482         * lib/fwriting.h: Likewise.
56483         * m4/fwriting.m4: Likewise.
56484         * modules/fwriting: Likewise.
56485         * modules/fwriting-tests: Likewise.
56486         * tests/test-fwriting.c: Likewise.
56487         * MODULES.html.sh (File stream based Input/Output): Mention them.
56488
56489 2007-04-26  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56492         'long' when we assume it.
56493         Suggested by Eric Blake.
56494
56495 2007-04-26  Bruno Haible  <bruno@clisp.org>
56496
56497         Ensure fseeko, ftello are declared on glibc systems.
56498         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56499         * modules/fseeko (configure.ac-early): Likewise.
56500         * modules/ftello (configure.ac-early): Likewise.
56501         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56502         AC_FUNC_FSEEKO for this.
56503         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56504         (gl_CHECK_FSEEKO): Remove macro.
56505
56506 2007-04-26  Bruno Haible  <bruno@clisp.org>
56507
56508         * tests/test-fflush.c (main): Also check the ftell result after
56509         fflush and fseek/fseeko.
56510         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56511         file descriptor position cache in the stream.
56512         * lib/fseeko.c (rpl_fseeko): Likewise.
56513
56514 2007-04-26  Bruno Haible  <bruno@clisp.org>
56515
56516         * modules/fflush-tests (Depends-on): Add fseeko.
56517
56518 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56519             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56520
56521         * lib/argz_.h: ensure error_t definition is obtained in same
56522         mechanism system argz.h would have.
56523         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56524         argz facilities are known bad.  Err on the side of caution if
56525         cross-compiling.
56526
56527 2007-04-25  Eric Blake  <ebb9@byu.net>
56528
56529         * lib/fpurge.c (includes): Use stdlib.h for free.
56530         * tests/test-fflush.c (main): Also test fflush-fseeko.
56531
56532 2007-04-25  Bruno Haible  <bruno@clisp.org>
56533
56534         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56535         * lib/fseeko.c: New file.
56536         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56537         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56538         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56539         gl_FUNC_FSEEKO.
56540         (gl_FUNC_FSEEKO): Invoke it.
56541         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56542         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56543         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56544
56545 2007-04-25  Bruno Haible  <bruno@clisp.org>
56546
56547         * modules/fflush (Depends-on): Add ftello.
56548
56549 2007-04-25  Bruno Haible  <bruno@clisp.org>
56550
56551         * modules/ftello-tests: New file.
56552         * tests/test-ftello.c: New file.
56553
56554         * modules/ftello: New file.
56555         * m4/ftello.m4: New file.
56556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56557         HAVE_FTELLO.
56558         * lib/stdio_.h (ftello): New declaration.
56559         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56560         HAVE_FTELLO.
56561
56562 2007-04-25  Bruno Haible  <bruno@clisp.org>
56563
56564         * modules/fseeko-tests: New file.
56565         * tests/test-fseeko.c: New file.
56566
56567         * modules/fseeko: New file.
56568         * m4/fseeko.m4: New file.
56569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56570         HAVE_FSEEKO.
56571         * lib/stdio_.h (fseeko): New declaration.
56572         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56573         HAVE_FSEEKO.
56574
56575 2007-04-25  Bruno Haible  <bruno@clisp.org>
56576
56577         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56578
56579 2007-04-25  Bruno Haible  <bruno@clisp.org>
56580
56581         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56582         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56583         * tests/test-unistd.c: Likewise.
56584         * tests/test-fcntl.c: Likewise.
56585
56586 2007-04-23  Eric Blake  <ebb9@byu.net>
56587
56588         * lib/fflush.c: Fix missing include.
56589         Reported by Bruno Haible.
56590
56591 2007-04-23  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56594         Reported by Eric Blake.
56595
56596 2007-04-23  Bruno Haible  <bruno@clisp.org>
56597
56598         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56599
56600 2007-04-23  Bruno Haible  <bruno@clisp.org>
56601
56602         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56603
56604 2007-04-23  Bruno Haible  <bruno@clisp.org>
56605
56606         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56607         Needed on HP-UX 11.
56608
56609 2007-04-16  Eric Blake  <ebb9@byu.net>
56610
56611         Make fflush rely on fpurge.
56612         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56613         open coding all variants.
56614         * modules/fflush (Depends-on): Add fpurge and unistd.
56615         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56616         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56617
56618         Fix --with-tests compilation on cygwin.
56619         * modules/argmatch-tests (Makefile.am): List gnulib library first
56620         in LDADD.
56621         * modules/argp-tests (Makefile.am): Likewise.
56622         * modules/array-list-tests (Makefile.am): Likewise.
56623         * modules/array-oset-tests (Makefile.am): Likewise.
56624         * modules/avltree-list-tests (Makefile.am): Likewise.
56625         * modules/avltree-oset-tests (Makefile.am): Likewise.
56626         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56627         * modules/carray-list-tests (Makefile.am): Likewise.
56628         * modules/dirname-tests (Makefile.am): Likewise.
56629         * modules/frexp-tests (Makefile.am): Likewise.
56630         * modules/isnanl-tests (Makefile.am): Likewise.
56631         * modules/linked-list-tests (Makefile.am): Likewise.
56632         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56633         * modules/lock-tests (Makefile.am): Likewise.
56634         * modules/rbtree-list-tests (Makefile.am): Likewise.
56635         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56636         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56637         * modules/tls-tests (Makefile.am): Likewise.
56638         * modules/tsearch-tests (Makefile.am): Likewise.
56639         * modules/xvasprintf-tests (Makefile.am): Likewise.
56640
56641         Fix fpurge for cygwin.
56642         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56643         value.
56644         * modules/fpurge-tests (Depends-on): Clean up trash.
56645
56646 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56647
56648         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56649
56650         * m4/autobuild.m4: Re-indent.
56651
56652 2007-04-13  Bruno Haible  <bruno@clisp.org>
56653
56654         * modules/fpurge-tests: New file.
56655         * tests/test-fpurge.c: New file.
56656
56657         * modules/fpurge: New file.
56658         * lib/fpurge.h: New file.
56659         * lib/fpurge.c: New file.
56660         * m4/fpurge.m4: New file.
56661
56662 2007-04-13  Bruno Haible  <bruno@clisp.org>
56663
56664         * modules/fbufmode-tests: New file.
56665         * tests/test-fbufmode.c: New file.
56666
56667         * modules/fbufmode: New file.
56668         * lib/fbufmode.h: New file.
56669         * lib/fbufmode.c: New file.
56670         * m4/fbufmode.m4: New file.
56671
56672 2007-04-13  Bruno Haible  <bruno@clisp.org>
56673
56674         * modules/fwritable-tests: New file.
56675         * tests/test-fwritable.c: New file.
56676
56677         * modules/fwritable: New file.
56678         * lib/fwritable.h: New file.
56679         * lib/fwritable.c: New file.
56680         * m4/fwritable.m4: New file.
56681
56682 2007-04-13  Bruno Haible  <bruno@clisp.org>
56683
56684         * modules/freadable-tests: New file.
56685         * tests/test-freadable.c: New file.
56686
56687         * modules/freadable: New file.
56688         * lib/freadable.h: New file.
56689         * lib/freadable.c: New file.
56690         * m4/freadable.m4: New file.
56691
56692 2007-04-13  Bruno Haible  <bruno@clisp.org>
56693
56694         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56695         MOSTLYCLEANFILES.
56696
56697 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56700         gzip bootstrap.conf to avoid dragging in i18n machinery.
56701         (gnulib_tool_option): Use it.
56702
56703 2007-04-13  Bruno Haible  <bruno@clisp.org>
56704
56705         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56706         %F directives.
56707         * tests/test-vasprintf-posix.c (test_function): Likewise.
56708         * tests/test-snprintf-posix.h (test_function): Likewise.
56709         * tests/test-sprintf-posix.h (test_function): Likewise.
56710         * tests/test-fprintf-posix.h (test_function): Likewise.
56711         * tests/test-printf-posix.h (test_function): Likewise.
56712         * tests/test-fprintf-posix.out: Likewise.
56713
56714 2007-04-13  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56717         * modules/tls-tests (configure.ac): Likewise.
56718         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56719
56720 2007-04-13  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/tls.c (glthread_tls_get): Fix return type.
56723         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56724
56725 2007-04-12  Eric Blake  <ebb9@byu.net>
56726
56727         * modules/gettime (Depends-on): Remove gettime.
56728         Reported by Dmitry V. Levin.
56729
56730 2007-04-12  Bruno Haible  <bruno@clisp.org>
56731
56732         * modules/fflush (Include): Mention <stdio.h>.
56733         * modules/strtoimax (Include): Mention <inttypes.h>.
56734         * modules/strtoumax (Include): Likewise.
56735
56736 2007-04-12  Eric Blake  <ebb9@byu.net>
56737
56738         * .cvsignore: New file.
56739         * .gitignore: Likewise.
56740
56741 2007-04-12  Bruno Haible  <bruno@clisp.org>
56742
56743         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56744         not before, since $(LDADD) often contains libgnu.a.
56745         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56746         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56747         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56748         Needed on Cygwin.
56749
56750 2007-04-12  Eric Blake  <ebb9@byu.net>
56751
56752         Work around glibc's failure to flush stdin on fclose.
56753         * lib/closein.c (close_stdin): Flush stdin before closing.
56754
56755         Work around glibc's failure to reset seekable stdin on exit.
56756         * modules/closein: New module.
56757         * lib/closein.c: New file.
56758         * lib/closein.h: Likewise.
56759         * m4/closein.m4: Likewise.
56760         * MODULES.html.sh (File stream based Input/Output): Document it.
56761
56762 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56763
56764         * gnulib-tool: Rename generated 'autobuild' script to
56765         'do-autobuild' in --create-megatestdir output.
56766
56767         * doc/gnulib.texi (Build robot for gnulib): Fix.
56768
56769 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56770
56771         * modules/sysexits (Depends-on): Add absolute-header.
56772
56773 2007-04-12  Eric Blake  <ebb9@byu.net>
56774
56775         No need to preserve errno on success.
56776         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56777         Reported by Bruno Haible.
56778
56779 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56780
56781         * MODULES.html.sh (Support for maintaining and releasing
56782         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56783
56784 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56785
56786         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56787
56788 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56789
56790         * modules/autobuild: New module.
56791
56792         * m4/autobuild.m4: New file.
56793
56794 2007-04-11  Bruno Haible  <bruno@clisp.org>
56795
56796         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56797         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56798         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56800         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56801         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56802         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56804         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56805         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56806         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56807         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56808         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56810         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56811         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56812         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56813         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56814         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56815         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56816         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56817         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56819         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56820         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56822         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56823         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56824         Reported by Eric Blake.
56825
56826 2007-04-11  Bruno Haible  <bruno@clisp.org>
56827
56828         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56829
56830 2007-04-10  Bruno Haible  <bruno@clisp.org>
56831
56832         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56833         for NaN and Infinity. Needed on FreeBSD 6.1.
56834         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56835         regarding results for "%010a" of Infinity and NaN.
56836         * tests/test-vasprintf-posix.c (test_function): Likewise.
56837         * tests/test-snprintf-posix.h (test_function): Likewise.
56838         * tests/test-sprintf-posix.h (test_function): Likewise.
56839         * tests/test-fprintf-posix.h (test_function): Likewise.
56840         * tests/test-printf-posix.h (test_function): Likewise.
56841         * tests/test-fprintf-posix.out: Likewise.
56842
56843 2007-04-10  Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/locale-tests: New file.
56846         * tests/test-locale.c: New file.
56847
56848         * modules/locale: New file.
56849         * lib/locale_.h: New file.
56850         * m4/locale_h.m4: New file.
56851
56852 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56853             Bruno Haible  <bruno@clisp.org>
56854
56855         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56856         be determined, test for availability of the copysignf, copysign,
56857         copysignl functions.
56858         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56859         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56860         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56861
56862 2007-04-09  Eric Blake  <ebb9@byu.net>
56863
56864         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56865         * modules/stdio (Makefile.am): Support fflush.
56866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56867         * modules/fflush: New file.
56868         * lib/fflush.c: Likewise.
56869         * m4/fflush.m4: Likewise.
56870         * modules/fflush-tests: New test.
56871         * tests/test-fflush.c: Likewise.
56872         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56873
56874 2007-04-06  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56877         (VASNPRINTF): Use signbit for faster determination whether to print a
56878         minus sign.
56879         * modules/vasnprintf (Files): Remove lib/float+.h.
56880         * modules/fprintf-posix (Depends-on): Add signbit.
56881         * modules/snprintf-posix (Depends-on): Likewise.
56882         * modules/sprintf-posix (Depends-on): Likewise.
56883         * modules/vasnprintf-posix (Depends-on): Likewise.
56884         * modules/vasprintf-posix (Depends-on): Likewise.
56885         * modules/vfprintf-posix (Depends-on): Likewise.
56886         * modules/vsnprintf-posix (Depends-on): Likewise.
56887         * modules/vsprintf-posix (Depends-on): Likewise.
56888
56889 2007-04-06  Bruno Haible  <bruno@clisp.org>
56890
56891         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56892         * tests/test-frexpl.c (main): Likewise.
56893         * tests/test-ldexpl.c (main): Likewise.
56894         * modules/frexp-tests (Depends-on): Add signbit.
56895         * modules/frexpl-tests (Depdends-on): Likewise.
56896         * modules/ldexpl-tests (Depdends-on): Likewise.
56897
56898 2007-04-06  Bruno Haible  <bruno@clisp.org>
56899
56900         * modules/signbit-tests: New file.
56901         * tests/test-signbit.c: New file.
56902
56903         * modules/signbit: New file.
56904         * lib/signbitf.c: New file.
56905         * lib/signbitd.c: New file.
56906         * lib/signbitl.c: New file.
56907         * m4/signbit.m4: New file.
56908         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56909         (signbit): New macro.
56910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56911         REPLACE_SIGNBIT.
56912         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56913         REPLACE_FREXPL into math.h.
56914
56915 2007-04-06  Bruno Haible  <bruno@clisp.org>
56916
56917         * modules/isnanf-nolibm-tests: New file.
56918         * tests/test-isnanf.c: New file.
56919
56920         * modules/isnanf-nolibm: New file.
56921         * lib/isnanf.h: New file.
56922         * lib/isnanf.c: New file.
56923         * lib/isnan.c: Consider the USE_FLOAT macro.
56924         * m4/isnanf.m4: New file.
56925
56926 2007-04-06  Bruno Haible  <bruno@clisp.org>
56927
56928         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56929         (Link): New section.
56930
56931         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56932
56933 2007-04-06  Bruno Haible  <bruno@clisp.org>
56934
56935         Assume the 'long double' type.
56936         * m4/longdouble.m4: Remove file.
56937         * config/srclist.txt: Don't mention longdouble.m4.
56938         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56939         * lib/float+.h: Likewise.
56940         * lib/frexp.c: Likewise.
56941         * lib/printf-args.h: Likewise.
56942         * lib/printf-args.c: Likewise.
56943         * lib/printf-frexp.c: Likewise.
56944         * lib/printf-parse.c: Likewise.
56945         * lib/vasnprintf.c: Likewise.
56946         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56947         * m4/intl.m4: Likewise.
56948         * m4/isnanl.m4: Likewise.
56949         * m4/printf.m4: Likewise.
56950         * m4/printf-frexpl.m4: Likewise.
56951         * m4/vasnprintf.m4: Likewise.
56952         * modules/allocsa (Files): Remove m4/longdouble.m4.
56953         * modules/gettext (Files): Likewise.
56954         * modules/relocatable-prog-wrapper (Files): Likewise.
56955         * modules/vasnprintf (Files): Likewise.
56956         * modules/isnanl (Files): Likewise.
56957         (Include): Simplify.
56958         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56959         (Include): Simplify.
56960         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56961         (Include): Simplify.
56962         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56963         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56964         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56965         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56966         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56967         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56968         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56969         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56970         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56971         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56972         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56973         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56974         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56975         * tests/test-isnanl.c: Likewise.
56976         * tests/test-snprintf-posix.h: Likewise.
56977         * tests/test-sprintf-posix.h: Likewise.
56978         * tests/test-vasnprintf-posix.c: Likewise.
56979         * tests/test-vasnprintf-posix2.c: Likewise.
56980         * tests/test-vasprintf-posix.c: Likewise.
56981
56982 2007-04-06  Bruno Haible  <bruno@clisp.org>
56983
56984         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56985         * lib/math_.h [__DECC]: Include the overridden include file through
56986         #include_next, outside the double-inclusion guard.
56987         * lib/stdio_.h [__DECC]: Likewise.
56988         * lib/stdlib_.h [__DECC]: Likewise.
56989         * lib/string_.h [__DECC]: Likewise.
56990         * lib/time_.h [__DECC]: Likewise.
56991         * lib/wchar_.h [__DECC]: Likewise.
56992         * lib/wctype_.h [__DECC]: Likewise.
56993         * lib/inttypes_.h [__DECC]: Likewise.
56994         Reported by Albert Chin <china@thewrittenword.com> in
56995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56996
56997 2007-04-04  Eric Blake  <ebb9@byu.net>
56998
56999         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57000         1.5.x.
57001
57002 2007-04-04  Bruno Haible  <bruno@clisp.org>
57003
57004         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57005         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57006
57007 2007-04-04  Bruno Haible  <bruno@clisp.org>
57008
57009         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57010         results for "%010a" of Infinity and NaN.
57011         * tests/test-vasprintf-posix.c (test_function): Likewise.
57012         * tests/test-snprintf-posix.h (test_function): Likewise.
57013         * tests/test-sprintf-posix.h (test_function): Likewise.
57014         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57015         * tests/test-printf-posix.h (test_function): Likewise.
57016         * tests/test-fprintf-posix.out: Update.
57017         Needed for FreeBSD 6.1.
57018
57019 2007-04-04  Bruno Haible  <bruno@clisp.org>
57020
57021         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57022         directly used by the gnulib modules nor by gnulib-tool.
57023
57024 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57025
57026         * DEPENDENCIES: Give overall description of version dependency
57027         desirability.  Use more-typical names for apps.
57028         Add shell, coreutils, diffutils, grep, tar, gzip.
57029
57030 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57031
57032         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57033
57034 2007-04-04  Karl Berry  <karl@gnu.org>
57035
57036         * MODULES.html.sh (func_module): missing '.
57037
57038 2007-04-03  Bruno Haible  <bruno@clisp.org>
57039
57040         * modules/argmatch-tests (Makefile.am): New variable
57041         test_argmatch_LDADD.
57042         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57043         * modules/array-list-tests (Makefile.am): New variable
57044         test_array_list_LDADD.
57045         * modules/array-oset-tests (Makefile.am): New variable
57046         test_array_oset_LDADD.
57047         * modules/avltree-list-tests (Makefile.am): New variable
57048         test_avltree_list_LDADD.
57049         * modules/avltree-oset-tests (Makefile.am): New variable
57050         test_avltree_oset_LDADD.
57051         * modules/avltreehash-list-tests (Makefile.am): New variable
57052         test_avltreehash_list_LDADD.
57053         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57054         test_canonicalize_lgpl_LDADD.
57055         * modules/carray-list-tests (Makefile.am): New variable
57056         test_carray_list_LDADD.
57057         * modules/dirname-tests (Makefile.am): New variable
57058         test_dirname_LDADD.
57059         * modules/linked-list-tests (Makefile.am): New variable
57060         test_linked_list_LDADD.
57061         * modules/linkedhash-list-tests (Makefile.am): New variable
57062         test_linkedhash_list_LDADD.
57063         * modules/rbtree-list-tests (Makefile.am): New variable
57064         test_rbtree_list_LDADD.
57065         * modules/rbtree-oset-tests (Makefile.am): New variable
57066         test_rbtree_oset_LDADD.
57067         * modules/rbtreehash-list-tests (Makefile.am): New variable
57068         test_rbtreehash_list_LDADD.
57069         * modules/xvasprintf-tests (Makefile.am): New variable
57070         test_xvasprintf_LDADD.
57071         Reported by Eric Blake.
57072
57073 2007-04-03  Eric Blake  <ebb9@byu.net>
57074
57075         * DEPENDENCIES: Weaken m4 requirements.
57076
57077 2007-04-03  Bruno Haible  <bruno@clisp.org>
57078
57079         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57080         * modules/isnanl-tests (configure.ac): Likewise.
57081
57082 2007-04-03  Ben Pfaff  <blp@gnu.org>
57083
57084         * modules/iconv_open: Add $(srcdir)/ to source directory
57085         references in Makefile fragments that call gperf, to fix VPATH
57086         builds.
57087
57088 2007-04-03  Bruno Haible  <bruno@clisp.org>
57089
57090         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57091         * lib/ldexpl.c: Undo last change.
57092
57093 2007-04-03  Bruno Haible  <bruno@clisp.org>
57094
57095         * modules/printf-frexpl (Depends-on): Undo last change.
57096         (Files): Add m4/ldexpl.m4.
57097
57098 2007-04-03  Bruno Haible  <bruno@clisp.org>
57099
57100         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57101         * modules/isnanl (Link): New section.
57102
57103         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57104         * modules/frexp (Link): New section.
57105
57106         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57107         * modules/frexpl (Link): New section.
57108
57109         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57110         * modules/ldexpl (Link): New section.
57111
57112 2007-04-03  Bruno Haible  <bruno@clisp.org>
57113
57114         * modules/TEMPLATE-EXTENDED: New file.
57115         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57116
57117 2007-04-03  Bruno Haible  <bruno@clisp.org>
57118
57119         * DEPENDENCIES: New file.
57120         Suggested by Simon Josefsson.
57121
57122 2007-04-03  Bruno Haible  <bruno@clisp.org>
57123
57124         * doc/gnulib.texi: Escape @.
57125
57126 2007-04-03  James Youngman  <jay@gnu.org>
57127         and Paul Eggert  <eggert@cs.ucla.edu>
57128
57129         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57130         birthtime on all systems that have birthtime, not just those which
57131         use st_birthtimensec rather than st_birthtim.  Putting zero in
57132         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57133         that the birth time is not available for files on an NFS mount.
57134
57135 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57136
57137         * modules/memxor: Move back from crypto/, suggested by Bruno.
57138         * modules/crypto/hmac-sha1: Fix memxor dependency.
57139
57140         * modules/crypto/gc: Moved from ../.
57141
57142 2007-04-02  Eric Blake  <ebb9@byu.net>
57143
57144         * lib/ldexpl.c (includes): Avoid libm.
57145
57146         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57147
57148 2007-04-02  Bruno Haible  <bruno@clisp.org>
57149
57150         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57151         on IRIX.
57152
57153 2007-04-02  Bruno Haible  <bruno@clisp.org>
57154
57155         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57156         x86 or x86_64 platforms running MacOS X.
57157         Reported by Ryan Schmidt <@ryandesign.com>.
57158
57159 2007-04-02  Bruno Haible  <bruno@clisp.org>
57160
57161         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57162         i386.
57163
57164 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57165
57166         * modules/crypto/arcfour: Moved from ../.
57167         * modules/crypto/arcfour-tests: Moved from ../.
57168         * modules/crypto/arctwo: Moved from ../.
57169         * modules/crypto/arctwo-tests: Moved from ../.
57170         * modules/crypto/des: Moved from ../.
57171         * modules/crypto/des-tests: Moved from ../.
57172         * modules/crypto/gc-arcfour: Moved from ../.
57173         * modules/crypto/gc-arcfour-tests: Moved from ../.
57174         * modules/crypto/gc-arctwo: Moved from ../.
57175         * modules/crypto/gc-arctwo-tests: Moved from ../.
57176         * modules/crypto/gc-des: Moved from ../.
57177         * modules/crypto/gc-des-tests: Moved from ../.
57178         * modules/crypto/gc-hmac-md5: Moved from ../.
57179         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57180         * modules/crypto/gc-hmac-sha1: Moved from ../.
57181         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57182         * modules/crypto/gc-md2: Moved from ../.
57183         * modules/crypto/gc-md2-tests: Moved from ../.
57184         * modules/crypto/gc-md4: Moved from ../.
57185         * modules/crypto/gc-md4-tests: Moved from ../.
57186         * modules/crypto/gc-md5: Moved from ../.
57187         * modules/crypto/gc-md5-tests: Moved from ../.
57188         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57189         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57190         * modules/crypto/gc-random: Moved from ../.
57191         * modules/crypto/gc-rijndael: Moved from ../.
57192         * modules/crypto/gc-rijndael-tests: Moved from ../.
57193         * modules/crypto/gc-sha1: Moved from ../.
57194         * modules/crypto/gc-sha1-tests: Moved from ../.
57195         * modules/crypto/gc-tests: Moved from ../.
57196         * modules/crypto/hmac-md5: Moved from ../.
57197         * modules/crypto/hmac-md5-tests: Moved from ../.
57198         * modules/crypto/hmac-sha1: Moved from ../.
57199         * modules/crypto/hmac-sha1-tests: Moved from ../.
57200         * modules/crypto/md2: Moved from ../.
57201         * modules/crypto/md2-tests: Moved from ../.
57202         * modules/crypto/md4: Moved from ../.
57203         * modules/crypto/md4-tests: Moved from ../.
57204         * modules/crypto/md5: Moved from ../.
57205         * modules/crypto/md5-tests: Moved from ../.
57206         * modules/crypto/memxor: Moved from ../.
57207         * modules/crypto/rijndael: Moved from ../.
57208         * modules/crypto/rijndael-tests: Moved from ../.
57209         * modules/crypto/sha1: Moved from ../.
57210
57211 2007-03-30  James Youngman  <jay@gnu.org>
57212
57213         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57214         rename() to change the ctime of a file (because ctime is unaffected
57215         by rename on jfs2 on AIX 5.1).
57216         (main): Start by doing cleanup, in case a previous run failed leaving
57217         test files behind.
57218
57219 2007-03-31  Bruno Haible  <bruno@clisp.org>
57220
57221         Support old proprietary implementations of iconv.
57222         * modules/iconv_open: New file.
57223         * lib/iconv_.h: New file.
57224         * m4/iconv_h.m4: New file.
57225         * lib/iconv_open.c: New file.
57226         * lib/iconv_open-aix.gperf: New file.
57227         * lib/iconv_open-hpux.gperf: New file.
57228         * lib/iconv_open-irix.gperf: New file.
57229         * lib/iconv_open-osf.gperf: New file.
57230         * m4/iconv_open.m4: New file.
57231         * modules/linebreak (Depends-on): Add iconv_open.
57232         * modules/striconv (Depends-on): Likewise.
57233         * modules/striconveh (Depends-on): Likewise.
57234         * modules/unicodeio (Depends-on): Likewise.
57235         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57236         (iconv_t)(-1).
57237         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57238         conversion if cd is (iconv_t)(-1).
57239         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57240         is not possible.
57241
57242 2007-03-31  Bruno Haible  <bruno@clisp.org>
57243
57244         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57245         work on Solaris either. Protect also second use of "autodetect_jp".
57246
57247 2007-03-31  Bruno Haible  <bruno@clisp.org>
57248
57249         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57250         the function is not present.
57251
57252 2007-03-31  Bruno Haible  <bruno@clisp.org>
57253
57254         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57255         the function is not present.
57256
57257 2007-03-31  Bruno Haible  <bruno@clisp.org>
57258
57259         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57260         a bug in HP-UX iconv_open().
57261
57262 2007-03-31  Bruno Haible  <bruno@clisp.org>
57263
57264         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57265         (Mathematics <math.h>): New section, add fpieee.
57266         (Input/output <stdio.h>): Add fseterr.
57267         (Mathematics <math.h>): New section, add printf-frexp.
57268         (Container data structures): Add sublist.
57269         (Core language properties): Add fpucw, inline.
57270         (Functions for greatest-width integer types <inttypes.h>): Add
57271         imaxabs, imaxdiv, inttypes.
57272         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57273         isnanl-nolibm, ldexp.
57274         (Mathematics <math.h>): New section, add printf-frexpl.
57275         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57276         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57277         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57278         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57279         (Unicode string functions): Add unistr/u*-mbtoucr.
57280         (Java): Add javacomp-script, javaexec-script.
57281         (C#): Add csharpcomp-script, csharpexec-script.
57282         (Support for building libraries and executables): Add havelib,
57283         relocatable-*.
57284         (Support for maintaining and releasing projects): Renamed from
57285         'Support for maintaining and release projects'. Add announce-gen.
57286
57287 2007-03-31  Bruno Haible  <bruno@clisp.org>
57288
57289         * README: Talk primarily about git.
57290         (git and CVS): Renamed from CVS.
57291         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57292         gnulib is available through git.
57293         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57294
57295 2007-03-30  Bruno Haible  <bruno@clisp.org>
57296
57297         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57298         * lib/poll_.h: Likewise.
57299         * lib/stat_.h: Likewise.
57300         * lib/sys_time_.h: Likewise.
57301         * lib/sysexit_.h: Likewise.
57302         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57303         * lib/stdbool_.h: Likewise.
57304         * lib/byteswap_.h: Add double-inclusion guard.
57305
57306 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57307
57308         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57309
57310 2007-03-30  Karl Berry  <karl@gnu.org>
57311
57312         * config/srclist-update: double space after USA in the license
57313         substitution, since that's how it's usually (?) written.
57314
57315 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57316
57317         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57318         reported by Bruno Haible.
57319
57320 2007-03-29  Bruno Haible  <bruno@clisp.org>
57321
57322         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57323         a bug in AIX iconv().
57324
57325 2007-03-29  Bruno Haible  <bruno@clisp.org>
57326
57327         * modules/ldexpl-tests: New file.
57328         * tests/test-ldexpl.c: New file.
57329
57330 2007-03-29  Bruno Haible  <bruno@clisp.org>
57331
57332         * lib/ldexpl.c: Include fpucw.h.
57333         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57334         multiplication.
57335         * modules/ldexpl (Depends-on): Add fpucw.
57336
57337 2007-03-29  Bruno Haible  <bruno@clisp.org>
57338
57339         * modules/ldexpl: New file.
57340         * m4/ldexpl.m4: New file.
57341         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57342         set.
57343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57344         REPLACE_LDEXPL.
57345         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57346         REPLACE_LDEXPL.
57347         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57348         gl_FUNC_LDEXPL_WORKS.
57349         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57350         * modules/mathl (Files): Remove lib/ldexpl.c.
57351         (Depends-on): Add ldexpl.
57352
57353 2007-03-29  Bruno Haible  <bruno@clisp.org>
57354
57355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57356
57357 2007-03-29  Bruno Haible  <bruno@clisp.org>
57358
57359         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57360         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57361         and possibly also HP-UX.
57362         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57363         work on AIX, IRIX, HP-UX, OSF/1.
57364         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57365         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57366         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57367         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57368         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57369         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57370
57371 2007-03-29  Bruno Haible  <bruno@clisp.org>
57372
57373         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57374
57375 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57376
57377         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57378         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57379
57380 2007-03-29  Eric Blake  <ebb9@byu.net>
57381
57382         * lib/acl-internal.h: Remove redundant include.
57383         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57384         Cygwin when a file is locked.
57385
57386 2007-03-29  Bruno Haible  <bruno@clisp.org>
57387
57388         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57389         file.
57390         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57391
57392 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57393
57394         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57395         try to remove a parent directory if the child couldn't be removed
57396         (except for the first rmdir, which could fail because the child
57397         doesn't exist).  Problem reported by Jeff Blaine in
57398         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57399
57400 2007-03-28  Bruno Haible  <bruno@clisp.org>
57401
57402         * lib/striconveh.c (utf8conv_carefully): New function.
57403         (mem_cd_iconveh_internal): Invoke it.
57404
57405 2007-03-28  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57408         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57409         input.
57410         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57411         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57412         unistr/u8-uctomb.
57413
57414 2007-03-28  Bruno Haible  <bruno@clisp.org>
57415
57416         * modules/unistr/u8-mbtoucr: New file.
57417         * lib/unistr/u8-mbtoucr.c: New file.
57418         * modules/unistr/u16-mbtoucr: New file.
57419         * lib/unistr/u16-mbtoucr.c: New file.
57420         * modules/unistr/u16-mbtoucr: New file.
57421         * lib/unistr/u16-mbtoucr.c: New file.
57422         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57423
57424 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57425             Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57428         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57429         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57430
57431         * m4/stdio_h.m4: Add stubs for vasprintf too.
57432
57433         * modules/stdio: Support vasprintf in sed command.
57434
57435         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57436         vasprintf.h.  Add stdio module indicator.
57437
57438         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57439         vasprintf.h.
57440
57441         * lib/vasprintf.h: File removed.
57442
57443         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57444         * lib/vasprintf.c: Ditto.
57445         * lib/xvasprintf.c: Ditto.
57446         * tests/test-vasprintf-posix.c: Ditto.
57447         * tests/test-vasprintf.c: Ditto.
57448
57449 2007-03-27  Bruno Haible  <bruno@clisp.org>
57450
57451         Make vasnprintf multithread-safe.
57452         * lib/vasnprintf.c (decimal_point_char): New function.
57453         (VASNPRINTF): Use it.
57454         Suggested by Simon Josefsson.
57455
57456 2007-03-27  Eric Blake  <ebb9@byu.net>
57457
57458         Support sub-second birthtime on cygwin.
57459         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57460         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57461         (get_stat_birthtime): Also work with st_birthtim.
57462
57463 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57464
57465         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57466         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57467         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57468         (get_stat_birthtime_ns): Simplify compile-time tests.
57469         (get_stat_birthtime): Change the API to look like
57470         get_stat_mtime etc., except return a negative tv_nsec on error.
57471         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57472         Don't check for "spare" fields.
57473         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57474         or for struct stat.st_birthtime, as these tests aren't used.
57475         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57476
57477 2007-03-27  Bruno Haible  <bruno@clisp.org>
57478
57479         * lib/stat-time.h: Include <sys/stat.h>.
57480
57481 2007-03-27  James Youngman  <jay@gnu.org>
57482
57483         * lib/stat-time.h (get_stat_birthtime): New function for
57484           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57485         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57486           and its variants.
57487         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57488         * modules/stat-time-test: New file.
57489         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57490
57491 2007-03-26  Bruno Haible  <bruno@clisp.org>
57492
57493         Better support of signalling NaNs.
57494         * lib/atanl.c: Include isnanl.h.
57495         (atanl): Perform test for NaN at the beginning of the function and
57496         through a call to isnanl.
57497         * lib/cosl.c: Include isnanl.h.
57498         (cosl): Perform test for NaN at the beginning of the function and
57499         through a call to isnanl.
57500         * lib/ldexpl.c: Include isnanl.h.
57501         (ldexpl): Perform test for NaN through a call to isnanl.
57502         * lib/logl.c: Include isnanl.h.
57503         (logl): Perform test for NaN at the beginning of the function and
57504         through a call to isnanl.
57505         * lib/sinl.c: Include isnanl.h.
57506         (sinl): Perform test for NaN at the beginning of the function and
57507         through a call to isnanl.
57508         * lib/sqrtl.c: Include isnanl.h.
57509         (sqrtl): Perform test for NaN at the beginning of the function and
57510         through a call to isnanl.
57511         * lib/tanl.c: Include isnanl.h.
57512         (tanl): Perform test for NaN at the beginning of the function and
57513         through a call to isnanl.
57514         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57515         * modules/mathl (Depends-on): Add isnanl.
57516
57517 2007-03-26  Eric Blake  <ebb9@byu.net>
57518
57519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57520         regression in logic sense of previous patch.
57521
57522 2007-03-26  Bruno Haible  <bruno@clisp.org>
57523
57524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57525         unportable shell command "if ! ...".
57526         Reported by Ralf Wildenhues.
57527
57528 2007-03-25  Bruno Haible  <bruno@clisp.org>
57529
57530         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57531         <sysexits.h> file, and only add EX_CONFIG.
57532         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57533         absolute file name and whether it is sufficient. Substitute also
57534         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57535         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57536         ABSOLUTE_SYSEXITS_H into sysexits.h.
57537
57538 2007-03-25  Bruno Haible  <bruno@clisp.org>
57539
57540         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57541         hints is NULL.
57542
57543 2007-03-25  Bruno Haible  <bruno@clisp.org>
57544
57545         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57546         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57547
57548 2007-03-25  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/vasnprintf.c: Include langinfo.h.
57551         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57552         multithread-safe.
57553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57554         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57562         Reported by Simon Josefsson.
57563
57564 2007-03-25  Bruno Haible  <bruno@clisp.org>
57565
57566         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57567         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57568         * modules/vasnprintf (Depends-on): Add stdint.
57569
57570 2007-03-25  Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/fpieee: New file.
57573         * m4/fpieee.m4: New file.
57574         * modules/isnan-nolibm (Depends-on): Add fpieee.
57575         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57576         * modules/isnanl (Depends-on): Add fpieee.
57577
57578 2007-03-25  Bruno Haible  <bruno@clisp.org>
57579
57580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57581
57582 2007-03-25  Bruno Haible  <bruno@clisp.org>
57583
57584         Avoid test failures on IRIX 6.5.
57585         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57586         (main): Use it.
57587         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57588         macros.
57589         (main): Use them.
57590
57591 2007-03-25  Bruno Haible  <bruno@clisp.org>
57592
57593         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57594         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57595         exists but doesn't work.
57596         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57597         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57599         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57600         math.h.
57601
57602 2007-03-25  Bruno Haible  <bruno@clisp.org>
57603
57604         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57605         returns inf. Needed on IRIX 6.5.
57606
57607 2007-03-25  Bruno Haible  <bruno@clisp.org>
57608
57609         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57610         (main): Use isnanl instead of x != x idiom.
57611         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57612
57613         * tests/test-frexp.c: Include isnan.h.
57614         (main): Use isnan instead of x != x idiom.
57615         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57616
57617 2007-03-25  Bruno Haible  <bruno@clisp.org>
57618
57619         * tests/test-frexp.c (NaN): New function/macro.
57620         (main): Use it instead of 0.0 / 0.0.
57621         * tests/test-isnan.c (NaN): New function/macro.
57622         (main): Use it instead of 0.0 / 0.0.
57623         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57624         (test_function): Use it instead of 0.0 / 0.0.
57625         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57626         (test_function): Use it instead of 0.0 / 0.0.
57627         * tests/test-snprintf-posix.h (NaN): New function/macro.
57628         (test_function): Use it instead of 0.0 / 0.0.
57629         * tests/test-sprintf-posix.h (NaN): New function/macro.
57630         (test_function): Use it instead of 0.0 / 0.0.
57631         * tests/test-fprintf-posix.h (NaN): New function/macro.
57632         (test_function): Use it instead of 0.0 / 0.0.
57633         * tests/test-printf-posix.h (NaN): New function/macro.
57634         (test_function): Use it instead of 0.0 / 0.0.
57635
57636         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57637
57638 2007-03-25  Bruno Haible  <bruno@clisp.org>
57639
57640         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57641
57642 2007-03-25  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/regexec.c (merge_state_with_log): Make static.
57645
57646 2007-03-25  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/trigl.c (kernel_rem_pio2): Make static.
57649
57650 2007-03-25  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/sincosl.c (sincosl_table): Make static.
57653
57654 2007-03-25  Bruno Haible  <bruno@clisp.org>
57655
57656         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57657         if the compiler does not support C99.
57658
57659 2007-03-25  Bruno Haible  <bruno@clisp.org>
57660
57661         * modules/time (Makefile.am): Ensure all rule action lines start with a
57662         tab.
57663
57664 2007-03-24  Bruno Haible  <bruno@clisp.org>
57665
57666         * modules/tsearch-tests: New file.
57667         * tests/test-tsearch.sh: New file.
57668         * tests/test-tsearch.c: New file, mostly copied from glibc.
57669
57670         * modules/search-tests: New file.
57671         * tests/test-search.c: New file.
57672
57673         * modules/search: New file.
57674         * lib/search_.h: New file, incorporating lib/tsearch.h.
57675         * m4/search_h.m4: New file.
57676         * lib/tsearch.h: Remove file.
57677         * lib/tsearch.c: Include search.h instead of tsearch.h.
57678         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57679         HAVE_TSEARCH.
57680         * modules/tsearch (Files): Remove lib/tsearch.h.
57681         (Depends-on): Add search.
57682         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57683         (Include): Change tsearch.h into search.h.
57684
57685 2007-03-24  Bruno Haible  <bruno@clisp.org>
57686
57687         * modules/fpucw: New file.
57688         * lib/fpucw.h: New file.
57689         * lib/frexp.c: Include fpucw.h.
57690         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57691         (FUNC): Use them.
57692         * lib/printf-frexp.c: Include fpucw.h.
57693         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57694         (FUNC): Use them.
57695         * lib/vasnprintf.c: Include fpucw.h.
57696         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57697         'long double' calculations.
57698         * tests/test-frexpl.c: Include fpucw.h.
57699         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57700         * tests/test-printf-frexpl.c: Include fpucw.h.
57701         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57702         * modules/frexpl (Depends-on): Add fpucw.
57703         * modules/printf-frexpl (Depends-on): Likewise.
57704         * modules/fprintf-posix (Depends-on): Likewise.
57705         * modules/snprintf-posix (Depends-on): Likewise.
57706         * modules/sprintf-posix (Depends-on): Likewise.
57707         * modules/vasnprintf-posix (Depends-on): Likewise.
57708         * modules/vasprintf-posix (Depends-on): Likewise.
57709         * modules/vfprintf-posix (Depends-on): Likewise.
57710         * modules/vsnprintf-posix (Depends-on): Likewise.
57711         * modules/vsprintf-posix (Depends-on): Likewise.
57712         * modules/frexpl-tests (Depends-on): Likewise.
57713         * modules/printf-frexpl-tests (Depends-on): Likewise.
57714
57715 2007-03-24  Bruno Haible  <bruno@clisp.org>
57716
57717         * lib/float+.h: New file.
57718         * lib/isnan.c: Include float+.h.
57719         (SIZE): New macro.
57720         (FUNC): Compare only SIZE bytes of the value.
57721         * lib/vasnprintf.c: Include float+.h.
57722         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57723         SIZEOF_LDBL or SIZEOF_DBL bytes.
57724         * modules/isnan-nolibm (Files): Add lib/float+.h.
57725         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57726         * modules/isnanl (Files): Add lib/float+.h.
57727         * modules/vasnprintf (Files): Add lib/float+.h.
57728
57729 2007-03-24  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57732         include isnanl-nolibm.h.
57733
57734 2007-03-24  Bruno Haible  <bruno@clisp.org>
57735
57736         * tests/test-read-file.c (main): Don't produce spurious output for
57737         expected situations. Make the test fail if it encountered unexpected
57738         results.
57739
57740 2007-03-24  Bruno Haible  <bruno@clisp.org>
57741
57742         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57743         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57744
57745 2007-03-24  Bruno Haible  <bruno@clisp.org>
57746
57747         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57748
57749 2007-03-24  Bruno Haible  <bruno@clisp.org>
57750
57751         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57752         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57753
57754         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57755         * modules/utf8-ucs4: Turn into a symbolic link to module
57756         unistr/u8-mbtouc.
57757
57758         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57759         utf8-ucs4-unsafe.
57760         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57761         unistr/u8-mbtouc-unsafe.
57762
57763         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57764         * modules/utf16-ucs4: Turn into a symbolic link to module
57765         unistr/u16-mbtouc.
57766
57767         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57768         utf16-ucs4-unsafe.
57769         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57770         unistr/u16-mbtouc-unsafe.
57771
57772         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57773         * modules/ucs4-utf8: Turn into a symbolic link to module
57774         unistr/u8-ubtomb.
57775
57776         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57777         * modules/ucs4-utf16: Turn into a symbolic link to module
57778         unistr/u16-ubtomb.
57779
57780 2007-03-24  Bruno Haible  <bruno@clisp.org>
57781
57782         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57783         Enable the function only if HAVE_INLINE.
57784         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57785         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57786         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57787         Enable the function only if HAVE_INLINE.
57788         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57789         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57790         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57791         Enable the function only if HAVE_INLINE.
57792         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57793         Enable the function only if HAVE_INLINE.
57794         * modules/utf8-ucs4: Update.
57795         * modules/utf8-ucs4-unsafe: Update.
57796         * modules/utf16-ucs4: Update.
57797         * modules/utf16-ucs4-unsafe: Update.
57798         * modules/ucs4-utf8: Update.
57799         * modules/ucs4-utf16: Update.
57800
57801 2007-03-24  Bruno Haible  <bruno@clisp.org>
57802
57803         * lib/utf8-ucs4.h: Remove file.
57804         * lib/utf8-ucs4-unsafe.h: Remove file.
57805         * lib/utf16-ucs4.h: Remove file.
57806         * lib/utf16-ucs4-unsafe.h: Remove file.
57807         * lib/ucs4-utf8.h: Remove file.
57808         * lib/ucs4-utf16.h: Remove file.
57809         * lib/unistr.h: Include their previous contents.
57810         * m4/utf-ucs4.m4: Remove file.
57811         * m4/ucs4-utf.m4: Remove file.
57812         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57813         (Depends-on): Add unistr/base.
57814         (configure.ac): Remove gl_UTF_UCS4.
57815         (Makefile.am): Update.
57816         (Include): Change to unistr.h.
57817         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57818         (Depends-on): Add unistr/base.
57819         (configure.ac): Remove gl_UTF_UCS4.
57820         (Makefile.am): Update.
57821         (Include): Change to unistr.h.
57822         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57823         (Depends-on): Add unistr/base.
57824         (configure.ac): Remove gl_UTF_UCS4.
57825         (Makefile.am): Update.
57826         (Include): Change to unistr.h.
57827         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57828         (Depends-on): Add unistr/base.
57829         (configure.ac): Remove gl_UTF_UCS4.
57830         (Makefile.am): Update.
57831         (Include): Change to unistr.h.
57832         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57833         (Depends-on): Add unistr/base.
57834         (configure.ac): Remove gl_UCS4_UTF.
57835         (Makefile.am): Update.
57836         (Include): Change to unistr.h.
57837         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57838         (Depends-on): Add unistr/base.
57839         (configure.ac): Remove gl_UCS4_UTF.
57840         (Makefile.am): Update.
57841         (Include): Change to unistr.h.
57842         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57843         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57844         utf8-ucs4-unsafe.h.
57845         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57846         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57847         utf16-ucs4-unsafe.h.
57848         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57849         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57850         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57851         * lib/unistr/u8-strchr.c: Likewise.
57852         * lib/unistr/u8-strrchr.c: Likewise.
57853         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57854         * lib/unistr/u16-strchr.c: Likewise.
57855         * lib/unistr/u16-strrchr.c: Likewise.
57856         * lib/striconveh.c: Update.
57857         * lib/linebreak.c: Update.
57858
57859 2007-03-24  Bruno Haible  <bruno@clisp.org>
57860
57861         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57862         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57863
57864 2007-03-22  Bruno Haible  <bruno@clisp.org>
57865
57866         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57867
57868 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57869
57870         * MODULES.html.sh (File system functions): New module write-any-file.
57871         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57872         * m4/write-any-file.m4: New files.
57873
57874 2007-03-23  Eric Blake  <ebb9@byu.net>
57875
57876         * gnulib-tool: Rearrange space-tab sequences, since some editors
57877         like to eat them.
57878
57879 2007-03-23  Eric Blake  <ebb9@byu.net>
57880
57881         * lib/version-etc.c (version_etc_va): Update license wording to
57882         be more concise.  Recommended by Richard Stallman.
57883
57884 2007-03-22  Bruno Haible  <bruno@clisp.org>
57885
57886         * lib/poll.c (MSG_PEEK): New fallback definition.
57887
57888 2007-03-22  Bruno Haible  <bruno@clisp.org>
57889
57890         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57891         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57892         (main): Update.
57893         Fixes a compilation error on BeOS.
57894
57895 2007-03-22  Bruno Haible  <bruno@clisp.org>
57896
57897         * modules/frexpl-tests: New file.
57898         * tests/test-frexpl.c: New file.
57899
57900         * modules/frexpl: New file.
57901         * m4/frexpl.m4: New file.
57902         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57903         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57905         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57906         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57907         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57908
57909 2007-03-22  Bruno Haible  <bruno@clisp.org>
57910
57911         * lib/frexpl.c: Share code with lib/frexp.c.
57912         * modules/mathl (Files): Add lib/frexp.c.
57913         (Depends-on): Add isnanl-nolibm.
57914
57915 2007-03-22  Bruno Haible  <bruno@clisp.org>
57916
57917         * modules/printf-frexp (Files): Add m4/frexp.m4.
57918         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57919         only if the found frexp function actually works.
57920
57921 2007-03-22  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/frexp.c: Remove older implementation that uses divisions.
57924
57925 2007-03-21  Bruno Haible  <bruno@clisp.org>
57926
57927         * modules/frexp-tests: New file.
57928         * tests/test-frexp.c: New file.
57929
57930         * modules/frexp: New file.
57931         * lib/frexp.c: New file.
57932         * m4/frexp.m4: New file.
57933         * lib/math_.h (frexp): New declaration.
57934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57935         REPLACE_FREXP.
57936         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57937
57938 2007-03-21  Bruno Haible  <bruno@clisp.org>
57939
57940         * modules/isnanl-tests: New file.
57941         * tests/test-isnanl.c: New file.
57942
57943         * modules/isnanl: New file.
57944         * lib/isnanl.h: New file.
57945         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57946         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57947         gl_FUNC_ISNANL_WORKS.
57948         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57949         New macros.
57950
57951 2007-03-21  Bruno Haible  <bruno@clisp.org>
57952
57953         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57954         lib/isnanl.h.
57955         (Include): Update.
57956         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57957         * lib/vasnprintf.c: Update.
57958         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57959         tests/test-isnanl.h, remove tests/test-isnanl.c.
57960         (Makefile.am): Update.
57961         * tests/test-isnanl-nolibm.c: New file.
57962         * tests/test-isnanl.h: New file.
57963         * tests/test-isnanl.c: Remove file.
57964
57965 2007-03-21  Jim Meyering  <jim@meyering.net>
57966
57967         When trying to open ".", treat ESTALE like EACCES.
57968         * lib/savewd.c (savewd_save): Resort to forking not just upon
57969         failure with EACCES, but also when errno is ESTALE.
57970
57971 2007-03-20  Bruno Haible  <bruno@clisp.org>
57972
57973         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57974         Needed on AIX 5.1. Reported by Matthew Woehlke.
57975
57976 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57977
57978         Suggestions by Bruno Haible:
57979         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57980         our own.
57981         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57982         * modules/acl (Depends-on): Add gettext.
57983
57984 2007-03-19  Bruno Haible  <bruno@clisp.org>
57985
57986         * modules/iconvme: Remove file.
57987         * lib/iconvme.h: Remove file.
57988         * lib/iconvme.c: Remove file.
57989         * m4/iconvme.m4: Remove file.
57990
57991 2007-03-19  Bruno Haible  <bruno@clisp.org>
57992
57993         * doc/relocatable-maint.texi: Break long shell script line.
57994         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57995
57996 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57997
57998         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57999         handle file_has_acl.
58000         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58001         * lib/acl.c: Move header inclusions and related macro defns into
58002         lib/acl-internal.h.
58003         (S_ISLNK): Remove defn, since that's now done for us.
58004         (file_has_acl): Move to lib/file-has-acl.c.
58005         Call acl_trivial if available.  This is the crucial part of the fix.
58006         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58007         shared within the library.  Rewrite a bit, partly to make it compatible
58008         with the GNU coding style.
58009         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58010         Remove unnecessary double-quotes.
58011         Don't test for acl_to_text; the build will catch that.
58012         Replace acl_entries if it doesn't exist and it is needed.
58013         Check for -lsec and acl_trivial (as used on Solaris 10).
58014         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58015         lib/file-has-acl.c.
58016         (Depends-on): Add sys_stat, for S_ISLNK.
58017
58018 2007-03-19  Ben Pfaff  <blp@gnu.org>
58019
58020         * doc/gnulib.texi: Fix typos.
58021         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58022
58023 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58024
58025         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58026         If size is zero here, buf must be zero.
58027
58028 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58029
58030         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58031         <bruno@clisp.org>.
58032
58033 2007-03-18  Bruno Haible  <bruno@clisp.org>
58034
58035         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58036         Suggested by Eric Blake.
58037
58038 2007-03-18  Ben Pfaff  <blp@gnu.org>
58039
58040         * doc/relocatable.texi: Recommend using as prefix a directory
58041         that does not exist and will never be created.  Based on
58042         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58043         and others.
58044
58045 2007-03-17  Bruno Haible  <bruno@clisp.org>
58046
58047         * lib/fchownat.c: Include lchown.h.
58048
58049 2007-03-17  Bruno Haible  <bruno@clisp.org>
58050
58051         Fix endless loop when the given allocated size was > INT_MAX.
58052         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58053         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58054         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58055         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58056         * lib/sprintf.c (sprintf): Likewise.
58057
58058 2007-03-17  Bruno Haible  <bruno@clisp.org>
58059
58060         * tests/test-argp-2.sh (func_compare): Output a context diff.
58061
58062 2007-03-17  Bruno Haible  <bruno@clisp.org>
58063
58064         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58065         locale's decimal-point character.
58066
58067 2007-03-17  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58070         before comparing it. Needed because on some platforms (e.g. x86) a
58071         'long double' occupies less bytes than sizeof (long double).
58072
58073 2007-03-17  Bruno Haible  <bruno@clisp.org>
58074
58075         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58076         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58077         * tests/test-getaddrinfo.c (simple): Likewise.
58078         * tests/test-read-file.c (main): Likewise.
58079
58080 2007-03-17  Bruno Haible  <bruno@clisp.org>
58081
58082         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58083
58084 2007-03-17  Bruno Haible  <bruno@clisp.org>
58085
58086         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58087         unused variable.
58088
58089 2007-03-17  Bruno Haible  <bruno@clisp.org>
58090
58091         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58092         * tests/test-c-strncasecmp.c: Likewise.
58093
58094 2007-03-17  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/stdlib (Depends-on): Add unistd.
58097         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58098         Needed for MacOS X 10.3.
58099
58100 2007-03-17  Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58103
58104 2007-03-17  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58107
58108 2007-03-17  Bruno Haible  <bruno@clisp.org>
58109
58110         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58111         to reflect files copied from gnulib (with or without modifications).
58112         Suggested by Jim Meyering.
58113
58114 2007-03-17  Eric Blake  <ebb9@byu.net>
58115
58116         * NEWS: Document stdlib change from 2007-02-18.
58117
58118 2007-03-17  Jim Meyering  <jim@meyering.net>
58119
58120         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58121         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58122         someone uses a name containing shell meta-characters.
58123         Reported by Alfred M. Szmidt.
58124
58125         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58126
58127 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58128
58129         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58130         and copy gettext configuration files only if configure.ac contains
58131         a use of AM_GNU_GETTEXT_VERSION.
58132
58133 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58134
58135         * build-aux/bootstrap (gnulib_name): New variable.
58136         (gnulib_tool_options): Use it.
58137
58138 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58139
58140         * tests/test-des.c: Use new namespace.
58141
58142 2007-03-15  Bruno Haible  <bruno@clisp.org>
58143
58144         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58145         Reported by James Youngman <jay@gnu.org>.
58146
58147 2007-03-15  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58150         declared prototype. Needed with cc on OSF/1 5.1.
58151
58152 2007-03-15  Bruno Haible  <bruno@clisp.org>
58153
58154         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58155         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58156         (struct gl_list_implementation): Add dispose_fn argument to the
58157         'create_empty', 'create' methods.
58158         (struct gl_list_impl_base): Add field 'dispose_fn'.
58159         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58160         argument.
58161         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58162         dispose_fn argument.
58163         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58164         dispose_fn on the dropped values.
58165         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58166         dispose_fn argument.
58167         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58168         dropped values.
58169         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58170         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58171         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58172         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58173         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58174         argument.
58175         (gl_tree_list_free): Call dispose_fn on the dropped values.
58176         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58177         the dropped values.
58178         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58179         Add dispose_fn argument.
58180         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58181         Call dispose_fn on the dropped values.
58182         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58183         Add dispose_fn argument.
58184         (gl_sublist_create): Initialize the 'dispose_fn' field.
58185         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58186         * tests/test-array_list.c (main): Update.
58187         * tests/test-carray_list.c (main): Update.
58188         * tests/test-avltree_list.c (main): Update.
58189         * tests/test-rbtree_list.c (main): Update.
58190         * tests/test-avltreehash_list.c (main): Update.
58191         * tests/test-rbtreehash_list.c (main): Update.
58192         * tests/test-linked_list.c (main): Update.
58193         * tests/test-linkedhash_list.c (main): Update.
58194         * tests/test-array_oset.c (main): Update.
58195
58196 2007-03-15  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58199         (gl_oset_create_empty): Add dispose_fn argument.
58200         (struct gl_oset_implementation): Add dispose_fn argument to
58201         'create_empty' method.
58202         (struct gl_oset_impl_base): Add dispose_fn field.
58203         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58204         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58205         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58206         values.
58207         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58208         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58209         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58210         dropped value.
58211         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58212         dropped value.
58213         * tests/test-array_oset.c (main): Update.
58214         * tests/test-avltree_oset.c (main): Update.
58215         * tests/test-rbtree_oset.c (main): Update.
58216         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58217
58218 2007-03-13  Bruno Haible  <bruno@clisp.org>
58219
58220         * tests/test-stdbool.c (i): Update after last patch.
58221
58222 2007-03-12  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58225         the iswprint macro. Needed on Solaris 2.5.1.
58226
58227 2007-03-12  Bruno Haible  <bruno@clisp.org>
58228
58229         * tests/test-printf-frexp.c (main): Declare x as volatile.
58230
58231 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58232
58233         * doc/gnulib.texi (Build robot for gnulib): New section.
58234
58235 2007-03-12  Jim Meyering  <jim@meyering.net>
58236
58237         * build-aux/bootstrap: New file.
58238         * build-aux/bootstrap.conf: New file, from coreutils.
58239
58240 2007-03-11  Bruno Haible  <bruno@clisp.org>
58241
58242         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58243
58244 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58245
58246         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58247         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58248         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58249
58250 2007-03-11  Bruno Haible  <bruno@clisp.org>
58251
58252         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58253         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58254
58255 2007-03-11  Bruno Haible  <bruno@clisp.org>
58256
58257         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58258         formula. Needed for SunPRO C 5.0.
58259
58260 2007-03-11  Bruno Haible  <bruno@clisp.org>
58261
58262         * modules/long-options (Depends-on): Add getopt.
58263
58264 2007-03-11  Bruno Haible  <bruno@clisp.org>
58265
58266         * modules/modechange (Depends-on): Add stdbool.
58267
58268 2007-03-11  Bruno Haible  <bruno@clisp.org>
58269
58270         * modules/i-ring (Depends-on): Add stdbool.
58271
58272 2007-03-11  Bruno Haible  <bruno@clisp.org>
58273
58274         * modules/gc-des (Depends-on): Add stdbool.
58275
58276 2007-03-11  Bruno Haible  <bruno@clisp.org>
58277
58278         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58279
58280 2007-03-11  Bruno Haible  <bruno@clisp.org>
58281
58282         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58283
58284 2007-03-11  Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58287
58288 2007-03-11  Bruno Haible  <bruno@clisp.org>
58289
58290         * lib/vasnprintf.c (sprintf): Undefine.
58291
58292 2007-03-11  Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58295         initializers in SunPRO C and Compaq C compilers.
58296
58297 2007-03-11  Bruno Haible  <bruno@clisp.org>
58298
58299         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58300         decrementing code ANSI C compliant.
58301
58302 2007-03-11  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58305         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58306
58307 2007-03-11  Bruno Haible  <bruno@clisp.org>
58308
58309         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58310         <stdbool.h> substitute doesn't pass.
58311
58312 2007-03-11  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58315
58316 2007-03-11  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58319         script, for submission to autobuild.josefsson.org.
58320
58321 2007-03-10  Bruno Haible  <bruno@clisp.org>
58322
58323         * modules/canonicalize-lgpl-tests: New file.
58324         * tests/test-canonicalize-lgpl.sh: New file.
58325         * tests/test-canonicalize-lgpl.c: New file.
58326
58327         * modules/c-strcase-tests: New file.
58328         * tests/test-c-strcase.sh: New file.
58329         * tests/test-c-strcasecmp.c: New file.
58330         * tests/test-c-strncasecmp.c: New file.
58331
58332         * modules/atexit-tests: New file.
58333         * tests/test-atexit.sh: New file.
58334         * tests/test-atexit.c: New file.
58335
58336 2007-03-10  Bruno Haible  <bruno@clisp.org>
58337
58338         * tests/test-binary-io.sh: Use temporary filenames that are not so
58339         likely to clash with those of other tests (in a parallel make).
58340         * tests/test-binary-io.c: Likewise.
58341
58342 2007-03-10  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58345         fallback; use #error instead.
58346         Suggested by Simon Josefsson.
58347
58348 2007-03-10  Bruno Haible  <bruno@clisp.org>
58349
58350         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58351         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58352         first and the last.
58353
58354 2007-03-10  Bruno Haible  <bruno@clisp.org>
58355
58356         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58357
58358 2007-03-10  Bruno Haible  <bruno@clisp.org>
58359
58360         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58361         "make distcheck".
58362         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58363         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58364         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58365
58366 2007-03-10  Bruno Haible  <bruno@clisp.org>
58367
58368         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58369         variable.
58370         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58371         variable.
58372
58373 2007-03-09  Eric Blake  <ebb9@byu.net>
58374         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58375
58376         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58377         types are not being provided by gnulib.
58378         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58379         types are supported.
58380
58381 2007-03-10  Bruno Haible  <bruno@clisp.org>
58382
58383         * lib/stdio_.h (__attribute__): New macro.
58384         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58385         vsprintf): Specify __attribute__ __format__ for GCC.
58386         Suggested by Eric Blake.
58387
58388 2007-03-09  Bruno Haible  <bruno@clisp.org>
58389
58390         * modules/printf-posix-tests: New file.
58391         * tests/test-printf-posix.sh: New file.
58392         * tests/test-printf-posix.c: New file.
58393
58394         * modules/printf-posix: New file.
58395         * lib/printf.c: New file.
58396         * m4/printf-posix-rpl.m4: New file.
58397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58398         REPLACE_PRINTF.
58399         * lib/stdio_.h (printf): New declaration.
58400         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58401         ____strfmon____): New macros.
58402         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58403         REPLACE_PRINTF.
58404
58405 2007-03-09  Bruno Haible  <bruno@clisp.org>
58406
58407         * tests/test-vasnprintf-posix2.sh: New file.
58408         * tests/test-vasnprintf-posix2.c: New file.
58409         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58410         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58411         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58412
58413         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58414         a locale dependent decimal point, rather than always '.'.
58415
58416 2007-03-09  Eric Blake  <ebb9@byu.net>
58417
58418         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58419         spite of platforms like Tandem/NSK that define it to -1.
58420
58421 2007-03-08  Bruno Haible  <bruno@clisp.org>
58422
58423         * modules/vprintf-posix-tests: New file.
58424         * tests/test-vprintf-posix.sh: New file.
58425         * tests/test-vprintf-posix.c: New file.
58426         * tests/test-printf-posix.h: New file.
58427
58428         * modules/vprintf-posix: New file.
58429         * lib/vprintf.c: New file.
58430         * m4/vprintf-posix.m4: New file.
58431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58432         REPLACE_VPRINTF.
58433         * lib/stdio_.h (vprintf): New declaration.
58434         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58435         REPLACE_VPRINTF.
58436
58437 2007-03-08  Bruno Haible  <bruno@clisp.org>
58438
58439         * modules/fprintf-posix-tests: New file.
58440         * tests/test-fprintf-posix.sh: New file.
58441         * tests/test-fprintf-posix.c: New file.
58442
58443         * modules/fprintf-posix: New file.
58444         * lib/fprintf.c: New file.
58445         * m4/fprintf-posix.m4: New file.
58446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58447         REPLACE_FPRINTF.
58448         * lib/stdio_.h (fprintf): New declaration.
58449         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58450         REPLACE_FPRINTF.
58451
58452 2007-03-08  Bruno Haible  <bruno@clisp.org>
58453
58454         * modules/vfprintf-posix-tests: New file.
58455         * tests/test-vfprintf-posix.sh: New file.
58456         * tests/test-vfprintf-posix.c: New file.
58457         * tests/test-fprintf-posix.h: New file.
58458         * tests/test-fprintf-posix.out: New file.
58459
58460         * modules/vfprintf-posix: New file.
58461         * lib/vfprintf.c: New file.
58462         * m4/vfprintf-posix.m4: New file.
58463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58464         REPLACE_VFPRINTF.
58465         * lib/stdio_.h (vfprintf): New declaration.
58466         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58467         REPLACE_VFPRINTF.
58468
58469 2007-03-08  Bruno Haible  <bruno@clisp.org>
58470
58471         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58472
58473 2007-03-08  Bruno Haible  <bruno@clisp.org>
58474
58475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58476         instead of 'expr' invocations.
58477         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58478         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58479         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58482         Suggested by Paul Eggert.
58483
58484 2007-03-08  Bruno Haible  <bruno@clisp.org>
58485
58486         * modules/fseterr-tests: New file.
58487         * tests/test-fseterr.c: New file.
58488
58489         * modules/fseterr: New file.
58490         * lib/fseterr.h: New file.
58491         * lib/fseterr.c: New file.
58492
58493 2007-03-08  Bruno Haible  <bruno@clisp.org>
58494
58495         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58496         * lib/getopt_.h: Likewise.
58497         * lib/mbswidth.h: Likewise.
58498         * lib/setenv.h: Likewise.
58499         * lib/vasnprintf.h: Likewise.
58500         * lib/vasprintf.h: Likewise.
58501         * lib/verror.h: Likewise.
58502         * lib/xsetenv.h: Likewise.
58503         * lib/xvasprintf.h: Likewise.
58504
58505 2007-03-08  Jim Meyering  <jim@meyering.net>
58506
58507         * users.txt: Add parted.
58508
58509         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58510
58511 2007-03-07  Bruno Haible  <bruno@clisp.org>
58512
58513         * m4/printf.m4: Make the shell script snippets copy&pastable.
58514
58515 2007-03-02  Bruno Haible  <bruno@clisp.org>
58516
58517         * lib/netinet_in_.h: New file.
58518         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58519         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58520         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58521         (Depends-on): Add absolute-header.
58522         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58523         into netinet/in.h.
58524
58525 2007-03-03  Bruno Haible  <bruno@clisp.org>
58526
58527         * lib/sys_select_.h: New file.
58528         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58529         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58530         * modules/sys_select (Files): Add lib/sys_select_.h.
58531         (Depends-on): Add absolute-header.
58532         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58533         into sys/select.h.
58534
58535 2007-03-02  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58538         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58539         values.
58540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58541         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58542         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58543         * modules/sys_socket (Depends-on): Add absolute-header.
58544         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58545         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58546         (Include): Remove requirement of inclusion of <sys/types.h>.
58547
58548 2007-03-02  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/byteswap_.h (bswap_32): Fix formula.
58551
58552 2007-03-06  Bruno Haible  <bruno@clisp.org>
58553
58554         * modules/sprintf-posix-tests: New file.
58555         * tests/test-sprintf-posix.c: New file.
58556
58557         * modules/sprintf-posix: New file.
58558         * lib/sprintf.c: New file.
58559         * m4/sprintf-posix.m4: New file.
58560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58561         REPLACE_SPRINTF.
58562         * lib/stdio_.h (sprintf): New declaration.
58563         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58564         REPLACE_SPRINTF.
58565
58566 2007-03-06  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/vsprintf-posix-tests: New file.
58569         * tests/test-vsprintf-posix.c: New file.
58570         * tests/test-sprintf-posix.h: New file.
58571
58572         * modules/vsprintf-posix: New file.
58573         * lib/vsprintf.c: New file.
58574         * m4/vsprintf-posix.m4: New file.
58575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58576         REPLACE_VSPRINTF.
58577         * lib/stdio_.h (vsprintf): New declaration.
58578         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58579         REPLACE_VSPRINTF.
58580
58581 2007-03-06  Bruno Haible  <bruno@clisp.org>
58582
58583         * modules/vsnprintf (Depend-on): Remove minmax.
58584
58585 2007-03-06  Bruno Haible  <bruno@clisp.org>
58586
58587         * modules/snprintf-posix-tests: New file.
58588         * tests/test-snprintf-posix.c: New file.
58589
58590         * modules/snprintf-posix: New file.
58591         * m4/snprintf-posix.m4: New file.
58592         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58593         gl_FUNC_SNPRINTF.
58594         (gl_FUNC_SNPRINTF): Invoke it.
58595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58596         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58597         is set.
58598         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58599
58600 2007-03-06  Bruno Haible  <bruno@clisp.org>
58601
58602         * modules/vsnprintf-posix-tests: New file.
58603         * tests/test-vsnprintf-posix.c: New file.
58604         * tests/test-snprintf-posix.h: New file.
58605
58606         * modules/vsnprintf-posix: New file.
58607         * m4/vsnprintf-posix.m4: New file.
58608         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58609         gl_FUNC_VSNPRINTF.
58610         (gl_FUNC_VSNPRINTF): Invoke it.
58611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58612         * lib/stdio_.h (vsnprintf): Define as a replacement if
58613         REPLACE_VSNPRINTF is set.
58614         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58615
58616 2007-03-06  Bruno Haible  <bruno@clisp.org>
58617
58618         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58620
58621 2007-03-06  Bruno Haible  <bruno@clisp.org>
58622
58623         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58624         (asinl): Declare also if HAVE_DECL_ASINL is set.
58625         (atanl): Declare also if HAVE_DECL_ATANL is set.
58626         (ceill): Declare also if HAVE_DECL_CEILL is set.
58627         (cosl): Declare also if HAVE_DECL_COSL is set.
58628         (expl): Declare also if HAVE_DECL_EXPL is set.
58629         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58630         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58631         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58632         (logl): Declare also if HAVE_DECL_LOGL is set.
58633         (sinl): Declare also if HAVE_DECL_SINL is set.
58634         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58635         (tanl): Declare also if HAVE_DECL_TANL is set.
58636         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58639         declaration of frexpl, ldexpl.
58640         * modules/printf-frexpl (Depends-on): Add math.
58641         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58642
58643 2007-03-05  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58646         frexpl and ldexpl are declared.
58647         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58648
58649 2007-03-05  Bruno Haible  <bruno@clisp.org>
58650
58651         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58652         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58653
58654 2007-03-05  Bruno Haible  <bruno@clisp.org>
58655
58656         * lib/stdio_.h: Include <stddef.h>.
58657
58658 2007-03-05  Bruno Haible  <bruno@clisp.org>
58659
58660         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58661
58662 2007-03-05  Bruno Haible  <bruno@clisp.org>
58663
58664         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58665         NetBSD 4, from Ralf Wildenhues.
58666
58667 2007-03-04  Bruno Haible  <bruno@clisp.org>
58668
58669         * lib/vasprintf.h: Update #if logic for the case when the functions
58670         exist but are overridden.
58671
58672 2007-03-04  Bruno Haible  <bruno@clisp.org>
58673
58674         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58675         implementations: glibc-2.4 and MacOS X 10.3.
58676         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58677         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58678         * tests/test-vasprintf-posix.c (test_function): Likewise.
58679
58680 2007-03-04  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/vasprintf-posix-tests: New file.
58683         * tests/test-vasprintf-posix.c: New file.
58684
58685         * modules/vasprintf-posix: New file.
58686         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58687         defined.
58688         * m4/vasprintf-posix.m4: New file.
58689         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58690         gl_FUNC_VASPRINTF.
58691         (gl_FUNC_VASPRINTF): Invoke it.
58692         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58693         here.
58694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58695
58696 2007-03-04  Bruno Haible  <bruno@clisp.org>
58697
58698         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58699         REPLACE_GETTIMEOFDAY.
58700         * modules/sys_time (Makefile.am): Likewise.
58701         * m4/sys_time_h.m4: Likewise.
58702         * m4/gettimeofday.m4: Likewise.
58703
58704 2007-03-04  Bruno Haible  <bruno@clisp.org>
58705
58706         * modules/vasnprintf-posix-tests: New file.
58707         * tests/test-vasnprintf-posix.c: New file.
58708
58709         * modules/vasnprintf-posix: New file.
58710         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58711         printf-frexpl.h.
58712         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58713         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58714         REPLACE_VASNPRINTF is defined.
58715         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58716         gl_FUNC_VASNPRINTF.
58717         (gl_FUNC_VASNPRINTF): Invoke it.
58718         * m4/vasnprintf-posix.m4: New file.
58719         * m4/printf.m4: New file.
58720
58721 2007-03-04  Bruno Haible  <bruno@clisp.org>
58722
58723         Compile progreloc.c only if --enable-relocatable is specified.
58724         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58725         if --enable-relocatable was specified.
58726         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58727         lib_SOURCES.
58728
58729 2007-03-04  Jim Meyering  <jim@meyering.net>
58730
58731         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58732         Use it consistently, rather than enumerating errno constants.
58733
58734 2007-03-04  Bruno Haible  <bruno@clisp.org>
58735
58736         * modules/xvasprintf-tests: New file.
58737         * tests/test-xvasprintf.c: New file.
58738
58739         * modules/vasprintf-tests: New file.
58740         * tests/test-vasprintf.c: New file.
58741
58742         * modules/vasnprintf-tests: New file.
58743         * tests/test-vasnprintf.c: New file.
58744
58745         * modules/vsnprintf-tests: New file.
58746         * tests/test-vsnprintf.c: New file.
58747
58748         * modules/snprintf-tests: New file.
58749         * tests/test-snprintf.c: New file.
58750
58751 2007-03-04  Bruno Haible  <bruno@clisp.org>
58752
58753         Compile relocatable.c only if --enable-relocatable is specified.
58754         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58755         gl_RELOCATABLE_LIBRARY.
58756         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58757         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58758         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58759         gl_RELOCATABLE_LIBRARY.
58760         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58761         (Makefile.am): Remove lib_SOURCES.
58762         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58763         gl_RELOCATABLE_LIBRARY.
58764         (Makefile.am): Remove lib_SOURCES.
58765         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58766         always.
58767         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58768         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58769
58770 2007-03-04  Bruno Haible  <bruno@clisp.org>
58771
58772         * modules/argmatch-tests: New file.
58773         * tests/test-argmatch.c: New file.
58774
58775         * tests/test-allocsa.c (main): Halve the number of loop runs.
58776
58777         * modules/alloca-opt-tests: New file.
58778         * tests/test-alloca-opt.c: New file.
58779
58780 2007-03-04  Jim Meyering  <jim@meyering.net>
58781
58782         Work around difference between Linux ACLs and Solaris 10 ZFS.
58783         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58784         for EINVAL.
58785
58786 2007-03-03  Bruno Haible  <bruno@clisp.org>
58787
58788         * modules/relocatable-prog (Depends-on): Add back progreloc's
58789         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58790
58791 2007-03-03  Bruno Haible  <bruno@clisp.org>
58792
58793         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58794         * modules/relocatable-lib: New file.
58795
58796 2007-03-03  Bruno Haible  <bruno@clisp.org>
58797
58798         * modules/relocatable-prog: Renamed from modules/relocatable.
58799         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58800
58801 2007-03-03  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58804         m4/relocatable-lib.m4.
58805         (Depends-on): Remove 'relocatable'.
58806         (configure.ac): Add gl_RELOCATABLE_NOP.
58807
58808 2007-03-03  Bruno Haible  <bruno@clisp.org>
58809
58810         * modules/relocatable-prog-wrapper: New file.
58811         * modules/relocatable (Depends-on): Add it. Remove all other
58812         dependencies except progname.
58813         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58814
58815         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58816         (gl_FUNC_STRERROR): Nop.
58817         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58818
58819         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58820         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58821
58822         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58823         (gl_FUNC_READLINK): Update.
58824
58825         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58826
58827 2007-03-03  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58830         * modules/xreadlink (Depends-on): Add unistd.
58831         * modules/xreadlink-with-size (Depends-on): Likewise.
58832
58833 2007-03-03  Bruno Haible  <bruno@clisp.org>
58834
58835         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58836         extracted from gt_FUNC_SETENV.
58837         (gt_FUNC_SETENV): Remove macro.
58838         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58839         remove gt_FUNC_SETENV.
58840
58841 2007-03-03  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58844         ENABLE_RELOCATABLE here.
58845         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58846
58847 2007-03-03  Bruno Haible  <bruno@clisp.org>
58848
58849         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58850         * tests/test-rbtreehash_list.c: Include progname.h.
58851         (main): Call set_program_name.
58852
58853         * modules/rbtree-oset-tests (Depends-on): Add progname.
58854         * tests/test-rbtree_oset.c: Include progname.h.
58855         (main): Call set_program_name.
58856
58857         * modules/rbtree-list-tests (Depends-on): Add progname.
58858         * tests/test-rbtree_list.c: Include progname.h.
58859         (main): Call set_program_name.
58860
58861         * modules/linked-list-tests (Depends-on): Add progname.
58862         * tests/test-linked_list.c: Include progname.h.
58863         (main): Call set_program_name.
58864
58865 2007-03-03  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58868         All uses of __restrict changed to _Restrict_.
58869         * lib/glob_.h (__restrict): Remove macro.
58870
58871 2007-03-02  Bruno Haible  <bruno@clisp.org>
58872
58873         * modules/gettext (configure.ac): Require gettext infrastructure
58874         from version 0.16.1.
58875
58876 2007-03-02  Bruno Haible  <bruno@clisp.org>
58877
58878         * modules/linkedhash-list-tests (Depends-on): Add progname.
58879         * tests/test-linkedhash_list.c: Include progname.h.
58880         (main): Call set_program_name.
58881
58882         * modules/carray-list-tests (Depends-on): Add progname.
58883         * tests/test-carray_list.c: Include progname.h.
58884         (main): Call set_program_name.
58885
58886         * modules/avltreehash-list-tests (Depends-on): Add progname.
58887         * tests/test-avltreehash_list.c: Include progname.h.
58888         (main): Call set_program_name.
58889
58890         * modules/avltree-oset-tests (Depends-on): Add progname.
58891         * tests/test-avltree_oset.c: Include progname.h.
58892         (main): Call set_program_name.
58893
58894         * modules/avltree-list-tests (Depends-on): Add progname.
58895         * tests/test-avltree_list.c: Include progname.h.
58896         (main): Call set_program_name.
58897
58898         * modules/array-oset-tests (Depends-on): Add progname.
58899         * tests/test-array_oset.c: Include progname.h.
58900         (main): Call set_program_name.
58901
58902         * modules/array-list-tests (Depends-on): Add progname.
58903         * tests/test-array_list.c: Include progname.h.
58904         (main): Call set_program_name.
58905
58906         * modules/argp-tests (Depends-on): Add progname.
58907         * tests/test-argp.c: Include argp.h first. Include progname.h.
58908         (main): Call set_program_name.
58909
58910 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         * doc/gnulib-tool.texi (Initial import): Reword description of
58913         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58914         limited effect even if defined after the first system include.
58915
58916 2007-03-01  Bruno Haible  <bruno@clisp.org>
58917
58918         * build-aux/config.libpath: Update to libtool-1.5.22.
58919         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58920
58921 2007-03-01  Bruno Haible  <bruno@clisp.org>
58922
58923         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58924         foo_CFLAGS.
58925         Reported by Ralf Wildenhues.
58926
58927 2007-03-01  Bruno Haible  <bruno@clisp.org>
58928
58929         * build-aux/install-reloc: Remove object files left over by some
58930         compilers.
58931         Reported by Ralf Wildenhues.
58932
58933 2007-03-01  Bruno Haible  <bruno@clisp.org>
58934
58935         * build-aux/install-reloc: Break long lines.
58936
58937 2007-03-01  Bruno Haible  <bruno@clisp.org>
58938
58939         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58940         Reported by Ralf Wildenhues.
58941
58942 2007-03-01  Bruno Haible  <bruno@clisp.org>
58943
58944         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58945         include ordering constraints.
58946
58947 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58948
58949         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58951         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58952         as another example.
58953         * lib/time_.h: Fix misspelling.
58954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58955         Require gl_HEADER_TIME_H_DEFAULTS.
58956         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58957         * m4/time_r.m4 (gl_TIME_R): Likewise.
58958         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58959
58960 2007-03-01  Bruno Haible  <bruno@clisp.org>
58961
58962         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58963         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58964
58965 2007-03-01  Jim Meyering  <jim@meyering.net>
58966
58967         * modules/xreadlink (Maintainer): Add my name.
58968         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58969
58970 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58971             Bruno Haible  <bruno@clisp.org>
58972
58973         * build-aux/install-reloc: Compile also c-ctype.c.
58974         * build-aux/relocatable.sh.in: New file.
58975         * doc/relocatable.texi: New file.
58976         * doc/relocatable-maint.texi: New file.
58977         * doc/gnulib.texi: Include relocatable-maint.texi.
58978         * lib/progreloc.c: Include unistd.h unconditionally.
58979         * lib/relocwrapper.c: Include unistd.h unconditionally.
58980         Include c-ctype.h.
58981         (add_dotbin): Use c_tolower.
58982         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58983         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58984         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58985         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58986         to m4/relocatable-lib.m4.
58987         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58988         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58989         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58990         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58991         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58992         * modules/relocatable: New file.
58993         * modules/relocatable-lib: New file.
58994         * modules/relocatable-script: New file.
58995
58996 2007-02-28  Bruno Haible  <bruno@clisp.org>
58997
58998         Import --enable-relocatable infrastructure.
58999         * build-aux/config.libpath: New file, from GNU gettext.
59000         * build-aux/install-reloc: New file, from GNU gettext.
59001         * build-aux/reloc-ldflags: New file, from GNU gettext.
59002         * lib/relocatable.h: New file, from GNU gettext.
59003         * lib/relocatable.c: New file, from GNU gettext.
59004         * lib/relocwrapper.c: New file, from GNU gettext.
59005         * m4/relocatable.m4: New file, from GNU gettext.
59006
59007 2007-02-28  Bruno Haible  <bruno@clisp.org>
59008
59009         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59010
59011         * modules/xreadlink: New file, from GNU gettext with modifications.
59012         * lib/xreadlink.c: New file, from GNU gettext.
59013         * lib/xreadlink.h: Add comments.
59014         (xreadlink): New declaration.
59015
59016         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59017         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59018         lib/xreadlink-with-size.c.
59019         (configure.ac): Remove gl_XREADLINK invocation.
59020         (Makefile.am): Augment lib_SOURCES.
59021         * m4/xreadlink.m4: Remove file.
59022         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59023         (xreadlink_with_size): Renamed from xreadink.
59024         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59025         * modules/canonicalize (Depends-on): Replace xreadlink with
59026         xreadlink-with-size.
59027         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59028
59029 2007-02-25  Jim Meyering  <jim@meyering.net>
59030
59031         * build-aux/announce-gen: When complaining about excess arguments,
59032         list them.
59033
59034 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * README: Document signed integer overflow situation more
59037         accurately.
59038
59039 2007-02-25  Bruno Haible  <bruno@clisp.org>
59040
59041         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59042         'a' or 'A' conversion.
59043
59044 2007-02-25  Bruno Haible  <bruno@clisp.org>
59045
59046         * modules/filename: Renamed from modules/pathname.
59047         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59048         lib/concatpath.c with lib/concat-filename.c.
59049         (Makefile.am): Update.
59050         (Include): Replace pathname.h with filename.h.
59051         * lib/filename.h: Renamed from lib/pathname.h.
59052         (concatenated_filename): Renamed from concatenated_pathname.
59053         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59054         (concatenated_filename): Renamed from concatenated_pathname.
59055         * lib/findprog.c: Include filename.h instead of pathname.h.
59056         (find_in_path): Update.
59057         * lib/javacomp.c: Include filename.h instead of pathname.h.
59058         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59059         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59060         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59061         is_oldgcj_14_13_usable, is_javac_usable): Update.
59062         * lib/javaexec.c: Include filename.h instead of pathname.h.
59063         (execute_java_class): Update.
59064         * modules/findprog: Update.
59065         * modules/javacomp: Update.
59066         * modules/javaexec: Update.
59067         * MODULES.html.sh (File system functions): Add 'filename', remove
59068         'pathname'.
59069
59070 2007-02-25  Bruno Haible  <bruno@clisp.org>
59071
59072         * modules/printf-frexpl-tests: New file.
59073         * tests/test-printf-frexpl.c: New file.
59074
59075         * modules/printf-frexpl: New file.
59076         * lib/printf-frexpl.h: New file.
59077         * lib/printf-frexpl.c: New file.
59078         * m4/printf-frexpl.m4: New file.
59079
59080 2007-02-25  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/printf-frexp-tests: New file.
59083         * tests/test-printf-frexp.c: New file.
59084
59085         * modules/printf-frexp: New file.
59086         * lib/printf-frexp.h: New file.
59087         * lib/printf-frexp.c: New file.
59088         * m4/printf-frexp.m4: New file.
59089
59090 2007-02-25  Bruno Haible  <bruno@clisp.org>
59091
59092         Assume automake >= 1.10 for the tests.
59093         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59094         * modules/arctwo-tests: Likewise.
59095         * modules/argp-tests: Likewise.
59096         * modules/avltree-list-tests: Likewise.
59097         * modules/avltree-oset-tests: Likewise.
59098         * modules/avltreehash-list-tests: Likewise.
59099         * modules/carray-list-tests: Likewise.
59100         * modules/crc-tests: Likewise.
59101         * modules/des-tests: Likewise.
59102         * modules/gc-arcfour-tests: Likewise.
59103         * modules/gc-arctwo-tests: Likewise.
59104         * modules/gc-des-tests: Likewise.
59105         * modules/gc-hmac-md5-tests: Likewise.
59106         * modules/gc-hmac-sha1-tests: Likewise.
59107         * modules/gc-md2-tests: Likewise.
59108         * modules/gc-md4-tests: Likewise.
59109         * modules/gc-md5-tests: Likewise.
59110         * modules/gc-pbkdf2-sha1-tests: Likewise.
59111         * modules/gc-rijndael-tests: Likewise.
59112         * modules/gc-sha1-tests: Likewise.
59113         * modules/gc-tests: Likewise.
59114         * modules/getaddrinfo-tests: Likewise.
59115         * modules/hmac-md5-tests: Likewise.
59116         * modules/hmac-sha1-tests: Likewise.
59117         * modules/linked-list-tests: Likewise.
59118         * modules/linkedhash-list-tests: Likewise.
59119         * modules/lock-tests: Likewise.
59120         * modules/md2-tests: Likewise.
59121         * modules/md4-tests: Likewise.
59122         * modules/md5-tests: Likewise.
59123         * modules/rbtree-list-tests: Likewise.
59124         * modules/rbtree-oset-tests: Likewise.
59125         * modules/rbtreehash-list-tests: Likewise.
59126         * modules/read-file-tests: Likewise.
59127         * modules/rijndael-tests: Likewise.
59128         * modules/stdint-tests: Likewise.
59129         * modules/tls-tests: Likewise.
59130
59131 2007-02-24  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59134         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59135         function; instead check whether isnan with a double argument links.
59136         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59137         function; instead check whether isnan with a 'long double' argument
59138         links.
59139         Reported by Eric Blake <ebb9@byu.net>.
59140
59141 2007-02-24  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59144         defined.
59145         * lib/isnanl.c: Remove all code. Just include isnan.c.
59146         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59147
59148 2007-02-25  Jim Meyering  <jim@meyering.net>
59149
59150         Avoid conflicting types for 'unsetenv' on FreeBSD.
59151         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59152         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59153         in stdlib.h.
59154
59155 2007-02-24  Bruno Haible  <bruno@clisp.org>
59156
59157         * modules/isnanl-nolibm-tests: New file.
59158         * tests/test-isnanl.c: New file.
59159
59160         * modules/isnanl-nolibm: New file.
59161         * lib/isnanl.h: New file.
59162         * lib/isnanl.c: New file.
59163         * m4/isnanl.m4: New file.
59164
59165 2007-02-24  Bruno Haible  <bruno@clisp.org>
59166
59167         * modules/isnan-nolibm-tests: New file.
59168         * tests/test-isnan.c: New file.
59169
59170         * modules/isnan-nolibm: New file.
59171         * lib/isnan.h: New file.
59172         * lib/isnan.c: New file.
59173         * m4/isnan.m4: New file.
59174
59175 2007-02-24  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59178         assume that an exponent fits in 20 bits.
59179
59180 2007-02-24  Jim Meyering  <jim@meyering.net>
59181
59182         * m4/regex.m4: Update the description of the configure-time option,
59183         --without-included-regex, to state accurately what the defaults are,
59184         and perhaps to give people an idea why using this option is risky.
59185
59186 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59189         loops on small arguments.  This attempts to avoid the problem
59190         Bruno Haible reported for AIX 4.3.2 in
59191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59192
59193 2007-02-23  Bruno Haible  <bruno@clisp.org>
59194
59195         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59196         Needed for help2man.
59197
59198 2007-02-23  Karl Berry  <karl@gnu.org>
59199
59200         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59201         exists, foo.h should be cvs-ignored, not committed.
59202
59203 2007-02-23  Eric Blake  <ebb9@byu.net>
59204
59205         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59206         * lib/stat-time.h (includes): Likewise.
59207         * lib/utimecmp.c (includes): Likewise.
59208         * lib/utimens.h (includes): Likewise.
59209         * lib/getdate.y (includes): Also include "timespec.h" for use
59210         internal to the module.
59211         * modules/utimens (Depends-on): Revert yesterday's patch.
59212         * modules/nanosleep (Depends-on): Add missing dependency.
59213
59214 2007-02-22  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/glob.c: Don't include getlogin_r.h.
59217
59218 2007-02-22  Jim Meyering  <jim@meyering.net>
59219
59220         * modules/utimens (Depends-on): Add timespec, required for
59221         utimens.h's inclusion of timespec.h.
59222
59223 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59226         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59227         Schwab in
59228         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59229         I'll try to think of a better way to fix the Solaris problem.
59230
59231         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59232         like glibc; on Solaris 10, it fails with errno == EINVAL.
59233         POSIX says the behavior is unspecified if the first argument is NULL,
59234         so play it safe and never pass NULL to the system getcwd.
59235
59236 2007-02-21  Jim Meyering  <jim@meyering.net>
59237
59238         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59239         of gettimeofday.  It would conflict with the one now always
59240         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59241         an IRIX 6.5 build failure.
59242
59243 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59244
59245         Minor fixups to port to Solaris 10 with Sun C 5.8.
59246         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59247         * modules/getcwd (Depends-on): Add dirfd.
59248         * lib/putenv.c (putenv): #undef it.
59249         (rpl_putenv): New decl.
59250         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59251
59252 2007-02-20  Bruno Haible  <bruno@clisp.org>
59253
59254         * modules/stdio-tests: New file.
59255         * tests/test-stdio.c: New file.
59256
59257         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59258         (Depends-on): Add stdio.
59259         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59260         (Include): Use <stdio.h> instead of vsnprintf.h.
59261         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59262         HAVE_DECL_VSNPRINTF.
59263         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59264
59265         * modules/snprintf (Files): Remove lib/snprintf.h.
59266         (Depends-on): Add stdio.
59267         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59268         (Include): Use <stdio.h> instead of snprintf.h.
59269         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59270         HAVE_DECL_SNPRINTF.
59271         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59272         * lib/getaddrinfo.c: Likewise.
59273
59274         * modules/stdio: New file.
59275         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59276         * lib/snprintf.h: Remove file.
59277         * lib/vsnprintf.h: Remove file.
59278         * lib/.cppi-disable: Remove snprintf.h.
59279         * m4/stdio_h.m4: New file.
59280         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59281
59282 2007-02-20  Jim Meyering  <jim@meyering.net>
59283
59284         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59285         used by e.g., mingw.  From Bruno Haible.
59286
59287 2007-02-19  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59290         warnings.
59291         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59292
59293 2007-02-19  Bruno Haible  <bruno@clisp.org>
59294
59295         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59296         from mingw users.
59297
59298 2007-02-19  Bruno Haible  <bruno@clisp.org>
59299
59300         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59301         warnings.
59302         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59303
59304 2007-02-19  Jim Meyering  <jim@meyering.net>
59305
59306         Don't use FD after a successful "fdopendir (fd)".
59307         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59308         Reset it by calling dirfd on the just-obtained DIR*.
59309
59310         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59311         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59312
59313 2007-02-18  Bruno Haible  <bruno@clisp.org>
59314
59315         * lib/readlink.c: Include <unistd.h>.
59316         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59317         HAVE_READLINK.
59318         * modules/readlink (Depends-on): Add unistd.
59319         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59320         (Include): Add <unistd.h>.
59321
59322         * lib/getlogin_r.h: Remove file.
59323         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59324         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59325         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59326         HAVE_DECL_GETLOGIN_R.
59327         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59329         (Include): Use <unistd.h> instead of getlogin_r.h.
59330
59331         * lib/getcwd.h: Remove file.
59332         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59333         * lib/xgetcwd.c: Likewise.
59334         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59335         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59336         * modules/getcwd (Files): Remove lib/getcwd.h.
59337         (Depends-on): Add unistd.
59338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59339         (Include): Use <unistd.h> instad of getcwd.h.
59340
59341         * lib/ftruncate.c: Include <unistd.h> first.
59342         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59343         Set HAVE_FTRUNCATE.
59344         * modules/ftruncate (Depends-on): Add unistd.
59345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59346
59347         * lib/fchdir.c: Include <unistd.h> first.
59348         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59350         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59351         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59352         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59353
59354         * lib/dup2.c: Include <unistd.h> first.
59355         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59356         HAVE_DUP2.
59357         * modules/dup2 (Depends-on): Add unistd.
59358         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59359
59360         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59361         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59362         REPLACE_CHOWN. Don't define chown as a macro here.
59363         * modules/chown (Depends-on): Add unistd.
59364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59365
59366         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59367         Add definition for GL_LINK_WARNING.
59368         (chown, dup2): New declarations.
59369         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59370         link warning.
59371         (ftruncate): New declaration.
59372         (getcwd): New declaration, taken from old getcwd.h.
59373         (getlogin_r): New declaration, taken from old getlogin_r.h.
59374         (readlink): New declaration.
59375         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59376         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59377         (gl_PREREQ_UNISTD): Remove macro.
59378         (gl_UNISTD_MODULE_INDICATOR): New macro.
59379         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59380         many new variables. Don't set UNISTD_H.
59381         * modules/unistd (Description): Change.
59382         (Depends-on): Add link-warning.
59383         (configure.ac): Update.
59384         (Makefile.am): Create unistd.h always. Substitute many new variables
59385         into it.
59386
59387 2007-02-18  Bruno Haible  <bruno@clisp.org>
59388
59389         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59390         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59391         HAVE_GETSUBOPT.
59392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59393         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59394         * lib/getsubopt.h: Remove file.
59395         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59396         (Depends-on): Add stdlib.
59397         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59398         (Includes): Use <stdlib.h> instead of getsubopt.h.
59399         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59400         Set HAVE_GETSUBOPT.
59401         * lib/getsubopt.c: Don't include getsubopt.h.
59402
59403 2007-02-18  Bruno Haible  <bruno@clisp.org>
59404
59405         * modules/fchdir (Depends-on): Add dup2.
59406
59407 2007-02-18  Bruno Haible  <bruno@clisp.org>
59408
59409         * lib/stdlib_.h: Handle glibc's special invocation convention
59410         specially.
59411
59412 2007-02-18  Bruno Haible  <bruno@clisp.org>
59413
59414         * modules/stdlib-tests: New file.
59415         * tests/test-stdlib.c: New file.
59416
59417         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59418         (Depends-on): Add stdlib.
59419         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59420         (Includes): Use <stdlib.h> instead of mkstemp.h.
59421         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59422         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59423         * lib/mkstemp.c: Don't include mkstemp.h.
59424         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59425         * lib/stdlib--.h: Don't include mkstemp.h.
59426
59427         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59428         (Depends-on): Add stdlib.
59429         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59430         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59431         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59432         HAVE_MKDTEMP.
59433         * lib/mkdtemp.c: Don't include mkdtemp.h.
59434         * lib/clean-temp.c: Don't include mkdtemp.h.
59435
59436         * modules/exit (Files): Remove lib/exit.h.
59437         (Depends-on): Add stdlib.
59438         (Makefile.am): Remove lib_SOURCES.
59439         (Include): Use <stdlib.h> instead of exit.h.
59440         * lib/argmatch.c: Don't include exit.h.
59441         * lib/execute.c: Likewise.
59442         * lib/pagealign_alloc.c: Likewise.
59443         * lib/pipe.c: Likewise.
59444         * lib/wait-process.c: Likewise.
59445         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59446         * lib/exitfail.c: Likewise.
59447         * lib/savewd.c: Likewise.
59448         * lib/xsetenv.c: Likewise.
59449
59450         * modules/stdlib: New file.
59451         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59452         and extra comments about mkstemp().
59453         * lib/exit.h: Remove file.
59454         * lib/mkdtemp.h: Remove file.
59455         * lib/mkstemp.h: Remove file.
59456         * m4/stdlib_h.m4: New file.
59457         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59458
59459 2007-02-18  Bruno Haible  <bruno@clisp.org>
59460
59461         * modules/math-tests: New file.
59462         * tests/test-math.c: New file.
59463
59464         * modules/math: New file.
59465         * modules/mathl (Files): Remove lib/mathl.h.
59466         (Depends-on): Add math.
59467         (Makefile.am): Don't mention mathl.h.
59468         (Include): Use <math.h> instead of mathl.h.
59469         * lib/math_.h: New file.
59470         * lib/mathl.h: Remove file.
59471         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59472         mathl.h.
59473         * lib/asinl.c: Likewise.
59474         * lib/atanl.c: Likewise.
59475         * lib/ceill.c: Likewise.
59476         * lib/cosl.c: Likewise.
59477         * lib/expl.c: Likewise.
59478         * lib/floorl.c: Likewise.
59479         * lib/frexpl.c: Likewise.
59480         * lib/ldexpl.c: Likewise.
59481         * lib/logl.c: Likewise.
59482         * lib/sincosl.c: Likewise.
59483         * lib/sinl.c: Likewise.
59484         * lib/sqrtl.c: Likewise.
59485         * lib/tanl.c: Likewise.
59486         * lib/trigl.c: Likewise.
59487         * m4/math_h.m4: New file.
59488         * MODULES.html.sh (Mathematics): Add math.
59489
59490 2007-02-17  Bruno Haible  <bruno@clisp.org>
59491
59492         * modules/wctype-tests: New file.
59493         * tests/test-wctype.c: New file.
59494
59495         * modules/wchar-tests: New file.
59496         * tests/test-wchar.c: New file.
59497
59498         * modules/unistd-tests: New file.
59499         * tests/test-unistd.c: New file.
59500
59501         * modules/time-tests: New file.
59502         * tests/test-time.c: New file.
59503
59504         * modules/sysexits-tests: New file.
59505         * tests/test-sysexits.c: New file.
59506
59507         * modules/sys_time-tests: New file.
59508         * tests/test-sys_time.c: New file.
59509
59510         * modules/sys_stat-tests: New file.
59511         * tests/test-sys_stat.c: New file.
59512
59513         * modules/sys_socket-tests: New file.
59514         * tests/test-sys_socket.c: New file.
59515
59516         * modules/sys_select-tests: New file.
59517         * tests/test-sys_select.c: New file.
59518
59519         * modules/string-tests: New file.
59520         * tests/test-string.c: New file.
59521
59522         * modules/stdbool-tests: New file.
59523         * tests/test-stdbool.c: New file.
59524
59525         * modules/netinet_in-tests: New file.
59526         * tests/test-netinet_in.c: New file.
59527
59528         * modules/inttypes-tests: New file.
59529         * tests/test-inttypes.c: New file.
59530
59531         * modules/fcntl-tests: New file.
59532         * tests/test-fcntl.c: New file.
59533
59534         * modules/byteswap-tests: New file.
59535         * tests/test-byteswap.c: New file.
59536
59537         * modules/arpa_inet-tests: New file.
59538         * tests/test-arpa_inet.c: New file.
59539
59540 2007-02-17  Bruno Haible  <bruno@clisp.org>
59541
59542         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59543         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59544         if the corresponding module is not enabled. Emit link warnings if
59545         the function is used nevertheless.
59546         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59547         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59548         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59549         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59550         * modules/inttypes (Depends-on): Add link-warning.
59551         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59552         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59553         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59554         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59555         * modules/imaxdiv (configure.ac): Likewise.
59556         * modules/strtoimax (configure.ac): Likewise.
59557         * modules/strtoumax (configure.ac): Likewise.
59558
59559 2007-02-17  Bruno Haible  <bruno@clisp.org>
59560
59561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59562         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59563         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59564         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59565
59566 2007-02-17  Bruno Haible  <bruno@clisp.org>
59567
59568         * modules/link-warning: New file.
59569         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59570         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59571         * modules/string (Depends-on): Add link-warning.
59572         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59573         string.h.
59574         * MODULES.html.sh (Support for building libraries and executables): Add
59575         link-warning.
59576
59577 2007-02-17  Bruno Haible  <bruno@clisp.org>
59578
59579         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59580         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59581         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59582         long lines.
59583
59584 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59585             Bruno Haible  <bruno@clisp.org>
59586
59587         * modules/tmpfile: New file.
59588         * lib/tmpfile.c: New file.
59589         * m4/tmpfile.m4: New file.
59590         * MODULES.html.sh (func_all_modules): New section "Input/output".
59591
59592 2007-02-15  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59595         (supports_delete_on_close): New function.
59596         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59597
59598 2007-02-14  Bruno Haible  <bruno@clisp.org>
59599
59600         * modules/mbspcasecmp-tests: New file.
59601         * tests/test-mbspcasecmp.sh: New file.
59602         * tests/test-mbspcasecmp.c: New file.
59603
59604         New module mbspcasecmp.
59605         * modules/mbspcasecmp: New file.
59606         * lib/mbspcasecmp.c: New file.
59607         * lib/string_.h (strncasecmp): Change warning message.
59608         (mbspcasecmp): New declaration.
59609         * m4/mbspcasecmp.m4: New file.
59610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59611         GNULIB_MBSPCASECMP.
59612         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59613         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59614
59615 2007-02-14  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/mbsncasecmp-tests: New file.
59618         * tests/test-mbsncasecmp.sh: New file.
59619         * tests/test-mbsncasecmp.c: New file.
59620
59621         New module mbsncasecmp.
59622         * modules/mbsncasecmp: New file.
59623         * lib/mbsncasecmp.c: New file.
59624         * lib/string_.h (mbsncasecmp): New declaration.
59625         * m4/mbsncasecmp.m4: New file.
59626         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59627         GNULIB_MBSNCASECMP.
59628         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59629         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59630
59631 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59632
59633         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59634         Verify that it doesn't overlap with our flags.
59635         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59636         do not have the desired effect in multibyte locales; instead, use
59637         mbscasecmp.
59638         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59639         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59640         we don't require GNU fnmatch ourselves (if our users require it, they
59641         should do so explicitly).
59642
59643         Fix regex code so it doesn't rely on strcasecmp.
59644         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59645         Otherwise, include gnulib's langinfo.h.
59646         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59647         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59648         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59649         * modules/regex (FILES): Remove m4/codeset.m4.
59650         (Depends-on): Add localcharset.  Remove strcase.
59651
59652 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59653
59654         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59655         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59656
59657 2007-02-13  Bruno Haible  <bruno@clisp.org>
59658
59659         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59661
59662 2007-02-12  Bruno Haible  <bruno@clisp.org>
59663
59664         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59665         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59666         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59667         time warning rather than a link error.
59668
59669 2007-02-12  Bruno Haible  <bruno@clisp.org>
59670
59671         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59672         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59674
59675 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59676
59677         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59678         args, not 2.
59679
59680 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         New module 'time', so that apps can include <time.h> as per
59683         POSIX and GNU instead of separate include files like time_r.h
59684         and timegm.h.  This implementation tries out a simpler approach
59685         for replacing decls in standard include files (as compared to
59686         the string module), somewhat as an experiment.
59687
59688         * config/srclist.txt: Comment out mktime.c for now.
59689         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59690         since it doesn't apply any more.  Use generic wording instead.
59691         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59692         'time'.
59693         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59694         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59695         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59696         Don't include <sys/types.h>; no longer needed since we assume C89.
59697         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59698         * lib/strftime.c: Likewise.
59699         * lib/time_r.c: Likewise.
59700         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59701         * lib/nanosleep.c: Include <time.h> first, to check interface.
59702         * lib/strptime.c: Likewise.
59703         * lib/time_r.c: Likewise.
59704         * lib/timegm.c: Likewise.
59705         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59706         needed.
59707         * lib/timegm.c: Don't include timegm.h; no longer needed.
59708         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59709         time.h now handles any problems in that area.
59710         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59711         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59712         that time.h defines struct timespec.
59713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59714         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59715         handles that.
59716         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59717         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59718         needed.  Set REPLACE_LOCALTIME.
59719         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59720         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59721         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59722         nanosleep; time_h.m4 now does that.  Don't require
59723         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59724         module handles this now.
59725         * modules/getdate (Depends-on): Remove timespec.  Add time.
59726         * modules/nanosleep (Depends-on): Likewise.
59727         * modules/stat-time (Depends-on): Likewise.
59728         * modules/nanosleep (Include): Include time.h, not timespec.h.
59729         * modules/strptime (Files): Remove lib/strptime.h.
59730         (Depends-on): Add extensions, time.
59731         (Include): Include time.h, not strptime.h.
59732         * modules/time_r (Files): Remove lib/time_r.h.
59733         (Depends-on): Add time.
59734         (Include): Include time.h, not time_r.h.
59735         * modules/timegm: Likewise.
59736         * modules/timespec (Description): Now does timespec-related decls
59737         of our own, instead of struct timespec itself.
59738         (Depends-on): Add time; remove extensions.
59739         (Maintainer): Add self.
59740         * modules/utimecmp (Depends-on): Add time; remove timespec.
59741         * modules/utimens (Depends-on): Likewise.
59742         * modules/xnanosleep (Depends-on): Likewise.
59743
59744 2007-02-11  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/c-strstr.c: Include allocsa.h.
59747         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59748         * lib/c-strcasestr.c: Include allocsa.h.
59749         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59750         * lib/strcasestr.c: Include allocsa.h.
59751         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59752         * lib/mbsstr.c: Include allocsa.h.
59753         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59754         allocsa/freesa instead of malloc/free.
59755         * lib/mbscasestr.c: Include allocsa.h.
59756         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59757         allocsa/freesa instead of malloc/free.
59758         * modules/c-strstr (Depends-on): Add allocsa.
59759         * modules/c-strcasestr (Depends-on): Likewise.
59760         * modules/strcasestr (Depends-on): Likewise.
59761         * modules/mbsstr (Depends-on): Likewise.
59762         * modules/mbscasestr (Depends-on): Likewise.
59763
59764 2007-02-11  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59767
59768         * modules/mbsspn-tests: New file.
59769         * tests/test-mbsspn.sh: New file.
59770         * tests/test-mbsspn.c: New file.
59771
59772 2007-02-11  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59775
59776         * modules/mbspbrk-tests: New file.
59777         * tests/test-mbspbrk.sh: New file.
59778         * tests/test-mbspbrk.c: New file.
59779
59780 2007-02-11  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59783         unneeded cast.
59784
59785         * modules/mbscspn-tests: New file.
59786         * tests/test-mbscspn.sh: New file.
59787         * tests/test-mbscspn.c: New file.
59788
59789 2007-02-11  Bruno Haible  <bruno@clisp.org>
59790
59791         * modules/mbscasecmp-tests: New file.
59792         * tests/test-mbscasecmp.sh: New file.
59793         * tests/test-mbscasecmp.c: New file.
59794
59795 2007-02-11  Bruno Haible  <bruno@clisp.org>
59796
59797         Ensure O(n) worst-case complexity of mbscasestr.
59798         * lib/mbscasestr.c: Include stdbool.h.
59799         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59800         functions.
59801         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59802         the bookkeeping indicates that it's worth it.
59803         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59804
59805         * modules/mbscasestr-tests: New file.
59806         * tests/test-mbscasestr1.c: New file.
59807         * tests/test-mbscasestr2.sh: New file.
59808         * tests/test-mbscasestr2.c: New file.
59809         * tests/test-mbscasestr3.sh: New file.
59810         * tests/test-mbscasestr3.c: New file.
59811         * tests/test-mbscasestr4.sh: New file.
59812         * tests/test-mbscasestr4.c: New file.
59813         * m4/locale-tr.m4: New file.
59814
59815 2007-02-11  Bruno Haible  <bruno@clisp.org>
59816
59817         Ensure O(n) worst-case complexity of mbsstr.
59818         * lib/mbsstr.c: Include stdbool.h.
59819         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59820         functions.
59821         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59822         bookkeeping indicates that it's worth it.
59823         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59824
59825         * modules/mbsstr-tests: New file.
59826         * tests/test-mbsstr1.c: New file.
59827         * tests/test-mbsstr2.sh: New file.
59828         * tests/test-mbsstr2.c: New file.
59829         * tests/test-mbsstr3.sh: New file.
59830         * tests/test-mbsstr3.c: New file.
59831         * m4/locale-fr.m4: New file.
59832
59833 2007-02-11  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/mbsrchr.c (mbsrchr): Fix bug.
59836
59837         * modules/mbsrchr-tests: New file.
59838         * tests/test-mbsrchr.sh: New file.
59839         * tests/test-mbsrchr.c: New file.
59840
59841 2007-02-11  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/mbschr.c (mbschr): Fix bug.
59844
59845         * modules/mbschr-tests: New file.
59846         * tests/test-mbschr.sh: New file.
59847         * tests/test-mbschr.c: New file.
59848         * m4/locale-zh.m4: New file.
59849
59850 2007-02-11  Bruno Haible  <bruno@clisp.org>
59851
59852         Support for copying multibyte string iterators.
59853         * lib/mbiter.h: Include <string.h>.
59854         (mbiter_multi_copy): New function.
59855         (mbi_copy): New macro.
59856         * lib/mbuiter.h: Include <string.h>.
59857         (mbuiter_multi_copy): New function.
59858         (mbui_copy): New macro.
59859
59860 2007-02-11  Bruno Haible  <bruno@clisp.org>
59861
59862         New module mbslen.
59863         * modules/mbslen: New file.
59864         * lib/mbslen.c: New file.
59865         * lib/string_.h (mbslen): New declaration.
59866         * m4/mbslen.m4: New file.
59867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59868         GNULIB_MBSLEN.
59869         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59870         * MODULES.html.sh (Internationalization functions): Add mbslen.
59871
59872 2007-02-11  Bruno Haible  <bruno@clisp.org>
59873
59874         Ensure O(n) worst-case complexity of strcasestr substitute.
59875         * lib/strcasestr.c: Include stdbool.h.
59876         (knuth_morris_pratt): New function.
59877         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59878         bookkeeping indicates that it's worth it.
59879         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59880
59881         * modules/strcasestr-tests: New file.
59882         * tests/test-strcasestr.c: New file.
59883
59884 2007-02-11  Bruno Haible  <bruno@clisp.org>
59885
59886         Ensure O(n) worst-case complexity of c_strcasestr.
59887         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59888         (knuth_morris_pratt): New function.
59889         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59890         the bookkeeping indicates that it's worth it.
59891         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59892
59893         * modules/c-strcasestr-tests: New file.
59894         * tests/test-c-strcasestr.c: New file.
59895
59896 2007-02-11  Bruno Haible  <bruno@clisp.org>
59897
59898         Ensure O(n) worst-case complexity of c_strstr.
59899         * lib/c-strstr.c: Include stdbool.h, string.h.
59900         (knuth_morris_pratt): New function.
59901         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59902         bookkeeping indicates that it's worth it.
59903         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59904
59905         * lib/c-strstr.c: Complete rewrite for maintainability.
59906
59907         * modules/c-strstr-tests: New file.
59908         * tests/test-c-strstr.c: New file.
59909
59910 2007-02-11  Bruno Haible  <bruno@clisp.org>
59911
59912         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59913         5.2.1 and earlier, whereby \055 was treated just like the range
59914         delimiter '-'.
59915         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59916
59917 2007-02-08  Bruno Haible  <bruno@clisp.org>
59918
59919         * modules/regex (Depends-on): Add stdbool.
59920         Reported by Dalibor Topic <robilad@kaffe.org>.
59921
59922 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59925         Prefer returning from main to exiting from it.
59926         Remove unnecessary parens after sizeof.
59927
59928 2007-02-05  Bruno Haible  <bruno@clisp.org>
59929
59930         New module mbssep.
59931         * modules/mbssep: New file.
59932         * lib/mbssep.c: New file.
59933         * lib/string_.h (strsep): Add a conditional link warning.
59934         (mbssep): New declaration.
59935         * m4/mbssep.m4: New file.
59936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59937         GNULIB_MBSSEP.
59938         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59939         * MODULES.html.sh (Internationalization functions): Add mbssep.
59940
59941 2007-02-05  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59944         Optimize search in case of 1 delimiter.
59945
59946 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59947
59948         * lib/acl.h: Include sys/types.h before sys/acl.h.
59949
59950 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59951
59952         Merge upstream fix for glibc bugzilla #3957:
59953
59954         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59955
59956         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59957         bit for RE_HAT_LISTS_NOT_NEWLINE.
59958         (build_charclass_op): Remove bogus comment.
59959
59960 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59961
59962         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59963
59964 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59967         * lib/memmem.c [!defined _LIBC]: Include config.h.
59968
59969 2007-02-04  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59972         warning message.
59973
59974 2007-02-04  Bruno Haible  <bruno@clisp.org>
59975
59976         New module mbstok_r.
59977         * modules/mbstok_r: New file.
59978         * lib/mbstok_r.c: New file.
59979         * lib/string_.h (strtok_r): Change argument names to match the
59980         comments. Add a conditional link warning.
59981         (mbstok_r): New declaration.
59982         * m4/mbstok_r.m4: New file.
59983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59984         GNULIB_MBSTOK_R.
59985         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59986         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59987
59988 2007-02-04  Bruno Haible  <bruno@clisp.org>
59989
59990         New module mbsspn.
59991         * modules/mbsspn: New file.
59992         * lib/mbsspn.c: New file.
59993         * lib/string_.h (strspn): Add a conditional link warning.
59994         (mbsspn): New declaration.
59995         * m4/mbsspn.m4: New file.
59996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59997         GNULIB_MBSSPN.
59998         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59999         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60000
60001 2007-02-04  Bruno Haible  <bruno@clisp.org>
60002
60003         New module mbspbrk.
60004         * modules/mbspbrk: New file.
60005         * lib/mbspbrk.c: New file.
60006         * lib/string_.h (strpbrk): Add a conditional link warning.
60007         (mbspbrk): New declaration.
60008         * m4/mbspbrk.m4: New file.
60009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60010         GNULIB_MBSPBRK.
60011         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60012         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60013
60014 2007-02-04  Bruno Haible  <bruno@clisp.org>
60015
60016         New module mbscspn.
60017         * modules/mbscspn: New file.
60018         * lib/mbscspn.c: New file.
60019         * lib/string_.h (strcspn): Add a conditional link warning.
60020         (mbscspn): New declaration.
60021         * m4/mbscspn.m4: New file.
60022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60023         GNULIB_MBSCSPN.
60024         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60025         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60026
60027 2007-02-04  Bruno Haible  <bruno@clisp.org>
60028
60029         New module mbscasestr, reduced goal of strcasestr.
60030         * modules/mbscasestr: New file.
60031         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60032         (mbscasestr): Renamed from strcasestr.
60033         * lib/strcasestr.c: Don't include mbuiter.h.
60034         (strcasestr): Remove support for multibyte locales.
60035         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60036         Change the conditional link warning.
60037         (mbscasestr): New declaration.
60038         * m4/mbscasestr.m4: New file.
60039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60040         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60041         REPLACE_STRCASESTR.
60042         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60044         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60045         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60046         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60047         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60048         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60049         (Depends-on): Remove mbuiter.
60050         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60051
60052 2007-02-04  Bruno Haible  <bruno@clisp.org>
60053
60054         Simplify handling of strncasecmp.
60055         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60056         the conditional link warning.
60057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60058         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60059         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60060         * modules/strcase (configure.ac): Don't invoke
60061         gl_STRING_MODULE_INDICATOR.
60062         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60063
60064 2007-02-04  Bruno Haible  <bruno@clisp.org>
60065
60066         New module mbscasecmp, reduced goal of strcasecmp.
60067         * modules/mbscasecmp: New file.
60068         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60069         (mbscasecmp): Renamed from strcasecmp.
60070         * lib/strcasecmp.c: Don't include mbuiter.h.
60071         (strcasecmp): Remove support for multibyte locales.
60072         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60073         Change the conditional link warning.
60074         (mbscasecmp): New declaration.
60075         * m4/mbscasecmp.m4: New file.
60076         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60077         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60078         REPLACE_STRCASECMP.
60079         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60081         GNULIB_MBSCASECMP.
60082         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60083         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60084         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60085         (Depends-on): Remove mbuiter.
60086         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60087
60088 2007-02-04  Bruno Haible  <bruno@clisp.org>
60089
60090         New module mbsstr. Remove module strstr.
60091         * modules/mbsstr: New file.
60092         * modules/strstr: Remove file.
60093         * lib/mbsstr.c: Renamed from lib/strstr.c.
60094         (mbsstr): Renamed from strstr.
60095         * lib/string_.h (strstr): Remove declaration. Change the conditional
60096         link warning.
60097         (mbsstr): New declaration.
60098         * m4/mbsstr.m4: New file.
60099         * m4/strstr.m4: Remove file.
60100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60101         REPLACE_STRSTR.
60102         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60103         Don't initialize GNULIB_STRSTR.
60104         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60105         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60106         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60107         (Support for systems lacking ANSI C 89): Remove strstr.
60108
60109 2007-02-04  Bruno Haible  <bruno@clisp.org>
60110
60111         New module mbsrchr.
60112         * modules/mbsrchr: New file.
60113         * lib/mbsrchr.c: New file.
60114         * lib/string_.h (strrchr): Add a conditional link warning.
60115         (mbsrchr): New declaration.
60116         * m4/mbsrchr.m4: New file.
60117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60118         GNULIB_MBSRCHR.
60119         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60120         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60121
60122 2007-02-04  Bruno Haible  <bruno@clisp.org>
60123
60124         New module mbschr.
60125         * modules/mbschr: New file.
60126         * lib/mbschr.c: New file.
60127         * lib/string_.h (strchr): Add a conditional link warning.
60128         (mbschr): New declaration.
60129         * m4/mbschr.m4: New file.
60130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60131         GNULIB_MBSCHR.
60132         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60133         * MODULES.html.sh (Internationalization functions): Add mbschr.
60134
60135 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60136
60137         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60138
60139         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60140
60141 2007-02-04  Bruno Haible  <bruno@clisp.org>
60142
60143         New module description section 'configure.ac-early'.
60144         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60145         (func_get_autoconf_early_snippet): New function.
60146         (func_import, func_create_testdir): Use it. Remove special cases for
60147         modules 'extensions' and 'lock'.
60148         * modules/extensions (configure.ac-early): Require
60149         gl_USE_SYSTEM_EXTENSIONS.
60150         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60151
60152 2007-02-04  Bruno Haible  <bruno@clisp.org>
60153
60154         Make use of gcj-4.3's -fsource and -ftarget option.
60155         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60156         and if so try the options -fsource and -ftarget.
60157         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60158         source_version, ftarget_option, target_version arguments.
60159         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60160         (is_envjavac_oldgcj_14_14_usable): Renamed from
60161         is_envjavac_gcj_14_14_usable.
60162         (is_envjavac_oldgcj_14_13_usable): Renamed from
60163         is_envjavac_gcj_14_13_usable.
60164         (is_gcj_present): Update.
60165         (is_gcj_43, is_gcj43_usable): New functions.
60166         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60167         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60168         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60169         try the options -fsource and -ftarget.
60170
60171 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60172
60173         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60174         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60175         larger value.
60176
60177 2007-02-03  Jim Meyering  <jim@meyering.net>
60178
60179         Give tools a better chance to allocate space for very large buffers.
60180         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60181
60182         Make pwd and readlink work also when run with an unreadable parent dir
60183         on systems with openat support.
60184         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60185         provided getcwd function, even when we have openat support.
60186         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60187
60188 2007-02-02  Bruno Haible  <bruno@clisp.org>
60189
60190         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60191         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60192         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60193         portability problems if one of these functions is only used on specific
60194         platforms.
60195         Reported by Paul Eggert.
60196
60197 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60198
60199         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60200         is causing more trouble than it's curing.
60201         * lib/regex_internal.h (__mempcpy): Remove.
60202         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60203         (and make the code a tad smaller to boot).
60204         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60205
60206 2007-02-02  Jim Meyering  <jim@meyering.net>
60207
60208         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60209         section, not in the Makefile.am: one.
60210
60211 2007-02-02  Eric Blake  <ebb9@byu.net>
60212
60213         * lib/strchrnul.c: Always include config.h first.
60214
60215         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60216         gnulib strstr is not necessary here.
60217
60218 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60219
60220         * m4/socklen.m4: Fix typo.
60221
60222 2007-02-02  Eric Blake  <ebb9@byu.net>
60223
60224         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60225         * modules/netinet_in (Makefile.am): Likewise.
60226
60227 2007-02-01  Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/string_.h (GL_LINK_WARNING): New macro.
60230         (strcasecmp, strstr, strcasestr): If provided by the system,
60231         conditionally define as a macro that leads to a warning instead of to
60232         an error.
60233         (strncasecmp): Conditionally define as a macro that leads to a warning.
60234
60235 2007-02-01  Karl Berry  <karl@gnu.org>
60236
60237         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60238
60239 2007-02-01  Bruno Haible  <bruno@clisp.org>
60240
60241         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60242         renamings.
60243
60244 2007-02-01  Eric Blake  <ebb9@byu.net>
60245
60246         * modules/regex (Depends-on): Revert dependence on mempcpy.
60247         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60248         module's definition of mempcpy.
60249         Reported by Paul Eggert.
60250
60251 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60254         the symbol XYZ before redefining it.  This fixes a problem with
60255         programs that don't use XYZ, when compiled on systems that define
60256         XYZ to something else.
60257
60258 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60261         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60262         writeable to group or other and (2) is intended to have a special
60263         mode bit that is set or cleared.  In such a case, the directory
60264         should be neither group- nor other-writeable until the special
60265         mode bits are right.
60266
60267 2007-01-31  Eric Blake  <ebb9@byu.net>
60268
60269         * modules/mountlist (Depends-on): Add strstr.
60270
60271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60272         bug.
60273         * modules/string (Makefile.am): Remove redundant replacement.
60274         * modules/regex (Depends-on): Add mempcpy.
60275
60276 2007-01-31  Bruno Haible  <bruno@clisp.org>
60277
60278         New module description field 'Link'.
60279         * gnulib-tool (func_usage): Document --extract-link-directive.
60280         (sed_extract_prog): Recognize 'Link' directive.
60281         (func_get_link_directive): New function.
60282         (func_import): Show summary of link directives.
60283         Handle --extract-link-directive option.
60284         * modules/acl (Link): New section.
60285         * modules/clock-time (Link): New section.
60286         * modules/euidaccess (Link): New section.
60287         * modules/gettext (Link): New section.
60288         * modules/iconv (Link): New section.
60289         * modules/lock (Link): New section.
60290         * modules/nanosleep (Link): New section.
60291         * modules/readline (Link): New section.
60292
60293 2007-01-27  Bruno Haible  <bruno@clisp.org>
60294
60295         Enforce the use of gnulib modules for unportable <string.h> functions.
60296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60297         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60298         (gl_HEADER_STRING_H_BODY): Require it.
60299         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60300         the symbol XYZ to one that gives a link error.
60301         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60302         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60303         * modules/mempcpy (configure.ac): Likewise.
60304         * modules/memrchr (configure.ac): Likewise.
60305         * modules/stpcpy (configure.ac): Likewise.
60306         * modules/stpncpy (configure.ac): Likewise.
60307         * modules/strcase (configure.ac): Likewise.
60308         * modules/strcasestr (configure.ac): Likewise.
60309         * modules/strchrnul (configure.ac): Likewise.
60310         * modules/strdup (configure.ac): Likewise.
60311         * modules/strndup (configure.ac): Likewise.
60312         * modules/strnlen (configure.ac): Likewise.
60313         * modules/strpbrk (configure.ac): Likewise.
60314         * modules/strsep (configure.ac): Likewise.
60315         * modules/strstr (configure.ac): Likewise.
60316         * modules/strtok_r (configure.ac): Likewise.
60317
60318 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60319
60320         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60321
60322 2007-01-30  Jim Meyering  <jim@meyering.net>
60323
60324         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60325
60326 2007-01-29  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60329         * lib/execute.c: Likewise.
60330         * lib/pipe.c: Likewise.
60331         * lib/printf-args.h: Likewise.
60332         * lib/printf-args.c: Likewise.
60333         * lib/printf-parse.c: Likewise.
60334         * lib/vasnprintf.c: Likewise.
60335
60336 2007-01-29  Eric Blake  <ebb9@byu.net>
60337
60338         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60339         declaration.
60340
60341 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60342
60343         * lib/strptime.h (strptime): Use 'restrict' for args where
60344         POSIX requires this.
60345         * lib/strptime.c (strptime): Likewise.
60346         Change license notice from LGPL to GPL, since gnulib-tool will
60347         change this as needed.
60348         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60349         defined.
60350         Include "strptime.h" first, to check interface.
60351         Do not #undef _LIBC and _NL_CURRENT.
60352         Do not include <stdlib.h>; no longer needed.
60353         Include "time_r.h" and declare ptime_locale_status
60354         only if _LIBC is not defined.
60355         (__P): Remove unused macro.
60356         (match_string): Bring back glibc version, but use it only if _LIBC
60357         is defined.
60358         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60359         Remove unnecessary assertion and abort() call.
60360         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60361         * m4/strptime.m4: Fix serial number comment.
60362         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60363         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60364         (Depends-on): Add time_r.
60365
60366 2007-01-29  Bruno Haible  <bruno@clisp.org>
60367
60368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60369         strptime.
60370         * modules/strptime (Depends-on): Add stdbool.
60371         * lib/strptime.h: Include <time.h> always. Add comments.
60372
60373 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60374
60375         * modules/strptime: New file.
60376         * lib/strptime.h: New file.
60377         * lib/strptime.c: New file.
60378         * m4/strptime.m4: New file.
60379
60380 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         * MODULES.html.sh: New module mpsort.
60383         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60384
60385         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60386         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60387         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60388         All uses changed.
60389         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60390         All uses changed.
60391         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60392         to _Restrict_.
60393         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60394         the parameter matches the prototype.
60395
60396 2007-01-28  Jim Meyering  <jim@meyering.net>
60397
60398         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60399         sys/time.h here, reverting that part of the previous patch:
60400         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60401
60402 2007-01-28  Bruno Haible  <bruno@clisp.org>
60403
60404         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60405         value of $(SYS_TIME_H).
60406         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60407         remove it conditionally, too. [added by Jim Meyering]
60408         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60410         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60411         GETTIMEOFDAY_REPLACEMENT to 1.
60412
60413 2007-01-28  Bruno Haible  <bruno@clisp.org>
60414
60415         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60416         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60418         Set UNISTD_H instead of UNISTD_H2.
60419         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60420
60421 2007-01-28  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60424         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60425
60426 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60427
60428         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60429         (func_create_testdir): Ensure C locale for `grep' and `tr'
60430         character ranges.
60431         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60432         ACLOCAL_AMFLAGS parsing state machine.
60433
60434 2007-01-27  Bruno Haible  <bruno@clisp.org>
60435
60436         * modules/unistr/base: Update.
60437
60438 2007-01-27  Bruno Haible  <bruno@clisp.org>
60439
60440         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60441         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60442         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60443         modules/unistr/u32-mbtouc.
60444         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60445         * lib/unistr.h: Update.
60446         * lib/linebreak.c: Update.
60447         * modules/unistr/u32-mbtouc: Renamed from
60448         modules/unistr/u32-mbtouc-safe.
60449         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60450         * lib/unistr.h: Update.
60451         * lib/unistr/u32-to-u8.c: Update.
60452         * lib/unistr/u32-to-u16.c: Update.
60453
60454 2007-01-27  Bruno Haible  <bruno@clisp.org>
60455
60456         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60457         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60458         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60459         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60460         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60461         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60462         modules/unistr/u16-mbtouc.
60463         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60464         * lib/unistr.h: Update.
60465         * lib/linebreak.c: Update.
60466         * modules/linebreak: Update.
60467         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60468         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60469         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60470         * modules/unistr/u16-mbtouc: Renamed from
60471         modules/unistr/u16-mbtouc-safe.
60472         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60473         * lib/unistr.h: Update.
60474         * lib/unistr/u16-to-u8.c: Update.
60475         * modules/unistr/u16-to-u8: Update.
60476         * lib/unistr/u16-to-u32.c: Update.
60477         * modules/unistr/u16-to-u32: Update.
60478
60479 2007-01-27  Bruno Haible  <bruno@clisp.org>
60480
60481         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60482         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60483         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60484         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60485         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60486         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60487         modules/unistr/u8-mbtouc.
60488         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60489         * lib/unistr.h: Update.
60490         * lib/striconveh.c: Update.
60491         * modules/striconveh: Update.
60492         * lib/linebreak.c: Update.
60493         * modules/linebreak: Update.
60494         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60495         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60496         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60497         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60498         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60499         * lib/unistr.h: Update.
60500         * lib/striconveh.c: Update.
60501         * modules/striconveh: Update.
60502         * lib/unistr/u8-to-u16.c: Update.
60503         * modules/unistr/u8-to-u16: Update.
60504         * lib/unistr/u8-to-u32.c: Update.
60505         * modules/unistr/u8-to-u32: Update.
60506
60507 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60508
60509         Sync from Libtool.
60510         * lib/argz.c: Do not include strings.h nor memory.h, include
60511         string.h unconditionally.  Patch by Simon Josefsson.
60512
60513 2007-01-27  Bruno Haible  <bruno@clisp.org>
60514
60515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60516         from gl_HEADER_STRING_H_BODY.
60517         (gl_HEADER_STRING_H_BODY): Require it.
60518         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60519         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60520         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60521         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60522         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60523         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60525         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60526         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60527         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60528         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60529         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60530         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60531         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60532         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60533
60534 2007-01-27  Bruno Haible  <bruno@clisp.org>
60535
60536         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60537         check_PROGRAMS into noinst_PROGRAMS.
60538         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60539         check_PROGRAMS in this case.
60540         (func_import): Set for_test to false.
60541         (func_create_testdir): Set for_test to true.
60542
60543 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60544             Bruno Haible  <bruno@clisp.org>
60545
60546         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60547         (Depends-on): Add string.
60548         (Includes): Use <string.h> instead of strcasestr.h.
60549         * modules/string (Makefile.am): Also substitute the value of
60550         REPLACE_STRCASESTR.
60551         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60552         assume strcasestr is declared in <string.h> not <strings.h>. Also
60553         set REPLACE_STRCASESTR.
60554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60555         REPLACE_STRCASESTR.
60556         * lib/strcasestr.h: Remove file.
60557         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60558         * lib/string_.h (strcasestr): New declaration.
60559
60560 2007-01-27  Bruno Haible  <bruno@clisp.org>
60561
60562         * lib/string_.h: Use 'extern'.
60563
60564 2007-01-27  Jim Meyering  <jim@meyering.net>
60565
60566         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60567         of set-but-not-used local, "q".
60568
60569         * lib/mempcpy.c: Include <config.h> before <string.h>.
60570         This fixes a compilation error on HP-UX, due to the system's
60571         "restrict"-using mempcpy prototype.
60572
60573 2007-01-26  Bruno Haible  <bruno@clisp.org>
60574
60575         Small optimization.
60576         * lib/javacomp.c: Include c-strstr.h.
60577          (is_envjavac_gcj): Use c_strstr instead of strstr.
60578         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60579
60580 2007-01-26  Bruno Haible  <bruno@clisp.org>
60581
60582         * MODULES.html.sh (Unicode string functions): Add the new modules.
60583
60584         * modules/uniconv/u32-strconv-to-locale: New file.
60585         * lib/uniconv/u32-strconv-to-locale.c: New file.
60586
60587         * modules/uniconv/u16-strconv-to-locale: New file.
60588         * lib/uniconv/u16-strconv-to-locale.c: New file.
60589
60590         * modules/uniconv/u8-strconv-to-locale: New file.
60591         * lib/uniconv/u8-strconv-to-locale.c: New file.
60592
60593         * modules/uniconv/u32-strconv-from-locale: New file.
60594         * lib/uniconv/u32-strconv-from-locale.c: New file.
60595
60596         * modules/uniconv/u16-strconv-from-locale: New file.
60597         * lib/uniconv/u16-strconv-from-locale.c: New file.
60598
60599         * modules/uniconv/u8-strconv-from-locale: New file.
60600         * lib/uniconv/u8-strconv-from-locale.c: New file.
60601
60602         * modules/uniconv/u32-strconv-to-enc: New file.
60603         * lib/uniconv/u32-strconv-to-enc.c: New file.
60604         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60605         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60606
60607         * modules/uniconv/u16-strconv-to-enc: New file.
60608         * lib/uniconv/u16-strconv-to-enc.c: New file.
60609         * lib/uniconv/u-strconv-to-enc.h: New file.
60610         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60611         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60612
60613         * modules/uniconv/u8-strconv-to-enc: New file.
60614         * lib/uniconv/u8-strconv-to-enc.c: New file.
60615         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60616         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60617
60618         * modules/uniconv/u32-strconv-from-enc: New file.
60619         * lib/uniconv/u32-strconv-from-enc.c: New file.
60620         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60621         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60622
60623         * modules/uniconv/u16-strconv-from-enc: New file.
60624         * lib/uniconv/u16-strconv-from-enc.c: New file.
60625         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60626         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60627
60628         * modules/uniconv/u8-strconv-from-enc: New file.
60629         * lib/uniconv/u8-strconv-from-enc.c: New file.
60630         * lib/uniconv/u-strconv-from-enc.h: New file.
60631         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60632         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60633
60634         * modules/uniconv/u32-conv-from-enc: New file.
60635         * lib/uniconv/u32-conv-from-enc.c: New file.
60636         * modules/uniconv/u32-conv-from-enc-tests: New file.
60637         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60638
60639         * modules/uniconv/u16-conv-from-enc: New file.
60640         * lib/uniconv/u16-conv-from-enc.c: New file.
60641         * lib/uniconv/u-conv-from-enc.h: New file.
60642         * modules/uniconv/u16-conv-from-enc-tests: New file.
60643         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60644
60645         * modules/uniconv/u8-conv-from-enc: New file.
60646         * lib/uniconv/u8-conv-from-enc.c: New file.
60647         * modules/uniconv/u8-conv-from-enc-tests: New file.
60648         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60649
60650         * modules/uniconv/base: New file.
60651         * lib/uniconv.h: New file.
60652
60653 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60654
60655         * doc/gnulib-tool.texi (Initial import): Update to match current
60656         behavior with strdup module.
60657         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60658         * lib/memmem.h: Remove; all uses removed.  This is now done
60659         by <string.h>.
60660         * lib/mempcpy.h: Likewise.
60661         * lib/memrchr.h: Likewise.
60662         * lib/stpcpy.h: Likewise.
60663         * lib/stpncpy.h: Likewise.
60664         * lib/strcase.h: Likewise.
60665         * lib/strchrnul.h: Likewise.
60666         * lib/strdup.h: Likewise.
60667         * lib/strndup.h: Likewise.
60668         * lib/strnlen.h: Likewise.
60669         * lib/strpbrk.h: Likewise.
60670         * lib/strsep.h: Likewise.
60671         * lib/strstr.h: Likewise.
60672         * lib/strtok_r.h: Likewise.
60673         * lib/string_.h: New file.
60674         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60675         Rely on <string.h> instead.
60676         * lib/canon-host.c: Likewise.
60677         * lib/chdir-long.c: Likewise.
60678         * lib/concatpath.c: Likewise.
60679         * lib/exclude.c: Likewise.
60680         * lib/fchdir.c: Likewise.
60681         * lib/getaddrinfo.c: Likewise.
60682         * lib/getcwd.c: Likewise.
60683         * lib/getsubopt.c: Likewise.
60684         * lib/glob.c: Likewise.
60685         * lib/hard-locale.c: Likewise.
60686         * lib/iconvme.c: Likewise.
60687         * lib/javacomp.c: Likewise.
60688         * lib/mempcpy.c: Likewise.
60689         * lib/memrchr.c: Likewise.
60690         * lib/regex_internal.h: Likewise.
60691         * lib/stpncpy.c: Likewise.
60692         * lib/strcasecmp.c: Likewise.
60693         * lib/strchrnul.c: Likewise.
60694         * lib/strdup.c: Likewise.
60695         * lib/striconv.c: Likewise.
60696         * lib/striconveh.c: Likewise.
60697         * lib/striconveha.c: Likewise.
60698         * lib/strncasecmp.c: Likewise.
60699         * lib/strndup.c: Likewise.
60700         * lib/strnlen.c: Likewise.
60701         * lib/strsep.c: Likewise.
60702         * lib/strstr.c: Likewise.
60703         * lib/strtok_r.c: Likewise.
60704         * lib/userspec.c: Likewise.
60705         * lib/w32spawn.h: Likewise.
60706         * lib/xstrndup.c: Likewise.
60707         * lib/mountlist.c (strstr): Remove decl.
60708         * m4/string_h.m4: New file.
60709         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60711         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60712         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60713         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60714         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60715         Set REPLACE_STRCASECMP if necessary.
60716         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60717         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60718         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60719         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60720         HAVE_DECL_STRDUP if necessary.
60721         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60722         since gl_FUNC_STRNDUP does that now.
60723         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60724         Check for decl here...
60725         (gl_PREREQ_STRNLEN): ... not here.
60726         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60727         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60728         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60729         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60730         necessary.
60731         * modules/string: New file.
60732         * modules/memmem (Files): Remove special-purpose include file.
60733         (Depends-on): Add string.
60734         (Include): Include <string.h>, not the removed file.
60735         * modules/mempcpy: Likewise.
60736         * modules/memrchr: Likewise.
60737         * modules/stpcpy: Likewise.
60738         * modules/stpncpy: Likewise.
60739         * modules/strcase: Likewise.
60740         * modules/strchrnul: Likewise.
60741         * modules/strdup: Likewise.
60742         * modules/strndup: Likewise.
60743         * modules/strnlen: Likewise.
60744         * modules/strpbrk: Likewise.
60745         * modules/strsep: Likewise.
60746         * modules/strstr: Likewise.
60747         * modules/strtok_r: Likewise.
60748         * tests/test-dirname.c: Don't include "strdup.h", since
60749         <string.h> now suffices.
60750         * tests/test-memmem.c: Don't include "memmem.h", since
60751         <string.h> now suffices.
60752
60753 2007-01-25  Bruno Haible  <bruno@clisp.org>
60754
60755         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60756         *resultp is 0.
60757
60758         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60759         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60760         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60761         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60762
60763         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60764         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60765         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60766         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60767         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60768         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60769
60770 2007-01-24  Bruno Haible  <bruno@clisp.org>
60771
60772         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60774         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60775         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60776         gl_FUNC_FTS_CORE.
60777         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60778         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60779         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60780         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60781         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60782         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60783         gl_FUNC_FCHOWNAT.
60784         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60785         gl_FUNC_STRFTIME.
60786         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60787         Reported by Ralf Wildenhues.
60788
60789 2007-01-24  Bruno Haible  <bruno@clisp.org>
60790
60791         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60792         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60793         gl_GETADDRINFO.
60794         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60795         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60796         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60797
60798 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60799
60800         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60801         Don't use 'exit'; just return from 'main'.
60802         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60803
60804         * lib/fnmatch_.h: Readjust white space and comments to match
60805         glibc, to avoid spurious diffs.
60806
60807 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60808
60809         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60810         2004-12-01 change by Jakub Jelinek, since this code won't compile
60811         if !LIBC.  Problem reported by Bob Proulx.
60812
60813 2007-01-23  Bruno Haible  <bruno@clisp.org>
60814
60815         * lib/striconveh.c: Include c-strcaseeq.h.
60816         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60817         * modules/striconveh (Depends-on): Add c-strcaseeq.
60818
60819 2007-01-23  Bruno Haible  <bruno@clisp.org>
60820
60821         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60822
60823         * modules/c-strcaseeq: New file.
60824         * lib/c-strcaseeq.h: New file.
60825
60826         * modules/streq: New file.
60827         * lib/streq.h: New file.
60828
60829 2007-01-23  Bruno Haible  <bruno@clisp.org>
60830
60831         * modules/striconveha-tests: New file.
60832         * tests/test-striconveha.c: New file.
60833
60834         * lib/striconveha.h: Include <stdbool.h>.
60835         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60836         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60837         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60838         (mem_iconveha): New function.
60839         (str_iconveha_notranslit): Renamed from str_iconveha.
60840         (str_iconveha): New function.
60841         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60842         c-strcase.
60843
60844 2007-01-23  Bruno Haible  <bruno@clisp.org>
60845
60846         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60847         encodings without forgiving before trying any encoding with handler.
60848         (str_iconveha): Try all encodings without forgiving before trying any
60849         encoding with handler.
60850
60851 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         Import the following changes from libc.
60854
60855         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60856
60857         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60858
60859         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60860
60861         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60862         normal_bracket label.
60863
60864         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60865
60866         [BZ #361]
60867         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60868         to normal_bracket after fetching the next character.
60869
60870 2007-01-22  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60873         argument.
60874         * lib/striconveh.c (iconv_carefully_1): New function.
60875         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60876         argument.
60877         (str_cd_iconveh): Update.
60878         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60879         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60880         * tests/test-striconveh.c (MAGIC): New macro.
60881         (new_offsets): New function.
60882         (main): Test call with and without offsets.
60883
60884 2007-01-22  Bruno Haible  <bruno@clisp.org>
60885
60886         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60887         * modules/sys_select (Makefile.am): Likewise.
60888         * modules/sys_socket (Makefile.am): Likewise.
60889         * modules/sys_time (Makefile.am): Likewise.
60890
60891 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         * modules/gettimeofday (License): Change from GPL to LGPL, since
60894         gettimeofday is a library function.
60895
60896 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60897
60898         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60899
60900 2007-01-21  Bruno Haible  <bruno@clisp.org>
60901
60902         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60903
60904 2007-01-21  Bruno Haible  <bruno@clisp.org>
60905
60906         * modules/striconveha: New file.
60907         * lib/striconveha.h: New file.
60908         * lib/striconveha.c: New file.
60909         * MODULES.html.sh (Internationalization functions): Add striconveha.
60910         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60911         string.
60912         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60913
60914 2007-01-21  Bruno Haible  <bruno@clisp.org>
60915
60916         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60917         * lib/striconveh.c (str_iconveh): Likewise.
60918
60919 2007-01-21  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/striconveh.h (mem_iconveh): New declaration.
60922         * lib/striconveh.c (mem_iconveh): New function.
60923         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60924
60925 2007-01-21  Bruno Haible  <bruno@clisp.org>
60926
60927         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60928
60929         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60930         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60931         original result buffer.
60932         (str_cd_iconveh): Update.
60933         * tests/test-striconveh.c (main): Update.
60934
60935         * lib/striconv.h (mem_cd_iconv): Change specification.
60936         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60937         result buffer.
60938         (str_cd_iconv): Update.
60939         * tests/test-striconv.c (main): Update.
60940
60941 2007-01-21  Bruno Haible  <bruno@clisp.org>
60942
60943         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60944
60945 2007-01-20  Jim Meyering  <jim@meyering.net>
60946
60947         * lib/userspec.c (parse_with_separator): If a user or group string
60948         starts with "+", skip the corresponding name-to-ID look-up, since
60949         such a look-up must fail: user and group names may not include "+".
60950
60951 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60954         since we now assume the sys_time module.
60955         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60956         check for sys/time.h; no longer needed.
60957         * modules/poll (Depends-on): Depend on sys_time.
60958
60959 2007-01-18  Bruno Haible  <bruno@clisp.org>
60960
60961         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60962         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60963
60964         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60965         gettimeofday.
60966
60967         * tests/test-gettimeofday.c: Include <time.h>.
60968         (dummy): Remove variable.
60969
60970         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60971         gl_HEADER_SYS_TIME_H.
60972         (gl_HEADER_SYS_TIME_H): New macro.
60973
60974         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60975         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60977         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60978         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60979         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60980         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60981         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60982         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60983         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60984         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60985
60986         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60987         last change; it caused a compilation error when cross-compiling to
60988         Cygwin.
60989
60990 2007-01-18  Jim Meyering  <jim@meyering.net>
60991
60992         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60993         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60994         than the race-prone "test -d sys || mkdir sys".
60995         (configure.ac): Use AC_PROG_MKDIR_P.
60996         * modules/sys_select: Likewise.
60997         * modules/sys_socket: Likewise.
60998         * modules/sys_time: Likewise.
60999
61000 2007-01-18  Eric Blake  <ebb9@byu.net>
61001
61002         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61003         replace gettimeofday.
61004         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61005         name, to avoid infinite recursion.
61006
61007 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61008
61009         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61010         module sys_time.
61011         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61012         assume timespec.h defines struct timeval.
61013         * lib/settime.c: Likewise.
61014         * lib/utimens.c: Likewise.
61015         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61016         since we now assume the gettimeofday module.
61017         * lib/tempname.c (__gen_tempname): Likewise.
61018         * lib/gettimeofday.h: Remove.
61019         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61020         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61021         Include <time.h>, for 'time()'.
61022         (localtime_buffer_addr): Also use this workaround if
61023         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61024         to simplify the uses.  All uses changed.
61025         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61026         that #undef is inside {}, and 'const' follows type name consistently.
61027         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61028         (gettimeofday): Do not use the maximum possible value for
61029         tv->tv_usec, since that might break usages other than ls.c.
61030         Instead, we'll leave ls.c alone.  This undoes today's patch
61031         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61032         we've never observed the problem but might as well keep the
61033         canary.
61034         * lib/nanosleep.c: Include timespec.h first, for interface check.
61035         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61036         now assume the sys_time module.
61037         * lib/tempname.c: Likewise.
61038         * lib/timespec.h: Likewise.
61039         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61040         needed.
61041         * lib/strftime.c: Likewise.
61042         * lib/timespec.h: Likewise.
61043         * lib/posixtm.c: Include posixtm.h first, for interface check.
61044         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61045         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61046         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61047         * lib/sys_time_.h: New file.
61048         * lib/timespec.h (struct timespec): Use long int, not long.
61049         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61050         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61051         Remove obsolescent call to AC_HEADER_TIME.
61052         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61054         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61055         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61056         Likewise.
61057         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61058         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61060         into the sys_time module.  Check for gettimeofday just once.
61061         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61062         for gettimeofday signature to just check the signature.  Merely
61063         compile it, since linking doesn't test signature.  Improve test for
61064         whether gettimeofday.o is actually needed.
61065         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61066         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61067         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61068         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61069         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61070         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61071         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61072         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61073         than worrying about sys/time.h.
61074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61075         Don't bother worrying about TIME_WITH_SYS_TIME.
61076         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61077         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61078         * m4/sys_time_h.m4: New file.
61079         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61080         Don't include sys/time.h.  Return from main rather than exiting.
61081         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61082         all uses changed.
61083         * modules/gethrxtime (Depends-on): Add sys_time.
61084         * modules/gettime (Depends-on): Likewise.
61085         * modules/gettimeofday (Depends-on): Likewise.
61086         * modules/nanosleep (Depends-on): Likewise.
61087         * modules/settime (Depends-on): Likewise.
61088         * modules/tempname (Depends-on): Likewise.
61089         * modules/utimens (Depends-on): Likewise.
61090         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61091         (Include): Change back to <sys/time.h>.
61092         (Maintainer): Add self.
61093         * modules/sys_time: New file.
61094         * modules/tempname (Depends-on): Add gettimeofday.
61095         * tests/test-gettimeofday.c: Include <sys/time.h>
61096         rather than gettimeofday.h.
61097
61098 2007-01-17  Bruno Haible  <bruno@clisp.org>
61099
61100         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61101         the license default to GPL.
61102         (func_create_testdir): Don't complain if a module is LGPL and its
61103         tests module depends on GPLed modules.
61104
61105 2007-01-17  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/gettimeofday.c (gettimeofday): Add code for the case
61108         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61109         maximum possible value for tv->tv_usec, rather than the minimum one.
61110
61111 2005-10-08  Martin Lambers  <marlam@marlam.de>
61112 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61113 2007-01-16  Bruno Haible  <bruno@clisp.org>
61114
61115         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61116         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61117         gl_FUNC_GETTIMEOFDAY.
61118         (Include): Add gettimeofday.h.
61119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61120         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61121         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61122         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61123         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61124         * lib/gettimeofday.h: New file.
61125         * lib/gettimeofday.c: Include <sys/timeb.h>.
61126         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61127         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61128         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61129         fall back on time().
61130
61131         * tests/test-gettimeofday.c: New file.
61132         * modules/gettimeofday-tests: New file.
61133
61134 2007-01-16  Eric Blake  <ebb9@byu.net>
61135
61136         * modules/fnmatch (Depends-on): Depend on wchar.
61137         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61138         * m4/fnmatch.m4: Likewise.
61139         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61140         * m4/mbchar.m4: Likewise.
61141         * modules/mbswidth (Depends-on): Depend on wchar.
61142         * lib/mbswidth.c: Assume <wchar.h>.
61143         * m4/mbswidth.m4: Likewise.
61144         * modules/quotearg (Depends-on): Depend on wchar.
61145         * lib/quotearg.c: Assume <wchar.h>.
61146         * m4/quotearg.m4: Likewise.
61147         * modules/regex (Depends-on): Depend on wchar.
61148         * lib/regex_internal.h: Assume <wchar.h>.
61149         * m4/regex.m4: Likewise.
61150         * modules/stdint (Depends-on): Depend on wchar.
61151         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61152         * m4/stdint.m4: Likewise.
61153         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61154         * modules/strftime (Depends-on): Depend on wchar.
61155         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61156         * modules/strtol (Depends-on): Depend on wchar.
61157         * lib/strtol.c: Assume <wchar.h>.
61158         * modules/wcwidth (Depends-on): Depend on wchar.
61159         * lib/wcwidth.h: Assume <wchar.h>.
61160         * m4/wcwidth.m4: Likewise.
61161
61162 2007-01-16  Bruno Haible  <bruno@clisp.org>
61163
61164         * modules/csharpexec-script: New, created from...
61165         * modules/csharpexec: ... this.
61166
61167 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61168
61169         * modules/javaexec-script: New, created from...
61170         * modules/javaexec: ... this.
61171
61172 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61173
61174         * modules/poll (Dependencies): Add sys_select.
61175
61176 2007-01-15  Jim Meyering  <jim@meyering.net>
61177
61178         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61179         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61180         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61181         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61182
61183 2007-01-15  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/striconveh: New file.
61186         * lib/striconveh.h: New file.
61187         * lib/striconveh.c: New file.
61188         * MODULES.html.sh (Internationalization functions): Add striconveh.
61189
61190         * modules/striconveh-tests: New file.
61191         * tests/test-striconveh.c: New file.
61192
61193 2007-01-15  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61196         not from GNU libiconv or GNU libc.
61197
61198 2007-01-15  Bruno Haible  <bruno@clisp.org>
61199
61200         * doc/gnulib-intro.texi (Copyright): Explain the different license
61201         terms for module descriptions, autoconf macros, tests, documentation.
61202
61203 2007-01-14  Bruno Haible  <bruno@clisp.org>
61204
61205         * modules/striconv-tests: New file.
61206         * tests/test-striconv.c: New file.
61207
61208 2007-01-14  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/iconv-tests: New file.
61211         * tests/test-iconv.c: New file.
61212
61213 2007-01-14  Bruno Haible  <bruno@clisp.org>
61214
61215         * gnulib-tool (func_get_license): For test modules, use the license of
61216         the main module.
61217
61218 2007-01-14  Bruno Haible  <bruno@clisp.org>
61219
61220         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61221         if iconv is found to exist.
61222
61223 2007-01-14  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/c-ctype-tests: New file.
61226         * tests/test-c-ctype.c: New file.
61227
61228 2007-01-14  Bruno Haible  <bruno@clisp.org>
61229
61230         * modules/binary-io-tests: New file.
61231         * tests/test-binary-io.sh: New file.
61232         * tests/test-binary-io.c: New file.
61233
61234 2007-01-14  Bruno Haible  <bruno@clisp.org>
61235
61236         * modules/array-oset-tests: New file.
61237         * tests/test-array_oset.c: New file.
61238
61239 2007-01-14  Bruno Haible  <bruno@clisp.org>
61240
61241         * modules/array-list-tests: New file.
61242         * tests/test-array_list.c: New file.
61243
61244 2007-01-14  Bruno Haible  <bruno@clisp.org>
61245
61246         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61247         and make.
61248         Reported by Simon Josefsson in
61249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61250
61251 2007-01-14  Bruno Haible  <bruno@clisp.org>
61252
61253         * modules/allocsa-tests: New file.
61254         * tests/test-allocsa.c: New file.
61255
61256 2007-01-14  Bruno Haible  <bruno@clisp.org>
61257
61258         * modules/fchdir (Depends-on): Add absolute-header.
61259         * modules/unistd (Depends-on): Likewise.
61260
61261 2006-12-30  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/fchdir: New file.
61264         * modules/unistd (Files): Add lib/unistd_.h.
61265         (Makefile.am): Generate unistd.h from unistd_.h.
61266         * lib/fchdir.c: New file.
61267         * lib/dirent_.h: New file.
61268         * lib/unistd_.h: New file.
61269         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61270         * m4/fchdir.m4: New file.
61271         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61272         (gl_HEADER_UNISTD): Invoke it.
61273         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61274         function.
61275         * lib/backupfile.c (opendir, closedir): Undefine.
61276         * lib/chown.c (open, close): Undefine.
61277         * lib/clean-temp.c (open, close): Undefine.
61278         * lib/copy-file.c (open, close): Undefine.
61279         * lib/execute.c (open, close): Undefine.
61280         * lib/fsusage.c (open, close): Undefine.
61281         * lib/gc-gnulib.c (open, close): Undefine.
61282         * lib/getcwd.c (opendir, closedir): Undefine.
61283         * lib/glob.c (opendir, closedir): Undefine.
61284         * lib/javacomp.c (open, close): Undefine.
61285         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61286         * lib/openat-proc.c (open, close): Undefine.
61287         * lib/pagealign_alloc.c (open, close): Undefine.
61288         * lib/pipe.c (open, close): Undefine.
61289         * lib/progreloc.c (open, close): Undefine.
61290         * lib/savedir.c (opendir, closedir): Undefine.
61291         * lib/utime.c (open, close): Undefine.
61292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61293
61294 2007-01-10  Bruno Haible  <bruno@clisp.org>
61295
61296         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61297
61298 2007-01-12  Eric Blake  <ebb9@byu.net>
61299
61300         Provide a robust <wchar.h>.  Further simplifications are now
61301         possible in other modules, but not included here.
61302         * modules/wchar: New module.
61303         * m4/wchar.m4: New file.
61304         * lib/wchar_.h: Likewise.
61305         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61306         of the new module.
61307         * MODULES.html.sh (Extended multibyte and wide character utilities):
61308         New section.
61309
61310 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61311
61312         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61313         to a reasonable default for memory allocation.
61314         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61315         file system that reports garbage st_size values for symlinks.
61316         Problem reported by Liyang Hu.
61317
61318 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61319
61320         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61321         Emacs .#* auto-save files).
61322
61323 2007-01-11  Bruno Haible  <bruno@clisp.org>
61324
61325         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61326         directory.
61327
61328 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61329
61330         Use @...@ consistently in lib/wctype_.h.
61331         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61332         on it being set to 1 or 0.
61333         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61334         go back to AC_SUBSTing it.
61335         * modules/wctype (Makefile.am): Undo previous change.
61336
61337 2007-01-10  Eric Blake  <ebb9@byu.net>
61338
61339         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61340         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61341         * modules/wctype (Makefile.am): Likewise.
61342         Reported by Chris McGuire.
61343
61344 2007-01-10  Jim Meyering  <jim@meyering.net>
61345
61346         fts.c: a small readability/maintainability improvement
61347         * lib/fts.c (fts_read): Make this code slightly more readable and
61348         maintainable by hoisting the "sp->fts_cur = p" assignments to
61349         immediately follow the statements that set P.  Derived from
61350         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61351
61352 2007-01-10  Eric Blake  <ebb9@byu.net>
61353
61354         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61355         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61357         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61358         Reported by Chris McGuire.
61359
61360 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61361
61362         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61363         in sed script.
61364
61365 2007-01-09  Bruno Haible  <bruno@clisp.org>
61366
61367         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61368         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61369         variables.
61370         (func_module): Use them.
61371
61372 2007-01-09  Bruno Haible  <bruno@clisp.org>
61373
61374         * modules/unistr/base: New file.
61375         * lib/unistr.h: New file.
61376
61377         * modules/unistr/u8-to-u16: New file.
61378         * lib/unistr/u8-to-u16.c: New file.
61379
61380         * modules/unistr/u8-to-u32: New file.
61381         * lib/unistr/u8-to-u32.c: New file.
61382
61383         * modules/unistr/u16-to-u8: New file.
61384         * lib/unistr/u16-to-u8.c: New file.
61385
61386         * modules/unistr/u16-to-u32: New file.
61387         * lib/unistr/u16-to-u32.c: New file.
61388
61389         * modules/unistr/u32-to-u8: New file.
61390         * lib/unistr/u32-to-u8.c: New file.
61391
61392         * modules/unistr/u32-to-u16: New file.
61393         * lib/unistr/u32-to-u16.c: New file.
61394
61395         * modules/unistr/u8-check: New file.
61396         * modules/unistr/u16-check: New file.
61397         * modules/unistr/u32-check: New file.
61398         * lib/unistr/u8-check.c: New file.
61399         * lib/unistr/u16-check.c: New file.
61400         * lib/unistr/u32-check.c: New file.
61401
61402         * modules/unistr/u8-chr: New file.
61403         * modules/unistr/u16-chr: New file.
61404         * modules/unistr/u32-chr: New file.
61405         * lib/unistr/u8-chr.c: New file.
61406         * lib/unistr/u16-chr.c: New file.
61407         * lib/unistr/u32-chr.c: New file.
61408
61409         * modules/unistr/u8-cmp: New file.
61410         * modules/unistr/u16-cmp: New file.
61411         * modules/unistr/u32-cmp: New file.
61412         * lib/unistr/u8-cmp.c: New file.
61413         * lib/unistr/u16-cmp.c: New file.
61414         * lib/unistr/u32-cmp.c: New file.
61415
61416         * modules/unistr/u8-cpy: New file.
61417         * modules/unistr/u16-cpy: New file.
61418         * modules/unistr/u32-cpy: New file.
61419         * lib/unistr/u8-cpy.c: New file.
61420         * lib/unistr/u16-cpy.c: New file.
61421         * lib/unistr/u32-cpy.c: New file.
61422         * lib/unistr/u-cpy.h: New file.
61423
61424         * modules/unistr/u8-cpy-alloc: New file.
61425         * modules/unistr/u16-cpy-alloc: New file.
61426         * modules/unistr/u32-cpy-alloc: New file.
61427         * lib/unistr/u8-cpy-alloc.c: New file.
61428         * lib/unistr/u16-cpy-alloc.c: New file.
61429         * lib/unistr/u32-cpy-alloc.c: New file.
61430         * lib/unistr/u-cpy-alloc.h: New file.
61431
61432         * modules/unistr/u8-endswith: New file.
61433         * modules/unistr/u16-endswith: New file.
61434         * modules/unistr/u32-endswith: New file.
61435         * lib/unistr/u8-endswith.c: New file.
61436         * lib/unistr/u16-endswith.c: New file.
61437         * lib/unistr/u32-endswith.c: New file.
61438         * lib/unistr/u-endswith.h: New file.
61439
61440         * modules/unistr/u8-mblen: New file.
61441         * modules/unistr/u16-mblen: New file.
61442         * modules/unistr/u32-mblen: New file.
61443         * lib/unistr/u8-mblen.c: New file.
61444         * lib/unistr/u16-mblen.c: New file.
61445         * lib/unistr/u32-mblen.c: New file.
61446
61447         * modules/unistr/u8-mbtouc: New file.
61448         * modules/unistr/u16-mbtouc: New file.
61449         * modules/unistr/u32-mbtouc: New file.
61450         * lib/unistr/u8-mbtouc.c: New file.
61451         * lib/unistr/u16-mbtouc.c: New file.
61452         * lib/unistr/u32-mbtouc.c: New file.
61453
61454         * modules/unistr/u8-mbtouc-safe: New file.
61455         * modules/unistr/u16-mbtouc-safe: New file.
61456         * modules/unistr/u32-mbtouc-safe: New file.
61457         * lib/unistr/u8-mbtouc-safe.c: New file.
61458         * lib/unistr/u16-mbtouc-safe.c: New file.
61459         * lib/unistr/u32-mbtouc-safe.c: New file.
61460
61461         * modules/unistr/u8-move: New file.
61462         * modules/unistr/u16-move: New file.
61463         * modules/unistr/u32-move: New file.
61464         * lib/unistr/u8-move.c: New file.
61465         * lib/unistr/u16-move.c: New file.
61466         * lib/unistr/u32-move.c: New file.
61467         * lib/unistr/u-move.h: New file.
61468
61469         * modules/unistr/u8-next: New file.
61470         * modules/unistr/u16-next: New file.
61471         * modules/unistr/u32-next: New file.
61472         * lib/unistr/u8-next.c: New file.
61473         * lib/unistr/u16-next.c: New file.
61474         * lib/unistr/u32-next.c: New file.
61475
61476         * modules/unistr/u8-prev: New file.
61477         * modules/unistr/u16-prev: New file.
61478         * modules/unistr/u32-prev: New file.
61479         * lib/unistr/u8-prev.c: New file.
61480         * lib/unistr/u16-prev.c: New file.
61481         * lib/unistr/u32-prev.c: New file.
61482
61483         * modules/unistr/u8-set: New file.
61484         * modules/unistr/u16-set: New file.
61485         * modules/unistr/u32-set: New file.
61486         * lib/unistr/u8-set.c: New file.
61487         * lib/unistr/u16-set.c: New file.
61488         * lib/unistr/u32-set.c: New file.
61489         * lib/unistr/u-set.h: New file.
61490
61491         * modules/unistr/u8-startswith: New file.
61492         * modules/unistr/u16-startswith: New file.
61493         * modules/unistr/u32-startswith: New file.
61494         * lib/unistr/u8-startswith.c: New file.
61495         * lib/unistr/u16-startswith.c: New file.
61496         * lib/unistr/u32-startswith.c: New file.
61497         * lib/unistr/u-startswith.h: New file.
61498
61499         * modules/unistr/u8-stpcpy: New file.
61500         * modules/unistr/u16-stpcpy: New file.
61501         * modules/unistr/u32-stpcpy: New file.
61502         * lib/unistr/u8-stpcpy.c: New file.
61503         * lib/unistr/u16-stpcpy.c: New file.
61504         * lib/unistr/u32-stpcpy.c: New file.
61505         * lib/unistr/u-stpcpy.h: New file.
61506
61507         * modules/unistr/u8-stpncpy: New file.
61508         * modules/unistr/u16-stpncpy: New file.
61509         * modules/unistr/u32-stpncpy: New file.
61510         * lib/unistr/u8-stpncpy.c: New file.
61511         * lib/unistr/u16-stpncpy.c: New file.
61512         * lib/unistr/u32-stpncpy.c: New file.
61513         * lib/unistr/u-stpncpy.h: New file.
61514
61515         * modules/unistr/u8-strcat: New file.
61516         * modules/unistr/u16-strcat: New file.
61517         * modules/unistr/u32-strcat: New file.
61518         * lib/unistr/u8-strcat.c: New file.
61519         * lib/unistr/u16-strcat.c: New file.
61520         * lib/unistr/u32-strcat.c: New file.
61521         * lib/unistr/u-strcat.h: New file.
61522
61523         * modules/unistr/u8-strchr: New file.
61524         * modules/unistr/u16-strchr: New file.
61525         * modules/unistr/u32-strchr: New file.
61526         * lib/unistr/u8-strchr.c: New file.
61527         * lib/unistr/u16-strchr.c: New file.
61528         * lib/unistr/u32-strchr.c: New file.
61529
61530         * modules/unistr/u8-strcmp: New file.
61531         * modules/unistr/u16-strcmp: New file.
61532         * modules/unistr/u32-strcmp: New file.
61533         * lib/unistr/u8-strcmp.c: New file.
61534         * lib/unistr/u16-strcmp.c: New file.
61535         * lib/unistr/u32-strcmp.c: New file.
61536
61537         * modules/unistr/u8-strcpy: New file.
61538         * modules/unistr/u16-strcpy: New file.
61539         * modules/unistr/u32-strcpy: New file.
61540         * lib/unistr/u8-strcpy.c: New file.
61541         * lib/unistr/u16-strcpy.c: New file.
61542         * lib/unistr/u32-strcpy.c: New file.
61543         * lib/unistr/u-strcpy.h: New file.
61544
61545         * modules/unistr/u8-strcspn: New file.
61546         * modules/unistr/u16-strcspn: New file.
61547         * modules/unistr/u32-strcspn: New file.
61548         * lib/unistr/u8-strcspn.c: New file.
61549         * lib/unistr/u16-strcspn.c: New file.
61550         * lib/unistr/u32-strcspn.c: New file.
61551         * lib/unistr/u-strcspn.h: New file.
61552
61553         * modules/unistr/u8-strdup: New file.
61554         * modules/unistr/u16-strdup: New file.
61555         * modules/unistr/u32-strdup: New file.
61556         * lib/unistr/u8-strdup.c: New file.
61557         * lib/unistr/u16-strdup.c: New file.
61558         * lib/unistr/u32-strdup.c: New file.
61559         * lib/unistr/u-strdup.h: New file.
61560
61561         * modules/unistr/u8-strlen: New file.
61562         * modules/unistr/u16-strlen: New file.
61563         * modules/unistr/u32-strlen: New file.
61564         * lib/unistr/u8-strlen.c: New file.
61565         * lib/unistr/u16-strlen.c: New file.
61566         * lib/unistr/u32-strlen.c: New file.
61567         * lib/unistr/u-strlen.h: New file.
61568
61569         * modules/unistr/u8-strmblen: New file.
61570         * modules/unistr/u16-strmblen: New file.
61571         * modules/unistr/u32-strmblen: New file.
61572         * lib/unistr/u8-strmblen.c: New file.
61573         * lib/unistr/u16-strmblen.c: New file.
61574         * lib/unistr/u32-strmblen.c: New file.
61575
61576         * modules/unistr/u8-strmbtouc: New file.
61577         * modules/unistr/u16-strmbtouc: New file.
61578         * modules/unistr/u32-strmbtouc: New file.
61579         * lib/unistr/u8-strmbtouc.c: New file.
61580         * lib/unistr/u16-strmbtouc.c: New file.
61581         * lib/unistr/u32-strmbtouc.c: New file.
61582
61583         * modules/unistr/u8-strncat: New file.
61584         * modules/unistr/u16-strncat: New file.
61585         * modules/unistr/u32-strncat: New file.
61586         * lib/unistr/u8-strncat.c: New file.
61587         * lib/unistr/u16-strncat.c: New file.
61588         * lib/unistr/u32-strncat.c: New file.
61589         * lib/unistr/u-strncat.h: New file.
61590
61591         * modules/unistr/u8-strncmp: New file.
61592         * modules/unistr/u16-strncmp: New file.
61593         * modules/unistr/u32-strncmp: New file.
61594         * lib/unistr/u8-strncmp.c: New file.
61595         * lib/unistr/u16-strncmp.c: New file.
61596         * lib/unistr/u32-strncmp.c: New file.
61597
61598         * modules/unistr/u8-strncpy: New file.
61599         * modules/unistr/u16-strncpy: New file.
61600         * modules/unistr/u32-strncpy: New file.
61601         * lib/unistr/u8-strncpy.c: New file.
61602         * lib/unistr/u16-strncpy.c: New file.
61603         * lib/unistr/u32-strncpy.c: New file.
61604         * lib/unistr/u-strncpy.h: New file.
61605
61606         * modules/unistr/u8-strnlen: New file.
61607         * modules/unistr/u16-strnlen: New file.
61608         * modules/unistr/u32-strnlen: New file.
61609         * lib/unistr/u8-strnlen.c: New file.
61610         * lib/unistr/u16-strnlen.c: New file.
61611         * lib/unistr/u32-strnlen.c: New file.
61612         * lib/unistr/u-strnlen.h: New file.
61613
61614         * modules/unistr/u8-strpbrk: New file.
61615         * modules/unistr/u16-strpbrk: New file.
61616         * modules/unistr/u32-strpbrk: New file.
61617         * lib/unistr/u8-strpbrk.c: New file.
61618         * lib/unistr/u16-strpbrk.c: New file.
61619         * lib/unistr/u32-strpbrk.c: New file.
61620         * lib/unistr/u-strpbrk.h: New file.
61621
61622         * modules/unistr/u8-strrchr: New file.
61623         * modules/unistr/u16-strrchr: New file.
61624         * modules/unistr/u32-strrchr: New file.
61625         * lib/unistr/u8-strrchr.c: New file.
61626         * lib/unistr/u16-strrchr.c: New file.
61627         * lib/unistr/u32-strrchr.c: New file.
61628
61629         * modules/unistr/u8-strspn: New file.
61630         * modules/unistr/u16-strspn: New file.
61631         * modules/unistr/u32-strspn: New file.
61632         * lib/unistr/u8-strspn.c: New file.
61633         * lib/unistr/u16-strspn.c: New file.
61634         * lib/unistr/u32-strspn.c: New file.
61635         * lib/unistr/u-strspn.h: New file.
61636
61637         * modules/unistr/u8-strstr: New file.
61638         * modules/unistr/u16-strstr: New file.
61639         * modules/unistr/u32-strstr: New file.
61640         * lib/unistr/u8-strstr.c: New file.
61641         * lib/unistr/u16-strstr.c: New file.
61642         * lib/unistr/u32-strstr.c: New file.
61643         * lib/unistr/u-strstr.h: New file.
61644
61645         * modules/unistr/u8-strtok: New file.
61646         * modules/unistr/u16-strtok: New file.
61647         * modules/unistr/u32-strtok: New file.
61648         * lib/unistr/u8-strtok.c: New file.
61649         * lib/unistr/u16-strtok.c: New file.
61650         * lib/unistr/u32-strtok.c: New file.
61651         * lib/unistr/u-strtok.h: New file.
61652
61653         * modules/unistr/u8-uctomb: New file.
61654         * modules/unistr/u16-uctomb: New file.
61655         * modules/unistr/u32-uctomb: New file.
61656         * lib/unistr/u8-uctomb.c: New file.
61657         * lib/unistr/u16-uctomb.c: New file.
61658         * lib/unistr/u32-uctomb.c: New file.
61659
61660         * MODULES.html.sh (Unicode string functions): Add the new modules.
61661
61662 2007-01-08  Bruno Haible  <bruno@clisp.org>
61663
61664         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61665         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61666         subdirectories.
61667
61668 2007-01-08  Karl Berry  <karl@gnu.org>
61669
61670         * doc/error.texi: mention that main() fns must set program_name
61671         when progname is used.
61672
61673 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61674
61675         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61676         WCTYPE_H is empty, for the benefit of builds from non-distclean
61677         directories.  Problem reported by Eric Blake in
61678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61679
61680 2007-01-08  Bruno Haible  <bruno@clisp.org>
61681
61682         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61683         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61684         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61685         PROVIDE_CANONICALIZE_FILENAME_MODE.
61686         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61687
61688 2007-01-08  Bruno Haible  <bruno@clisp.org>
61689
61690         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61691         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61692         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61693         * lib/fts.c: Likewise.
61694         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61695
61696 2006-12-25  Bruno Haible  <bruno@clisp.org>
61697
61698         * modules/utf8-ucs4-safe: New file.
61699         * lib/utf8-ucs4-safe.h: New file.
61700         * lib/unistr/utf8-ucs4-safe.c: New file.
61701
61702         * modules/utf16-ucs4-safe: New file.
61703         * lib/utf16-ucs4-safe.h: New file.
61704         * lib/unistr/utf16-ucs4-safe.c: New file.
61705
61706         * MODULES.html.sh (Unicode string functions): Add the new modules.
61707
61708 2007-01-08  Bruno Haible  <bruno@clisp.org>
61709
61710         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61711         (Depends-on): Add unitypes.
61712         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61713         (u8_mbtouc_aux): Move out to separate file.
61714         (u8_mbtouc): Use ucs4_t, uint8_t types.
61715         * lib/unistr/utf8-ucs4.c: New file.
61716
61717         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61718         (Depends-on): Add unitypes.
61719         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61720         (u16_mbtouc_aux): Move out to separate file.
61721         (u16_mbtouc): Use ucs4_t, uint16_t types.
61722         * lib/unistr/utf16-ucs4.c: New file.
61723
61724         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61725         (Depends-on): Add unitypes.
61726         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61727         (u8_uctomb_aux): Move out to separate file.
61728         (u8_uctomb): Use ucs4_t, uint8_t types.
61729         * lib/unistr/ucs4-utf8.c: New file.
61730
61731         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61732         (Depends-on): Add unitypes.
61733         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61734         (u16_uctomb_aux): Move out to separate file.
61735         (u16_uctomb): Use ucs4_t, uint16_t types.
61736         * lib/unistr/ucs4-utf16.c: New file.
61737
61738 2006-12-25  Bruno Haible  <bruno@clisp.org>
61739
61740         * modules/unitypes: New file.
61741         * lib/unitypes.h: New file.
61742         * MODULES.html.sh (func_all_modules): New section "Unicode string
61743         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61744         this section. Add unitypes.
61745
61746 2007-01-08  Bruno Haible  <bruno@clisp.org>
61747
61748         Avoid variable names that conflict with those from libtool.
61749         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61750         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61751         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61752         library_names_spec to acl_library_names_spec, hardcode_* to
61753         acl_hardcode_*.
61754         Reported by Ralf Wildenhues.
61755
61756 2007-01-08  Bruno Haible  <bruno@clisp.org>
61757
61758         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61759         definition.
61760         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61761         definition.
61762         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61763         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61764         definition.
61765         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61766         definition.
61767         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61768         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61769         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61770         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61771         definition.
61772         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61773         definition.
61774         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61775         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61776         GC_USE_<algorithm>.
61777         * lib/gc-libgcrypt.c: Likewise.
61778         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61779         * modules/gc-arctwo (configure.ac): Likewise.
61780         * modules/gc-des (configure.ac): Likewise.
61781         * modules/gc-hmac-md5 (configure.ac): Likewise.
61782         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61783         * modules/gc-md2 (configure.ac): Likewise.
61784         * modules/gc-md4 (configure.ac): Likewise.
61785         * modules/gc-md5 (configure.ac): Likewise.
61786         * modules/gc-random (configure.ac): Likewise.
61787         * modules/gc-rijndael (configure.ac): Likewise.
61788         * modules/gc-sha1 (configure.ac): Likewise.
61789
61790 2007-01-08  Bruno Haible  <bruno@clisp.org>
61791
61792         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61793         macro definition.
61794         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61795         definition.
61796         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61797         definition.
61798         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61799         * modules/fcntl-safer (configure.ac): Likewise.
61800         * modules/fopen-safer (configure.ac): Likewise.
61801         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61802         GNULIB_FWRITEERROR macro definition.
61803
61804 2007-01-08  Bruno Haible  <bruno@clisp.org>
61805
61806         * m4/gnulib-common.m4: New file.
61807         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61808         (func_get_filelist): Add m4/gnulib-common.m4.
61809
61810 2007-01-08  Bruno Haible  <bruno@clisp.org>
61811
61812         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61813         command.
61814
61815 2007-01-08  Jim Meyering  <jim@meyering.net>
61816
61817         Use a more robust test for a "can't happen" condition.
61818         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61819         narrowed the st_size value.  Presuming the "can't happen" condition
61820         is true, that narrowing could conceivably convert an invalid st_size
61821         value into a valid one.  Instead, use a change based on Matthew
61822         Woehlke's original patch.
61823
61824         Slight readability improvement: use an assert-like macro
61825         in place of literal "abort ()" uses.
61826         * lib/fts.c (fts_assert): Define.
61827         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61828         Use this macro instead of a bare 'abort'.
61829
61830 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61831
61832         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61833         simply work around them.
61834         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61835         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61836         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61837         declaring.
61838         Don't bother to define as macros, since the standard doesn't require it.
61839         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61840         longer worry about IRIX 5.3.
61841         (HAVE_WCTYPE_CTMP_BUG): Remove.
61842
61843 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61846         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61847         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61848         Problems reported by Georg Schwarz for IRIX 5.3.
61849
61850         * gnulib-tool (autoconf_minversion): Take the maximum version number
61851         found, not the minimum.  Problem reported by James Youngman.
61852
61853 2007-01-03  Karl Berry  <karl@gnu.org>
61854
61855         * doc/error.texi: new file, explaining interaction with progname.
61856         * doc/gnulib.texi: include it.  Update copyright.
61857
61858 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61859
61860         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61861         AC_CANONICAL_HOST, to improve autobuild outputs.
61862
61863 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61864             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61865
61866         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61867         sockets, server sockets, and other file descriptors.  Count errors
61868         to compute the return value.  Reorder the code a bit to be easier
61869         to follow.  Don't set event bits that were not requested (except
61870         POLLERR and POLLHUP).
61871
61872 2007-01-01  Bruno Haible  <bruno@clisp.org>
61873
61874         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61875
61876 2007-01-03  Jim Meyering  <jim@meyering.net>
61877
61878         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61879
61880 2007-01-02  Bruno Haible  <bruno@clisp.org>
61881
61882         * modules/settime (Include): Require timespec.h.
61883         * modules/nanosleep (Include): Likewise.
61884
61885 2007-01-01  Bruno Haible  <bruno@clisp.org>
61886
61887         * gnulib-tool (func_emit_copyright_notice): Bump year.
61888         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61889
61890 2007-01-01  Bruno Haible  <bruno@clisp.org>
61891
61892         Improve support for OpenBSD.
61893         * build-aux/config.rpath (libname_spec): Export.
61894         (library_names_spec): New variable. Export.
61895         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61896         library_names_spec from the config.rpath output. Locate shared library
61897         through the name pattern in library_names_spec.
61898
61899 2007-01-01  Eric Blake  <ebb9@byu.net>
61900
61901         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61902
61903 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61906         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61907         assume the C locale, and avoid an "eval" that could cause trouble.
61908         Problem with SORT reported by Bob Proulx.
61909
61910         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61911         Define.  Trivial patch from Henning Nielsen Lund, originally
61912         sent to bug-grep@gnu.org today.
61913
61914 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61915
61916         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61917         struct stat.  Problem reported by Henning Nielsen Lund.
61918         * lib/acl.c: Include acl.h first, to check interface.  Don't
61919         bother to include sys/types.h and sys/stat.h again.
61920
61921 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         Import the following change from libc; problem reported by
61924         Sven Verdoolaege.
61925
61926         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61927
61928         [BZ #1373]
61929         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61930
61931 2006-12-28  Jim Meyering  <jim@meyering.net>
61932
61933         * build-aux/announce-gen: Do not assume that the package
61934         builds any of tar.gz, tar.bz2, and .xdelta files.
61935         Suggestion from Simon Josefsson.
61936
61937 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61938
61939         * modules/announce-gen: New file.
61940
61941 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61944         handles its gotchas now.
61945         * lib/mbswidth.c: Likewise.
61946         * lib/wcwidth.h: Likewise.
61947         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61948         and iswcntrl; the wctype module does this stuff now.
61949         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61951         * modules/mbchar (Depends-on): Add wctype.
61952         * modules/mbswidth (Depends-on): Likewise.
61953         * modules/wcwidth (Depends-on): Likewise.
61954
61955 2006-12-27  Eric Blake  <ebb9@byu.net>
61956
61957         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61958         module uses more than what <wctype.h> is required to provide.
61959
61960 2006-12-26  Eric Blake  <ebb9@byu.net>
61961
61962         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61963
61964 2006-12-26  Eric Blake  <ebb9@byu.net>
61965
61966         * modules/absolute-header: New module.
61967         * modules/fcntl (Depends-on): Depend on it.
61968         * modules/inttypes (Depends-on): Likewise.
61969         * modules/stdint (Depends-on): Likewise.
61970         * modules/sys_stat (Depends-on): Likewise.
61971         * modules/wctype (Depends-on): Likewise.
61972         * MODULES.html.sh (Support for building libraries and
61973         executables): Document it.
61974
61975 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * gnulib-tool (SED): Remove, undoing previous change.
61978         The problem was that it broke coreutils on Solaris, because
61979         "sed --posix" leaked into a makefile.
61980         (sed): New alias, if 'alias' and GNU sed.
61981
61982 2006-12-24  Jim Meyering  <jim@meyering.net>
61983
61984         Work around an fchownat bug in glibc-2.4:
61985         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61986         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61987         in spite of the -P option.
61988         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61989         New macros.
61990         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61991         * modules/openat (Files): Add lib/fchownat.c.
61992         * lib/openat.c (fchownat): Don't define here.  Move to...
61993         * lib/fchownat.c: ...this new file.
61994
61995 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         Fix bug reported by Bruno Haible in
61998         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61999         where quotearg.c didn't compile on Mac OS X 10.2 because it
62000         lacks <wchar.h> and wint_t.
62001         * lib/wctype_.h (__wctype_wint_t): New type.
62002         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62003         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62004         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62005         Arg is now of type __wctype_wint_t, not wint_t.
62006         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62007         substitute HAVE_WINT_T.
62008         * modules/wctype (Files): Add m4/wint_t.m4.
62009         (wctype.h): Substitute HAVE_WINT_T.
62010
62011 2006-12-23  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62014
62015 2006-12-23  Bruno Haible  <bruno@clisp.org>
62016
62017         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62018         S_ISLNK.
62019         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62020         mingw.
62021
62022 2006-12-22  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/copy-file.c: Include acl.h.
62025         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62026         Close the file descriptors only after being done with copy_acl.
62027         * modules/copy-file (Depends-on): Add acl.
62028
62029 2006-12-22  Bruno Haible  <bruno@clisp.org>
62030
62031         * gnulib-tool (SED): New variable.
62032         Use $SED instead of sed everywhere.
62033
62034 2006-12-22  Bruno Haible  <bruno@clisp.org>
62035
62036         * modules/no-c++: New file.
62037         * m4/no-c++.m4: New file.
62038         * MODULES.html.sh (Support for building libraries and executables):
62039         Add no-c++.
62040
62041 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62044         Include <limits.h>, and use its INT_MAX to rewrite the
62045         j loop so that it does not overflow 'int'.  Problem reported by
62046         Ralf Wildenhues in
62047         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62048         Play it safe by shifting left by 1 rather than multiplying by 2,
62049         as GCC is less likely to optimize this away when the value
62050         is signed (when it assumes overflow leads to undefined behavior).
62051         Also, don't assume time_t uses two's complement.
62052
62053 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         * MODULES.html.sh: New module wctype.
62056         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62057         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62058         <wctype.h>, since the new wctype module should fix this.
62059         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62060         the wctype module should arrange for it.
62061         * lib/regex_internal.h: Likewise.
62062         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62063         since the wctype module should handle this now.
62064         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62065         * modules/fnmatch (Depends-on): Add wctype.
62066         * modules/quotearg (Depends-on): Likewise.
62067         * modules/regex (Depends-on): Likewise.
62068
62069 2006-12-19  Bruno Haible  <bruno@clisp.org>
62070
62071         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62072         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62073
62074 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62075
62076         * modules/savewd (Depends-on): Fix dependency on fcntl.
62077
62078 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62079
62080         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62081         conforms to C99, rather than relying on the user's environment
62082         setting of STDINT_H.
62083
62084 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62085         and Eric Blake  <ebb9@byu.net>
62086
62087         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62088         This is more consistent with the other defines here.
62089         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62090         Port to z/OS.  Problem reported by Paul Gilmartin.
62091         Change local vars to use gl_ prefix rather than ac_.
62092         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62093         with other defines.
62094         * modules/double-slash-root: New module.
62095         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62096         (Depends-on): Add double-slash-root.
62097         * MODULES.html.sh (File system functions): Mention new module.
62098
62099 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62102         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62103         This is for the benefit of gzip, which doesn't do i18n.
62104
62105 2006-12-12  Jim Meyering  <jim@meyering.net>
62106
62107         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62108         Reported by Andreas Schwab <schwab@suse.de>.
62109
62110 2006-12-12  Bruno Haible  <bruno@clisp.org>
62111
62112         Merge these changes.
62113         2006-09-05  Bruno Haible  <bruno@clisp.org>
62114         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62115         iconv_alloc succeeded.
62116         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62117         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62118         test for " && dest " at the end - dest is always != NULL there. Call
62119         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62120         with 2xNULL arguments, also to flush the state storage. Handle the
62121         IRIX iconv behaviour. Realloc the final result, to throw away unused
62122         memory.
62123
62124 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62127         and fchmodat unconditionally, since glibc 2.4 has them.
62128         Problem reported by Arkadiusz Miskiewicz.
62129
62130 2006-12-10  Bruno Haible  <bruno@clisp.org>
62131
62132         * gnulib-tool (func_import): Show the include files only for those
62133         modules that are copied and specified.
62134         Reported by Karl Berry.
62135
62136 2006-12-08  Jim Meyering  <jim@meyering.net>
62137
62138         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62139         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62140
62141         * build-aux/announce-gen: Add two new options, both optional:
62142         --bootstrap-tools=TOOL_LIST
62143               a comma-separated list of tools, e.g.,
62144               autoconf,automake,bison,gnulib
62145         --gnulib-snapshot-date=DATE
62146               if gnulib is in the bootstrap tool list,
62147               then report this as the snapshot date.
62148               If not specified, use the current date/time.
62149               If you specify a date here, be sure it's UTC.
62150
62151 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62152
62153         * tests/test-argp-2.sh: Fix test to match actual output.
62154         (func_compare): Fix sed script to be portable.
62155
62156 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62157
62158         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62159         workaround for this case.  It is not autoconfigured now; offhand
62160         it's hard to see how to autoconfigure it.
62161
62162 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62163
62164         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62165         a directory that is about to be chowned.  Such a directory's
62166         initial file permissions should permit the owner only and this
62167         should not be changed until after the chown, since the group and
62168         other bits would be incorrect if they granted permission before
62169         the chown.
62170
62171         Fix porting problem for iswctype reported by Georg Schwarz in:
62172         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62173         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62174         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62175         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62176         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62177
62178 2006-12-03  Jim Meyering  <jim@meyering.net>
62179
62180         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62181         p->fts_statp may not yet be defined.
62182         (fts_read): Instead, set it in the caller, once p->fts_statp is
62183         sure to be defined, and corresponds to a top-level directory.
62184         This bug made du -x fail.  Here's the coreutils test case:
62185         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62186         Reported by Mike Frysinger.
62187
62188 2006-12-01  Jim Meyering  <jim@meyering.net>
62189
62190         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62191         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62192         Reported by Simon Josefsson.
62193
62194 2006-11-30  Jim Meyering  <jim@meyering.net>
62195
62196         * m4/warning.m4: Use the all-permissive copyright notice
62197         recommended by RMS (rather than LGPL).
62198         * m4/vararrays.m4: Likewise.
62199         * m4/flexmember.m4: Likewise.
62200
62201 2006-11-29  Bruno Haible  <bruno@clisp.org>
62202
62203         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62204         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62205         using +=.
62206         Reported by Simon Josefsson <simon@josefsson.org>.
62207
62208 2006-11-28  James Youngman <jay@gnu.org>
62209
62210         * README: Advise users that they might find the bug-gnulib@gnu.org
62211         and autotools-announce@gnu.org mailing lists useful.
62212
62213 2006-11-28  Bruno Haible  <bruno@clisp.org>
62214
62215         * m4/ptrdiff_max.m4: Remove file.
62216
62217 2006-11-21  Bruno Haible  <bruno@clisp.org>
62218
62219         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62220         _AC_COMPUTE_INT.
62221         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62222         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62223         _AC_COMPUTE_INT.
62224         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62225         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62226         _AC_COMPUTE_INT.
62227         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62228
62229 2006-11-28  Jim Meyering  <jim@meyering.net>
62230
62231         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62232         warning from "gcc -Wshadow" about shadowing the builtin.
62233
62234 2006-11-27  Bruno Haible  <bruno@clisp.org>
62235
62236         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62237         _AC_COMPUTE_INT.
62238         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62239
62240 2006-11-27  Bruno Haible  <bruno@clisp.org>
62241             Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62244
62245 2006-11-26  Bruno Haible  <bruno@clisp.org>
62246
62247         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62248         noinst_LTLIBRARIES.
62249
62250 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62251             Bruno Haible  <bruno@clisp.org>
62252
62253         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62254         if compiling with "gcc -ansi".
62255
62256 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62257
62258         Fix some incompatibilities with gcc -ansi -pedantic.
62259         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62260         if compiling pedantically with GCC, unless it's C99 or later.
62261         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62262         it mishandles gcc -ansi -pedantic as well.
62263         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62264         if gcc -pedantic.
62265         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62266         initializers for struct if -pedantic, unless it's C99 or later.
62267
62268 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62269
62270         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62271         Don't close an fd more than once. Identical atimes indicate
62272         success, not failure.
62273
62274 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62275
62276         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62277
62278 2006-11-23  Jim Meyering  <jim@meyering.net>
62279
62280         * build-aux/announce-gen: New file.  From coreutils.
62281
62282 2006-11-22  Jim Meyering  <jim@meyering.net>
62283
62284         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62285         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62286         (fts_read): Use a temporary to narrow the overused st_size member
62287         before using it in a switch statement.  Reported by Matthew Woehlke.
62288
62289         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62290         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62291
62292 2006-11-20  Bruno Haible  <bruno@clisp.org>
62293
62294         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62295         changequote instead of pairs of brackets.
62296         Reported by Andreas Schwab <schwab@suse.de>.
62297
62298 2006-11-21  Jim Meyering  <jim@meyering.net>
62299
62300         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62301         so as to remain compatible with older compilers.
62302         Patch from Michael Deutschmann.
62303
62304 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62305
62306         * MODULES.html.sh (File system functions): Add openat.
62307
62308         * lib/openat.h (rpl_fstatat): New macro, if
62309         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62310         (fstatat): Define to rpl_fstatat under the same conditions,
62311         unless COMPILING_FSTATAT.
62312         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62313         seems to have the bug.
62314         * lib/fstatat.c: New file.
62315         * modules/openat (Files): Add it.
62316
62317 2006-11-20  Bruno Haible  <bruno@clisp.org>
62318
62319         * Makefile: New file.
62320
62321 2006-11-20  Jim Meyering  <jim@meyering.net>
62322
62323         The beginnings of syntax-related checks for gnulib.
62324         * lib/Makefile: New file.
62325         * lib/t-idcache: New script.  Ensure that the two halves of
62326         idcache.c stay in sync.
62327
62328         * lib/idcache.c: Adjust comments in user- and group- portions to
62329         be more accurate, and to be consistent with one another.
62330
62331 2006-11-20  Jim Meyering  <jim@meyering.net>
62332
62333         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62334         continue using the flexible array member (thus, this module performs
62335         half as many malloc calls), with the addition that...
62336         (getgroup, getuser): Consistently record a non-match via an empty
62337         "name" string, and map an empty string match to a NULL return value.
62338         * modules/idcache (Depends-on): Re-add flexmember.
62339
62340         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62341         (getuidbyname, getgroup, getgidbyname): Likewise.
62342
62343         Use cleaner syntax: NULL rather than 0.
62344         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62345
62346 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62347
62348         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62349         It mishandled the case where the group was missing.
62350         Problem reported by Greg Schafer.
62351         * modules/idcache: Likewise.
62352
62353 2006-11-18  Jim Meyering  <jim@meyering.net>
62354
62355         * check-module (%exempt_header): Add exception for some
62356         conditionally-included headers.
62357
62358         * modules/i-ring (Depends-on): Add verify.
62359         (License): Change to LGPL.
62360
62361 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62362
62363         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62364         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62365         and inttostr.h.  Use snprintf rather than uinttostr, so that
62366         LGPLed code doesn't depend on GPLed.
62367
62368 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62369
62370         * modules/inline (License): Change from GPL to LGPL.
62371
62372 2006-11-17  Jim Meyering  <jim@meyering.net>
62373
62374         * modules/d-type (License): Switch to LGPL.
62375
62376 2006-11-15  Bruno Haible  <bruno@clisp.org>
62377
62378         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62379
62380 2006-11-15  Eric Blake  <ebb9@byu.net>
62381
62382         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62383         the module dependency.
62384
62385 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62386             Bruno Haible  <bruno@clisp.org>
62387
62388         * gnulib-tool (func_create_testdir): Add license consistency check.
62389
62390 2006-11-15  Eric Blake  <ebb9@byu.net>
62391
62392         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62393         random "(cached)" in configure output.
62394
62395 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62396
62397         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62398         test for conforming inttypes.h is both announced and cached.
62399
62400         * MODULES.html.sh (seen_modules, seen_files): New variables.
62401         (func_module): Rewrite to use a few less gnulib-tool and sed
62402         invocations.  Avoid a couple of quadratic algorithms for ...
62403         (missed_modules, missed_files): ... these, with ...
62404         (func_append, func_tmpdir): ... these new functions, from
62405         gnulib-tool.  Analogously, install traps for cleanup.
62406
62407         * tests/test-gc.c (main): Remove unused variables.
62408         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62409
62410 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62411
62412         * modules/inttostr (License): Change to LGPL.
62413
62414 2006-11-14  Eric Blake  <ebb9@byu.net>
62415
62416         * modules/tempname (License): Change to LGPL.
62417
62418 2006-11-14  Eric Blake  <ebb9@byu.net>
62419
62420         * doc/functions.texi (Function Portability): *printf functions on
62421         Cygwin now understand all POSIX size specifiers.
62422
62423 2006-11-14  Bruno Haible  <bruno@clisp.org>
62424
62425         * modules/c-ctype (License): Change to LGPL.
62426
62427 2006-11-12  Bruno Haible  <bruno@clisp.org>
62428
62429         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62430         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62431         for GNOME libraries, for which the include files are installed in
62432         subdirectories of $prefix/include.
62433
62434 2006-11-12  Bruno Haible  <bruno@clisp.org>
62435
62436         * m4/lib-link.m4: Require at least autoconf-2.54.
62437         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62438         name to underscores for the --with option.
62439
62440 2006-11-13  Bruno Haible  <bruno@clisp.org>
62441
62442         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62443         the tests directory.
62444         Reported by Ralf Wildenhues.
62445
62446 2006-11-13  Bruno Haible  <bruno@clisp.org>
62447
62448         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62449         (func_emit_initmacro_end): Undo the override here.
62450         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62451         Works around the famous automake error in coreutils.
62452
62453 2006-11-13  Eric Blake  <ebb9@byu.net>
62454
62455         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62456         element, not its node.
62457
62458 2006-11-12  Bruno Haible  <bruno@clisp.org>
62459
62460         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62461         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62462
62463 2006-11-12  Bruno Haible  <bruno@clisp.org>
62464
62465         * gnulib-tool: New option --local-symlink.
62466         (func_usage): Document it.
62467         (lsymbolic): New variable.
62468         (func_import, func_create_testdir): If --symlink was not specified,
62469         test whether --local-symlink was specified and the file comes from
62470         the local_gnulib_dir.
62471
62472 2006-11-12  Bruno Haible  <bruno@clisp.org>
62473
62474         * gnulib-tool (func_ln): New function.
62475         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62476
62477 2006-11-12  Bruno Haible  <bruno@clisp.org>
62478
62479         Finish support for source files in subdirectories.
62480         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62481         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62482         AUTOMAKE_OPTIONS.
62483         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62484
62485 2006-11-12  Bruno Haible  <bruno@clisp.org>
62486
62487         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62488         EXTRA_lib_SOURCES augmentation.
62489         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62490
62491 2006-11-12  Jim Meyering  <jim@meyering.net>
62492
62493         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62494         file descriptors.  This also averts a failure on systems with
62495         native openat support when a traversed directory lacks "x" access.
62496         * lib/fts_.h: Include "i-ring.h"
62497         (struct FTS) [fts_fd_ring]: New member.
62498         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62499         (FCHDIR): Add parentheses.
62500         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62501         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62502         When descending, rather than simply closing the previous
62503         fts_cwd_fd value, push that file descriptor onto the ring.
62504         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62505         (fts_open): Initialize the new fd_ring member.
62506         (fts_close): Clear the ring.
62507         (fts_safe_changedir): When possible, use our new fd_ring to skip
62508         the diropen and fstat and dev/ino comparison that would normally
62509         accompany a virtual `chdir ("..")'.
62510
62511         * modules/fts (Depends-on): Add i-ring.
62512         * modules/i-ring: New module.
62513         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62514         * m4/i-ring.m4: New file.
62515
62516 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62517
62518         * gnulib-tool (func_create_testdir): Fix replacement of
62519         `build-aux' in configure.ac.  Run autotools in gltests
62520         subdirectory.
62521         (func_create_testdir, func_create_megatestdir, test): There is
62522         no need for '--force' in most autotool invocations in a new
62523         tree.  Actually fail the whole test if any of the tools, or the
62524         configure or make stages fail.
62525
62526         Sync from Automake.
62527         * build-aux/gnupload: Revert last change.  Add pointer to upload
62528         instructions of the GNU Maintenance Instructions.
62529         Suggestion by Karl Berry.
62530
62531 2006-11-10  Jim Meyering  <jim@meyering.net>
62532
62533         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62534
62535 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62538         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62539         (bind_textdomain_codeset) [! ENABLE_NLS]:
62540         Evaluate all the arguments.  That way, callers get compatible behavior
62541         if the arguments have side effects.  Also, it avoids some GCC
62542         diagnostics in some cases; Joel E. Denny reported problems when Bison
62543         was configured with --enable-gcc-warnigs.
62544
62545 2006-11-10  Jim Meyering  <jim@meyering.net>
62546
62547         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62548         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62549         account.
62550
62551 2006-11-10  Jim Meyering  <jim@meyering.net>
62552
62553         * modules/inline: New file/module.
62554         * modules/xalloc (Files): Remove m4/inline.m4.
62555         (Depends-on): Add inline, instead.
62556         * modules/oset: Likewise.
62557         * modules/list: Likewise.
62558
62559 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62560
62561         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62562         Problem reported by Matthew Woehlke.
62563
62564 2006-11-09  Bruno Haible  <bruno@clisp.org>
62565
62566         * lib/tempname.c (gen_tempname): Remove variant that invokes
62567         __gen_tempname.
62568         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62569         __gen_tempname.
62570
62571 2006-11-08  Bruno Haible  <bruno@clisp.org>
62572
62573         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62574         to 'yes' instead of 'cross-compiling'.
62575
62576 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62577
62578         * lib/quotearg.h (quotearg_free): New decl.
62579         * lib/quotearg.c (quotearg_free): New function.
62580         (slot0, nslots, slotvec0, slotvec):
62581         Now file-scope so that quotearg_free can get at them.
62582
62583 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62584
62585         Sync from Automake.
62586         * build-aux/gnupload: Add missing 'gnu' to example URL.
62587         Report by Karl Berry.
62588
62589 2006-11-08  Bruno Haible  <bruno@clisp.org>
62590
62591         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62592         Suggested by Paul Eggert.
62593
62594 2006-11-08  Jim Meyering  <jim@meyering.net>
62595
62596         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62597         It's already included if !_LIBC.
62598         (fts_safe_changedir): Add a comment.
62599
62600 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62601
62602         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62603         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62604         Matthew Woehlke.
62605
62606         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62607         definitions up, to avoid colliding with change below.
62608         (static_inline) [HAVE_INLINE]: New macro.
62609         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62610         Provide extern decls when !HAVE_INLINE.  Do not define unless
62611         static_inline is defined, either by us or by xmalloc.c.  Use
62612         static_inline rather than static inline.
62613         (XCALLOC): Optimize sizeof(T) = 1 case.
62614         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62615
62616 2006-11-07  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62619         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62620         AC_C_INLINE.
62621         * modules/xalloc (Files): Add m4/inline.m4.
62622
62623 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62624
62625         * README: Fix typo.
62626         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62627         (Miscellanous Notes): ...from this.
62628
62629 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62630
62631         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62632         Mention that offsetof should be used instead of sizeof.
62633         From Bruno Haible.
62634
62635 2006-11-07  Bruno Haible  <bruno@clisp.org>
62636
62637         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62638
62639 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62640
62641         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62642         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62643         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62644         (gl_tree_add_before, gl_tree_add_after):
62645         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62646         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62647         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62648         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62649         (gl_linked_add_after, gl_linked_add_at): Likewise.
62650         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62651         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62652         (gl_tree_add_before, gl_tree_add_after): Likewise.
62653         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62654         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62655         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62656
62657 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62658
62659         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62660
62661 2006-11-06  Bruno Haible  <bruno@clisp.org>
62662
62663         * m4/inline.m4: New file.
62664         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62665         * modules/list (Files): Add m4/inline.m4.
62666         * modules/oset (Files): Likewise.
62667
62668 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         * lib/idcache.c: Include <stddef.h>, for offsetof.
62671         (struct userid.name): Change from char * to a flexible array member.
62672         All uses changed.
62673         * modules/idcache (Depends-on): Add flexmember.
62674
62675         * MODULES.html.sh (Core language properties): New module flexmember.
62676         * modules/flexmember, m4/flexmember.m4: New files.
62677
62678         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62679         inline functions that are identical with the old xnmalloc_inline,
62680         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62681         that we can avoid some unnecessary integer multiplications and
62682         divisions in the common case where the element size is known at
62683         compile time.
62684         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62685         needed.
62686         (xnboundedmalloc): Remove.
62687         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62688         arguments, for consistency with rest of this header.
62689         (xcharalloc): Rewrite using XNMALLOC.
62690         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62691         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62692         versions have been moved to lib/xalloc.h and renamed to be the
62693         non-*_inline versions.
62694         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62695         and xnrealloc functions, since those functions are now inline and
62696         now call us.
62697         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62698         renaming described above.
62699         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62700         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62701         captures the dependency in AC_C_INLINE.
62702
62703         New module canonicalize-lgpl, proposed by Charles Wilson in
62704         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62705         with a few small changes afterwards.
62706         * MODULES.html.sh (File system functions): New module
62707         canonicalize-lgpl.
62708         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62709         and canonicalize_file_name.
62710         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62711         * modules/canonicalize-lgpl: New files.
62712
62713 2006-11-05  Bruno Haible  <bruno@clisp.org>
62714
62715         * gnulib-tool (func_import, func_create_testdir): Create directories
62716         also for files in subdirectories of lib/.
62717
62718 2006-11-05  Bruno Haible  <bruno@clisp.org>
62719
62720         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62721         ANSI C compliant.
62722
62723 2006-11-03  Bruno Haible  <bruno@clisp.org>
62724
62725         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62726         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62727         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62728         (xnboundedmalloc): New inline function.
62729         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62730         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62731         xmalloc.
62732         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62733         xmalloc.
62734         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62735         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62736         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62737         xmalloc.
62738         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62739         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62740         xmalloc.
62741         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62742         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62743         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62744         xmalloc.
62745         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62746         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62747         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62748         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62749         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62750         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62751         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62752
62753 2006-11-03  Bruno Haible  <bruno@clisp.org>
62754
62755         * lib/c-ctype.h [C++]: Define functions without name mangling.
62756         * lib/fwriteerror.h [C++]: Likewise.
62757         * lib/gcd.h [C++]: Likewise.
62758         * lib/linebreak.h [C++]: Likewise.
62759
62760 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62763         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62764         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62765         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62766         Check for functions and headers just once.
62767         Check for declaration of canonicalize_file_name.
62768         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62769
62770 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62771
62772         * gnulib-tool (func_import): Fix typo in actioncmd.
62773
62774 2006-11-02  Bruno Haible  <bruno@clisp.org>
62775
62776         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62777         newline sequence in the Makefile.am snippet as a space, like "make"
62778         does.
62779         Reported by Roger Persson <perrog@gmail.com>.
62780
62781 2006-11-01  Bruno Haible  <bruno@clisp.org>
62782
62783         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62784         already declared in <string.h>.
62785         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62786
62787 2006-11-01  Bruno Haible  <bruno@clisp.org>
62788
62789         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62790         * lib/strcase.h: Include <string.h>.
62791         (strcasecmp): Define to rpl_strcasecmp here.
62792
62793 2006-11-01  Bruno Haible  <bruno@clisp.org>
62794
62795         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62796
62797 2006-11-01  Eric Blake  <ebb9@byu.net>
62798
62799         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62800
62801         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62802
62803 2006-10-29  Bruno Haible  <bruno@clisp.org>
62804
62805         Make it compile in C++ mode.
62806         * lib/full-write.c (full_rw): Add a cast.
62807
62808 2006-11-01  Bruno Haible  <bruno@clisp.org>
62809
62810         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62811         be POSIX compliant.
62812         Reported by Roger Persson <perrog@gmail.com>.
62813
62814 2006-11-01  Eric Blake  <ebb9@byu.net>
62815
62816         * lib/getopt_.h: Fix comments.
62817
62818 2006-10-31  Eric Blake  <ebb9@byu.net>
62819
62820         * modules/tmpdir (Depends-on): Add sys_stat.
62821         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62822         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62823         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62824         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62825         tempname.
62826
62827 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62828
62829         Avoid some C++ diagnostics reported by Bruno Haible.
62830         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62831         xmalloc.
62832         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62833         (struct slotvec): Move to top level.
62834         (quotearg_n_options): Rewrite to avoid xmalloc.
62835         * lib/xalloc.h (xcharalloc): New function.
62836         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62837         [defined __cplusplus]: Add function template that provides result
62838         type propagation.  This part of the change is from Bruno Haible.
62839
62840 2006-10-29  Bruno Haible  <bruno@clisp.org>
62841
62842         Make it compile in C++ mode.
62843         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62844         * lib/strnlen1.c (strnlen1): Cast memchr result.
62845         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62846         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62847         (create_temp_dir): Rename local variable 'template'.
62848         (compile_csharp_using_sscli): Add cast.
62849         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62850         * lib/findprog.c (find_in_path): Likewise.
62851         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62852         * lib/wait-process.c (register_slave_subprocess): Likewise.
62853
62854 2006-10-22  Bruno Haible  <bruno@clisp.org>
62855
62856         * modules/tsearch: New file.
62857         * lib/tsearch.h: New file.
62858         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62859         * m4/tsearch.m4: New file.
62860         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62861
62862 2006-10-29  Eric Blake  <ebb9@byu.net>
62863
62864         * lib/arcfour.c: Assume config.h.
62865         * lib/arctwo.c: Likewise.
62866         * lib/base64.c: Likewise.
62867         * lib/check-version.c: Likewise.
62868         * lib/crc.c: Likewise.
62869         * lib/des.c: Likewise.
62870         * lib/gc-gnulib.c: Likewise.
62871         * lib/gc-libgcrypt.c: Likewise.
62872         * lib/gc-pbkdf2-sha1.c: Likewise.
62873         * lib/getaddrinfo.c: Likewise.
62874         * lib/getdelim.c: Likewise.
62875         * lib/getline.c: Likewise.
62876         * lib/hmac-md5.c: Likewise.
62877         * lib/hmac-sha1.c: Likewise.
62878         * lib/iconvme.c: Likewise.
62879         * lib/md2.c: Likewise.
62880         * lib/md4.c: Likewise.
62881         * lib/memxor.c: Likewise.
62882         * lib/read-file.c: Likewise.
62883         * lib/readline.c: Likewise.
62884         * lib/rijndael-alg-fst.c: Likewise.
62885         * lib/rijndael-api-fst.c: Likewise.
62886         * lib/xgetdomainname.c: Likewise.
62887
62888 2006-10-28  Eric Blake  <ebb9@byu.net>
62889
62890         * lib/xstrndup.c: Assume config.h.
62891
62892 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62895         stat-macros.h is now for our own macros, whereas stat_h is for
62896         macros in the <sys/stat.h> name space.
62897         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62898         (STAT_MACROS_H): Remove.
62899         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62900         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62901         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62902         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62903         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62904         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62905         Move these macros to ...
62906         * lib/stat_.h: here.  Don't include stat-macros.h.
62907         * lib/canonicalize.c: Don't include stat-macros.h.
62908         * lib/chown.c: Likewise.
62909         * lib/euidaccess.c: Likewise.
62910         * lib/file-type.c: Likewise.
62911         * lib/filemode.c: Likewise.
62912         * lib/glob.c: Likewise.
62913         * lib/isapipe.c: Likewise.
62914         * lib/lchown.c: Likewise.
62915         * lib/lstat.c: Likewise.
62916         * lib/mkdir-p.c: Likewise.
62917         * lib/rmdir.c: Likewise.
62918         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62920         unless mkdir isn't declared, to speed up 'configure'.
62921         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62922         would define all the S_* symbols.
62923         * modules/canonicalize (Depends-on):
62924         Depend on sys_stat, not stat-macros.
62925         * modules/chown: Likewise.
62926         * modules/euidaccess: Likewise.
62927         * modules/filemode: Likewise.
62928         * modules/file-type: Likewise.
62929         * modules/glob: Likewise.
62930         * modules/isapipe: Likewise.
62931         * modules/lchown: Likewise.
62932         * modules/lstat: Likewise.
62933         * modules/mkancesdirs: Likewise.
62934         * modules/rmdir: Likewise.
62935         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62936         * modules/modechange: Likewise.
62937         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62938         (configure.ac): Remove gl_STAT_MACROS.
62939         * modules/sys_stat (Depends-on): Remove stat-macros.
62940
62941 2006-10-27  Bruno Haible  <bruno@clisp.org>
62942
62943         * m4/signed.m4: Remove file.
62944         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62945         invocation.
62946         * modules/vasnprintf (Files): Remove m4/signed.m4.
62947
62948 2006-10-27  Bruno Haible  <bruno@clisp.org>
62949
62950         Update to GNU gettext 0.16.
62951         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62952         m4/inttypes-h.m4, m4/signed.m4.
62953         * m4/gettext.m4: Update to GNU gettext 0.16.
62954         * m4/intl.m4: New file, from GNU gettext.
62955         * m4/intldir.m4: New file, from GNU gettext.
62956         * config/srclist.txt: Update
62957
62958 2006-10-27  Eric Blake  <ebb9@byu.net>
62959
62960         * MODULES.html.sh: Document tempname.
62961         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62962         dependencies.
62963         (Files): Move lib/tempname.c...
62964         * modules/tempname: ...to this new module.
62965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62966         (gl_PREREQ_TEMPNAME): Move...
62967         * m4/tempname.m4: ...to this new file.
62968         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62969         * modules/sys_stat (Depends-on): Add stat-macros.
62970         * lib/stat_.h (includes): Pick up stat macros.
62971         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62972         if stat macros are broken.
62973         * lib/tempname.c (includes): No need to include "stat-macros.h".
62974         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62975         (direxists, __path_search) [!_LIBC]: Don't compile these in
62976         gnulib; the tmpdir module covers that.
62977         * lib/tempname.h: New file.
62978
62979 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62980
62981         * COPYING: Explain how gnulib-tool converts licence headers.
62982         Almost all wording by Eric Blake.
62983
62984 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         * lib/mbchar.h (is_basic_table): Make read-only.
62987         * lib/mbchar.c (is_basic_table): Likewise.
62988         Reported by John Darrington.
62989
62990 2006-10-25  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/progname.h (set_program_name): Undefine before defining.
62993
62994 2006-10-25  Bruno Haible  <bruno@clisp.org>
62995
62996         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62997         false for non-gcc C++ compilers.
62998         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62999
63000 2006-10-24  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63003         iconv implementations like Irix iconv.
63004
63005 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         * modules/vararrays: New file.
63008         * m4/vararrays.m4: New file, taken from diffutils.
63009         * MODULES.html.sh: New module vararrays.
63010
63011 2006-10-24  Karl Berry  <karl@gnu.org>
63012
63013         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63014         Don't call GNU Unix.
63015
63016 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63017
63018         * users.txt: Add Libtool.
63019
63020         Sync from Libtool:
63021
63022         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63023
63024         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63025         to gnulib's policy of including config.h unconditionally.
63026
63027 2006-10-24  Bruno Haible  <bruno@clisp.org>
63028
63029         * modules/wcwidth (Files): Add m4/wint_t.m4.
63030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63031         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63032
63033 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63036         to pacify GCC with some -W flags enabled.  Problem reported by
63037         Bruno Haible.
63038
63039 2006-10-24  Jim Meyering  <jim@meyering.net>
63040
63041         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63042         Reported by Karl Berry.
63043
63044 2006-10-23  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63047
63048 2006-10-24  Bruno Haible  <bruno@clisp.org>
63049
63050         * lib/gl_list.h: Use C comment style, not C++ comment style.
63051
63052 2006-10-23  Eric Blake  <ebb9@byu.net>
63053
63054         * lib/getaddrinfo.c (includes): Add missing include.
63055
63056 2006-10-23  Bruno Haible  <bruno@clisp.org>
63057             Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         Ability to rename obstack_free.
63060         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63061         obstack_free.
63062         (obstack_free): Invoke the __obstack_free macro.
63063         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63064
63065 2006-10-23  Bruno Haible  <bruno@clisp.org>
63066             Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63069         __argc, __argv from the declaration. (They are defined as macros on
63070         mingw.)
63071
63072 2006-10-22  Bruno Haible  <bruno@clisp.org>
63073
63074         * doc/gnulib-intro.texi: New file.
63075         * doc/gnulib.texi: Include it.
63076
63077 2006-10-21  Bruno Haible  <bruno@clisp.org>
63078
63079         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63080         "Introduction", "Miscellanous Notes", "Particular Modules".
63081
63082 2006-10-21  Bruno Haible  <bruno@clisp.org>
63083
63084         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63085         Change mostlyclean-local rule to avoid sh syntax error from bash
63086         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63087
63088 2006-10-23  Jim Meyering  <jim@meyering.net>
63089
63090         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63091         in place of snprintf.
63092
63093         * modules/inttostr (Files): Add lib/uinttostr.c.
63094         * lib/uinttostr.c (inttostr): New file/function.
63095         * lib/inttostr.h (uinttostr): Declare.
63096         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63097         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63098         Add uinttostr.
63099         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63100
63101 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         * lib/canonicalize.c (ELOOP): Define if not already defined.
63104         Problem reported by Bruno Haible in
63105         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63106
63107 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63108
63109         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63110         Problem reported by Perry Smith and Ville Laurikari.
63111
63112         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63113         uses.
63114
63115 2006-10-19  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63118         for mingw.
63119
63120 2006-10-19  Bruno Haible  <bruno@clisp.org>
63121
63122         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63123         Needed for mingw.
63124
63125 2006-10-19  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63128
63129 2006-10-19  Bruno Haible  <bruno@clisp.org>
63130
63131         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63132         it.
63133
63134 2006-10-19  Bruno Haible  <bruno@clisp.org>
63135
63136         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63137         invocation.
63138
63139 2006-10-19  Bruno Haible  <bruno@clisp.org>
63140
63141         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63142         mountlist by default.
63143
63144 2006-10-16  Bruno Haible  <bruno@clisp.org>
63145
63146         * lib/c-strstr.c: Include c-strstr.h.
63147
63148 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63149
63150         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63151         in a slash.
63152
63153 2006-10-18  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/lock.h [C++]: Wrap definitions in extern "C".
63156
63157 2006-10-18  Bruno Haible  <bruno@clisp.org>
63158
63159         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63160         gl_LIBOBJS list.
63161
63162 2006-10-18  Bruno Haible  <bruno@clisp.org>
63163
63164         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63165
63166 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         * lib/xstrtol.h: Include gettext.h.
63169         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63170         Problem reported by Eric Blake.
63171         * modules/xstrtol (Depends-on): Add gettext-h.
63172
63173 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63174
63175         * lib/strftime.c (advance): New macro.
63176         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63177         incomplete type, so you can't add 0 to it.  Problem and patch
63178         reported by Eelco Dolstra for dietlibc.
63179
63180 2006-10-18  Jim Meyering  <jim@meyering.net>
63181
63182         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63183         type for a local, and rename it: s/up/user_proc/.
63184
63185 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63186
63187         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63188         READ_UTMP_USER_PROCESS.
63189         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63190
63191 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63194         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63195
63196 2006-10-17  Eric Blake  <ebb9@byu.net>
63197
63198         * lib/sigprocmask.c (sigprocmask): Fix typo.
63199
63200         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63201
63202         * modules/clean-temp (Makefile.am): Don't add to make output...
63203         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63204         config.h.
63205
63206 2006-10-17  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63209         differently if DEFAULT_TEXT_DOMAIN is set.
63210
63211 2006-10-16  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/clean-temp.c: Include fwriteerror.h.
63214
63215 2006-10-16  Bruno Haible  <bruno@clisp.org>
63216
63217         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63218
63219 2006-10-16  Bruno Haible  <bruno@clisp.org>
63220
63221         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63222         * lib/sigprocmask.h: Include <sys/types.h>.
63223         (sigset_t): Use the system's definition if present.
63224
63225 2006-10-17  Eric Blake  <ebb9@byu.net>
63226
63227         * lib/xvasprintf.c (includes): Assume config.h.
63228         * lib/xasprintf.c (includes): Likewise.
63229
63230 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63231
63232         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63233         at least as wide as intmax_t.
63234
63235 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63236
63237         (Imported from Automake.)
63238         * build-aux/gnupload: Update to version 1.1 of directive file.
63239
63240 2006-10-16  Eric Blake  <ebb9@byu.net>
63241
63242         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63243         match Automake 1.10a.
63244
63245 2006-10-14  Bruno Haible  <bruno@clisp.org>
63246
63247         * modules/sigprocmask: New file.
63248         * lib/sigprocmask.h: New file.
63249         * lib/sigprocmask.c: New file.
63250         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63251         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63252         request sigprocmask.o.
63253         (gl_PREREQ_SIGPROCMASK): New macro.
63254         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63255         (Depends-on): Add sigprocmask.
63256         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63257         gt_SIGNALBLOCKING. Test for 'raise' only once.
63258         * lib/fatal-signal.c: Include sigprocmask.h.
63259         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63260         unblock_fatal_signals): Define always.
63261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63262         sigprocmask.
63263
63264 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         Sync from Automake.
63267         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63268         which incorrectly sets the mode of an existing destination
63269         directory.  In some cases the unpatched install-sh could do the
63270         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63271         system.  We hope this is rare in practice, but it's clearly worth
63272         fixing.  Problem reported by Alex Unleashed in
63273         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63274         Also, don't bother to check for -m bugs unless we're using -m;
63275         suggested by Stepan Kasal.
63276
63277 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63278
63279         Sync from Automake.
63280         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63281         `-c' flag, so they appear at the same position as in %FASTDEP%
63282         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63283         which ignores unknown options only after the first non-option.
63284         Bug report against M4 by Nelson H. F. Beebe.
63285
63286 2006-10-13  Jim Meyering  <jim@meyering.net>
63287
63288         Fix a bug in yesterday's change.
63289         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63290         p->fts_statp->st_dev would be used uninitialized.
63291         Ensures that we always call fts_stat on the very first entry.
63292         Miklos Szeredi reported that find -xdev stopped working.
63293
63294 2006-10-12  Bruno Haible  <bruno@clisp.org>
63295
63296         * gnulib-tool (func_get_automake_snippet): Append an automatically
63297         computed EXTRA_DIST augmentation.
63298         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63299         * modules/alloca-opt (Makefile.am): Likewise.
63300         * modules/allocsa (Makefile.am): Likewise.
63301         * modules/arcfour (Makefile.am): Likewise.
63302         * modules/arctwo (Makefile.am): Likewise.
63303         * modules/argmatch (Makefile.am): Likewise.
63304         * modules/argz (Makefile.am): Likewise.
63305         * modules/atexit (Makefile.am): Likewise.
63306         * modules/backupfile (Makefile.am): Likewise.
63307         * modules/byteswap (Makefile.am): Likewise.
63308         * modules/c-strtod (Makefile.am): Likewise.
63309         * modules/c-strtold (Makefile.am): Likewise.
63310         * modules/calloc (Makefile.am): Likewise.
63311         * modules/canon-host (Makefile.am): Likewise.
63312         * modules/canonicalize (Makefile.am): Likewise.
63313         * modules/chdir-long (Makefile.am): Likewise.
63314         * modules/chdir-safer (Makefile.am): Likewise.
63315         * modules/check-version (Makefile.am): Likewise.
63316         * modules/chown (Makefile.am): Likewise.
63317         * modules/cloexec (Makefile.am): Likewise.
63318         * modules/close-stream (Makefile.am): Likewise.
63319         * modules/closeout (Makefile.am): Likewise.
63320         * modules/crc (Makefile.am): Likewise.
63321         * modules/csharpexec (Makefile.am): Likewise.
63322         * modules/cycle-check (Makefile.am): Likewise.
63323         * modules/des (Makefile.am): Likewise.
63324         * modules/dev-ino (Makefile.am): Likewise.
63325         * modules/dirfd (Makefile.am): Likewise.
63326         * modules/dirname (Makefile.am): Likewise.
63327         * modules/dup2 (Makefile.am): Likewise.
63328         * modules/eealloc (Makefile.am): Likewise.
63329         * modules/error (Makefile.am): Likewise.
63330         * modules/euidaccess (Makefile.am): Likewise.
63331         * modules/exclude (Makefile.am): Likewise.
63332         * modules/exitfail (Makefile.am): Likewise.
63333         * modules/fcntl-safer (Makefile.am): Likewise.
63334         * modules/fcntl (Makefile.am): Likewise.
63335         * modules/file-type (Makefile.am): Likewise.
63336         * modules/fileblocks (Makefile.am): Likewise.
63337         * modules/filemode (Makefile.am): Likewise.
63338         * modules/filenamecat (Makefile.am): Likewise.
63339         * modules/fnmatch (Makefile.am): Likewise.
63340         * modules/fopen-safer (Makefile.am): Likewise.
63341         * modules/fpending (Makefile.am): Likewise.
63342         * modules/fprintftime (Makefile.am): Likewise.
63343         * modules/free (Makefile.am): Likewise.
63344         * modules/fsusage (Makefile.am): Likewise.
63345         * modules/ftruncate (Makefile.am): Likewise.
63346         * modules/fts (Makefile.am): Likewise.
63347         * modules/gc-arcfour (Makefile.am): Likewise.
63348         * modules/gc-des (Makefile.am): Likewise.
63349         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63350         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63351         * modules/gc-md4 (Makefile.am): Likewise.
63352         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63353         * modules/gc-sha1 (Makefile.am): Likewise.
63354         * modules/gc (Makefile.am): Likewise.
63355         * modules/getaddrinfo (Makefile.am): Likewise.
63356         * modules/getcwd (Makefile.am): Likewise.
63357         * modules/getdelim (Makefile.am): Likewise.
63358         * modules/getdomainname (Makefile.am): Likewise.
63359         * modules/getgroups (Makefile.am): Likewise.
63360         * modules/gethostname (Makefile.am): Likewise.
63361         * modules/gethrxtime (Makefile.am): Likewise.
63362         * modules/getline (Makefile.am): Likewise.
63363         * modules/getloadavg (Makefile.am): Likewise.
63364         * modules/getlogin_r (Makefile.am): Likewise.
63365         * modules/getndelim2 (Makefile.am): Likewise.
63366         * modules/getopt (Makefile.am): Likewise.
63367         * modules/getpagesize (Makefile.am): Likewise.
63368         * modules/getpass-gnu (Makefile.am): Likewise.
63369         * modules/getpass (Makefile.am): Likewise.
63370         * modules/getsubopt (Makefile.am): Likewise.
63371         * modules/gettime (Makefile.am): Likewise.
63372         * modules/gettimeofday (Makefile.am): Likewise.
63373         * modules/getugroups (Makefile.am): Likewise.
63374         * modules/getusershell (Makefile.am): Likewise.
63375         * modules/glob (Makefile.am): Likewise.
63376         * modules/group-member (Makefile.am): Likewise.
63377         * modules/hard-locale (Makefile.am): Likewise.
63378         * modules/hash (Makefile.am): Likewise.
63379         * modules/hmac-md5 (Makefile.am): Likewise.
63380         * modules/hmac-sha1 (Makefile.am): Likewise.
63381         * modules/human (Makefile.am): Likewise.
63382         * modules/idcache (Makefile.am): Likewise.
63383         * modules/imaxabs (Makefile.am): Likewise.
63384         * modules/imaxdiv (Makefile.am): Likewise.
63385         * modules/inet_ntop (Makefile.am): Likewise.
63386         * modules/inet_pton (Makefile.am): Likewise.
63387         * modules/intprops (Makefile.am): Likewise.
63388         * modules/inttostr (Makefile.am): Likewise.
63389         * modules/inttypes (Makefile.am): Likewise.
63390         * modules/isapipe (Makefile.am): Likewise.
63391         * modules/javaversion (Makefile.am): Likewise.
63392         * modules/lchmod (Makefile.am): Likewise.
63393         * modules/lchown (Makefile.am): Likewise.
63394         * modules/localcharset (Makefile.am): Likewise.
63395         * modules/long-options (Makefile.am): Likewise.
63396         * modules/lstat (Makefile.am): Likewise.
63397         * modules/malloc (Makefile.am): Likewise.
63398         * modules/mathl (Makefile.am): Likewise.
63399         * modules/mbchar (Makefile.am): Likewise.
63400         * modules/md2 (Makefile.am): Likewise.
63401         * modules/md4 (Makefile.am): Likewise.
63402         * modules/md5 (Makefile.am): Likewise.
63403         * modules/memcasecmp (Makefile.am): Likewise.
63404         * modules/memchr (Makefile.am): Likewise.
63405         * modules/memcmp (Makefile.am): Likewise.
63406         * modules/memcoll (Makefile.am): Likewise.
63407         * modules/memcpy (Makefile.am): Likewise.
63408         * modules/memmem (Makefile.am): Likewise.
63409         * modules/memmove (Makefile.am): Likewise.
63410         * modules/mempcpy (Makefile.am): Likewise.
63411         * modules/memrchr (Makefile.am): Likewise.
63412         * modules/memset (Makefile.am): Likewise.
63413         * modules/memxor (Makefile.am): Likewise.
63414         * modules/mkancesdirs (Makefile.am): Likewise.
63415         * modules/mkdir-p (Makefile.am): Likewise.
63416         * modules/mkdir (Makefile.am): Likewise.
63417         * modules/mkdtemp (Makefile.am): Likewise.
63418         * modules/mkstemp (Makefile.am): Likewise.
63419         * modules/mktime (Makefile.am): Likewise.
63420         * modules/modechange (Makefile.am): Likewise.
63421         * modules/mountlist (Makefile.am): Likewise.
63422         * modules/nanosleep (Makefile.am): Likewise.
63423         * modules/obstack (Makefile.am): Likewise.
63424         * modules/openat (Makefile.am): Likewise.
63425         * modules/pagealign_alloc (Makefile.am): Likewise.
63426         * modules/pathmax (Makefile.am): Likewise.
63427         * modules/physmem (Makefile.am): Likewise.
63428         * modules/poll (Makefile.am): Likewise.
63429         * modules/posixtm (Makefile.am): Likewise.
63430         * modules/posixver (Makefile.am): Likewise.
63431         * modules/putenv (Makefile.am): Likewise.
63432         * modules/quote (Makefile.am): Likewise.
63433         * modules/quotearg (Makefile.am): Likewise.
63434         * modules/raise (Makefile.am): Likewise.
63435         * modules/read-file (Makefile.am): Likewise.
63436         * modules/readline (Makefile.am): Likewise.
63437         * modules/readlink (Makefile.am): Likewise.
63438         * modules/readtokens (Makefile.am): Likewise.
63439         * modules/readutmp (Makefile.am): Likewise.
63440         * modules/realloc (Makefile.am): Likewise.
63441         * modules/regex (Makefile.am): Likewise.
63442         * modules/rename-dest-slash (Makefile.am): Likewise.
63443         * modules/rename (Makefile.am): Likewise.
63444         * modules/rijndael (Makefile.am): Likewise.
63445         * modules/rmdir (Makefile.am): Likewise.
63446         * modules/rpmatch (Makefile.am): Likewise.
63447         * modules/safe-read (Makefile.am): Likewise.
63448         * modules/safe-write (Makefile.am): Likewise.
63449         * modules/same-inode (Makefile.am): Likewise.
63450         * modules/same (Makefile.am): Likewise.
63451         * modules/save-cwd (Makefile.am): Likewise.
63452         * modules/savedir (Makefile.am): Likewise.
63453         * modules/setenv (Makefile.am): Likewise.
63454         * modules/settime (Makefile.am): Likewise.
63455         * modules/sha1 (Makefile.am): Likewise.
63456         * modules/sig2str (Makefile.am): Likewise.
63457         * modules/snprintf (Makefile.am): Likewise.
63458         * modules/stat-macros (Makefile.am): Likewise.
63459         * modules/stat-time (Makefile.am): Likewise.
63460         * modules/stdbool (Makefile.am): Likewise.
63461         * modules/stdint (Makefile.am): Likewise.
63462         * modules/stdlib-safer (Makefile.am): Likewise.
63463         * modules/stpcpy (Makefile.am): Likewise.
63464         * modules/stpncpy (Makefile.am): Likewise.
63465         * modules/strcase (Makefile.am): Likewise.
63466         * modules/strcasestr (Makefile.am): Likewise.
63467         * modules/strchrnul (Makefile.am): Likewise.
63468         * modules/strcspn (Makefile.am): Likewise.
63469         * modules/strdup (Makefile.am): Likewise.
63470         * modules/strerror (Makefile.am): Likewise.
63471         * modules/strftime (Makefile.am): Likewise.
63472         * modules/strndup (Makefile.am): Likewise.
63473         * modules/strnlen (Makefile.am): Likewise.
63474         * modules/strpbrk (Makefile.am): Likewise.
63475         * modules/strsep (Makefile.am): Likewise.
63476         * modules/strstr (Makefile.am): Likewise.
63477         * modules/strtod (Makefile.am): Likewise.
63478         * modules/strtoimax (Makefile.am): Likewise.
63479         * modules/strtok_r (Makefile.am): Likewise.
63480         * modules/strtol (Makefile.am): Likewise.
63481         * modules/strtoll (Makefile.am): Likewise.
63482         * modules/strtoul (Makefile.am): Likewise.
63483         * modules/strtoull (Makefile.am): Likewise.
63484         * modules/strtoumax (Makefile.am): Likewise.
63485         * modules/strverscmp (Makefile.am): Likewise.
63486         * modules/sys_socket (Makefile.am): Likewise.
63487         * modules/sys_stat (Makefile.am): Likewise.
63488         * modules/sysexits (Makefile.am): Likewise.
63489         * modules/time_r (Makefile.am): Likewise.
63490         * modules/timegm (Makefile.am): Likewise.
63491         * modules/timespec (Makefile.am): Likewise.
63492         * modules/tmpfile-safer (Makefile.am): Likewise.
63493         * modules/trim (Makefile.am): Likewise.
63494         * modules/unistd-safer (Makefile.am): Likewise.
63495         * modules/unlinkdir (Makefile.am): Likewise.
63496         * modules/unlocked-io (Makefile.am): Likewise.
63497         * modules/userspec (Makefile.am): Likewise.
63498         * modules/utime (Makefile.am): Likewise.
63499         * modules/utimecmp (Makefile.am): Likewise.
63500         * modules/utimens (Makefile.am): Likewise.
63501         * modules/vasnprintf (Makefile.am): Likewise.
63502         * modules/vasprintf (Makefile.am): Likewise.
63503         * modules/vsnprintf (Makefile.am): Likewise.
63504         * modules/xalloc (Makefile.am): Likewise.
63505         * modules/xgetcwd (Makefile.am): Likewise.
63506         * modules/xnanosleep (Makefile.am): Likewise.
63507         * modules/xreadlink (Makefile.am): Likewise.
63508         * modules/xstrtod (Makefile.am): Likewise.
63509         * modules/xstrtol (Makefile.am): Likewise.
63510         * modules/xstrtold (Makefile.am): Likewise.
63511         * modules/yesno (Makefile.am): Likewise.
63512         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63513
63514 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * modules/error (Makefile.am): Distribute files through
63517         EXTRA_DIST, not lib_SOURCES.
63518
63519 2006-10-12  Eric Blake  <ebb9@byu.net>
63520
63521         * modules/error (Makefile.am): Distribute files in /lib.
63522         * modules/obstack (Makefile.am): Likewise.
63523
63524 2006-10-12  Bruno Haible  <bruno@clisp.org>
63525
63526         * modules/acl (Makefile.am): Distribute all files in lib/ through
63527         EXTRA_DIST.
63528         * modules/arcfour (Makefile.am): Likewise.
63529         * modules/arctwo (Makefile.am): Likewise.
63530         * modules/argmatch (Makefile.am): Likewise.
63531         * modules/argz (Makefile.am): Likewise.
63532         * modules/atexit (Makefile.am): Likewise.
63533         * modules/backupfile (Makefile.am): Likewise.
63534         * modules/c-strtod (Makefile.am): Likewise.
63535         * modules/c-strtold (Makefile.am): Likewise.
63536         * modules/calloc (Makefile.am): Likewise.
63537         * modules/canon-host (Makefile.am): Likewise.
63538         * modules/canonicalize (Makefile.am): Likewise.
63539         * modules/chdir-long (Makefile.am): Likewise.
63540         * modules/chdir-safer (Makefile.am): Likewise.
63541         * modules/check-version (Makefile.am): Likewise.
63542         * modules/chown (Makefile.am): Likewise.
63543         * modules/cloexec (Makefile.am): Likewise.
63544         * modules/close-stream (Makefile.am): Likewise.
63545         * modules/closeout (Makefile.am): Likewise.
63546         * modules/crc (Makefile.am): Likewise.
63547         * modules/cycle-check (Makefile.am): Likewise.
63548         * modules/des (Makefile.am): Likewise.
63549         * modules/dirfd (Makefile.am): Likewise.
63550         * modules/dirname (Makefile.am): Likewise.
63551         * modules/dup2 (Makefile.am): Likewise.
63552         * modules/euidaccess (Makefile.am): Likewise.
63553         * modules/exclude (Makefile.am): Likewise.
63554         * modules/exitfail (Makefile.am): Likewise.
63555         * modules/fcntl-safer (Makefile.am): Likewise.
63556         * modules/file-type (Makefile.am): Likewise.
63557         * modules/fileblocks (Makefile.am): Likewise.
63558         * modules/filemode (Makefile.am): Likewise.
63559         * modules/filenamecat (Makefile.am): Likewise.
63560         * modules/fnmatch (Makefile.am): Likewise.
63561         * modules/fopen-safer (Makefile.am): Likewise.
63562         * modules/fpending (Makefile.am): Likewise.
63563         * modules/fprintftime (Makefile.am): Likewise.
63564         * modules/free (Makefile.am): Likewise.
63565         * modules/fsusage (Makefile.am): Likewise.
63566         * modules/ftruncate (Makefile.am): Likewise.
63567         * modules/fts (Makefile.am): Likewise.
63568         * modules/gc (Makefile.am): Likewise.
63569         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63570         * modules/getaddrinfo (Makefile.am): Likewise.
63571         * modules/getcwd (Makefile.am): Likewise.
63572         * modules/getdelim (Makefile.am): Likewise.
63573         * modules/getdomainname (Makefile.am): Likewise.
63574         * modules/getgroups (Makefile.am): Likewise.
63575         * modules/gethostname (Makefile.am): Likewise.
63576         * modules/gethrxtime (Makefile.am): Likewise.
63577         * modules/getline (Makefile.am): Likewise.
63578         * modules/getloadavg (Makefile.am): Likewise.
63579         * modules/getlogin_r (Makefile.am): Likewise.
63580         * modules/getopt (Makefile.am): Likewise.
63581         * modules/getpass (Makefile.am): Likewise.
63582         * modules/getpass-gnu (Makefile.am): Likewise.
63583         * modules/getsubopt (Makefile.am): Likewise.
63584         * modules/gettime (Makefile.am): Likewise.
63585         * modules/gettimeofday (Makefile.am): Likewise.
63586         * modules/getugroups (Makefile.am): Likewise.
63587         * modules/getusershell (Makefile.am): Likewise.
63588         * modules/glob (Makefile.am): Likewise.
63589         * modules/group-member (Makefile.am): Likewise.
63590         * modules/hard-locale (Makefile.am): Likewise.
63591         * modules/hash (Makefile.am): Likewise.
63592         * modules/hmac-md5 (Makefile.am): Likewise.
63593         * modules/hmac-sha1 (Makefile.am): Likewise.
63594         * modules/human (Makefile.am): Likewise.
63595         * modules/idcache (Makefile.am): Likewise.
63596         * modules/imaxabs (Makefile.am): Likewise.
63597         * modules/imaxdiv (Makefile.am): Likewise.
63598         * modules/inet_ntop (Makefile.am): Likewise.
63599         * modules/inet_pton (Makefile.am): Likewise.
63600         * modules/inttostr (Makefile.am): Likewise.
63601         * modules/isapipe (Makefile.am): Likewise.
63602         * modules/lchown (Makefile.am): Likewise.
63603         * modules/long-options (Makefile.am): Likewise.
63604         * modules/lstat (Makefile.am): Likewise.
63605         * modules/malloc (Makefile.am): Likewise.
63606         * modules/mathl (Makefile.am): Likewise.
63607         * modules/mbchar (Makefile.am): Likewise.
63608         * modules/md2 (Makefile.am): Likewise.
63609         * modules/md4 (Makefile.am): Likewise.
63610         * modules/md5 (Makefile.am): Likewise.
63611         * modules/memcasecmp (Makefile.am): Likewise.
63612         * modules/memchr (Makefile.am): Likewise.
63613         * modules/memcmp (Makefile.am): Likewise.
63614         * modules/memcoll (Makefile.am): Likewise.
63615         * modules/memcpy (Makefile.am): Likewise.
63616         * modules/memmem (Makefile.am): Likewise.
63617         * modules/memmove (Makefile.am): Likewise.
63618         * modules/mempcpy (Makefile.am): Likewise.
63619         * modules/memrchr (Makefile.am): Likewise.
63620         * modules/memset (Makefile.am): Likewise.
63621         * modules/memxor (Makefile.am): Likewise.
63622         * modules/mkancesdirs (Makefile.am): Likewise.
63623         * modules/mkdir (Makefile.am): Likewise.
63624         * modules/mkdir-p (Makefile.am): Likewise.
63625         * modules/mkdtemp (Makefile.am): Likewise.
63626         * modules/mkstemp (Makefile.am): Likewise.
63627         * modules/mktime (Makefile.am): Likewise.
63628         * modules/modechange (Makefile.am): Likewise.
63629         * modules/mountlist (Makefile.am): Likewise.
63630         * modules/nanosleep (Makefile.am): Likewise.
63631         * modules/openat (Makefile.am): Likewise.
63632         * modules/pagealign_alloc (Makefile.am): Likewise.
63633         * modules/physmem (Makefile.am): Likewise.
63634         * modules/poll (Makefile.am): Likewise.
63635         * modules/posixtm (Makefile.am): Likewise.
63636         * modules/posixver (Makefile.am): Likewise.
63637         * modules/putenv (Makefile.am): Likewise.
63638         * modules/quote (Makefile.am): Likewise.
63639         * modules/quotearg (Makefile.am): Likewise.
63640         * modules/raise (Makefile.am): Likewise.
63641         * modules/read-file (Makefile.am): Likewise.
63642         * modules/readline (Makefile.am): Likewise.
63643         * modules/readlink (Makefile.am): Likewise.
63644         * modules/readtokens (Makefile.am): Likewise.
63645         * modules/readutmp (Makefile.am): Likewise.
63646         * modules/realloc (Makefile.am): Likewise.
63647         * modules/regex (Makefile.am): Likewise.
63648         * modules/rename (Makefile.am): Likewise.
63649         * modules/rename-dest-slash (Makefile.am): Likewise.
63650         * modules/rijndael (Makefile.am): Likewise.
63651         * modules/rmdir (Makefile.am): Likewise.
63652         * modules/rpmatch (Makefile.am): Likewise.
63653         * modules/safe-read (Makefile.am): Likewise.
63654         * modules/safe-write (Makefile.am): Likewise.
63655         * modules/same (Makefile.am): Likewise.
63656         * modules/save-cwd (Makefile.am): Likewise.
63657         * modules/savedir (Makefile.am): Likewise.
63658         * modules/setenv (Makefile.am): Likewise.
63659         * modules/settime (Makefile.am): Likewise.
63660         * modules/sha1 (Makefile.am): Likewise.
63661         * modules/sig2str (Makefile.am): Likewise.
63662         * modules/snprintf (Makefile.am): Likewise.
63663         * modules/stdlib-safer (Makefile.am): Likewise.
63664         * modules/stpcpy (Makefile.am): Likewise.
63665         * modules/stpncpy (Makefile.am): Likewise.
63666         * modules/strcase (Makefile.am): Likewise.
63667         * modules/strcasestr (Makefile.am): Likewise.
63668         * modules/strchrnul (Makefile.am): Likewise.
63669         * modules/strcspn (Makefile.am): Likewise.
63670         * modules/strdup (Makefile.am): Likewise.
63671         * modules/strerror (Makefile.am): Likewise.
63672         * modules/strftime (Makefile.am): Likewise.
63673         * modules/strndup (Makefile.am): Likewise.
63674         * modules/strnlen (Makefile.am): Likewise.
63675         * modules/strpbrk (Makefile.am): Likewise.
63676         * modules/strsep (Makefile.am): Likewise.
63677         * modules/strstr (Makefile.am): Likewise.
63678         * modules/strtod (Makefile.am): Likewise.
63679         * modules/strtoimax (Makefile.am): Likewise.
63680         * modules/strtok_r (Makefile.am): Likewise.
63681         * modules/strtol (Makefile.am): Likewise.
63682         * modules/strtoll (Makefile.am): Likewise.
63683         * modules/strtoul (Makefile.am): Likewise.
63684         * modules/strtoull (Makefile.am): Likewise.
63685         * modules/strtoumax (Makefile.am): Likewise.
63686         * modules/strverscmp (Makefile.am): Likewise.
63687         * modules/time_r (Makefile.am): Likewise.
63688         * modules/timegm (Makefile.am): Likewise.
63689         * modules/tmpfile-safer (Makefile.am): Likewise.
63690         * modules/unistd-safer (Makefile.am): Likewise.
63691         * modules/unlinkdir (Makefile.am): Likewise.
63692         * modules/userspec (Makefile.am): Likewise.
63693         * modules/utime (Makefile.am): Likewise.
63694         * modules/utimecmp (Makefile.am): Likewise.
63695         * modules/utimens (Makefile.am): Likewise.
63696         * modules/vasnprintf (Makefile.am): Likewise.
63697         * modules/vasprintf (Makefile.am): Likewise.
63698         * modules/vsnprintf (Makefile.am): Likewise.
63699         * modules/xalloc (Makefile.am): Likewise.
63700         * modules/xgetcwd (Makefile.am): Likewise.
63701         * modules/xnanosleep (Makefile.am): Likewise.
63702         * modules/xreadlink (Makefile.am): Likewise.
63703         * modules/xstrtod (Makefile.am): Likewise.
63704         * modules/xstrtol (Makefile.am): Likewise.
63705         * modules/xstrtold (Makefile.am): Likewise.
63706         * modules/yesno (Makefile.am): Likewise.
63707
63708 2006-10-12  Jim Meyering  <jim@meyering.net>
63709
63710         * m4/getloadavg.m4: Revert the change below.
63711
63712         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63713         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63714         fail with a symlink, which is what coreutils' ./bootstrap now
63715         creates by default.
63716
63717 2006-10-12  Bruno Haible  <bruno@clisp.org>
63718
63719         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63720         mingw.
63721         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63722         MSVC and mingw explicitly.
63723
63724 2006-10-11  Simon Josefsson  <jas@extundo.com>
63725             Bruno Haible  <bruno@clisp.org>
63726
63727         Add support for multiple gnulib-tool invocations in the scope of a
63728         single configure.ac file.
63729         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63730         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63731         with the same contents as the _LIBADD variable.
63732         (func_emit_initmacro_start, func_emit_initmacro_end,
63733         func_emit_initmacro_done): New functions.
63734         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63735         gl_LIBOBJS and gl_LTLIBOBJS.
63736
63737 2006-10-11  Bruno Haible  <bruno@clisp.org>
63738
63739         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63740         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63741         autoreconf. Instead, invoke autopoint explicitly but move back the
63742         *.m4 files from gnulib.
63743
63744 2006-10-11  Bruno Haible  <bruno@clisp.org>
63745
63746         * gnulib-tool (func_usage): Make module names after --create-testdir
63747         optional.
63748         (func_create_testdir): If no module was specified, use nearly all
63749         modules.
63750
63751 2006-10-12  Jim Meyering  <jim@meyering.net>
63752
63753         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63754         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63755         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63756         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63757         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63758         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63759         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63760         (fts_set_stat_required): New function.
63761         (fts_open): Defer the calls to fts_stat, if possible or requested.
63762         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63763         into fts_stat itself.
63764         (fts_read): Perform any required (deferred) fts_stat call.
63765         (fts_build): Likewise, for the directory we're about to open and read.
63766         In the readdir loop, carefully decide whether each entry will require
63767         an eventual call to fts_stat, using dirent.d_type info if available.
63768         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63769         a command line argument into this function.  Update all callers.
63770         Map a return value of FTS_DOT to FTS_D for a command line argument.
63771         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63772         Thanks to Miklos Szeredi for his tenacity and for the initial
63773         bug report about "find" failing on a FUSE-based file system.
63774
63775         * lib/fts.c (fts_open): Use consistent indentation.
63776
63777 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63778
63779         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63780         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63781         reported by Jim Meyering.  All uses of cache variables renamed
63782         to match Autoconf's.
63783         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63784         the other one.
63785
63786         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63787         Fix misspelling in diagnostic.
63788
63789 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63790
63791         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63792         defined.  Problem reported by Matthew Woehlke.
63793
63794         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63795         Add support for Tandem NonStop R series.
63796         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63797         Use new macro.
63798
63799         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63800         (has_trailing_slash): Omit size arg; all callers changed.
63801         Omit 'inline', since it doesn't help performance and we'd
63802         need to configure it.
63803         Don't count //, ///, etc. as having a trailing slash.
63804         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63805         (rpl_rename_dest_slash): On failure, use rename's errno rather
63806         than (in some cases) an incorrect or junk errno.
63807         Simplify code by removing need to compute length; this does
63808         cause it to make two passes instead of one over the file name,
63809         but it's worth it.
63810
63811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63812         change, since Autoconf's version may no longer be appropriate now
63813         that we are using CVS Autoconf's version.  Add support for Tandem.
63814
63815 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63816             Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63819         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63820         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63821         gl_AC_TYPE_LONG_LONG.
63822
63823         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63824         instead of HAVE_LONG_LONG.
63825         * lib/printf-args.c (printf_fetchargs): Likewise.
63826         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63827         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63828         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63829         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63830         gl_AC_TYPE_LONG_LONG.
63831
63832 2006-10-11  Bruno Haible  <bruno@clisp.org>
63833
63834         * m4/longlong.m4: Add comments.
63835         * m4/ulonglong.m4: Likewise.
63836
63837 2006-10-10  Bruno Haible  <bruno@clisp.org>
63838
63839         Make it possible to #define stpcpy, strdup to aliases.
63840         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63841         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63842
63843 2006-10-10  Bruno Haible  <bruno@clisp.org>
63844
63845         Make it possible to #define gcd to an alias.
63846         * lib/gcd.c: Include config.h.
63847
63848 2006-10-10  Bruno Haible  <bruno@clisp.org>
63849
63850         Make it possible to #define c_isascii to an alias.
63851         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63852         defined. Undefine the macros before defining them, to avoid gcc
63853         warnings.
63854         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63855         define NO_C_CTYPE_MACROS early.
63856
63857 2006-10-10  Bruno Haible  <bruno@clisp.org>
63858
63859         Make it possible to #define set_program_name to an alias.
63860         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63861         ENABLE_RELOCATABLE early.
63862
63863 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63864
63865         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63866         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63867         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63868         More generally, don't assume that 64-bit signed int is available
63869         if unsigned int is, and vice versa.
63870         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63871         unsigned symbols, not on their signed counterparts.
63872         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63873         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63874         (UINT64_C, UINTMAX_C):
63875         Likewise.
63876         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63877         unsigned counterparts.
63878         (Have_long_long, Unsigned): New macros.
63879         (Int): Renamed from INT.
63880         (strtoimax): Use the new macros.
63881         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63882         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63883         * modules/inttypes (inttypes.h): Substitute
63884         HAVE_UNSIGNED_LONG_LONG_INT.
63885         * modules/stdint (stdint.h): Likewise.
63886         (Files): Add m4/ulonglong.m4.
63887
63888 2006-10-10  Bruno Haible  <bruno@clisp.org>
63889
63890         Fix a gcc -Wshadow warning.
63891         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63892         to 'bucket'.
63893         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63894         gl_linked_indexof_from_to): Likewise.
63895         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63896         Likewise.
63897         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63898         Likewise.
63899         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63900         Reported by Eric Blake.
63901
63902 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63905         for NetBSD.  Problem reported by Bruno Haible.
63906
63907 2006-10-09  Jim Meyering  <jim@meyering.net>
63908
63909         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63910         Patch from Bruno Haible.
63911
63912 2006-10-09  Jim Meyering  <jim@meyering.net>
63913
63914         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63915         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63916         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63917
63918 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63919
63920         Don't include <config.h> twice; this doesn't work in some cases,
63921         e.g., when config.h has "#define intmax_t long long int" and
63922         we include <config.h>, <inttypes.h>, <config.h> in that order.
63923         Problem reported by Matthew Woehlke in:
63924         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63925         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63926         * lib/fts-cycle.c: Don't include config.h.
63927         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63928         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63929         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63930         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63931         inttypes.h.
63932         * lib/xstrtoumax.c: Likewise.
63933         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63934         __strtol and the like, so that this module is more like its siblings.
63935         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63936         Remove; no longer needed now that we assume gnulib inttypes.h.
63937
63938 2006-10-08  Bruno Haible  <bruno@clisp.org>
63939
63940         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63941         option.
63942
63943 2006-10-07  Jim Meyering  <jim@meyering.net>
63944
63945         * modules/inttypes (inttypes.h): Revert what seems to have been
63946         an inadvertent part of today's change: use "|", not "/" in the
63947         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63948
63949 2006-10-07  Bruno Haible  <bruno@clisp.org>
63950
63951         * modules/sublist: New file.
63952
63953 2006-10-07  Bruno Haible  <bruno@clisp.org>
63954
63955         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63956         * modules/argz (argz.h): Likewise.
63957         * modules/arpa_inet (arpa/inet.h): Likewise.
63958         * modules/byteswap (byteswap.h): Likewise.
63959         * modules/configmake (configmake.h): Likewise.
63960         * modules/fcntl (fcntl.h): Likewise.
63961         * modules/fnmatch (fnmatch.h): Likewise.
63962         * modules/getopt (getopt.h): Likewise.
63963         * modules/glob (glob.h): Likewise.
63964         * modules/inttypes (inttypes.h): Likewise.
63965         * modules/netinet_in (netinet/in.h): Likewise.
63966         * modules/poll (poll.h): Likewise.
63967         * modules/stdbool (stdbool.h): Likewise.
63968         * modules/stdint (stdint.h): Likewise.
63969         * modules/sys_select (sys/select.h): Likewise.
63970         * modules/sys_socket (sys/socket.h): Likewise.
63971         * modules/sys_stat (sys/stat.h): Likewise.
63972         * modules/sysexits (sysexits.h): Likewise.
63973         * modules/unistd (unistd.h): Likewise.
63974         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63975         Add a "DO NOT EDIT" comment to the generated file.
63976         (func_import): Likewise for gnulib-comp.m4.
63977
63978 2006-10-07  Bruno Haible  <bruno@clisp.org>
63979
63980         * lib/gl_sublist.h: New file.
63981         * lib/gl_sublist.c: New file.
63982
63983 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63984
63985         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63986         name (relative to the original working directory) and the file
63987         name component (relative to the temporary working directory).  All
63988         callers changed.
63989         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63990         * lib/mkdir-p.c (make_dir_parents): Likewise.
63991         * lib/mkdir-p.h (make_dir_parents): Likewise.
63992
63993 2006-10-06  Eric Blake  <ebb9@byu.net>
63994
63995         Define several macros for use by the clean-temp module.
63996         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63997         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63998         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63999
64000         * lib/clean-temp.h (close_stream_temp): New declaration.
64001         * lib/clean-temp.c (includes): Pull in headers according to what
64002         other modules are in use.
64003         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64004
64005 2006-10-06  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64008         instead of fopen, fwriteerror.
64009
64010 2006-10-06  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64013         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64014         int.
64015         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64016         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64017         Return an error indicator.
64018         Suggested by Eric Blake.
64019
64020 2006-10-06  Bruno Haible  <bruno@clisp.org>
64021
64022         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64023         Reported by Eric Blake.
64024
64025 2006-10-06  Bruno Haible  <bruno@clisp.org>
64026
64027         * modules/closeout (Description): Mention stderr too.
64028
64029 2006-10-06  Bruno Haible  <bruno@clisp.org>
64030         and Paul Eggert  <eggert@cs.ucla.edu>
64031
64032         * lib/closeout.c (close_stdout): Also close stderr.
64033         * lib/closeout.h: Update comment.
64034
64035 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64038         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64039         * lib/dirchownmod.c: Include lchown.h.
64040         * lib/lchown.c: Don't include files that lchown.h now includes.
64041         Don't declare chown, since lchown.h now does that.
64042         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64043         (lchown): Define to rpl_chown if lchown is declared but
64044         does not exist.  Declare using a prototype if lchown is not
64045         declared.  Add a copyright notice.
64046         * lib/mkstemp.h: Include <unistd.h>.
64047         * lib/openat.c: Include lchown.h.
64048
64049         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64050         we now test for that separately.
64051         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64052         rather than O_NOFOLLOW, when testing whether it's possible to
64053         avoid a race condition reliably.
64054         * lib/savewd.c (savewd_chdir): Likewise.
64055
64056         Remove macros that are no longer needed now that stdint.h is
64057         reliable.
64058         * lib/fsusage.c (UINTMAX_MAX): Remove.
64059         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64060         * lib/utimecmp.c (SIZE_MAX): Remove.
64061
64062         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64063
64064         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64065         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64066         O_NOATIME works.
64067
64068 2006-10-05  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/gl_list.h (gl_sortedlist_search_from_to,
64071         gl_sortedlist_indexof_from_to): New declarations.
64072         (gl_list_implementation): New fields sortedlist_search_from_to,
64073         sortedlist_indexof_from_to.
64074         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64075         inline functions.
64076         * lib/gl_list.c (gl_sortedlist_search_from_to,
64077         gl_sortedlist_indexof_from_to): New functions.
64078         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64079         function.
64080         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64081         (gl_array_sortedlist_search_from_to): New function.
64082         (gl_array_list_implementation): Update.
64083         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64084         function.
64085         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64086         (gl_carray_sortedlist_search_from_to): New function.
64087         (gl_carray_list_implementation): Update.
64088         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64089         gl_linked_sortedlist_indexof_from_to): New functions.
64090         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64091         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64092         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64093         gl_tree_sortedlist_indexof_from_to): New functions.
64094         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64095         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64096         Update.
64097         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64098         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64099         Update.
64100
64101 2006-10-05  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64104         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64105         (struct gl_list_implementation): Add fields search_from_to,
64106         indexof_from_to. Remove fields search, indexof.
64107         (gl_list_search): Use the search_from_to method.
64108         (gl_list_search_from, gl_list_search_from_to): New functions.
64109         (gl_list_indexof): Use the indexof_from_to method.
64110         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64111         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64112         (gl_list_search_from, gl_list_search_from_to): New functions.
64113         (gl_list_indexof): Use the indexof_from_to method.
64114         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64115         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64116         gl_array_indexof. Add start_index, end_index arguments.
64117         (gl_array_search_from_to): Renamed from gl_array_search. Add
64118         start_index, end_index arguments.
64119         (gl_array_remove, gl_array_list_implementation): Update.
64120         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64121         gl_carray_indexof. Add start_index, end_index arguments.
64122         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64123         start_index, end_index arguments.
64124         (gl_carray_remove, gl_carray_list_implementation): Update.
64125         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64126         gl_linked_search. Add start_index, end_index arguments.
64127         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64128         start_index, end_index arguments.
64129         (gl_linked_remove): Update.
64130         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64131         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64132         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64133         field to 'size_t'.
64134         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64135         gl_tree_search. Add start_index, end_index arguments.
64136         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64137         start_index, end_index arguments.
64138         (gl_tree_remove): Update.
64139         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64140         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64141         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64142         function.
64143         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64144         gl_tree_search. Add start_index, end_index arguments.
64145         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64146         start_index, end_index arguments.
64147         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64148         Update.
64149         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64150
64151 2006-10-05  Bruno Haible  <bruno@clisp.org>
64152
64153         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64154
64155         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64156         fwriteerror_temp): New declarations.
64157         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64158         (descriptors): New variable.
64159         (cleanup): First, close the descriptors.
64160         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64161         fclose_temp, fwriteerror_temp): New functions.
64162
64163 2006-10-04  Jim Meyering  <jim@meyering.net>
64164
64165         * lib/fts.c (fts_open): Tiny comment change.
64166
64167 2006-10-04  Bruno Haible  <bruno@clisp.org>
64168
64169         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64170         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64171         gl_LOCK_BODY.
64172         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64173         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64174         gl_LOCK_EARLY_BODY.
64175         (gl_LOCK): Require gl_LOCK_BODY.
64176
64177 2006-10-04  Bruno Haible  <bruno@clisp.org>
64178
64179         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64180         (gl_oset_search_atleast): New declaration.
64181         (struct gl_oset_implementation): Add field 'search_atleast'.
64182         (gl_oset_search_atleast): New inline function.
64183         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64184         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64185         (gl_array_oset_implementation): Update.
64186         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64187         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64188         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64189
64190 2006-10-04  Bruno Haible  <bruno@clisp.org>
64191
64192         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64193
64194 2006-10-03  Bruno Haible  <bruno@clisp.org>
64195
64196         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64197         from gl_avltreehash_list_implementation.
64198
64199 2006-10-03  Bruno Haible  <bruno@clisp.org>
64200
64201         * lib/gl_oset.c (gl_oset_add): Fix return type.
64202
64203 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64204
64205         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64206
64207 2006-10-02  Eric Blake  <ebb9@byu.net>
64208
64209         * modules/strnlen (Depends-on): Add extensions.
64210
64211 2006-10-02  Eric Blake  <ebb9@byu.net>
64212
64213         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64214         definition in 2.60+.
64215
64216 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64217
64218         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64219         checks.
64220
64221 2006-10-02  Bruno Haible  <bruno@clisp.org>
64222
64223         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64224         to the AUTOMAKE_OPTIONS.
64225         Reported by Jim Meyering.
64226
64227 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         Work around bug in Solaris 10 /proc file system:
64230         /proc/self/fd/NNN/.. isn't the parent directory of
64231         the directory whose file descriptor is NNN.  This needs to
64232         be worked around at run time, not compile time, since a
64233         program might be built on Solaris 8, where things work, and
64234         run on Solaris 10.
64235         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64236         to use the following interface instead:
64237         (OPENAT_BUFFER_SIZE): New macro.
64238         (openat_proc_name): New function.
64239         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64240         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64241         Likewise.
64242         * lib/openat-proc.c: New file.
64243         * modules/openat (Files): Add lib/openat-proc.c.
64244         (Depends-on): Add same-inode, stdbool.
64245         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64246
64247 2006-09-29  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64250         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64251         argument. Set stdout_closed before testing for ferror, not after.
64252         (fwriteerror, fwriteerror_no_ebadf): New functions.
64253
64254 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64255
64256         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64257
64258 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64259
64260         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64261         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64262
64263 2006-09-28  Jim Meyering  <jim@meyering.net>
64264
64265         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64266         Include <unistd.h>.
64267
64268 2006-09-28  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64271         * modules/linkedhash-list (Depends-on): Likewise.
64272         * modules/rbtreehash-list (Depends-on): Likewise.
64273
64274 2006-09-28  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/strndup.h: Simplify the redefinition of strndup.
64277         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64278         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64279
64280 2006-09-28  Bruno Haible  <bruno@clisp.org>
64281
64282         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64283         * lib/gl_linkedhash_list.c: Likewise.
64284         * lib/gl_rbtreehash_list.c: Likewise.
64285
64286 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64287
64288         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64289         getaddrinfo.
64290
64291         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64292         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64293         it causes <stdio_ext.h> to cause a compile-time error.
64294         Problem reported by Nelson H. F. Beebe.
64295         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64296         of HAVE_DECL___PENDING.
64297
64298         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64299         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64300         declaration.
64301
64302 2006-09-27  Jim Meyering  <jim@meyering.net>
64303
64304         This file could end up with a definition for a function
64305         named __strndup, rather than rpl_strndup on a system with
64306         incomplete weak_alias support.
64307         * lib/strndup.c (strndup): Rename from __strndup.
64308         Remove #defines that used to map __strndup to strndup.
64309         Don't use K&R prototypes.
64310         Remove LIBC-related code, since this file is not sync'd with glibc.
64311         * lib/strndup.h: Revamp, accordingly.
64312         * m4/strndup.m4: Modernize.
64313
64314 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64315
64316         * modules/savewd (Depends-on): Add 'raise'.
64317         * lib/savewd.c: Include <signal.h>, for 'raise'.
64318
64319 2006-09-26  Jim Meyering  <jim@meyering.net>
64320
64321         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64322         when we detect Darwin 8.7.0's acl_get_file bug.
64323         Rearrange to perform the new (below) run-test while $LIBS
64324         contains any acl-related library.  Set USE_ACL at the end.
64325         (gl_ACL_GET_FILE): New function.
64326
64327 2006-09-26  Eric Blake  <ebb9@byu.net>
64328
64329         * lib/verror.c: Include <config.h> unconditionally.
64330
64331 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64332
64333         * modules/clock-time (Maintainer): Add self.
64334         * modules/getlogin_r (Depends-on): Add extensions.
64335
64336 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64337
64338         * modules/clock-time: New module.
64339         * modules/nanosleep (Depends-on): Add clock-time.
64340         * modules/gethrxtime (Depends-on): Likewise.
64341         * modules/gettime (Depends-on): Likewise.
64342         * modules/settime (Depends-on): Likewise.
64343
64344         * modules/fts-lgpl: Depend on openat.
64345         * modules/mkancesdirs: Depend on savewd.
64346         * modules/mkdir-p: Likewise.
64347
64348 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64349
64350         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64351
64352         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64353         `gl_have_arbitrary_file_name_length_limit' to
64354         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64355         actually works between configure runs.
64356
64357 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64358             Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64361
64362 2006-09-25  Jim Meyering  <jim@meyering.net>
64363
64364         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64365         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64366
64367 2006-09-25  Eric Blake  <ebb9@byu.net>
64368
64369         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64370         exec's in 2006-09-18 patch when shuffling fds.
64371
64372 2006-09-25  Bruno Haible  <bruno@clisp.org>
64373
64374         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64375         Reported by Jim Meyering.
64376
64377 2006-09-24  Jim Meyering  <jim@meyering.net>
64378
64379         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64380         compare a pointer against a literal "0".  That caused failures with
64381         at least HP-UX's hpcc.
64382
64383 2006-09-22  Simon Josefsson  <jas@extundo.com>
64384
64385         * modules/gc-sha1:
64386         * modules/gc-md4:
64387         * modules/gc-hmac-sha1:
64388         * modules/gc-hmac-md5:
64389         * modules/gc-des:
64390         * modules/gc-arcfour: Distribute more files.
64391
64392 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64393
64394         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64395         (gl_linked_iterator_from_to): Initialize struct completely.
64396         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64397         (gl_tree_iterator_from_to): Likewise
64398         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64399         * lib/gl_array_list.c [lint] (gl_array_iterator)
64400         (gl_array_iterator_from_to): Likewise.
64401         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64402         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64403         (gl_carray_iterator_from_to): Likewise.
64404
64405         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64406         * lib/md4.c (md4_process_block): Remove unused variable.
64407         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64408         parentheses for clarity.
64409
64410 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64411
64412         * modules/bison-i18n (Depends-on): Add gettext.
64413
64414 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64415
64416         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64417         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64418         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64419         also add missing comma that caused broken test.
64420         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64421         stdlib.h, for `abort'.
64422         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64423         variables.
64424         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64425         include unistd.h if present, for `rmdir'.
64426         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64427         variables.
64428         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64429         in the process include standard headers for prototypes.
64430         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64431         gets declared on GNU/Linux.
64432         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64433         unistd.h, for `rmdir'.
64434         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64435
64436         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64437         always true.
64438         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64439
64440         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64441
64442 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64443
64444         * gnulib-tool (func_version): Create output all at once.  This
64445         may help avoid triggering unnecessary SIGPIPEs, and at any
64446         rate it doesn't hurt.
64447
64448 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64449             Bruno Haible  <bruno@clisp.org>
64450
64451         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64452         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64453         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64454
64455         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64456         (gl_FUNC_VASPRINTF): Invoke it.
64457
64458 2006-09-22  Bruno Haible  <bruno@clisp.org>
64459
64460         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64461         getloadavg.c as first argument.
64462
64463 2006-09-22  Bruno Haible  <bruno@clisp.org>
64464
64465         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64466         at the beginning of the gl_INIT macro.
64467         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64468         gl_GETLOADAVG.
64469
64470 2006-09-22  Bruno Haible  <bruno@clisp.org>
64471
64472         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64473         module.
64474         Suggested by Ralf Wildenhues.
64475
64476 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         Import this patch from libc:
64479
64480         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64481
64482         * lib/regex_internal.c (re_string_reconstruct): Handle
64483         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64484         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64485         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64486         re_string_context_at.
64487
64488         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64489         now requires it.
64490         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64491         gl_REGEX now does it for us.
64492         (gl_REGEX): Add test taken from
64493         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64494
64495         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64496         Check that large offsets work.  Modernize Autoconf usages.
64497         Prefer "yes" to mean a good thing rather than a bad.
64498         Don't put "#define mkstemp" in config.h, as this might interfere
64499         with standard system headers that "#define mkstemp mkstemp64".
64500
64501         * modules/mkstemp (Depends-on): Add extensions, so that
64502         mkstemp is visible on some platforms.
64503         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64504         (Include): Change to "mkstemp.h" from <stdlib.h>.
64505         (Files): Add mkstemp.h.
64506
64507         * lib/mkstemp.h: New file, since some standard headers
64508         #define mkstemp.
64509         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64510         Include "mkstemp.h".
64511         Make the _LIBC code resemble glibc original more,
64512         e.g., use K&R style.
64513         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64514         (mkstemp): Remove, since mkstemp.h does this for us.
64515         * lib/stdlib--.h: Include mkstemp.h.
64516
64517         Import this patch from libc:
64518
64519         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64520
64521         * lib/tempname.c (__gen_tempname): Change attempts_min
64522         into a macro.  Use preprocessor to decide how to initialize
64523         attempts [Coverity CID 67].
64524
64525 2006-09-20  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/mkdtemp.c: Import from libc.
64528         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64529                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64530                 attempts_min into a macro.  Use preprocessor to decide how to
64531                 initialize attempts [Coverity CID 67].
64532         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64533                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64534                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64535
64536 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64537
64538         * gnulib-tool (func_exit): New function, to allow to pass the
64539         exit status portably through the trap.  Use everywhere.
64540         (--help, --version): Signal a write error.
64541         (trap): catch SIGPIPE, for write errors.
64542         Exit at the end of the trap, with the correct exit status.
64543
64544 2006-09-19  Karl Berry  <karl@gnu.org>
64545
64546         * doc/gnulib.texi: note about the license texinfo files.
64547
64548 2006-09-19  Eric Blake  <ebb9@byu.net>
64549
64550         * gnulib-tool: Avoid space-tab.
64551
64552 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64555         that prevented coreutils 6.1 from building.  Problem reported
64556         by Petter Reinholdtsen.
64557
64558 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64559
64560         * gnulib-tool (avoidlist): Fix typo that broke options like
64561         --avoid=lock that are used by coreutils bootstrap.
64562
64563 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64564
64565         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64566         more systematically.
64567
64568 2006-09-18  Jim Meyering  <jim@meyering.net>
64569
64570         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64571
64572 2006-09-18  Bruno Haible  <bruno@clisp.org>
64573
64574         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64575
64576 2006-09-18  Bruno Haible  <bruno@clisp.org>
64577
64578         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64579         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64580         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64581         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64582         * m4/gettext.m4: Require autoconf >= 2.52.
64583         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64584         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64585         of gl_cv_header_inttypes_h.
64586
64587 2006-09-18  Bruno Haible  <bruno@clisp.org>
64588
64589         * lib/javaversion.c: Include configmake.h.
64590
64591 2006-09-18  Bruno Haible  <bruno@clisp.org>
64592
64593         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64594         avoid that the while loops be executed in a subshell.
64595
64596 2006-09-18  Bruno Haible  <bruno@clisp.org>
64597
64598         * MODULES.html.sh (func_module): Break long lines.
64599         Suggested by Bruce Korb <bkorb@gnu.org>.
64600
64601 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64602
64603         Speed up by a factor of 1.12.
64604         * gnulib-tool (nl): New variable.
64605         (func_import): Rewrite include directive extraction to only read each
64606         directive once.
64607
64608 2006-09-17  Bruno Haible  <bruno@clisp.org>
64609
64610         * modules/javaversion (Makefile.am): Remove DEFS setting.
64611         (Depends-on): Add configmake, for PKGDATADIR definition.
64612
64613 2006-09-17  Bruno Haible  <bruno@clisp.org>
64614
64615         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64616
64617 2006-09-17  Bruno Haible  <bruno@clisp.org>
64618
64619         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64620         (func_modules_transitive_closure, func_modules_add_dummy,
64621         func_modules_to_filelist, func_import, func_create_testdir,
64622         func_create_megatestdir, ...): Use it wherever possible.
64623         Suggested by Ralf Wildenhues.
64624
64625 2006-09-16  Karl Berry  <karl@gnu.org>
64626
64627         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64628         to avoid sectioning errors.
64629         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64630         [ifinfo]: blank line after @center-ed titles.
64631         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64632         Spell FSF address consistently with others.
64633         (These changes approved by rms.)
64634
64635 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64636
64637         Speed up by a factor of 1.61.
64638         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64639         already checked module names again.
64640
64641 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64642
64643         Speed up by a factor of 1.13.
64644         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64645         for new_files, and the input to func_add_or_update.
64646
64647 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64648
64649         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64650         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64651
64652 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * modules/mkancesdirs (Depends-on): Add fcntl.
64655         * modules/savewd: New file.
64656         * MODULES.html.sh (File system functions): Add savewd.
64657
64658         * modules/configmake (Makefile.am): Add support for the
64659         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64660
64661 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         * m4/savewd.m4: New file.
64664
64665 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64668         (dirchownmod): New arg FD.  All callers changed.
64669         Use FD rather than opening the directory ourself, as opening is
64670         now the caller's responsibility.
64671         * lib/dirchownmod.h: Likewise.
64672         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64673         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64674         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64675         (test_dir): Remove.
64676         (mkancesdirs): Return length of prefix of FILE that has already
64677         been made, or -2 if there is a child doing the work.  Redo
64678         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64679         ".", and treat ".." specially since it might stray back into
64680         already-created areas.  Use a subprocess if necessary.  New arg
64681         WD; all users changed.  MAKE_DIR function should now return 1
64682         if it creates a directory that is not readable.  Return -2 if
64683         a child process is spun off.
64684         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64685         Adjust signature to match code.
64686         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64687         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64688         all users changed.
64689         * lib/savewd.c, lib/savewd.h: New files.
64690
64691 2006-09-15  Jim Meyering  <jim@meyering.net>
64692
64693         * modules/rename-dest-slash: New module.
64694         * MODULES.html.sh (posix_compat): Add it here.
64695
64696         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64697
64698 2006-09-15  Jim Meyering  <jim@meyering.net>
64699
64700         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64701         file.
64702
64703         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64704
64705 2006-09-15  Jim Meyering  <jim@meyering.net>
64706
64707         * lib/rename-dest-slash.c (has_trailing_slash): Use
64708         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64709         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64710         test before testing whether SRC is a directory.
64711         Suggestions from Bruno Haible.
64712
64713         Avoid a warning about an unused variable.
64714         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64715         into the #ifdef block where it's used.
64716
64717         * lib/rename-dest-slash.c: New file.
64718
64719 2006-09-14  Bruno Haible  <bruno@clisp.org>
64720
64721         * lib/allocsa.c: Include <config.h> unconditionally.
64722         * lib/asnprintf.c: Likewise.
64723         * lib/asprintf.c: Likewise.
64724         * lib/c-strcasecmp.c: Likewise.
64725         * lib/c-strcasestr.c: Likewise.
64726         * lib/c-strncasecmp.c: Likewise.
64727         * lib/c-strstr.c: Likewise.
64728         * lib/classpath.c: Likewise.
64729         * lib/clean-temp.c: Likewise.
64730         * lib/concatpath.c: Likewise.
64731         * lib/copy-file.c: Likewise.
64732         * lib/csharpcomp.c: Likewise.
64733         * lib/csharpexec.c: Likewise.
64734         * lib/execute.c: Likewise.
64735         * lib/fatal-signal.c: Likewise.
64736         * lib/findprog.c: Likewise.
64737         * lib/fwriteerror.c: Likewise.
64738         * lib/gl_array_list.c: Likewise.
64739         * lib/gl_array_oset.c: Likewise.
64740         * lib/gl_avltree_list.c: Likewise.
64741         * lib/gl_avltree_oset.c: Likewise.
64742         * lib/gl_avltreehash_list.c: Likewise.
64743         * lib/gl_carray_list.c: Likewise.
64744         * lib/gl_linked_list.c: Likewise.
64745         * lib/gl_linkedhash_list.c: Likewise.
64746         * lib/gl_list.c: Likewise.
64747         * lib/gl_oset.c: Likewise.
64748         * lib/gl_rbtree_list.c: Likewise.
64749         * lib/gl_rbtree_oset.c: Likewise.
64750         * lib/gl_rbtreehash_list.c: Likewise.
64751         * lib/imaxabs.c: Likewise.
64752         * lib/imaxdiv.c: Likewise.
64753         * lib/javacomp.c: Likewise.
64754         * lib/javaexec.c: Likewise.
64755         * lib/javaversion.c: Likewise.
64756         * lib/linebreak.c: Likewise.
64757         * lib/localcharset.c: Likewise.
64758         * lib/lock.c: Likewise.
64759         * lib/mbchar.c: Likewise.
64760         * lib/mbswidth.c: Likewise.
64761         * lib/mkdtemp.c: Likewise.
64762         * lib/pipe.c: Likewise.
64763         * lib/printf-args.c: Likewise.
64764         * lib/printf-parse.c: Likewise.
64765         * lib/progname.c: Likewise.
64766         * lib/progreloc.c: Likewise.
64767         * lib/readlink.c: Likewise.
64768         * lib/sh-quote.c: Likewise.
64769         * lib/stpcpy.c: Likewise.
64770         * lib/stpncpy.c: Likewise.
64771         * lib/strcasecmp.c: Likewise.
64772         * lib/strcasestr.c: Likewise.
64773         * lib/strcspn.c: Likewise.
64774         * lib/striconv.c: Likewise.
64775         * lib/strncasecmp.c: Likewise.
64776         * lib/strnlen1.c: Likewise.
64777         * lib/strstr.c: Likewise.
64778         * lib/strtok_r.c: Likewise.
64779         * lib/tls.c: Likewise.
64780         * lib/tmpdir.c: Likewise.
64781         * lib/unicodeio.c: Likewise.
64782         * lib/unsetenv.c: Likewise.
64783         * lib/vasnprintf.c: Likewise.
64784         * lib/vasprintf.c: Likewise.
64785         * lib/wait-process.c: Likewise.
64786         * lib/xallocsa.c: Likewise.
64787         * lib/xsetenv.c: Likewise.
64788         * lib/xstriconv.c: Likewise.
64789
64790 2006-09-13  Simon Josefsson  <jas@extundo.com>
64791
64792         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64793         that internally, suggested by Ralf Wildenhues
64794         <Ralf.Wildenhues@gmx.de>.
64795
64796 2006-09-13  Simon Josefsson  <jas@extundo.com>
64797
64798         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64799         @LIBOBJS@.
64800         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64801
64802 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64805         longer worry about uses that don't define HAVE_CONFIG_H.
64806         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64807         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64808         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64809         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64810         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64811         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64812         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64813         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64814         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64815         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64816         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64817         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64818         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64819         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64820         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64821         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64822         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64823         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64824         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64825         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64826         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64827         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64828         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64829         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64830         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64831         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64832         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64833         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64834         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64835         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64836         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64837         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64838         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64839         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64840         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64841         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64842         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64843         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64844         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64845         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64846         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64847         Likewise.
64848
64849 2006-09-13  Eric Blake  <ebb9@byu.net>
64850
64851         * lib/getopt.c: Fix typo in last commit.
64852
64853 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64854
64855         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64856         dgettext.
64857
64858 2006-09-12  Jim Meyering  <jim@meyering.net>
64859
64860         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64861         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64862         Reported by Nelson H. F. Beebe.
64863
64864 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64865
64866         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64867         program_invocation_name and program_invocation_short_name are
64868         initialized.
64869         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64870         and program_invocation_short_name to argp.h, so they are visible
64871         to user programs.
64872         * lib/argp.h: Likewise
64873
64874 2006-09-10  Bruno Haible  <bruno@clisp.org>
64875
64876         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64877         m4/inttypes_h.m4, m4/uintmax_t.m4.
64878
64879 2006-09-10  Bruno Haible  <bruno@clisp.org>
64880
64881         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64882         gl_AC_TYPE_UINTMAX_T.
64883
64884 2006-09-10  Bruno Haible  <bruno@clisp.org>
64885
64886         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64887
64888 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64889
64890         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64891         convention.  Text proposed by Bruno Haible.
64892         (struct argp_option): Document the use of N_() wrappers.
64893
64894         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64895         '\v', and translate the two parts separately, instead of feeding
64896         the whole string to gettext.  This allows to exclude
64897         '\v' from the strings visible to the translator by writing doc
64898         strings as N_("..") "\v" N_("..").
64899
64900 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64901
64902         * config/srclist.txt: Undo latest change; the bug was fixed.
64903
64904 2006-09-09  Bruno Haible  <bruno@clisp.org>
64905
64906         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64907         assignments if building a library without libtool.
64908         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64909         in func_emit_lib_Makefile_am.
64910         (func_import): When building a static library libfoo.a, arrange to
64911         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64912         (func_create_testdir): Likewise.
64913         * modules/gc (configure.ac, Makefile.am): If building statically,
64914         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64915         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64916         * modules/striconv (configure.ac, Makefile.am): Likewise.
64917         Based on a suggestion by Ralf Wildenhues.
64918
64919 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64922         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64923         Also:
64924
64925         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64926         Add year_2050_test to catch glibc bug 2821
64927         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64928
64929         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64930         Prefer #ifdef to #if.
64931
64932         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64933         Return from 'main' instead of calling 'exit'.
64934
64935 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64936
64937         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64938         returned the maximum time_t value rather than (time_t) -1.
64939         Problem originally reported by William Bardwell
64940         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64941
64942         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64943         Moved to here ...
64944         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64945         ... from here.
64946
64947 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64950         2821 is fixed.
64951
64952 2006-09-08  Jim Meyering  <jim@meyering.net>
64953
64954         Don't make generated files read-only.  That would bother too many
64955         people.  However, do retain the ability to work when targets are
64956         read-only: remove the destination and temporary files before writing
64957         them (when generated via sed or echo), or by using the -f option for
64958         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64959         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64960         * modules/byteswap, modules/configmake, modules/fcntl:
64961         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64962         * modules/localcharset, modules/netinet_in, modules/poll:
64963         * modules/stdbool, modules/stdint, modules/sys_select:
64964         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64965
64966 2006-09-08  Jim Meyering  <jim@meyering.net>
64967
64968         Avoid new build failure on FreeBSD 6.0.
64969         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64970         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64971         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64972
64973 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64974
64975         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64976
64977 2006-09-07  Jim Meyering  <jim@meyering.net>
64978
64979         Fix global typo in last change: use chmod u-w, not chmod u-x.
64980         Spotted by Paul Eggert and Bruce Korb.
64981         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64982         * modules/byteswap, modules/configmake, modules/fcntl:
64983         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64984         * modules/localcharset, modules/netinet_in, modules/poll:
64985         * modules/stdbool, modules/stdint, modules/sys_select:
64986         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64987
64988 2006-09-06  Jim Meyering  <jim@meyering.net>
64989
64990         Make generated files be read-only.
64991         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64992         Ensure that each generated file is now read-only.
64993         * modules/argz: Likewise.
64994         * modules/arpa_inet: Likewise.
64995         * modules/byteswap: Likewise.
64996         * modules/configmake: Likewise.
64997         * modules/fcntl: Likewise.
64998         * modules/fnmatch: Likewise.
64999         * modules/getopt: Likewise.
65000         * modules/glob: Likewise.
65001         * modules/inttypes: Likewise.
65002         * modules/netinet_in: Likewise.
65003         * modules/poll: Likewise.
65004         * modules/stdbool: Likewise.
65005         * modules/stdint: Likewise.
65006         * modules/sys_select: Likewise.
65007         * modules/sys_socket: Likewise.
65008         * modules/sys_stat: Likewise.
65009         * modules/sysexits: Likewise.
65010         * modules/localcharset: Same as above, but continue using temporary
65011         file named "t-$@" (why different?) rather than the "$@-t" used
65012         everywhere else.
65013
65014         * modules/sysexits (Makefile.am): Replace literal occurrences
65015         of "sysexit.h" more readable, and more consistent, "$@".
65016
65017 2006-09-06  Bruno Haible  <bruno@clisp.org>
65018
65019         * modules/striconv: New file.
65020         * modules/xstriconv: New file.
65021         * MODULES.html.sh (Internationalization functions): Add striconv,
65022         xstriconv.
65023
65024 2006-09-06  Bruno Haible  <bruno@clisp.org>
65025
65026         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65027         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65028         not using libtool correctly.
65029
65030 2006-09-06  Bruno Haible  <bruno@clisp.org>
65031
65032         * lib/striconv.h: New file.
65033         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65034         iconvstring.c.
65035         * lib/xstriconv.h: New file.
65036         * lib/xstriconv.c: New file.
65037
65038 2006-09-06  Bruno Haible  <bruno@clisp.org>
65039
65040         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65041         lib_..._LDFLAGS.
65042
65043 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65044
65045         * lib/argz_.h: Sync from Libtool.
65046
65047         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65048                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65049
65050         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65051
65052 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65053
65054         * modules/trim: New file.
65055
65056 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65057
65058         * lib/trim.h: New file.
65059         * lib/trim.c: New file.
65060
65061 2006-09-05  Bruno Haible  <bruno@clisp.org>
65062
65063         * MODULES.html.sh (String handling): Add trim.
65064
65065 2006-09-04  Karl Berry  <karl@gnu.org>
65066
65067         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65068         until next release.
65069
65070 2006-09-03  Bruno Haible  <bruno@clisp.org>
65071
65072         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65073         correctly.
65074
65075 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65076
65077         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65078         not gl_GETLOADAVG.  Omit unneeded semicolons.
65079         Problems reported by Ralf Wildenhues in
65080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65081         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65082         at the end, which is the usual gnulib style.
65083
65084         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65085         of doing all the work ourselves.
65086         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65087         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65088
65089 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65092         Problem reported by Ralf Wildenhues in
65093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65094
65095         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65096         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65097
65098 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65101         yesterday's patch by changing test -n to test -z.
65102
65103 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65104
65105         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65106         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65107         the former is now obsolescent.
65108
65109         * modules/chdir-long (Depends-on): Add fcntl.
65110
65111 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65114         obsolescent, and programs should use gnulib instead.
65115         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65116         but with prefixes changed.
65117
65118 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65119
65120         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65121         or stdbool.h, because they might not exist while configuring.
65122
65123         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65124         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65125         does that for us.
65126         (O_DIRECTORY): Remove.
65127
65128 2006-08-31  Eric Blake  <ebb9@byu.net>
65129
65130         * gnulib-tool: Don't let emacs change spaces to TAB.
65131
65132 2006-08-31  Bruno Haible  <bruno@clisp.org>
65133
65134         * gnulib-tool: When calling func_import more than once, do it in a
65135         subshell.
65136         Reported by Eric Blake <ebb9@byu.net>.
65137
65138 2006-08-31  Bruno Haible  <bruno@clisp.org>
65139
65140         * gnulib-tool (nl): Remove variable.
65141         (sed_transform_lib_file): Use more robust test for config-h module.
65142         (func_import): Fix typo in 2006-08-25 patch.
65143
65144 2006-08-31  Bruno Haible  <bruno@clisp.org>
65145
65146         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65147         specified, augment Makefile.am variables instead of assigning them.
65148
65149 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         Work around a bug in both the Linux and SunOS 64-bit kernels:
65152         nanosleep mishandles sleeps for longer than 2**31 seconds.
65153         Problem reported by Frank v Waveren in
65154         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65156         Check for nanosleep bug.
65157         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65158
65159 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         Work around a bug in both the Linux and SunOS 64-bit kernels:
65162         nanosleep mishandles sleeps for longer than 2**31 seconds.
65163         Problem reported by Frank v Waveren in
65164         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65165         * lib/nanosleep.c (BILLION): New constant.
65166         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65167         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65168         implementation.
65169
65170 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65171
65172         * modules/nanosleep (Depends-on): Add gettime.
65173
65174 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65175         and Simon Josefsson  <jas@extundo.com>
65176         and Oskar Liljeblad  <oskar@osk.mine.nu>
65177
65178         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65179         * gnulib-tool (func_import): New license type 'unmodifiable license
65180         text'.
65181         * modules/fdl: Use it.  Longer description.
65182         * module/gpl, module/lgpl: New files.
65183
65184 2006-08-30  Jim Meyering  <jim@meyering.net>
65185
65186         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65187         shadowing the parameter.
65188
65189 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65190
65191         Sync from Libtool:
65192
65193         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65194
65195         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65196         sharing with gnulib.  Report by Eric Blake.
65197
65198 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65199
65200         * modules/isapipe: New file.
65201         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65202
65203 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65204
65205         * modules/configmake (Makefile.am): Add a comment, and omit
65206         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65207         by Bruno Haible.
65208
65209 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65210
65211         * m4/isapipe.m4: New file.
65212
65213 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65214
65215         * lib/isapipe.c, lib/isapipe.h: New files.
65216
65217 2006-08-29  Jim Meyering  <jim@meyering.net>
65218
65219         * modules/configmake (Makefile.am): Make configmake.h depend on
65220         Makefile.  Otherwise, a stale configmake.h could hang around.
65221
65222 2006-08-29  Eric Blake  <ebb9@byu.net>
65223
65224         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65225         resolution of upstream bug 3044.
65226
65227 2006-08-29  Bruno Haible  <bruno@clisp.org>
65228
65229         * modules/localcharset (Depends-on): Add configmake.
65230         (Makefile.am): Remove setting of LIBDIR through DEFS.
65231
65232 2006-08-29  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65235         defined.
65236
65237 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         * modules/fcntl: New file.
65240         * modules/chdir-safer (Depends-on): Add fcntl.
65241         * modules/fts: Likewise.
65242         * modules/mkdir-p: Likewise.
65243
65244         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65245         This undoes the most recent change, since we're now addressing the
65246         problem in a different way.
65247
65248         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65249         into output, since the output might be called Makefile.am even
65250         if $makefile_name is something different.
65251         (func_import): Use $makefile_am rather than
65252         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65253         empty.
65254
65255         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65256
65257 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65260         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65261         recent change to stdint.m4, since we're now addressing the problem in a
65262         different way.
65263
65264 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65265
65266         * m4/fcntl_h.m4: New file.
65267
65268 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * lib/fcntl_.h: New file.
65271         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65272         the fcntl module.
65273         * lib/dirchownmod.c: Likewise.
65274         * lib/fts.c: Likewise.
65275
65276         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65277         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65278         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65279         just before including <inttypes.h>, to avoid circular inclusion.
65280
65281 2006-08-28  Jim Meyering  <jim@meyering.net>
65282
65283         * doc/visibility.texi: Actually read and correct the grammar of the
65284         sentence affected by yesterday's change.
65285
65286 2006-08-28  Eric Blake  <ebb9@byu.net>
65287
65288         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65289         needs wrapper.
65290
65291 2006-08-28  Eric Blake  <ebb9@byu.net>
65292
65293         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65294
65295 2006-08-28  Eric Blake  <ebb9@byu.net>
65296
65297         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65298
65299 2006-08-28  Bruno Haible  <bruno@clisp.org>
65300
65301         * modules/c-strstr: New file, from GNU gettext.
65302         * MODULES.html.sh (String handling): Add c-strstr.
65303
65304 2006-08-28  Bruno Haible  <bruno@clisp.org>
65305
65306         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65307         macros.
65308         Reported by Eric Blake.
65309
65310 2006-08-28  Bruno Haible  <bruno@clisp.org>
65311
65312         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65313         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65314         * lib/vasprintf.c: Include errno.h, limits.h.
65315         (EOVERFLOW): New fallback definition.
65316         (vasprintf): Test here whether the string length is > INT_MAX.
65317         * lib/vsnprintf.c: Include errno.h, limits.h.
65318         (EOVERFLOW): New fallback definition.
65319         (vsnprintf): Fix bug when generated string was too long for the buffer.
65320         Test here whether the string length is > INT_MAX.
65321
65322 2006-08-28  Bruno Haible  <bruno@clisp.org>
65323
65324         * lib/inttypes_.h (SCNX*): Remove definitions.
65325         Reported by Eric Blake.
65326
65327 2006-08-28  Bruno Haible  <bruno@clisp.org>
65328
65329         * lib/c-strstr.h: New file, from GNU gettext.
65330         * lib/c-strstr.c: New file, from GNU gettext.
65331
65332 2006-08-28  Bruno Haible  <bruno@clisp.org>
65333
65334         * gnulib-tool: Reorder some statements.
65335
65336 2006-08-28  Bruno Haible  <bruno@clisp.org>
65337
65338         * gnulib-tool: New option --makefile-name.
65339         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65340         $makefile_name.
65341         (func_import): Write $makefile_name to the cache file, and read it from
65342         there unless explicitly specified. Use $makefile_name as file name
65343         instead of Makefile.am. Adjust the recommendations accordingly.
65344
65345 2006-08-28  Bruno Haible  <bruno@clisp.org>
65346
65347         * gnulib-tool (func_verify_module): Check against misapplying patch.
65348
65349 2006-08-28  Bruno Haible  <bruno@clisp.org>
65350
65351         * gnulib-tool (func_relativize, func_relconcat): New functions.
65352         Give an error if --local-dir is given with --update.
65353         Remove trailing slashes from $local_gnulib_dir.
65354         (func_import): Store the relativized $local_gnulib_dir in
65355         gnulib-cache.m4, and read it from there if not specified explicitly.
65356
65357 2006-08-28  Bruno Haible  <bruno@clisp.org>
65358
65359         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65360         is the current directory. Respect also $local_gnulib_dir.
65361
65362 2006-08-28  Bruno Haible  <bruno@clisp.org>
65363             Simon Josefsson  <jas@extundo.com>
65364
65365         BeOS portability.
65366         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65367
65368 2006-08-27  Jim Meyering  <jim@meyering.net>
65369
65370         * doc/visibility.texi: Remove duplicate word: "pointer".
65371
65372 2006-08-26  Bruno Haible  <bruno@clisp.org>
65373
65374         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65375         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65376         (Makefile.am): Create inttypes.h from inttypes_.h.
65377         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65378
65379         * modules/imaxabs: New file.
65380
65381         * modules/imaxdiv: New file.
65382
65383 2006-08-26  Bruno Haible  <bruno@clisp.org>
65384
65385         * m4/inttypes.m4: New file.
65386         * m4/_inttypes_h.m4: Remove file.
65387         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65388         PRI_MACROS_BROKEN.
65389         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65390
65391         * m4/imaxabs.m4: New file.
65392
65393         * m4/imaxdiv.m4: New file.
65394
65395 2006-08-26  Bruno Haible  <bruno@clisp.org>
65396
65397         * lib/inttypes_.h: New file.
65398         * lib/inttypes.h: Remove file.
65399         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65400
65401         * lib/imaxabs.c: New file.
65402
65403         * lib/imaxdiv.c: New file.
65404
65405 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65406
65407         New config-h module, so that "make" output needn't be cluttered
65408         by -DHAVE_CONFIG_H.
65409         * MODULES.html.sh (Support for building libraries and executables):
65410         Add config-h.
65411         * modules/config-h: New file.
65412         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65413         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65414         the config-h module is used.
65415
65416         New configmake module, so that "make" output needn't be cluttered
65417         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65418         * MODULES.html.sh (Support for building libraries and executables):
65419         Add configmake.
65420         * modules/configmake: New file.
65421
65422 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * m4/config-h.m4: New file.
65425
65426 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * config/srclist.txt: Add elisp-comp.
65429
65430 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65431
65432         * MODULES.html.sh (Support for building libraries and executables):
65433         Add elisp-comp.
65434         * build-aux/elisp-comp: New file.
65435         * modules/elisp-comp: New file.
65436
65437 2006-08-24  Bruno Haible  <bruno@clisp.org>
65438
65439         * gnulib-tool (func_create_testdir): Use non-default values of
65440         sourcebase and m4base.
65441
65442 2006-08-24  Bruno Haible  <bruno@clisp.org>
65443
65444         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65445         HTML structure.
65446
65447 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         * modules/openat (Depends-on): Add lchown.
65450
65451 2006-08-23  Bruno Haible  <bruno@clisp.org>
65452
65453         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65454         of gl_LOCK_EARLY instead of gl_LOCK.
65455
65456 2006-08-23  Bruno Haible  <bruno@clisp.org>
65457
65458         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65459         on OSF/1 to no.
65460         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65461
65462 2006-08-23  Bruno Haible  <bruno@clisp.org>
65463
65464         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65465         as unusable.
65466
65467         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65468         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65469         (gl_LOCK): New macro.
65470
65471 2006-08-22  Simon Josefsson  <jas@extundo.com>
65472
65473         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65474         to md5 module.
65475
65476 2006-08-22  Simon Josefsson  <jas@extundo.com>
65477
65478         * MODULES.html.sh: Add "Support for maintaining and release
65479         projects".
65480
65481         * build-aux/gnupload: New file, from coreutils.
65482
65483 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65484
65485         Avoid the need for AC_LIBSOURCES in m4 macros.
65486         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65487         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65488         * modules/check-version (EXTRA_DIST): Add check-version.h.
65489         * modules/crc (EXTRA_DIST): Add crc.h.
65490         * modules/des (EXTRA_DIST): Add des.h.
65491         * modules/gc (EXTRA_DIST): Add gc.h.
65492         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65493         * modules/getline (EXTRA_DIST): Add getline.h.
65494         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65495         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65496         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65497         * modules/md2 (EXTRA_DIST): Add md2.h.
65498         * modules/md4 (EXTRA_DIST): Add md4.h.
65499         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65500         * modules/read-file (EXTRA_DIST): Add read-file.h.
65501         * modules/readline (EXTRA_DIST): Add readline.h.
65502         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65503         rijndael-api-fst.h.
65504
65505 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         * m4/rijndael.m4 (gl_ARCFOUR):
65508         * m4/arctwo.m4 (gl_ARCTWO):
65509         * m4/check-version.m4 (gl_CHECK_VERSION):
65510         * m4/crc.m4 (gl_CRC):
65511         * m4/des.m4 (gl_DES):
65512         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65513         * m4/gc.m4 (gl_GC):
65514         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65515         * m4/getline.m4 (gl_FUNC_GETLINE):
65516         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65517         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65518         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65519         * m4/md2.m4 (gl_MD2):
65520         * m4/md4.m4 (gl_MD4):
65521         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65522         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65523         * m4/readline.m4 (gl_FUNC_READLINE):
65524         * m4/rijndael.m4 (gl_RIJNDAEL):
65525         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65526         to get the necessary .h files and whatnot.
65527
65528 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65529
65530         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65531         gnulib rather than the other way around.
65532         * config/srclistvars.sh (COREUTILS): Remove.
65533
65534 2006-08-22  Jim Meyering  <jim@meyering.net>
65535
65536         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65537
65538         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65539
65540 2006-08-22  Eric Blake  <ebb9@byu.net>
65541
65542         * modules/regexprops-generic: New file.
65543         * MODULES.html.sh (Support for building documentation): List it.
65544
65545 2006-08-22  Eric Blake  <ebb9@byu.net>
65546
65547         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65548         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65549         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65550         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65551
65552 2006-08-22  Bruno Haible  <bruno@clisp.org>
65553
65554         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65555         and lib_LTLIBRARIES like the other lib_* variables.
65556
65557 2006-08-22  Bruno Haible  <bruno@clisp.org>
65558
65559         * build-aux/x-to-1.in: New file, from GNU gettext.
65560
65561 2006-08-22  Bruno Haible  <bruno@clisp.org>
65562
65563         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65564         <utmpx.h> exists.
65565
65566 2006-08-22  Bruno Haible  <bruno@clisp.org>
65567
65568         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65569         <utmpx.h> exists.
65570
65571 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65572
65573         BeOS portability.
65574         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65575         exist.
65576         Problem reported by Bruno Haible.
65577
65578 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         Avoid the need for AC_LIBSOURCES in m4 macros.
65581         * modules/acl (EXTRA_DIST): Add acl.h.
65582         * modules/argmatch (Files): Add m4/argmatch.m4.
65583         (configure.ac): Add gl_ARGMATCH.
65584         (EXTRA_DIST): Renamed from lib_SOURCES, for
65585         consistency with the other modules.  Remove argmatch.c.
65586         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65587         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65588         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65589         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65590         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65591         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65592         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65593         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65594         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65595         * modules/closeout (EXTRA_DIST): Add closeout.h.
65596         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65597         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65598         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65599         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65600         dirname.h; remove basename.c and stripslash.c.
65601         * modules/exclude (EXTRA_DIST): Add exclude.h.
65602         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65603         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65604         * modules/file-type (EXTRA_DIST): Add file-type.h.
65605         * modules/filemode (EXTRA_DIST): Add filemode.h.
65606         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65607         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65608         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65609         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65610         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65611         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65612         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65613         * modules/getdate (EXTRA_DIST): Add getdate.c.
65614         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65615         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65616         * modules/getpass (EXTRA_DIST): Add getpass.h.
65617         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65618         * modules/group-member (EXTRA_DIST): Add group-member.h.
65619         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65620         * modules/hash (EXTRA_DIST): Add hash.h.
65621         * modules/human (EXTRA_DIST): Add human.h.
65622         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65623         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65624         * modules/lchown (EXTRA_DIST): Add lchown.h.
65625         * modules/long-options (EXTRA_DIST): Add long-options.h.
65626         * modules/lstat (EXTRA_DIST): Add lstat.h.
65627         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65628         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65629         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65630         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65631         * modules/memxor (EXTRA_DIST): Add memxor.h.
65632         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65633         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65634         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65635         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65636         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65637         * modules/physmem (EXTRA_DIST): Add physmem.h.
65638         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65639         * modules/posixver (EXTRA_DIST): Add posixver.h.
65640         * modules/quote (EXTRA_DIST): Add quote.h.
65641         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65642         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65643         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65644         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65645         regex_internal.h regexec.c.
65646         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65647         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65648         * modules/same (EXTRA_DIST): Add same.h.
65649         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65650         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65651         * modules/savedir (EXTRA_DIST): Add savedir.h.
65652         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65653         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65654         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65655         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65656         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65657         * modules/strdup (EXTRA_DIST): Add strdup.h.
65658         * modules/strftime (EXTRA_DIST): Add strftime.h.
65659         * modules/strndup (EXTRA_DIST): Add strndup.h.
65660         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65661         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65662         * modules/time_r (EXTRA_DIST): Add time_r.h.
65663         * modules/timespec (EXTRA_DIST): Add timespec.h.
65664         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65665         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65666         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65667         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65668         * modules/userspec (EXTRA_DIST): Add userspec.h.
65669         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65670         * modules/utimens (EXTRA_DIST): Add utimens.h.
65671         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65672         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65673         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65674         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65675         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65676         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65677         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65678         * modules/yesno (EXTRA_DIST): Add yesno.h.
65679
65680 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65683
65684         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65685         * m4/dev-ino.m4, same-inode.m4: Remove.
65686
65687         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65688         * m4/acl.m4 (AC_FUNC_ACL):
65689         * m4/backupfile.m4 (gl_BACKUPFILE):
65690         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65691         * m4/canon-host.m4 (gl_CANON_HOST):
65692         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65693         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65694         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65695         * m4/cloexec.m4 (gl_CLOEXEC):
65696         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65697         * m4/closeout.m4 (gl_CLOSEOUT):
65698         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65699         * m4/dirname.m4 (gl_DIRNAME):
65700         * m4/exclude.m4 (gl_EXCLUDE):
65701         * m4/exitfail.m4 (gl_EXITFAIL):
65702         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65703         * m4/file-type.m4 (gl_FILE_TYPE):
65704         * m4/filemode.m4 (gl_FILEMODE):
65705         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65706         * m4/fpending.m4 (gl_FUNC_FPENDING):
65707         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65708         * m4/fts.m4 (gl_FUNC_FTS):
65709         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65710         * m4/getdate.m4 (gl_GETDATE):
65711         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65712         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65713         * m4/getpass.m4 (gl_FUNC_GETPASS):
65714         * m4/gettime.m4 (gl_GETTIME):
65715         * m4/getugroups.m4 (gl_GETUGROUPS):
65716         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65717         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65718         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65719         * m4/hash.m4 (gl_HASH):
65720         * m4/idcache.m4 (gl_IDCACHE):
65721         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65722         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65723         * m4/long-options.m4 (gl_LONG_OPTIONS):
65724         * m4/lstat.m4 (gl_FUNC_LSTAT):
65725         * m4/md5.m4 (gl_MD5):
65726         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65727         * m4/memcoll.m4 (gl_MEMCOLL):
65728         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65729         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65730         * m4/memxor.m4 (gl_MEMXOR):
65731         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65732         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65733         * m4/modechange.m4 (gl_MODECHANGE):
65734         * m4/mountlist.m4 (gl_MOUNTLIST):
65735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65736         * m4/openat.m4 (gl_FUNC_OPENAT):
65737         * m4/pathmax.m4 (gl_PATHMAX):
65738         * m4/physmem.m4 (gl_PHYSMEM):
65739         * m4/posixtm.m4 (gl_POSIXTM):
65740         * m4/posixver.m4 (gl_POSIXVER):
65741         * m4/quote.m4 (gl_QUOTE):
65742         * m4/quotearg.m4 (gl_QUOTEARG):
65743         * m4/readtokens.m4 (gl_READTOKENS):
65744         * m4/readutmp.m4 (gl_READUTMP):
65745         * m4/regex.m4 (gl_REGEX):
65746         * m4/safe-read.m4 (gl_SAFE_READ):
65747         * m4/safe-write.m4 (gl_SAFE_WRITE):
65748         * m4/same.m4 (gl_SAME):
65749         * m4/save-cwd.m4 (gl_SAVE_CWD):
65750         * m4/savedir.m4 (gl_SAVEDIR):
65751         * m4/settime.m4 (gl_SETTIME):
65752         * m4/sha1.m4 (gl_SHA1):
65753         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65754         * m4/stat-macros.m4 (gl_STAT_MACROS):
65755         * m4/stat-time.m4 (gl_STAT_TIME):
65756         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65757         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65758         * m4/strdup.m4 (gl_FUNC_STRDUP):
65759         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65760         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65761         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65762         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65763         * m4/time_r.m4 (gl_TIME_R):
65764         * m4/timespec.m4 (gl_TIMESPEC):
65765         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65766         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65767         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65768         * m4/userspec.m4 (gl_USERSPEC):
65769         * m4/utimecmp.m4 (gl_UTIMECMP):
65770         * m4/utimens.m4 (gl_UTIMENS):
65771         * m4/xalloc.m4 (gl_XALLOC):
65772         * m4/xgetcwd.m4 (gl_XGETCWD):
65773         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65774         * m4/xreadlink.m4 (gl_XREADLINK):
65775         * m4/xstrtod.m4 (gl_XSTRTOD):
65776         * m4/yesno.m4 (gl_YESNO):
65777         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65778         to get the necessary .h files and whatnot.
65779
65780 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65781             Bruno Haible  <bruno@clisp.org>
65782
65783         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65784         /bin/sh understanding of '!' conditional negation.
65785
65786 2006-08-21  Jim Meyering  <jim@meyering.net>
65787
65788         * modules/openat (Depends-on): Really alphabetize.
65789
65790         * modules/acl (Depends-on): Add error and quote.
65791
65792         * check-module (find_included_lib_files): Add at-func.c to the
65793         ok-to-include-more-than-once white list.
65794
65795         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65796
65797 2006-08-21  Bruno Haible  <bruno@clisp.org>
65798
65799         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65800         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65801         Reported by Martin Lambers <marlam@marlam.de>.
65802
65803 2006-08-21  Bruno Haible  <bruno@clisp.org>
65804
65805         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65806         specify an installation location, don't emit a noinst_LIBRARIES or
65807         noinst_LTLIBRARIES assignment.
65808
65809 2006-08-21  Bruno Haible  <bruno@clisp.org>
65810
65811         BeOS portability.
65812         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65813         BeOS has mbrtowc() but no <wctype.h>.
65814
65815 2006-08-21  Bruno Haible  <bruno@clisp.org>
65816
65817         BeOS portability.
65818         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65819         exist.
65820
65821 2006-08-21  Bruno Haible  <bruno@clisp.org>
65822
65823         BeOS portability.
65824         * lib/mbchar.h: Include <wctype.h> only if it exists.
65825
65826 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65827
65828         Remove files that are no longer needed by their respective modules.
65829         * m4/obstack.m4: Remove.
65830         * m4/strerror_r.m4: Remove.
65831         * m4/uint32_t.m4: Remove.
65832         * m4/uintptr_t.m4: Remove.
65833         * m4/ullong_max.m4: Remove.
65834         * m4/xstrtoimax.m4: Remove.
65835         * m4/xstrtoumax.m4: Remove.
65836
65837         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65838         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65839         dependencies now capture this.
65840
65841         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65842         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65843         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65844         * m4/human.m4 (gl_HUMAN): Likewise.
65845         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65846         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65847
65848         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65849
65850         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65851         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65852         stdint.
65853         * m4/human.m4 (gl_HUMAN): Likewise.
65854         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65855         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65856         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65857         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65858         * m4/xstrtol (gl_XSTRTOL): Likewise.
65859
65860         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65861         AC_TYPE_LONG_LONG_INT.
65862         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65863         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65864         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65865         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65866
65867         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65868         on stdbool.
65869
65870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65871         (gl_PREREQ_XSTRTOUL): Remove.
65872
65873         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65874
65875         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65876         mode.
65877
65878 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65879
65880         Add and change modules to make it easier for coreutils to use
65881         gnulib-tool.
65882         * modules/backupfile (Files): Remove m4/d-ino.m4.
65883         (Depends-on): Add d-ino.
65884         * modules/cycle-check (Depends-on): Add stdint.
65885         (lib_SOURCES): Add cycle-check.h.
65886         * modules/d-ino: New module.
65887         * modules/d-type: New module.
65888         * modules/error (Files): Remove m4/strerror_r.m4.
65889         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65890         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65891         m4/inttypes_h.m4, m4/uintmax_t.m4.
65892         (Depends-on): Add stdint.
65893         (lib_SOURCES): Add fsusage.h.
65894         * modules/getcwd (Files): Remove d-ino.m4.
65895         (Depends-on): Add d-ino.
65896         * modules/getndelim2 (Depends-on): Add stdint.
65897         * modules/glob (Files): Remove m4/d-type.m4.
65898         (Depends-on): Add d-type.
65899         * modules/host-os: New module.
65900         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65901         m4/inttypes_h.m4, m4/uintmax_t.m4.
65902         * Depends-on: Add stdint.
65903         (lib_SOURCES): Add human.h.
65904         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65905         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65906         m4/uintmax_t.m4, m4/ulonglong.m4.
65907         (Depends-on): Add stdint.
65908         (EXTRA_DIST): Add inttostr.h.
65909         * modules/lchmod: New module.
65910         * modules/link-follow: New module.
65911         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65912         (Depends-on): Add lchmod.
65913         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65914         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65915         (Depends-on): Add stdint.
65916         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65917         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65918         (Depends-on): Add stdint.
65919         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65920         * modules/perl: New module.
65921         * modules/regex (Depends-on): Add stdint.
65922         * modules/rmdir-errno: New module.
65923         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65924         m4/intmax_t.m4.
65925         (Depends-on): Add stdint.
65926         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65927         m4/uintmax_t.m4.
65928         (Depends-on): Add stdint.
65929         * modules/unlink-busy: New module.
65930         * modules/utimecmp (Depends-on): Add stdint.
65931         * modules/uptime: New module.
65932         * modules/winsz-ioctl: New module.
65933         * modules/winsz-termios: New module.
65934         * modules/xnanosleep (Depends-on): Add nanosleep.
65935         * modules/ullong_max: Remove.
65936         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65937         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65938         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65939         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65940         (Depends-on): Add inttypes.
65941         (lib_SOURCES): Add xstrtol.h.
65942         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65943         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65944         * MODULES.html.sh: Move 'assert' into the assert section.
65945         Move 'dummy' into the linking section.
65946         Remove ullong_max.
65947         Add section for compatibility checks for POSIX:2001 functions,
65948         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65949         winsz-ioctl, and winsz-termios into it.
65950         Add lchmod.
65951         Add top-level Misc section and put host-os, perl, and uptime
65952         into it.
65953
65954 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65955
65956         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65957         now assume the stdint module.  Do not include inttypes.h.
65958         * lib/fsusage.h: Likewise.
65959         * lib/getndelim2.c: Likewise.
65960         * lib/human.h: Likewise.
65961         * lib/inttostr.h: Likewise.
65962         * lib/obstack.c: Likewise.
65963         * lib/regex_internal.h: Likewise.
65964         * lib/tempname.c: Likewise.
65965         * lib/utimecmp.c: Likewise.
65966         * lib/xstrtol.h: Likewise.
65967
65968         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65969
65970         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65971         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65972         * lib/xtime.h: Likewise.
65973
65974 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         * modules/openat (Files): Add lib/fchmodat.c.
65977         Fixes problem reported by Jay Youngman.
65978
65979 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65980
65981         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65982         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65983
65984 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65985             Bruno Haible  <bruno@clisp.org>
65986
65987         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65988         and is a script that invokes bison. Tighten the code. Add comments.
65989
65990 2006-08-18  Jim Meyering  <jim@meyering.net>
65991
65992         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65993         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65994         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65995         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65996
65997 2006-08-18  Bruno Haible  <bruno@clisp.org>
65998
65999         * modules/bison-i18n: New file.
66000         * MODULES.html.sh (Internationalization functions): Add it.
66001
66002 2006-08-18  Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66005         sys/statvfs.h. When getmntinfo was found, check its declaration and
66006         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66007
66008 2006-08-18  Bruno Haible  <bruno@clisp.org>
66009
66010         * m4/bison-i18n.m4: New file, from bison.
66011
66012 2006-08-18  Bruno Haible  <bruno@clisp.org>
66013
66014         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66015         (ME_DUMMY): Treat "kernfs" as a dummy.
66016         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66017
66018 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         Update from coreutils.
66021
66022         2006-08-15  Jim Meyering  <jim@meyering.net>
66023
66024         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66025
66026         2006-01-17  Jim Meyering  <jim@meyering.net>
66027
66028         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66029
66030         2006-01-11  Jim Meyering  <jim@meyering.net>
66031
66032         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66033         Check for the lchmod function.
66034
66035 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         Update from coreutils.
66038
66039         * lib/__fpending.h: Add copyright notice.
66040         * lib/fprintftime.h: Likewise.
66041         * lib/savedir.c: Use (C) in copyright notice.
66042         * lib/savedir.h: Likewise.
66043
66044         2006-08-15  Jim Meyering  <jim@meyering.net>
66045
66046         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66047         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66048         in support of the EXPECTED_ERRNO macro.
66049         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66050         definitions.  Instead, define the appropriate symbols and include
66051         "at-func.c".
66052         * lib/mkdirat.c (mkdirat): Likewise.
66053         * lib/fchmodat.c (fchmodat): Likewise.
66054         (ENOSYS): Remove definition.
66055         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66056         it.  Don't include "unistd--.h" -- it wasn't ever used.
66057
66058         2006-01-17  Jim Meyering  <jim@meyering.net>
66059
66060         Rewrite fts.c not to change the current working directory,
66061         by using openat, fstatat, fdopendir, etc..
66062
66063         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66064         (HAVE_OPENAT_SUPPORT): Define.
66065         [_LIBC] (fchdir): Don't undef or define; no longer used.
66066         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66067         Now, this `function' always succeeds, and consumes its file descriptor
66068         parameter -- so callers must not close such FDs.  Update callers.
66069         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66070         (diropen): Add parameter, SP.  Adjust all callers.
66071         Implement using diropen_fd, rather than open.
66072         (fts_open): Initialize new member, fts_cwd_fd.
66073         Remove fts_rft-setting code.
66074         (fts_close): Close fts_cwd_fd, if necessary.
66075         (__opendir2): Define in terms of opendir or opendirat,
66076         depending on whether the FST_NOCHDIR flag is set.
66077         (fts_build): Since fts_safe_changedir consumes its FD, and since
66078         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66079         and close the dup'd file descriptor upon failure.
66080         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66081         (fts_safe_changedir): Tweak semantics to reflect that this function
66082         now calls cwd_advance_fd and hence consumes its FD argument.
66083         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66084         [struct FTS] (fts_rft): Remove now-unused member.
66085         [struct FTS] (fts_cycle.state): Improve comment.
66086
66087         * lib/openat.c (openat_needs_fchdir): New function.
66088         * lib/openat.h (openat_needs_fchdir): Declare it.
66089
66090 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66093         Problem and fix reported by Pádraig Brady in
66094         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66095
66096 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66097
66098         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66099
66100 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66101
66102         * lib/memcoll.c (memcoll): Optimize for the common case where the
66103         arguments are bytewise equal.
66104
66105 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66106
66107         * doc/regexprops-generic.texi: Add a copyright notice.
66108
66109 2006-08-15  Bruno Haible  <bruno@clisp.org>
66110
66111         * modules/tmpdir (License): Change to LGPL.
66112
66113 2006-08-15  Bruno Haible  <bruno@clisp.org>
66114
66115         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66116         module.
66117
66118 2006-08-14  Simon Josefsson  <jas@extundo.com>
66119
66120         * config/srclist.txt: Add gnupload.
66121
66122 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66123
66124         Change copyright notice from LGPL 2 to GPL 2, since that's the
66125         standard form used in the gnulib repository.
66126         * tests/test-lock.c: Likewise.
66127         * tests/test-stdint.c: Likewise.
66128         * tests/test-tls.c: Likewise.
66129
66130         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66131         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66132         Add copyright notice.
66133
66134         * check-module: Add copyright notice.  Output a copyright
66135         notice if "--version" is specified.
66136         * modules/COPYING: New file.
66137         * tests/test-getaddrinfo.c: Add copyright notice.
66138         * tests/test-verify.c: Likewise.
66139
66140 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         Change copyright notice from LGPL 2 to GPL 2, since that's the
66143         standard form used in the gnulib repository.
66144         * lib/lock.c: LGPL -> GPL.
66145         * lib/lock.h: Likewise.
66146         * lib/strnlen1.c: Likewise.
66147         * lib/strnlen1.h: Likewise.
66148         * lib/tls.c: Likewise.
66149         * lib/tls.h: Likewise.
66150         * lib/tmpdir.c: Likewise.
66151
66152         * lib/TODO: Remove; this belongs only in coreutils.
66153
66154 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66155
66156         Add copyright notices to long-enough files that lack them, since
66157         otherwise the files aren't clearly free.  Use the same notice that
66158         getdate.texi already uses.
66159         * doc/alloca-opt.texi: Add copyright notice.
66160         * doc/alloca.texi: Likewise.
66161         * doc/ctime.texi: Likewise.
66162         * doc/functions.texi: Likewise.
66163         * doc/gcd.texi: Likewise.
66164         * doc/gnulib-tool.texi: Likewise.
66165         * doc/inet_ntoa.texi: Likewise.
66166         * doc/visibility.texi: Likewise.
66167
66168         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66169         * doc/quote.texi: Add copyright notice.
66170
66171         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66172         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66173         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66174         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66175         is now obsolete, and give a pointer to the Sun list.
66176         Add copyright notice.
66177
66178 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66179
66180         * config/srclistvars.sh: Add copyright notice.
66181
66182 2006-08-14  Eric Blake  <ebb9@byu.net>
66183
66184         Import the following change from libc:
66185
66186         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66187
66188         Upstream bug 2997.
66189         * lib/misc/error.c: Add space between program name and message if file
66190         name is missing.
66191
66192 2006-08-12  Karl Berry  <karl@gnu.org>
66193
66194         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66195         remove, these originate in gnulib now.
66196
66197 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66198
66199         * doc/Makefile (standards.info standards.html standards.dvi):
66200         Also depend on make-stds.texi.
66201
66202 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66203
66204         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66205         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66206
66207         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66208         in wchar_t.  Problem reported by Eric Blake.
66209
66210         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66211         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66212         Also, help the compiler to keep LEN in a register.
66213
66214 2006-08-11  Eric Blake  <ebb9@byu.net>
66215
66216         * users.txt: Sort.  Add tar.
66217
66218 2006-08-11  Bruno Haible  <bruno@clisp.org>
66219
66220         * users.txt: New file.
66221
66222 2006-08-11  Bruno Haible  <bruno@clisp.org>
66223
66224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66225         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66226
66227 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66228
66229         * modules/snprintf (Depends-on): Remove minmax.
66230         (Maintainer): Add self and Bruno.
66231
66232 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66233
66234         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66235         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66236         (EOVERFLOW): Define if the system does not.
66237         Do not include "minmax.h"; it wasn't used.
66238         (snprintf): Don't assume size_t promotes to an unsigned type.
66239         Fix bug when generated string was too long for the buffer: the
66240         buffer's contents are supposed to be the initial prefix of the
66241         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66242         exceeds INT_MAX; do the check ourselves.
66243
66244         Import the following changes from libc:
66245
66246         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66247
66248         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66249         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66250         set wc to the byte which couldn't be converted.
66251         (re_string_reconstruct): Don't clear valid_raw_len before calling
66252         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66253         tip_context using re_string_context_at.
66254
66255         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66256
66257         * lib/posix/regex.h: g++ still cannot handled [restrict].
66258
66259         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66260
66261         * lib/posix/regex.h: Remove special handling for VMS.
66262
66263 2006-08-10  Jim Meyering  <jim@meyering.net>
66264
66265         * modules/same-inode: New module.
66266         * modules/dev-ino: New module.
66267         * modules/cycle-check: Depend on these modules, rather than simply
66268         including their .h files.
66269         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66270         required via m4/cycle-check.m4.
66271         * modules/same: Depend on new same-inode module, rather than
66272         including same-inode.h.
66273         * modules/chdir-safer: New file.
66274
66275         * modules/chown (Depends-on): Add stat-macros.
66276
66277 2006-08-10  Jim Meyering  <jim@meyering.net>
66278
66279         * m4/cycle-check.m4: New file.
66280         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66281         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66282
66283 2006-08-10  Eric Blake  <ebb9@byu.net>
66284
66285         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66286         in from original proposal.
66287
66288 2006-08-10  Eric Blake  <ebb9@byu.net>
66289         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66290
66291         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66292         namespace.
66293
66294 2006-08-10  Bruno Haible  <bruno@clisp.org>
66295
66296         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66297         as well.
66298
66299 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         Sync from coreutils.
66302
66303         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66304
66305         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66306         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66307
66308 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * modules/restrict: Remove; no longer needed now that we assume
66311         Autoconf 2.59 or later.
66312         * MODULES.html.sh: Remove 'restrict'.
66313         * modules/argp (Depends-on): Remove 'restrict'.
66314         * modules/base64 (Depends-on): Likewise.
66315         * modules/gc (Depends-on): Likewise.
66316         * modules/getaddrinfo (Depends-on): Likewise.
66317         * modules/glob (Depends-on): Likewise.
66318         * modules/inet_ntop (Depends-on): Likewise.
66319         * modules/inet_pton (Depends-on): Likewise.
66320         * modules/memxor (Depends-on): Likewise.
66321         * modules/regex (Depends-on): Likewise.
66322         * modules/strtok_r (Depends-on): Likewise.
66323         * modules/time_r (Depends-on): Likewise.
66324
66325 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66326
66327         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66328         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66329         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66330         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66331         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66332         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66333         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66334         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66335
66336         Merge from coreutils.
66337         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66338         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66340         * m4/time_r.m4 (gl_TIME_R): Likewise.
66341
66342 2006-08-09  Karl Berry  <karl@gnu.org>
66343
66344         * config/srclist.txt: no more gettext-tools, per Bruno.
66345
66346 2006-08-08  Eric Blake  <ebb9@byu.net>
66347
66348         * modules/verror: New module.
66349         * MODULES.html.sh: Document it.
66350
66351 2006-08-08  Eric Blake  <ebb9@byu.net>
66352
66353         * lib/verror.h, lib/verror.c: New files.
66354
66355 2006-08-08  Eric Blake  <ebb9@byu.net>
66356
66357         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66358         verror_at_line output complies with GNU Coding Standards even when
66359         file is NULL.
66360
66361 2006-08-07  Bruno Haible  <bruno@clisp.org>
66362
66363         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66364         versions of AIX.
66365         Reported by Ralf Wildenhues.
66366
66367 2006-08-07  Bruno Haible  <bruno@clisp.org>
66368
66369         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66370         in an AC_DEFUN. Needed so that the autoconf snippets can use
66371         AC_REQUIRE.
66372
66373 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66374
66375         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66376         Initialize pkgdata_DATA.
66377         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66378         overriding it.
66379
66380 2006-08-06  Eric Blake  <ebb9@byu.net>
66381
66382         * lib/error.h: Fold in some upstream changes from glibc.
66383         * lib/error.c: Likewise.
66384
66385 2006-08-04  Bruno Haible  <bruno@clisp.org>
66386
66387         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66388         Make the mostlyclean-local rule depend on mostlyclean-generic.
66389         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66390
66391 2006-07-31  Bruno Haible  <bruno@clisp.org>
66392
66393         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66394         <stdlib.h>, <string.h>.
66395
66396 2006-07-30  Bruno Haible  <bruno@clisp.org>
66397
66398         * modules/readlink (License): Change to LGPL.
66399
66400 2006-07-30  Bruno Haible  <bruno@clisp.org>
66401
66402         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66403         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66404         set PKGDATADIR to point to it.
66405
66406 2006-07-30  Bruno Haible  <bruno@clisp.org>
66407
66408         * modules/csharpexec (configure.ac): Comment out macro invocation.
66409         * modules/javaexec (configure.ac): Likewise.
66410         * modules/javacomp-script (configure.ac): Likewise.
66411
66412         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66413
66414 2006-07-30  Bruno Haible  <bruno@clisp.org>
66415
66416         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66417         linked-list.
66418
66419 2006-07-30  Bruno Haible  <bruno@clisp.org>
66420
66421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66422
66423 2006-07-30  Bruno Haible  <bruno@clisp.org>
66424
66425         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66426         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66427         get removed.
66428
66429 2006-07-29  Bruno Haible  <bruno@clisp.org>
66430
66431         Make it possible for gnulib-tool to work with locally modified or
66432         augmented gnulib repositories.
66433         * gnulib-tool (func_usage): Document --local-dir option.
66434         (local_gnulib_dir): New variable.
66435         Handle --local-dir option.
66436         (func_lookup_file): New function.
66437         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66438         (func_get_description, func_get_filelist, func_get_description,
66439         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66440         func_get_automake_snippet, func_get_include_directive,
66441         func_get_license, func_get_maintainer): Use func_lookup_file.
66442         (func_import, func_create_testdir): Use func_lookup_file.
66443
66444 2006-07-29  Bruno Haible  <bruno@clisp.org>
66445
66446         * modules/setenv (Depends-on): Add unistd.
66447
66448 2006-07-29  Bruno Haible  <bruno@clisp.org>
66449
66450         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66451
66452 2006-07-29  Bruno Haible  <bruno@clisp.org>
66453
66454         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66455
66456 2006-07-29  Bruno Haible  <bruno@clisp.org>
66457
66458         * gnulib-tool (import, update): If there is no Makefile.am, look at
66459         aclocal.m4, instead of bailing out.
66460
66461 2006-07-29  Bruno Haible  <bruno@clisp.org>
66462
66463         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66464         Categorize the options by when they are useful.
66465
66466 2006-07-29  Bruno Haible  <bruno@clisp.org>
66467
66468         * gnulib-tool (func_usage): Document option --no-libtool.
66469         Handle option --no-libtool.
66470         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66471         for changed semantics of $libtool variable.
66472         (func_import): Likewise. If libtool is not used, show this through
66473         an option --no-libtool.
66474         (func_create_testdir): Update.
66475
66476 2006-07-29  Bruno Haible  <bruno@clisp.org>
66477
66478         * gnulib-tool (func_import): Extend error message about missing
66479         --doc-base.
66480
66481 2006-07-29  Bruno Haible  <bruno@clisp.org>
66482
66483         * gnulib-tool (func_import): Don't create the $docbase directory if
66484         there is no file to store there.
66485
66486 2006-07-29  Bruno Haible  <bruno@clisp.org>
66487
66488         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66489         relevant, look for configure.ac there, not in the current directory.
66490         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66491
66492 2006-07-29  Bruno Haible  <bruno@clisp.org>
66493
66494         * gnulib-tool (SORT): New variable.
66495         (func_usage): Undocument --assume-autoconf option.
66496         Remove --assume-autoconf option handling.
66497         (autoconf_minversion): Determine from the contents of configure.ac.
66498         (func_import): Remove autoconf_minversion handling.
66499         Suggested by Eric Blake.
66500
66501 2006-07-29  Bruno Haible  <bruno@clisp.org>
66502
66503         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66504
66505 2006-07-29  Bruno Haible  <bruno@clisp.org>
66506
66507         * config/srclist.txt (*setenv.[ch]): Remove rules.
66508
66509 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66510
66511         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66512
66513 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66514
66515         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66516         arpa/inet.h.
66517
66518 2006-07-28  Simon Josefsson  <jas@extundo.com>
66519
66520         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66521         * modules/inet_pton (Depends-on): Likewise.
66522
66523 2006-07-28  Simon Josefsson  <jas@extundo.com>
66524
66525         * m4/netinet_in_h.m4: New file.
66526
66527 2006-07-28  Simon Josefsson  <jas@extundo.com>
66528
66529         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66530         #include's.
66531
66532 2006-07-28  Simon Josefsson  <jas@extundo.com>
66533
66534         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66535         #include's.
66536
66537 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66540         setgid on directories only if they set these bits.
66541         * lib/modechange.h: Remove obsolete comment about masks.
66542
66543 2006-07-28  Eric Blake  <ebb9@byu.net>
66544
66545         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66546         macro expansion.
66547
66548 2006-07-28  Bruno Haible  <bruno@clisp.org>
66549
66550         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66551
66552 2006-07-28  Bruno Haible  <bruno@clisp.org>
66553
66554         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66555
66556 2006-07-28  Bruno Haible  <bruno@clisp.org>
66557
66558         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66559         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66560         Define fallbacks.
66561         Avoids link error on FreeBSD 4.x.
66562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66563
66564         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66565         encoding.
66566         * lib/mbswidth.c (iswcntrl): Likewise.
66567
66568 2006-07-27  Bruno Haible  <bruno@clisp.org>
66569
66570         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66571         test.
66572
66573 2006-07-27  Bruno Haible  <bruno@clisp.org>
66574
66575         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66576         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66577         defined.
66578
66579 2006-07-26  Eric Blake  <ebb9@byu.net>
66580
66581         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66582
66583 2006-07-26  Eric Blake  <ebb9@byu.net>
66584
66585         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66586         like mingw that lack mkstemp.
66587         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66588         avoid compilation warning on mingw.
66589
66590 2006-07-26  Bruno Haible  <bruno@clisp.org>
66591
66592         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66593         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66594         INT_FAST*_MIN, INTPTR_MIN.
66595
66596 2006-07-25  Bruno Haible  <bruno@clisp.org>
66597
66598         * modules/version-etc (Depends-on): Add stdarg.
66599
66600 2006-07-25  Bruno Haible  <bruno@clisp.org>
66601
66602         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66603         complex commands.
66604
66605 2006-07-25  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66608         defined in <stdarg.h> or config.h.
66609
66610 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66611
66612         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66613         (gl_STDIO_SAFER): Remove.
66614
66615 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66616
66617         * MODULES.html.sh (File stream based Input/Output):
66618         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66619         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66620         * modules/fopen-safer, modules/tmpfile-safer: New files.
66621         * modules/stdio-safer: Remove.
66622
66623 2006-07-24  Bruno Haible  <bruno@clisp.org>
66624
66625         * modules/tmpdir: New file.
66626         * MODULES.html.sh (File system functions): Add it.
66627
66628 2006-07-24  Bruno Haible  <bruno@clisp.org>
66629
66630         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66631         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66632
66633 2006-07-24  Bruno Haible  <bruno@clisp.org>
66634
66635         * modules/clean-temp: New file.
66636
66637 2006-07-24  Bruno Haible  <bruno@clisp.org>
66638
66639         * m4/tmpdir.m4: New file, from GNU gettext.
66640
66641 2006-07-24  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/tmpdir.h: New file, from GNU gettext.
66644         * lib/tmpdir.c: New file, from GNU gettext.
66645
66646 2006-07-24  Bruno Haible  <bruno@clisp.org>
66647
66648         * lib/clean-temp.h: New file, from GNU gettext.
66649         * lib/clean-temp.c: New file, from GNU gettext.
66650
66651 2006-07-23  Eric Blake  <ebb9@byu.net>
66652
66653         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66654         (Depends-on): Add binary-io.
66655
66656 2006-07-23  Eric Blake  <ebb9@byu.net>
66657
66658         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66659
66660 2006-07-23  Eric Blake  <ebb9@byu.net>
66661
66662         * lib/tmpfile-safer.c: New file.
66663         * lib/stdio-safer.h (fopen_safer): Add prototype.
66664         * lib/stdio--.h (tmpfile): Make safer.
66665
66666 2006-07-23  Bruno Haible  <bruno@clisp.org>
66667
66668         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66669         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66670         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66671         gl_linked_remove_at): Use it.
66672
66673 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66674         and Simon Josefsson <jas@extundo.com>
66675
66676         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66677
66678         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66679
66680 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * modules/close-stream: New file.
66683         * modules/closeout (Description): Make it clear that it exits
66684         with a diagnostic on error.
66685         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66686         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66687
66688 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * m4/close-stream.m4: New file.
66691
66692 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66693
66694         * lib/close-stream.c, lib/close-stream.h: New files.
66695
66696 2006-07-22  Bruno Haible  <bruno@clisp.org>
66697
66698         Merge from GNU gettext 0.15.
66699
66700         2006-05-01  Bruno Haible  <bruno@clisp.org>
66701
66702                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66703
66704         2006-07-22  Bruno Haible  <bruno@clisp.org>
66705
66706                 * modules/javaversion: New file.
66707                 * MODULES.html.sh (Java): Add javaversion.
66708
66709         2006-03-12  Bruno Haible  <bruno@clisp.org>
66710
66711                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66712
66713         2005-12-04  Bruno Haible  <bruno@clisp.org>
66714
66715                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66716                 (untested).
66717
66718         2006-06-21  Bruno Haible  <bruno@clisp.org>
66719
66720                 Avoid warnings from recent versions of mcs.
66721                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66722                 -o, -L, -r any more. Use options documented since mcs-1.0
66723                 instead. Similarly for -g.
66724
66725         2005-12-04  Bruno Haible  <bruno@clisp.org>
66726
66727                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66728                 .resources, not .resource.
66729
66730         2005-07-09  Bruno Haible  <bruno@clisp.org>
66731
66732                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66733                 add a .dll suffix.
66734                 Reported by Mark Junker <mjscod@gmx.de>.
66735
66736         2006-07-22  Bruno Haible  <bruno@clisp.org>
66737
66738                 * modules/gettext: Upgrade to gettext-0.15.
66739                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66740                 m4/visibility.m4.
66741                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66742
66743 2006-07-22  Bruno Haible  <bruno@clisp.org>
66744
66745         Merge from GNU gettext 0.15.
66746
66747         2006-03-25  Bruno Haible  <bruno@clisp.org>
66748
66749                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66750
66751         2006-07-21  Bruno Haible  <bruno@clisp.org>
66752
66753                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66754                 "1.1".
66755
66756         2006-05-09  Bruno Haible  <bruno@clisp.org>
66757
66758                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66759                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66760                 for the conftestver execution.
66761
66762         2006-05-01  Bruno Haible  <bruno@clisp.org>
66763
66764                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66765                 optional target-version argument. Verify that the compiler
66766                 groks source of the specified source-version, or add -source
66767                 option as necessary. Verify that the compiler produces
66768                 bytecode in the specified target-version, or add -target and
66769                 -source options as necessary. Make the result of the test
66770                 available as variable CONF_JAVAC. Also log error output in
66771                 config.log.
66772
66773         2006-03-11  Bruno Haible  <bruno@clisp.org>
66774
66775                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66776
66777         2006-05-09  Bruno Haible  <bruno@clisp.org>
66778
66779                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66780                 CLASSPATH_SEPARATOR to a semicolon.
66781
66782         2006-03-12  Bruno Haible  <bruno@clisp.org>
66783
66784                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66785                 available as variable CONF_JAVA, for subsequent autoconf
66786                 tests. Also log error output in config.log.
66787
66788         2006-07-19  Bruno Haible  <bruno@clisp.org>
66789
66790                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66791                 that getline works on glibc2 systems. Needed to avoid trouble
66792                 in relocatable.c.
66793                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66794
66795         2005-12-04  Bruno Haible  <bruno@clisp.org>
66796
66797                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66798                 launcher (untested).
66799
66800         2005-12-04  Bruno Haible  <bruno@clisp.org>
66801
66802                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66803
66804         2006-07-22  Bruno Haible  <bruno@clisp.org>
66805
66806                 * gettext.m4: Update from GNU gettext-0.15.
66807                 * nls.m4: Likewise.
66808                 * po.m4: Likewise.
66809                 * inttypes-pri.m4: Likewise.
66810                 * inttypes-h.m4: Renamed from inttypes.m4.
66811                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66812
66813 2006-07-22  Bruno Haible  <bruno@clisp.org>
66814
66815         Merge from GNU gettext 0.15.
66816
66817         2005-07-05  Bruno Haible  <bruno@clisp.org>
66818
66819                 * printf-args.c (printf_fetchargs): Work around broken
66820                 definition of wint_t on mingw.
66821
66822         2005-02-12  Bruno Haible  <bruno@clisp.org>
66823
66824                 * xallocsa.h: Add extern "C" for C++.
66825
66826         2006-05-17  Bruno Haible  <bruno@clisp.org>
66827
66828                 Cygwin portability.
66829                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66830
66831         2006-04-30  Bruno Haible  <bruno@clisp.org>
66832
66833                 * progreloc.c: Include <mach-o/dyld.h> if available.
66834                 (find_executable): Use _NSGetExecutablePath when possible.
66835
66836         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66837
66838                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66839                 function.
66840
66841         2005-12-29  Bruno Haible  <bruno@clisp.org>
66842
66843                 * progreloc.c (set_program_name_and_installdir): Fix
66844                 compilation error.
66845
66846         2005-12-04  Bruno Haible  <bruno@clisp.org>
66847
66848                 Cygwin portability.
66849                 * progreloc.c: Include <windows.h> also on Cygwin.
66850                 (find_executable): Add support for Cygwin.
66851                 (set_program_name_and_installdir): Handle also platforms with
66852                 nonempty EXEEXT.
66853
66854         2006-07-11  Bruno Haible  <bruno@clisp.org>
66855
66856                 * javacomp.c: Fix a comment.
66857                 Reported by Jim Meyering.
66858
66859         2006-04-30  Bruno Haible  <bruno@clisp.org>
66860
66861                 * javacomp.h (compile_java_class): Add source_version,
66862                 target_version arguments.
66863                 * javacomp.c: Rewritten to choose only a compiler that
66864                 respects the specified source_version and target_version.
66865
66866         2006-06-27  Bruno Haible  <bruno@clisp.org>
66867
66868                 Assume correct S_ISDIR macro.
66869                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66870
66871         2006-07-22  Bruno Haible  <bruno@clisp.org>
66872
66873                 * javaversion.h: New file, from GNU gettext.
66874                 * javaversion.c: New file, from GNU gettext.
66875                 * javaversion.java: New file, from GNU gettext.
66876                 * javaversion.class: New file, from GNU gettext.
66877
66878         2006-05-17  Bruno Haible  <bruno@clisp.org>
66879
66880                 Cygwin portability.
66881                 * javaexec.c (execute_java_class): Test for jview program
66882                 also on Cygwin.
66883
66884         2006-04-09  Bruno Haible  <bruno@clisp.org>
66885
66886                 * fatal-signal.c: Don't include string.h.
66887                 (at_fatal_signal): Use a copying loop instead of memcpy.
66888
66889         2005-12-04  Bruno Haible  <bruno@clisp.org>
66890
66891                 * csharpexec.c: Add support for 'clix' launcher (untested).
66892                 (execute_csharp_using_sscli): New function.
66893                 (execute_csharp_program): Call it.
66894
66895         2006-06-21  Bruno Haible  <bruno@clisp.org>
66896
66897                 Avoid warnings from recent versions of mcs.
66898                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66899                 -o, -L, -r any more. Use options documented since mcs-1.0
66900                 instead. Similarly for -g.
66901
66902         2005-07-09  Bruno Haible  <bruno@clisp.org>
66903
66904                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66905                 add a .dll suffix.
66906                 Reported by Mark Junker <mjscod@gmx.de>.
66907
66908         2006-06-17  Bruno Haible  <bruno@clisp.org>
66909
66910                 * config.charset: Update for NetBSD 3.0.
66911
66912         2006-05-17  Bruno Haible  <bruno@clisp.org>
66913
66914                 Cygwin portability.
66915                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66916
66917         2006-05-16  Bruno Haible  <bruno@clisp.org>
66918
66919                 * localcharset.c [CYGWIN]: Include <windows.h>.
66920                 (get_charset_aliases): For Cygwin, return the same CPxxx
66921                 aliases list as under WIN32.
66922                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66923                 the environment variables. Fall back to GetACP().
66924
66925         2006-04-05  Bruno Haible  <bruno@clisp.org>
66926
66927                 * config.charset: Update Juan Manuel Guerrero's address.
66928
66929         2005-02-12  Bruno Haible  <bruno@clisp.org>
66930
66931                 * allocsa.h: Add extern "C" for C++.
66932
66933         2005-02-10  Bruno Haible  <bruno@clisp.org>
66934
66935                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66936                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66937
66938         2006-07-22  Bruno Haible  <bruno@clisp.org>
66939
66940                 * gettext.h: Update to GNU gettext-0.15.
66941
66942 2006-07-22  Bruno Haible  <bruno@clisp.org>
66943
66944         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66945         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66946         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66947
66948 2006-07-21  Eric Blake  <ebb9@byu.net>
66949
66950         * modules/stdlib-safer: New file.
66951         * MODULES.html.sh (File stream based Input/Output): Add
66952         stdlib-safer.
66953
66954 2006-07-21  Eric Blake  <ebb9@byu.net>
66955
66956         * lib/stdlib-safer.h: New file from coreutils, required by
66957         stdlib--.h.
66958
66959 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66960
66961         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66962
66963 2006-07-20  Bruno Haible  <bruno@clisp.org>
66964
66965         * gnulib-tool: Recognize new option --assume-autoconf.
66966         (autoconf_minversion): New variable.
66967         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66968
66969 2006-07-20  Bruno Haible  <bruno@clisp.org>
66970
66971         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66972
66973 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66974
66975         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66976         Reindent and repaginate.
66977
66978 2006-07-19  Derek Price  <derek@ximbiot.com>
66979
66980         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66981         Correct grammar.
66982
66983 2006-07-17  Bruno Haible  <bruno@clisp.org>
66984
66985         * modules/list: New file.
66986         * modules/array-list: New file.
66987         * modules/carray-list, modules/carray-list-tests: New files.
66988         * modules/linked-list, modules/linked-list-tests: New files.
66989         * modules/avltree-list, modules/avltree-list-tests: New files.
66990         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66991         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66992         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66993         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66994         * modules/oset: New file.
66995         * modules/array-oset: New file.
66996         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66997         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66998         * tests/test-carray_list.c: New file.
66999         * tests/test-linked_list.c: New file.
67000         * tests/test-avltree_list.c: New file.
67001         * tests/test-rbtree_list.c: New file.
67002         * tests/test-linkedhash_list.c: New file.
67003         * tests/test-avltreehash_list.c: New file.
67004         * tests/test-rbtreehash_list.c: New file.
67005         * tests/test-avltree_oset.c: New file.
67006         * tests/test-rbtree_oset.c: New file.
67007         * MODULES.html.sh (Container data structures): New section.
67008
67009 2006-07-17  Bruno Haible  <bruno@clisp.org>
67010
67011         * m4/gl_list.m4: New file.
67012
67013 2006-07-17  Bruno Haible  <bruno@clisp.org>
67014
67015         * lib/gl_list.h: New file.
67016         * lib/gl_list.c: New file.
67017         * lib/gl_array_list.h: New file.
67018         * lib/gl_array_list.c: New file.
67019         * lib/gl_carray_list.h: New file.
67020         * lib/gl_carray_list.c: New file.
67021         * lib/gl_linked_list.h: New file.
67022         * lib/gl_linked_list.c: New file.
67023         * lib/gl_anylinked_list1.h: New file.
67024         * lib/gl_anylinked_list2.h: New file.
67025         * lib/gl_avltree_list.h: New file.
67026         * lib/gl_avltree_list.c: New file.
67027         * lib/gl_anyavltree_list1.h: New file.
67028         * lib/gl_anyavltree_list2.h: New file.
67029         * lib/gl_rbtree_list.h: New file.
67030         * lib/gl_rbtree_list.c: New file.
67031         * lib/gl_anyrbtree_list1.h: New file.
67032         * lib/gl_anyrbtree_list2.h: New file.
67033         * lib/gl_anytree_list1.h: New file.
67034         * lib/gl_anytree_list2.h: New file.
67035         * lib/gl_linkedhash_list.h: New file.
67036         * lib/gl_linkedhash_list.c: New file.
67037         * lib/gl_anyhash_list1.h: New file.
67038         * lib/gl_anyhash_list2.h: New file.
67039         * lib/gl_avltreehash_list.h: New file.
67040         * lib/gl_avltreehash_list.c: New file.
67041         * lib/gl_rbtreehash_list.h: New file.
67042         * lib/gl_rbtreehash_list.c: New file.
67043         * lib/gl_anytreehash_list1.h: New file.
67044         * lib/gl_anytreehash_list2.h: New file.
67045
67046         * lib/gl_oset.h: New file.
67047         * lib/gl_oset.c: New file.
67048         * lib/gl_array_oset.h: New file.
67049         * lib/gl_array_oset.c: New file.
67050         * lib/gl_avltree_oset.h: New file.
67051         * lib/gl_avltree_oset.c: New file.
67052         * lib/gl_rbtree_oset.h: New file.
67053         * lib/gl_rbtree_oset.c: New file.
67054         * lib/gl_anytree_oset.h: New file.
67055
67056 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         * m4/mkancesdirs.m4: New file.
67059         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67060         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67061         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67062         it.
67063
67064 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67067         * lib/mkancesdirs.h: New files.
67068         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67069         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67070         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67071         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67072         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67073         callers changed.  Revamp internals significantly, by not
67074         attempting to create directories that are temporarily more
67075         permissive than the final results.  Do not attempt to use
67076         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67077         This removes some race conditions, fixes some bugs, and simplifies
67078         things.  Use new dirchownmod function to do owner and mode changes.
67079         * lib/mkdir-p.h: Likewise.
67080         * lib/modechange.c (octal_to_mode): New function.
67081         (struct mode_change): New member mentioned.
67082         (make_node_op_equals): New arg mentioned.  All callers changed.
67083         (mode_compile): Keep track of which mode bits the user has explicitly
67084         mentioned.
67085         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67086         New arg PMODE_BITS, to keep track of which mode bits the user
67087         mentioned; it treats S_ISUID and S_ISGID speciall.
67088         All callers changed.
67089         * lib/modechange.h: Likewise.
67090
67091 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67092
67093         * MODULES.html.sh: Add mkancestors.
67094         * modules/mkancesdirs: New module.
67095         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67096         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67097         The chdir-safer and afs files are now orphans; I'll remove them
67098         unless someone speaks up.
67099         Add lib/dirchownmod.c, lib/dirchownmod.h.
67100         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67101         Add lchown, mkancesdirs.
67102         (Maintainer): Add self.
67103
67104 2006-07-15  Karl Berry  <karl@gnu.org>
67105
67106         * gnulib-tool: help message wording/arrangement.
67107
67108 2006-07-14  Simon Josefsson  <jas@extundo.com>
67109
67110         * doc/gnulib.texi (Libtool and Windows): New section.
67111
67112 2006-07-12  Simon Josefsson  <jas@extundo.com>
67113
67114         * modules/gendocs (License): Fix license, approved by Karl.
67115
67116 2006-07-12  Eric Blake  <ebb9@byu.net>
67117
67118         * MODULES.html.sh: Add gendocs.
67119
67120 2006-07-11  Eric Blake  <ebb9@byu.net>
67121
67122         * modules/fdl: New module, to install doc/fdl.texi.
67123         * MODULES.html.sh: Add new section for documentation modules.
67124         * gnulib-tool: Avoid space-tab.
67125         (--doc-base): New option, to manage files from doc.
67126
67127 2006-07-11  Eric Blake  <ebb9@byu.net>
67128
67129         * m4/absolute-header.m4: Fix comments to match recent change.
67130
67131 2006-07-11  Eric Blake  <ebb9@byu.net>
67132
67133         * gnulib-tool: List --doc-base before --tests-base.
67134
67135 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67136
67137         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67138
67139 2006-07-11  Bruno Haible  <bruno@clisp.org>
67140
67141         * README: Mention where to put documentation.
67142
67143 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67144
67145         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67146
67147 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67148
67149         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67150         to stdint.m4.
67151
67152 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67153
67154         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67155         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67156         "no/such/file/stdint.h" when there is no such file, so that
67157         the resulting C code can be parsed by dodgy compilers.
67158         Problems reported by Bob Proulx.
67159
67160 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67161
67162         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67163         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67164         macros into the GNU _D_EXACT_NAMLEN.
67165         * lib/savedir.c:  Likewise.
67166         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67167
67168 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67169         and Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67172         * m4/savedir.m4:
67173         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67174         macros into the GNU _D_EXACT_NAMLEN.
67175
67176 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67179         around the absolute name, to work around a problem with the HP-UX
67180         11.23 native C compiler, reported by Bob Proulx.
67181
67182 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67183
67184         * doc/maintain.texi, make-stds.texi: Sync from
67185         <http://savannah.gnu.org/projects/gnustandards>.
67186
67187 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67190
67191 2006-07-09  Jim Meyering  <jim@meyering.net>
67192
67193         * m4/glob.m4: Remove a doubled word in a comment.
67194
67195 2006-07-09  Jim Meyering  <jim@meyering.net>
67196
67197         * lib/argp-pv.c: Remove a doubled word in a comment.
67198         * lib/check-version.c (check_version): Likewise.
67199         * lib/javacomp.c (compile_java_class): Likewise.
67200
67201 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67204         for the benefit of people using Autoconf 2.60.  If you want to
67205         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67206         (or m4/onceonly.m4, if pre-2.57) manually.
67207
67208 2006-07-08  Jim Meyering  <jim@meyering.net>
67209
67210         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67211         comment.
67212         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67213         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67214         comment.
67215
67216 2006-07-08  Jim Meyering  <jim@meyering.net>
67217
67218         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67219
67220 2006-07-07  Simon Josefsson  <jas@extundo.com>
67221
67222         * tests/test-crc.c: Change expected crc value, the test vector
67223         were probably computed using the old broken crc.c?
67224
67225 2006-07-06  Simon Josefsson  <jas@extundo.com>
67226
67227         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67228         now the canonical place for the M4 file).
67229
67230         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67231         from the sys_socket dependency now.
67232
67233         * modules/inet_pton (Files): Ditto.
67234
67235         * modules/inet_ntop (Files): Ditto.
67236
67237 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67238
67239         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67240         not gl_PREREQ_GETUSERSHELL.
67241
67242 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67243
67244         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67245         with only one argument, for Autoconf 2.60.
67246         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67247         expand to nothing, so add a shell command to avoid syntax error.
67248         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67249
67250 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67251
67252         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67253
67254 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67255
67256         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67257         no longer needed.  Check for isblank decl.
67258         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67259         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67260         of existence.
67261
67262 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         * lib/getloadavg.c: Use __VMS, not VMS.
67265         * lib/getopt.c: Likewise.
67266         * lib/getpagesize.h: Likewise.
67267         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67268         and probably does not work.
67269
67270 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * lib/.cppi-disable: Add wcwidth.
67273         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67274         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67275         (ISGRAPH): Remove.  All uses changed to isgraph.
67276         (FOLD) [!defined _LIBC]: Remove special case.
67277         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67278         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67279         HAVE_ISBLANK.
67280         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67281         case.
67282
67283 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67284
67285         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67286         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67287         brackets.  Other minor changes to suppress some compiler
67288         warnings.
67289
67290 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67291         and Paul Eggert  <eggert@cs.ucla.edu>
67292
67293         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67294         of invoking obsolescent AC_HEADER_DIRENT macro.
67295         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67296         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67297         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67298         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67299         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67300         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67301         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67302         * m4/readdir.m4: Remove; no longer needed.
67303
67304 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67305         and Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67308         Don't worry about this obsolete case any more.
67309         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67310         directories.
67311         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67312         worry about this obsolete case any more.
67313         * lib/fts.c: Likewise.
67314         * lib/getcwd.c: Likewise.
67315         * lib/glob.h: Likewise.
67316         * lib/savedir.c: Likewise.
67317
67318 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67321         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67322         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67323         needed.
67324         All uses removed.
67325         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67326         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67327         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67328         needed.
67329         * m4/getdate.m4 (gl_GETDATE): Likewise.
67330         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67331         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67332         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67333         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67334         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67335         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67336         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67337         needed.
67338
67339 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67340
67341         * lib/memcasecmp.c: Include <limits.h>.
67342         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67343         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67344         Don't assume isdigit succeeds only on '0' through '9'.
67345
67346 2006-07-05  Eric Blake  <ebb9@byu.net>
67347
67348         * modules/getaddrinfo (Depends-on): Add snprintf.
67349
67350 2006-07-05  Eric Blake  <ebb9@byu.net>
67351
67352         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67353         to avoid 'header present but could not be compiled' on cygwin.
67354
67355 2006-07-05  Eric Blake  <ebb9@byu.net>
67356
67357         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67358         missing from netdb.h.
67359         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67360
67361 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67362
67363         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67364         no longer needed.
67365         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67366         * m4/getdate.m4 (gl_GETDATE): Likewise.
67367         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67368         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67369         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67370         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67371         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67372
67373 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67374
67375         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67376         All uses of is_space replaced by isspace.
67377         * lib/exit.h: Don't talk about STDC_HEADERS.
67378         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67379         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67380         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67381         replaced by isprint etc.
67382         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67383         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67384         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67385         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67386         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67387         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67388
67389 2006-07-05  Bruno Haible  <bruno@clisp.org>
67390
67391         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67392         the function exists, before testing against AIX.
67393         Reported by Martin Lambers <marlam@marlam.de>.
67394
67395 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67396
67397         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67398         From Mark D. Baushke.
67399
67400 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67401
67402         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67403         to the absolute name, not just one, to bypass Sun C 5.8's
67404         "warning: #include of /usr/include/... may be non-portable".
67405
67406 2006-07-04  Eric Blake  <ebb9@byu.net>
67407
67408         * modules/dirname-tests: New test module.
67409         * tests/test-dirname.c: New file, replacing dirname.c
67410         TEST_DIRNAME section that was recently deleted.
67411
67412 2006-07-04  Bruno Haible  <bruno@clisp.org>
67413
67414         Assume ANSI C header files and <ctype.h> functions.
67415         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67416         (mbsnwidth): Use isprint, iscntrl instead.
67417
67418 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67419
67420         Merge from coreutils.
67421         * MODULES.html.sh: Add xstrtold.
67422         * modules/xstrtold: New file.
67423         * modules/cycle-check (Files): Add lib/same-inode.h.
67424         * modules/dirname (Files): Add m4/double-slash-root.m4.
67425         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67426         * modules/mkdir-p (Files): Add lib/same-inode.h.
67427         * modules/same (Files): Add lib/same-inode.h.
67428
67429 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67430
67431         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67432         This is to keep the terminology clean; POSIX talks about
67433         "absolute pathnames", not "full pathnames", but the GNU
67434         Coding Standards say to use "path" for something else;
67435         so use "absolute" to keep both sides happy.
67436         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67437         Set gl_absolute_header, not gl_full_header_path.
67438         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67439         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67440         All uses changed.
67441
67442         Merge from coreutils.
67443
67444         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67447         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67448         want to require the building of c-strtod.o.
67449         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67450         needs -lm directly.
67451         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67452
67453         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67456         --as-needed option if available.  Problem reported by Albert Chin in
67457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67458         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67459         cc merely issues a bunch of annoying warnings for --as-needed
67460         (this problem was reported by Bob Proulx).  Also, try linking with
67461         -lm to detect a bug in binutils 2.16 (this problem was reported
67462         by Ralf Wildenhues).
67463
67464         2006-06-18  Jim Meyering  <jim@meyering.net>
67465
67466         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67467         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67468         macro.
67469         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67470         also check for glibc-2.4's abort-inducing bug.
67471
67472         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67473         Low-probability clean-up should be to use rmdir to get rid of
67474         the just-created directory, not unlink.
67475
67476         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67477         configure fail, and request a bug report to inform us about it.
67478         Add a comment that, barring reports to the contrary, in 2007 we'll
67479         assume ftruncate is universally available.
67480
67481         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67482
67483         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67484
67485         2006-03-12  Jim Meyering  <jim@meyering.net>
67486
67487         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67488         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67489         * m4/same.m4 (gl_SAME): Likewise.
67490         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67491
67492         2006-03-11  Eric Blake  <ebb9@byu.net>
67493
67494         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67495         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67496         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67497         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67498
67499 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67502         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67503         reported by Mark D. Baushke, one in
67504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67505
67506         Merge from coreutils.
67507
67508         * lib/.cppi-disable: Add stdint_.h.
67509         * lib/.cvsignore: Add stdint.h.
67510
67511         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67514         both double and long double versions.
67515         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67516         * lib/xstrtold.c: New file.
67517         * lib/xstrtod.h (xstrtold): New decl.
67518
67519         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * lib/filemode.c (setst): Remove.
67522         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67523         (arguably) clearer, and the generated code is a bit smaller on my
67524         Debian GNU/Linux stable x86 host.
67525
67526         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67529         Assume that filemode.h includes sys/types.h and sys/stat.h.
67530         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67531         (ftypelet): Reorder to put common cases first, for efficiency.
67532         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67533         to do 'M'.
67534         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67535         of 10, for compatibility with FreeBSD.  All callers changed.
67536         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67537         types that can't be deduced solely from st_mode.  First arg is now a
67538         const pointer.
67539         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67540         (strmode): Renamed from mode_string.
67541         (filemodestring): New decl.
67542         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67543         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67544         needed.
67545         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67546
67547         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67548
67549         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67550         fsusage.h now does that.  Include fsusage.h first, to test interface.
67551         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67552         at most one method (the old code could have generated decls that
67553         didn't conform to C89, not that this was ever exercised).
67554         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67555
67556         2006-03-19  Jim Meyering  <jim@meyering.net>
67557
67558         Work even in a chroot where d_ino values for entries in "/"
67559         don't match the stat.st_ino values for the same names.
67560         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67561         number, iterate through all entries again, using lstat instead.
67562         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67563         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67564
67565         * lib/getcwd.c (__getcwd): Clarify a comment.
67566         Use memcpy in place of a call to strcpy.
67567
67568         2006-03-12  Jim Meyering  <jim@meyering.net>
67569
67570         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67571         matches that of the current directory (which we're about to chdir ".."
67572         out of), then save the dev-ino of the parent, instead.
67573
67574         * lib/same-inode.h (SAME_INODE): New file/macro.
67575         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67576         Include "same-inode.h", instead.
67577         * lib/same.c: Likewise.
67578         * lib/cycle-check.h: Include "same-inode.h".
67579         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67580         * lib/cycle-check.c (SAME_INODE): Remove definition.
67581         * lib/root-dev-ino.h: Include "same-inode.h".
67582
67583         2006-03-11  Eric Blake  <ebb9@byu.net>
67584
67585         * lib/same.c (same_name): s/base_name/last_component/
67586         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67587         * lib/filenamecat.c (file_name_concat): Likewise.
67588
67589         2006-03-11  Eric Blake  <ebb9@byu.net>,
67590                     Paul Eggert  <eggert@cs.ucla.edu>
67591
67592         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67593         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67594         drive prefix.
67595         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67596         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67597         (last_component): New method.
67598         * lib/dirname.c (dir_len): Determine when drive letters need a
67599         subsequent slash.  Preserve // when it is special.
67600         (dir_name): Don't append dot when drive letter is absolute.
67601         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67602         * lib/basename.c (base_name): New semantics - malloc the result.
67603         Preserve // when it is special.  Preserve relative files that look
67604         like drive letters.
67605         (base_len): Preserve // when it is special.
67606         (last_component): New method, similar to old base_name semantics.
67607         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67608         base_name.  Strip redundant slashes from ///.
67609
67610 2006-07-03  Jim Meyering  <jim@meyering.net>
67611
67612         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67613         macro is used before the first cycle_check call.
67614
67615 2006-07-03  Eric Blake  <ebb9@byu.net>
67616
67617         * modules/dirname (Depends-on): Add xstrndup.
67618
67619 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67622         test cases, so that config.log is a bit easier to follow.
67623
67624 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67625
67626         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67627         both are 64 bits, since this seems to be the tradition, and this
67628         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67629         we ever run into a host that prefers long long to long in this
67630         case, we'll need another configure-time test.  Problem reported by
67631         Jim Meyering.
67632
67633 2006-07-02  Eric Blake  <ebb9@byu.net>
67634
67635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67636
67637 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         * modules/inttypes (Depends-on): No longer depends on stdint.
67640         * modules/stdint (Description): Say more about assumptions.
67641         Say that the fast types might differ.  Say macros are used.
67642         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67643         (Makefile.am): Revise list of substituted symbols to match
67644         new stdint.m4.
67645         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67646         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67647         * tests/test-stdint.c (verify_same_types)
67648         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67649         the code conforms to C99/C89.
67650         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67651         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67652
67653 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67656         but fix a bug, by requiring at least 64 bits.
67657         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67658         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67659         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67660         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67661
67662         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67663         changes.  Make 2.59 a prerequisite.  Check and substitute for
67664         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67665         inttypes.h.  Do not use special include files; just use the
67666         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67667         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67668         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67669         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67670         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67671         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67672         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67673         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67674         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67675         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67676         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67677         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67678         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67679         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67680         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67681         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67682         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67683         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67684         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67685         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67686         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67687         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67688         not check for things that C99 does not require, e.g., int8_t.  If
67689         a test isn't needed unless <stdint.h> isn't working, and is
67690         unlikely to be needed for any other reason, then don't do it
67691         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67692         size_t, since we assume C89 freestanding at least.  Do not check
67693         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67694         the right thing even if the types are not defined.  Instead use:
67695         (gl_STDINT_TYPE_PROPERTIES): New macro.
67696         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67697         testing whether <sys/types.h> clashes, as Autoconf does this for
67698         us now.  All uses removed.
67699         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67700         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67701         (gl_CHECK_TYPE_SAME):
67702         Remove; no longer needed.
67703         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67704         exists, since we'll return 0 anyway in that case.
67705         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67706
67707 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67708
67709         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67710         possible collision with system files.
67711         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67712         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67713         WCHAR_MIN and WCHAR_MAX in this case.
67714         (<stddef.h>): Do not include; no longer needed.
67715         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67716         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67717         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67718         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67719         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67720         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67721         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67722         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67723         !defined(__c99))]: Include in this case too, since it's harmless
67724         now.
67725         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67726         dangerous to do so.
67727         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67728         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67729         (_STDINT_MIN, _STDINT_MAX): New macros.
67730         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67731         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67732         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67733         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67734         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67735         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67736         macros, not typedefs; this simplifies things quite a bit.
67737         Use long int for all types narrower than int64_t.
67738         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67739         Define in terms of long long int or int64_t or long int,
67740         not int64_t or int32_t.  This saves some compile-time testing.
67741         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67742         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67743         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67744         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67745         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67746         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67747         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67748         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67749         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67750         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67751         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67752         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67753         undef any previous version and define our own version, for
67754         simplicity and consistency with the new macros for types.
67755         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67756         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67757         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67758         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67759         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67760         @WINT_T_SUFFIX@ to keep things simple here.
67761         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67762         Simplify by assuming typical 8/16/32/64 host, since we're
67763         already doing that elsewhere anyway.
67764         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67765         and assume long long int is 64 bits if available.  This
67766         speeds up 'configure'.
67767
67768 2006-07-01  Eric Blake  <ebb9@byu.net>
67769
67770         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67771         Reported by Andreas Buening.
67772
67773 2006-07-01  Eric Blake  <ebb9@byu.net>
67774
67775         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67776
67777 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67778
67779         * lib/getaddrinfo.c: fixed typo
67780
67781 2006-06-29  Jim Meyering  <jim@meyering.net>
67782
67783         * modules/strftime (Maintainer): Add my name, since with the
67784         FPRINTFTIME changes strftime.c has forked from glibc.
67785
67786 2006-06-29  Eric Blake  <ebb9@byu.net>
67787
67788         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67789
67790 2006-06-29  Eric Blake  <ebb9@byu.net>
67791
67792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67793
67794 2006-06-29  Eric Blake  <ebb9@byu.net>
67795
67796         * lib/stat_.h: New file.
67797
67798 2006-06-29  Eric Blake  <ebb9@byu.net>
67799
67800         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67801         unused static function.
67802
67803 2006-06-29  Eric Blake  <ebb9@byu.net>
67804
67805         * doc/functions.texi (Function Portability): Document missing lstat
67806         on mingw.
67807
67808 2006-06-29  Eric Blake  <ebb9@byu.net>
67809
67810         * MODULES.html.sh: Add sys_stat.
67811         * modules/sys_stat: New module.
67812         * modules/mkstemp (Depends-on): Add sys_stat.
67813
67814 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67815
67816         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67817
67818 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67819
67820         * m4/c-bs-a.m4: Removed.
67821
67822 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67823
67824         * lib/strftime.c: Assume strftime() exists.
67825
67826 2006-06-29  Derek Price  <derek@ximbiot.com>
67827
67828         * modules/c-bs-a: Removed - \a is C89.
67829         * MODULES.html.sh: Remove c-bs-a.
67830
67831 2006-06-29  Bruno Haible  <bruno@clisp.org>
67832
67833         * modules/wcwidth (License): Change to LGPL.
67834
67835 2006-06-28  Simon Josefsson  <jas@extundo.com>
67836
67837         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67838         on _WIN32.
67839
67840         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67841         getnameinfo.
67842
67843 2006-06-28  Simon Josefsson  <jas@extundo.com>
67844
67845         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67846
67847 2006-06-28  Simon Josefsson  <jas@extundo.com>
67848
67849         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67850         functions there.  It will succeed on Windows XP, but on Windows
67851         2000 and (presumably) earlier, it will fail, and use the internal
67852         re-implementation.
67853         (use_win32_p): New function.
67854         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67855         Support AI_NUMERICSERV to disable getservbyname.
67856         (getnameinfo): New function, only supports
67857         NI_NUMERICHOST|NI_NUMERICSERV for now.
67858
67859         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67860         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67861         getnameinfo.
67862
67863 2006-06-28  Eric Blake  <ebb9@byu.net>
67864
67865         * modules/wcwidth: New file.
67866         * modules/mbchar (Depends-on): Add wcwidth.
67867         * modules/mbswidth (Depends-on): Add wcwidth.
67868         * MODULES.html.sh: Add wcwidth.
67869
67870 2006-06-28  Eric Blake  <ebb9@byu.net>
67871
67872         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67874
67875 2006-06-28  Eric Blake  <ebb9@byu.net>
67876
67877         * lib/xvasprintf.h: Fix comments.
67878
67879 2006-06-28  Eric Blake  <ebb9@byu.net>
67880
67881         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67882         * lib/mbswidth.c (wcwidth): Move from here...
67883         * lib/wcwidth.h: ...to this new file.
67884
67885 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67886
67887         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67888
67889         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67890         it's obsolete.
67891         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67892
67893 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67894
67895         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67896         Autoconf 2.60 says this stuff was obsolete.
67897
67898 2006-06-28  Bruno Haible  <bruno@clisp.org>
67899
67900         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67901
67902 2006-06-28  Bruno Haible  <bruno@clisp.org>
67903
67904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67905         gt_TYPE_WCHAR_T.
67906
67907 2006-06-28  Bruno Haible  <bruno@clisp.org>
67908
67909         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67910         declaration for wcwidth.
67911         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67912
67913 2006-06-28  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67916         (mkdir): Define using _mkdir.
67917
67918 2006-06-28  Bruno Haible  <bruno@clisp.org>
67919
67920         * lib/getaddrinfo.h: Fix POSIX URL.
67921         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67922         _WIN32.
67923         (use_win32_p): Make static.
67924         (getaddrinfo): Reject service name if it is empty or does not consist
67925         solely of decimal digits, or if its value is > 65535.
67926         (getnameinfo): Remove useless casts.
67927
67928 2006-06-27  Simon Josefsson  <jas@extundo.com>
67929
67930         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67931         Eggert and Martin Lambers.
67932
67933 2006-06-27  Simon Josefsson  <jas@extundo.com>
67934
67935         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67936         Eggert and Martin Lambers.
67937
67938 2006-06-27  Bruno Haible  <bruno@clisp.org>
67939
67940         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67941         result to 0, not to empty.
67942         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67943
67944 2006-06-27  Bruno Haible  <bruno@clisp.org>
67945
67946         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67947
67948 2006-06-26  Simon Josefsson  <jas@extundo.com>
67949
67950         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67951         present.
67952
67953 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67956         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67958
67959 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67960
67961         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67962
67963 2006-06-26  Bruno Haible  <bruno@clisp.org>
67964
67965         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67966
67967 2006-06-26  Bruno Haible  <bruno@clisp.org>
67968
67969         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67970
67971 2006-06-26  Bruno Haible  <bruno@clisp.org>
67972
67973         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67974         SGI C compiler in pre-C99 mode.
67975         Suggested by Mark D. Baushke and Larry Jones.
67976
67977 2006-06-26  Bruno Haible  <bruno@clisp.org>
67978
67979         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67980         WCHAR_MAX.
67981         Reported by Mark D. Baushke and Larry Jones.
67982
67983 2006-06-26  Bruno Haible  <bruno@clisp.org>
67984
67985         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67986         in pre-C99 mode.
67987         Suggested by Mark D. Baushke and Larry Jones.
67988
67989 2006-06-23  Simon Josefsson  <jas@extundo.com>
67990             Bruno Haible  <bruno@clisp.org>
67991
67992         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67993         Emit mostlyclean-local rule.
67994         (func_emit_tests_Makefile_am): Likewise.
67995         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67996
67997 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67998
67999         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68000
68001 2006-06-23  Bruno Haible  <bruno@clisp.org>
68002
68003         * tests/test-stdint.c: Update to match ISO C 99 Technical
68004         Corrigendum 1.
68005
68006 2006-06-23  Bruno Haible  <bruno@clisp.org>
68007
68008         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68009
68010 2006-06-23  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/stdint_.h: Treat IRIX like OpenBSD.
68013
68014 2006-06-23  Bruno Haible  <bruno@clisp.org>
68015
68016         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68017         ISO C 99 Technical Corrigendum 1.
68018
68019 2006-06-22  Simon Josefsson  <jas@extundo.com>
68020
68021         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68022         MinGW.
68023
68024 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68027         needed.  Some compiler complained about some of them.  Problem reported
68028         by Larry Jones in
68029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68030
68031 2006-06-21  Simon Josefsson  <jas@extundo.com>
68032
68033         * tests/test-getaddrinfo.c: New file.
68034
68035         * modules/getaddrinfo-tests: New file.
68036
68037         * MODULES.html.sh: Add inet_pton.
68038
68039         * modules/inet_pton: New file.
68040
68041 2006-06-21  Simon Josefsson  <jas@extundo.com>
68042
68043         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68044         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68045         of using the (limited) gnulib implementation on Windows XP.
68046
68047         * m4/inet_pton.m4: New file.
68048
68049 2006-06-21  Simon Josefsson  <jas@extundo.com>
68050
68051         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68052         variable.
68053
68054         * lib/socket_.h: Don't define WINVER.
68055
68056         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68057         slightly modified to work in gnulib.
68058
68059 2006-06-21  Simon Josefsson  <jas@extundo.com>
68060
68061         * doc/gnulib.texi (Windows sockets): Add.
68062
68063 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * lib/read-file.c (fread_file): Start with buffer allocation of
68066         0 bytes rather than 1 byte; this simplifies the code.
68067         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68068         code to free buffer and save/restore errno.
68069         (internal_read_file): Remove unused local.
68070
68071 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68074         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68075         Problem reported by Denis Excoffier in
68076         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68077
68078 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68079
68080         * modules/sys_socket, modules/socklen: Include sys/types since
68081         FreeBSD 4.x's sys/socket.h needs it.
68082
68083 2006-06-19  Simon Josefsson  <jas@extundo.com>
68084
68085         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68086
68087 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68090
68091 2006-06-19  Bruno Haible  <bruno@clisp.org>
68092
68093         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68094         and FULL_PATH_INTTYPES_H in angle brackets.
68095         Reported by Mark D. Baushke <mdb@gnu.org>.
68096
68097 2006-06-17  Eric Blake  <ebb9@byu.net>
68098
68099         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68100         errno.
68101
68102 2006-06-17  Bruno Haible  <bruno@clisp.org>
68103
68104         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68105         <sys/inttypes.h>.
68106
68107 2006-06-17  Bruno Haible  <bruno@clisp.org>
68108
68109         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68110         whether errno is declared. Assume <errno.h> declares errno.
68111
68112 2006-06-17  Bruno Haible  <bruno@clisp.org>
68113
68114         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68115
68116 2006-06-17  Bruno Haible  <bruno@clisp.org>
68117
68118         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68119         problem on Solaris 2.5.1.
68120
68121 2006-06-16  Eric Blake  <ebb9@byu.net>
68122
68123         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68124         * lib/unicodeio.c [!defined errno]: Likewise.
68125         * lib/strtol.c [!defined errno]: Likewise.
68126         * lib/strtod.c [!defined errno]: Likewise.
68127
68128 2006-06-15  Eric Blake  <ebb9@byu.net>
68129
68130         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68131
68132 2006-06-15  Eric Blake  <ebb9@byu.net>
68133
68134         * config/srclist.txt (ssize_t.m4): Lose sync.
68135
68136 2006-06-15  Bruno Haible  <bruno@clisp.org>
68137
68138         * modules/stdint (Files): Include m4/full-header-path.m4,
68139         m4/size_max.m4, m4/wchar_t.m4.
68140         (Makefile.am): Many more substitutions.
68141         * modules/stdint-tests: New file.
68142         * tests/test-stdint.c: New file.
68143
68144 2006-06-15  Bruno Haible  <bruno@clisp.org>
68145
68146         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68147         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68148         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68149         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68150         gl_CHECK_TYPE_SAME): New macros.
68151
68152 2006-06-15  Bruno Haible  <bruno@clisp.org>
68153
68154         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68155
68156 2006-06-15  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/stdint_.h: Rewritten to be fully auto-configured.
68159         Fixes bug on HP-UX/IA64.
68160
68161 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68162
68163         * lib/getdate.y (__attribute__): Don't define if already defined.
68164         Problem reported by Larry Jones.
68165         * lib/utimens.c (__attribute__): Likewise.
68166
68167 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68170         reported by Andreas Schwab.
68171
68172 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68173             Bruno Haible  <bruno@clisp.org>
68174
68175         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68176         check for the declaration of strnlen and a run test that exposes the
68177         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68178         rpl_strndup.
68179
68180 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68181             Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68184
68185 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68186
68187         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68188         compile test, for Tru64 4.0D.
68189
68190 2006-05-28  Karl Berry  <karl@gnu.org>
68191
68192         * config/srclist.txt (printf-args.c): lose sync.
68193
68194 2006-05-26  Martin Lambers  <marlam@marlam.de>
68195
68196         * lib/getpass.c: Updates the test for the native W32 API, and adds
68197         missing includes, thus fixing compilation warnings.
68198
68199 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68200
68201         * lib/exclude.c (exclude_fnmatch): New function.
68202         (excluded_file_name): Call exclude_fnmatch.
68203         * lib/exclude.h (excluded_file_name): New prototype
68204
68205 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68206
68207         * lib/tempname.c (small_open, large_open): New macros.
68208         (__open, __open64) [!_LIBC]: Remove.
68209         (__gen_tempname): Use small_open and large_open instead of __open
68210         and __open64.  This fixes a portability bug on HP-UX 11.11i
68211         reported by Simon Wing-Tang in
68212         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68213
68214 2006-05-24  Bruno Haible  <bruno@clisp.org>
68215
68216         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68217         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68218         Reported by Thorsten Maerz <torte@netztorte.de> via
68219         Aaron Stone <aaron@serendipity.cx>.
68220
68221 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68224         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68225         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68226         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68227         not really conditional on the cache.
68228         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68229
68230 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68233         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68234         (my_usleep): Don't mishandle maximum value.
68235
68236 2006-05-19  Jim Meyering  <jim@meyering.net>
68237
68238         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68239
68240 2006-05-17  Bruno Haible  <bruno@clisp.org>
68241
68242         Cygwin portability.
68243         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68244
68245 2006-05-17  Bruno Haible  <bruno@clisp.org>
68246
68247         * lib/stdint_.h: Fix recognition of Cygwin.
68248
68249 2006-05-15  Bruno Haible  <bruno@clisp.org>
68250
68251         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68252         on libtool patch by Ralf Wildenhues.
68253
68254 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68257         test for C99 conformance; (bool) 0.5 is an integer constant
68258         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68259         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68260
68261 2006-05-11  Simon Josefsson  <jas@extundo.com>
68262
68263         * m4/xvasprintf.m4: Fix obvious typo.
68264
68265 2006-05-11  Jim Meyering  <jim@meyering.net>
68266
68267         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68268         James Lemley.
68269
68270 2006-05-10  Simon Josefsson  <jas@extundo.com>
68271
68272         * lib/md4.c: Typo fix, update copyright years.
68273         (K1, K2): Don't use L because it turn computations into 64-bit on
68274         64-bit platforms.
68275
68276 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68279         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68280         unwanted sign propagation, e.g., on hosts with 64-bit int.
68281         There still are some problems with reeelly weird theoretical hosts
68282         (e.g., 33-bit int) but it's not worth worrying about now.
68283         * lib/sha1.c (rol): Likewise.
68284         (K1, K2, K3, K4): Remove unnecessary L suffix.
68285
68286 2006-05-10  Bruno Haible  <bruno@clisp.org>
68287
68288         * lib/des.c: Cast to avoid warnings.
68289
68290 2006-05-09  Bruno Haible  <bruno@clisp.org>
68291
68292         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68293         (Depends-on): Depend also on xsize, stdarg.
68294         (configure.ac): Add gl_XVASPRINTF.
68295
68296 2006-05-09  Bruno Haible  <bruno@clisp.org>
68297
68298         * m4/xvasprintf.m4: New file.
68299
68300 2006-05-09  Bruno Haible  <bruno@clisp.org>
68301
68302         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68303         (EOVERFLOW): Define fallback value.
68304         (xstrcat): New function.
68305         (xvasprintf): Recognize the special case of a string concatenation.
68306
68307 2006-05-08  Eric Blake  <ebb9@byu.net>
68308
68309         * gnulib-tool (func_version): Base copyright year on CVS date.
68310         (func_emit_copyright_notice): New function.
68311         (func_emit_lib_Makefile_am): Use it.
68312         (func_emit_tests_Makefile_am): Likewise.
68313         (func_import): Likewise.
68314
68315 2006-05-08  Bruno Haible  <bruno@clisp.org>
68316
68317         * modules/stdarg: New file.
68318         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68319
68320 2006-05-08  Bruno Haible  <bruno@clisp.org>
68321
68322         * m4/stdarg.m4: New file, from GNU gettext.
68323
68324 2006-05-08  Bruno Haible  <bruno@clisp.org>
68325
68326         * config/srclist.txt (build-aux/config.rpath): different from latest
68327         release.
68328
68329 2006-05-08  Bruno Haible  <bruno@clisp.org>
68330
68331         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68332
68333 2006-05-05  Jim Meyering  <jim@meyering.net>
68334
68335         * m4/warning.m4: New file, derived from bison's file by the same name.
68336
68337 2006-05-03  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/stdint_.h: Shorter URL.
68340         * lib/inttypes.h: Likewise.
68341
68342 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68345
68346 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68347
68348         * lib/verify.h: Document the internals better.  Most of this change
68349         was written by Bruno Haible.
68350
68351 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * doc/verify.texi: New file, partly based on a proposal by
68354         Bruno Haible.
68355
68356 2006-05-02  Bruno Haible  <bruno@clisp.org>
68357
68358         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68359         test from here...
68360         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68361
68362 2006-04-29  Bruno Haible  <bruno@clisp.org>
68363
68364         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68365         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68366
68367 2006-04-29  Bruno Haible  <bruno@clisp.org>
68368
68369         * gnulib-tool: Make --update option actually work.
68370
68371 2006-04-29  Bruno Haible  <bruno@clisp.org>
68372
68373         * doc/gcd.texi: New file.
68374         * doc/gnulib.texi: Include it.
68375
68376 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68377
68378         * lib/getdate.y (get_date): When adding relative date, start with the
68379         initial time, not with the result of the first mktime call.
68380
68381 2006-04-25  Bruno Haible  <bruno@clisp.org>
68382
68383         * gnulib-tool (func_import): Output the include directives in three
68384         blocks, sorted separately.
68385         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68386
68387 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68390         to define main with arguments, for C++.  Reported by Eric Blake.
68391         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68392         Prefer 'int main ()' to 'int main (void)', for C++.
68393         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68394         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68395         for 'main', for C99 and C++.
68396
68397 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68400         Don't assume that exit status -1 is valid.
68401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68402         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68403         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68404         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68405         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68406         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68407         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68408         functions can be used without declaring them, or that you can
68409         exit with status -1.
68410         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68411
68412 2006-04-24  Karl Berry  <karl@gnu.org>
68413
68414         * config/srclist.txt (longdouble.m4): sync lost.
68415
68416 2006-04-24  Eric Blake  <ebb9@byu.net>
68417
68418         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68419
68420 2006-04-24  Bruno Haible  <bruno@clisp.org>
68421
68422         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68423         poll() implementation in AIX.
68424         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68425
68426 2006-04-24  Bruno Haible  <bruno@clisp.org>
68427
68428         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68429         assigned exactly once.
68430
68431 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68432             Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68435         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68436         for AM_CPPFLAGS.
68437
68438 2006-04-23  Bruno Haible  <bruno@clisp.org>
68439
68440         * modules/copy-file: Depend on unistd.
68441         * modules/execute: Likewise.
68442         * modules/fatal-signal: Likewise.
68443         * modules/findprog: Likewise.
68444         * modules/mkdtemp : Likewise.
68445         * modules/pipe: Likewise.
68446         * modules/wait-process: Likewise.
68447
68448 2006-04-23  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68451         condition was already detected.
68452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68453
68454 2006-04-23  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/copy-file.c: Include <unistd.h> unconditionally.
68457         * lib/execute.c: Likewise.
68458         * lib/fatal-signal.c: Likewise.
68459         * lib/findprog.c: Likewise.
68460         * lib/mkdtemp.c: Likewise.
68461         * lib/pipe.h: Likewise.
68462         * lib/pipe.c: Likewise.
68463         * lib/wait-process.h: Likewise.
68464
68465 2006-04-23  Bruno Haible  <bruno@clisp.org>
68466
68467         * gnulib-tool (func_usage): Fix --import description. Document
68468         --update.
68469         (func_import): Create temporary file in a temporary directory, if
68470         --dry-run is specified. Silence errors from 'grep' when there are no
68471         m4 files in $m4dir.
68472         (func_create_testdir): Silence errors from 'grep' when there are no
68473         m4 files in $m4dir.
68474         Reported by Karl Berry <karl@freefriends.org>.
68475
68476 2006-04-20  Bruno Haible  <bruno@clisp.org>
68477
68478         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68479         one argument, so that the code will be portable to Autoconf 2.60.
68480         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68481         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68482         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68483
68484 2006-04-19  Derek Price  <derek@ximbiot.com>
68485             Eric Blake  <ebb9@byu.net>
68486
68487         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68488         rather than "/full/path.h".  Update comment to match.  Shorten &
68489         generalize m4_translit call via AS_TR_CPP.
68490
68491 2006-04-19  Derek Price  <derek@ximbiot.com>
68492             Eric Blake  <ebb9@byu.net>
68493
68494         * lib/inttypes.h: Correct grammar in comment.
68495
68496 2006-04-18  Derek Price  <derek@ximbiot.com>
68497             Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         * modules/inttypes: New file.
68500         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68501
68502 2006-04-18  Derek Price  <derek@ximbiot.com>
68503             Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68506         New files.
68507
68508 2006-04-18  Derek Price  <derek@ximbiot.com>
68509             Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * lib/inttypes.h: New file.
68512         * lib/strtoimax.c: Assume <inttypes.h>.
68513
68514 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68515
68516         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68517         isn't mounted.  Problem reported by Kir Kolyshkin.
68518
68519 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68520
68521         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68522         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68523         Derek R. Price.
68524         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68525         implementation.
68526
68527 2006-04-12  Eric Blake  <ebb9@byu.net>
68528
68529         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68530         is now done automatically by the corresponding Autoconf macro.
68531
68532 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68535         time_r.h.
68536
68537 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         Merge regex changes from libc, removing some of our
68540         POSIX-conformance changes that were rejected and redoing them in a
68541         less-intrusive way.
68542
68543         * lib/regcomp.c (re_compile_internal, init_dfa):
68544         Length arg is now size_t, not Idx.  All uses changed.
68545         (peek_token): Forward decl now says internal_function.
68546         (__re_error_msgid, __re_error_msgid_idx):
68547         Now static rather than extern with attribute_hidden.
68548         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68549         For some reason libc prefers K&R style defns for external functions.
68550         (regerror) [!defined _LIBC]: Likewise.
68551         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68552         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68553         (build_range_exp, build_collating_symbol):
68554         Use K&R-style defn.
68555         (re_compile_fastmap): Use '\0' to memset, not 0.
68556         (utf8_sb_map): Make the calculations more obvious.
68557         (init_dfa, parse_bracket_exp, build_charclass_op):
68558         Call calloc and cast result, as glibc does.
68559         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68560         (build_range_exp, build_collating_symbol):
68561         Now internal functions.
68562
68563         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68564
68565         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68566         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68567         Don't depend on VMS; depend on __VMS instead, for POSIX
68568         namespace cleanness.
68569         (regoff_t): Define to ssize_t, not long int.
68570
68571         Remove the REG_ macros named below.  Instead, make the old names
68572         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68573         __USE_GNU_REGEX.
68574         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68575         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68576         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68577         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68578         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68579         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68580         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68581         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68582         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68583         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68584         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68585         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68586         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68587         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68588         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68589         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68590         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68591         (REG_NREGS):
68592         Remove.  All uses replaced by the old RE_* names.
68593         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68594         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68595         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68596         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68597         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68598         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68599         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68600         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68601         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68602         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68603         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68604         Don't bother having these macros be independent of each others'
68605         values, since they no longer exist in the POSIX name space.
68606
68607         Rename the following member names back to their old names,
68608         unless !__USE_GNU_REGEX.  All uses changed back.
68609         (buffer): Renamed from re_buffer.
68610         (allocated): Renamed from re_allocated.
68611         (used): Renamed from re_used.
68612         (syntax): Renamed from re_syntax.
68613         (fastmap): Renamed from re_fastmap.
68614         (translate): Renamed from re_translate.
68615         (can_be_null): Renamed from re_can_be_null.
68616         (regs_allocated): Renamed from re_regs_allocated.
68617         (fastmap_accurate): Renamed from re_fastmap_accurate.
68618         (no_sub): Renamed from re_no_sub.
68619         (not_bol): Renamed from re_not_bol.
68620         (not_eol): Renamed from re_not_eol.
68621         (newline_anchor): Renamed from re_newline_anchor.
68622         (num_regs): Renamed from rm_num_regs.
68623         (start): Renamed from rm_start.
68624         (end): Renamed from rm_end.
68625
68626         (free_state): Move up a bit.
68627
68628         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68629         #define to be empty.
68630         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68631         when that is what is intended.
68632         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68633         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68634         (MAX): New macro.
68635         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68636         All uses changed back to re_malloc, etc.  It's now the caller's
68637         responsibility to check for overflow; all callers changed.
68638         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68639         (re_x2nrealloc): Remove.
68640         (free_state): Remove decl.
68641
68642         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68643         (re_set_registers, re_exec):
68644         Use K&R-style defn.
68645
68646         2006-01-31  Roland McGrath  <roland@redhat.com>
68647
68648         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68649         Reported by Mike Frysinger <vapier@gentoo.org>.
68650
68651         2006-01-15  Andreas Jaeger  <aj@suse.de>
68652
68653         [BZ #1950]
68654         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68655         build_wcs_upper_buffer change.
68656         (build_wcs_upper_buffer): Change return type.
68657
68658         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68659
68660         * lib/regex_internal.h: Include <stdint.h> if available.
68661
68662         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68663
68664         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68665
68666         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68667
68668         * lib/regcomp.c: Adjust for changed secondary hash function.
68669
68670         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68671
68672         * lib/regex.h: Pretty printing.
68673         Clean up namespace a bit.
68674
68675         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68676
68677         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68678         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68679
68680         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68681                     Ulrich Drepper  <drepper@redhat.com>
68682
68683         [BZ #1302]
68684         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68685         changed.
68686         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68687
68688         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68689
68690         [BZ #281]
68691         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68692         * lib/regcomp.c: Remove unnecessary uses of
68693         unsigned RE_TRANSLATE_TYPE.
68694         * lib/regex_internal.h: Likewise.
68695         * lib/regex_internal.c: Likewise.
68696         * lib/regexec.c: Likewise.
68697         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68698
68699         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68700
68701         * lib/regexec.c (find_recover_state): Remove unnecessary
68702         initialization.
68703         (transit_state_bkref): Make DFA a const pointer.
68704         (get_subexp): Likewise.
68705         (check_arrival): Likewise.
68706         (update_cur_sifted_state): Likewise.
68707         (re_search_internal): Likewise.
68708         (prune_impossible_nodes): Likewise.
68709         (acquire_init_state_context): Likewise.
68710         (proceed_next_node): Likewise.
68711         (set_regs): Likewise.
68712         (free_fail_stack_return): Likewise.
68713         (check_arrival_expand_ecl): Mark DFA parameter as const.
68714         (check_arrival_expand_ecl_sub): Likewise.
68715         (check_subexp_limits): Likewise.
68716         (sub_epsilon_src_nodes):  Likewise.
68717         (add_epsilon_src_nodes):  Likewise.
68718         (merge_state_array): Likewise.
68719         (update_regs): Likewise.
68720         (build_trtable): Likewise.
68721         (sift_states_backward): Mark MCTX parameter as const.
68722         (build_sifted_states): Likewise.
68723         (update_cur_sifted_state): Likewise.
68724         (sift_states_mkref): Likewise.
68725         (check_arrival_expand_ecl): Mark eclosure as const.
68726         (check_dst_limits_calc_pos_1): Likewise.
68727         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68728         pointer.
68729
68730         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68731
68732         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68733         (transit_state_sb): Likewise.
68734         (transit_state_mb): Likewise.
68735         (sift_states_iter_mb): Likewise.
68736         (check_arrival_add_next_nodes): Likewise.
68737         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68738         [_LIBC] (re_search_2_stub): Use mempcpy.
68739
68740         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68741         mbrtowc for very simple UTF-8 case.
68742
68743         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68744         a pointer-to-const.
68745         (re_acquire_state_context): Likewise.
68746         * lib/regex_internal.h: Adjust prototypes.
68747
68748         * lib/regex.c: Prevent using C++ compilers.
68749
68750         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68751         (re_acquire_state_context): Likewise.
68752
68753 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * modules/regex (Depends-on): Add ssize_t.
68756
68757 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68758
68759         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68760         translation table.
68761
68762 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68765
68766 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68767             Bruno Haible  <bruno@clisp.org>
68768
68769         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68770         <sys/types.h> and <inttypes.h>.
68771
68772 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68773
68774         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68775         `__error_t_defined', so argp.h will not typedef the former.
68776
68777 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68780         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68781         glibc names.  Even if glibc is changed to conform to POSIX, the
68782         traditional names will be available anyway, since regex depends on
68783         the extensions module.  Also, fix a longstanding typo in the
68784         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68785         reported by Emanuele Giaquinta.  Also, change sense of cached
68786         variable, so that the message makes sense.
68787
68788 2006-03-24  Simon Josefsson  <jas@extundo.com>
68789
68790         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68791         including some doc fixes.
68792         (base64_encode_alloc): Fix +1 bug on allocation failures.
68793
68794 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68795
68796         * lib/base64.c (base64_encode): Do not read past end of array with
68797         unsanitized input on systems with CHAR_BIT > 8.
68798
68799 2006-03-24  Eric Blake  <ebb9@byu.net>
68800
68801         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68802
68803 2006-03-22  Karl Berry  <karl@gnu.org>
68804
68805         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68806         * config/srclistvars.sh (COREUTILS): new var.
68807
68808 2006-03-17  Jim Meyering  <jim@meyering.net>
68809
68810         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68811         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68812
68813 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68816         no longer needs it.  Instead, check that regoff_t is as least
68817         as wide as ptrdiff_t.
68818
68819         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68820         so that our regex.h stays compatible with the installed regex.
68821         This is helpful for installers who configure --without-included-regex.
68822         Problem reported by Emanuele Giaquinta.
68823
68824 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68825
68826         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68827         Typedef to long int, not to off_, as POSIX will likely change
68828         in that direction.
68829
68830 2006-03-15  Eric Blake  <ebb9@byu.net>
68831
68832         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68833
68834 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68835
68836         * lib/argp-help.c (validate_uparams): Fix typo
68837         * lib/argp-parse.c (argp_default_options): Consistently begin help
68838         messages with a lowercase letter.
68839
68840 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68841
68842         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68843         overrun buffers and shouldn't be used (much as gets shouldn't be
68844         used).
68845         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68846
68847 2006-03-08  Simon Josefsson  <jas@extundo.com>
68848
68849         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68850         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68851
68852 2006-03-08  Simon Josefsson  <jas@extundo.com>
68853
68854         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68855         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68856
68857 2006-03-08  Simon Josefsson  <jas@extundo.com>
68858
68859         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68860         signal that configure disabled the device.
68861
68862 2006-03-08  Simon Josefsson  <jas@extundo.com>
68863
68864         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68865         languages.
68866
68867 2006-03-07  Simon Josefsson  <jas@extundo.com>
68868
68869         * modules/getopt (Depends-on): Add unistd.
68870
68871         * modules/unistd: New file.
68872
68873 2006-03-07  Simon Josefsson  <jas@extundo.com>
68874
68875         * modules/gc-random: New file.
68876
68877 2006-03-07  Simon Josefsson  <jas@extundo.com>
68878
68879         * m4/unistd_h.m4: New file.
68880
68881 2006-03-07  Simon Josefsson  <jas@extundo.com>
68882
68883         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68884         test to be side-effect free by storing the result in the cache
68885         variable gl_cv_lib_readline, and moving the assignment of
68886         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68887         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68888
68889 2006-03-07  Simon Josefsson  <jas@extundo.com>
68890
68891         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68892         error on missing devices (the functions will return an error).
68893
68894         * m4/gc.m4: Move random stuff to gc-random.m4
68895
68896 2006-03-07  Simon Josefsson  <jas@extundo.com>
68897
68898         * lib/unistd_.h: New file.
68899
68900 2006-03-07  Simon Josefsson  <jas@extundo.com>
68901
68902         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68903
68904 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68907         Problem reported by Juan Manuel Guerrero.
68908
68909 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68912         the unistd module.
68913         * lib/getlogin_r.c: Likewise.
68914         * lib/getlogin_r.h: Likewise.
68915         * lib/glob.c: Likewise.
68916         * lib/pagealign_alloc.c: Likewise.
68917         * lib/unistd_.h: Remove; no longer needed.
68918
68919 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68920
68921         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68922         Add unistd.
68923         * modules/c-stack (Depends-on): Add unistd.
68924         * modules/getlogin_r: Likewise.
68925         * modules/glob: Likewise.
68926         * modules/pagealign_alloc: Likewise.
68927         * modules/unistd (Files): Remove lib/unistd_.h.
68928         (EXTRA_DIST): Remove.
68929         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68930         need unistd_.h.
68931         (MOSTLYCLEANFILES): Remove unistd.h-t.
68932
68933 2006-03-03  Simon Josefsson  <jas@extundo.com>
68934
68935         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68936
68937 2006-03-03  Simon Josefsson  <jas@extundo.com>
68938
68939         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68940         libidn and bison.
68941
68942 2006-03-03  Simon Josefsson  <jas@extundo.com>
68943
68944         * build-aux/maint.mk: Add indent target.
68945
68946 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68947
68948         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68949         our replacement poll.h in any case, to avoid a differing
68950         declaration from a system header.  Seen on AIX.
68951
68952 2006-03-01  Simon Josefsson  <jas@extundo.com>
68953
68954         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68955         <kasal@ucw.cz>.
68956
68957 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68958
68959         * modules/gettime (Depends-on): Add extensions module.
68960         * modules/nanosleep (Depends-on): Likewise.
68961         * modules/settime (Depends-on): Likewise.
68962
68963 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68966         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68967         pedantically.
68968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68969         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68970
68971         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68972         not "==".  Reported by Ralf Wildenhues.
68973
68974 2006-03-01  Karl Berry  <karl@gnu.org>
68975
68976         * doc/Copyright/request-*: new files, synced from gnuorg.
68977
68978 2006-03-01  Karl Berry  <karl@gnu.org>
68979
68980         * config/srclist.txt (Copyright/*): new entries.
68981
68982 2006-02-28  Simon Josefsson  <jas@extundo.com>
68983
68984         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68985
68986 2006-02-27  Simon Josefsson  <jas@extundo.com>
68987
68988         * lib/base64.h: Indent #define's.  From Jim Meyering
68989         <jim@meyering.net>.
68990
68991 2006-02-27  Jim Meyering  <jim@meyering.net>
68992
68993         Revert the change of 2006-02-24, so these files can continue
68994         to be sync'd from gettext.
68995         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68996         of `config.h'.
68997
68998 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * modules/intprops: New file.
69001         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69002         Add intprops.
69003         * modules/getloadavg (Files): Remove lib/intprops.h.
69004         (Depends-on): Add intprops.
69005         * modules/human: Likewise.
69006         * modules/inttostr: Likewise.
69007         * modules/openat: Likewise.
69008         * modules/sig2str: Likewise.
69009         * modules/userspec: Likewise.
69010         * modules/utimecmp: Likewise.
69011         * modules/xnanosleep: Likewise.
69012         * modules/xstrtol: Likewise.
69013
69014 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69015
69016         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69017         * modules/lock-tests (TESTS): Use $(EXEEXT).
69018         * modules/tls-tests: Likewise.
69019         * modules/argp-tests: Likewise.
69020         (check_PROGRAMS): New var, replacing...
69021         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69022
69023 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69024
69025         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69026         `config.h'.
69027
69028 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69031
69032 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69033
69034         Sync from coreutils.
69035         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69036         gl_CHDIR_SAFER.
69037
69038 2006-02-22  Jim Meyering  <jim@meyering.net>
69039
69040         Sync from coreutils.
69041         * m4/chdir-safer.m4: New file.
69042
69043 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69046         AT_FDCWD exceeds INT_MAX.
69047         * lib/openat.h (AT_FDCWD): Likewise.
69048
69049 2006-02-17  Eric Blake  <address@hidden>
69050
69051         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69052
69053 2006-02-16  Simon Josefsson  <jas@extundo.com>
69054
69055         * modules/getaddrinfo (Depends-on): Add sys_socket.
69056
69057 2006-02-15  Simon Josefsson  <jas@extundo.com>
69058
69059         * build-aux/maint.mk: Add dsyntax-check rule.
69060
69061 2006-02-15  Eric Blake  <ebb9@byu.net>
69062
69063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69064         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69065         'present but cannot compile' warnings on cygwin.
69066         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69067         use ws2tcpip.h if sys/socket.h works.
69068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69069         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69070
69071 2006-02-14  Simon Josefsson  <jas@extundo.com>
69072
69073         * modules/maintainer-makefile (Files): Rename.
69074
69075         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69076         and (the local) Makefile.cfg to maint-cfg.mk.
69077
69078         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69079         to the latter.
69080
69081         * modules/maintainer-makefile: New module.
69082
69083         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69084         severaly stripped to make it possible to build it up from scratch
69085         with reliable tests.
69086
69087         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69088         fixes to permit overriding the default actions when configure and
69089         makefile are not available.
69090
69091 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         Sync from coreutils.
69094         * modules/lstat (Depends-on): Don't depend on xalloc.
69095         (License): Change from GPL to LGPL, since this is now simply a
69096         replacement for a libc function.
69097
69098 2006-02-14  Jim Meyering  <jim@meyering.net>
69099
69100         Sync from coreutils.
69101
69102         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69103         failure on deficient systems, and simplify gnulib lgpl dependencies.
69104         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69105         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69106
69107         * lib/xalloc-die.c: Remove unused definition of N_.
69108
69109 2006-02-14  Jim Meyering  <jim@meyering.net>
69110
69111         Sync from coreutils.
69112         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69113         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69114         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69115         double-quote uses of that variable, to accommodate the rare case in
69116         which getmntent is available in none of the libraries checked.  This
69117         happens at least on FreeBSD 5.0.
69118
69119 2006-02-13  Simon Josefsson  <jas@extundo.com>
69120
69121         * gnulib-tool (Usage): Fix --import, from
69122         karl@freefriends.org (Karl Berry).
69123
69124 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69125
69126         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69127
69128 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69129
69130         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69131         "autoupdate" on 2005-12-12.
69132
69133 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         * modules/closeout (Depends-on): Remove atexit.
69136
69137 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69138
69139         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69140         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69141
69142 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69145         __EXTENSIONS__ if this causes compilation to fail.  Problem
69146         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69147         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69148
69149 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69152         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69154         All uses changed.
69155
69156 2006-01-26  Simon Josefsson  <jas@extundo.com>
69157
69158         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69159         prototype is visible on mingw32.
69160
69161         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69162         for mingw32.
69163
69164         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69165         mingw32).
69166
69167 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69170         attempt to open for write; this always fails, at least on POSIX
69171         hosts.  This reinstates the 2006-01-09 change, which was
69172         inadvertently removed.
69173
69174 2006-01-26  Bruno Haible  <bruno@clisp.org>
69175
69176         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69177         Reported by Paul Eggert.
69178
69179 2006-01-26  Bruno Haible  <bruno@clisp.org>
69180             Paul Eggert  <eggert@cs.ucla.edu>
69181
69182         * lib/stdbool_.h (_Bool)
69183         [(! (defined __cplusplus || defined __BEOS__)
69184           && !defined __GNUC__
69185           && !(defined __HP_cc || defined __xlc__
69186                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69187                || defined __sgi))]:
69188         #define to signed char in these cases too; this simplifies
69189         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69190         etc., separately) and makes it more conservative.
69191
69192 2006-01-25  Simon Josefsson  <jas@extundo.com>
69193
69194         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69195         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69196         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69197
69198 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69199
69200         * lib/argp-namefrob.h: Bugfix. Remove stray #
69201
69202 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69205         so that we test the test.
69206         Check for yet another HP-UX cc bug involving *bool |= bool.
69207
69208 2006-01-25  Karl Berry  <karl@gnu.org>
69209
69210         * config/srclist.txt (vasnprintf.c): sync lost.
69211
69212 2006-01-25  Jim Meyering  <jim@meyering.net>
69213
69214         Sync from the stable (b5) branch of coreutils:
69215
69216         * lib/fts.c (fts_children): Don't let close() clobber errno from
69217         failed fchdir().
69218
69219         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69220         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69221         a dangling symlink.  That can also happen at least for ELOOP.
69222         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69223         FYI, this bug predates the inclusion of fts.c in coreutils.
69224
69225         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69226         in their own block, so pre-c99 compilers don't object.
69227
69228         Avoid the double-free (first in fts_read, second in fts_close) that
69229         would occur when an `active' directory is made inaccessible (e.g.,
69230         via chmod a-x) during a traversal.
69231         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69232         before returning.  Reproduce this failure by
69233         mkdir -p a/b; cd a; chmod a-x . b
69234         Reported by Stavros Passas.
69235
69236 2006-01-25  Jim Meyering  <jim@meyering.net>
69237
69238         * lib/fileblocks.c: Remove more useless parentheses.
69239         * lib/readutmp.h: Likewise.
69240
69241 2006-01-25  Bruno Haible  <bruno@clisp.org>
69242
69243         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69244         warnings.
69245         Reported by Paul Eggert.
69246
69247 2006-01-25  Bruno Haible  <bruno@clisp.org>
69248
69249         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69250         rid of a trap command. For Solaris sh.
69251         Reported by Mark D. Baushke <mdb@gnu.org>.
69252
69253 2006-01-24  Simon Josefsson  <jas@extundo.com>
69254
69255         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69256         Bruno.
69257
69258 2006-01-24  Karl Berry  <karl@gnu.org>
69259
69260         * config/srclist.txt (argp-namefrob.h): sync lost.
69261
69262 2006-01-24  Jim Meyering  <jim@meyering.net>
69263
69264         * modules/openat (Files): Add lib/intprops.h.
69265         From Mark D. Baushke.
69266
69267 2006-01-24  Jim Meyering  <jim@meyering.net>
69268
69269         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69270         Reported by Mark D. Baushke.
69271
69272 2006-01-24  Jim Meyering  <jim@meyering.net>
69273
69274         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69275
69276 2006-01-24  Bruno Haible  <bruno@clisp.org>
69277
69278         * modules/strnlen (Maintainer): Change from glibc to all.
69279
69280 2006-01-24  Bruno Haible  <bruno@clisp.org>
69281
69282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69283         Patch by Paul Eggert.
69284
69285 2006-01-24  Bruno Haible  <bruno@clisp.org>
69286
69287         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69288         already has it.
69289         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69290         2005-11-26.
69291
69292         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69293         'signed char' to avoid problems with the built-in _Bool type.
69294         Reported by Paul Eggert on 2005-11-26.
69295
69296 2006-01-24  Bruno Haible  <bruno@clisp.org>
69297
69298         * gnulib-tool (func_import): Avoid constructing complicated sed
69299         expressions inside backquote.
69300         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69301
69302 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69303
69304         These changes imported from libc.
69305         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69306         test and two separate function calls.
69307         * lib/strndup.c (__strndup): Add libc_hidden_def.
69308
69309 2006-01-23  Simon Josefsson  <jas@extundo.com>
69310
69311         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69312         Remove the test_*_SOURCES variable: automake infers it by default.
69313         * modules/tls-tests: Likewise.
69314
69315 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         Work around porting bugs reported by Dieter in
69318         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69319         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69320         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69321         Include "getopt.h" first, to check interface.
69322         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69323         !HAVE_DECL_GETENV.
69324         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69325         (__strndup): Revert to K&R-style function dfns, the glibc style.
69326         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69327         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69328         Include strnlen.h first, to get prototype properly.
69329         (strnlen): Renamed from __strnlen.
69330         Remove weak alias.
69331
69332 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69335
69336 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69337
69338         * config/srclist.txt: Adjust to reflect glibc reorganization.
69339         This affects only comments.
69340
69341 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69342
69343          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69344          Reported by Bruce Korb <bkorb@gnu.org>.
69345
69346 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69349         to pacify gcc -Wswitch-default.
69350
69351 2006-01-22  Bruno Haible  <bruno@clisp.org>
69352
69353         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69354         temporary buffer for sprintf, take into account the precision also
69355         for 'd', 'i', 'u', 'o', 'x', 'X'.
69356
69357 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69358
69359         * modules/argp-tests: New module
69360         * tests/test-argp.c: New file
69361         * tests/test-argp-2.sh: New file
69362
69363 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69364
69365         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69366         (__argp_base_name): Removed
69367         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69368         typo.
69369         (__argp_base_name): Provide macro definition or extern declaration
69370         depending on the configuration
69371
69372 2006-01-20  Simon Josefsson  <jas@extundo.com>
69373
69374         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69375
69376 2006-01-20  Simon Josefsson  <jas@extundo.com>
69377
69378         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69379
69380 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69383         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69384         Suggested by Bruno Haible.
69385
69386 2006-01-20  Karl Berry  <karl@gnu.org>
69387
69388         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69389         until changes propagate, I guess.
69390
69391 2006-01-19  Simon Josefsson  <jas@extundo.com>
69392
69393         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69394
69395 2006-01-19  Simon Josefsson  <jas@extundo.com>
69396
69397         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69398
69399 2006-01-19  Simon Josefsson  <jas@extundo.com>
69400
69401         * gnulib-tool: Set check_PROGRAMS.
69402
69403         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69404         modules/des-tests, modules/gc-arcfour-tests,
69405         modules/gc-arctwo-tests, modules/gc-des-tests,
69406         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69407         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69408         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69409         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69410         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69411         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69412         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69413         test_*_SOURCES.
69414
69415 2006-01-18  Simon Josefsson  <jas@extundo.com>
69416
69417         * modules/socklen (Depends-on): Depend on sys_socket.
69418
69419 2006-01-18  Simon Josefsson  <jas@extundo.com>
69420
69421         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69422         modules/des-tests, modules/gc-arcfour-tests,
69423         modules/gc-arctwo-tests, modules/gc-des-tests,
69424         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69425         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69426         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69427         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69428         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69429         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69430         $(EXEEXT) to automake TESTS variable, for mingw32.
69431
69432 2006-01-17  Simon Josefsson  <jas@extundo.com>
69433
69434         * modules/socklen (Include): Need sys/socket.h.
69435
69436 2006-01-17  Bruno Haible  <bruno@clisp.org>
69437
69438         * modules/ssize_t (Include): Add <sys/types.h>.
69439
69440 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69443         it's not portable and it doesn't work with cross-compiles.
69444         Problem reported by Bruno Haible.  Fix missing-$ typo in
69445         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69446         -zignore from being used with Sun's C compiler.
69447
69448 2006-01-12  Simon Josefsson  <jas@extundo.com>
69449
69450         * lib/base64.c: Fix warning, reported by Bruno Haible
69451         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69452
69453 2006-01-12  Bruno Haible  <bruno@clisp.org>
69454
69455         * modules/ldd: New file.
69456         * build-aux/ldd.sh.in: New file.
69457         * MODULES.html.sh (Support for building libraries and executables): Add
69458         ldd.
69459
69460 2006-01-12  Bruno Haible  <bruno@clisp.org>
69461
69462         * m4/ldd.m4: New file.
69463
69464 2006-01-12  Bruno Haible  <bruno@clisp.org>
69465
69466         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69467         endless loop while replacing $auxdir with build-aux.
69468
69469 2006-01-11  Simon Josefsson  <jas@extundo.com>
69470
69471         * lib/stdint_.h (SIZE_MAX): Add missing (.
69472
69473 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         Sync from coreutils.
69476         * lib/md5.c: Fix commentary typos.
69477         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69478         * lib/md5.h (__attribute__): Remove; unused.
69479         * lib/sha1.c: Fix commentary to match md5 better.
69480         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69481         so that we don't need to worry about alignment.  All uses changed.
69482         This merges the 2005-10-28 md5 change into sha1.
69483
69484 2006-01-11  Jim Meyering  <jim@meyering.net>
69485
69486         Sync from coreutils.
69487         * lib/md5.c (OP): Fix spacing.
69488
69489 2006-01-11  Bruno Haible  <bruno@clisp.org>
69490
69491         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69492         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69493         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69494
69495 2006-01-11  Bruno Haible  <bruno@clisp.org>
69496
69497         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69498         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69499         the "early" section as well.
69500
69501 2006-01-11  Bruno Haible  <bruno@clisp.org>
69502
69503         Avoid "ar: no archive members specified" error on MacOS X.
69504         * gnulib-tool (func_modules_add_dummy): New function.
69505         (func_import, func_create_testdir): Invoke it.
69506
69507 2006-01-11  Bruno Haible  <bruno@clisp.org>
69508
69509         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69510         with $auxdir in AC_CONFIG_FILES statements.
69511
69512 2006-01-11  Bruno Haible  <bruno@clisp.org>
69513
69514         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69515         Initialize also noinst_HEADERS to empty.
69516
69517 2006-01-11  Bruno Haible  <bruno@clisp.org>
69518
69519         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69520         variables.
69521         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69522         autoreconf.
69523
69524 2006-01-11  Bruno Haible  <bruno@clisp.org>
69525
69526         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69527         overridable by the user.
69528         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69529
69530 2006-01-10  Simon Josefsson  <jas@extundo.com>
69531
69532         * modules/sys_socket: New file.
69533
69534 2006-01-10  Simon Josefsson  <jas@extundo.com>
69535
69536         * m4/sys_socket_h.m4: New file.
69537
69538 2006-01-10  Simon Josefsson  <jas@extundo.com>
69539
69540         * lib/socket_.h: New file.
69541
69542 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * modules/readutmp (Maintainer): Add myself.
69545
69546 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69549         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69550         People who are still concerned with buggy memcmp implementations
69551         can invoke gl_FUNC_MEMCMP themselves.
69552
69553 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         * lib/regex_internal.h (BITSET_WORD_BITS):
69556         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69557         preprocessor mishandles large unsigned values as if they were signed.
69558         Problem reported by Claudio Fontana in
69559         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69560
69561 2006-01-10  Jim Meyering  <jim@meyering.net>
69562
69563         Avoid the double-free (first in fts_read, second in fts_close) that
69564         would occur when an `active' directory is made inaccessible (e.g.,
69565         via chmod a-x) during a traversal.
69566         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69567         before returning.  Reproduce this failure by
69568         mkdir -p a/b; cd a; chmod a-x . b
69569         Reported by Stavros Passas.
69570
69571         Sync from coreutils.
69572         * lib/sha1.c: Tweak grammar in a comment.
69573
69574 2006-01-10  Jim Meyering  <jim@meyering.net>
69575
69576         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69577         Patch by Joerg Sonnenberger.
69578
69579 2006-01-10  Bruno Haible  <bruno@clisp.org>
69580
69581         * modules/readutmp: Depend on module free.
69582         * modules/strtok_r: Depend on module restrict.
69583
69584 2006-01-10  Bruno Haible  <bruno@clisp.org>
69585
69586         * modules/gettext (configure.ac): Add an invocation of
69587         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69588
69589 2006-01-10  Bruno Haible  <bruno@clisp.org>
69590
69591         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69592         Reported by Werner Lemberg <wl@gnu.org>.
69593
69594 2006-01-10  Bruno Haible  <bruno@clisp.org>
69595
69596         * lib/localcharset.c: Update from GNU gettext.
69597
69598 2006-01-10  Bruno Haible  <bruno@clisp.org>
69599
69600         * lib/argp.h (__const): Remove macro. Use const instead.
69601         * lib/argp-fmtstream.h (__const): Likewise.
69602         * lib/glob_.h (__const): Remove macro.
69603         * lib/glob-libc.h: Use const instead of __const.
69604
69605 2006-01-10  Bruno Haible  <bruno@clisp.org>
69606
69607         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69608         variable.
69609         Needed to avoid an automake error regarding the 'gettext' module.
69610
69611 2006-01-09  Simon Josefsson  <jas@extundo.com>
69612
69613         * modules/inet_ntop (Depends-on): Add restrict.
69614
69615 2006-01-09  Simon Josefsson  <jas@extundo.com>
69616
69617         * modules/gc-rijndael-tests (License): Put under LGPL.
69618
69619         * modules/gc-des-tests (License): Likewise.
69620
69621         * modules/gc-arcfour-tests (License): Likewise.
69622
69623         * modules/gc-arctwo-tests (License): Likewise.
69624
69625         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69626
69627         * modules/gc-hmac-sha1-tests (Files): Likewise.
69628
69629         * modules/gc-hmac-md5-tests (License): Likewise.
69630
69631         * modules/gc-sha1-tests (License): Likewise.
69632
69633         * modules/gc-md5-tests (License): Likewise.
69634
69635         * modules/gc-md4-tests (License): Likewise.
69636
69637         * modules/gc-md2-tests (License): Likewise.
69638
69639         * modules/gc-tests (License): Likewise.
69640
69641         * modules/des-tests (License): Likewise.
69642
69643         * modules/md4-tests (License): Likewise.
69644
69645         * modules/md2-tests (License): Likewise.
69646
69647 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         Sync from coreutils:
69650
69651         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69652         * modules/lib-ignore: New file.
69653         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69654         chdir-safer.m4, lchmod.m4.
69655         * modules/openat: Add mkdirat.c, openat-priv.h.
69656
69657 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         Sync from coreutils.
69660         * m4/lib-ignore.m4: New file.
69661         * m4/lchmod.m4: New file.
69662
69663 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         Sync from coreutils.
69666         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69667         for write access: POSIX says that must fail.
69668         * lib/fts.c (diropen): Likewise.
69669         * lib/save-cwd.c (save_cwd): Likewise.
69670         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69671         well, for minor improvements on hosts that lack O_DIRECTORY.
69672         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69673         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69674         Fall back on chown if open failed with EACCES.
69675
69676         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69677         Report an error at compile-time if only a 1-second nominal clock
69678         resolution is found.
69679
69680         * lib/lchmod.h: New file.
69681         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69682         (make_dir_parents): Use lchown rather than chown, and
69683         lchmod rather than chmod.
69684
69685         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69686         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69687         "proc" reported by n0dalus.
69688
69689         * lib/mountlist.c: Include <limits.h>.
69690         (dev_from_mount_options)
69691         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69692         New function.  It no longer assumes "dev=" has the System V meaning
69693         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69694         (read_file_system_list)
69695         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69696         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69697         dev= in that case.
69698
69699         * lib/posixtm.h (PDS_PRE_2000): New macro.
69700         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69701         allow_century.  All usages changed.  Reject dates outside the range
69702         1969-1999 if PDS_PRE_2000 is used.
69703
69704 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         Sync from coreutils.
69707         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69708         (Time of day items): Mention the possibility of leap seconds.
69709         Problem reported by Dr. David Alan Gilbert.
69710
69711 2006-01-09  Jim Meyering  <jim@meyering.net>
69712
69713         Sync from coreutils.
69714
69715         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69716
69717         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69718
69719         * lib/modechange.c (mode_compile): Reject an invalid mode string
69720         that starts with an octal digit.  From Andreas Gruenbacher.
69721
69722         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69723         and dup to open_safer and dup_safer, respectively.
69724         (openat_permissive): Fix typo in comment.
69725
69726         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69727         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69728         (_): Remove; no longer needed.
69729         (openat): Renamed from rpl_openat; no need for rpl_openat
69730         since openat.h renames openat for us.
69731         Replace most of the body with a call to openat_permissive,
69732         to avoid duplicate code.
69733         Port to (probably hypothetical) environments were mode_t is
69734         wider than int.
69735         (openat_permissive): Require mode arg, so that we can check
69736         types better.  Put it just after flags.  Change cwd failure
69737         indicator from pointer-to-bool to pointer-to-errno-value.
69738         All callers changed.
69739         Invoke openat_save_fail and/or openat_restore_fail if
69740         cwd_errno is null, so that openat can call us.
69741         (openat_permissive, fdopendir, fstatat, unlinkat):
69742         Simplify errno handling to avoid some duplicate code,
69743         as it's OK to set errno on success.
69744         * lib/openat.h: Revamp code so that function macros depend on
69745         __OPENAT_PREFIX only, not also on AT_FDCWD.
69746         (openat_ro): Remove.  Caller changed to use openat_permissive.
69747         (openat_permissive): Now a macro, if not a function.
69748         (openat_restore_fail, openat_save_fail): Now always functions,
69749         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69750
69751         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69752         and openat.c.
69753         * lib/mkdirat.c: Include openat-priv.h.
69754         Remove definitions of macros defined therein.
69755         * lib/openat.c: Likewise.
69756
69757         * lib/mkdirat.c (mkdirat): New file and function.
69758         * lib/openat.h (mkdirat): Declare.
69759
69760         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69761
69762         * lib/openat.h (openat_permissive): Declare.
69763         (openat_ro): Define.
69764
69765         * lib/openat.c (EXPECTED_ERRNO): New macro.
69766         (openat_permissive): New function -- used in remove.c rewrite.
69767         (all functions): Set errno just before returning, only if there
69768         was an actual failure.
69769         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69770
69771         Emulate openat-family functions using Linux's procfs, if possible.
69772         Idea and some code based on Ulrich Drepper's glibc changes.
69773
69774         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69775         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69776         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69777         before falling back on save_cwd and restore_cwd.
69778         (fdopendir, fstatat, unlinkat): Likewise.
69779
69780         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69781         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69782
69783         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69784         as second argument to va_arg.  Otherwise, some versions of gcc
69785         warn that `if this code is reached, the program will abort'.
69786
69787 2006-01-09  Jim Meyering  <jim@meyering.net>
69788
69789         Sync from coreutils.
69790         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69791         Require openat-priv.h.
69792
69793 2006-01-09  Bruno Haible  <bruno@clisp.org>
69794
69795         * modules/strnlen (Include): Use strnlen.h.
69796
69797 2006-01-09  Bruno Haible  <bruno@clisp.org>
69798
69799         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69800
69801 2006-01-09  Bruno Haible  <bruno@clisp.org>
69802
69803         * lib/sysexit_.h (EX_OK): New macro.
69804         Suggested by Martin Lambers <marlam@marlam.de>.
69805
69806 2006-01-09  Bruno Haible  <bruno@clisp.org>
69807
69808         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69809         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69810
69811 2006-01-09  Bruno Haible  <bruno@clisp.org>
69812
69813         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69814         numbers.
69815
69816 2006-01-09  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69819         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69820         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69821         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69822
69823 2006-01-09  Bruno Haible  <bruno@clisp.org>
69824
69825         * build-aux/javacomp.sh.in: New file, moved from lib/.
69826         * modules/javacomp-script (Files): Update.
69827         (configure.ac): Add AC_CONFIG_FILES invocation.
69828         (EXTRA_DIST): Remove variable.
69829
69830         * build-aux/javaexec.sh.in: New file, moved from lib/.
69831         * modules/javaexec (Files): Update.
69832         (configure.ac): Add AC_CONFIG_FILES invocation.
69833         (EXTRA_DIST): Remove javaexec.sh.in.
69834
69835         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69836         * modules/csharpcomp-script (Files): Update.
69837         (configure.ac): Add AC_CONFIG_FILES invocation.
69838         (EXTRA_DIST): Remove variable.
69839
69840         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69841         * modules/csharpexec (Files): Update.
69842         (configure.ac): Add AC_CONFIG_FILES invocation.
69843         (EXTRA_DIST): Remove csharpexec.sh.in.
69844
69845 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69846
69847         Sync from coreutils.
69848
69849         Add POSIX ACL support
69850         * lib/acl.h (copy_acl, set_acl): Add declarations.
69851         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69852         systems other than Linux.
69853         (chmod_or_fchmod): New function: use fchmod when possible,
69854         and chmod otherwise.
69855         (file_has_acl): Add a POSIX ACL implementation, with a
69856         Linux-specific subcase.
69857         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69858         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69859         acls are unsupported.
69860         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69861         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69862         are unsupported.
69863
69864 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69865
69866         Sync from coreutils.
69867         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69868
69869 2006-01-07  Bruno Haible  <bruno@clisp.org>
69870
69871         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69872         gl_EARLY.
69873
69874 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69877         Problem reported for Mingw by Mark Junker.
69878
69879 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69880
69881         * README: Gnulib normally doesn't generate a tarball.
69882
69883 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69886         long int, not int, for nanosecond counts, so that people who are
69887         used to POSIX struct timespec won't be surprised.  Reported by Jim
69888         Meyering.
69889
69890 2005-12-28  Bruno Haible  <bruno@clisp.org>
69891
69892         * build-aux/config.rpath: Update from GNU gettext.
69893
69894 2005-12-16  Jim Meyering  <jim@meyering.net>
69895
69896         * modules/fprintftime: New module.
69897         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69898
69899 2005-12-16  Jim Meyering  <jim@meyering.net>
69900
69901         * m4/fprintftime.m4: New file.
69902
69903 2005-12-16  Jim Meyering  <jim@meyering.net>
69904
69905         * lib/fprintftime.c, lib/fprintftime.h: New files.
69906
69907 2005-12-15  Simon Josefsson  <jas@extundo.com>
69908
69909         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69910         new m4/socklen.m4.
69911
69912 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69913
69914         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69915         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69916
69917 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69918
69919         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69920         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69921         struct uparams is valid. Fall back to the default values if it is
69922         not.
69923
69924 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69925
69926         * modules/argp (Files): Add argp-pin.c
69927         (Depends-on): dirname
69928         (lib_SOURCES): Add argp-pin.c
69929
69930 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69931
69932         * m4/argp.m4:  Check if program_invocation_name and
69933         program_invocation_short_name are declared and define appropriate
69934         macros if they are not.
69935
69936 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69937
69938         * lib/argp-help.c (__argp_base_name): New function
69939         (__argp_short_program_name): Rewrite using __argp_base_name
69940         * lib/argp-namefrob.h: Define program_invocation_name and
69941         program_invocation_short_name if requested
69942         (__argp_base_name): Add prototype
69943         * lib/argp-parse.c (argp_def): Use gettext wrappers
69944         (argp_default_parser): Use __argp_base_name
69945         * lib/argp-pin.c: New file. Defines program_invocation_name and
69946         program_invocation_short_name on systems that lack them.
69947
69948 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69951         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69952         porting problem reported by Georg Schwarz in
69953         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69954
69955 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69956
69957         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69958         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69959         porting problem reported by Georg Schwarz in
69960         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69961
69962 2005-12-05  Bruno Haible  <bruno@clisp.org>
69963
69964         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69965         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69966         Reported by Mark Junker <mjscod@gmx.de>.
69967
69968 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69971         Use implementation from Albert Chin, with some
69972         comments/corrections by Stepan Kasal and myself.
69973
69974 2005-12-02  Bruno Haible  <bruno@clisp.org>
69975
69976         * gnulib-tool (func_import): Accept GPLed build tool modules when
69977         --lgpl is given.
69978         * modules/csharpcomp-script: New file.
69979         * modules/csharpcomp: Depend on it.
69980         * modules/javacomp-script: New file.
69981         * modules/javacomp: Depend on it.
69982         Suggested by Simon Josefsson.
69983
69984 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69985
69986         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69987         statement, to work around an HP-UX 10.20 compiler bug reported by
69988         Peter O'Gorman.
69989
69990 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         * modules/savedir (Depends-on): Add openat.
69993
69994 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69997         (uintmax_t) [defined uintmax_t]: Do not declare.
69998         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69999         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70000         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70001         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70002         sake of portability to weird hosts that C allows (though we don't
70003         know of any practical examples).
70004
70005         * lib/savedir.h (fdsavedir): New decl.
70006         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70007         contains most of the former guts of savedir.
70008         (savedir): Use savedirstream.
70009         Include "openat.h".
70010
70011 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70012
70013         * modules/obstack (Files): Add m4/ulonglong.m4.
70014         Problem reported by Davide Angelocola.
70015
70016 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70017
70018         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70019         coreutils no longer futzes with rounding modes.
70020
70021 2005-11-14  Jim Meyering  <jim@meyering.net>
70022
70023         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70024         replacement of mkstemp.
70025
70026 2005-11-10  Simon Josefsson  <jas@extundo.com>
70027
70028         * lib/readline.c: Remove EOL.
70029
70030 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         * modules/gethrxtime (Depends-on): Add gettime.
70033
70034 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70037         or gettimeofday; no longer needed.
70038
70039 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70042         time business.
70043         (gethrxtime) [! (HAVE_NANOUPTIME
70044         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70045         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70046         our own approximation.
70047
70048 2005-11-08  Eric Blake  <ebb9@byu.net>
70049
70050         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70051
70052 2005-11-08  Eric Blake  <ebb9@byu.net>
70053
70054         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70055
70056 2005-11-04  Bruno Haible  <bruno@clisp.org>
70057
70058         * gnulib-tool: Implement --update mode.
70059
70060 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         Fix porting problem reported by Theodoros V. Kalamatianos.
70063         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70064         Don't assume that futimes failing means we must fail.
70065
70066 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70069         variables to suggest the intended function of the PATH_MAX check.
70070
70071 2005-10-30  Kean Johnston  <jkj@sco.com>
70072
70073         Trivial changes to support SCO systems.
70074         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70075         as PATH_MAX.
70076         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70077         where __ptr is null when no I/O is pending.
70078
70079 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70082         leave errno alone.  Problem reported by Dmitry V. Levin.
70083
70084 2005-10-28  Simon Josefsson  <jas@extundo.com>
70085
70086         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70087         Test more.
70088
70089         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70090
70091         * modules/md2, modules/md2-tests: New files.
70092
70093 2005-10-28  Simon Josefsson  <jas@extundo.com>
70094
70095         * m4/inet_ntop.m4: More tests.
70096
70097         * m4/gc-md2.m4, md2.m4: New file.
70098
70099 2005-10-28  Simon Josefsson  <jas@extundo.com>
70100
70101         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70102         "restrict" keywords, as per POSIX.  Protect the function
70103         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70104         Don't use K&R prototypes.  Check the sprintf return values.
70105         Re-define EAFNOSUPPORT if not present.  Indent.
70106
70107         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70108         suggested by Bruno Haible <bruno@clisp.org>.
70109
70110         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70111
70112         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70113
70114         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70115         libgcrypt).
70116
70117         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70118
70119         * lib/md2.h, lib/md2.c: New files.
70120
70121 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70124         errno alone.  Problem reported by Frederic Jolliton.
70125
70126 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         * modules/verify (License): Change from GPL to LGPL.  This is a
70129         tiny module and there are apparently near-equivalents that are
70130         under the BSD license.
70131
70132 2005-10-24  Simon Josefsson  <jas@extundo.com>
70133
70134         * modules/sha1: Relicense to LGPL.
70135
70136 2005-10-24  Simon Josefsson  <jas@extundo.com>
70137
70138         * lib/md4.h: Shrink buffer size, now that we changed the type.
70139
70140 2005-10-23  Simon Josefsson  <jas@extundo.com>
70141
70142         * gnulib-tool (func_import): Fix --tests-base.
70143
70144 2005-10-22  Simon Josefsson  <jas@extundo.com>
70145
70146         * modules/arcfour (Depends-on): Need stdint.
70147
70148 2005-10-22  Simon Josefsson  <jas@extundo.com>
70149
70150         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70151         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70152
70153 2005-10-22  Simon Josefsson  <jas@extundo.com>
70154
70155         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70156         suggested by Bruno Haible <bruno@clisp.org>.
70157
70158 2005-10-22  Simon Josefsson  <jas@extundo.com>
70159
70160         * lib/crc.h: Include stddef.h, for size_t.
70161
70162 2005-10-22  Simon Josefsson  <jas@extundo.com>
70163
70164         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70165         arcfour_context struct (simplify test vector testing in GNU
70166         Shishi).
70167
70168 2005-10-21  Simon Josefsson  <jas@extundo.com>
70169
70170         * modules/des, modules/des-tests: New files.
70171
70172         * modules/gc-des, modules/gc-des-tests: New files.
70173
70174         * tests/test-des.c, tests/test-gc-des.c: New file.
70175
70176 2005-10-21  Simon Josefsson  <jas@extundo.com>
70177
70178         * modules/arctwo, modules/arctwo-tests: New files.
70179
70180         * tests/test-arctwo.c: New file.
70181
70182         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70183
70184         * tests/test-gc-arctwo.c: New file.
70185
70186 2005-10-21  Simon Josefsson  <jas@extundo.com>
70187
70188         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70189         Bruno Haible <bruno@clisp.org>.
70190
70191         * m4/gc-des.m4: New file.
70192
70193 2005-10-21  Simon Josefsson  <jas@extundo.com>
70194
70195         * m4/arctwo.m4: New file.
70196
70197         * m4/gc-arctwo.m4: New file.
70198
70199 2005-10-21  Simon Josefsson  <jas@extundo.com>
70200
70201         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70202         block.
70203
70204 2005-10-21  Simon Josefsson  <jas@extundo.com>
70205
70206         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70207         <bruno@clisp.org>.
70208
70209         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70210
70211         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70212         Bruno Haible <bruno@clisp.org>.
70213
70214         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70215         <bruno@clisp.org>.
70216
70217 2005-10-21  Simon Josefsson  <jas@extundo.com>
70218
70219         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70220
70221 2005-10-21  Simon Josefsson  <jas@extundo.com>
70222
70223         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70224
70225 2005-10-21  Simon Josefsson  <jas@extundo.com>
70226
70227         * lib/des.h, lib/des.c: New files.
70228
70229         * lib/gc-gnulib.c: Support DES.c
70230
70231 2005-10-21  Simon Josefsson  <jas@extundo.com>
70232
70233         * lib/arctwo.h, lib/arctwo.c: New files.
70234
70235         * lib/gc-gnulib.c: Support ARCTWO.
70236
70237 2005-10-21  Simon Josefsson  <jas@extundo.com>
70238
70239         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70240         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70241
70242 2005-10-21  Simon Josefsson  <jas@extundo.com>
70243
70244         * gnulib-tool (func_import, func_create_testdir): Define automake
70245         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70246         Makefile.am snippet),
70247         suggested by Bruno Haible <bruno@clisp.org>.
70248
70249         * modules/gc (Makefile.am): Use it.
70250
70251 2005-10-21  Bruno Haible  <bruno@clisp.org>
70252
70253         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70254         patch.
70255
70256 2005-10-19  Simon Josefsson  <jas@extundo.com>
70257
70258         * tests/test-gc-rijndael.c: New file.
70259
70260         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70261
70262 2005-10-19  Simon Josefsson  <jas@extundo.com>
70263
70264         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70265         interface too.
70266
70267 2005-10-19  Simon Josefsson  <jas@extundo.com>
70268
70269         * tests/test-gc-arcfour.c: New file.
70270
70271         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70272
70273 2005-10-19  Simon Josefsson  <jas@extundo.com>
70274
70275         * modules/gc-md4, modules/gc-md4-tests: New file.
70276
70277         * tests/test-gc-md4.c: New file.
70278
70279 2005-10-19  Simon Josefsson  <jas@extundo.com>
70280
70281         * m4/gc-md4.m4: New file.
70282
70283 2005-10-19  Simon Josefsson  <jas@extundo.com>
70284
70285         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70286         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70287         <kasal@ucw.cz>.
70288
70289 2005-10-19  Simon Josefsson  <jas@extundo.com>
70290
70291         * m4/gc-arcfour.m4: New file.
70292
70293         * m4/gc-rijndael.m4: New file.
70294
70295 2005-10-19  Simon Josefsson  <jas@extundo.com>
70296
70297         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70298
70299 2005-10-19  Simon Josefsson  <jas@extundo.com>
70300
70301         * lib/gc-gnulib.c: Support ARCFOUR.
70302
70303 2005-10-19  Simon Josefsson  <jas@extundo.com>
70304
70305         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70306         support.
70307
70308         * lib/gc.h: Add ECB enum type.
70309
70310         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70311
70312 2005-10-18  Simon Josefsson  <jas@extundo.com>
70313
70314         * tests/test-md5.c: New file.
70315
70316         * modules/md5-tests: New file.
70317
70318 2005-10-18  Simon Josefsson  <jas@extundo.com>
70319
70320         * tests/test-md4.c: New file.
70321
70322         * modules/md4, modules/md4-tests: New files.
70323
70324 2005-10-18  Simon Josefsson  <jas@extundo.com>
70325
70326         * m4/md4.m4: New file.
70327
70328 2005-10-18  Simon Josefsson  <jas@extundo.com>
70329
70330         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70331
70332 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70333
70334         * gnulib-tool (func_create_testdir): Omit the second check whether
70335         BUILT_SOURCES in nonempty.
70336
70337 2005-10-17  Simon Josefsson  <jas@extundo.com>
70338
70339         * tests/test-rijndael.c: New file.
70340
70341 2005-10-17  Simon Josefsson  <jas@extundo.com>
70342
70343         * modules/sha1: Depend on stdint instead of md5.
70344
70345         * modules/md5: Depend on stdint, remove uint32_t.
70346
70347 2005-10-17  Simon Josefsson  <jas@extundo.com>
70348
70349         * modules/gc-sha1-tests: New file.
70350
70351         * tests/test-gc-sha1.c: New file.
70352
70353 2005-10-17  Simon Josefsson  <jas@extundo.com>
70354
70355         * m4/md5.m4: Remove call to uint32_t.m4.
70356
70357 2005-10-17  Simon Josefsson  <jas@extundo.com>
70358
70359         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70360
70361         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70362         md5.h.
70363
70364         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70365
70366         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70367
70368 2005-10-17  Simon Josefsson  <jas@extundo.com>
70369
70370         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70371
70372 2005-10-17  Simon Josefsson  <jas@extundo.com>
70373
70374         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70375
70376 2005-10-17  Simon Josefsson  <jas@extundo.com>
70377
70378         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70379
70380         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70381
70382 2005-10-17  Bruno Haible  <bruno@clisp.org>
70383
70384         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70385         that it can also be used in a test.
70386
70387 2005-10-16  Bruno Haible  <bruno@clisp.org>
70388
70389         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70390         TESTS_ENVIRONMENT, so that individual tests can augment it.
70391
70392         * gnulib-tool (func_create_testdir): Use an intermediate target for
70393         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70394         macros, like $(ALLOCA_H), which cannot be passed through the command
70395         line.
70396
70397 2005-10-15  Simon Josefsson  <jas@extundo.com>
70398
70399         * modules/rijndael-tests: New file.
70400
70401         * modules/rijndael: New file.
70402
70403 2005-10-15  Simon Josefsson  <jas@extundo.com>
70404
70405         * m4/rijndael.m4: New file.
70406
70407 2005-10-15  Simon Josefsson  <jas@extundo.com>
70408
70409         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70410
70411         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70412
70413 2005-10-14  Simon Josefsson  <jas@extundo.com>
70414
70415         * tests/test-arcfour.c: New file.
70416
70417         * modules/arcfour, modules/arcfour-tests: New files.
70418
70419 2005-10-14  Simon Josefsson  <jas@extundo.com>
70420
70421         * m4/arcfour.m4: New file.
70422
70423 2005-10-14  Simon Josefsson  <jas@extundo.com>
70424
70425         * lib/arcfour.h, lib/arcfour.c: New files.
70426
70427 2005-10-14  Roland McGrath  <roland@redhat.com>
70428
70429         Import from libc.  [BZ #1331]
70430         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70431         macro argument.
70432         Reported by Matej Vela <vela@debian.org>.
70433
70434 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70435
70436         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70437         include <wchar.h>; no longer needed.
70438
70439 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70440
70441         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70442
70443 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70444         and  Ulrich Drepper  <drepper@redhat.com>
70445
70446         Import from libc.
70447         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70448         instead of inline stream orientation test and two separate
70449         function calls.  Pay no attention to USE_IN_LIBIO.
70450
70451 2005-10-13  Simon Josefsson  <jas@extundo.com>
70452
70453         * modules/gc-hmac-md5-tests: New file.
70454
70455         * tests/test-gc-hmac-sha1.c: New file.
70456
70457         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70458
70459         * modules/gc-hmac-md5-tests: New file.
70460
70461         * tests/test-gc-md5.c: New file.
70462
70463         * modules/gc-md5-tests: New file.
70464
70465 2005-10-13  Simon Josefsson  <jas@extundo.com>
70466
70467         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70468         Move memory allocation outside of loop.
70469
70470 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70473         intermediate directory is in a read-only file system.  Problem
70474         reported by Eric Blake.
70475
70476 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70477
70478         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70479
70480 2005-10-12  Simon Josefsson  <jas@extundo.com>
70481
70482         * tests/test-hmac-sha1.c: New file.
70483
70484         * modules/hmac-sha1-tests: New file.
70485
70486         * modules/hmac-sha1: New file.
70487
70488 2005-10-12  Simon Josefsson  <jas@extundo.com>
70489
70490         * modules/gc-sha1: New file.
70491
70492 2005-10-12  Simon Josefsson  <jas@extundo.com>
70493
70494         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70495
70496         * tests/test-gc-pbkdf2-sha1.c: New file.
70497
70498 2005-10-12  Simon Josefsson  <jas@extundo.com>
70499
70500         * modules/gc-md5, modules/gc-hmac-md5: New files.
70501
70502         * modules/gc (Files): Remove md5, memxor and hmac files.
70503
70504 2005-10-12  Simon Josefsson  <jas@extundo.com>
70505
70506         * m4/gc-pbkdf2-sha1.m4: New file.
70507
70508         * m4/gc-hmac-sha1.m4: New file.
70509
70510         * m4/gc-sha1: New file.
70511
70512         * m4/hmac-sha1.m4: New file.
70513
70514 2005-10-12  Simon Josefsson  <jas@extundo.com>
70515
70516         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70517
70518         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70519
70520 2005-10-12  Simon Josefsson  <jas@extundo.com>
70521
70522         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70523         suggested by Bruno Haible <bruno@clisp.org>.
70524
70525 2005-10-12  Simon Josefsson  <jas@extundo.com>
70526
70527         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70528
70529 2005-10-12  Simon Josefsson  <jas@extundo.com>
70530
70531         * lib/gc-pbkdf2-sha1.c: New file.
70532
70533         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70534
70535 2005-10-12  Simon Josefsson  <jas@extundo.com>
70536
70537         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70538
70539         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70540
70541 2005-10-12  Simon Josefsson  <jas@extundo.com>
70542
70543         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70544         GC_USE_HMAC_MD5, respectively.
70545
70546         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70547         (gc_md5): Fix typo.
70548
70549         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70550
70551         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70552
70553         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70554
70555 2005-10-12  Bruno Haible  <bruno@clisp.org>
70556
70557         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70558         Reported by Stepan Kasal <kasal@ucw.cz>.
70559
70560 2005-10-11  Simon Josefsson  <jas@extundo.com>
70561
70562         * tests/test-crc.c: New file.
70563
70564         * modules/crc, modules/crc-tests: New files.
70565
70566 2005-10-11  Simon Josefsson  <jas@extundo.com>
70567
70568         * m4/crc.m4: New file.
70569
70570 2005-10-11  Simon Josefsson  <jas@extundo.com>
70571
70572         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70573
70574         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70575
70576         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70577
70578 2005-10-11  Simon Josefsson  <jas@extundo.com>
70579
70580         * lib/crc.h, lib/crc.c: New files.
70581
70582         * lib/gc.h (gc_hash_buffer): Add doc.
70583
70584 2005-10-11  Bruno Haible  <bruno@clisp.org>
70585
70586         * modules/c-strcasestr: New file.
70587         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70588
70589 2005-10-11  Bruno Haible  <bruno@clisp.org>
70590
70591         * modules/c-strcase: New file.
70592         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70593
70594 2005-10-11  Bruno Haible  <bruno@clisp.org>
70595
70596         * lib/strcasecmp.c: Include limits.h.
70597         (strcasecmp): Avoid integer overflow on exotic platforms.
70598         * lib/strncasecmp.c: Include limits.h.
70599         (strncasecmp): Avoid integer overflow on exotic platforms.
70600         Reported by Paul Eggert.
70601
70602 2005-10-11  Bruno Haible  <bruno@clisp.org>
70603
70604         * lib/c-strcasestr.h: New file, from GNU gettext.
70605         * lib/c-strcasestr.c: New file, from GNU gettext.
70606
70607 2005-10-11  Bruno Haible  <bruno@clisp.org>
70608
70609         * lib/c-strcase.h: New file, from GNU gettext.
70610         * lib/c-strcasecmp.c: New file, from GNU gettext.
70611         * lib/c-strncasecmp.c: New file, from GNU gettext.
70612
70613 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * modules/mempcpy (License): GPL -> LGPL.
70616         * modules/strchrnul (License): Likewise.
70617         * modules/sysexits (License): Likewise.
70618
70619 2005-10-08  Simon Josefsson  <jas@extundo.com>
70620
70621         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70622
70623 2005-10-07  Simon Josefsson  <jas@extundo.com>
70624
70625         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70626
70627 2005-10-06  Simon Josefsson  <jas@extundo.com>
70628
70629         * tests/test-hmac-md5.c: New file.
70630
70631         * modules/hmac-md5-tests: New file.
70632
70633         * modules/hmac-md5: New file.
70634
70635 2005-10-06  Simon Josefsson  <jas@extundo.com>
70636
70637         * m4/hmac-md5.m4: New file.
70638
70639         * m4/memxor.m4: Require gl_C_RESTRICT.
70640
70641 2005-10-06  Simon Josefsson  <jas@extundo.com>
70642
70643         * lib/memxor.c (memxor): Avoid casts and warnings.
70644
70645 2005-10-06  Simon Josefsson  <jas@extundo.com>
70646
70647         * lib/hmac-md5.c: New file.
70648
70649         * lib/hmac.h: New file.
70650
70651 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70654         promotes to int, not unsigned int, to catch the AIX 5.3
70655         compiler bug.
70656
70657 2005-10-05  Simon Josefsson  <jas@extundo.com>
70658
70659         * modules/memxor: New file.
70660
70661         * modules/iconv (Files): Move config.rpath to havelib, it is used
70662         there.
70663
70664         * modules/havelib (Files): Add config.rpath.
70665
70666 2005-10-05  Simon Josefsson  <jas@extundo.com>
70667
70668         * m4/memxor.m4: New file.
70669
70670 2005-10-05  Simon Josefsson  <jas@extundo.com>
70671
70672         * lib/memxor.c (memxor): Fix compiler error.
70673
70674         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70675         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70676
70677         * lib/memxor.h, lib/memxor.c: New files.
70678
70679         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70680         we assume all systems have it, suggested by Jim Meyering
70681         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70682         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70683         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70684         same reasons.
70685
70686 2005-10-05  Simon Josefsson  <jas@extundo.com>
70687
70688         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70689
70690 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70693         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70694         needed, since the source code now assumes these .h files.
70695
70696 2005-10-05  Derek Price  <derek@ximbiot.com>
70697
70698         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70699
70700 2005-10-05  Bruno Haible  <bruno@clisp.org>
70701
70702         * modules/stdint (License): Change to LGPL.
70703
70704 2005-10-04  Simon Josefsson  <jas@extundo.com>
70705
70706         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70707         D. Baushke" <mdb@gnu.org>.
70708
70709 2005-10-04  Bruno Haible  <bruno@clisp.org>
70710
70711         * lib/verify.h (verify_true): Provide alternative definition for C++.
70712
70713 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70714
70715         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70716         (SSIZE_MAX): New macro, if not already defined.
70717         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70718         than 2 GiB.
70719
70720 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         Sync from coreutils.
70723         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70724         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70725         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70726         ULLONG_MAX doesn't work with 2.7.2.1.
70727
70728 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70731         From Ben Pfaff.
70732
70733         * modules/exclude (Depends-on): Depend on verify.
70734         * modules/strtoimax (Depends-on): Likewise.
70735         * modules/utimecmp (Depends-on): Likewise.
70736
70737 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * lib/exclude.c: Include verify.h.
70740         (verify): Remove.  All callers changed to use verify.h's version.
70741         * lib/strtoimax.c: Likewise.
70742         * lib/utimecmp.c: Likewis.e
70743
70744         Sync from coreutils.
70745         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70746         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70747         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70748         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70749         bother returning ENOSYS if settimeofday or stime fails; just let
70750         them return whatever errno they want to return.
70751         * lib/utimens.c: Include unistd.h, for dup2.
70752         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70753         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70754
70755 2005-10-02  Jim Meyering  <jim@meyering.net>
70756
70757         Sync from coreutils.
70758         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70759         from glibc-2.2.5 that fails for read-only files.
70760
70761 2005-10-02  Jim Meyering  <jim@meyering.net>
70762
70763         Sync from coreutils.
70764         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70765         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70766         `#if HAVE_CONFIG_H'.
70767         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70768         Remove AT_FDCWD test.
70769         Do not consume the fd unless successful.
70770         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70771         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70772         block, so that we don't even try to compile it if settimeofday is
70773         available.  This works around a compilation failure on OSF1 V5.1,
70774         due to stime requiring a `long int*' while tv_sec is `int'.
70775
70776 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70777
70778         Sync from coreutils.
70779         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70780         against `yes', rather than just testing for nonempty.
70781
70782 2005-10-01  Simon Josefsson  <jas@extundo.com>
70783
70784         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70785         and Darwin.
70786
70787         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70788         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70789         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70790         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70791         Check if struct addrinfo is declared.
70792
70793 2005-10-01  Simon Josefsson  <jas@extundo.com>
70794
70795         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70796         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70797         AI_* and EAI_* definitions.  Protect function declarations.
70798
70799 2005-10-01  Jim Meyering  <jim@meyering.net>
70800
70801         Sync from coreutils.
70802
70803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70804         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70805         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70807         in the inet and nsl libraries.  Required on Solaris 5.7.
70808
70809 2005-10-01  Jim Meyering  <jim@meyering.net>
70810
70811         Sync from coreutils.
70812         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70813         in the inet and nsl libraries.  Required on Solaris 5.7.
70814
70815 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70816
70817         * lib/getdelim.c (getdelim): Remove unused variables.
70818
70819 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70822         so that the code works even with ancient cpp.  Portability problem
70823         with GCC 2.7.2.1 reported by Thomas M.Ott.
70824
70825 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * modules/regex (Depends-on): Add strcase.
70828
70829         * modules/gethostname (Licence): Change from GPL to LGPL, since
70830         gethostname.c is a trivial implementation of a standard library
70831         function.
70832         * modules/poll (License): Change from GPL to LGPL, since it's
70833         derived from LGPL code.
70834
70835 2005-09-27  Jim Meyering  <jim@meyering.net>
70836
70837         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70838         HAVE_CONFIG_H.
70839
70840         * lib/intprops.h (signed_type_or_expr__): Define.
70841         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70842         for unsigned types.
70843
70844 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * lib/verify.h (verify_expr): Remove, replacing with:
70847         (verify_true): New macro that returns true instead of void.
70848         (verify_type__): Remove.
70849         (verify): Use verify_true rather than verify_type__.
70850
70851 2005-09-26  Bruno Haible  <bruno@clisp.org>
70852
70853         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70854         is necessary.
70855         (lib_SOURCES): Remove mbchar.c.
70856         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70857         (Files): Add m4/mbrtowc.m4.
70858         * modules/mbiter: Likewise.
70859         * modules/mbuiter: Likewise.
70860
70861 2005-09-26  Bruno Haible  <bruno@clisp.org>
70862
70863         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70864         compile mbchar.c if they are not both present.
70865         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70866         * m4/mbiter.m4 (gl_MBITER): Likewise.
70867         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70868         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70869         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70870
70871 2005-09-25  Jim Meyering  <jim@meyering.net>
70872
70873         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70874         also uses socklen_t.
70875
70876 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70877
70878         * lib/utimens.c (ENOSYS): Define if not already defined.
70879         (futimens): Support having a null PATH if the file descriptor
70880         is nonnegative.
70881
70882         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70883         Remove.
70884         (__attribute): Define to empty unless GCC 3.1 or later.
70885         This works around a core dump on OpenBSD 3.4, which has GCC
70886         2.95.3, which dumps core when given __attribute__(()).  It also
70887         simplifies other tests, since we really don't want to bother with
70888         worrying about which ancient version of GCC supported what.
70889         Original problem reported by Yoann Vandoorselaere, with part of
70890         the fix suggested by Derek Price.
70891
70892 2005-09-24  Jim Meyering  <jim@meyering.net>
70893
70894         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70895         so we can once again use a positive bitfield width of 1 -- now we
70896         don't have to explain why we were using a bitfield width of 2.
70897
70898 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70901         and similarly for the other external symbols.  Problem reported
70902         by James Gallager.
70903
70904         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70905         bug reported by Jim Meyering.
70906
70907         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70909         not needed, since socklen is a prerequisite module.
70910
70911 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70914         Problem reported by Eric Blake.
70915         (getaddrinfo): Initialize se so that it's not garbage.
70916         Redo internal storage allocation so that it doesn't make unportable
70917         assumptions about alignment.
70918         Fix a memory leak.
70919
70920         * lib/utimens.c (futimens): Use futimesat if available.
70921         Prefer it to futimes since it doesn't have the futimes bug.
70922
70923         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70924         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70925         Instead, declare a function that returns a pointer to an array,
70926         and use verify_type__ to declare the size of the array.
70927         Problem and germ of a solution reported by Bruno Haible.
70928         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70929         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70930
70931 2005-09-23  Jim Meyering  <jim@meyering.net>
70932
70933         Sync from coreutils.
70934         Correct build failure (socklen_t not defined) on at least
70935         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70936         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70937
70938 2005-09-23  Jim Meyering  <jim@meyering.net>
70939
70940         * modules/getaddrinfo (Depends-on): Add socklen.
70941
70942 2005-09-23  Bruno Haible  <bruno@clisp.org>
70943
70944         * tests/test-verify.c: New file.
70945
70946 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         Sync from coreutils.
70949
70950         * modules/argmatch (Depends-on): Add verify.
70951         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70952         unistd-safer.
70953         * modules/save-cwd (Depends-on): Likewise.
70954
70955         * modules/openat (Files): Add lib/openat-die.c.
70956         (Depends-on): Remove error, exitfail.
70957         Add dirname.
70958
70959         * modules/verify: New file.
70960         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70961         with "verify" module.
70962
70963 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         Sync from coreutils.
70966
70967         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70968         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70969         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70970         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70971         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70972         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70973         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70974         Don't bother checking for string.h, stdlib.h, unistd.h.
70975         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70976         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70977         module's job.
70978         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70979         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70980
70981         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70982         (gl_GETDATE): Use it.
70983
70984         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70985
70986 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         Sync from coreutils.
70989
70990         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70991         stat-time.h.
70992         * lib/argmatch.h: Include verify.h
70993         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70994         (ARGMATCH_ASSERT): Remove; unused.
70995         * lib/canonicalize.c: Assume STDC_HEADERS.
70996         * lib/exclude.c: Include "strcase.h".
70997         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70998         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70999         and stdio-safer.h.
71000         (getusershell): Call fopen, not fopen_safer.
71001         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71002         Do not include unistd-safer.h.
71003         (save_cwd): Don't call fd_safer; no longer needed
71004         now that we include fcntl--.h.
71005
71006         * lib/getdate.y (relative_time): New type.
71007         (RELATIVE_TIME_0): New constant.
71008         (parser_control): Use relative_time instead of doing it ourselves.
71009         (%union): Add new relative_time rel member.
71010         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71011         Now typeless.
71012         (relunit, relunit_snumber): Now of type rel.
71013         (zone, rel, relunit, get_date): Adjust to above changes.
71014
71015         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71016         Do not include unistd-safer.h.
71017         (getloadavg): Don't call fd_safer; no longer needed
71018         now that we include fcntl--.h.
71019
71020         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71021         (make_dir_parents): Treat ENOSYS like EEXIST.
71022
71023         Improve quality of diagnostics on restore_cwd failure.
71024         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71025         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71026         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71027         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71028         each time through the loop.  Do not diagnose restore_cwd failure;
71029         that is the caller's job (and perhaps the caller does not care).
71030
71031         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71032         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71033         If the file already exists but is not a directory, don't bother
71034         to try to make its parents.
71035         Close potential file descriptor leak if we can't chdir("/") (!).
71036         Don't always return true if chdir($PWD) fails; return true only
71037         if the requested action was done successfully (except for the
71038         chdir($PWD)).
71039         Don't log final directory unless we actually made it.
71040         Refactor to avoid duplicate code to fix up permissions.
71041         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71042
71043         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71044         to make it a bit faster and (I hope) clearer.
71045         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71046         Fix bug in formats like %2N.
71047
71048         * lib/verify.h: New file.
71049
71050 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         Sync from coreutils.
71053         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71054
71055 2005-09-22  Jim Meyering  <jim@meyering.net>
71056
71057         Sync from coreutils.
71058
71059         * m4/lstat.m4 (gl_FUNC_LSTAT):
71060         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71061         Remove obsolete comment.
71062         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71063         * m4/xstrtod.m4: Likewise.
71064
71065         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71066
71067 2005-09-22  Jim Meyering  <jim@meyering.net>
71068
71069         Sync from coreutils.
71070
71071         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71072
71073         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71074         the .tm_year member, since otherwise gcc-4.0 would now warn about
71075         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71076
71077         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71078         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71079
71080         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71081         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71082         when run in a time zone for which daylight savings time is in effect
71083         for the starting date.
71084
71085         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71086         stop us from restricting permissions of just-created absolute-named
71087         directories.
71088         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71089         to restore initial working directory.
71090         * lib/mkdir-p.c (make_dir_parents): New parameter:
71091         different_working_dir, to tell caller if/when we change the working
71092         directory and are unable to return to the initial one.
71093         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71094         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71095         `return false'.  This fixes a bug introduced on 2004-07-30.
71096
71097         * lib/openat.c (fdopendir): Be sure to close the supplied
71098         file descriptor before returning.  This makes our replacement
71099         implementation a little closer to Solaris's, where fdopendir
71100         ties the file descriptor to the returned DIR* pointer.
71101         * lib/openat.c (unlinkat): New function.
71102         * lib/openat.h (unlinkat): Add prototype.
71103         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71104         (openat_restore_fail): Rename from openat_restore_die.
71105         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71106
71107         Provide an alternative to exiting immediately upon save_cwd or
71108         restore_cwd failure.  Now, an application can arrange e.g.,
71109         to perform a longjump in that case.
71110         * lib/openat.c: Include dirname.h.
71111         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71112         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71113         and openat_restore_die rather than calling error directly.
71114         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71115
71116         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71117         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71118         define.
71119
71120         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71121         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71122                             int utc, int nanoseconds);
71123         Background:
71124         date should not have to allocate a megabyte of virtual memory to
71125         handle a format argument like +%1048575T.  When implemented with
71126         strftime, it must allocate such a buffer, use strftime to fill it
71127         in, print it, then free it.
71128         With fprintftime, it simply prints everything and exits.
71129         With no need for memory allocation, that's one fewer way to fail.
71130         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71131         optional field width, not before, so we accept %9:z, not %:9z.
71132         (my_strftime): Be sure to use L_('x') for literals.
71133
71134         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71135         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71136         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71137         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71138         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71139         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71140         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71141         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71142         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71143         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71144         * lib/xgethostname.c, lib/xreadlink.c:
71145         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71146
71147         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71148         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71149         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71150         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71151         and don't include <sys/file.h>).
71152
71153 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71154
71155         Sync from coreutils.
71156
71157         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71158         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71159         [!LDAV_DONE]: Avoid unused variable warning.
71160
71161 2005-09-21  Bruno Haible  <bruno@clisp.org>
71162
71163         * lib/unicodeio.h (unicode_to_mb): New declaration.
71164
71165 2005-09-20  Derek Price  <derek@ximbiot.com>
71166
71167         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71168         getaddrinfo.h.
71169
71170 2005-09-20  Bruno Haible  <bruno@clisp.org>
71171
71172         * gnulib-tool: Remove trailing slashes from the values specified for
71173         --source-base, --m4-base, --tests-base, --aux-dir.
71174         Suggested by Simon Josefsson <jas@extundo.com>.
71175
71176 2005-09-20  Bruno Haible  <bruno@clisp.org>
71177
71178         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71179         func_modules_to_filelist, func_import, func_create_testdir): Make all
71180         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71181         change when gnulib-tool is invoked in a different locale.
71182
71183 2005-09-19  Simon Josefsson  <jas@extundo.com>
71184
71185         * m4/socklen.m4: Fix typo.
71186
71187 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71188
71189         Use a consistent style for including <config.h>.
71190         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71191         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71192         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71193         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71194         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71195         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71196         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71197         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71198         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71199         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71200         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71201         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71202         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71203         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71204         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71205         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71206         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71207         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71208         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71209         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71210         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71211         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71212         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71213         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71214         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71215         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71216         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71217         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71218         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71219         lib/xstrtoumax.c, lib/yesno.c:
71220         Standardize inclusion of config.h.
71221         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71222         lib/inttostr.h:  Removed inclusion of config.h from header files.
71223         * lib/inttostr.c:  Adjusted in-tree users.
71224         * lib/timespec.h: Remove superfluous warning to include config.h.
71225         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71226         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71227         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71228         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71229         config.h with HAVE_CONFIG_H.
71230
71231 2005-09-19  Jim Meyering  <jim@meyering.net>
71232
71233         * modules/pathmax (License): Change to LGPL.
71234
71235 2005-09-19  Derek Price  <derek@ximbiot.com>
71236
71237         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71238
71239 2005-09-19  Bruno Haible  <bruno@clisp.org>
71240
71241         * gnulib-tool (import): Provide default for --tests-base.
71242
71243 2005-09-19  Bruno Haible  <bruno@clisp.org>
71244
71245         * doc/quote.texi: New file, extracted from gnulib.texi.
71246         * doc/ctime.texi: New file, extracted from gnulib.texi.
71247         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71248         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71249         * doc/gnulib.texi: Include them.
71250
71251 2005-09-18  Bruno Haible  <bruno@clisp.org>
71252
71253         Portability fix.
71254         * gnulib-tool (func_readlink): New function.
71255         (func_ln_if_changed): Use it.
71256
71257 2005-09-18  Bruno Haible  <bruno@clisp.org>
71258
71259         * gnulib-tool: Support --with-tests also with --import.
71260         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71261         (func_import): Use variables $testsbase and $inctests. Emit a
71262         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71263         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71264         SUBDIRS += $testsdir.
71265         (func_create_testdir): Update.
71266
71267 2005-09-18  Bruno Haible  <bruno@clisp.org>
71268
71269         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71270         instead of $dry_run.
71271         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71272         (func_ln_if_changed): Don't handle dry-run here.
71273         (func_import): In dry-run mode, detect more precisely which actions
71274         would be performed, and don't use "...ing" verbs.
71275
71276 2005-09-18  Bruno Haible  <bruno@clisp.org>
71277
71278         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71279         (func_import): Use join on two temporary files instead of three nested
71280         loops, in order to determine which files are new or old.
71281
71282 2005-09-18  Bruno Haible  <bruno@clisp.org>
71283
71284         * gnulib-tool (func_import): Comment out code that spits out the
71285         new files with --dry-run.
71286
71287 2005-09-18  Bruno Haible  <bruno@clisp.org>
71288
71289         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71290
71291 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71292
71293         * lib/stat-time.h: New file.
71294         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71295         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71296         in a different way.
71297         (timespec_cmp): New function.
71298         * lib/utimecmp.c: Include stat-time.h.
71299         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71300         members exist, not on the obsolescent ST_MTIM_NSEC.
71301         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71302
71303 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71306
71307 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71308
71309         * MODULES.html.sh (File system functions): Add stat-time.
71310         * modules/stat-time: New file.
71311         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71312         is now done in a different way, by the stat-time module.
71313         * modules/utimecmp (Depends-on): Add stat-time.
71314
71315 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         * m4/st_mtim.m4: Remove.  Superseded by...
71318         * m4/stat-time.m4: New file.
71319         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71320         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71321
71322 2005-09-15  Derek Price  <derek@ximbiot.com>
71323
71324         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71325
71326 2005-09-15  Derek Price  <derek@ximbiot.com>
71327
71328         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71329         * lib/regex_internal.c: Ditto, using this...
71330         (__GNUC_PREREQ): ...new macro.
71331         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71332         using...
71333         (__GNUC_PREREQ): ...this new macro.
71334
71335         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71336
71337 2005-09-15  Derek Price  <derek@ximbiot.com>
71338             Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71341         changes, consolidating in...
71342         * lib/regex_internal.h: ...this file.
71343
71344 2005-09-13  Jim Meyering  <jim@meyering.net>
71345
71346         * lib/canon-host.c: Filter through gnu indent and reword comments
71347         slightly.
71348         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71349
71350 2005-09-13  Derek Price  <derek@ximbiot.com>
71351
71352         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71353         failure.
71354         Reported by Jim Meyering  <jim@meyering.net>.
71355
71356 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71357
71358         * lib/base64.c: Typo.
71359         (base64_encode): Put b64str in initialized data section.
71360
71361 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         Merge glibc and coreutils changes into gnulib, plus a few
71364         extra fixes.
71365         * lib/md5.c: Use #error rather than a string.
71366         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71367         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71368         (__attribute__): Define to empty for non recent-GCC.
71369         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71370         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71371         Renamed from their non-__ counterparts, with new macros replacing
71372         them if not _LIBC.  Add __THROW attribute.
71373         (rol): Remove.
71374         (struct md5_ctx): Align buffer if using GCC.
71375         * lib/sha1.h (struct sha1_ctx): Likewise.
71376         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71377         The old name was backwards.
71378         (NOTSWAP): Remove; not used.
71379         (rol): New macro, moved here from md5.h.
71380         (sha1_process_block): Remove a FIXME that doesn't make sense.
71381
71382 2005-09-12  Derek Price  <derek@ximbiot.com>
71383
71384         Return usable errors from canon-host.
71385         * lib/canon-host.h: New file.
71386         * lib/canon-host.c (canon_host): Wrap...
71387         (canon_host_r): ...this new function, which now relies exclusively on
71388         getaddrinfo.
71389         (ch_strerror): New function.
71390         (last_cherror): New global.
71391         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71392         interface.
71393         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71394         void *.
71395         (freeaddrinfo): Free ai->ai_canonname when set.
71396
71397 2005-09-12  Derek Price  <derek@ximbiot.com>
71398
71399         Make canon-host require getaddrinfo.
71400         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71401         AC_LIBSOURCE canon-host.h.  Call...
71402         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71403         gl_GETADDRINFO.
71404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71405
71406 2005-09-12  Derek Price  <derek@ximbiot.com>
71407
71408         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71409         LGPL.
71410         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71411
71412 2005-09-12  Derek Price  <derek@ximbiot.com>
71413
71414         * lib/gai_strerror.c: Include config.h when available.  Include
71415         getaddrinfo.h before other headers to test interface.
71416         Reported by Larry Jones <lawrence.jones@ugs.com>.
71417
71418 2005-09-12  Derek Price  <derek@ximbiot.com>
71419             Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * modules/glob (Files): Add glob-libc.h.
71422
71423 2005-09-12  Derek Price  <derek@ximbiot.com>
71424             Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71427         glob_.h, glob-libc.h.
71428         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71429
71430 2005-09-12  Derek Price  <derek@ximbiot.com>
71431             Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71434         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71435         protecting things that should be done only in gnulib contexts.
71436         * lib/glob_.h: New file, containing only the glob things needed for
71437         gnulib.
71438         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71439         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71440         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71441         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71442         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71443         and to respect the namespace rules better.
71444
71445 2005-09-08  Simon Josefsson  <jas@extundo.com>
71446
71447         * modules/socklen: New file.
71448
71449 2005-09-08  Simon Josefsson  <jas@extundo.com>
71450
71451         * m4/socklen.m4: New file.
71452
71453 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * modules/utimens (Files): Add m4/utimbuf.m4, since
71456         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71457         Reported by Sergey Poznyakoff.
71458
71459 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71462         definitions, since that's the preferred style in glibc.
71463         Fix a minor spacing issue, and update copyright notice to match
71464         glibc's.
71465
71466 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71469
71470 2005-09-06  Simon Josefsson  <jas@extundo.com>
71471
71472         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71473         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71474
71475 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71476
71477         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71478         warning.
71479
71480 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71481
71482         * config/srclist.txt: Add glibc bug 1302.
71483
71484 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71485
71486         Change bitset word type from unsigned int to unsigned long int,
71487         as this has better performance on typical 64-bit hosts.
71488         Port bitset code to hosts with unusual word sizes.
71489         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71490         (build_collating_symbol):
71491         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71492         argument is a bitset.  This is merely a style issue, but it makes
71493         it clearer that an entire array is expected.
71494         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71495         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71496         Port to the case where bitset_word is not the same as unsigned int.
71497         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71498         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71499         Likewise.
71500         * lib/regexec.c (check_dst_limits_calc_pos_1,
71501         check_subexp_matching_top):
71502         (build_trtable, group_nodes_into_DFAstates):
71503         Likewise.
71504         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71505         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71506         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71507         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71508         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71509         * lib/regcomp.c (optimize_subexps, lower_subexp):
71510         Work even if bitset_word has holes in its bitwise representation.
71511         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71512         * lib/regexec.c (check_dst_limits_calc_pos_1,
71513         check_subexp_matching_top):
71514         Likewise.
71515         * lib/regex_internal.c (re_string_reconstruct):
71516         Don't assume UCHAR_MAX == 255.
71517         * lib/regex_internal.h (bitset_set_all): Likewise.
71518         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71519         All uses changed.
71520         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71521         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71522         All uses changed.
71523         (BITSET_WORD_MAX): New macro.
71524         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71525         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71526         (bitset_empty, bitset_copy):
71527         Prefer sizeof (bitset) to multiplying it out ourselves.
71528         (bitset_not_merge): Remove; unused.
71529         (bitset_contain): Return bool, not unsigned int with one bit on.
71530         All callers changed.
71531         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71532         alignment than re_node_set; do this by defining a new internal
71533         type struct dests_alloc and using it to allocate memory.
71534
71535 2005-09-05  Bruno Haible  <bruno@clisp.org>
71536
71537         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71538         links.
71539
71540 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71541
71542         * modules/size_max (Makefile.am): Add size_max.h
71543
71544 2005-09-04  Derek Price  <derek@ximbiot.com>
71545
71546         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71547
71548 2005-09-03  Simon Josefsson  <jas@extundo.com>
71549
71550         * gnulib-tool: Fix typo.
71551
71552 2005-09-03  Simon Josefsson  <jas@extundo.com>
71553
71554         * config/srclist.txt: Add glibc bug 1293.
71555
71556 2005-09-03  Derek Price  <derek@ximbiot.com>
71557
71558         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71559         From Larry Jones <lawrence.jones@ugs.com>.
71560
71561 2005-09-02  Simon Josefsson  <jas@extundo.com>
71562
71563         * modules/socklen: New file.
71564
71565 2005-09-02  Simon Josefsson  <jas@extundo.com>
71566
71567         * modules/havelib: New module.
71568
71569         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71570         Use havelib.
71571
71572 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         Check for arithmetic overflow when calculating sizes, to prevent
71575         some buffer-overflow issues.  These patches are conservative, in the
71576         sense that when I couldn't determine whether an overflow was possible,
71577         I inserted a run-time check.
71578         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71579         macros.
71580         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71581         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71582         (re_xnrealloc, re_x2nrealloc): New inline functions.
71583         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71584         parse_bracket_exp):
71585         (build_equiv_class, build_charclass): Check for arithmetic overflow
71586         in size expression calculations.
71587         * lib/regex_internal.c (re_string_realloc_buffers):
71588         (build_wcs_upper_buffer, re_node_set_add_intersect):
71589         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71590         (re_dfa_add_node, register_state): Likewise.
71591         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71592         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71593         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71594         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71595
71596 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71599         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71600
71601 2005-09-02  Bruno Haible  <bruno@clisp.org>
71602
71603         Support for lib vs. lib64 distinction on biarch platforms.
71604         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71605         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71607
71608 2005-09-02  Bruno Haible  <bruno@clisp.org>
71609
71610         * gnulib-tool (import): In the other first-use case, provide defaults
71611         as well.
71612
71613 2005-09-02  Bruno Haible  <bruno@clisp.org>
71614
71615         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71616         patches not yet found in the latest gettext release.
71617
71618 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71621         to avoid a collision with bits/local_lim.h in glibc.
71622         All uses changed.  Problem reported by Dmitry V. Levin in
71623         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71624
71625         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71626         bugs in int versus size_t comparisons.
71627         (re_string_context_at): Fix bug where the code assumed that
71628         Idx is signed.
71629
71630         Use bool where appropriate.
71631         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71632         All callers changed.
71633         (calc_eclosure_iter): Likewise, for ROOT arg.
71634         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71635         (build_charclass_op): Likewise, for NON_MATCH arg.
71636         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71637         (re_string_construct_common): Likewise, for ICASE arg.
71638         * lib/regexec.c (re_search_2_stub, re_search_stub):
71639         Likewise, for RET_LEN arg.
71640         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71641         (set_regs): Likewise, for FL_BACKTRACK arg.
71642         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71643         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71644         (calc_eclosure_iter, parse_bracket_exp):
71645         Use bool for internal variables that are booleans.
71646         * lib/regexec.c (re_search_internal, check_matching,
71647         proceed_next_node):
71648         (set_regs, build_sifted_states, sift_states_bkref):
71649         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71650         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71651         (find_collation_sequence_value):
71652         Likewise.
71653         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71654         (re_node_set_compare):
71655         Return bool, not int. All callers changed.
71656         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71657         (build_trtable, check_node_accept): Likewise.
71658         * lib/regex_internal.h: Include stdbool.h.
71659
71660         Fix bugs uncovered when converting to bool.
71661         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71662         failure instead of charging ahead blindly.
71663         * lib/regex_internal.c (register_state): Likewise.
71664         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71665         for freeing internal storage.
71666         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71667         bitset pieces used as boolean, to avoid undefined behavior
71668         on hosts that do int overflow checking.
71669
71670 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71671
71672         * config/srclist.txt: Add glibc bugs 1285-1287.
71673
71674 2005-09-01  Jim Meyering  <jim@meyering.net>
71675
71676         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71677         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71678         Require gl_STAT_MACROS, too.
71679
71680 2005-09-01  Bruno Haible  <bruno@clisp.org>
71681
71682         * gnulib-tool (import): In the first-use case, provide defaults.
71683
71684 2005-09-01  Bruno Haible  <bruno@clisp.org>
71685
71686         * gnulib-tool (func_import): Remove the .tmp files.
71687
71688 2005-09-01  Bruno Haible  <bruno@clisp.org>
71689
71690         * gnulib-tool (func_import): Fix handling of symbolic links.
71691
71692 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71693
71694         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71695         old glibc regex code mishandles strings longer than 2**31 bytes.
71696         This patch fixes this when the regex code is used in gnulib
71697         (i.e., outside glibc).
71698
71699         This patch should not affect the use of the regex code inside
71700         glibc.  No doubt this problem also needs to be handled for glibc
71701         as well, but the result will be an incompatible change to the
71702         glibc ABI, and the old ABI will have to be supported too.  That
71703         can be the the subject for another patch.
71704
71705         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71706         governing whether the rest of this patch is active.  By default,
71707         the macro is disabled and the patch has no effect.
71708         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71709         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71710         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71711         (re_match_2, re_set_registers): Use the new types.
71712         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71713         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71714         New macros.
71715         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71716         (re_string_context_at, bin_tree_t, re_dfastate_t):
71717         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71718         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71719         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71720         (re_string_char_size_at, re_string_wchar_at):
71721         (re_string_elem_size_at):
71722         Use the new types and macros to port to 64-bit hosts.
71723         Use unsigned types for internal values, so that the code
71724         mostly works even for arrays larger than SSIZE_MAX.
71725         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71726         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71727         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71728         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71729         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71730         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71731         (calc_inveclosure, parse_dup_op, build_range_exp):
71732         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71733         (fetch_number, create_token_tree, mark_opt_subexp):
71734         Likewise.
71735         * lib/regex_internal.c (re_string_construct_common,
71736         create_ci_newstate):
71737         (create_cd_newstate, re_string_allocate, re_string_construct):
71738         (re_string_realloc_buffers, build_wcs_upper_buffer):
71739         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71740         (re_string_reconstruct, re_string_peek_byte_case):
71741         (re_string_fetch_byte_case, re_string_context_at):
71742         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71743         (re_node_set_init_copy, re_node_set_add_intersect):
71744         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71745         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71746         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71747         (re_acquire_state, re_acquire_state_context, register_state):
71748         Likewise.
71749         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71750         search_cur_bkref_entry):
71751         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71752         (re_search_internal, re_search_2_stub, re_search_stub)
71753         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71754         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71755         (update_cur_sifted_state, check_dst_limits):
71756         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71757         (check_subexp_limits, sift_states_bkref, merge_state_array):
71758         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71759         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71760         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71761         (expand_bkref_cache, check_node_accept_bytes):
71762         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71763         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71764         (acquire_init_state_context, check_halt_node_context):
71765         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71766         (sift_states_backward, clean_state_log_if_needed):
71767         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71768         (find_recover_state, transit_state_sb, transit_state_mb):
71769         (transit_state_bkref, build_trtable, match_ctx_clean):
71770         Likewise.
71771         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71772         to work around an assumption that REG_MISSING is negative.
71773
71774         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71775         (seek_collating_symbol_entry) [defined _LIBC]:
71776         (lookup_collation_sequence_value) [defined _LIBC]:
71777         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71778         Use prototypes rather than old-style function definitions.
71779         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71780         (transit_state_sb) [0]:
71781         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71782
71783         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71784         rm_eo.
71785
71786         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71787         (optimize_subexps, lower_subexp):
71788         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71789         since the signed shift might overflow.  Use 1u<<31 instead.
71790         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71791         Likewise.
71792         * lib/regexec.c (check_dst_limits_calc_pos_1,
71793         check_subexp_matching_top): Likewise.
71794
71795         * lib/regcomp.c (optimize_subexps, lower_subexp):
71796         Use CHAR_BIT rather than 8, for clarity.
71797         * lib/regexec.c (check_dst_limits_calc_pos_1):
71798         (check_subexp_matching_top): Likewise.
71799         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71800         have to worry about portability issues when shifting it left.
71801         Remove no-longer-needed test for table_size > 0.
71802         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71803         in a word, as the resulting behavior is undefined.
71804         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71805         in one case, a <= should have been an <, and in another case the
71806         whole test was missing.
71807         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71808         the standard name CHAR_BIT.
71809         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71810         this is not true on one's complement and signed-magnitude hosts.
71811
71812         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71813         next_last_offset.
71814         (struct re_dfa_t): Remove unused member states_alloc.
71815         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71816
71817 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71820         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71821         and large-file glibc and in 32-bit large-file Solaris.
71822
71823 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71824
71825         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71826         lengths fit in regoff_t; this isn't true if regoff_t is the same
71827         width as size_t.
71828         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71829         (= START + RANGE) instead of RANGE.  This avoids overflow
71830         problems when regoff_t is the same width as size_t.
71831         All callers changed.
71832         (re_search_2_stub): Check for overflow when adding the
71833         sizes of the two strings.
71834         (re_search_stub): Check for overflow when adding START
71835         to RANGE; if it occurs, substitute the extreme value.
71836
71837 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71840
71841 2005-08-31  Jim Meyering  <jim@meyering.net>
71842
71843         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71844         a pointer-to-const.
71845         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71846         (register_state): Likewise.
71847         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71848         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71849         (group_nodes_into_DFAstates): Likewise.
71850
71851 2005-08-31  Jim Meyering  <jim@meyering.net>
71852
71853         * check-module: Add a FIXME comment.
71854
71855 2005-08-31  Eric Blake  <ebb9@byu.net>
71856
71857         * modules/unistd-safer (Files): Add unistd--.h.
71858         * modules/stdio-safer (Files): Add stdio--.h.
71859
71860 2005-08-31  Derek Price  <derek@ximbiot.com>
71861
71862         * lib/getdelim.c (getdelim): Return EOF on EOF.
71863         Reported by Larry Jones <lawrence.jones@ugs.com>.
71864
71865 2005-08-31  Bruno Haible  <bruno@clisp.org>
71866
71867         Avoid unnecessary diffs in the generated lib/Makefile.am.
71868         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71869         the generated files.
71870         (func_import): Don't set cmd.
71871
71872 2005-08-31  Bruno Haible  <bruno@clisp.org>
71873
71874         * lib/strstr.c: Include <stddef.h>, for NULL.
71875         * lib/strcasestr.c: Likewise.
71876         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71877
71878 2005-08-31  Bruno Haible  <bruno@clisp.org>
71879
71880         * gnulib-tool: New option --macro-prefix.
71881         (func_import): Use macro_prefix.
71882         (import): Handle option --macro-prefix.
71883
71884 2005-08-31  Bruno Haible  <bruno@clisp.org>
71885
71886         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71887         Also use new variables cached_lgpl, cached_libtool.
71888
71889 2005-08-31  Bruno Haible  <bruno@clisp.org>
71890
71891         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71892         always instantiating them.
71893
71894 2005-08-31  Bruno Haible  <bruno@clisp.org>
71895
71896         * gnulib-tool (func_import): Read the previous cached settings
71897         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71898         earlier added by gnulib but are now dropped. Warn when a gnulib file
71899         overwrites a non-gnulib file.
71900
71901 2005-08-31  Bruno Haible  <bruno@clisp.org>
71902
71903         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71904         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71905         projects that don't keep autogenerated files in CVS. Put into
71906         actioncmd only the specified modules, not the transitive closure.
71907
71908 2005-08-31  Bruno Haible  <bruno@clisp.org>
71909
71910         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71911         Create directories that shall be filled.
71912         (import): Don't look for gl_* macros in configure.ac. Recurse across
71913         all directories containing a gnulib-cache.m4 files, if meaningful.
71914
71915 2005-08-31  Bruno Haible  <bruno@clisp.org>
71916
71917         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71918         (import): Set seen_libtool when we see gl_LIBTOOL.
71919
71920 2005-08-31  Bruno Haible  <bruno@clisp.org>
71921
71922         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71923         declaration macro definitions from generated gnulib.m4.
71924
71925 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71926
71927         * lib/iconvme.h: Add prototype for iconv_alloc.
71928
71929 2005-08-29  Simon Josefsson  <jas@extundo.com>
71930
71931         * lib/iconvme.c: Fix errno.
71932
71933 2005-08-29  Bruno Haible  <bruno@clisp.org>
71934
71935         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71936         that it works when the directory contains spaces.
71937
71938 2005-08-29  Bruno Haible  <bruno@clisp.org>
71939
71940         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71941
71942 2005-08-29  Bruno Haible  <bruno@clisp.org>
71943
71944         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71945         Emit more advice.
71946
71947 2005-08-29  Bruno Haible  <bruno@clisp.org>
71948         and Stepan Kasal  <kasal@ucw.cz>
71949
71950         * check-module: If more parameters are given, check each of them
71951         separately; add more exceptions, as noted by Jim Meyering.
71952         (check_module): New procedure.
71953         (%exempt_header): Now contains all exceptions.
71954
71955 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71956
71957         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71958
71959 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71960
71961         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71962
71963 2005-08-28  Bruno Haible  <bruno@clisp.org>
71964
71965         * m4/gnulib-tool.m4: New file.
71966
71967 2005-08-27  Jim Meyering  <jim@meyering.net>
71968
71969         * modules/unistd-safer (Files): Add pipe-safer.c.
71970         * modules/fcntl-safer (Files): Add creat-safer.c.
71971
71972 2005-08-27  Jim Meyering  <jim@meyering.net>
71973
71974         * m4/stdlib-safer.m4: New file.  From coreutils.
71975         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71976         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71977         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71978         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71979         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71980
71981 2005-08-27  Jim Meyering  <jim@meyering.net>
71982
71983         * lib/fopen-safer.c: Merge minor changes from coreutils.
71984         * lib/dup-safer.c: Likewise.
71985         * lib/fd-safer.c: Likewise.
71986
71987         Merge from coreutils.
71988         * lib/stdio--.h: New file.
71989         * lib/stdlib--.h: New file.
71990         * lib/mkstemp-safer.c: New file.
71991
71992         GNU tar needs these.
71993         * lib/pipe-safer.c: New file.
71994         * lib/creat-safer.c: New file.
71995         * lib/fcntl--.h (creat): Define to creat_safer.
71996         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71997         * lib/unistd--.h (pipe): Define to pipe_safer.
71998         * lib/unistd-safer.h: Declare pipe_safer.
71999
72000 2005-08-26  Simon Josefsson  <jas@extundo.com>
72001
72002         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72003         Haible <bruno@clisp.org>.
72004
72005 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/regex_internal.h: Remove all references to
72008         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72009         or better.
72010         (bitset_not, bitset_merge, bitset_not_merge):
72011         (bitset_mask, re_string_allocate, re_string_construct):
72012         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72013         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72014         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72015         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72016         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72017         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72018         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72019         (re_acquire_state_context):
72020         Remove unnecessary forward decls.
72021         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72022         Put __attribute at function definition,
72023         now that the function decl has been removed.
72024         * lib/regex_internal.c (re_string_peek_byte_case):
72025         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72026         Likewise.
72027
72028 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72029
72030         * m4/regex.m4: Add AC_PREREQ(2.50).
72031         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72032
72033 2005-08-25  Simon Josefsson  <jas@extundo.com>
72034
72035         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72036         __fsetlocking.
72037
72038 2005-08-25  Simon Josefsson  <jas@extundo.com>
72039
72040         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72041         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72042         GLIBC specific code.
72043
72044 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         Make regex safe for g++.  This fixes one real bug (an "err"
72047         that should have been "*err").  g++ problem reported by
72048         Sam Steingold.
72049         * lib/regex_internal.h (re_calloc): New macro, consistent with
72050         re_malloc etc.  All callers of calloc changed to use re_calloc.
72051         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72052         not int.  All callers changed.
72053         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72054         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72055         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72056         (find_recover_state): Change "err" to "*err"; this fixes what
72057         appears to be a real bug.
72058         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72059         versus int.
72060
72061 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72062
72063         * modules/regex (Depends-on): Add malloc, since the code
72064         assumes that !malloc(0) means failure.
72065
72066 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72069
72070         alloca modernization/simplification for regex.
72071         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72072         needs to be at the start of the file, and can be moved into
72073         regex_internal.h and simplified.
72074         * lib/regex_internal.h: Include <alloca.h>.
72075         (__libc_use_alloca) [!defined _LIBC]: New macro.
72076         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72077         now works outside glibc.
72078
72079 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * config/srclist.txt: Add glibc bugs 1241, 1245.
72082
72083 2005-08-25  Jim Meyering  <jim@meyering.net>
72084
72085         * lib/open-safer.c: Include <config.h>.
72086         Otherwise, we'd lose LARGEFILE support in any file using
72087         e.g. "fcntl--.h"
72088
72089 2005-08-25  Bruno Haible  <bruno@clisp.org>
72090
72091         * m4/minmax.m4: Require autoconf 2.52.
72092         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72093         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72094         alternatives of translit over the alphabet.
72095         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72096
72097 2005-08-24  Simon Josefsson  <jas@extundo.com>
72098
72099         * tests/test-getpass.c: New file.
72100
72101 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72104         for GNU regex features.
72105
72106 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72109         * lib/regex.h (regerror): Likewise.
72110
72111         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72112         requires this.  (The code never needed it.)
72113
72114         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72115         All uses of recently-renamed identifiers changed to use the new,
72116         POSIX-compliant names.  The code will build and run just fine
72117         without these changes, but it's better to eat our own dog food
72118         and use the standard-conforming names.
72119
72120         * lib/regex.h: Fix a multitude of POSIX name space violations.
72121         These changes have an effect only for programs that define
72122         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72123         do not change anything for programs compiled in the normal way.
72124         Also, there is no effect on the ABI.
72125
72126         (_REGEX_SOURCE): New macro.
72127         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72128         defined and _GNU_SOURCE is not; this fixes a name space violation.
72129
72130         Rename the following macros to obey POSIX requirements.
72131         The old names are still visible as macros if _REGEX_SOURCE is defined.
72132         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72133         RE_BACKSLASH_ESCAPE_IN_LISTS.
72134         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72135         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72136         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72137         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72138         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72139         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72140         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72141         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72142         (REG_INTERVALS): renamed from RE_INTERVALS.
72143         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72144         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72145         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72146         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72147         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72148         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72149         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72150         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72151         RE_UNMATCHED_RIGHT_PAREN_ORD.
72152         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72153         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72154         (REG_DEBUG): renamed from RE_DEBUG.
72155         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72156         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72157         unusual, since we can't clash with the POSIX REG_ICASE.
72158         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72159         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72160         (REG_NO_SUB): renamed from RE_NO_SUB.
72161         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72162         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72163         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72164         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72165         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72166         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72167         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72168         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72169         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72170         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72171         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72172         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72173         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72174         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72175         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72176         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72177         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72178         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72179         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72180         (REG_FIXED): Renamed from REGS_FIXED.
72181         (REG_NREGS): Renamed from RE_NREGS.
72182
72183         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72184         of other REG_* macros, since POSIX says the user is allowed to
72185         #undef these macros selectively.
72186
72187         (reg_errcode_t): Update comment stating what other tables need
72188         to be consistent.
72189
72190         Rename the following enum values to obey POSIX requirements.
72191         The old names are still visible as macros.
72192         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72193         is not defined, since GNU is supposed to be a superset of POSIX as
72194         much as possible, and since we want reg_errcode_t to be a signed
72195         type for implementation consistency.
72196         (_REG_NOERROR): Renamed from REG_NOERROR.
72197         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72198         (_REG_BADPAT): Renamed from REG_BADPAT.
72199         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72200         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72201         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72202         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72203         (_REG_EBRACK): Renamed from REG_EBRACK.
72204         (_REG_EPAREN): Renamed from REG_EPAREN.
72205         (_REG_EBRACE): Renamed from REG_EBRACE.
72206         (_REG_BADBR): Renamed from REG_BADBR.
72207         (_REG_ERANGE): Renamed from REG_ERANGE.
72208         (_REG_ESPACE): Renamed from REG_ESPACE.
72209         (_REG_BADRPT): Renamed from REG_BADRPT.
72210         (_REG_EEND): Renamed from REG_EEND.
72211         (_REG_ESIZE): Renamed from REG_ESIZE.
72212         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72213         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72214         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72215         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72216         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72217
72218         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72219         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72220         changed.  But support the old name if the new one is not defined
72221         and if _REGEX_SOURCE.
72222
72223         Change the following member names in struct re_pattern_buffer.
72224         The old names are still supported if !_REGEX_SOURCE.
72225         The new names are always supported, regardless of _REGEX_SOURCE.
72226         (re_buffer): Renamed from buffer.
72227         (re_allocated): Renamed from allocated.
72228         (re_used): Renamed from used.
72229         (re_syntax): Renamed from syntax.
72230         (re_fastmap): Renamed from fastmap.
72231         (re_translate): Renamed from translate.
72232         (re_can_be_null): Renamed from can_be_null.
72233         (re_regs_allocated): Renamed from regs_allocated.
72234         (re_fastmap_accurate): Renamed from fastmap_accurate.
72235         (re_no_sub): Renamed from no_sub.
72236         (re_not_bol): Renamed from not_bol.
72237         (re_not_eol): Renamed from not_eol.
72238         (re_newline_anchor): Renamed from newline_anchor.
72239
72240         Change the following member names in struct re_registers.
72241         The old names are still supported if !_REGEX_SOURCE.
72242         The new names are always supported, regardless of _REGEX_SOURCE.
72243         (rm_num_regs): Renamed from num_regs.
72244         (rm_start): Renamed from start.
72245         (rm_end): Renamed from end.
72246
72247         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72248         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72249         Prepend __ to parameter names.
72250
72251         Undo yesterday's changes.
72252
72253 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72254
72255         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72256         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72257         lib/regex.c.
72258
72259 2005-08-24  Jim Meyering  <jim@meyering.net>
72260
72261         Sync from coreutils.
72262         * m4/fcntl-safer.m4: New file.
72263
72264         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72265         and object files for this module.
72266
72267 2005-08-24  Jim Meyering  <jim@meyering.net>
72268
72269         Sync from coreutils.
72270         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72271
72272 2005-08-24  Jim Meyering  <jim@meyering.net>
72273
72274         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72275         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72276
72277 2005-08-24  Jim Meyering  <jim@meyering.net>
72278
72279         * modules/fcntl-safer: New module.
72280         * modules/fts (Depends-on): Add fcntl-safer.
72281         * MODULES.html.sh (File descriptor based Input/Output):
72282         Add fcntl-safer.
72283
72284 2005-08-24  Bruno Haible  <bruno@clisp.org>
72285
72286         Support for unit test modules.
72287         * modules/README: Mention tests modules.
72288         * modules/TEMPLATE-TESTS: New file.
72289         * gnulib-tool: New options --extract-tests-module, --with-tests and
72290         --tests-base (unused for the moment).
72291         (testsbase, inctests): New variables.
72292         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72293         (func_verify_module): Exclude TEMPLATE-TESTS.
72294         (func_verify_nontests_module, func_verify_tests_module): New functions.
72295         (func_get_dependencies): Add implicit dependency for tests modules.
72296         (func_get_tests_module): New function.
72297         (func_modules_transitive_closure): When --with-tests was specified,
72298         include the unit tests as well, unless explicitly avoided.
72299         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72300         (func_emit_tests_Makefile_am): New function.
72301         (func_create_testdir): When --with-tests was specified, emit a
72302         tests/ directory.
72303         * MODULES.html.sh (Future developments): Update.
72304
72305 2005-08-24  Bruno Haible  <bruno@clisp.org>
72306
72307         * modules/tls-tests: New file.
72308         * tests/test-tls.c: New file, from GNU gettext.
72309
72310 2005-08-24  Bruno Haible  <bruno@clisp.org>
72311
72312         * modules/lock-tests: New file.
72313         * tests/test-lock.c: New file, from GNU gettext.
72314
72315 2005-08-24  Bruno Haible  <bruno@clisp.org>
72316
72317         * lib/lock.h: Add multiple inclusion guard.
72318         * lib/tls.h: Add multiple inclusion guard.
72319
72320 2005-08-24  Bruno Haible  <bruno@clisp.org>
72321
72322         * gnulib-tool: Add support for the --aux-dir option to
72323         --create-testdir, --create-megatestdir, --test, --megatest.
72324         (func_create_testdir, func_create_megatestdir): Optionally emit a
72325         AC_CONFIG_AUX_DIR directive.
72326         (create-testdir, create-megatestdir, test, megatest): Provide a
72327         default value for $auxdir.
72328
72329 2005-08-24  Bruno Haible  <bruno@clisp.org>
72330
72331         * gnulib-tool (import): Use compound statement instead of subshell
72332         where possible.
72333
72334 2005-08-24  Bruno Haible  <bruno@clisp.org>
72335
72336         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72337
72338 2005-08-24  Bruno Haible  <bruno@clisp.org>
72339
72340         * gnulib-tool (func_version): Update.
72341
72342 2005-08-24  Bruno Haible  <bruno@clisp.org>
72343
72344         * gnulib-tool (func_import, func_create_testdir,
72345         func_create_megatestdir): Quote all autoconf macro arguments.
72346
72347 2005-08-24  Bruno Haible  <bruno@clisp.org>
72348
72349         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72350         option --force, because --force causes the aclocal.m4 of each
72351         subdirectory to be newer than the corresponding config.h.in.
72352
72353 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72354
72355         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72356         All contents moved to gl_REGEX.
72357         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72358         assume that it does.
72359
72360 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72361
72362         * lib/regex.h (REG_NOSYS)
72363         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72364         Define, since POSIX requires it as of 2001.
72365         (_REG_ENOSYS)
72366         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72367         New private symbol, used to keep the enum signed in all cases.
72368         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72369         Youngman in
72370         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72371
72372         * lib/regex_internal.c (re_string_skip_chars, register_state):
72373         (calc_state_hash):
72374         Remove forward decls; no longer needed now that we use prototypes.
72375         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72376         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72377         (clean_state_log_if_needed): Likewise.
72378
72379 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72380
72381         * config/srclist.txt: Add glibc bugs 1231-1233.
72382
72383 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         Fix problems reported by Sam Steingold in
72386         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72387         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72388         assumed that reg_errcode_t is a signed type, which is not
72389         necessarily true if _XOPEN_SOURCE is not defined.
72390         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72391         since some compilers warn about it otherwise.
72392
72393 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72396         (init_word_char, create_initial_state, duplicate_node_closure):
72397         (fetch_token, peek_token_bracket, build_range_exp):
72398         (build_collating_symbol): Remove forward decls; no longer needed
72399         now that we use prototypes.
72400
72401         * lib/regcomp.c:
72402         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72403         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72404         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72405         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72406         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72407         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72408         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72409         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72410         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72411         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72412         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72413         (build_charclass, build_charclass_op, fetch_number, create_tree):
72414         (create_token_tree, mark_opt_subexp, duplicate_tree):
72415         Use prototypes rather than old-style definitions.
72416
72417         * lib/regex_internal.c:
72418         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72419         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72420         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72421         (re_string_reconstruct, re_string_peek_byte_case):
72422         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72423         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72424         (re_node_set_init_copy, re_node_set_add_intersect):
72425         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72426         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72427         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72428         (re_acquire_state, re_acquire_state_context, register_state):
72429         (create_ci_newstate, create_cd_newstate, free_state):
72430         Likewise.
72431         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72432         re_search_2):
72433         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72434         (re_search_internal, prune_impossible_nodes):
72435         (acquire_init_state_context, check_matching, static):
72436         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72437         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72438         (update_regs, sift_states_backward, build_sifted_states):
72439         (clean_state_log_if_needed, merge_state_array):
72440         (update_cur_sifted_state, add_epsilon_src_nodes):
72441         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72442         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72443         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72444         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72445         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72446         (check_arrival, check_arrival_add_next_nodes):
72447         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72448         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72449         (check_node_accept_bytes, check_node_accept, extend_buffers):
72450         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72451         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72452         (sift_ctx_init):
72453         Likewise.
72454
72455         * lib/regex_internal.h:
72456         (re_string_allocate, re_string_construct, re_string_reconstruct):
72457         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72458         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72459         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72460         (re_string_context_at, re_string_peek_byte_case):
72461         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72462         is defined, since we now use prototypes always.
72463
72464         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72465         C89 or better.  All uses removed.
72466
72467 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * config/srclist.txt: Add glibc bugs 1220-1227.
72470
72471 2005-08-20  Jim Meyering  <jim@meyering.net>
72472
72473         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72474         of unused local, dfa.
72475
72476 2005-08-20  Bruno Haible  <bruno@clisp.org>
72477
72478         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72479
72480 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72483         (re_node_set_insert_last, re_dfa_add_node):
72484         Rename local variables to avoid GCC shadowing warnings.
72485
72486 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72489         [defined lint]: Suppress bogus uninitialized-variable warnings.
72490
72491         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72492         and let the caller return REG_ESPACE if out of space.  This
72493         removes an uninitialied-variable warning with GCC 4.0.1, and also
72494         avoids taking the address of a local variable.  All callers
72495         changed.
72496
72497 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72500         $LIBCSRC/posix/regexec.c.
72501         Add glibc bug 1217 for regcomp.c.
72502
72503 2005-08-19  Jim Meyering  <jim@meyering.net>
72504
72505         * lib/regexec.c (proceed_next_node): Redo local variables to
72506         avoid GCC shadowing warnings.
72507
72508 2005-08-18  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/strstr.c (strstr): Fix return value in multibyte case.
72511         * lib/strcasestr.c (strcasestr): Likewise.
72512
72513 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72516
72517 2005-08-17  Jim Meyering  <jim@meyering.net>
72518
72519         Make the %s format (seconds since the epoch) work for a negative
72520         number and when used with a zero-padded field width, e.g. %015s.
72521
72522         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72523         label so that it precedes the code to set `digits'.  Otherwise,
72524         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72525         print `00-22'.  Now, it prints `-0022', as it should.
72526
72527 2005-08-17  Bruno Haible  <bruno@clisp.org>
72528
72529         * modules/strstr (Files): Add m4/mbrtowc.m4.
72530         (Depends-on): Add mbuiter.
72531
72532 2005-08-17  Bruno Haible  <bruno@clisp.org>
72533
72534         * modules/strcasestr: New file.
72535         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72536         strcasestr.
72537
72538 2005-08-17  Bruno Haible  <bruno@clisp.org>
72539
72540         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72541
72542 2005-08-17  Bruno Haible  <bruno@clisp.org>
72543
72544         * modules/mbuiter: New file.
72545         * MODULES.html.sh (Extended multibyte and wide character utilities):
72546         Add mbuiter.
72547
72548 2005-08-17  Bruno Haible  <bruno@clisp.org>
72549
72550         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72551         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72552
72553 2005-08-17  Bruno Haible  <bruno@clisp.org>
72554
72555         * m4/strcasestr.m4: New file.
72556
72557 2005-08-17  Bruno Haible  <bruno@clisp.org>
72558
72559         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72560         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72561
72562 2005-08-17  Bruno Haible  <bruno@clisp.org>
72563
72564         * lib/strcasestr.h: New file.
72565         * lib/strcasestr.c: New file.
72566
72567 2005-08-17  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/strcasecmp.c: Use mbuiter.h.
72570
72571 2005-08-17  Bruno Haible  <bruno@clisp.org>
72572
72573         * lib/mbuiter.h: New file.
72574
72575 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72576
72577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72578         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72579         and gl_GETOPT are both invoked via different paths (as happens
72580         with GNU tar CVS because it uses both argp and getopt), the former
72581         wins.
72582
72583 2005-08-16  Bruno Haible  <bruno@clisp.org>
72584
72585         * modules/tls: New file.
72586         * MODULES.html.sh (Multithreading): Add tls.
72587
72588 2005-08-16  Bruno Haible  <bruno@clisp.org>
72589
72590         * modules/strnlen1: New file.
72591         * MODULES.html.sh (String handling): Add strnlen1.
72592
72593 2005-08-16  Bruno Haible  <bruno@clisp.org>
72594
72595         * modules/strcase (Files): Add m4/mbrtowc.m4.
72596         (Depends-on): Add strnlen1, mbchar.
72597
72598 2005-08-16  Bruno Haible  <bruno@clisp.org>
72599
72600         * modules/mbiter: New file.
72601         * MODULES.html.sh (Extended multibyte and wide character utilities):
72602         Add mbiter.
72603
72604 2005-08-16  Bruno Haible  <bruno@clisp.org>
72605
72606         * modules/mbfile: New file.
72607         * MODULES.html.sh (Extended multibyte and wide character utilities):
72608         Add mbfile.
72609
72610 2005-08-16  Bruno Haible  <bruno@clisp.org>
72611
72612         * modules/mbchar: New file.
72613         * MODULES.html.sh (Extended multibyte and wide character utilities):
72614         New section.
72615
72616 2005-08-16  Bruno Haible  <bruno@clisp.org>
72617
72618         * m4/tls.m4: New file, from GNU gettext.
72619
72620 2005-08-16  Bruno Haible  <bruno@clisp.org>
72621
72622         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72623         always.
72624         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72625
72626 2005-08-16  Bruno Haible  <bruno@clisp.org>
72627
72628         * m4/mbiter.m4: New file.
72629
72630 2005-08-16  Bruno Haible  <bruno@clisp.org>
72631
72632         * m4/mbfile.m4: New file.
72633
72634 2005-08-16  Bruno Haible  <bruno@clisp.org>
72635
72636         * m4/mbchar.m4: New file.
72637
72638 2005-08-16  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/tls.h: New file, from GNU gettext.
72641         * lib/tls.c: New file, from GNU gettext.
72642
72643 2005-08-16  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/strnlen1.h: New file.
72646         * lib/strnlen1.c: New file.
72647
72648 2005-08-16  Bruno Haible  <bruno@clisp.org>
72649
72650         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72651         (mbi_init): Update.
72652         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72653         NUL byte, not after it.
72654
72655 2005-08-16  Bruno Haible  <bruno@clisp.org>
72656
72657         * lib/strcase.h (strcasecmp): Add note in comments.
72658         * lib/strncasecmp.c: Use code from strcasecmp.c.
72659         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72660         (strcasecmp): Work correctly in multibyte locales.
72661
72662 2005-08-16  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/mbiter.h: New file.
72665
72666 2005-08-16  Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/mbfile.h: New file.
72669
72670 2005-08-16  Bruno Haible  <bruno@clisp.org>
72671
72672         * lib/mbchar.h: New file.
72673         * lib/mbchar.c: New file.
72674
72675 2005-08-16  Bruno Haible  <bruno@clisp.org>
72676
72677         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72678         the valid ones. Makes the comparison operations transitive:
72679         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72680         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72681
72682 2005-08-15  Simon Josefsson  <jas@extundo.com>
72683
72684         * modules/ssize_t (License): Change to 'unlimited'.
72685
72686         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72687
72688 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72689
72690         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72691         Add comments for each pending glibc patch.
72692
72693 2005-08-15  Bruno Haible  <bruno@clisp.org>
72694
72695         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72696         __cplusplus is defined.
72697
72698 2005-08-14  Jim Meyering  <jim@meyering.net>
72699
72700         Sync from coreutils.
72701
72702         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72703         Use the hash-table-based cycle-detection code not just when
72704         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72705         Reported by James Youngman in
72706         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72707         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72708         FTS_TIGHT_CYCLE_CHECK.
72709         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72710         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72711         once again.
72712         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72713         * lib/fts.c (fd_safer): Remove decl.
72714         Include fcntl--.h rather than unistd-safer.h
72715         (fts_safe_changedir): Don't call fd_safer; no longer needed
72716         now that we include fcntl--.h.
72717
72718 2005-08-12  Simon Josefsson  <jas@extundo.com>
72719
72720         * modules/getndelim2: Use ssize_t module.
72721         * modules/getnline: Likewise.
72722         * modules/safe-read: Likewise.
72723         * modules/xreadlink: Likewise.
72724
72725         * modules/ssize_t: New file.
72726
72727 2005-08-12  Simon Josefsson  <jas@extundo.com>
72728
72729         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72730
72731 2005-08-12  Simon Josefsson  <jas@extundo.com>
72732
72733         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72734         ssize_t.
72735
72736 2005-08-12  Simon Josefsson  <jas@extundo.com>
72737
72738         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72739         readline, getdelim and check_version.
72740         (Support for systems lacking ISO C 99: Sizes of integer types):
72741         Add size_max.
72742
72743 2005-08-12  Bruno Haible  <bruno@clisp.org>
72744
72745         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72746
72747 2005-08-11  Simon Josefsson  <jas@extundo.com>
72748
72749         * modules/readline: New file.
72750
72751         * modules/strnlen (Files): Add strnlen.h.
72752
72753 2005-08-11  Simon Josefsson  <jas@extundo.com>
72754
72755         * m4/readline.m4: New file.
72756
72757 2005-08-11  Simon Josefsson  <jas@extundo.com>
72758
72759         * lib/readline.h, readline.c: New file.
72760
72761 2005-08-11  Simon Josefsson  <jas@extundo.com>
72762
72763         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72764         gl_AVOID.
72765
72766 2005-08-11  Bruno Haible  <bruno@clisp.org>
72767
72768         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72769
72770 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72771
72772         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72773
72774 2005-08-10  Simon Josefsson  <jas@extundo.com>
72775
72776         * tests/test-iconvme.c: New file.
72777
72778 2005-08-10  Simon Josefsson  <jas@extundo.com>
72779
72780         * m4/strnlen.m4: New file.
72781
72782         * m4/strndup.m4: Don't check for strnlen declaration, done in
72783         strnlen.m4.
72784
72785 2005-08-10  Simon Josefsson  <jas@extundo.com>
72786
72787         * lib/strndup.c: Use strnlen.h.
72788
72789         * lib/strnlen.h: New file.
72790
72791 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72792
72793         * README: Typos.
72794
72795 2005-08-02  Simon Josefsson  <jas@extundo.com>
72796
72797         * modules/readline: New file.
72798
72799 2005-08-02  Simon Josefsson  <jas@extundo.com>
72800
72801         * modules/getdelim: New file.
72802
72803         * modules/getline: Rewrite, don't use getndelim2.
72804
72805 2005-08-02  Simon Josefsson  <jas@extundo.com>
72806
72807         * m4/getline.m4: Separate out getdelim stuff into separate module.
72808
72809         * m4/getdelim.m4: New file.
72810
72811 2005-08-02  Simon Josefsson  <jas@extundo.com>
72812
72813         * lib/getline.h, getline.c: Rewrite.
72814
72815         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72816
72817 2005-07-31  Bruno Haible  <bruno@clisp.org>
72818
72819         * lib/lock.h (gl_lock_initializer): New macro.
72820         (gl_lock_define_initialized): Use it.
72821         (gl_rwlock_initializer): New macro.
72822         (gl_rwlock_define_initialized): Use it.
72823         (gl_recursive_lock_initializer): New macro.
72824         (gl_recursive_lock_define_initialized): Use it.
72825
72826 2005-07-30  Karl Berry  <karl@gnu.org>
72827
72828         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72829         Report from Ben Pfaff, regarding getopt.
72830
72831 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72834         normal way.
72835         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72836         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72837         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72838         (gl_GETOPT): Use the new macros.  Most of the implementation
72839         is moved to the new macros.  This is for programs like Emacs
72840         that don't want all the functionality of gl_GETOPT.
72841
72842 2005-07-26  Bruno Haible  <bruno@clisp.org>
72843
72844         * m4/lock.m4: Update from GNU gettext.
72845
72846 2005-07-26  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/lock.h: Update from GNU gettext.
72849         * lib/lock.c: Update from GNU gettext.
72850
72851 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72854         obsolescent AC_TRY_RUN.  Include the default includes files, for
72855         'exit'.
72856
72857 2005-07-24  Bruno Haible  <bruno@clisp.org>
72858
72859         * modules/visibility: New file.
72860         * MODULES.html.sh (Misc): Add visibility.
72861
72862 2005-07-24  Bruno Haible  <bruno@clisp.org>
72863
72864         * m4/visibility.m4: New file.
72865
72866 2005-07-24  Bruno Haible  <bruno@clisp.org>
72867
72868         * doc/visibility.texi: New file.
72869
72870 2005-07-22  Bruno Haible  <bruno@clisp.org>
72871
72872         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72873         $(ALLOCA_H), redundant through BUILT_SOURCES.
72874         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72875         redundant through BUILT_SOURCES.
72876         * modules/byteswap (Makefile.am): Remove explicit dependency on
72877         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72878         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72879         $(FNMATCH_H), redundant through BUILT_SOURCES.
72880         * modules/getopt (Makefile.am): Remove explicit dependency on
72881         $(GETOPT_H), redundant through BUILT_SOURCES.
72882         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72883         redundant through BUILT_SOURCES.
72884         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72885         redundant through BUILT_SOURCES.
72886         * modules/stdbool (Makefile.am): Remove explicit dependency on
72887         $(STDBOOL_H), redundant through BUILT_SOURCES.
72888         * modules/stdint (Makefile.am): Remove explicit dependency on
72889         $(STDINT_H), redundant through BUILT_SOURCES.
72890         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72891         Remove explicit dependency on $(SYSEXITS_H).
72892         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72893
72894 2005-07-18  Simon Josefsson  <jas@extundo.com>
72895
72896         * lib/check-version.c (check_version): Accept identical versions too.
72897
72898 2005-07-18  Bruno Haible  <bruno@clisp.org>
72899
72900         * modules/lock: New file.
72901         * MODULES.html.sh (Multithreading): New section.
72902
72903 2005-07-18  Bruno Haible  <bruno@clisp.org>
72904
72905         * m4/lock.m4: New file, from GNU gettext.
72906
72907 2005-07-18  Bruno Haible  <bruno@clisp.org>
72908
72909         * lib/lock.h: New file, from GNU gettext.
72910         * lib/lock.c: New file, from GNU gettext.
72911
72912 2005-07-18  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/lock.h (gl_once_t): New type.
72915         (gl_once_define, gl_once): New macros.
72916         * lib/lock.c (fresh_once): New variable.
72917         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72918         functions.
72919
72920 2005-07-16  Simon Josefsson  <jas@extundo.com>
72921
72922         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72923         workaround, suggested by Bruno.
72924
72925 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         * modules/xalloc (Depends-on): Add xalloc-die.
72928         * modules/xvasprintf (Depends-on): Add xalloc-die.
72929
72930 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72931
72932         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72933         with a minor change.
72934
72935 2005-07-15  Bruno Haible  <bruno@clisp.org>
72936
72937         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72938         When using lib/poll.c, define poll as rpl_poll.
72939
72940 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72941
72942         * modules/argp (Depends-on): Remove unlocked-io.
72943
72944 2005-07-14  Derek Price  <derek@ximbiot.com>
72945
72946         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72947         for glob symlink bug.
72948
72949 2005-07-14  Bruno Haible  <bruno@clisp.org>
72950
72951         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72952         Instead, test for *_unlocked function declarations directly.
72953
72954 2005-07-11  Simon Josefsson  <jas@extundo.com>
72955
72956         * modules/size_max: New file.
72957
72958         * modules/xsize: Depend on size_max module for size_max.m4.
72959
72960 2005-07-11  Simon Josefsson  <jas@extundo.com>
72961
72962         * lib/size_max.h: New file.
72963
72964 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72967         copyright symbol and the year.
72968         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72969         (version_etc_va): Use parameterized copyright notice.
72970         Reword to conform to the current GNU coding standards.
72971
72972 2005-07-11  Karl Berry  <karl@gnu.org>
72973
72974         * doc/gnulib.texi (Quoting): new node.
72975         (Initial import): more info, from Patrice.
72976
72977 2005-07-11  Bruno Haible  <bruno@clisp.org>
72978
72979         * gnulib-tool (func_usage): Document option --avoid.
72980         (Command line options): Handle --avoid.
72981         (func_acceptable): New function.
72982         (func_modules_transitive_closure): Use it.
72983
72984 2005-07-11  Bruno Haible  <bruno@clisp.org>
72985
72986         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72987         Reported by Jim Meyering.
72988
72989 2005-07-10  Bruno Haible  <bruno@clisp.org>
72990
72991         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72992         Needed when size_t is smaller than 'unsigned int'.
72993         Reported by Paul Eggert.
72994
72995 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72996
72997         * modules/argp (Depends-on): Add unlocked-io
72998
72999 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73000
73001         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73002         block of defines.
73003
73004 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73007         fix now.
73008
73009 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73010         and Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73013         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73014
73015 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * modules/regex (Files): Add lib/regex_internal.c,
73018         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73019         (Depends-on): Add extensions.
73020         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73021
73022 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73023
73024         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73025         pathconf.
73026         * m4/same.m4 (gl_SAME): Likewise.
73027         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73028
73029         * m4/regex.m4: Adjust to new libc regex implementation.
73030         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73031         all the .c and .h parts of (the new) regex.
73032         Quote the m4 stuff better.
73033         Check for RE_ICASE bug of old gnulib.
73034         Check for REG_STARTEND of recent libc.
73035         Rename local variables from jm_* to gl_*.
73036         Quote operand of "test -f".
73037         Say "recent enough" version of libc, not "version 2".
73038         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73039         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73040         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73041         Remove check for btowc, isascii.
73042         Require AM_LANGINFO_CODESET.
73043
73044 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * lib/regex.c, regex.h: Sync from libc.
73047         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73048         * lib/regexec.c:
73049         New files, synced from libc, except that regex_internal.h
73050         currently has a small porting fix.
73051
73052 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73055         regex_internal.c, regexec.c.
73056         Add regex_internal.h too, but as a comment, since the libc version
73057         is currently broken in gnulib mode.
73058
73059 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         Support programs like Emacs that use gnulib but not gettext.
73062         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73063         * modules/gettext-h: New file.
73064         * modules/gettext (Files): Remove lib/gettext.h.
73065         (Depends-on): Add gettext-h.
73066         (Makefile.am): Remove lib_SOURCES.
73067         * modules/argmatch, modules/c-stack, modules/closeout:
73068         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73069         * modules/execute, modules/file-type, modules/getaddrinfo:
73070         * modules/getopt, modules/human, modules/javacomp:
73071         * modules/javaexec, modules/mkdir-p, modules/obstack:
73072         * modules/openat, modules/pagealign_alloc, modules/pipe:
73073         * modules/quotearg, modules/regex, modules/rpmatch:
73074         * modules/unicodeio, modules/userspec, modules/version-etc:
73075         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73076         * modules/xsetenv:
73077         Depend on gettext-h, not gettext.
73078
73079 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * gnulib-tool (func_import): Add support for 'public domain' license.
73082         * modules/alloca, modules/atexit, modules/memmove:
73083         Now public domain, not GPL.
73084         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73085         * modules/realloc, modules/strerror, modules/strtod:
73086         Now LGPL, not GPL.
73087
73088 2005-07-05  Bruno Haible  <bruno@clisp.org>
73089
73090         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73091         autoconf CVS. Needed for mingw.
73092
73093 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73094
73095         Remove the dependency of the strftime module on the tzset module.
73096         * modules/strftime (Depends-on): Remove dependency on tzset.
73097
73098 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73099
73100         Remove the dependency of the strftime module on the tzset module.
73101         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73102         gl_FUNC_TZSET_CLOBBER.
73103
73104 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         Remove the dependency of the strftime module on the tzset module.
73107         * lib/strftime.c (my_strftime)
73108         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73109         Copy the input structure, to work around some of the bug with
73110         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73111         Solaris releases, you should also use the tzset module, but we won't
73112         require it as a dependency any more since we don't want LGPLed code
73113         to depend on GPLed code.
73114
73115 2005-07-02  Jim Meyering  <jim@meyering.net>
73116
73117         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73118         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73119         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73120         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73121
73122 2005-07-02  Jim Meyering  <jim@meyering.net>
73123
73124         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73125
73126 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73129         declares only 'struct timespec;' (!).
73130
73131 2005-07-01  Jim Meyering  <jim@meyering.net>
73132
73133         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73134         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73135         * lib/save-cwd.c, tempname.c:
73136         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73137         and don't include <sys/file.h>).
73138
73139 2005-06-29  Jim Meyering  <jim@meyering.net>
73140
73141         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73142         type name.  Use the variable name instead.
73143         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73144         Likewise.
73145
73146 2005-06-28  Simon Josefsson  <jas@extundo.com>
73147
73148         * modules/check-version (Files): Add check-version.m4.
73149
73150 2005-06-28  Simon Josefsson  <jas@extundo.com>
73151
73152         * m4/check-version.m4: New file, suggested by Jim Meyering
73153         <jim@meyering.net>.
73154
73155 2005-06-28  Simon Josefsson  <jas@extundo.com>
73156
73157         * lib/check-version.h, lib/check-version.c: New files.
73158
73159 2005-06-28  Simon Josefsson  <jas@extundo.com>
73160
73161         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73162         collision with global variable.  Better indentation.  Don't
73163         increment buffer pointer beyond buffer end.  Based on comments
73164         from Paul Eggert <eggert@cs.ucla.edu>.
73165
73166         * lib/base64.h: Indent.
73167
73168 2005-06-28  Simon Josefsson  <jas@extundo.com>
73169
73170         * doc/gnulib.texi (Library version handling): New section.
73171
73172 2005-06-28  Jim Meyering  <jim@meyering.net>
73173
73174         * check-module (find_included_lib_files): Hard-code another
73175         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73176         but modules/fts-lgpl (correctly) does not list those files.
73177
73178         * modules/canonicalize (Files): Add lib/pathmax.h.
73179
73180 2005-06-25  Simon Josefsson  <jas@extundo.com>
73181
73182         * modules/check-version: New file.
73183
73184 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73187         initializer of struct addrinfo, as an indication that we don't
73188         care how many members the structure has.
73189
73190 2005-06-24  Derek Price  <derek@ximbiot.com>
73191         and Bruno Haible  <bruno@clisp.org>
73192
73193         Remove stat module & update lstat.
73194         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73195         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73196         * m4/stat.m4: Remove this file.
73197
73198 2005-06-24  Derek Price  <derek@ximbiot.com>
73199         and Bruno Haible  <bruno@clisp.org>
73200
73201         Remove stat module & update lstat.
73202         * lib/stat.c: Remove this file...
73203         (slash_aware_lstat): ...moving this content and its support...
73204         * lib/lstat.c (rpl_lstat): ...into here.
73205         * lib/lstat.h: New file.
73206
73207 2005-06-24  Derek Price  <derek@ximbiot.com>
73208         and Bruno Haible  <bruno@clisp.org>
73209
73210         Remove stat module & update lstat.
73211         * config/srclist.txt (libc sources): Remove stat.
73212
73213 2005-06-24  Derek Price  <derek@ximbiot.com>
73214         and Bruno Haible  <bruno@clisp.org>
73215
73216         Remove stat module & update lstat.
73217         * MODULES.html.sh (stat): Remove.
73218         * MODULES.html: Regenerated.
73219         * modules/lstat (Description): Correct function name.
73220         (Files): Add "lstat.h".
73221         (Depends-on): Remove stat, add xalloc, stat-macros.
73222         * modules/stat: Remove this file.
73223         (Include): Add "lstat.h", remove <sys/stat.h>.
73224
73225 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73228         (ranged_convert): Don't save conversion in a temporary struct.
73229         This causes a warning with GCC 4.0.0, and anyway in the typical
73230         case it's not worth the extra 100 bytes or so of code.
73231         (ranged_convert, __mktime_internal): When calling a function via a
73232         pointer P, use P () rather than (*P) (), as we now assume C89 or
73233         better.
73234
73235 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73238         "who -r" failed to give output.  Problem reported by Tim Waugh.
73239
73240         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73241         (xcalloc): Use it to avoid needless tests.
73242         Problem reported by Jim Meyering.
73243
73244 2005-06-20  Derek Price  <derek@ximbiot.com>
73245
73246         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73247         unnecessary for Autoconfs > 2.59c.
73248
73249 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73250
73251         * lib/argp.h (__option_is_short): Check upper limit of
73252         __key. Isprint() requires its argument to have the value
73253         of an unsigned char or EOF.
73254
73255 2005-06-16  Jim Meyering  <jim@meyering.net>
73256
73257         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73258         when either N or S is zero.
73259
73260 2005-06-16  Derek Price  <derek@ximbiot.com>
73261
73262         * m4/bison.m4: Declare YACC & YFLAGS precious.
73263
73264 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73267         multibyte string or pattern, fall back on unibyte matching.
73268         Problem reported by James Youngman.
73269
73270 2005-06-08  Bruno Haible  <bruno@clisp.org>
73271
73272         * modules/csharpcomp: New file.
73273         * MODULES.html.sh (C#): Add csharpcomp.
73274
73275 2005-06-08  Bruno Haible  <bruno@clisp.org>
73276
73277         * m4/csharpcomp.m4: New file, from GNU gettext.
73278
73279 2005-06-08  Bruno Haible  <bruno@clisp.org>
73280
73281         * lib/csharpcomp.h: New file, from GNU gettext.
73282         * lib/csharpcomp.c: New file, from GNU gettext.
73283         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73284
73285 2005-06-08  Bruno Haible  <bruno@clisp.org>
73286
73287         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73288         warning on mingw.
73289
73290 2005-06-07  Derek Price  <derek@ximbiot.com>
73291
73292         Sync from CVS.
73293         * lib/glob_.h: Indent nested #ifdef.
73294
73295 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         Sync from coreutils.
73298         Use "file name" when talking about file names, instead of "filename"
73299         or "path", as per the GNU coding standards.
73300         * lib/mkdir-p.c: Renamed from makepath.c.
73301         (make_dir_parents): Renamed from make_path.  All callers changed.
73302         * lib/mkdir-p.h: Likewise.  All includers changed.
73303         * lib/filenamecat.c: Renamed from path-concat.c.
73304         (file_name_concat): Renamed from path_concat.  All callers changed.
73305         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73306         * lib/filenamecat.h: Likewise.  All includers changed.
73307         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73308         in comments or local variable names.
73309         * lib/basename.c: Likewise.
73310         * lib/canonicalize.c, canonicalize.h: Likewise.
73311         * lib/dirname.c, dirname.h: Likewise.
73312         * lib/euidaccess.c: Likewise.
73313         * lib/exclude.c: Likewise
73314         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73315         * lib/fsusage.c, fsuage.h: Likewise.
73316         * lib/fts.c, fts_.h: Likewise.
73317         * lib/getcwd.c: Likewise.
73318         * lib/getloadavg.c: Likewise.
73319         * lib/mkstemp.c: Likewise.
73320         * lib/mountlist.c, mountlist.h: Likewise.
73321         * lib/openat.c, openat.h: Likewise.
73322         * lib/readlink-stub.c: Likewise.
73323         * lib/readutmp.c, readutmp.h: Likewise.
73324         * lib/rename.c: Likewise.
73325         * lib/rmdir.c: Likewise.
73326         * lib/same.c: Likewise.
73327         * lib/savedir.c: Likewise.
73328         * lib/stripslash.c: Likewise.
73329         * lib/tempname.c: Likewise.
73330         * lib/xreadlink.c: Likewise.
73331         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73332         All uses changed.
73333         * lib/exclude.h: Likewise.
73334
73335         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73336         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73337         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73338         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73339         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73340         files have been getting away with it for years (MORE/BSD 4.3
73341         is extinct now).
73342         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73343         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73344
73345         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73346         Define to 256, not 255, as per modern POSIX.
73347
73348 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         Sync from coreutils.
73351         Use "file name" when talking about file names, instead of "filename"
73352         or "path", as per the GNU coding standards.
73353         * MODULES.html.sh: mkdir-p renamed from makepath.
73354         filenamecat renamed from path-concat.
73355         * modules/filenamecat: Renamed from modules/path-concat.
73356         (Files): filenamecat.h and filenamecat.c renamed from
73357         path-concat.h and path-concat.c.
73358         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73359         (Include): filenamecat.h, not path-concat.h.
73360         * modules/mkdir-p: Renamed from modules/makepath.
73361         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73362         makepath.c.
73363         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73364         (Include): mkdir-p.h, not makepath.h.
73365
73366 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73367
73368         Sync from coreutils.
73369         * m4/mkdir-p.m4: Renamed from makepath.m4.
73370         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73371         Rename files from makepath.c to mkdir-p.c, and from
73372         makepath.h to mkdir-p.h.
73373         * m4/filenamecat.m4: Renamed from path-concat.m4.
73374         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73375         Rename files from path-concat.c to filenamecat.c,
73376         and from path-concat.h to filenamecat.h.
73377         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73378         "file name" in local variables or comments.
73379         * m4/rename.m4: Likewise.
73380
73381 2005-06-01  Bruno Haible  <bruno@clisp.org>
73382
73383         * modules/csharpexec: New file.
73384         * MODULES.html.sh (C#): New section.
73385
73386 2005-06-01  Bruno Haible  <bruno@clisp.org>
73387
73388         * m4/csharp.m4: New file, from GNU gettext.
73389         * m4/csharpexec.m4: New file, from GNU gettext.
73390
73391 2005-06-01  Bruno Haible  <bruno@clisp.org>
73392
73393         * lib/csharpexec.h: New file, from GNU gettext.
73394         * lib/csharpexec.c: New file, from GNU gettext.
73395         * lib/csharpexec.sh.in: New file, from GNU gettext.
73396
73397 2005-05-31  Derek Price  <derek@ximbiot.com>
73398             Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         Sync from cvs.
73401         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73402
73403 2005-05-31  Derek Price  <derek@ximbiot.com>
73404             Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         Sync from cvs.
73407         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73408
73409 2005-05-29  Derek Price  <derek@ximbiot.com>
73410
73411         * config/srclist.txt (glob_.h, glob.c): Add these files.
73412
73413 2005-05-29  Derek Price  <derek@ximbiot.com>
73414
73415         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73416         * modules/glob: New file.
73417         * modules/getlogin_r: Add link to POSIX spec in description.
73418
73419 2005-05-29  Derek Price  <derek@ximbiot.com>
73420             Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         * m4/glob.m4: New file.
73423
73424 2005-05-29  Derek Price  <derek@ximbiot.com>
73425             Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * lib/glob_.h, lib/glob.c: New files.
73428
73429 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73432         * modules/fts-lgpl (Depends-on): Remove gettext.
73433
73434 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73437         and don't require gt_INTTYPES_PRI.
73438
73439 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73442
73443         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73444         the configuration hassle isn't worth it.
73445         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73446         (LONGEST_MODIFIER, PRIuMAX): Remove.
73447
73448 2005-05-27  Bruno Haible  <bruno@clisp.org>
73449
73450         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73451
73452 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73453
73454         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73455         _POSIX_PTHREAD_SEMANTICS for Solaris.
73456
73457 2005-05-25  Derek Price  <derek@ximbiot.com>
73458
73459         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73460
73461 2005-05-25  Derek Price  <derek@ximbiot.com>
73462             Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73465         * lib/getlogin_r.c, getlogin_r.h: New files.
73466
73467 2005-05-25  Bruno Haible  <bruno@clisp.org>
73468             Derek Price  <derek@ximbiot.com>
73469
73470         * lib/getlogin_r.h: Simplify API documentation.
73471
73472 2005-05-23  Derek Price  <derek@ximbiot.com>
73473
73474         * modules/minmax (Files): Add m4/minmax.m4.
73475         (configure.ac): Add gl_MINMAX.
73476
73477 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73480         so that unistd-safer.h (GPL'ed code) need not be included.
73481
73482 2005-05-22  Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/minmax.m4: New file.
73485         Based on a patch by Derek Price <derek@ximbiot.com>.
73486
73487 2005-05-22  Bruno Haible  <bruno@clisp.org>
73488
73489         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73490         (INT64_MIN): Fix definition.
73491         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73492
73493         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73494         NEED_SIGNED_INT_TYPES.
73495
73496         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73497         HAVE_SYSTEM_INTTYPES.
73498
73499 2005-05-22  Bruno Haible  <bruno@clisp.org>
73500
73501         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73502         Also include <sys/param.h> if it defines MIN, MAX.
73503         Based on a patch by Derek Price <derek@ximbiot.com>.
73504
73505 2005-05-21  Jim Meyering  <jim@meyering.net>
73506
73507         * modules/fts (Files): Add m4/inttypes-pri.m4.
73508         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73509
73510 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73511
73512         New fts module.
73513         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73514         (setup_dir, free_dir): New functions.
73515         (enter_dir, leave_dir): Define trivial
73516         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73517         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73518         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73519         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73520         Move to fts-cycle.c.
73521         (fts_open): Use setup_dir.
73522         (fts_close): Use free_dir.
73523         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73524         This adds a label and some gotos, but the alternatives were messier.
73525         Check for memory allocation failure when entering a dir.
73526         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73527         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73528         (FTS): New member fts_cycle, that is a union that contains the
73529         old active_dir_ht and cycle_state.  All uses changed to mention
73530         fts_cycle.ht and fts_cycle.state.
73531         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73532         fts.c, with the following changes:
73533         (setup_dir, free_dir): New functions.
73534         (enter_dir): Now returns bool.  Return true if successful, false
73535         if memory exhausted.  All callers changed.
73536         Do not bother partly cleaning up on
73537         memory allocation failure; that is free_dir's job.
73538         However, free ad if hash_insert fails, to avoid memory leak.
73539         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73540         fts->fts_options to see which union member to use.
73541
73542 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73543
73544         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73545         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73546
73547 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73550
73551 2005-05-20  Jim Meyering  <jim@meyering.net>
73552
73553         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73554         Now a macro, to pacify GCC.
73555
73556 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73557
73558         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73559         of -1.
73560
73561 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73562
73563         * lib/chown.c (rpl_chown): Return -1 on failure.
73564
73565 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73566
73567         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73568         Don't check for stddef.h.
73569         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73570         don't use its results.
73571         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73572         since we include them unconditionally.  Don't require
73573         AM_STDBOOL_H, since stdbool is a prerequisite.
73574         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73575         since we assume C89 or better.
73576         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73577         as we don't use their results.
73578         Don't check for fchdir, memmove, memset, strrchr, as we use
73579         them unconditionally.
73580         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73581         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73582
73583 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73586         Include <stddef.h> unconditionally, since we assume C89 now.
73587         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73588         * lib/fts.c: Include fts_.h first, to check interface.
73589         Do not include intprops.h; no longer needed.
73590         Include cycle-check.h and hash.h, since fts_.h no longer does.
73591         Remove unnecessary casts of closedir to void.
73592         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73593         decide whether to decrement nlinks.
73594         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73595         (FTS): Use struct hash_table * instead of Hash_table, so that
73596         we no longer need to include hash.h here.
73597
73598 2005-05-18  Jim Meyering  <jim@meyering.net>
73599
73600         * modules/dirfd (License): Change to LGPL.  Most of the code
73601         is already in the public domain.
73602
73603 2005-05-18  Jim Meyering  <jim@meyering.net>
73604
73605         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73606         Reported by Yoann Vandoorselaere.
73607
73608 2005-05-17  Jim Meyering  <jim@meyering.net>
73609
73610         * m4/fts.m4: New file, from coreutils.
73611
73612 2005-05-17  Jim Meyering  <jim@meyering.net>
73613
73614         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73615
73616 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         Sync from coreutils.
73619         * m4/unlinkdir.m4: New file.
73620
73621 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         Sync from coreutils.
73624         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73625         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73626         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73627         White space changes only.
73628         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73629         special.
73630         * lib/yesno.c: Include getline.h, not ctype.h.
73631         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73632         Use getline to remove arbitrary restriction on response length.
73633
73634 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73635
73636         * config/srclist-update: Spell out "Street" in FSF postal
73637         mail address; this is the style the FSF seems to prefer.
73638
73639         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73640         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73641         this updates FSF postal mail address.
73642
73643         Sync from coreutils.
73644         * modules/unlinkdir: New file.
73645         * modules/yesno (Depends-on): Add getline.
73646         * MODULES.html.sh (File system functions): Add unlinkdir.
73647
73648 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73649
73650         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73651         lib/strsep.h:
73652         Change the initial comment to refer to GPL, not LGPL.
73653         gnulib-tool will change it to LGPL as needed.
73654
73655         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73656         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73657         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73658         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73659         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73660         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73661         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73662         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73663         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73664         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73665         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73666         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73667         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73668         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73669         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73670         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73671         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73672         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73673         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73674         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73675         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73676         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73677         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73678         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73679         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73680         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73681         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73682         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73683         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73684         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73685         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73686         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73687         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73688         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73689         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73690         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73691         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73692         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73693         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73694         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73695         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73696         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73697         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73698         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73699         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73700         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73701         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73702         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73703         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73704         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73705         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73706         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73707         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73708         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73709         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73710         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73711         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73712         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73713         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73714         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73715         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73716         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73717         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73718         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73719         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73720         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73721         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73722         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73723         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73724         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73725         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73726         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73727         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73728         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73729         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73730         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73731         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73732         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73733         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73734         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73735         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73736         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73737         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73738         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73739         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73740         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73741         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73742         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73743         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73744         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73745         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73746         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73747         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73748         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73749         lib/yesno.c, lib/yesno.h:
73750         Update FSF postal mail address.
73751
73752 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73755         tests/test-memmem.c, tests/test-stpncpy.c:
73756         Update FSF postal mail address.
73757
73758 2005-05-13  Bruno Haible  <bruno@clisp.org>
73759
73760         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73761         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73762         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73763         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73764         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73765         Add support for 64-bit integers in the MSVC compiler.
73766
73767 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73768
73769         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73770
73771 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73772
73773         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73774
73775 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * doc/getdate.texi (General date syntax): Don't say that date
73778         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73779         Problem reported by Nic Ferrier.
73780
73781 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73782
73783         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73784         specified in ai_socktype. Fix invalid ai_protocol
73785         check. ai_protocol is usually set to 0 or depending on
73786         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73787         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73788         ai_socktype / ai_protocol in the returned addrinfo structure.
73789
73790 2005-05-10  Simon Josefsson  <jas@extundo.com>
73791
73792         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73793         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73794
73795 2005-05-10  Karl Berry  <karl@gnu.org>
73796
73797         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73798         (from http://www.gnu.org/licenses).
73799         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73800         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73801         fdl.texi suffices.
73802
73803 2005-05-10  Karl Berry  <karl@gnu.org>
73804
73805         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73806         (COPYING.DOC): remove.
73807
73808         * config/srclist-update: new FSF address.
73809
73810 2005-05-10  Derek Price  <derek@ximbiot.com>
73811
73812         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73813         possible.
73814
73815 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73816             Bruno Haible  <bruno@clisp.org>
73817
73818         * modules/inet_ntop: New file.
73819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73820         inet_ntop.
73821
73822 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73823             Bruno Haible  <bruno@clisp.org>
73824
73825         * m4/inet_ntop.m4: New file.
73826
73827 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73828             Bruno Haible  <bruno@clisp.org>
73829
73830         * lib/inet_ntop.h: New file.
73831         * lib/inet_ntop.c: New file, from glibc with modifications.
73832
73833 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         * modules/time_r (License): Change to LGPL.
73836         * modules/extensions (License): Change to LGPL.  Actually,
73837         the license is more permissive than that, but currently gnulib-tool
73838         doesn't know how to handle more-permissive licenses.
73839
73840         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73841         Problem reported by Dave Love.
73842
73843 2005-05-08  Jim Meyering  <jim@meyering.net>
73844
73845         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73846         blank.
73847
73848 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * modules/argmatch (Depends-on): Add stdbool.
73851         * modules/backupfile (Depends-on): Likewise.
73852         * modules/chdir-long (Depends-on): Likewise.
73853         * modules/closeout (Depends-on): Likewise.
73854         * modules/cycle-check (Depends-on): Likewise.
73855         * modules/dirname (Depends-on): Likewise.
73856         * modules/fnmatch (Depends-on): Likewise.
73857         * modules/fsusage (Depends-on): Likewise.
73858         * modules/fwriteerror (Depends-on): Likewise.
73859         * modules/getcwd (Depends-on): Likewise.
73860         * modules/getloadavg (Depends-on): Likewise.
73861         * modules/hard-locale (Depends-on): Likewise.
73862         * modules/makepath (Depends-on): Likewise.
73863         * modules/mountlist (Depends-on): Likewise.
73864         * modules/nanosleep (Depends-on): Likewise.
73865         * modules/posixtm (Depends-on): Likewise.
73866         * modules/quotearg (Depends-on): Likewise.
73867         * modules/readtokens (Depends-on): Likewise.
73868         * modules/readtokens0 (Depends-on): Likewise.
73869         * modules/readutmp (Depends-on): Likewise.
73870         * modules/save-cwd (Depends-on): Likewise.
73871         * modules/strftime (Depends-on): Likewise.
73872         * modules/userspec (Depends-on): Likewise.
73873         * modules/utimecmp (Depends-on): Likewise.
73874         * modules/xgetcwd (Depends-on): Likewise.
73875         * modules/xnanosleep (Depends-on): Likewise.
73876         * modules/xstrtod (Depends-on): Likewise.
73877         * modules/yesno (Depends-on): Likewise.
73878
73879 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73882         needless checks.
73883
73884 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         Merge from coreutils.  Among other things,
73887         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73888         * lib/fd-safer.c: New file.
73889         * lib/fcntl-safer.h, open-safer.c: Remove.
73890         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73891         * lib/dup-safer.c: Include unistd-safer.h first.
73892         Don't include errno.h.
73893         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73894         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73895         * lib/file-type.c: Rely on file-type.h change.
73896         * lib/getloadavg.c: Include unistd-safer.h.
73897         (getloadavg): Use safer open.
73898         * lib/getusershell.c: Include "stdio-safer.h".
73899         (getusershell): Use safer fopen.
73900         * lib/long-options.c (long_options): Use NULL rather than 0.
73901         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73902         'free'.
73903         * lib/modechange.c: Likewise.
73904         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73905         (MODE_DONE): New constant.
73906         (struct mode_change): Remove 'next' member.
73907         (make_node_op_equals): New function; like the old one of the
73908         same name, except it allocates an array.
73909         (mode_compile, mode_create_from_ref): Use it.
73910         (mode_compile): Allocate result as an array, not a linked list.
73911         Parse octal string ourself, so that we catch mistakes like "+0".
73912         (mode_adjust): Arg is an array, not a linked list.
73913         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73914         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73915         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73916         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73917         Remove.  This is now stat-macros.h's job.
73918         (talloc): Remove.  All callers replaced by xalloc, so that
73919         our invokers don't have to worry about reporting memory failures.
73920         (make_node_op_equals): Remove.
73921         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73922         New constants.
73923         (struct mode_change): Moved here from modechange.h.
73924         (mode_append_entry): Remove.
73925         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73926         apps to have incorrect behavior.  Use simpler algorithm for head
73927         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73928         Detect more invalid usages rather than having somewhat-random behavior.
73929         Don't insert an "a=" action, as that leads to incorrect behavior.
73930         (mode_compile, mode_create_from_ref): Return NULL on error instead
73931         of an enum, since now there's only one way to have an error.  All
73932         callers changed.
73933         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73934         at the correct time.  Simplify calculation of "+u" and its ilk.
73935         Don't mishandle "+X".
73936         (mode_free): Remove "register" and localize decls.
73937         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73938         (struct mode_change): Move to modechange.c; callers don't
73939         need to see this stuff.
73940         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73941         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73942         (mode_change, mode_adjust): Reflect the new signatures noted above.
73943         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73944         that might redefine system include files.
73945         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73946         (my_usleep): Use NULL rather than (void *) 0.
73947         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73948         Use siginterrupt to specify that system calls should be interrupted.
73949         (rpl_nanosleep): Move initialization of suspended closer to call of
73950         my_usleep.
73951         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73952         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73953         (desirable_utmp_entry): New function.
73954         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73955         using x2nrealloc, to simplify logic.
73956         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73957         size calculation.  Do not assume utmp file is a regular file.
73958         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73959         (READ_UTMP_CHECK_PIDS): New constant.
73960         * lib/save-cwd.c: Include unistd-safer.h.
73961         (save_cwd): Use fd_safer.
73962         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73963         [!_LIBC] Include "stat-macros.h" instead.
73964         * lib/unistd-safer.h (fd_safer): New decl.
73965
73966 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * modules/getloadavg (Depends-on): Add unistd-safer.
73969         * modules/getusershell (Depends-on): Add stdio-safer.
73970         * modules/lstat (Depends-on): Remove xalloc.
73971         * modules/mkstemp (Depends-on): Add stat-macros.
73972         * modules/modechange (Depends-on): Remove xstrtol.
73973         Add stat-macros, xalloc.
73974         * modules/save-cwd (Depends-on): Add unistd-safer.
73975         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73976         * modules/unistd-safer (Files): Add lib/fd-safer.c
73977         (Makefile.am): Remove lib_SOURCES.
73978
73979         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73980         Remove fcntl-safer; unistd-safer supersedes it.
73981
73982 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73983
73984         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73985         AC_HEADER_STAT.
73986         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73987         (gl_PREREQ_CHOWN): Remove.
73988         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73989         it.  Don't require AC_HEADER_STAT.
73990         (gl_PREREQ_LSTAT): Remove.
73991         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73992         Don't require AC_HEADER_STAT.
73993         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73994         (gl_PREREQ_RMDIR): Remove.
73995         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73996         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73997         the stat-macros module a prerequisite.
73998         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73999         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74000         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74001         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74002         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74003         variable names.
74004         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74005         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74006         variable prefixes.
74007         * m4/fcntl-safer.m4: Remove.
74008         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74009         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74010         Invoke gl_PREREQ_FD_SAFER.
74011         (gl_PREREQ_FD_SAFER): New macro.
74012         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74013         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74014         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74015         Remove duplicate call to AC_LIBOBJ(readutmp).
74016         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74017
74018         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74019         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74020
74021 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * MODULES.html.sh (Misc): Add byteswap.
74024
74025 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74026
74027         * modules/getcwd (Depends-on): Add extensions.
74028         * modules/openat (Depends-on): Likewise.
74029
74030 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74031
74032         * modules/byteswap: New file.
74033
74034 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74035
74036         * m4/byteswap.m4: New file.
74037
74038 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74039
74040         * lib/byteswap_.h: New file.
74041
74042 2005-04-25  Karl Berry  <karl@gnu.org>
74043
74044         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74045
74046 2005-04-25  Albert Chin  <china@thewrittenword.com>
74047
74048         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74049         Toolkit C bug.
74050
74051 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74052
74053         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74054         (func_ln_if_changed): Remove forcibly for no error message
74055         in case file does not exist.
74056
74057 2005-04-19  Simon Josefsson  <jas@extundo.com>
74058
74059         * gnulib-tool (Options): Make --symlink mean --symbolic.
74060
74061 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74062
74063         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74064
74065 2005-04-16  Simon Josefsson  <jas@extundo.com>
74066
74067         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74068
74069 2005-04-15  Simon Josefsson  <jas@extundo.com>
74070
74071         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74072
74073 2005-04-15  Simon Josefsson  <jas@extundo.com>
74074
74075         * gnulib-tool: Rename --symlink to --symbolic.
74076
74077 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74078
74079         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74080         symbolic links to files instead of copying/moving.  Add --aux-dir,
74081         specifying directory relative --dir where auxiliary build tools
74082         are placed.
74083
74084 2005-04-14  Bruno Haible  <bruno@clisp.org>
74085
74086         * modules/allocsa (License): Change to LGPL.
74087         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74088
74089 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74092         that "UTC +1 second" continues to work.  Problem reported
74093         by Dmitry V. Levin.
74094         (relunit_snumber): New rule.
74095         (relunit): Use it.
74096
74097 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * lib/getdate.y (universal_time_zone_table): New constant.
74100         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74101         universal_time_zone_table.
74102         (lookup_zone): Prefer universal_time_zone_table to
74103         local_time_zone_table, so that "GMT" time stamps are allowed in
74104         London during the summer.  Problem reported by Ian Abbott.
74105
74106 2005-04-12  Jim Meyering  <jim@meyering.net>
74107
74108         * lib/human.c (humblock): Set *options even when returning due to
74109         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74110         warning from gcc-4.
74111
74112 2005-04-09  Jim Meyering  <jim@meyering.net>
74113
74114         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74115         -Wuninitialized: initialize tm0.tm_year.
74116
74117 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74120         count, since there's no maximum.  All uses changed.
74121         Add member dsts_seen.
74122         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74123         not being INT_MAX.
74124         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74125         Use pc_rels_seen to decide whther a date is absolute.
74126
74127         * lib/getdate.y (number): Don't overwrite year.
74128         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74129         check.
74130
74131 2005-04-02  Simon Josefsson  <jas@extundo.com>
74132
74133         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74134         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74135
74136 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74137
74138         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74139         where no absolute path name can be longer than PATH_MAX.
74140
74141 2005-03-27  Jim Meyering  <jim@meyering.net>
74142
74143         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74144
74145 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74148         "one's complement" -> "ones' complement" in comment, as per Knuth.
74149         "value of type" -> "type or expression" in comment.
74150         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74151
74152 2005-03-26  Jim Meyering  <jim@meyering.net>
74153
74154         Comment nits.
74155         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74156         Correct typos: s/or/of/.
74157
74158 2005-03-26  Jim Meyering  <jim@meyering.net>
74159
74160         * modules/check-include-files: Move to ../ and rename to...
74161         * check-module: ...this.
74162
74163 2005-03-25  Jim Meyering  <jim@meyering.net>
74164
74165         * modules/xvasprintf (Files): Add xalloc.h.
74166
74167 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         * modules/gettext (Files): config/config.rpath ->
74170         build-aux/config.rpath
74171         * modules/iconv (Files): Likewise.
74172         Problem reported by Oskar Liljeblad.
74173
74174 2005-03-23  Jim Meyering  <jim@meyering.net>
74175
74176         * modules/check-include-files: New script to check for
74177         missing dependencies, multiple includes, etc.
74178
74179         * modules/c-strtold (Depends-on): Add xalloc.
74180         * modules/c-strtod (Depends-on): Add xalloc.
74181         * modules/hash (Depends-on): Add xalloc.
74182         (Files): Remove lib/xalloc.h.
74183
74184         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74185         * modules/userspec (Files): Add lib/inttostr.h.
74186
74187 2005-03-23  Jim Meyering  <jim@meyering.net>
74188
74189         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74190
74191 2005-03-22  Jim Meyering  <jim@meyering.net>
74192
74193         * modules/stat-macros: New module.
74194         * modules/canonicalize, modules/euidaccess, modules/file-type,
74195         * modules/filemode, modules/lchown, modules/makepath,
74196         * modules/rmdir, modules/stat: Depend on new stat-macros module
74197         rather than listing lib/stat-macros.h manually.
74198         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74199
74200 2005-03-22  Jim Meyering  <jim@meyering.net>
74201
74202         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74203
74204 2005-03-22  Bruno Haible  <bruno@clisp.org>
74205
74206         * config/srclist.txt: Replace target directory 'config' with
74207         'build-aux'.
74208         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74209         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74210         ../build-aux/.
74211
74212 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         * modules/chdir-long (Depends-on): Add mempcpy.
74215
74216         * modules/acl, modules/backupfile, modules/c-strtod,
74217         modules/c-strtold, modules/canon-host, modules/canonicalize,
74218         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74219         modules/exclude, modules/exitfail, modules/file-type,
74220         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74221         modules/getdate, modules/getline, modules/getpagesize,
74222         modules/getpass, modules/getugroups, modules/group-member,
74223         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74224         modules/inttostr, modules/long-options, modules/makepath,
74225         modules/md5, modules/memcasecmp, modules/memcoll,
74226         modules/modechange, modules/mountlist, modules/path-concat,
74227         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74228         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74229         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74230         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74231         modules/strftime, modules/strndup, modules/strverscmp,
74232         modules/timespec, modules/unlocked-io, modules/userspec,
74233         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74234         modules/yesno:
74235         Remove lib_SOURCES line from Makefile.am section, as this is now
74236         done automatically by the corresponding Autoconf macro.
74237
74238 2005-03-21  Jim Meyering  <jim@meyering.net>
74239
74240         Changes imported from coreutils.
74241
74242         * lib/cycle-check.c: Don't include xalloc.h.
74243
74244         * lib/path-concat.c: Don't include assert.h.
74245         (path_concat): Remove assertion that would have triggered
74246         for ABASE starting with more than one slash.
74247         Reported by Andreas Schwab.
74248
74249         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74250         properly when ABASE is an absolute file name.
74251         Correct the description of this function.
74252         Include <assert.h>.
74253         Add an assertion and a test driver.
74254         This fixes a bug introduced on 2004-07-02.
74255         Andreas Schwab reported the resulting failure of cp --parents:
74256         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74257
74258 2005-03-21  Jim Meyering  <jim@meyering.net>
74259
74260         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74261         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74262
74263 2005-03-21  Jim Meyering  <jim@meyering.net>
74264         and  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74267         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74268         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74269         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74270         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74271         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74272         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74273         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74274         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74275         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74276         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74277         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74278         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74279         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74280         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74281         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74282         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74283         for these modules.
74284
74285 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74286
74287         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74288         (which shouldn't happen), generate nothing instead of returning 0
74289         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74290
74291 2005-03-16  Bruno Haible  <bruno@clisp.org>
74292
74293         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74294         HAVE_LONGLONG_64BIT.
74295
74296 2005-03-16  Bruno Haible  <bruno@clisp.org>
74297
74298         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74299         HAVE_LONGLONG_64BIT.
74300
74301 2005-03-16  Bruno Haible  <bruno@clisp.org>
74302
74303         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74304         HAVE_LONGLONG_64BIT.
74305
74306 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74309         reliably distinguish strftime failure from empty output on POSIX
74310         hosts.
74311
74312 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74315         (iconv_string): Don't guess a size-zero buffer, as that might cause
74316         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74317         result would be 'too large', where 'too large' is (heuristically)
74318         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74319         overflow concerns.  This will prevent some unwanted malloc failures
74320         when the inputs are very large.
74321
74322 2005-03-15  Karl Berry  <karl@gnu.org>
74323
74324         * config/srclist.txt (config.rpath): from gettext.
74325         * config/config.rpath: update.
74326
74327 2005-03-15  Bruno Haible  <bruno@clisp.org>
74328
74329         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74330         to 'negate'.
74331
74332         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74333         variable.
74334
74335         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74336         results.
74337
74338 2005-03-14  Simon Josefsson  <jas@extundo.com>
74339
74340         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74341         <fx@gnu.org>.
74342
74343 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74346         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74347         intprops.h.
74348         * lib/strtol.c: Likewise.
74349
74350 2005-03-14  Jim Meyering  <jim@meyering.net>
74351
74352         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74353         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74354         to be nonzero so that we (and caller) can detect the difference
74355         between a valid zero-length expansion and an error return, even
74356         when the underlying strftime fails before writing anything into
74357         that location.
74358
74359 2005-03-14  Bruno Haible  <bruno@clisp.org>
74360
74361         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74362         Update from GNU gettext 0.14.3.
74363
74364 2005-03-10  Jim Meyering  <jim@meyering.net>
74365
74366         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74367
74368 2005-03-10  Jim Meyering  <jim@meyering.net>
74369
74370         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74371         so that this module works on systems without fchdir.
74372
74373 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74374
74375         Factor int-properties macros into a single file, except for
74376         glibc-related files.
74377         * lib/intprops.h: New file.
74378         * lib/getloadavg.c: Include it instead of limits.h.
74379         (INT_STRLEN_BOUND): Remove.
74380         * lib/human.c: Include intprops.h.
74381         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74382         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74383         302/1000.
74384         * lib/inttostr.h: Include intprops.h instead of limits.h.
74385         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74386         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74387         for consistency with intprops.h.
74388         (time_t_is_integer, twos_complement_arithmetic): Use them.
74389         * lib/sig2str.h: Include <signal.h>, intprops.h.
74390         (INT_STRLEN_BOUND): Remove.
74391         * lib/strftime.c (TYPE_SIGNED): Remove.
74392         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74393         * lib/strtol.c: Adjust comments to match intprops.h.
74394         * lib/userspec.c: Include intprops.h.
74395         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74396         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74397         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74398         instead of rolling our own expressions.
74399         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74400
74401         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74402         instead of int.
74403         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74404         the right thing even if adding 1900 would overflow.  Similarly
74405         for tm_mon + 1 and tm_yday + 1.
74406         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74407         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74408         (DO_SIGNED_NUMBER): New macro.
74409         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74410
74411 2005-03-07  Bruno Haible  <bruno@clisp.org>
74412
74413         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74414
74415 2005-03-07  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74418
74419 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74420
74421         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74422         (func_import): Only replace files via --import when they have actually
74423         changed.
74424
74425 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74426
74427         * m4/mmap-anon.m4: New file.
74428         * m4/pagealign_alloc.m4: New file.
74429
74430 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74431             Bruno Haible  <bruno@clisp.org>
74432
74433         * modules/pagealign_alloc: New file.
74434         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74435
74436 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74437             Bruno Haible  <bruno@clisp.org>
74438
74439         * lib/pagealign_alloc.h: New file.
74440         * lib/pagealign_alloc.c: New file.
74441
74442 2005-03-03  Bruno Haible  <bruno@clisp.org>
74443
74444         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74445         Use an all-permissive copyright notice, recommended by RMS.
74446
74447 2005-03-02  Bruno Haible  <bruno@clisp.org>
74448
74449         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74450         of AIX, the replacement has to be done only after <string.h> is
74451         included, therefore not in config.h. stpncpy.h does the replacement,
74452         and stpncpy.c uses it.
74453
74454 2005-03-02  Bruno Haible  <bruno@clisp.org>
74455
74456         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74457         stpncpy.c uses it.
74458
74459 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74462         The workaround isn't strictly needed for POSIX conformance, and
74463         it's too much of a pain to configure and maintain.  We'll ask
74464         people to fix their kernels instead.
74465         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74466         (NANOSLEEP_BUG_WORKAROUND): Remove.
74467         (xnanosleep): Remove the workaround.
74468
74469 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74472         Reported by Derek Price.
74473         (Include): Add "timespec.h".
74474
74475         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74476
74477 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74478
74479         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74480         to detect nanosleep bug.
74481
74482 2005-03-01  Bruno Haible  <bruno@clisp.org>
74483
74484         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74485
74486 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74487
74488         * modules/gethrxtime: New file.
74489         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74490         (Depends-on): Add gethrxtime.
74491         (configure.ac): Add gl_XNANOSLEEP.
74492         (Makefile.am): Remove lib_SOURCES line.
74493
74494 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74497         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74498
74499 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74502         * lib/timespec.h (gettime): Return void, since it always
74503         succeeds now.  All uses changed.
74504         * lib/gettime.c (gettime): Likewise.
74505         [HAVE_NANOTIME]: Prefer nanotime.
74506         Assume gettimeofday succeeds, as POSIX requires.
74507         Assime time () succeeds, since other code already does.
74508         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74509         (timespec_subtract): Remove.
74510         (NANOSLEEP_BUG_WORKAROUND): New constant.
74511         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74512         things considerably.  Use it only on GNU/Linux hosts, since the
74513         workaround shouldn't be needed elsewhere.
74514
74515 2005-02-24  Bruno Haible  <bruno@clisp.org>
74516
74517         * modules/gettext (Files): Add m4/glibc2.m4.
74518
74519 2005-02-24  Bruno Haible  <bruno@clisp.org>
74520
74521         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74522         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74523         * m4/progtest.m4:
74524         Update from GNU gettext 0.14.2.
74525         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74526
74527 2005-02-24  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74530         * lib/config.charset: Update from GNU gettext 0.14.2.
74531
74532 2005-02-24  Bruno Haible  <bruno@clisp.org>
74533
74534         * lib/gettext.h: Update from GNU gettext 0.14.2.
74535
74536 2005-02-23  Simon Josefsson  <jas@extundo.com>
74537
74538         * m4/iconvme.m4: New file.
74539
74540 2005-02-23  Jim Meyering  <jim@meyering.net>
74541
74542         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74543         change.
74544         Thanks to Bruno Haible for catching it.
74545
74546 2005-02-22  Simon Josefsson  <jas@extundo.com>
74547
74548         * modules/iconvme: New file.
74549
74550         * MODULES.html.sh: Add iconvme.
74551
74552 2005-02-22  Simon Josefsson  <jas@extundo.com>
74553
74554         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74555
74556 2005-02-22  Simon Josefsson  <jas@extundo.com>
74557
74558         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74559
74560 2005-02-22  Jim Meyering  <jim@meyering.net>
74561
74562         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74563         s/ifndef/ifdef/.
74564
74565 2005-02-20  Neil Conway  <neilc@samurai.com>
74566
74567         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74568         returned by OSX/Darwin if the specified buffer is not large
74569         enough for the hostname.
74570
74571 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74572
74573         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74574         pass it to _help, otherwise the latter coredumps trying to
74575         dereference state.root_argp.
74576
74577 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * modules/chdir-long (Depends-on): Add memrchr.
74580         * modules/memrchr (Files): Add lib/memrchr.h.
74581         (Include): "memrchr.h".
74582
74583 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74586
74587 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * lib/memrchr.h: New file.
74590         * lib/chdir-long.c: Include it.
74591         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74592         Don't bother including stddef.h.
74593
74594 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74597         inclusion.
74598         Include <sys/types.h>, for dev_t.
74599         (ME_DUMMY, ME_REMOTE): Move from here....
74600         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74601         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74602         Dmitry V. Levin.
74603         Include mountlist.h first, to test the interface.
74604
74605 2005-01-29  Bruno Haible  <bruno@clisp.org>
74606
74607         * lib/progname.c (program_name): Initialize.
74608         Needed when linking statically on MacOS X.
74609
74610 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74611
74612         Sync from coreutils.
74613         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74614         (Depends-on): Add c-strtod.
74615         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74616
74617 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         Sync from coreutils.
74620         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74621
74622         Remove files that are specific to coreutils.
74623         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74624
74625 2005-01-28  Bruno Haible  <bruno@clisp.org>
74626
74627         * modules/javacomp: New file.
74628         * MODULES.html.sh (Java): Add javacomp.
74629
74630 2005-01-28  Bruno Haible  <bruno@clisp.org>
74631
74632         * m4/javacomp.m4: New file, from GNU gettext.
74633
74634 2005-01-28  Bruno Haible  <bruno@clisp.org>
74635
74636         * lib/javacomp.sh.in: New file, from GNU gettext.
74637         * lib/javacomp.h: New file, from GNU gettext.
74638         * lib/javacomp.c: New file, from GNU gettext.
74639
74640 2005-01-26  Simon Josefsson  <jas@extundo.com>
74641
74642         * lib/gai_strerror.c: Use GPL in header.
74643
74644 2005-01-26  Bruno Haible  <bruno@clisp.org>
74645
74646         * modules/javaexec: New file.
74647         * MODULES.html.sh (Java): Add javaexec.
74648
74649 2005-01-26  Bruno Haible  <bruno@clisp.org>
74650
74651         * m4/javaexec.m4: New file, from GNU gettext.
74652
74653 2005-01-26  Bruno Haible  <bruno@clisp.org>
74654
74655         * lib/javaexec.sh.in: New file, from GNU gettext.
74656         * lib/javaexec.h: New file, from GNU gettext.
74657         * lib/javaexec.c: New file, from GNU gettext.
74658
74659 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74660
74661         * modules/lchown (Depends-on): Remove lchown.h
74662
74663 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74664
74665         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74666         must be defined if the header file was not found, in order
74667         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74668
74669 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74670
74671         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74672         initializers for struct pentry_state.
74673         (__argp_error): Check return value of __asprintf
74674         (__argp_failure): Translate error message
74675
74676         * lib/argp-parse.c: Removed braces around the expansion of N_()
74677
74678 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74681         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74682         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74683         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74684         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74685         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74686         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74687         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74688         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74689         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74690         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74691         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74692         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74693         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74694         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74695         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74696         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74697         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74698         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74699         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74700         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74701         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74702         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74703         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74704         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74705         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74706         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74707         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74708         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74709         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74710         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74711         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74712         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74713         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74714         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74715         Use an all-permissive copyright notice, recommended by RMS.
74716
74717 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74718
74719         * modules/chdir-long (Depends-on): Remove mempcpy.
74720
74721 2005-01-21  Jim Meyering  <jim@meyering.net>
74722
74723         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74724         same value as for Solaris 9.
74725
74726         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74727         component length.  This included changing the parameter to be
74728         of type `char *' rather than `char const *'.
74729         * lib/chdir-long.h (chdir_long): Update prototype.
74730
74731         * lib/openat.c (fdopendir, fstatat): New functions.
74732         * lib/openat.h: Include headers required for use of DIR and struct
74733         stat.
74734         [AT_SYMLINK_NOFOLLOW]: Define.
74735         (fdopendir, fstatat): Add prototypes.
74736
74737 2005-01-21  Bruno Haible  <bruno@clisp.org>
74738
74739         * modules/classpath: New file.
74740         * MODULES.html.sh (Java): Add classpath.
74741
74742 2005-01-21  Bruno Haible  <bruno@clisp.org>
74743
74744         * lib/classpath.h: New file, from GNU gettext.
74745         * lib/classpath.c: New file, from GNU gettext.
74746
74747 2005-01-20  Simon Josefsson  <jas@extundo.com>
74748
74749         * modules/version-etc-fsf: New file.
74750
74751 2005-01-20  Simon Josefsson  <jas@extundo.com>
74752
74753         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74754         * lib/version-etc.c: Remove version_etc_copyright.
74755         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74756         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74757
74758 2005-01-20  Simon Josefsson  <jas@extundo.com>
74759
74760         * lib/base64.h (isbase64): Add.
74761
74762         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74763         using a unsigned prototype, don't inline.
74764         (base64_decode): Use it.
74765
74766 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74769         it.
74770
74771 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         * lib/save-cwd.c (save_cwd): Remove code to support the case
74774         where fchdir is missing or flaky.
74775
74776 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74779
74780 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74783         AC_LIBSOURCES now does this.
74784         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74785         with new ullong_max module.
74786
74787 2005-01-19  Bruno Haible  <bruno@clisp.org>
74788
74789         * modules/sh-quote: New file.
74790         * MODULES.html.sh (Executing programs): Add sh-quote.
74791
74792 2005-01-19  Bruno Haible  <bruno@clisp.org>
74793
74794         * lib/sh-quote.h: New file, from GNU gettext.
74795         * lib/sh-quote.c: New file, from GNU gettext.
74796
74797 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         Merge from coreutils.
74800         * m4/ullong_max.m4: New file.
74801         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74802         (gl_MACROS): Assume localeconv exists.
74803
74804 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74805
74806         Merge changes from coreutils, as described below in several
74807         changelogs dated today.
74808
74809         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74810         (O_DIRECTORY): Remove; not needed here, since "." must be
74811         a directory.  All uses removed.
74812         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74813         universal on Suns, and we also need to test for IRIX.
74814         Revamp code to use 'if' rather than '#if'.
74815         Avoid unnecessary comparison of cwd->desc to 0.
74816
74817         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74818         for known valid error numbers rather than observed invalid ones.
74819
74820 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74821
74822         * modules/ullong_max: New file.
74823
74824         * modules/chdir-long, modules/openat: New files.
74825         * modules/save-cwd (Depends-on): Depend on chdir-long.
74826         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74827
74828 2005-01-18  Jim Meyering  <jim@meyering.net>
74829
74830         Merge from coreutils.
74831         * m4/chdir-long.m4, m4/openat.m4: New files.
74832         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74833         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74834         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74835         is sane and DOES follow symlinks.  Besides, testing 20 different
74836         systems found no broken chown implementations.
74837         Prompted by a change in rsync's copy of this macro.
74838         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74839
74840         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74841
74842         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74843         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74844         NULL-means-set-to-current-time semantics.
74845         Remove temporary file immediately, rather than waiting
74846         for configure's at-exit trap code to do it.
74847
74848 2005-01-18  Jim Meyering  <jim@meyering.net>
74849
74850         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74851
74852         * lib/utimens.c (futimens): Account for the fact that futimes
74853         can also fail with errno == ENOSYS or errno == ENOENT.
74854         Patch from Dmitry V. Levin.
74855
74856         Change the name of the robust chdir function from chdir to chdir_long.
74857         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74858         (restore_cwd): Use chdir_long, not chdir.
74859         * lib/chdir-long.c: Renamed from chdir.c.
74860         * lib/chdir-long.h: Renamed from chdir.h.
74861         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74862         Hurd.
74863
74864 2005-01-18  Bruno Haible  <bruno@clisp.org>
74865
74866         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74867         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74868         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74869         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74870         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74871         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74872         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74873         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74874         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74875         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74876         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74877         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74878         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74879         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74880         Use an all-permissive copyright notice, recommended by RMS.
74881
74882 2005-01-18  Bob Proulx  <bob@proulx.com>
74883
74884         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74885         simplify offsetof() macro construct to avoid compile failure with
74886         native HP-UX 11.0 ANSI C compiler.
74887
74888 2005-01-17  Bruno Haible  <bruno@clisp.org>
74889
74890         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74891         redundant because stpncpy.m4 takes care of it.
74892
74893 2005-01-17  Bruno Haible  <bruno@clisp.org>
74894
74895         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74896
74897 2005-01-17  Bruno Haible  <bruno@clisp.org>
74898
74899         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74900         used.
74901
74902 2005-01-17  Bruno Haible  <bruno@clisp.org>
74903
74904         * lib/fwriteerror.h (fwriteerror): Change specification to include
74905         fclose.
74906         * lib/fwriteerror.c: Include <stdbool.h>.
74907         (fwriteerror): At the end, close the file stream. Record whether
74908         stdout was already closed.
74909
74910 2005-01-17  Bruno Haible  <bruno@clisp.org>
74911
74912         * lib/execute.c (environ): Declare if needed.
74913         * lib/pipe.c (environ): Likewise.
74914         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74915
74916 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74917
74918         * modules/argp: Depend on vsnprintf
74919
74920 2005-01-10  Jim Meyering  <jim@meyering.net>
74921
74922         * modules/closeout (Depends-on): Add atexit.
74923
74924 2005-01-06  Bruno Haible  <bruno@clisp.org>
74925
74926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74927
74928 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74929
74930         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74931         definitions to be after all include files, to avoid collisions.
74932         Problem reported by Bob Proulx.
74933
74934 2005-01-04  Jim Meyering  <jim@meyering.net>
74935
74936         Changes imported from coreutils.
74937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74938         as the mkstemp template, use a temporary directory and an
74939         8.3-friendly template to avoid trouble on systems like DJGPP.
74940         Reported by Juan M. Guerrero via Stepan Kasal.
74941         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74942         close. Remove the temporary directory right away, rather than waiting
74943         for configure's at-exit trap code to do it.
74944         Suggestion from Stepan Kasal.
74945
74946 2005-01-01  Simon Josefsson  <jas@extundo.com>
74947
74948         * gnulib-tool: Print #include directives when --import'ing.
74949
74950 2004-12-28  Simon Josefsson  <jas@extundo.com>
74951
74952         * tests/test-base64.c: Include required header files.  Remove
74953         unused variables.
74954
74955 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * modules/error (Depends-on): Remove gettext.
74958
74959 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74962         not needed.  This removes a dependency on the gettext module.
74963         [defined _LIBC]: Do not include <libintl.h>; not needed.
74964
74965 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74968         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74969
74970 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74973         HAVE_DECL_STRTOLD.
74974
74975 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * modules/getdate (Depends-on): Remove alloca-opt.
74978
74979 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74982
74983 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         * lib/argp-parse.c: Include <stddef.h>.
74986         (alignof, alignto): New macros.
74987         (parser_init): Don't assume that void * is aligned sufficiently
74988         for struct option.
74989
74990         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74991         need to extend the stack.
74992         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74993         large.
74994
74995 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74996
74997         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74998
74999 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75002         (2004-10-24) change.  Apparently this was a false alarm.
75003
75004         * modules/getdate: Depend on alloca-opt, not alloca.
75005
75006 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75009         Remove now-obsolete comment about AIX.
75010         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75011         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75012         (YYMAXDEPTH): New macro.
75013
75014 2004-12-18  Simon Josefsson  <jas@extundo.com>
75015
75016         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75017
75018 2004-12-18  Bruno Haible  <bruno@clisp.org>
75019
75020         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75021
75022 2004-12-18  Bruno Haible  <bruno@clisp.org>
75023
75024         * lib/fatal-signal.c (fatal_signals): Make non-const.
75025         (init_fatal_signals): New function.
75026         (uninstall_handlers, install_handlers): Ignore signals that were set to
75027         SIG_IGN.
75028         (at_fatal_signal): Call init_fatal_signals.
75029         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75030         SIG_IGN.
75031         Reported by Paul Eggert.
75032
75033 2004-12-18  Bruno Haible  <bruno@clisp.org>
75034
75035         * doc/alloca.texi: New file.
75036         * doc/alloca-opt.texi: New file.
75037
75038 2004-12-17  Jim Meyering  <jim@meyering.net>
75039
75040         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75041         Otherwise, install-sh could exit with improper exit status when
75042         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75043
75044 2004-12-16  Simon Josefsson  <jas@extundo.com>
75045
75046         * tests/test-base64.c: Add license.
75047
75048 2004-12-15  Stepan Kasal  <address@hidden>
75049
75050         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75051
75052 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * modules/getcwd (Files): Add m4/d-ino.m4.
75055         Suggested by Mark D. Baushke.
75056
75057 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * lib/getdate.y (textint): New member "negative".
75060         (time_zone_hhmm): New function.
75061         Expect 14 shift-reduce conflicts, not 13.
75062         (o_colon_minutes): New rule.
75063         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75064         (yylex): Set the "negative" member of signed numbers.
75065
75066 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         * doc/getdate.texi (Time of day items, Time zone items):
75069         Describe new formats +00:00, UTC+00:00.
75070
75071 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75072
75073         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75074         spurious "-l"s.  Problem reported by Stepan Kasal.
75075
75076 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75079         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75080
75081 2004-12-04  Simon Josefsson  <jas@extundo.com>
75082
75083         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75084         Vandoorselaere <yoann@prelude-ids.org>.
75085
75086 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         Changes imported from coreutils.
75089         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75090         exist.
75091         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75092
75093 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75094
75095         Changes imported from coreutils.
75096         * lib/hard-locale.c: Assume <locale.h> exists.
75097         Include "strdup.h".
75098         (GLIBC_VERSION): New macro.
75099         (hard_locale): Assume setlocale exists.
75100         Rewrite to avoid #ifdef.
75101         Use strdup rather than malloc + strcpy.
75102         * lib/human.c: Assume <locale.h> exists.
75103         (human_readable): Assume localeconv exists.
75104
75105 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75106
75107         * modules/hard-locale (Depends-on): Add strdup.
75108
75109 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75110
75111         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75112         convert T2, not T.  (Imported from libc.)
75113
75114 2004-11-30  Simon Josefsson  <jas@extundo.com>
75115
75116         * modules/restrict (License): Change to LGPL.
75117
75118 2004-11-30  Simon Josefsson  <jas@extundo.com>
75119
75120         * m4/restrict.m4: Add copyright and copying conditions.
75121
75122 2004-11-30  Simon Josefsson  <jas@extundo.com>
75123
75124         * m4/base64.m4: New file.
75125
75126 2004-11-30  Simon Josefsson  <jas@extundo.com>
75127
75128         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75129         base64.
75130
75131         * tests/test-base64.c: New file.
75132
75133         * modules/base64: New file.
75134
75135 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75138         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75139
75140         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75141
75142 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75143
75144         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75145         (__getcwd.c): Don't restore errno; glibc doesn't.
75146         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75147         first, falling back to our code only if its results look suspicious.
75148         Ensure that the resulting buffer is only as large as necessary.
75149
75150         * lib/readutmp.c: Include readutmp.h first.
75151         Include <errno.h>, since readutmp.h no longer does that.
75152         * lib/readutmp.h: Don't include <errno.h>,
75153         <sys/param.h>, <time.h>; not needed to establish interface.
75154         (errno): Remove decl.
75155         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75156         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75157         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75158
75159 2004-11-28  Simon Josefsson  <jas@extundo.com>
75160
75161         * lib/base64.h, base64.c: New file.
75162
75163 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75166
75167 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75168
75169         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75170         (Depends-on): Remove pathmax, same.  Add mempcpy.
75171         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75172         (Makefile.am): Append getcwd.h to lib_SOURCES.
75173         (Include): Add getcwd.h.
75174         (Maintainer): Change from Jim Meyering to "all, glibc",
75175         since getdate now uses intended-for-glibc code.
75176         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75177         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75178
75179 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75182         HP's ANSI C compiler.
75183         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75184         Declaring int functions causes warnings on some modern systems and
75185         shouldn't be needed to compile on ancient ones.
75186         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75187         defined.
75188
75189         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75190         with the following changes.
75191         (__set_errno): Parenthesize properly.
75192         Include <stdbool.h>.
75193         (MIN, MAX, MATCHING_INO): New macros.
75194         (__getcwd): Define with prototype, not K&R form.
75195         Use heuristics to allocate default buffer on stack if possible.
75196         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75197         behavior, and to avoid the PATH_MAX limit when computing
75198         ../../../../...
75199         Use MATCHING_INO to compare inode number to file.
75200         Check for arithmetic overflow in size calculations.
75201         Fix bug in reallocation of dot array that caused getcwd to fail
75202         on directories nested deeper than 75.
75203         Be more careful about saving errno on error.
75204         Do not use realloc; use only free+malloc, as this is a bit
75205         more flexible and avoids a needless copy operation.
75206         Do not inspect st_dev and st_ino for symbolic links; POSIX
75207         doesn't specify the latter.
75208         Check for closedir errors.
75209         Avoid needless casts.
75210         Use "#ifdef weak_alias" around weak_alias, to be like other
75211         glibc code.
75212         The following changes to getcwd.c have effect only when used in
75213         gnulib; they have no effect inside glibc proper.
75214         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75215         as alloca isn't used.
75216         (alloca, __alloca): Likewise.
75217         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75218         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75219         unconditionally, as gnulib assumes C89 or better.
75220         Do not include <sys/param.h>.
75221         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75222         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75223         better.
75224         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75225         Include <dirent.h> in a way that is compatible with modern Autoconf.
75226         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75227         New macros, if not already defined.
75228         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75229         Use "_LIBC", not "defined _LIBC", for consistency.
75230         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75231         a mempcpy module.
75232         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75233         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75234         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75235         credit only to Jim Meyering and adjust the copyright dates.
75236         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75237         <stdlib.h>, <unistd.h>, "pathmax.h".
75238         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75239         (INITIAL_BUFFER_SIZE): Remove.
75240         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75241
75242 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75245         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75246         Use the _ONCE methods, for efficiency.
75247         Check for fcntl.h.  In test program, include <errno.h>
75248         and <fcntl.h> if available.  Remove old K&R cruft from
75249         test program.  Check for common errors in GNU/Linux,
75250         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75251         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75252         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75253         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75254         name accordingly.
75255         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75256         accommodate new getcwd.c.
75257         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75258         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75259         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75260         that's all we need now.
75261
75262 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75263
75264         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75265         argp-parse.c depends on getopt internals, that means we should
75266         always use our getopt, to be on the safe side.
75267         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75268         order not to spoil the result of an eventual previous invocation
75269         of gl_GETOPT_SUBSTITUTE.
75270
75271 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75272
75273         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75274         redefinition warnings. To avoid them, include the defines
75275         in `#if !defined __need_getopt ... #endif'. The only place
75276         where __getopt_argv_const is used is in definitions
75277         of getopt_long and getopt_long_only below, which are as well
75278         protected by `#ifndef __need_getopt'.
75279         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75280         __need_getopt after including <stdio.h> and <unistd.h> These
75281         headers might have defined it.
75282
75283 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75284
75285         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75286
75287 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75290         (futimens): New function, which uses futimes if available.
75291         (futimens, utimens): Support timespec==NULL, with same semantics
75292         as utime and utimens.
75293         * lib/utimens.h (futimens): New decl.
75294
75295 2004-11-23  Jim Meyering  <jim@meyering.net>
75296
75297         * lib/getopt_.h: Remove trailing blanks.
75298
75299 2004-11-23  Jim Meyering  <jim@meyering.net>
75300
75301         * lib/__fpending.c: Add comment.
75302
75303 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75304
75305         * modules/canonicalize (Depends-on): Add xreadlink.
75306         Problem reported by James Youngman.
75307
75308 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75311         New macros.
75312         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75313         optopt): Use them instead of invoking ## directly; otherwise, the
75314         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75315
75316 2004-11-19  Bruno Haible  <bruno@clisp.org>
75317
75318         * lib/strtok_r.c: Move comments from here...
75319         * lib/strtok_r.h: ... to here.
75320
75321 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75324         implementations that mishandle size_t overflow.
75325
75326 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75329         might fail.  Problem reported by Yoann Vandoorselaere.
75330         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75331         implementations that mishandle size_t overflow.
75332
75333 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         * modules/canon-host (Depends-on): Add strdup.
75336
75337 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75340
75341 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * lib/canon-host.c: Include "strdup.h".
75344         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75345         Use strdup instead of malloc/strcpy to duplicate strings.
75346
75347         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75348         (human_space_before_unit): New constant.
75349         * lib/human.c (human_readable): Support it.
75350
75351         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75352         (xgetcwd): Set errno correctly when failing.
75353         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75354         the failure is actually due to a PATH_MAX problem.
75355
75356         Further getopt changes to make it more likely that glibc will
75357         buy the changes back.
75358         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75359         (getopt): Use it, so to preserve glibc semantic
75360         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75361         when compiling for libc.
75362         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75363         (getopt_long, getopt_long_only): Use it.
75364
75365         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75366         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75367         (getopt): Argv is now char * const *, as per standard.
75368         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75369         not char *__getopt_argv_const *.
75370         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75371         _getopt_long_only_r): Likewise.
75372         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75373         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75374         _getopt_long_r, _getopt_long_only_r): Likewise.
75375         * lib/getopt_.h (__getopt_argv_const): Remove.
75376         (getopt): Argv is now char * const *, as per standard.
75377
75378         * lib/getdate.y (tORDINAL): New token.
75379         (day, relunit): Allow it for relative times.
75380         (relative_time_table): Use tORDINAL for ordinals.
75381
75382 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75383
75384         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75385         Document that "second" isn't allowed as an ordinal number.
75386
75387 2004-11-16  Jim Meyering  <jim@meyering.net>
75388
75389         * modules/closeout (Depends-on): Add fpending.
75390
75391 2004-11-15  Jim Meyering  <jim@meyering.net>
75392
75393         * lib/closeout.c: Include "__fpending.h" once again.
75394         Include <stdbool.h>.
75395         (close_stdout): Don't fail just because stdout was closed initially,
75396         since some programs don't write to stdout in the normal course of
75397         operation (other than --version and --help), and we don't want this
75398         function to make e.g. `touch file >&-' fail.
75399         But do fail if it was closed and someone has tried to write to it.
75400         E.g., `printf foo >&-' must fail.
75401
75402 2004-11-13  Jim Meyering  <jim@meyering.net>
75403
75404         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75405
75406 2004-11-12  Simon Josefsson  <jas@extundo.com>
75407
75408         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75409         small doc fix is still pending.
75410
75411 2004-11-11  Simon Josefsson  <jas@extundo.com>
75412
75413         * modules/strtok_r: New file.
75414
75415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75416         strtok_r.
75417
75418 2004-11-11  Simon Josefsson  <jas@extundo.com>
75419
75420         * m4/strtok_r.m4: New file.
75421
75422         * m4/getopt.m4: Replace opterr.
75423
75424 2004-11-11  Simon Josefsson  <jas@extundo.com>
75425
75426         * lib/strtok_r.h, strtok_r.c: New file.
75427
75428 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75429
75430         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75431         of replacing opterr, getopt, etc.  This should handle the
75432         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75433
75434 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75437         we can stop lying to compilers about the constness of argv when we
75438         are compiled outside glibc.
75439         (getopt, getopt_long, getopt_long_only): Use it.
75440         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75441         _getopt_internal, getopt): Likewise.
75442         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75443         _getopt_long_only_r): Likewise.
75444         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75445         _getopt_long_r, _getopt_long_only_r): Likewise.
75446
75447         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75448         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75449         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75450         the other external symbols.
75451         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75452         declaration, since the above renaming now works around collisions.
75453
75454 2004-11-11  Jim Meyering  <jim@meyering.net>
75455
75456         * lib/linebreak.c: Remove trailing blanks.
75457         * lib/alloca_.h: Likewise.
75458         * lib/acosl.c: Likewise.
75459         * lib/euidaccess.c: Likewise.
75460         * lib/allocsa.h: Likewise.
75461
75462 2004-11-10  Simon Josefsson  <jas@extundo.com>
75463
75464         * m4/getaddrinfo.m4: New file.
75465
75466 2004-11-10  Simon Josefsson  <jas@extundo.com>
75467
75468         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75469
75470 2004-11-10  Simon Josefsson  <jas@extundo.com>
75471
75472         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75473         getaddrinfo.
75474
75475         * modules/getaddrinfo: New file.
75476
75477 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75478
75479         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75480
75481 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * lib/mktime.c (SHR): New macro, which is a portable
75484         substitute for >> that should work even on Crays.
75485         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75486         Problem reported by Mark D. Baushke in
75487         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75488         * lib/getdate.y (SHR): Likewise.
75489         (tm_diff): Use it.
75490         * lib/strftime.c (SHR): Likewise.
75491         (tm_diff): Use it.
75492         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75493         quote_these_too, so that right shifts are well defined.  All uses
75494         changed.
75495
75496 2004-11-10  Jim Meyering  <jim@meyering.net>
75497
75498         Ensure that no close failure goes unreported.
75499         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75500         return early when it seems there's nothing to flush.
75501         Don't include __fpending.h.
75502
75503 2004-11-10  Jim Meyering  <jim@meyering.net>
75504
75505         * modules/closeout (Depends-on): Remove fpending.
75506
75507 2004-11-10  Jim Meyering  <jim@meyering.net>
75508
75509         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75510
75511 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75514         gl_FUNC_STRFTIME.
75515         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75516         and AC_REQUIRE when possible, to avoid duplicate checks.
75517         Check for <wchar.h>.
75518
75519 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75520
75521         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75522
75523 2004-11-09  Bruno Haible  <bruno@clisp.org>
75524
75525         * m4/sockpfaf.m4: New file.
75526
75527 2004-11-05  Bruno Haible  <bruno@clisp.org>
75528
75529         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75530         Reported by Mark D. Baushke <mdb@cvshome.org>.
75531
75532 2004-11-04  Bruno Haible  <bruno@clisp.org>
75533
75534         2004-09-11  Bruno Haible  <bruno@clisp.org>
75535                 * allocsa.valgrind: New file.
75536         2004-02-06  Bruno Haible  <bruno@clisp.org>
75537                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75538                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75539                 Reported by Christopher Seip <chris.seip@hp.com>.
75540
75541 2004-11-04  Bruno Haible  <bruno@clisp.org>
75542
75543         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75544         (Makefile.am): Distribute it.
75545
75546 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75549         with errno == ERANGE if the buffer is too small.
75550         Problem reported by Mark D. Baushke.
75551
75552 2004-11-03  Albert Chin  <china@thewrittenword.com>
75553             Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75556         equivalent, substitute $ac_type for equivalent type rather than
75557         blindly using uint32_t *always* which won't work if uint32_t is not
75558         available.  Define _UINT32_T to work around typedef of uint32_t if
75559         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75560         2.5.1.
75561
75562 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * m4/jm-macros.m4: Sync from coreutils.
75565         (gl_MACROS): Check for mbrlen, for pathchk.
75566         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75567
75568 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         * lib/xreadlink.c (MAXSIZE): New macro.
75571         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75572         size does not exceed MAXSIZE.  Avoid cast.
75573         As suggested by Mark D. Baushke in
75574         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75575         if readlink fails with buffer size just under MAXSIZE, try again
75576         with MAXSIZE.
75577
75578 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75581
75582 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75583         and  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75586         (get_date): Overparenthesize to avoid GCC warning.
75587
75588 2004-11-02  Bruno Haible  <bruno@clisp.org>
75589
75590         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75591         returns void.
75592
75593 2004-11-02  Bruno Haible  <bruno@clisp.org>
75594
75595         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75596         function returns void.
75597
75598 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75601         fflush_unlocked, flockfile, funlockfile, funlockfile,
75602         fputs_unlocked, putc_unlocked.
75603
75604 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75607         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75608         already declared.
75609
75610 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * modules/getdate (Files): Add doc/getdate.texi.
75613         (Depends-on): Add setenv, xalloc.
75614
75615 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         * lib/getdate.y: Add support for TZ="foo" within a date string.
75618         Fix some bugs near time_t boundaries.  Reject dates with
75619         out-of-range components, e.g., "Sept 31".
75620         Include <stdlib.h>, "setenv.h", "xalloc.h".
75621         (ISDIGIT_LOCALE): Remove; unused.
75622         Note that the TZ and time functions used here are not reentrant.
75623         (mktime_ok, get_tz): New functions.
75624         (TZBUFSIZE): New constant.
75625         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75626         This requires that we sometimes generate our own TZ="XXX..." setting.
75627
75628 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * doc/getdate.texi: New file, from coreutils with modifications for
75631         the new TZ parsing.
75632
75633 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75634
75635         * lib/mktime.c (not_equal_tm): Remove redundant check.
75636
75637 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * modules/regex (lib_SOURCES): Add regex.c.
75640         Reported by James Youngman in
75641         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75642
75643 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * lib/getdate.y: Use Bison 1.875 features, and some minor
75646         code cleanups.  This change does not affect semantics.
75647         Don't include <stdlib.h>; no longer needed.
75648         Don't include unlocked-io.h; only the "#if TEST" code uses
75649         stdio, and performance isn't crucial there.
75650         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75651         Bison 1.875 features as described below.
75652         All uses of "PC." replaced by "pc->".
75653         (YYSTYPE): Add a forward declaration.
75654         (yylex, yyerror): Use full prototypes in forward decls.
75655         Use "%pure-parser" rather than obsolescent "%pure_parser".
75656         Use %parse-param and %lex-param instead of obsolescent
75657         YYPARSE_PARAM and YYLEX_PARAM.
75658         (meridian_table, month_and_day_table, time_units_table,
75659         relative_time_table, time_zone_table, military_table,
75660         lookup_zone, lookup_word, get_date):
75661         Use NULL instead of 0 where appropriate.
75662         (to_hour): Avoid abort (), to avoid a dependency on
75663         stdlib.h.
75664         (yyerror, yylex): Now accepts parser_control * arg.
75665         (main) [TEST]: Use '\0' rather than 0 for char.
75666
75667 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75670
75671 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75674         It's now the caller's responsibility to handle the case where
75675         !HAVE_GETPAGESIZE && !defined getpagesize.
75676
75677         * lib/mktime.c (leapyear): Arg is long int, not int.
75678
75679 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75682
75683 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75684
75685         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75686         missing.  Problem reported by James Youngman.
75687
75688 2004-10-16  Simon Josefsson  <jas@extundo.com>
75689
75690         * gnulib-tool: Fix comments.  Fix parse problem.
75691         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75692
75693 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75696         implementation of getopt_long.  Problem reported by Alexander Taler in:
75697         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75698
75699 2004-10-15  Bruno Haible  <bruno@clisp.org>
75700
75701         * gnulib-tool: Untabify. Initialize supplied_libname.
75702         (func_usage): More homogenous output.
75703         (func_modules_transitive_closure, func_modules_to_filelist,
75704         func_emit_lib_Makefile_am): New functions.
75705         (func_import): New function, extracted from big case statement. Use
75706         func_get_license, func_modules_transitive_closure,
75707         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75708         opt_lgpl. Don't use test -a, as it's not portable.
75709         (func_create_testdir): Use func_modules_transitive_closure,
75710         func_modules_to_filelist, func_emit_lib_Makefile_am.
75711
75712 2004-10-15  Bruno Haible  <bruno@clisp.org>
75713
75714         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75715
75716 2004-10-15  Bruno Haible  <bruno@clisp.org>
75717
75718         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75719         the portions belonging to each module.
75720         Suggested by Derek Robert Price <derek@ximbiot.com>.
75721
75722 2004-10-12  Simon Josefsson  <jas@extundo.com>
75723
75724         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75725         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75726         to real functions.
75727
75728 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75729
75730         * modules/vsnprintf: New file.
75731
75732 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75733
75734         * m4/vsnprintf.m4: New file.
75735
75736 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75737
75738         * lib/vsnprintf.h: New file.
75739         * lib/vsnprintf.c: New file.
75740
75741 2004-10-11  Bruno Haible  <bruno@clisp.org>
75742
75743         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75744         vsnprintf.
75745
75746 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75747
75748         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75749
75750 2004-10-07  Bruno Haible  <bruno@clisp.org>
75751
75752         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75753         fits into the provided buffer.
75754
75755 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75756
75757         * lib/diacrit.c, diacrit.h: Add GPL notice.
75758
75759         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75760         notice.
75761         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75762         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75763         This avoids a potential constant-folding bug.
75764
75765 2004-10-05  Bruno Haible  <bruno@clisp.org>
75766
75767         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75768         for the declaration of strsep.
75769
75770 2004-10-05  Bruno Haible  <bruno@clisp.org>
75771
75772         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75773
75774 2004-10-04  Simon Josefsson  <jas@extundo.com>
75775
75776         * modules/memmem: New file.
75777         * tests/test-memmem.c: New file.
75778         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75779
75780 2004-10-04  Simon Josefsson  <jas@extundo.com>
75781
75782         * m4/memmem.m4: New file.
75783
75784 2004-10-04  Simon Josefsson  <jas@extundo.com>
75785
75786         * lib/memmem.h: New file.
75787         * lib/memmem.c: New file, taken from glibc.
75788
75789 2004-10-04  Simon Josefsson  <jas@extundo.com>
75790
75791         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75792         '#ifdef USE_UNLOCKED_IO'.
75793
75794 2004-10-04  Simon Josefsson  <jas@extundo.com>
75795
75796         * config/srclist.txt: Add memmem from glibc.
75797
75798 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75801
75802         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75803         modules/exclude, modules/getdate, modules/getline,
75804         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75805         modules/getusershell, modules/linebuffer, modules/md5,
75806         modules/mountlist, modules/posixtm, modules/readtokens,
75807         modules/readutmp, modules/regex, modules/sha1,
75808         modules/version-etc, modules/yesno:
75809         Remove dependency on unlocked-io.
75810
75811 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75812
75813         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75814
75815         * m4/unlocked-io.m4: Add copyright notice.
75816         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75817
75818 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75821         * lib/xmalloc.c (xmemdup): Likewise.
75822         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75823         XFREE): Remove these long-obsolescent macros.
75824         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75825         * lib/xstrdup.c: Remove.
75826
75827         * lib/regex.c (re_comp): Cast gettext return value to char *,
75828         Problem reported by Martin Neitzel via Mark D. Baushke.
75829
75830 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75831
75832         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75833         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75834         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75835         regex.c, sha1.c, version-etc.c, yesno.c:
75836         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75837         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75838         the includer's responsibility.
75839
75840         Sync from coreutils.
75841
75842         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75843         points to the start of a string, as the C Standard says the
75844         resulting behavior is undefined.
75845
75846         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75847         simple -> simple_backups, numbered_existing ->
75848         numbered_existing_backups, numbered -> numbered_backups
75849         to avoid shadowing problems.  All uses changed.
75850         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75851         * lib/backupfile.c (check_extension, numbered_backup):
75852         Rename locals to avoid shadowing 'basename'.
75853         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75854         once.
75855
75856         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75857         * lib/.cvsignore: Add getopt.h.
75858
75859 2004-10-04  Bruno Haible  <bruno@clisp.org>
75860
75861         * modules/README: New file.
75862         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75863         not a module.
75864
75865 2004-10-02  Jim Meyering  <jim@meyering.net>
75866
75867         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75868
75869 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75870
75871         * modules/strsep: New file.
75872
75873 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75874
75875         * m4/strsep.m4: New file.
75876
75877 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75878
75879         * lib/strsep.h: New file.
75880         * lib/strsep.c: New file.
75881
75882 2004-10-01  Simon Josefsson  <jas@extundo.com>
75883
75884         * lib/snprintf.c (snprintf): Handle size==0.
75885
75886 2004-10-01  Simon Josefsson  <jas@extundo.com>
75887             Bruno Haible  <bruno@clisp.org>
75888
75889         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75890         (snprintf): Declare 'args'.
75891
75892 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * lib/snprintf.c: Remove comments as to why each header is needed.
75895
75896 2004-10-01  Bruno Haible  <bruno@clisp.org>
75897
75898         * MODULES.html.sh: Add strsep.
75899
75900 2004-09-30  Simon Josefsson  <jas@extundo.com>
75901
75902         * modules/snprintf: New file.
75903
75904 2004-09-30  Simon Josefsson  <jas@extundo.com>
75905
75906         * m4/snprintf.m4: New file.
75907
75908 2004-09-30  Simon Josefsson  <jas@extundo.com>
75909
75910         * lib/snprintf.h, lib/snprintf.c: New files.
75911
75912 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75913
75914         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75915         (hol_entry_help): Never translate an empty string.
75916         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75917         * lib/argp.h (OPTION_NO_TRANS): New option.
75918
75919 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * modules/argp (Maintainer): Replace Simon Josefsson
75922         by Sergey Poznyakoff.
75923
75924 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75927         changes merged back into glibc.
75928
75929 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75932
75933 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75934
75935         * lib/xvasprintf.c: Include xalloc.h.
75936         (xvasprintf): Use xalloc_die, not xmalloc_die.
75937
75938 2004-09-29  Bruno Haible  <bruno@clisp.org>
75939
75940         * modules/alloca-opt: New file, derived from modules/alloca.
75941         * modules/allocsa: Depend on alloca-opt instead of alloca.
75942         * modules/setenv: Likewise.
75943         * modules/vasnprintf: Likewise.
75944         * MODULES.html.sh: Add alloca-opt.
75945
75946 2004-09-28  Simon Josefsson  <jas@extundo.com>
75947
75948         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75949         LGPL, and to replace license template from GPL to LGPL.
75950
75951 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * modules/dummy: Change license to LGPL.
75954
75955 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75958
75959 2004-09-24  Simon Josefsson  <jas@extundo.com>
75960
75961         * modules/minmax (License): Change from GPL to LGPL.
75962
75963 2004-09-23  Simon Josefsson  <jas@extundo.com>
75964
75965         * gnulib-tool (--import): Typo.
75966
75967 2004-09-23  Simon Josefsson  <jas@extundo.com>
75968
75969         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75970
75971 2004-09-22  Bruno Haible  <bruno@clisp.org>
75972
75973         * modules/*: Add 'License' field.
75974         * gnulib-tool: Accept --extract-license option.
75975         (func_get_license): New function.
75976
75977 2004-09-21  Bruno Haible  <bruno@clisp.org>
75978
75979         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75980         Reported by Simon Josefsson.
75981
75982 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75983
75984         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75985         gl_AC_TYPE_LONG_LONG.
75986
75987 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75988
75989         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75990
75991 2004-09-18  Simon Josefsson  <jas@extundo.com>
75992         and  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75995         calls with autoreconf.  Define GL_LIB.
75996
75997 2004-09-14  Karl Berry  <karl@gnu.org>
75998
75999         * config/srclist.txt: unsync setenv.c, sigh.
76000
76001 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76002
76003         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76004         Problem reported by Bruno Haible in:
76005         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76006
76007 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * config/srclist.txt: Comment out argp-pvh.c.
76010
76011 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76014         in case some system header has #define'd it.  Problem reported by
76015         Soeren D. Schulze in
76016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76017
76018 2004-09-09  Karl Berry  <karl@gnu.org>
76019
76020         * regex.[ch]: delete from the root.  These were supposed to be
76021                 synced with emacs cvs, but this has not happened for about
76022                 a year, and anyway nothing else uses emacs regex.[ch].
76023                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76024                 lib/regex[.ch] is untouched.
76025
76026 2004-09-09  Bruno Haible  <bruno@clisp.org>
76027
76028         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76029
76030 2004-09-09  Bruno Haible  <bruno@clisp.org>
76031
76032         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76033         modifications.
76034         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76035
76036 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76037
76038         * modules/xvasprintf: New file.
76039         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76040
76041 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76042
76043         * lib/xvasprintf.h: New file.
76044         * lib/xvasprintf.c: New file.
76045         * lib/xasprintf.c: New file.
76046
76047 2004-09-08  Bruno Haible  <bruno@clisp.org>
76048
76049         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76050
76051 2004-09-08  Bruno Haible  <bruno@clisp.org>
76052
76053         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76054         length is > INT_MAX.
76055         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76056         more.
76057
76058 2004-09-08  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/stdint_.h: New file, taken from GNU clisp.
76061
76062 2004-09-08  Bruno Haible  <bruno@clisp.org>
76063             Oskar Liljeblad  <oskar@osk.mine.nu>
76064
76065         * modules/stdint: New file.
76066         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76067
76068 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         Import from coreutils.
76071         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76072         strings on unbounded length.  alloca's performance benefits aren't
76073         that important here.
76074         (V_STRDUP): Remove.
76075         (parse_with_separator): New function, with most of the internals
76076         of the old parse_user_spec.  Allow user to omit both user and group,
76077         for compatibility with FreeBSD.
76078         Clone only the user name, not the entire spec.
76079         Do not set *uid, *gid unless entirely successful.
76080         Avoid memory leak in some failing cases.
76081         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76082         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76083         (parse_user_spec): Rewrite to use parse_with_separator.
76084
76085 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * modules/userspec: Don't depend on alloca.
76088
76089 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76090
76091         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76092
76093 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76096         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76097         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76098
76099 2004-08-16  Simon Josefsson  <jas@extundo.com>
76100
76101         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76102         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76103         Add --dry-run for --import.
76104         Let user provided command line parameters override configure.ac
76105         settings.
76106
76107 2004-08-12  Simon Josefsson  <jas@extundo.com>
76108
76109         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76110         as discussed with Paul Eggert in threads rooted at
76111         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76112         and
76113         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76114         Before, the test was empty, and relied on ELIDE_CODE in source
76115         code.)
76116         (gl_PREREQ_GETOPT): New macro.
76117         (gl_GETOPT): Use them.
76118
76119 2004-08-12  Simon Josefsson  <jas@extundo.com>
76120
76121         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76122         * lib/getopt_.h: Renamed from getopt.h.
76123
76124 2004-08-12  Simon Josefsson  <jas@extundo.com>
76125
76126         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76127         Change default library name from libfoo to libgnu.
76128         Now, if you have a configure.ac that says:
76129                 gl_SOURCE_BASE(gl)
76130                 gl_M4_BASE(gl/m4)
76131                 gl_MODULES(error getopt etcetera)
76132                 gl_INIT
76133         you can import all you need by running:
76134                 ../gnulib/gnulib-tool --import
76135
76136         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76137         (Makefile.am): Rewrite, use logic from argz.
76138         (Include): Use <getopt.h> instead of "getopt.h".
76139
76140 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * modules/argp (Files): Add m4/unlocked-io.m4.
76143         (Depends-on): Add extensions.
76144
76145 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76146
76147         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76148         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76149         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76150         Check for program_invocation_name, program_invocation_short_name,
76151         flockfile, funlockfile, features.h, _getopt_long_only_r.
76152
76153 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76154
76155         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76156         its complicated substitute.
76157         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76158         and program_invocation_name.
76159         (__argp_basename) [!_LIBC]: Remove; the only use was
76160         replaced by its body.
76161         (__argp_short_program_name): Change condition from
76162         !defined __argp_short_program_name to
76163         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76164         to match argp-namefrob.h.
76165         (__argp_failure): Don't assume strerror_r returns char *.
76166         * lib/argp-parse.c (N_): Define unconditionally.
76167         (argp_default_options): Fill out initializers with 0 to avoid
76168         gcc warnings.
76169
76170 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76171
76172         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76173         getopt1.c.
76174
76175 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         Merge from coreutils.
76178
76179         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76180
76181         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76182         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76183
76184 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         Merge from coreutils.
76187
76188         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76189         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76190         for Reliant Unix 5.43.
76191
76192         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76193         (union fooround): Use uintmax_t, not long int.
76194         The rest is a merge from libc:
76195         [defined _LIBC]: Include <shlib-compat.h>.
76196         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76197
76198         * lib/settime.c (settime): Recode to avoid warning with
76199         Sun Forte C 6U2.
76200
76201         * lib/strverscmp.c: Convert to UTF-8.
76202
76203 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76204
76205         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76206         m4/uintmax_t.m4.
76207
76208 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         * modules/xalloc-die: New file.
76211         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76212
76213         * modules/md5 (Files): Add m4/uint32_t.m4.
76214         * modules/sha1: Renamed from modules/sha.
76215         (Files):
76216         Rename lib/sha.h to lib/sha1.h.
76217         Rename lib/sha.c to lib/sha1.c.
76218         Rename m4/sha.m4 to m4/sha1.m4.
76219         (lib_SOURCES): Likewise.
76220         (configure.ac): Rename gl_SHA to gl_SHA1.
76221         (Include): sha.h -> sha1.h.
76222
76223 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76226         * m4/sha1.m4: Renamed from sha.m4.
76227         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76228
76229 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * lib/obstack.h (obstack_empty_p):
76232         Don't assume that chunk->contents is suitably aligned.
76233         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76234         Likewise. Problem reported by Benno in
76235         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76236
76237         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76238         readable.  This could be improved further but it'd take some work.
76239
76240 2004-08-08  Simon Josefsson  <jas@extundo.com>
76241
76242         * modules/xgethostname (Depends-on): Remove exit and error (not
76243         used).
76244
76245         * modules/getpass-gnu: Add getpass.h.
76246         (Depends-on): Add stdbool.
76247         * modules/getpass: Add getpass.h.
76248
76249 2004-08-08  Simon Josefsson  <jas@extundo.com>
76250
76251         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76252         Check getpass declaration.
76253
76254 2004-08-08  Simon Josefsson  <jas@extundo.com>
76255
76256         * lib/xgethostname.c: Don't include error.h (not used).
76257
76258         * lib/getpass.h: Add.
76259         * lib/getpass.c: Include getpass.h first.
76260
76261 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76262
76263         * lib/xalloc-die.c: New file.
76264         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76265         All uses removed.
76266         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76267         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76268         xalloc-die.c.
76269         (_, N_, xalloc_die): Move to xalloc-die.c.
76270         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76271         so that we needn't mess with xalloc_msg_memory_exhausted.
76272
76273         * lib/sha1.h: Renamed from sha.h.
76274         (SHA1_H): Renamed from _SHA_H.
76275         (sha1_ctx): Renamed from sha_ctx.
76276         (sha1_init_ctx): Renamed from sha_init_ctx.
76277         (sha1_process_block): Renamed from sha_process_block.
76278         (sha1_process_bytes): Renamed from sha_process_bytes.
76279         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76280         (sha1_read_ctx): Renamed from sha_read_ctx.
76281         (sha1_stream): Renamed from sha_stream.
76282         (sha1_buffer): Renamed from sha_buffer.
76283         * lib/sha1.c: Likewise; renamed from sha.c.
76284         Do not include <sys/types.h>.
76285         Include <stddef.h> rather than <stdlib.h>.
76286
76287 2004-08-08  Bruno Haible  <bruno@clisp.org>
76288
76289         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76290         FILESYSTEM_PREFIX_LEN.
76291         * lib/progreloc.c: Likewise.
76292         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76293
76294 2004-08-06  Simon Josefsson  <jas@extundo.com>
76295
76296         * modules/progname (Depends-on): Don't depend on stdbool.
76297
76298 2004-08-06  Simon Josefsson  <jas@extundo.com>
76299
76300         * modules/getsubopt: New file.
76301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76302         getsubopt.
76303
76304 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76305
76306         More merge from coreutils.
76307
76308         * m4/utimens.m4, m4/utimecmp.m4: New files.
76309         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76310         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76311         prereq.m4, sha.m4: Import changes from coreutils.
76312
76313 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         More merge from coreutils.
76316         * modules/raise, modules/readtokens0, modules/utimens:
76317         * modules/utimecmp, module/xnanosleep: New files.
76318         * modules/strftime: Add lib/strftime.h.
76319         Change include from <time.h> to "strftime.h".
76320         * modules/yesno: Add lib/yesno.h.
76321         * modules/backupfile: Remove lib/addext.c.
76322         * modules/euidaccess: Add stat-macros.h.
76323         * modules/canonicalize, modules/euidaccess,
76324         modules/filemode, modules/lchown, modules/makepath,
76325         modules/rmdir, modules/stat: Likewise.
76326
76327 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         Merge from tar.
76330         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76331         SIZE_MAX is a valid preprocessor constant.
76332         (__argp_basename): Change from "#ifndef _LIBC"
76333         to "#ifndef __argp_short_program_name", so that
76334         we don't compile these functions for tar.
76335
76336         More merges from coreutils.
76337         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76338         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76339         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76340         * lib/addext.c: Remove; no longer needed.
76341         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76342         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76343         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76344         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76345         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76346         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76347         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76348         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76349         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76350         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76351         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76352         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76353         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76354         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76355         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76356         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76357         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76358         Import changes from coreutils.
76359
76360 2004-08-05  Simon Josefsson  <jas@extundo.com>
76361
76362         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76363
76364 2004-08-05  Simon Josefsson  <jas@extundo.com>
76365
76366         * m4/getsubopt.m4: New file.
76367
76368 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76369
76370         Merge from coreutils.
76371
76372         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76373         * m4/getcwd-path-max.m4: New files.
76374
76375         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76376         FILESYSTEM_PREFIX_LEN ->
76377         FILE_SYSTEM_PREFIX_LEN.
76378         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76379         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76380         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76381         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76382
76383         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76384         prerequisite modules now handle the DOS stuff.
76385         Don't check for unistd.h.
76386
76387 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         Merge from coreutils.
76390
76391         * lib/.gdb-history: Remove; this doesn't belong here.
76392
76393         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76394         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76395         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76396         * lib/getcwd.c: New files.
76397
76398         * lib/dirname.h: Include <stdbool.h>.
76399         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76400         for consistency with POSIX terminology.  All uses changed.
76401         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76402         (strip_trailing_slashes): Use bool for booleans.
76403         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76404
76405         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76406         sometimes returns a positive errno value even when it succeeds.
76407         (print_errno_message) [!LIBC]: Fall back on strerror if
76408         __strerror_r fails.
76409
76410         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76411         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76412         (longest_relative_suffix): New function.
76413         (path_concat): Use it.  Assume first argument is not NULL.
76414         Port to DOS.  Omit redundant separators.
76415         Report an error instead of returning NULL.
76416         Use mempcpy instead of memcpy.
76417         (xpath_concat): Remove: not declared or used.
76418
76419         * lib/same.h: Include <stdbool.h>
76420         (same_name): Return bool, not int.
76421         * lib/same.c (same_name): Likewise.
76422         (errno): Don't declare; we assume C89 or better now.
76423
76424         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76425         if not already defined.
76426
76427         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76428         * lib/dup-safer.c (errno): Likewise.
76429
76430 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         Merge from coreutils.
76433         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76434         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76435         * modules/path-concat: Don't depend on strdup.
76436
76437 2004-08-03  Simon Josefsson  <jas@extundo.com>
76438
76439         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76440         * lib/progname.h: Don't include stdbool.h.
76441
76442 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76443
76444         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76445         * MODULES.html.sh (func_all_modules): Remove fatal.
76446
76447 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76448
76449         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76450
76451 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76454         working.
76455
76456 2004-08-02  Simon Josefsson  <jas@extundo.com>
76457
76458         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76459         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76460         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76461
76462 2004-08-01  Simon Josefsson  <jas@extundo.com>
76463
76464         * lib/xgetdomainname.c: Include stdlib.h, for free().
76465
76466 2004-07-19  Bruno Haible  <bruno@clisp.org>
76467
76468         * MODULES.html.sh (func_all_modules): Add dummy.
76469
76470 2004-07-16  Simon Josefsson  <jas@extundo.com>
76471
76472         * modules/dummy: New file.
76473
76474 2004-07-16  Simon Josefsson  <jas@extundo.com>
76475
76476         * lib/dummy.c: New file.
76477
76478 2004-07-16  Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/backupfile.h: Add extern "C" for C++.
76481         * lib/closeout.h: Likewise.
76482         * lib/copy-file.h: Likewise.
76483         * lib/findprog.h: Likewise.
76484         * lib/full-write.h: Likewise.
76485         * lib/pathname.h: Likewise.
76486         * lib/progname.h: Likewise.
76487         * lib/stpcpy.h: Likewise.
76488         * lib/stpncpy.h: Likewise.
76489         * lib/strcase.h: Likewise.
76490         * lib/strstr.h: Likewise.
76491         * lib/xalloc.h: Likewise.
76492
76493         * lib/mbswidth.h: Add extern "C" for C++.
76494         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76495
76496 2004-07-13  Robert Millan  <robertmh@gnu.org>
76497
76498         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76499
76500 2004-07-09  Simon Josefsson  <jas@extundo.com>
76501
76502         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76503         failed without this.)
76504
76505 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76506
76507         * modules/chown (Files): Add lib/fchown-stub.c, since
76508         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76509
76510 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * lib/fchown-stub.c: New file.
76513
76514 2004-06-24  Jim Meyering  <jim@meyering.net>
76515
76516         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76517
76518 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         * modules/argz: Omit "#include".
76521
76522         * MODULES.html.sh (func_all_modules): Add calloc, to match
76523         2004-06-01 addition of calloc module.
76524
76525 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         * m4/argz.m4: New file, which is autoupdated from libtool.
76528
76529 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76532         libtool.
76533
76534 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76535
76536         * config/srclist-update: Don't insist on "USA." before the
76537         close-comment, as libtool omits the period and puts the */ on a
76538         separate line.
76539         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76540         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76541
76542 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76543
76544         * modules/argz: New file.
76545         * MODULES.html.sh (func_all_modules): Add argz.
76546
76547 2004-06-12  Jim Meyering  <jim@meyering.net>
76548         and  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         * modules/hash (Files): Add lib/xalloc.h.
76551         * modules/pipe (Depends-on): Add wait-process.
76552         * modules/stat (Depends-on): Add xalloc.
76553         * modules/userspec (Files): Add lib/userspec.h.
76554         * modules/xstrto
76555
76556         Upgrade from gettext-0.13.
76557         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76558         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76559         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76560
76561 2004-06-10  Jim Meyering  <jim@meyering.net>
76562
76563         * lib/calloc.c: New file.
76564
76565 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * lib/getdate.y (yylex): Allow space between sign and number.
76568         Problem reported by Dan Jacobson.
76569
76570 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         Merge from coreutils CVS.
76573
76574         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76575         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76576         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76577         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76578         xstrtol.m4: Fix copyright date and/or serial number.
76579
76580         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76581         See if we need an fchown replacement.
76582         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76583         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76584         and use the replacement function if we detect either defect.
76585
76586         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76587         gl_UTIMECMP.
76588
76589 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76590         and  Jim Meyering  <jim@meyering.net>
76591
76592         Merge from coreutils CVS.
76593
76594         * lib/stat-macros.h: New file, with contents from file-type.h
76595         and coreutils' system.h.
76596         * lib/file-type.c: Include "stat-macros.h".
76597         * lib/file-type.h (file_type): Move all macro definitions to new file,
76598         stat-macros.h.
76599
76600         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76601         Wrap old code with this conditional.
76602         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76603         function that does not dereference symlinks.
76604         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76605
76606         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76607         dependency problems.
76608         (xreadlink): Accept new arg SIZE, for efficiency.
76609         All decls and uses changed.
76610         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76611
76612         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76613         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76614
76615         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76616         sysexits.h.
76617
76618 2004-06-01  Jim Meyering  <jim@meyering.net>
76619
76620         * m4/calloc.m4: New file.
76621
76622 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76623
76624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76625         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76626         Also, fix a typo in a diagnostic.
76627
76628 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76629
76630         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76631         or AC_FUNC_REALLOC.
76632
76633 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76634
76635         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76636         macros to be defined.
76637         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76638         the allocator returns NULL because the requested size is zero.
76639
76640 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76643         var.  Add comment explaining why libc still defines it.  This
76644         merges the following patch from glibc:
76645         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76646
76647 2004-05-20  Andreas Schwab  <schwab@suse.de>
76648
76649         * m4/free.m4: Replace free if it not known to work, not the other
76650         way round.
76651
76652 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76653
76654         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76655         present in glibc since revision 1.1 of this file.
76656         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76657         obstack_alignment_mask, obstack_alloc, obstack_base,
76658         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76659         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76660         obstack_grow0, obstack_init, obstack_int_grow,
76661         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76662         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76663         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76664         nonexistent functions.
76665
76666 2004-05-18  Karl Berry  <karl@gnu.org>
76667
76668         * config/srclist.txt: break link for vasnprintf.c.
76669
76670 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76671
76672         Port obstack to the AS/400, where pointers are 16 bytes wide and
76673         you cannot cast an integer to a valid pointer.  This patch is
76674         currently waiting to be integrated into glibc; see
76675         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76676
76677         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76678         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76679         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76680         (struct obstack): temp member is now a union of a pointer and
76681         an integer, instead of an integer.  All integer uses changed.
76682         This does not affect the physical layout of struct obstack,
76683         except on hosts (like the AS/400) where the size or alignment of
76684         void * is greater than that of ptrdiff_t.
76685         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76686         __STDC__)]: Store temporary in pointer member of union, not
76687         integer member.
76688         * lib/obstack.c: Include <stddef.h>, for offsetof.
76689         (struct fooalign): Remove; it doesn't need a name.
76690         (union fooround): Change double to long double, and add void *.
76691         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76692         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76693         not a macro.  Hence the values are always int; so remove all
76694         casts-to-int in uses.
76695
76696 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76699         we can get this patch merged into glibc.
76700
76701 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76702             Paul Eggert  <eggert@cs.ucla.edu>
76703
76704         * m4/argp: Depend on alloca.
76705
76706 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76707             Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76710         freecoding.
76711
76712 2004-05-17  Bruno Haible  <bruno@clisp.org>
76713
76714         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76715         precision that consists of a '.' followed by an empty digit string.
76716         Patch by Tor Lillqvist <tml@iki.fi>.
76717
76718 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76721         for backward compatibility with older code.  We need our own
76722         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76723         it under some other name, and our alloca.h will define it.
76724
76725 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76726             Derek Price  <derek@ximbiot.com>
76727
76728         * lib/alloca.c: Include <alloca.h>, to get our interface.
76729         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76730         include <alloca.h> first.  Use C89 prototype for alloca; this
76731         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76732         Use #elif for simplicity, since we can assume C89 now.
76733         Don't try to source the system alloca.h since it will not be found
76734         and to prevent recursively including its replacement.
76735         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76736         * lib/regex.c: Likewise.
76737
76738 2004-05-16  Derek Price  <derek@ximbiot.com>
76739             Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         getline cleanup.  This changes the getndelim2 API: both order of
76742         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76743         no delimiter).
76744
76745         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76746         interface does that.
76747         (getline): Always use getdelim, so that we don't have two
76748         copies of this code.
76749         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76750         if available.
76751         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76752         (GETNDELIM2_MAXIMUM): New macro.
76753         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76754         instead of the old practice of delim2==0.  All callers changed.
76755         Return -1 on overflow, instead of returning junk.
76756         Do not set *linesize unless allocation succeeds.
76757         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76758         that we include sys/types.h.
76759         * lib/getnline.h: Likewise.
76760         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76761         (getndelim2): Reorder arguments.
76762         * lib/getnline.c (getnline, getndelim):
76763         Don't discard the NMAX argument.
76764         (getnline): Invoke getndelim, to avoid code duplication.
76765         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76766         of (size_t) -1 by callers of the getnline family.
76767
76768 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76769
76770         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76771         Check for gettimeofday.
76772         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76773         Check for settimeofday, stime.
76774
76775 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/nanosleep.c (suspended): Change its type from int to
76778         sig_atomic_t volatile.
76779         (first_call): Make it private to rpl_nanosleep, and have it
76780         be zero initially as that's a bit faster.
76781         (my_usleep): Round up fractional times instead of truncating them,
76782         as this is the usual meaning for 'sleep'.
76783
76784         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76785         doesn't work.
76786         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76787         (ENOSYS): Define if not defined.
76788         (settime): Fall back on stime if it exists and settimeofday fails.
76789         But don't bother with fallbacks if a method fails with errno == EPERM.
76790
76791 2004-05-11  Jim Meyering  <jim@meyering.net>
76792
76793         Prior to this change, the save_cwd caller required read access to the
76794         current directory on most systems (ones with the fchdir function).
76795
76796         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76797         fails, try write-only, and finally, resort to using xgetcwd.
76798
76799 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76800
76801         * lib/obstack.c, obstack.h: Import changes from libc.
76802
76803 2004-04-28  Bruno Haible  <bruno@clisp.org>
76804
76805         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76806         also implicitly appends .exe to executables.
76807         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76808         accepts Windows pathnames.
76809         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76810         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76811         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76812         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76813         Reported by Derek Robert Price <derek@ximbiot.com>.
76814
76815 2004-04-21  Karl Berry  <karl@gnu.org>
76816
76817         * config/srclist.txt (localcharset.c): break sync.
76818
76819 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76820
76821         * m4/host-os.m4: Add a copyright notice.
76822
76823 2004-04-20  Jim Meyering  <jim@meyering.net>
76824
76825         Change UTILS_ to gl_ in AC_DEFINE'd names.
76826         Change utils_- and jm_-prefixed variables, too.
76827         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76828         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76829         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76830
76831         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76832         Don't emit trailing blanks.
76833         Also rename jm_-prefixed variables to have gl_ prefix.
76834
76835         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76836         Also rename jm_-prefixed variables to have gl_ prefix.
76837
76838         * m4/jm-macros.m4: Reflect the renamings.
76839         * m4/prereq.m4: Likewise.
76840
76841 2004-04-20  Jim Meyering  <jim@meyering.net>
76842
76843         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76844         memory.
76845
76846 2004-04-20  Jim Meyering  <jim@meyering.net>
76847             Bruno Haible  <bruno@clisp.org>
76848
76849         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76850         memory when realloc fails.
76851
76852 2004-04-19  Jim Meyering  <jim@meyering.net>
76853
76854         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76855         now that readutmp.c may call `free (0)'.
76856
76857 2004-04-19  Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76860         * m4/inttypes_h.m4: Likewise.
76861         * m4/stdint_h.m4: Likewise.
76862         * m4/intmax_t.m4: Likewise.
76863         * m4/uintmax_t.m4: Likewise.
76864
76865 2004-04-18  Jim Meyering  <jim@meyering.net>
76866
76867         * m4/prereq.m4: Don't forbid jm_ prefix.
76868
76869         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76870         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76871         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76872         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76873         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76874         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76875         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76876         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76877         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76878         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76879         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76880         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76881         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76882         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76883         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76884         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76885         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76886         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76887         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76888
76889 2004-04-18  Jim Meyering  <jim@meyering.net>
76890
76891         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76892         failure, don't leak memory and do call END_UTMP_ENT.
76893
76894 2004-04-16  Jim Meyering  <jim@meyering.net>
76895
76896         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76897         coreutils' stat program.
76898         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76899
76900 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76901
76902         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76903         C89.
76904         (CHAR_BIT): Remove, since we assume C89.
76905         Include <stdint.h> if available, as per current Autoconf CVS advice.
76906
76907 2004-03-31  Jim Meyering  <jim@meyering.net>
76908
76909         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76910         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76911         * m4/xalloc.m4: Likewise.
76912
76913 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76914
76915         Merge from coreutils.
76916
76917         * m4/inttostr.m4: New file.
76918         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76919         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76920         Require gl_CLOCK_TIME.
76921         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76922
76923 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76924
76925         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76926         not bool, to be more consistent with Unix conventions.
76927         Suggested by Bruno Haible.
76928
76929         Merge from coreutils.
76930
76931         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76932         * lib/umaxtostr.c: New files.
76933
76934         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76935         the usual <time.h> dance.
76936         (get_date): Change signature to support fractional time stamps.
76937         All callers changed.
76938         * lib/getdate.y: Include "getdate.h" first, as we can now
76939         assume C89 and don't need to worry about 'const'.
76940         Similarly, include "unlocked-io.h" near start, not in middle.
76941         Include <limits.h>.
76942         (textint.value): Use long int rather than int.
76943         (textint.digits): Use size_t rather than int.
76944         (BILLION, LOG10_BILLION): New constants.
76945         (parser_control): New member rel_ns.  Members day_ordinal,
76946         time_zone, month, day, hour, minutes, rel_year, rel_month,
76947         rel_day, rel_hour, rel_minutes, rel_seconds
76948         are now long int, not int.  Member seconds is now struct timespec,
76949         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76950         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76951         not int.
76952         (%union.intval): Now long int, not int.
76953         New member timespec.
76954         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76955         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76956         (spec): Now is a timespec or an item list.
76957         (timespec, items): New nonterminals.
76958         (time, rel, relunit, number, get_date):
76959         Add support for fractional seconds.
76960         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76961         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76962         (to_hour): First arg is now long int, not int.
76963         (to_year): Returns long int, not int.
76964         Don't treat year -70 like 70.
76965         (tm_diff): Returns long int, not int.
76966         (lookup_word): Use bool instead of int when appropriate.
76967         (yylex): Use size_t for count, not int.
76968         Detect overflow when parsing large integer constants.
76969         Add support for fractions.
76970         (get_date): Make pointers 'const' if possible.
76971         Use more-portable code to detect integer overflow.
76972         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76973         Don't use ctime; it's not reliable if the year has >4 digits.
76974
76975         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76976         This is for compatibility with BSD.
76977
76978         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76979         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76980         From coreutils' system.h.
76981
76982         * lib/userspec.c: Don't include "posixver.h".
76983         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76984         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76985         compatible extension.  Simplify code by removing a boolean int
76986         that was always nonzero if a string was nonnull.
76987
76988 2004-03-30  Jim Meyering  <jim@meyering.net>
76989
76990         Merge from coreutils.
76991
76992         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76993         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76994         on some systems one must include <grp.h> before it.
76995         Reported by Christian Krackowizer.
76996
76997 2004-03-30  Jim Meyering  <jim@meyering.net>
76998
76999         Merge from coreutils.
77000
77001         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77002
77003         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77004         an empty input stream.
77005
77006         * lib/readtokens.c: Include <stdbool.h>.
77007         (readtoken): Use `size_t' rather than int/long.
77008         All callers adjusted.
77009         Use `bool' rather than `int' where appropriate.
77010         Use memset rather than an explicit loop.
77011         Use x2nrealloc rather than xrealloc.
77012         Allow the use of `\0' as a delimiter.
77013         (readtokens): Likewise.
77014         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77015
77016 2004-03-30  Jim Meyering  <jim@meyering.net>
77017
77018         * m4/realloc.m4: Remove file, since now it does no more than
77019         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77020         the `configure.ac' section of module/realloc.
77021         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77022
77023 2004-03-30  Bruno Haible  <bruno@clisp.org>
77024
77025         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77026         nonnull.
77027
77028 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77029
77030         Merge changes to getloadavg.c from coreutils and Emacs.
77031
77032         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77033         Define to an expression, not to the empty string.
77034         Include cloexec.h and xalloc.h.
77035         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77036         Use set_cloexec_flag rather than rolling our own.
77037         * lib/cloexec.c, lib/cloexec.h: New files.
77038
77039 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77040
77041         * m4/cloexec.m4: New file.
77042
77043 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77044
77045         * lib/getopt.h: Sync with libc CVS.
77046
77047 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77048             Bruno Haible  <bruno@clisp.org>
77049
77050         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77051         mbswidth.
77052
77053 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77054             Bruno Haible  <bruno@clisp.org>
77055
77056         * lib/mbswidth.h: Include <wchar.h> only if
77057         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77058         <wchar.h>.
77059         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77060
77061 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77062
77063         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77064         Sync with libc CVS.
77065         * lib/getopt_int.h: New file, also synced from libc.
77066
77067 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77068
77069         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77070         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77071         Bring back getopt.c, getopt.h, getopt1.c.
77072
77073 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77074
77075         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77076         All uses changed.  Check for sa_sigaction member; this fixes
77077         a bug first reported by Jason Andrade in
77078         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77079
77080 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77081
77082         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77083         '#if' expressions.  Unlike the code it replaces, it does not
77084         depend on (defined _SC_PAGESIZE).  However, it does depend on
77085         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77086         first reported by Jason Andrade in
77087         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77088
77089 2004-02-25  Simon Josefsson  <jas@extundo.com>
77090
77091         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77092
77093 2004-02-25  Simon Josefsson  <jas@extundo.com>
77094
77095         * lib/strdup.h: New file.
77096         * lib/strdup.c: Include it.
77097         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77098         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77099
77100 2004-02-23  Karl Berry  <karl@gnu.org>
77101
77102         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77103         (from fencepost.gnu.org:/gd/gnuorg).
77104
77105 2004-02-23  Karl Berry  <karl@gnu.org>
77106
77107         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77108         * config/srclist.txt: add maintain/standards documents.
77109
77110 2004-02-18  Bruno Haible  <bruno@clisp.org>
77111
77112         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77113         Reported by Derek Robert Price <derek@ximbiot.com>.
77114
77115 2004-02-16  Karl Berry  <karl@gnu.org>
77116
77117         * config/mkinstalldirs, install-sh: update from automake.
77118
77119 2004-02-06  Karl Berry  <karl@gnu.org>
77120
77121         * m4/po.m4: update from gettext 0.14.1.
77122
77123 2004-02-06  Karl Berry  <karl@gnu.org>
77124
77125         * lib/config.charset: update from gettext 0.14.1.
77126
77127 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77128
77129         Add comments and code, prompted by suggestions from Bruno Haible
77130         for sh-quote.
77131         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77132         describing the enum quoting_style values.
77133         * lib/quotearg.c (quotearg_alloc): New function.
77134         (quotearg_buffer_restyled): Treat lone { and } as special.
77135         Treat = as special.  Work around bug with older shells
77136         that "see" a '\' that is really the 2nd byte of a multibyte char.
77137         Quote empty string with shell_quoting_style.
77138
77139 2004-02-03  Bruno Haible  <bruno@clisp.org>
77140
77141         * m4/pipe.m4: New file, from GNU gettext.
77142
77143 2004-02-03  Bruno Haible  <bruno@clisp.org>
77144
77145         * lib/pipe.h: New file, from GNU gettext.
77146         * lib/pipe.c: New file, from GNU gettext.
77147
77148 2004-01-27  Bruno Haible  <bruno@clisp.org>
77149
77150         * m4/execute.m4: New file, from GNU gettext.
77151
77152 2004-01-27  Bruno Haible  <bruno@clisp.org>
77153
77154         * lib/execute.h: New file, from GNU gettext.
77155         * lib/execute.c: New file, from GNU gettext.
77156         * lib/w32spawn.h: New file, from GNU gettext.
77157
77158 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77159
77160         Merge from diffutils.
77161
77162         * lib/file-type.c (file_type): Add typed memory objects.
77163         * lib/file-type.h (S_TYPEISTMO): New macro.
77164
77165         * lib/c-stack.h (c_stack_action): Remove argv argument.
77166         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77167         (die): Don't calculate message unless segv_action returns.
77168         (get_stack_location, min_address_from_argv, max_address_from_argv,
77169         volatile stack_base, volatile_stack_size): Remove.
77170         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77171         that every segmentation violation is a stack overflow.  (Ouch!)
77172         See Debian bug 136249 (still outstanding) for more info about why
77173         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77174
77175 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77176
77177         Exit-status fix from coreutils.
77178
77179         Use exit_failure consistently in place of EXIT_FAILURE,
77180         so that program exit statuses are consistent on failure.
77181
77182         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77183         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77184         * lib/argmatch.h: Comment fix to match the above.
77185         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77186         Now a macro referring to exit_failure, instead of a separate
77187         variable.  Include "exitfail.h" to get it.
77188         * lib/xstrtol.h: Include "exitfail.h".
77189         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77190
77191         * lib/long-options.c (parse_long_options): Use prototype
77192         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77193         for clarity.
77194
77195 2004-01-21  Jim Meyering  <jim@meyering.net>
77196
77197         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77198         so as not to conflict with a different-sized __mktime_internal
77199         function in GNU libc.
77200         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77201         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77202
77203 2004-01-20  Karl Berry  <karl@gnu.org>
77204
77205         * config/config.guess: update from config.
77206
77207         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77208
77209 2004-01-20  Bruno Haible  <bruno@clisp.org>
77210
77211         Safer stack allocation.
77212         * lib/setenv.c: Include allocsa.h.
77213         (alloca): Remove fallback definition.
77214         (freea): Remove macro.
77215         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77216         instead of freea.
77217
77218 2004-01-20  Bruno Haible  <bruno@clisp.org>
77219
77220         * m4/eealloc.m4: New file, from GNU gettext.
77221
77222 2004-01-20  Bruno Haible  <bruno@clisp.org>
77223
77224         * m4/allocsa.m4: New file, from GNU gettext.
77225
77226 2004-01-20  Bruno Haible  <bruno@clisp.org>
77227
77228         * lib/xallocsa.h: New file, from GNU gettext.
77229         * lib/xallocsa.c: New file, from GNU gettext.
77230
77231 2004-01-20  Bruno Haible  <bruno@clisp.org>
77232
77233         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77234
77235 2004-01-20  Bruno Haible  <bruno@clisp.org>
77236
77237         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77238         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77239         specially.
77240
77241 2004-01-20  Bruno Haible  <bruno@clisp.org>
77242
77243         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77244         patch.
77245
77246 2004-01-20  Bruno Haible  <bruno@clisp.org>
77247
77248         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77249
77250 2004-01-20  Bruno Haible  <bruno@clisp.org>
77251
77252         * lib/eealloc.h: New file.
77253
77254 2004-01-20  Bruno Haible  <bruno@clisp.org>
77255
77256         * lib/binary-io.h: Avoid warnings on Cygwin.
77257
77258 2004-01-20  Bruno Haible  <bruno@clisp.org>
77259
77260         * lib/allocsa.h: New file, from GNU gettext.
77261         * lib/allocsa.c: New file, from GNU gettext.
77262
77263 2004-01-18  Karl Berry  <karl@gnu.org>
77264
77265         * doc/gpl.texi, doc/lgpl.texi: new files.
77266
77267 2004-01-18  Karl Berry  <karl@gnu.org>
77268
77269         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77270         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77271
77272 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77273
77274         Merge from coreutils.
77275
77276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77277         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77278         (gl_DEFAULT_POSIX2_VERSION): Move
77279         the documentation from 'configure' into 'config.hin',
77280         so that 'configure --help' isn't burdened by it and
77281         we don't have to worry about its formatting there.
77282         Reword the documentation so that it's more succinct
77283         and can be run together into a single paragraph.
77284         * m4/same.m4 (gl_SAME): Check for pathconf.
77285
77286 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77287
77288         Merge from coreutils.
77289
77290         * lib/posixver.c: Include posixver.h.
77291
77292         * lib/same.c: Include <stdbool.h>, <limits.h>.
77293         (_POSIX_NAME_MAX): Define if not defined.
77294         (MIN): New macro.
77295         (same_name): If file names are silently truncated, report
77296         that the file names are the same if they are the same after
77297         the silent truncation.
77298
77299         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77300         conversion function.
77301         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77302         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77303         longer needed.
77304
77305 2004-01-15  Jim Meyering  <jim@meyering.net>
77306
77307         Merge from coreutils.
77308
77309         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77310         if no library is required.
77311         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77312         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77313         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77314         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77315         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77316         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77317         value, $ac_cv_search_crypt, if it's "none required".
77318         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77319         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77320         not gl_FUNC_GETLOADAVG.
77321         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77322         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77323
77324 2004-01-15  Jim Meyering  <jim@meyering.net>
77325
77326         Merge from coreutils.
77327
77328         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77329         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77330         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77331
77332         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77333         optional configure-time default.
77334
77335         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77336
77337         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77338
77339 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77340
77341         Merge from coreutils.
77342
77343         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77344         value, $ac_cv_search_nanosleep, if it's "none required".
77345
77346 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77347
77348         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77349         with like-named macro in fnmatch.c.
77350         (EXT): Use an internal constant instead.
77351
77352         Merge fnmatch patches from glibc.
77353         * lib/fnmatch.c (mbsinit): Remove define.
77354         Add libc_hidden_ver (__fnmatch, fnmatch).
77355         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77356         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77357
77358 2004-01-14  Karl Berry  <karl@gnu.org>
77359
77360         * config/install-sh: update from automake.
77361
77362 2004-01-13  Karl Berry  <karl@gnu.org>
77363
77364         * config/install-sh: update from automake.
77365
77366 2004-01-09  Karl Berry  <karl@gnu.org>
77367
77368         * config/install-sh: update from automake.
77369
77370 2004-01-05  Karl Berry  <karl@gnu.org>
77371
77372         * config/config.{sub,guess}: update from config.
77373
77374 2003-12-31  Karl Berry  <karl@gnu.org>
77375
77376         * config/depcomp: update from automake.
77377
77378 2003-12-14  Karl Berry  <karl@gnu.org>
77379
77380         * lib/config.charset: update from gettext-runtime.
77381
77382 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77383
77384         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77385         Bug reported by Alfred M. Szmidt.
77386
77387 2003-12-03  Bruno Haible  <bruno@clisp.org>
77388
77389         * m4/gettext.m4: Upgrade from gettext-0.13.
77390         * m4/po.m4: Upgrade from gettext-0.13.
77391         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77392         * m4/intmax.m4: New file, from gettext-0.13.
77393         * m4/printf-posix.m4: New file, from gettext-0.13.
77394
77395 2003-11-29  Karl Berry  <karl@gnu.org>
77396
77397         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77398
77399 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77400             Bruno Haible  <bruno@clisp.org>
77401
77402         * lib/printf-parse.h: Don't include sys/types.h.
77403         (ARG_NONE): New macro.
77404         (char_directive): Change type of *arg_index fields to size_t.
77405         * lib/printf-parse.c: Don't include sys/types.h.
77406         (SSIZE_MAX): Remove macro.
77407         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77408         Remove unnecessary overflow check.
77409         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77410         fields.
77411
77412 2003-11-25  Bruno Haible  <bruno@clisp.org>
77413
77414         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77415
77416 2003-11-25  Bruno Haible  <bruno@clisp.org>
77417
77418         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77419         gt_TYPE_SSIZE_T.
77420
77421 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77422
77423         * modules/alloca: Remove dependency on xalloc.
77424
77425 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77426
77427         * lib/alloca.c: Remove dependency on xalloc module.
77428         (xalloc_die): Remove.
77429         (memory_full) [!defined emacs]: New macro.
77430         [!defined emacs]: Don't include xalloc.h.
77431         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77432         address arithmetic overflows.  Change datatypes a bit to avoid
77433         unnecessary casts.
77434
77435 2003-11-22  Jim Meyering  <jim@meyering.net>
77436
77437         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77438         s/size/size_t/.
77439
77440 2003-11-21  Karl Berry  <karl@gnu.org>
77441
77442         * config/config.{sub,guess}: update from config.
77443
77444 2003-11-18  Karl Berry  <karl@gnu.org>
77445
77446         * config/config.{sub,guess}: update from config.
77447
77448         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77449
77450 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77451
77452         * README: Mention that S+T cannot overflow if S is the size of
77453         an existing object and T is sufficiently small.
77454
77455 2003-11-17  Jim Meyering  <jim@meyering.net>
77456
77457         On systems without utime and without a utimes function capable of
77458         dealing with a NULL struct utimbuf* argument, this utime replacement
77459         could -- in unusual circumstances -- leak a file descriptor.
77460         * lib/utime.c: Include <unistd.h> and <errno.h>.
77461         (utime_null): Be sure to close `fd' and to preserve errno.
77462         Reported by Geoff Collyer via Arnold Robbins.
77463
77464 2003-11-17  Bruno Haible  <bruno@clisp.org>
77465
77466         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77467         (Depends-on): Add xsize.
77468
77469 2003-11-17  Bruno Haible  <bruno@clisp.org>
77470
77471         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77472
77473 2003-11-17  Bruno Haible  <bruno@clisp.org>
77474
77475         * lib/vasnprintf.c (alloca): Remove fallback definition.
77476         (freea): Remove definition.
77477         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77478         Reported by Paul Eggert.
77479
77480 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77481             Bruno Haible  <bruno@clisp.org>
77482
77483         Protect against address arithmetic overflow.
77484         * lib/printf-args.h: Include stddef.h.
77485         (arguments): Change type of field 'count' to size_t.
77486         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77487         'unsigned int' where appropriate.
77488         * lib/printf-parse.h: Include sys/types.h.
77489         (char_directive): Change type of *arg_index fields to ssize_t.
77490         (char_directives): Change type of fields 'count', max_*_length to
77491         size_t.
77492         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77493         (SSIZE_MAX): Define fallback value.
77494         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77495         instead of 'int' where appropriate. Check a_allocated, d_allocated
77496         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77497         * lib/vasnprintf.c: Include xsize.h.
77498         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77499         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77500         overflow. Avoid wraparound when converting a width or precision from
77501         decimal to binary.
77502
77503 2003-11-16  Bruno Haible  <bruno@clisp.org>
77504
77505         Update from GNU gettext.
77506         * lib/printf-parse.c: Generalize to it can be compiled for wide
77507         strings.
77508         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77509         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77510         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77511         SNPRINTF): New macros.
77512         Don't include <alloca.h> if the file is used inside libintl.
77513         (local_wcslen): New function, for Solaris 2.5.1.
77514         (VASNPRINTF): Use it instead of wcslen.
77515
77516 2003-11-16  Bruno Haible  <bruno@clisp.org>
77517
77518         * lib/xsize.h (xmax): New function.
77519         (xsum, xsum3, xsum4): Declare as "pure" functions.
77520
77521 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77522
77523         * modules/xalloc (Files): Undo latest change, since xalloc.h
77524         no longer needs SIZE_MAX or PTRDIFF_MAX.
77525
77526 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77527
77528         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77529         gl_PTRDIFF_MAX.
77530
77531 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77532
77533         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77534         "return", to pacify some unknown compiler.  Problem reported
77535         by Joerg Schilling.
77536
77537 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77538
77539         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77540         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77541         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77542         heuristic is just as accurate as far as we know, and it removes a
77543         dependency on size_max.m4 and ptrdiff_max.m4.
77544
77545 2003-11-11  Bruno Haible  <bruno@clisp.org>
77546
77547         * modules/xsize (Files): Add m4/size_max.m4.
77548         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77549
77550 2003-11-11  Bruno Haible  <bruno@clisp.org>
77551
77552         * m4/size_max.m4: New file.
77553         * m4/ptrdiff_max.m4: New file.
77554         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77555         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77556         (gl_XALLOC): Invoke it.
77557
77558 2003-11-11  Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77561         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77562         defined.
77563
77564 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77565
77566         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77567         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77568         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77569         From Bruno Haible.
77570         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77571         not (size_t) -1, since it's defined here.
77572
77573 2003-11-09  Karl Berry  <karl@gnu.org>
77574
77575         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77576
77577 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77578
77579         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77580         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77581         Reject sizes of exactly SIZE_MAX bytes.
77582         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77583         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77584
77585 2003-11-05  Bruno Haible  <bruno@clisp.org>
77586
77587         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77588         SIZE_MAX defined in <limits.h> on Solaris.
77589
77590 2003-11-04  Jim Meyering  <jim@meyering.net>
77591
77592         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77593         variable names, rather than @VAR@.
77594         * modules/poll: Likewise.
77595
77596 2003-11-04  Bruno Haible  <bruno@clisp.org>
77597
77598         * modules/xsize: New file.
77599         * modules/linebreak: Depend on xsize.
77600         * MODULES.html.sh (func_all_modules): Add xsize.
77601
77602 2003-11-04  Bruno Haible  <bruno@clisp.org>
77603
77604         * m4/xsize.m4: New file.
77605
77606 2003-11-04  Bruno Haible  <bruno@clisp.org>
77607
77608         * lib/xsize.h: New file.
77609         * lib/linebreak.c: Include xsize.h.
77610         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77611         argument for overflow.
77612         Suggested by Paul Eggert.
77613
77614 2003-11-03  Karl Berry  <karl@gnu.org>
77615
77616         * config/config.{guess,sub}: update from config.
77617
77618 2003-11-03  Jim Meyering  <jim@meyering.net>
77619
77620         * modules/userspec (lib_SOURCES): Add userspec.h.
77621         (Include): Add "userspec.h".
77622         Improve description.
77623
77624 2003-11-03  Jim Meyering  <jim@meyering.net>
77625
77626         * lib/userspec.c: Include "userspec.h".
77627         * lib/userspec.h: New file.
77628
77629 2003-11-03  Bruno Haible  <bruno@clisp.org>
77630
77631         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77632
77633 2003-11-03  Bruno Haible  <bruno@clisp.org>
77634
77635         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77636         available, to avoid (extremely rare) race condition.
77637         Suggested by Paul Eggert.
77638
77639 2003-11-02  Karl Berry  <karl@gnu.org>
77640
77641         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77642
77643 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77644
77645         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77646         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77647         (read_filesystem_list): Set and use me_type_malloced.
77648         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77649         whatever the type happens to be), for brevity and consistency.
77650         Check for size calculation overflow on Alphas running OSF/1.
77651
77652 2003-10-31  Jim Meyering  <jim@meyering.net>
77653
77654         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77655
77656         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77657
77658 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77659             Bruno Haible  <bruno@clisp.org>
77660
77661         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77662         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77663
77664 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77667         netbsd*-gnu*.  Suggested by Robert Millan.
77668
77669 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77670
77671         * modules/group-member: Depend on stdbool.
77672
77673 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77674
77675         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77676
77677 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77678
77679         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77680         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77681         after the 'gnu' in these cases.  This fixes some bugs in the
77682         previous change, and is based on suggestions by Robert Millan.
77683
77684 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77685
77686         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77687         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77688         no longer needed.
77689         * lib/quotearg.c (quotearg_n_options): Use it.
77690         * lib/group-member.c: Include <stdbool.h>.
77691         (free_group_info): Arg is now const *; don't free arg.
77692         (get_group_info): Now returns bool and accepts struct group_info *,
77693         rather than returning a malloc'ed struct group_info *.
77694         All uses changed.  Check for overflow in internal size calculation.
77695
77696         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77697         rather than xmalloc/xrealloc.
77698         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77699         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77700         conformance bug: the old code used a pointer after freeing the
77701         storage that it addressed.
77702         * lib/hash.c (hash_initialize): Simplify the code by using
77703         xalloc_oversized rather than doing it by hand.
77704         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77705         the buffer preserved.  Use free and xmalloc instead.
77706         * lib/quotearg.c (quotearg_n_options): Likewise.
77707         Use a simpler test for size overflow.  Don't use xalloc_oversized
77708         because unsigned int might be wider than size_t (!); this suggests
77709         that we should switch from unsigned int to size_t for slot numbers.
77710
77711 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77712
77713         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77714         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77715         NetBSD kernels.  Requested by Richard Stallman.
77716
77717 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77718
77719         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77720         to allocate the returned structure.  Do not allocate a subarray,
77721         as x2nrealloc will do that.
77722         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77723         instead of xnrealloc.
77724         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77725
77726 2003-10-27  Bruno Haible  <bruno@clisp.org>
77727
77728         * lib/stdbool_.h: Better support for BeOS.
77729
77730 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77731
77732         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77733         now uses inline.
77734
77735 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77736
77737         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77738         callers that want to do their own size-overflow checking.  Include
77739         <stdbool.h>, since xalloc_oversized returns bool.
77740         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77741         to use xalloc_oversized.
77742
77743         Add two functions x2realloc, x2nrealloc, for programs that grow
77744         arrays dynamically by doubling their sizes.
77745         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77746         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77747         New functions.
77748
77749         Port to C99 semantics for 'inline' of external functions.
77750         Bug reported by Bruno Haible.
77751         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77752         with the old contents of xnmalloc.
77753         (xnmalloc, xmalloc): Use it.
77754         (xnrealloc_inline): New static inline function,
77755         with the old contents of xnrealloc.
77756         (xnrealloc, xrealloc): Use it.
77757
77758         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77759         that.
77760
77761 2003-10-26  Karl Berry  <karl@gnu.org>
77762
77763         * config/srclist.txt (COPYING.DOC): no longer available from
77764         /gd/gnuorg; don't know where the ultimate source is.
77765
77766 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77767
77768         Fix several address-calculation bugs in the hash modules,
77769         plus some minor code cleanup.
77770
77771         * lib/hash.h: Include <stdbool.h>, for bool.
77772         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77773         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77774         hash_get_n_entries, hash_get_max_bucket_length,
77775         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77776         hash_rehash): Use size_t rather than unsigned.
77777         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77778         hash_get_n_buckets_used, hash_get_n_entries,
77779         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77780         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77781         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77782         Likewise.
77783         (SIZE_MAX): Define if not defined.
77784         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77785         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77786         hash_print):
77787         Use const * when possible.
77788         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77789         (check_tuning): Fix bug: if tuning parameters were very close to
77790         0 or 1, rounding errors could have caused subscript violations.
77791         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77792         (hash_initialize): Add 'fail:' label
77793         to free table and return NULL, and use it to simplify code.
77794         Use calloc rather than clearing the storage ourself.
77795         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77796         buffer size calculations.
77797         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77798         Include <stddef.h>, for size_t.
77799         * lib/hash-pjw.c (hash_pjw): Likewise.
77800         Switch to method described by Bruno Haible.
77801         Include <limits.h>, for CHAR_BIT.
77802         (SIZE_BITS): New macro.
77803
77804 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77805
77806         * m4/getline.m4 (AM_FUNC_GETLINE):
77807         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77808         hosts.  Problem reported by Derek Robert Price in
77809         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77810         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77811         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77812
77813 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77814
77815         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77816         ceiling the allocation at NMAX bytes rather than silently
77817         discarding input bytes before NMAX is reached.  This makes
77818         a difference only if NMAX exceeds SIZE_MAX / 2.
77819
77820         * lib/obstack.c: Merge from glibc.
77821         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77822         Add libc_hidden_def (_obstack_newchunk).
77823         (_obstack_free) [! defined _LIBC]: Remove.
77824         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77825         a clone of the function body.
77826         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77827         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77828
77829         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77830         glibc.
77831         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77832         arg to memcpy.
77833
77834         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77835         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77836         Don't use lvalue casts, as GCC plans to remove support for them
77837         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77838         was also present in the non-GCC version, indicating that this
77839         code had always been buggy and had never been widely used.
77840         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77841         Use the fast variant of each macro, rather than copying the
77842         definiens of the fast variant; that way, we'll be more likely to
77843         catch future bugs in the fast variants.
77844
77845 2003-10-20  Bruno Haible  <bruno@clisp.org>
77846
77847         * modules/wait-process: New file.
77848         * MODULES.html.sh (func_all_modules): Add wait-process.
77849
77850 2003-10-20  Bruno Haible  <bruno@clisp.org>
77851
77852         * m4/wait-process.m4: New file.
77853
77854 2003-10-20  Bruno Haible  <bruno@clisp.org>
77855
77856         * lib/wait-process.h: New file, from GNU gettext.
77857         * lib/wait-process.c: New file, from GNU gettext.
77858
77859 2003-10-19  Jim Meyering  <jim@meyering.net>
77860
77861         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77862         HPUX 10.20.
77863
77864 2003-10-18  Karl Berry  <karl@gnu.org>
77865
77866         * config/config.guess: update from config.
77867
77868 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77869
77870         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77871         (getgroups): First arg is int, not size_t.
77872         Don't let 'free' mangle errno.
77873
77874 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77875
77876         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77877
77878 2003-10-16  Karl Berry  <karl@gnu.org>
77879
77880         * config/config.{guess,sub}: update from config.
77881
77882 2003-10-16  Jim Meyering  <jim@meyering.net>
77883
77884         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77885         memcpy.
77886
77887 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77888
77889         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77890         (SIZE_MAX): Remove.
77891         (new_exclude, add_exclude_file): Initial size no longer needs to
77892         be a power of 2.
77893         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77894         our own address arithmetic overflow checking.
77895
77896         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77897         (fnmatch): Do not alloca more than 2000 wide characters;
77898         instead, use malloc for large buffers.
77899         Check for address arithmetic overflow, and return -1
77900         with errno set to ENOMEM in that case.
77901         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77902         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77903         instead, return -1.  Check for address arithmetic overflow.
77904
77905 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77906
77907         Handle invalid suffixes and overflow independently, so that
77908         callers can treat them independently as needed.  Fix some bugs in
77909         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77910         suffix for a human-readable blocksize.  The major caller-visible
77911         change is the addition of a new
77912         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77913         that both overflow and suffix chars were found.
77914
77915         * lib/human.c (humblock): Don't check separately for invalid suffix
77916         char; that is xstrtoumax's job (now that its bug is fixed).
77917         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77918         INTMAX_MAX]: New macros.
77919         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77920         TYPE_MAXIMUM): New macros.
77921         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77922         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77923         if overflow occurs, as it's what __strtol does and it's more useful
77924         in practice.
77925         (__xstrtol): If __strtol reports some error other than ERANGE,
77926         reflect it to the caller as LONGINT_INVALID.  If it reports
77927         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77928         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77929         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77930         value.
77931         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77932         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77933         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77934         [defined UINTMAX_MAX]: New macros.
77935
77936 2003-10-14  Bruno Haible  <bruno@clisp.org>
77937
77938         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77939
77940 2003-10-14  Bruno Haible  <bruno@clisp.org>
77941
77942         * m4/sig_atomic_t: New file, from GNU gettext.
77943         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77944
77945 2003-10-14  Bruno Haible  <bruno@clisp.org>
77946
77947         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77948         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77949         Also use volatile where needed.
77950
77951 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77952
77953         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77954         Change maintainer from Bruno Haible to 'all'.
77955
77956 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77957
77958         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77959
77960 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77961
77962         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77963         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77964         and define in terms of the other primitives.
77965         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77966         (SIZE_MAX): Define if not already defined.
77967         (array_size_overflow): New function.
77968         (xalloc_die): Abort instead of exiting if 'error' returns.
77969         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77970         (xmalloc, xrealloc): Use them.
77971         (xcalloc): Check for address arithmetic overflow.
77972         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77973         a bit faster than strcpy.
77974
77975 2003-10-10  Simon Josefsson  <jas@extundo.com>
77976
77977         * modules/argp (Depends-on): Add restrict and strcase.
77978
77979 2003-10-10  Simon Josefsson  <jas@extundo.com>
77980
77981         * m4/argp.m4: Add AC_C_INLINE.
77982
77983 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77984
77985         Merge getpass from libc, plus a few fixes.
77986
77987         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77988         Include <stdbool.h>.
77989         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77990         __fsetlocking to empty.
77991         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77992         do include <bits/libc-lock.h>.
77993         Do not include <fcntl.h>; not needed.
77994         [_LIBC]: Include <wchar.h>.
77995         (NOTCANCEL_MODE): New macro.
77996         (flockfile, funlockfile) [_LIBC]: New macros.
77997         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77998         [!_LIBC]: New macros.
77999         (call_fclose): New function.
78000         (getpass): Use it.  Save tty stream separately; this simplifies the
78001         code and makes it more reliable if stdin happens to equal stdout.
78002         Invoke __fsetlocking on tty.
78003         Handle thread cancellation if needed.
78004         Namespace cleanup (use __tcgetattr, __getline).
78005         Use bool for Booleans.
78006         [USE_IN_LIBIO]: Handle wide streams.
78007         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78008         stream might go where.
78009
78010         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78011         doesn't have to include <stdio.h> before us.
78012         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78013         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78014         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78015         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78016         if not declared, so that we can use getpass.c code from libc without
78017         rewriting it.
78018         (flockfile, ftrylockfile, funlockfile): New macros.
78019
78020 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78021
78022         * modules/getpass: Depend on stdbool.
78023
78024 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78025
78026         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78027
78028 2003-10-07  Karl Berry  <karl@gnu.org>
78029
78030         * config/config.{guess,sub}: update from config.
78031
78032 2003-10-06  Jim Meyering  <jim@meyering.net>
78033             Bruno Haible  <bruno@clisp.org>
78034
78035         This lets translators provide better translations for the
78036         "Written by ..." part of --version output.
78037         * lib/version-etc.h: Include stdarg.h.
78038         (version_etc_copyright): Declare as readonly.
78039         (version_etc): Make this function variadic with a NULL-terminated list
78040         of author name strings.
78041         (version_etc_va): New declaration.
78042         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78043         (version_etc_copyright): Declare as readonly.
78044         (version_etc_va): New function. Provide a different translatable string
78045         for each possible number of authors < 10. Abbreviate when there are 10
78046         authors or more.
78047         (version_etc): Make this function variadic. Call version_etc_va.
78048         Suggestion from Gary V. Vaughan.
78049
78050         * lib/long-options.h (parse_long_options): Change prototype: the
78051         authors string is moved to the end and becomes variadic.
78052         * lib/long-options.c: Include stdarg.h.
78053         (parse_long_options): Make this function variadic, too.
78054         Call version_etc_va, not version_etc.
78055
78056 2003-10-06  Bruno Haible  <bruno@clisp.org>
78057
78058         * modules/version-etc-2: Remove file.
78059         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78060
78061 2003-10-06  Bruno Haible  <bruno@clisp.org>
78062
78063         * modules/fatal-signal: New file.
78064         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78065
78066 2003-10-06  Bruno Haible  <bruno@clisp.org>
78067
78068         * m4/fatal-signal.m4: New file.
78069         * m4/signalblocking.m4: New file, from GNU gettext.
78070
78071 2003-10-06  Bruno Haible  <bruno@clisp.org>
78072
78073         * lib/version-etc-2.h: Remove file.
78074         * lib/version-etc-2.c: Remove file.
78075
78076 2003-10-06  Bruno Haible  <bruno@clisp.org>
78077
78078         * lib/fatal-signal.h: New file, from GNU gettext.
78079         * lib/fatal-signal.c: New file, from GNU gettext.
78080
78081 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78082
78083         * README: Rework advice for preventing empty .o files.
78084         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78085         not <sys/types.h>.
78086
78087 2003-10-04  Karl Berry  <karl@gnu.org>
78088
78089         * lib/argp*: update from libc.
78090
78091 2003-10-04  Karl Berry  <karl@gnu.org>
78092
78093         * config/config.{guess,sub}: update from config.
78094
78095 2003-10-02  Bruno Haible  <bruno@clisp.org>
78096
78097         * modules/lchown (Include): Add lchown.h.
78098         * modules/time_r (Include): Use "..." syntax.
78099         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78100
78101 2003-10-01  Simon Josefsson  <jas@extundo.com>
78102
78103         * MODULES.html.sh (func_all_modules): Move gethostname from section
78104         'based on' to section 'lacking' POSIX:2001.
78105
78106 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78107
78108         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78109         to output mode on the same stream.
78110
78111 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78112
78113         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78114         Fix arg typo in previous patch.
78115
78116 2003-09-28  Jim Meyering  <jim@meyering.net>
78117
78118         * lib/error.c: Correct cpp indentation.
78119
78120 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78121
78122         * modules/free: New file.
78123
78124 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78125
78126         * m4/free.m4: New file.
78127
78128 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78129
78130         * lib/minmax.h (MIN, MAX)
78131         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78132         Omit the special code that used __typeof__, since we worry that
78133         it could be more trouble than it's worth.  See:
78134         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78135         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78136
78137         * lib/free.c: New file.
78138
78139 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78140
78141         Trivial fixes to Makefile.am parts of module listings.
78142         * modules/strstr: Append strstr.h to lib_SOURCES.
78143         * modules/strcase: Likewise, for strcase.h.
78144
78145 2003-09-27  Karl Berry  <karl@gnu.org>
78146
78147         * config/mkinstalldirs: update from automake.
78148
78149 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78150
78151         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78152         (error_tail): Do not loop, reallocating temporary buffer, since
78153         the output cannot contain more wide characters than the input
78154         contains bytes, the size must be big enough already.  This avoids
78155         one potential size overflow calculation.  Check for size overflow
78156         when calculating temporary buffer size.  Free temporary buffer
78157         when done, if it was allocated with malloc; this plugs a memory
78158         leak.  Remove casts from void * to pointers, that are no longer
78159         needed now that we're assuming C89 or better.
78160
78161         Merge error changes from glibc.
78162
78163         * lib/error.c, error.h: Update copyright notice header to match glibc.
78164         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78165         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78166         Disable cancellation while printing error.
78167         * lib/error.h: Prepend __ to parameter names.
78168
78169 2003-09-26  Jim Meyering  <jim@meyering.net>
78170
78171         * lib/error.c (error_tail): Move some declarations
78172         into inner scope where the local variables are used.
78173
78174 2003-09-26  Bruno Haible  <bruno@clisp.org>
78175
78176         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78177         stpncpy().
78178         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78179
78180 2003-09-26  Bruno Haible  <bruno@clisp.org>
78181
78182         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78183         (stpncpy): Define as alias for gnu_stpncpy.
78184         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78185
78186 2003-09-25  Simon Josefsson  <jas@extundo.com>
78187
78188         * lib/xgetdomainname.h: New file.
78189         * lib/xgetdomainname.c: New file.
78190
78191 2003-09-25  Simon Josefsson  <jas@extundo.com>
78192             Bruno Haible  <bruno@clisp.org>
78193
78194         * modules/getdomainname: New file.
78195         * modules/xgetdomainname: New file.
78196         * MODULES.html.sh (func_all_modules): Add getdomainname,
78197         xgetdomainname.
78198
78199 2003-09-25  Simon Josefsson  <jas@extundo.com>
78200             Bruno Haible  <bruno@clisp.org>
78201
78202         * m4/getdomainname.m4: New file.
78203
78204 2003-09-25  Simon Josefsson  <jas@extundo.com>
78205             Bruno Haible  <bruno@clisp.org>
78206
78207         * lib/getdomainname.h: New file.
78208         * lib/getdomainname.c: New file.
78209
78210 2003-09-25  Karl Berry  <karl@gnu.org>
78211
78212         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78213
78214 2003-09-25  Karl Berry  <karl@gnu.org>
78215
78216         * config/install-sh: update from automake.
78217
78218 2003-09-25  Bruno Haible  <bruno@clisp.org>
78219
78220         * modules/version-etc-2: New file, from modules/version-etc with
78221         modifications.
78222         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78223
78224 2003-09-25  Bruno Haible  <bruno@clisp.org>
78225
78226         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78227         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78228
78229 2003-09-24  Simon Josefsson  <jas@extundo.com>
78230
78231         * modules/xgethostname: Add xgethostname.h.
78232
78233 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78234
78235         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78236         the buffer associated with the argument.  Bug reported by
78237         Simon Josefsson.
78238
78239 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78240
78241         * README: Document assumptions that 'int' is at least 32 bits
78242         wide, that integer arithmetic is 2's complement without overflow,
78243         that there are no holes in integer values, that adding sizes of
78244         two nonoverlapping objects can't overflow, and that all-bits-zero
78245         yields scalar zero.  Fix spelling and capitalization typos.
78246
78247 2003-09-19  Karl Berry  <karl@gnu.org>
78248
78249         * lib/argp.h: update from libc.
78250
78251 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78252
78253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78254         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78255         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78256
78257 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78258
78259         * gnulib-tool: Use "test -h", not "test -L", for portability
78260         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78261         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78262         (sed_extract_prog): Issue s commands one-by-one, rather than
78263         using \| in one s command.
78264
78265 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78266
78267         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78268         input error, instead of returning NULL the next time we are called
78269         (and therefore losing track of errno).
78270
78271 2003-09-16  Bruno Haible  <bruno@clisp.org>
78272
78273         * gnulib-tool (func_create_testdir): Warn about duplicated
78274         dependencies.
78275
78276 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78277
78278         * modules/argmatch, modules/fatal, modules/obstack,
78279         modules/xalloc, modules/xgethostname: Sort dependencies by
78280         importance, not alphabetically.
78281
78282 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78283
78284         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78285         fails, so that the caller gets the proper errno.
78286
78287         * lib/readutmp.c (read_utmp): Likewise.
78288         Check for fstat error.  Close stream and free storage
78289         when failing.
78290
78291 2003-09-14  Karl Berry  <karl@gnu.org>
78292
78293         * config/srclist.txt (strdup.c): disable for c89 changes.
78294
78295 2003-09-14  Jim Meyering  <jim@meyering.net>
78296
78297         * lib/getloadavg.c: Correct cpp indentation.
78298         * lib/strdup.c: Likewise.
78299         * lib/vasnprintf.c: Likewise.
78300
78301 2003-09-14  Bruno Haible  <bruno@clisp.org>
78302
78303         * modules/fwriteerror: New file.
78304         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78305
78306 2003-09-14  Bruno Haible  <bruno@clisp.org>
78307
78308         * lib/fwriteerror.h: New file.
78309         * lib/fwriteerror.c: New file.
78310
78311 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78312
78313         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78314         modules/xgethostname, modules/xalloc: Depend on exit.
78315
78316 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78317
78318         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78319
78320         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78321         and AC_MINIX, too, so that their extensions are available.
78322
78323         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78324         This macro has been superseded by gl_BACKUPFILE.
78325
78326         More patches to assume C89 or better.
78327
78328         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78329
78330         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78331         unconditionally.
78332         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78333         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78334         Include <string.h>, <stdlib.h> unconditionally.
78335         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78336         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78337         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78338         headers or for string.h.
78339         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78340         or strtoul.
78341
78342         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78343         headers.
78344         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78345         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78346         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78347         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78348         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78349         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78350         memcpy, memset.
78351         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78352         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78353         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78354         strtol.
78355         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78356         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78357         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78358         strtoul.
78359
78360 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78361
78362         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78363         * lib/obstack.c [!defined _LIBC]: Likewise.
78364         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78365         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78366         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78367
78368         More changes to assume C89 or better.
78369
78370         * lib/error.c (error_tail): Assume vprintf.
78371
78372         * lib/argmatch.c (getenv): Remove decl.
78373         * lib/progreloc.c (get_full_program_name): Define via prototype.
78374         * lib/setenv.c (clearenv): Likewise.
78375         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78376         needed.
78377         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78378         (malloc, memcpy): Remove decls.
78379         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78380         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78381         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78382         (memcpy): Remove macro.
78383         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78384         (__P): Remove.  All uses removed.
78385         (PTR): Remove.  All uses changed to void *.
78386         (CHAR_BIT, NULL): Remove.
78387         (spaces, zeros, memset_space, memset_zero)
78388         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78389         Remove.
78390         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78391         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78392         Define with prototype.
78393         Remove now-unnecessary prototype decl.
78394         (extra_args_spec): Assume ANSI C.  All uses changed.
78395         (extra_args_spec_iso): Remove.
78396         (my_strftime, emacs_strftimeu): Define via prototype.
78397         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78398         unconditionally.
78399         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78400         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78401         (strtoul, strtol): Remove decls.
78402         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78403         LONG_MAX): Remove.
78404         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78405         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78406         (LOCALE_PARAM_PROTO): New macro.
78407         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78408         (INTERNAL (strtol), strtol): Define with a prototype.
78409         (PARAMS): Remove.  All uses removed.
78410         * lib/tempname.c: Include <string.h> unconditionally.
78411         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78412         * lib/xgethostname.c (main): Define with a prototype.
78413         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78414         Include <stdlib.h> unconditionally.
78415         (calloc, malloc, realloc, free): Remove decls.
78416         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78417         Include <stdlib.h> unconditionally.  Sort include file names.
78418         (strtod): Remove.
78419         (xstrtod): Define with a prototype.
78420         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78421         (strtol, strtoul): Remove decls.
78422
78423 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78424
78425         More patches to assume C89 or better.
78426         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78427         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78428         string.h, memchr, STDC_HEADERS.
78429
78430 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78431
78432         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78433         Include <stdlib.h>, <string.h> unconditionally.
78434         Remove now-unnecessary cast to char *.
78435         * lib/strnlen.c: Include <string.h> unconditionally.
78436         * lib/yesno.c (yesno): Define with a prototype.
78437
78438 2003-09-11  Bruno Haible  <bruno@clisp.org>
78439
78440         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78441
78442 2003-09-10  Jim Meyering  <jim@meyering.net>
78443
78444         * lib/error.c: Correct indentation of cpp directives.
78445
78446 2003-09-10  Bruno Haible  <bruno@clisp.org>
78447
78448         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78449         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78450         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78451         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78452         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78453         <stdlib.h> and <string.h> checks.
78454         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78455         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78456
78457 2003-09-10  Bruno Haible  <bruno@clisp.org>
78458
78459         * lib/strcspn.c: Include <string.h> unconditionally.
78460         * lib/strpbrk.c: Include <string.h> unconditionally.
78461         * lib/strstr.c: Include <string.h> unconditionally.
78462         * lib/unicodeio.c: Include <string.h> unconditionally.
78463         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78464         * lib/unsetenv.c: Likewise.
78465         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78466         * lib/yesno.c: Include <stdlib.h> unconditionally.
78467         (rpmatch): Add prototype.
78468
78469 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78470
78471         More patches to assume C89 or better.
78472         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78473         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78474         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78475         or for string.h.
78476         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78477         stdlib.h.
78478         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78479         C headers.
78480         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78481         string.h.
78482         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78483         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78484         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78485         or for string.h.
78486         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78487         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78488         C headers.
78489         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78490         memcpy.
78491         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78492         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78493         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78494         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78495         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78496         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78497         string.h, free.
78498         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78499         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78500         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78501         C headers, or for string.h.
78502         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78503         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78504         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78505         headers, memory.h, stdlib.h, string.h, strings.h.
78506         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78507         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78508         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78509         strchr.
78510         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78511         headers, memory.h, string.h.
78512         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78513         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78514         free.
78515         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78516         headers.
78517         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78518         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78519         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78520         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78521         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78522
78523 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78524
78525         More K&R removal.
78526
78527         * lib/acosl.c (main): Use a prototype.
78528         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78529         tanl.c: Likewise.
78530
78531         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78532
78533         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78534         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78535         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78536         with a prototype.
78537         * lib/getopt.c (const): Remove macro.
78538         Include <string.h> unconditionally.
78539         (my_index): Remove; all uses changed to strchr.
78540         (strlen): Remove decl.
78541         (exchange): Remove forward decl; no longer needed.
78542         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78543         Define with prototype.
78544         * lib/getopt1.c (const): Remove macro.
78545         (getopt_long, getopt_long_only, main): Define with prototype.
78546
78547         * lib/getugroups.c: Include <string.h> unconditionally.
78548
78549         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78550         (getusershell, setusershell, endusershell, readname, main):
78551         Define with prototypes.
78552
78553         * lib/group-member.c: Include group-member.h first.
78554         Include <stdlib.h> unconditionally.
78555
78556         * lib/hard-locale.c: Include hard-locale.h first.
78557         Include <stdlib.h>, <string.h> unconditionally.
78558
78559         * lib/hash.c (free, malloc): Remove decls.
78560         Include <stdlib.h> unconditionally.
78561
78562         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78563         (getenv): Do not declare.
78564
78565         * lib/idcache.c: Include <string.h> unconditionally.
78566
78567         * lib/long-options.c: Include long-options.h first, to test interface.
78568         Include <stdlib.h> unconditionally.
78569
78570         * lib/makepath.c: Include makepath.h first, to test interface.
78571         Include <stdlib.h> and <string.h> unconditionally.
78572
78573         * lib/linebuffer.c: Include <stdlib.h>.
78574         (free): Remove decl.
78575
78576         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78577         stddef.h. rpl_malloc returns void *, not char *.
78578         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78579         prototype.
78580
78581         * lib/md5.h: Include <limits.h> unconditionally.
78582         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78583         (__P): Remove; all uses removed.
78584         * lib/md5.c: Include "md5.h" first.
78585         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78586         md5_buffer, md5_process_bytes, md5_process_block):
78587         Define with prototypes.
78588         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78589         * lib/sha.c: Include "sha.h" first.
78590         Include <stdlib.h>, <string.h> unconditionally.
78591
78592         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78593         * lib/memcmp.c (__ptr_t): Likewise.
78594         * lib/memrchr.c (__ptr_t): Likewise.
78595         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78596         Include <string.h> unconditionally.
78597         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78598         * lib/memchr.c: Include <stdlib.h> unconditionally.
78599         * lib/memchr.c (LONG_MAX): Remove.
78600         * lib/memrchr.c (LONG_MAX): Likewise.
78601         * lib/memchr.c (__memchr): Define via a prototype.
78602         * lib/memrchr.c (__memrchr): Likewise.
78603         * lib/memcmp.c (__P): Remove, and remove all uses.
78604         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78605         Remove forward decls; no longer needed.
78606         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78607         Use types required by C89 in prototype.
78608
78609         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78610         * lib/savedir.c: Likewise.
78611         * lib/mkdir.c (free): Remove decl.
78612         * lib/rmdir.c (rmdir): Define with a prototype.
78613         * lib/savedir.c: Include savedir.h first, to test interface.
78614
78615         * lib/mktime.c (STDC_HEADERS): Remove.
78616         Include <stdlib.h>, <string.h> unconditionally.
78617
78618         * lib/modechange.c: Include <stdlib.h> unconditionally.
78619         (malloc): Remove decl.
78620
78621         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78622         (free): Remove decl.
78623
78624         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78625         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78626         (This type really should be intptr_t, but that's a C99ism.)
78627         (_obstack_memcpy): Remove: all uses changed to memcpy.
78628         Include <string.h> unconditionally.
78629         (struct obstack): Assume __STDC__ for types of members
78630         chunkfun, freefun, extra_arg.
78631         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78632         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78633         obstack_begin, obstack_specify_allocation,
78634         obstack_specify_allocation_with_arg, obstack_chunkfun,
78635         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78636         Remove unprototyped decls and the macros that use them.
78637         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78638         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78639         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78640         (defined __STDC__ && __STDC__)]:
78641         Remove nonprototyped code.
78642         Include <stdlib.h> unconditionally.
78643         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78644         _obstack_allocated_p, _obstack_free, obstack_free,
78645         _obstack_memory_used, print_and_abort):
78646         Define using prototypes.
78647         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78648         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78649         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78650         obstack_next_free, obstack_object_size, obstack_room) [0]:
78651         Remove unused, unprototyped code.
78652
78653         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78654
78655         * lib/physmem.c (physmem_total, physmem_available, main): Define
78656         with prototypes.
78657
78658         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78659         (main): Define with a prototype.
78660
78661         * lib/posixver.c (getenv): Remove decl.
78662
78663         * lib/putenv.c (malloc): Returns void *, not char *.
78664         Include <string.h> unconditionally.
78665         (strchr, memcpy, NULL): Do not define.
78666
78667         * lib/readtokens.c: Include readtokens.h first, to test interface.
78668         Include <stdlib.h>, <string.h> unconditionally.
78669         (init_tokenbuffer): Define with a prototype.
78670
78671         * lib/regex.c (PARAMS): Remove.  All uses removed.
78672         All uses of _RE_ARGS removed, too.
78673         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78674         unconditionally.
78675         (bzero): Assume memset exists.
78676         (memcmp, memcpy, NULL): Remove.
78677         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78678         char, or assignments to local vars of type signed char.
78679         (init_syntax_once, PREFIX(extract_number_and_incr),
78680         PREFIX(print_partial_compiled_pattern),
78681         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78682         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78683         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78684         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78685         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78686         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78687         wcs_compile_range, byte_compile_range, truncate_wchar,
78688         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78689         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78690         count_mbs_length, wcs_re_match_2_internal,
78691         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78692         PREFIX(alt_match_null_string_p),
78693         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78694         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78695         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78696         now-unnecessary declaration, if any.
78697         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78698         regcomp, regexec):
78699         Remove now-unnecessary casts among pointer types.
78700         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78701
78702         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78703         (free): Remove decl.
78704
78705         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78706
78707         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78708         (free): Remove decl.
78709
78710         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78711         * lib/xgetcwd.c: Likewise.
78712
78713         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78714         (free): Remove decl.
78715
78716         * lib/strchrnul.c (strchrnul): Define with a prototype.
78717         Fix bug: c_in was not converted to char before searching.
78718
78719         The following changes are not K&R related:
78720
78721         * lib/group-member.h: Include <sys/types.h>, so that this file is
78722         self-contained.
78723         * lib/makepath.h: Likewise.
78724
78725         * lib/getusershell.c (readname, default_index, line_size, readname):
78726         Use size_t, not int, for sizes.
78727         (readname): If the size overflows, report an error instead of
78728         looping forever.
78729
78730 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78731
78732         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78733         libc.
78734
78735 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78736
78737         * README: New section: portability guidelines.
78738
78739 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78740
78741         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78742         C89 spec.
78743
78744 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78745
78746         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78747
78748 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78749
78750         Assume C89 or better; remove K&R cruft.
78751         A few of these changes were first proposed by Derek Robert Price
78752         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78753
78754         * lib/addext.c: Include <string.h> unconditionally.
78755         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78756         Don't declare getenv or malloc.
78757
78758         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78759         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78760         (NULL): Remove.
78761         (find_stack_direction, alloca): Use prototypes.
78762
78763         * lib/atexit.c (atexit): Define using a prototype.
78764
78765         * lib/basename.c, dirname.c, stripslash.c:
78766         Include <string.h> unconditionally.
78767
78768         * lib/bcopy.c: Include <stddef.h>.
78769         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78770
78771         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78772
78773         * lib/error.h (error, error_at_line, error_print_progname)
78774         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78775         * lib/error.c: Include error.h first, to check interface.
78776         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78777         (VA_START): Remove; all uses changeed to va_start.
78778         (exit, strerror): Remove decls.
78779         (error_print_progname): Prototype uncondionally.
78780         Don't include <errno.h>; no longer needed.
78781         (private_strerror): Remove.
78782         (error_tail): Always define.
78783         (error, error_at_line): Assume C89 or better; always use prototypes.
78784         * lib/fatal.c: Include "fatal.h" first, to test interface.
78785         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78786         (VA_START): Remove; all uses changed to va_start.
78787         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78788         this case.
78789         (exit): Remove decl.
78790         (fatal): Prototype unconditionally.  Assume va_start works.
78791         Abort at end, to pacify gcc.
78792
78793         * lib/euidaccess.c (main): Define with a prototype.
78794
78795         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78796
78797         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78798
78799         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78800         prototypes.
78801         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78802         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78803         (getenv): Remove decl.
78804         (fnmatch): Define using a prototype.
78805         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78806         (FCT): Define using a prototype.
78807
78808         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78809
78810         * lib/gethostname.c: Include <stddef.h>.
78811         (gethostname): Define with prototype.  Length is size_t, not int.
78812
78813 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78814
78815         Assume C89 or better; remove K&R cruft.
78816         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78817         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78818         string.h, getenv, malloc.
78819         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78820         headers.
78821         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78822         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78823         do not check for strerror.
78824         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78825         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78826         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78827         do not check for doprnt or vprintf.
78828         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78829         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78830
78831 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78832
78833         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78834         getversion.c should have been removed then, but was accidentally
78835         preserved.
78836
78837         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78838         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78839
78840 2003-09-08  Karl Berry  <karl@gnu.org>
78841
78842         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78843                 config, forget about prep.
78844
78845         * config/depcomp, missing: update from automake.
78846
78847 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78848
78849         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78850         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78851
78852 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78853
78854         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78855         copy_tm_result.  Bug reported by Simon Josefsson in
78856         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78857
78858 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78859
78860         * m4/time_r.m4: New file.
78861         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78862         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78863         is. Check for timegm declaration.
78864         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78865         Do not check for gmtime_r.
78866         Replace mktime if __mktime_internal does not exist and if mktime
78867         hasn't been replaced already.
78868
78869 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78870
78871         * lib/time_r.c, lib/time_r.h: New files.
78872
78873         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78874         __localtime_r.
78875         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78876         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78877
78878         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78879         __gmtime_r.
78880         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78881         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78882         Include <time_r.h>.
78883
78884         * lib/timegm.c: Switch to glibc implementation, with the following
78885         changes:
78886         [defined HAVE_CONFIG_H]: Include <config.h>.
78887         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78888         (__mktime_internal) [!defined _LIBC]: New decl.
78889         (__gmtime_r) [!defined _LIBC]: New macro and function.
78890         (timegm): Use a prototype, since gnulib assumes C89.
78891         Do not bother declaring tmp to be const, as it's not really usefu.
78892         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78893         (timegm): Declare only if HAVE_DECL_TIMEGM.
78894
78895 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78896
78897         * MODULES.html.sh (func_all_modules): Add time_r.
78898         * modules/time_r: New file.
78899         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78900         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78901
78902 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78903
78904         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78905         Bug reported by Lute Kamstra in
78906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78907
78908         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78909         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78910         course with correspondingly smaller numbers for tomorrow and
78911         yesterday.  From Tadayoshi Funaba.  Originally installed into
78912         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78913         coreutils merge?).
78914
78915 2003-08-31  Simon Josefsson  <jas@extundo.com>
78916
78917         * modules/timegm: New file.
78918         * MODULES.html.sh (func_all_modules): Add timegm.
78919
78920 2003-08-31  Simon Josefsson  <jas@extundo.com>
78921
78922         * m4/timegm.m4: New file.
78923
78924 2003-08-31  Simon Josefsson  <jas@extundo.com>
78925
78926         * lib/timegm.h: New file.
78927         * lib/timegm.c: New file.  Based on
78928         wget-1.8.2/src/http.c:mktime_from_utc.
78929
78930 2003-08-31  Karl Berry  <karl@gnu.org>
78931
78932         * lib/argp.h: update from libc.
78933
78934 2003-08-28  Bruno Haible  <bruno@clisp.org>
78935
78936         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78937         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78938         followed by '#define fnmatch fnmatch_posix' gives an error.
78939
78940 2003-08-28  Bruno Haible  <bruno@clisp.org>
78941
78942         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78943         warning on QNX, which defines O_BINARY to 000000.
78944
78945 2003-08-27  Jim Meyering  <jim@meyering.net>
78946
78947         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78948         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78949         would fail after 32.  Reported by Danny Levinson.  Details here:
78950         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78951
78952 2003-08-24  Bruno Haible  <bruno@clisp.org>
78953
78954         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78955         MSVC7 <stdio.h> is included later.
78956
78957 2003-08-22  Simon Josefsson  <jas@extundo.com>
78958
78959         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78960
78961 2003-08-20  Karl Berry  <karl@gnu.org>
78962
78963         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78964
78965 2003-08-20  Bruno Haible  <bruno@clisp.org>
78966
78967         * modules/progname: New file.
78968         * MODULES.html.sh (func_all_modules): Add progname.
78969
78970 2003-08-20  Bruno Haible  <bruno@clisp.org>
78971
78972         * lib/progname.h: New file, from GNU gettext.
78973         * lib/progname.c: New file, from GNU gettext.
78974         * lib/progreloc.c: New file, from GNU gettext.
78975
78976 2003-08-19  Jim Meyering  <jim@meyering.net>
78977
78978         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78979         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78980
78981 2003-08-19  Bruno Haible  <bruno@clisp.org>
78982
78983         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78984         more.
78985
78986 2003-08-19  Bruno Haible  <bruno@clisp.org>
78987
78988         * lib/xstrdup.c: Assume <string.h> exists.
78989
78990 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78991
78992         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78993         in makefile rules.
78994
78995 2003-08-18  Jim Meyering  <jim@meyering.net>
78996
78997         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78998         * m4/lib-ld.m4: Likewise.
78999
79000 2003-08-18  Jim Meyering  <jim@meyering.net>
79001
79002         * lib/setenv.h: Indent nested cpp directive.
79003         * lib/vasnprintf.c: Remove trailing blanks.
79004
79005 2003-08-17  Simon Josefsson  <jas@extundo.com>
79006
79007         * modules/xstrndup: New file.
79008         * MODULES.html.sh (func_all_modules): Add xstrndup.
79009
79010 2003-08-17  Simon Josefsson  <jas@extundo.com>
79011
79012         * modules/argp: Fix autoconf macro name. Add more dependencies.
79013
79014 2003-08-17  Simon Josefsson  <jas@extundo.com>
79015
79016         * m4/xstrndup.m4: New file.
79017
79018 2003-08-17  Simon Josefsson  <jas@extundo.com>
79019
79020         * m4/argp.m4: New file.
79021
79022 2003-08-17  Simon Josefsson  <jas@extundo.com>
79023             Bruno Haible  <bruno@clisp.org>
79024
79025         * lib/xstrndup.h: New file.
79026         * lib/xstrndup.c: New file.
79027
79028 2003-08-17  Bruno Haible  <bruno@clisp.org>
79029
79030         * modules/strndup (Files, Include): Add lib/strndup.h.
79031
79032 2003-08-17  Bruno Haible  <bruno@clisp.org>
79033
79034         * modules/euidaccess (Files): Add lib/euidaccess.h.
79035
79036 2003-08-17  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/strndup.h: New file.
79039
79040 2003-08-17  Bruno Haible  <bruno@clisp.org>
79041
79042         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79043         like AC_GNU_SOURCE.
79044         * modules/extensions (configure.ac): Comment out the invocation of
79045         gl_USE_SYSTEM_EXTENSIONS.
79046
79047 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79048
79049         Merges from coreutils, etc.
79050         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79051         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79052         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79053         fixing a typo.
79054         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79055         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79056
79057 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79058
79059         Document merge from coreutils.
79060         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79061         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79062         * modules/utime: Add m4/utimes-null.m4.
79063
79064 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79065
79066         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79067         space, undoing this 2003-08-12 change:
79068         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79069
79070 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79071
79072         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79073         strtoul.c from libc, undoing this 2003-08-12 change:
79074         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79075
79076 2003-08-16  Jim Meyering  <jim@meyering.net>
79077
79078         Merges from coreutils.
79079         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79080         prefix.  Adjust cache variables similarly.  Create 500 rather than
79081         just 300 files, to exercise bug on Darwin6.5, too.
79082         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79083         $missing_dir.
79084         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79085         AM_SYS_POSIX_TERMIOS.
79086         Reported by mkc@mathdogs.com.
79087         Also change use of $am_cv_sys_posix_termios
79088         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79089         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79090         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79091         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79092         in /proc/mounts until it finds one with matching device number.  This
79093         is unnecessary when the FILE argument *is* a mount point.  No stat call
79094         is necessary in that case.  So, disable the statvfs-testing code on
79095         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79096         as RedHat bug# 84846.
79097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79098         to 1MB, so as not to render systems with no stack size limit (e.g.,
79099         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79100         Include <unistd.h>.  On some systems,
79101         it is required for the definition of _SC_PAGESIZE.
79102
79103 2003-08-16  Jim Meyering  <jim@meyering.net>
79104
79105         Merge from coreutils.
79106         * lib/xstrtoimax.c: #else #if -> #elif.
79107         * lib/xstrtoumax.c: Likewise.
79108
79109 2003-08-16  Jim Meyering  <jim@meyering.net>
79110
79111         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79112         * m4/utimes.m4: Removed.
79113         * m4/utimes-null.m4: Renamed from utimes.m4.
79114
79115         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79116         to 1MB, so as not to render systems with no stack size limit (e.g.,
79117         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79118         Include <unistd.h>.  On some systems,
79119         it is required for the definition of _SC_PAGESIZE.
79120
79121 2003-08-16  Jim Meyering  <jim@meyering.net>
79122         and Paul Eggert  <eggert@cs.ucla.edu>
79123
79124         Merges from coreutils, etc.
79125
79126         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79127         using the latest version from cvs.  This avoids problems with #line
79128         directives using a vendor (Sun) compiler.
79129         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79130         Don't set GETGROUPS_LIB here; now it's
79131         done via getgroups.m4's wrapper function.
79132         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79133         rather than just in sh-util/configure.in, so that the
79134         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79135         same.
79136         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79137         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79138         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79139         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79140         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79141         Remove code that is now done by the newly-required macros.
79142         Append $(EXEEXT) to DF_PROG.
79143         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79144         Do not invoke or require the following here,
79145         since prereq.m4 or some gnulib .m4 now does this for us:
79146         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79147         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79148         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79149         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79150         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79151         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79152         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79153         AC_FUNC_OBSTACK.
79154         Do not replace the following functions, as this is now the job
79155         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79156         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79157         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79158         atexit getpass, strdup, getpagesize.
79159         Replace 'raise'.
79160         Do not check for the following functions, as this is now the job
79161         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79162         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79163         setregid.
79164         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79165         Check for sys/sysctl.h.
79166         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79167         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79168         of checking for ssize_t ourselves.
79169
79170         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79171         Require every macro that gnulib/modules/* suggests for us.
79172         (jm_PREREQ_ADDEXT): New macro.
79173         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79174         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79175
79176         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79177         (gl_PHYSMEM): Use it.
79178         Also check for `table' function.
79179         Check for new headers and functions.
79180         Add check for sys/sysmp.h.
79181         With suggestions from Kaveh Ghazi.
79182         Ignore headers that are present but cannot be compiled.  This
79183         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79184         C 5.4.
79185
79186 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79187
79188         Document merge from coreutils.
79189         * modules/userspec: Depend on posixver.
79190         * modules/strftime: Depend on tzset.
79191
79192 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79193
79194         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79195         rather than tab, after '#' in shell-script copyright notices.
79196         Suggested by Bruno Haible.
79197
79198 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79199
79200         * config/srclist-update: Use three spaces, rather than tab, after '#'
79201         in shell-script copyright notices.  Suggested by Bruno Haible.
79202         Remove unnecessary parenthesization in regular expression.
79203
79204 2003-08-15  Jim Meyering  <jim@meyering.net>
79205
79206         Merge from coreutils.
79207         * lib/xgethostname.c: Include <stdlib.h>.
79208         (xghostname): Don't exit for anything other than memory-related
79209         failure; just return NULL.
79210         * lib/userspec.c: Include "posixver.h".
79211         (parse_user_spec): Accept `.' as a separator only
79212         in pre-POSIX-200112 mode.
79213         * lib/strtoimax.c: Use #elif rather than #else #if.
79214         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79215         Remove function, now that we can rely on a working tzset function.
79216         [!_LIBC]: Ensure that the required autoconf test has been run.
79217         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79218         Use underlying_strftime for %r.
79219         * lib/sha.c: Merge in some clean-up and optimization changes from
79220         glibc.
79221         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79222         Ensure that it is a multiple of 64.
79223         Rearrange loop exit tests so as to avoid performing an
79224         additional fread after encountering an error or EOF.
79225         * lib/realloc.c: Update copyright date.
79226
79227 2003-08-15  Jim Meyering  <jim@meyering.net>
79228         and Paul Eggert  <eggert@twinsun.com>
79229
79230         Merge from coreutils.
79231         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79232         member but strut utmpx does not.  Needed for AIX 4.3.3.
79233         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79234
79235 2003-08-15  Jim Meyering  <jim@meyering.net>
79236         and Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         Merges from coreutils, etc.
79239         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79240         Require gl_FUNC_TZSET_CLOBBER.
79241         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79242         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79243         members.
79244
79245 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79246
79247         Help the merge from coreutils.
79248         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79249         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79250         * m4/tzset.m4: Use it too.
79251
79252 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79253
79254         * modules/tzset: New file.
79255
79256 2003-08-14  Jim Meyering  <jim@meyering.net>
79257
79258         Merges from coreutils.
79259         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79260         variable names, rather than @FNMATCH_H@.
79261         * modules/alloca: Likewise for $(ALLOCA_H).
79262
79263         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79264         the three copies of the literal target, `fnmatch.h'.
79265         * modules/alloca (alloca.h): Likewise.
79266
79267 2003-08-14  Jim Meyering  <jim@meyering.net>
79268
79269         Merge from coreutils.
79270         * m4/tzset.m4: New file.
79271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79272         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79273         otherwise, AIX 5.1 systems would end up using the latter.
79274         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79275         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79276         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79277         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79278
79279 2003-08-14  Jim Meyering  <jim@meyering.net>
79280
79281         Merge from coreutils.
79282         * lib/obstack.h: Whitespace changes.
79283         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79284         and xcalloc return values.
79285         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79286         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79287         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79288         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79289         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79290         error from mntctl.
79291         Use mntctl's return value to drive the entry-processing loop, since
79292         we can't rely on the value of the vmt_length member in the last
79293         entry.  On some systems doing so could result in exhausting
79294         virtual memory.  Based in part on a patch from Mike Jetzer.
79295
79296 2003-08-14  Jim Meyering  <jim@meyering.net>
79297         and Paul Eggert  <eggert@twinsun.com>
79298
79299         Merges from coreutils, plus other fixes.
79300         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79301         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79302         for credits and details.  Thanks to Kaveh Ghazi for helping
79303         to keep these files in sync.
79304         (ARRAY_SIZE): Define it.
79305         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79306         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79307         (memcasecmp): Don't assume size_t fits in unsigned int.
79308         Remove casts and duplicate code.
79309         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79310         (memcpy): Remove definition.
79311         Merge in some clean-up and optimization changes from glibc.
79312         [BLOCKSIZE]: Move definition to top of file.
79313         Ensure that it is a multiple of 64.
79314         Rearrange loop exit tests so as to avoid performing an
79315         additional fread after encountering an error or EOF.
79316         * lib/md5.h (md5_uintptr): Define.
79317         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79318         return to the initial working directory.  Preserve errno
79319         for caller.
79320         * lib/idcache.c: Include "xalloc.h".
79321         (xmalloc, xrealloc): Remove decls.
79322         (getuser): Remove casts no longer required in C89.
79323         * lib/human.c: Include stdio.h, for sprintf.
79324         * lib/group-member.c: Include "xalloc.h".
79325         (xmalloc, xrealloc): Remove decls.
79326         (get_group_info): Remove casts no longer required in C89.
79327         * lib/getusershell.c (readname): Remove casts no longer required in
79328         C89.
79329         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79330         * lib/getline.c: Whitespace fix, from coreutils.
79331
79332 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79333
79334         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79335         Check for isascii.
79336
79337         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79338         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79339         Undo previous (whitespace-only) change.
79340
79341 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79342
79343         * lib/exclude.c: Include <ctype.h>
79344         (IN_CTYPE_DOMAIN): New macro.
79345         (is_space): New fn.
79346         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79347         and empty lines.
79348
79349         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79350         Undo previous (whitespace-only) change.
79351
79352 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79353
79354         * config/srclist-update: Change update back to the old behavior,
79355         leaving whitespace alone.  Use one 'sed' command rather than a
79356         pipeline.
79357         (fixlicense): Now a variable, not a function.
79358         (remove_trailing_blanks): Remove.
79359         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79360         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79361         Undo previous (whitespace-only) change.
79362
79363 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79364
79365         Merge from coreutils.
79366         * modules/euidaccess: Add lib_SOURCES, include for new
79367         file euidaccess.h
79368
79369 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79370
79371         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79372         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79373         Normalize leading white space and remove trailing white space.
79374
79375         Merge from coreutils
79376         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79377
79378         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79379         0.12.1.  These files are now being upgraded automatically by
79380         ../config/srclist-update.
79381
79382 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79383
79384         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79385         Normalize leading white space and remove trailing white space.
79386         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79387         notice, as per ../config/srclist-update.
79388
79389         Merge from coreutils.
79390         * lib/euidaccess.h: New file.
79391         * lib/euidaccess.c: Include it.
79392         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79393         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79394         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79395
79396 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79397
79398         * config/srclist-update: Add copyright notice.
79399         (remove_id_lines, remove_trailing_blanks): New constants.
79400         (fixfile): Use them to normalize spacing a bit in copied files.
79401         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79402         Normalize leading white space and remove trailing white space.
79403
79404         * config/texinfo.tex: Sync with texinfo.
79405
79406         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79407         strtoul.c from libc, to merge coreutils whitespace changes.
79408
79409         * config/srclist.txt: Get the following m4 files from gettext:
79410         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79411         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79412         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79413         wint_t.m4.
79414
79415 2003-08-12  Karl Berry  <karl@gnu.org>
79416
79417         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79418         been made.
79419
79420 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79421
79422         * modules/gnu-source, m4/gnu-source.m4:
79423         Remove; we're assuming Autoconf 2.54 or later now.
79424         Suggested by Bruno Haible.
79425         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79426
79427 2003-08-11  Bruno Haible  <bruno@clisp.org>
79428
79429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79430
79431 2003-08-11  Bruno Haible  <bruno@clisp.org>
79432
79433         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79434         (vasnprintf): Use it instead of wcslen.
79435
79436 2003-08-11  Bruno Haible  <bruno@clisp.org>
79437
79438         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79439         value to ensure that _Bool promotes to int. Use #define for _Bool when
79440         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79441
79442 2003-08-10  Karl Berry  <karl@gnu.org>
79443
79444         * lib/regex.h: update from libc (whitespace fix).
79445
79446 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79447
79448         Merge some files from coreutils.  These changes were
79449         originally made by Jim Meyering.
79450         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79451         many older Unixes require this.
79452         * lib/alloca.c (alloca): Remove cast to argument of free;
79453         no longer needed in C89.
79454         * lib/alloca_.h, regex.h: Fix white space to match
79455         what GNU indent does.
79456
79457 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79458
79459         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79460         apparently Emacs's Unicode mode got confused before my 2003-08-05
79461         checkin.
79462
79463 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79464
79465         * m4/extensions.m4: New file.
79466         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79467         Require gl_USE_SYSTEM_EXTENSIONS.
79468         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79469         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79470
79471 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79472
79473         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79474         * modules/extensions, modules/gnu-source: New files.
79475         * modules/timespec, modules/unlocked-io: Depend on extensions.
79476
79477 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79478
79479         * modules/restrict: New file.
79480         * MODULES.html.sh (func_all_modules): Add restrict.
79481         * modules/regex: Depend on restrict.
79482
79483 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79484
79485         * m4/restrict.m4: New file.
79486         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79487
79488 2003-08-07  Bruno Haible  <bruno@clisp.org>
79489
79490         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79491         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79492
79493 2003-08-07  Bruno Haible  <bruno@clisp.org>
79494
79495         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79496         makes the module 'getndelim2' compatible with the module 'getline'.
79497
79498 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79499
79500         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79501         byte with "\201" to avoid glitches when editing that source file
79502         with multi-gnome-terminal.
79503
79504 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79505
79506         * lib/bumpalloc.h: Remove.
79507
79508 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79509
79510         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79511         * modules/bumpalloc: Remove.
79512
79513 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79514
79515         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79516         GNU coding style.
79517
79518         Merge from coreutils.
79519         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79520         1. From glibc.
79521         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79522         from Karl Berry, implemented by Jim Meyering.
79523         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79524         from Dmitry V. Levin.
79525         Remove anachronistic cast of xrealloc.
79526         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79527         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79528         type. Otherwise, it wouldn't compile with at least /bin/cc on
79529         ymp-cray-unicos9.0.2.X.
79530         Combine two mostly-identical uses of alloca into one.
79531         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79532
79533 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79534
79535         [From Emacs.]
79536
79537         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79538         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79539         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79540         obsolete NLIST_NAME_UNION.
79541         [__GNU__]: Undef BSD and FSCALE.
79542         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79543
79544 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79545
79546         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79547         an enum type, so that it's guaranteed to promote to int.  See:
79548         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79549
79550 2003-08-03  Karl Berry  <karl@gnu.org>
79551
79552         * config/depcomp: update from automake.
79553
79554 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79555
79556         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79557         (strerror): Don't assume that a printable int fits in 14 bytes.
79558
79559 2003-07-31  Bruno Haible  <bruno@clisp.org>
79560
79561         * modules/getpass-gnu: New file.
79562         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79563
79564 2003-07-31  Bruno Haible  <bruno@clisp.org>
79565
79566         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79567
79568 2003-07-24  Karl Berry  <karl@gnu.org>
79569
79570         * config/missing: update from automake.
79571
79572 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79573             Bruno Haible  <bruno@clisp.org>
79574
79575         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79576         * lib/getline.c (getline, getdelim): Likewise.
79577         Remove _GNU_SOURCE define; now it's defined in config.h through
79578         m4/getline.m4.
79579
79580 2003-07-23  Karl Berry  <karl@gnu.org>
79581
79582         * config/config.sub: update from prep.
79583
79584 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79585
79586         * modules/xalloc (Depends-on): Add exitfail.
79587         * modules/xmemcoll: Likewise.
79588
79589 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79590
79591         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79592         over-parenthesization in macros.
79593
79594         Sync with coreutils.
79595
79596         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79597         required by C99.
79598
79599         Use `exit_failure' for xalloc and xmemcoll instead of their own
79600         private exit-failure variables.
79601         * lib/xalloc.h (xalloc_exit_failure): Remove.
79602         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79603         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79604         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79605         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79606         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79607
79608 2003-07-20  Jim Meyering  <jim@meyering.net>
79609
79610         * modules/closeout (Depends-on): Add exitfail.
79611         Suggestion from Bruno Haible.
79612
79613 2003-07-19  Karl Berry  <karl@gnu.org>
79614
79615         * config/config.sub: update from prep.
79616
79617 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79618
79619         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79620         Remove.
79621         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79622         to test that it can stand by itself.  Include "exitfail.h".
79623         Clients should set exit_failure instead.
79624         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79625
79626 2003-07-18  Bruno Haible  <bruno@clisp.org>
79627
79628         * modules/getndelim2: New file.
79629         * modules/getline: Share files with module getndelim2.
79630         * modules/getnline: Depend on getndelim2 instead of sharing files with
79631         it. Add getnline.c to lib_SOURCES.
79632         * MODULES.html.sh (func_all_modules): Add getndelim2.
79633
79634 2003-07-18  Bruno Haible  <bruno@clisp.org>
79635
79636         * m4/getndelim2.m4: New file.
79637         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79638         invoke gl_PREREQ_GETNDELIM2.
79639         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79640         gl_PREREQ_GETNDELIM2.
79641         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79642         gl_GETNDELIM2.
79643
79644 2003-07-18  Bruno Haible  <bruno@clisp.org>
79645
79646         * lib/getndelim2.h: New file.
79647         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79648         getndelim2.h.
79649         (getndelim2): Make non-static. Change return type to ssize_t.
79650         * lib/getline.h: Change argument names.
79651         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79652         * lib/getnline.c: Include getndelim2.h.
79653
79654 2003-07-18  Andreas Schwab  <schwab@suse.de>
79655
79656         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79657
79658 2003-07-17  Karl Berry  <karl@gnu.org>
79659
79660         * config/config.sub: update from prep.
79661
79662 2003-07-17  Bruno Haible  <bruno@clisp.org>
79663
79664         * modules/getnline: New file.
79665         * modules/getline: Add lib/getndelim2.c to source file list.
79666         * MODULES.html.sh (func_all_modules): Add getnline.
79667
79668 2003-07-17  Bruno Haible  <bruno@clisp.org>
79669
79670         * m4/getnline.m4: New file.
79671
79672 2003-07-17  Bruno Haible  <bruno@clisp.org>
79673
79674         * m4/Makefile.am.in: Remove file.
79675         * m4/Makefile.am: Remove file.
79676         * m4/Makefile.in: Remove file.
79677
79678 2003-07-17  Bruno Haible  <bruno@clisp.org>
79679
79680         * lib/getnline.h: New file.
79681         * lib/getnline.c: New file.
79682         * lib/getndelim2.c: New file, extracted from getline.c.
79683         (getndelim2): Renamed from getdelim2, with added nmax argument.
79684         * lib/getline.c: Include getndelim2.c.
79685         (getdelim2): Moved out to getndelim2.c.
79686         (getline, getdelim): Update.
79687
79688 2003-07-17  Bruno Haible  <bruno@clisp.org>
79689
79690         * lib/Makefile.am: Remove file.
79691         * lib/Makefile.in: Remove file.
79692
79693 2003-07-17  Bruno Haible  <bruno@clisp.org>
79694
79695         * configure.in: Remove file.
79696         * Makefile.in: Remove file.
79697
79698 2003-07-17  Bruno Haible  <bruno@clisp.org>
79699
79700         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79701
79702 2003-07-16  Karl Berry  <karl@gnu.org>
79703
79704         * config/srclist-update: was running fixlicense twice, which caused
79705                 texinfo.tex to be nullified for some reason.  Simplify,
79706                 $gplsrc is no longer needed as far as I can see?
79707
79708 2003-07-16  Jim Meyering  <jim@meyering.net>
79709
79710         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79711
79712 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79713
79714         * config/srclist.txt: Get the following files from gettext-runtime/intl
79715         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79716         ref-del.sin.  From Bruno Haible.
79717         * config/srclist-update (fixfile): Change grep pattern again, since the
79718         previous fix didn't work (there was another trailing $).  Use
79719         '[$]' to escape the $s.
79720
79721 2003-07-15  Karl Berry  <karl@gnu.org>
79722
79723         * lib/vasnprintf.c: update from gettext.
79724
79725 2003-07-15  Karl Berry  <karl@gnu.org>
79726
79727         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79728         gets expanded when surrounded by '$'.
79729
79730 2003-07-15  Jim Meyering  <jim@meyering.net>
79731
79732         * modules/save-cwd: Don't depend on error.  From Derek Price.
79733
79734 2003-07-15  Jim Meyering  <jim@meyering.net>
79735
79736         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79737
79738 2003-07-14  Simon Josefsson  <jas@extundo.com>
79739
79740         * modules/mempcpy: New file.
79741         * MODULES.html.sh (func_all_modules): Add mempcpy.
79742
79743 2003-07-14  Simon Josefsson  <jas@extundo.com>
79744
79745         * m4/mempcpy.m4: New file.
79746
79747 2003-07-14  Simon Josefsson  <jas@extundo.com>
79748
79749         * lib/mempcpy.h: New file.
79750         * lib/mempcpy.c: New file.
79751
79752 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79753
79754         * modules/getdate, modules/posixtm: Depend on mktime.
79755
79756 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79757
79758         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79759         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79760         unicodeio.c, unicodeio.h, unlocked-io.h:
79761         Switch from LGPL to GPL.
79762
79763 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79764
79765         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79766         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79767         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79768         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79769         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79770         updated automatically by ../config/srclist-update.  This changes
79771         their license from LPGL to GPL.
79772
79773 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79774
79775         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79776         assumed to refer to the root of the most recent stable gettext version.
79777         * config/srclistvars.sh: Add defaults for eggert.
79778         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79779         Match "This program" as well as "The program".  This is needed
79780         for gettext.
79781
79782 2003-07-14  Jim Meyering  <jim@meyering.net>
79783
79784         Don't emit diagnostics.  Let callers do that.
79785         * lib/save-cwd.c: Don't include "error.h".
79786         (save_cwd): Don't call error.  Ensure that errno is valid
79787         when returning nonzero.
79788
79789         * lib/save-cwd.h (restore_cwd): Update prototype.
79790         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79791         Simplify.  Don't call error upon failure.  Let callers do that.
79792         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79793         when auditing is enabled.  But don't bother updating the #if.
79794
79795 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79796
79797         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79798         it breaks C++ compilation.
79799         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79800
79801 2003-07-10  Simon Josefsson  <jas@extundo.com>
79802
79803         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79804
79805 2003-07-10  Jim Meyering  <jim@meyering.net>
79806
79807         * m4/clock_time.m4: Remove trailing blank.
79808         * m4/intmax_t.m4: Likewise.
79809
79810 2003-07-10  Jim Meyering  <jim@meyering.net>
79811
79812         * lib/vasnprintf.c: Remove trailing blanks.
79813         Make cpp indentation consistent.
79814
79815 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79816
79817         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79818         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79819         Switch from LGPL to GPL.
79820
79821 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79822
79823         * config/srclist.txt: Sort sublists.  Add
79824         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79825         that differ from gnulib for one reason or another; we'd like this list
79826         to be smaller but for now let's document what we have.
79827
79828 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79829
79830         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79831         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79832         and sweeter "eval x=$x".
79833         * config/srclist.txt: Get lib/argp* from glibc.
79834
79835 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79836
79837         * lib/mktime.c: Fix some boundary cases and remove need for floating
79838         point.
79839
79840         Issue a compile-time diagnostic if time_t is floating point, or if
79841         two's complement arithmetic is not in effect, or if arithmetic
79842         right shift does not propagate the sign.  These assumptions were
79843         all in the original code but they weren't checked.
79844
79845         (TIME_T_MIDPOINT, verify): New macros.
79846         (__isleap): Remove; it has integer overflow problems.
79847         (leapyear): New function, without those problems.
79848         (ydhms_tm_diff): Remove; splitting into two parts.
79849         (ydhms_diff): New function, containing the arithmetic part of
79850         the old ydhms_tm_diff function.  Issue a compile-time
79851         diagnostic if we are not using C99 integer division.
79852         Avoid casts when possible.
79853         (guess_time_tm): New function, containing the checking part of
79854         the old ydhms_tm_diff function.  Return the new value, rather than
79855         the difference between it and the old.  Accept a new argument T
79856         so that *T specifies the old value.  Check for overflow in the result.
79857
79858         (__mktime_internal): Use a time_t offset, not a long int offset.
79859         This undoes the 2003-06-04 change, which is no longer needed now
79860         that we have better overflow checking.
79861         (localtime_offset): Likewise.
79862
79863         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79864         and long are 64-bit but int is only 32-bit.
79865         (ydhms_diff): Use long int to store year1 and yday1.
79866         Issue a compile-time diagnostic if long int is not wide enough.
79867
79868         (__mktime_internal): Use long int to store adjusted year and yday.
79869         Use plain C rather than preprocessor commands, if that doesn't
79870         affect efficiency.
79871         Check for overflow (and try to repair) after each probe
79872         rather than checking only at the very end.  This avoids some bugs
79873         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79874         does not equal GMT offset at maximum time).
79875         Use integer to check for overflow rather than floating point; this
79876         is more portable to non-IEEE hosts, and is a tad faster.
79877         When we detect that we are oscillating between two values,
79878         don't check whether tm_isdst has the requested value, since
79879         we already know the answer.  When tm_isdst has the wrong value,
79880         use a different heuristic to find the right one, based on the
79881         extreme values actually observed in practice in tz2003a,
79882         rather than the (overly optimistic) "previous 3 calendar quarters".
79883
79884         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79885         "T const" to accommodate glibc style.
79886         (check_result): Use less-confusing report format.  "long" -> "long int.
79887         (main): Likewise.
79888         Don't loop if the iteration overflows time_t.
79889         Allow a negative step in the iteration.
79890
79891 2003-07-06  Karl Berry  <karl@gnu.org>
79892
79893         * config/depcomp: update from automake.
79894         * config/config.sub: update from prep.
79895
79896 2003-07-03  Karl Berry  <karl@gnu.org>
79897
79898         * config/config.guess: update from prep.
79899
79900 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79901
79902         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79903         xreadlink.c now includes it unconditionally.
79904
79905 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79906
79907         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79908         having it depend on HAVE_SYS_TYPES_H.
79909
79910 2003-07-01  Bruno Haible  <bruno@clisp.org>
79911
79912         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79913         <sys/types.h> should be sufficient.
79914         Reported by Paul Eggert.
79915
79916 2003-06-26  Karl Berry  <karl@gnu.org>
79917
79918         * config/depcomp: update from automake.
79919
79920 2003-06-26  Bruno Haible  <bruno@clisp.org>
79921
79922         * modules/human: Depend on module stdbool.
79923
79924 2003-06-25  Bruno Haible  <bruno@clisp.org>
79925
79926         * modules/readlink: New file.
79927         * modules/xreadlink: Depend on it.
79928         * MODULES.html.sh (func_all_modules): Add readlink.
79929
79930 2003-06-25  Bruno Haible  <bruno@clisp.org>
79931
79932         * m4/readlink.m4: New file.
79933
79934 2003-06-25  Bruno Haible  <bruno@clisp.org>
79935
79936         * lib/readlink.c: New file.
79937
79938 2003-06-22  Karl Berry  <karl@gnu.org>
79939
79940         * config/srclist.txt: update mkinstalldirs from automake.
79941         * config/mkinstalldirs: update.
79942
79943 2003-06-22  Bruno Haible  <bruno@clisp.org>
79944
79945         Portability to mingw32.
79946         * m4/ssize_t.m4: New file, from GNU gettext.
79947         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79948         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79949
79950 2003-06-22  Bruno Haible  <bruno@clisp.org>
79951
79952         * modules/safe-read: Add m4/ssize_t.m4.
79953         * modules/xreadlink: Add m4/ssize_t.m4.
79954
79955 2003-06-20  Bruno Haible  <bruno@clisp.org>
79956
79957         Assume C89, so PARAMS isn't needed.
79958         * lib/unicodeio.h (PARAMS): Remove.
79959         * lib/unicodeio.c: Don't use PARAMS.
79960
79961 2003-06-18  Karl Berry  <karl@gnu.org>
79962
79963         * config/config.{guess,sub}: update from prep.
79964
79965 2003-06-18  Jim Meyering  <jim@meyering.net>
79966
79967         Merge changes from coreutils.
79968         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79969         Remove explicit declarations of xmalloc and realloc.
79970         Include xalloc.h.
79971         (read_utmp): Remove anachronistic cast of xmalloc.
79972
79973 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79974
79975         Assume C89, so PARAMS isn't needed.
79976         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79977         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79978         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79979         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79980         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79981         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79982         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79983         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79984         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79985         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79986         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79987         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79988         no longer needed. Anyway, config.h should always be included before any
79989         other file.
79990
79991 2003-06-11  Simon Josefsson  <jas@extundo.com>
79992
79993         * modules/sysexits: New file.
79994         * MODULES.html.sh (func_all_modules): Add sysexits.
79995
79996 2003-06-11  Simon Josefsson  <jas@extundo.com>
79997
79998         * lib/sysexit_.h: New file.
79999
80000 2003-06-11  Derek Price  <derek@ximbiot.com>
80001
80002         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80003         necessary.
80004
80005 2003-06-11  Bruno Haible  <bruno@clisp.org>
80006
80007         * m4/sysexits.m4: New file.
80008
80009 2003-06-10  Simon Josefsson  <jas@extundo.com>
80010
80011         * lib/argp.h: New file, from glibc.
80012         * lib/argp-ba.c: New file, from glibc.
80013         * lib/argp-eexst.c: New file, from glibc.
80014         * lib/argp-fmtstream.c: New file, from glibc.
80015         * lib/argp-fmtstream.h: New file, from glibc.
80016         * lib/argp-fs-xinl.c: New file, from glibc.
80017         * lib/argp-help.c: New file, from glibc.
80018         * lib/argp-namefrob.h: New file, from glibc.
80019         * lib/argp-parse.c: New file, from glibc.
80020         * lib/argp-pv.c: New file, from glibc.
80021         * lib/argp-pvh.c: New file, from glibc.
80022         * lib/argp-xinl.c: New file, from glibc.
80023
80024 2003-06-10  Simon Josefsson  <jas@extundo.com>
80025
80026         * modules/strchrnul: New file.
80027
80028 2003-06-10  Simon Josefsson  <jas@extundo.com>
80029
80030         * modules/argp: New file.
80031
80032 2003-06-10  Simon Josefsson  <jas@extundo.com>
80033
80034         * m4/strchrnul.m4: New file.
80035
80036 2003-06-10  Simon Josefsson  <jas@extundo.com>
80037
80038         * lib/strchrnul.h: New file.
80039         * lib/strchrnul.c: New file.
80040
80041 2003-06-10  Bruno Haible  <bruno@clisp.org>
80042
80043         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80044
80045 2003-06-07  Karl Berry  <karl@gnu.org>
80046
80047         * config/config.{guess,sub}: update from prep.
80048
80049 2003-06-07  Jim Meyering  <jim@meyering.net>
80050
80051         * modules/strtod: Use $(...) notation, not @...@ for
80052         AC_REPLACE'd variables.
80053         * modules/localcharset: Likewise.
80054
80055 2003-06-07  Jim Meyering  <jim@meyering.net>
80056
80057         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80058         in place of my name in the copyright comment.
80059         Remove definition and uses of __P.
80060
80061         From coreutils.
80062         * lib/stat.c: Don't declare xmalloc explicitly.
80063         Instead, include "xalloc.h".
80064         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80065         xrealloc, and xcalloc return values.
80066         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80067         Improve comment.
80068         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80069
80070 2003-06-07  Bruno Haible  <bruno@clisp.org>
80071
80072         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80073         avoid AC_CONFIG_LINKS.
80074         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80075         fnmatch.h, to avoid AC_CONFIG_LINKS.
80076         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80077
80078 2003-06-07  Bruno Haible  <bruno@clisp.org>
80079
80080         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80081         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80082         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80083         directory.
80084         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80085         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80086         directory.
80087
80088 2003-06-06  Jim Meyering  <jim@meyering.net>
80089
80090         Merge from coreutils.
80091         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80092         Consolidate declarations and initializations of *_base* locals.
80093
80094         Merge from coreutils.
80095         This avoids a core dump on systems without GNU putenv,
80096         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80097         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80098         (unsetenv): New static function, from GNU libc.
80099         (rpl_putenv): Use it.
80100
80101         * lib/modechange.c: Remove trailing blanks.
80102
80103         Merge from coreutils.
80104         * lib/fsusage.c: Remove declaration of statfs.
80105         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80106
80107         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80108
80109 2003-06-06  Jim Meyering  <jim@meyering.net>
80110
80111         * lib/stdbool_.h: Renamed from stdbool.h.in.
80112
80113 2003-06-06  Jim Meyering  <jim@meyering.net>
80114             Bruno Haible  <bruno@clisp.org>
80115
80116         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80117         Adjust Makefile.am snippet not to redirect directly to target.
80118         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80119
80120 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80121
80122         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80123         mismatch, look in future quarters as well as past.  This fixes a
80124         bug when processing fall-backwards gaps immediately after a long
80125         period of daylight-saving time.
80126
80127         * lib/mktime.c: Assume freestanding C89 or better.
80128         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80129         (__P): Remove; not used.
80130         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80131         (mktime, not_equal_tm, print_tm, check_result,
80132         main): Use prototypes.  Use const * where appropriate.
80133         (main): Fix typo in testing code that uncovered by above changes.
80134         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80135
80136 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80137
80138         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80139         locale.h, localeconv.  This merges changes from coreutils.
80140
80141         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80142         It can be removed after the next Autoconf is released.
80143         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80144         needed.
80145
80146 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80147
80148         * lib/mktime.c: Fix Debian bug 177940
80149         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80150         (localtime_offset): Now long int, not time_t, because we want it
80151         to be guaranteed to be signed.  All uses changed.
80152         (__mktime_internal): If overflow would occur when adding offset,
80153         don't add it.
80154
80155         Merge 'human' changes from coreutils.  Rewrite to support
80156         locale-specific notations like thousands separators.
80157         * lib/human.c: Simplify authorship notice.
80158         Include human.h immediately after config.h.
80159         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80160         <limits.h>: Do not include, since human.h does.
80161         (SIZE_MAX, UINTMAX_MAX): New macros.
80162         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80163         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80164         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80165         (power_letter): Renamed from suffixes.
80166         (generate_suffix_backwards): Remove.
80167         (adjust_value): Now takes int style (because of human.h changes)
80168         and long double value (for greater precision on some platforms).
80169         (group_number): New function.
80170         (human_readable): Use it.  Use integer options, not enum.
80171         Put the options before the sizes in the arg list.
80172         Support all the new options.
80173         The old human_readable function has been removed;
80174         use inttostr.h instead.
80175         (human_readable, default_block_size, humblock):
80176         Use uintmax_t, not int, for block sizes.
80177         (human_readable_inexact, block_size_types): Remove.
80178         (block_size_opts): New constant.
80179         (human_options): Renamed from human_block_size, with new signature
80180         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80181         * lib/human.h: Add copyright and authorship notice.
80182         Include <limits.h> and <stdbool.h> unconditionally.
80183         (PARAMS): Remove.  All uses removed.
80184         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80185         (enum human_inexact_style): Remove tag; now a nameless enum.
80186         (human_floor, human_ceiling, human_round_to_even): Now have
80187         values 2, 0, 1 rather than -1, 1, 0.
80188         (human_group_digits, human_suppress_point_zero, human_autoscale,
80189         human_base_1024, human_SI, human_B): New constants.
80190         (human_readable_inexact, human_block_size): Remove.
80191         (human_readable): Size args are now uintmax_t, not int.
80192         (human_options): New decl.
80193
80194         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80195         unnecessary now that we assume C89 or better.  This change
80196         imported from coreutils.
80197
80198         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80199         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80200         in the 2003-05-30 sync from glibc.
80201
80202         .h files should stand alone, but we shouldn't include <sys/types.h>
80203         if we can get away with just <stddef.h>.
80204
80205         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80206         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80207         rather than <sys/types.h>, as we merely need size_t.
80208         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80209         to get size_t.
80210         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80211         Include <stdio.h>, to get FILE.
80212         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80213         memcasecmp.h has included <stddef.h> and all we need is size_t.
80214         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80215         our interface, instead of including <sys/types.h>
80216
80217 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80218
80219         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80220         now, as glibc mktime is buggy on non-glibc systems.
80221
80222 2003-06-03  Karl Berry  <karl@gnu.org>
80223
80224         * config/config.sub: update from prep.
80225
80226 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80227
80228         [from coreutils]
80229         Fix some minor time-related bugs with POSIX time arguments.
80230         Some valid time stamps were being rejected (notably -1, and
80231         time stamps before 1900 on 64-bit hosts).  And some invalid
80232         time stamps were being accepted, e.g. September 31.
80233
80234         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80235         that we can return (time_t) -1 successfully.
80236         * lib/posixtm.c: Likewise.
80237         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80238         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80239         (t): Remove static var.
80240         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80241         of static var.  All uses changed.
80242         (year): Do not reject years before 1900; they can occur with
80243         64-bit time_t.
80244         (posix_time_parse): Do not check for out-of-range components;
80245         that is now the caller's responsibility, since our checks were
80246         only approximations.
80247         (posixtime): Use mktime to check for out-of-range components,
80248         since it knows them exactly.
80249         If mktime returns (time_t) -1, check whether an error actually occurred
80250         by invoking localtime on -1.
80251         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80252         posixtime failures better.
80253         Improve the test data (in comments only).
80254
80255 2003-06-02  Karl Berry  <karl@gnu.org>
80256
80257         * config/mkinstalldirs (version): new variable.
80258         (--version): new option.
80259         (usage): improve message.
80260
80261 2003-05-30  Karl Berry  <karl@gnu.org>
80262
80263         * lib/mktime.c: update from libc.
80264
80265 2003-05-30  Bruno Haible  <bruno@clisp.org>
80266
80267         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80268         * config/config.rpath: Upgrade to gettext-0.12.1.
80269
80270 2003-05-30  Bruno Haible  <bruno@clisp.org>
80271
80272         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80273         * m4/nls.m4: New file, from gettext-0.12.1.
80274         * m4/po.m4: New file, from gettext-0.12.1.
80275         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80276
80277 2003-05-30  Bruno Haible  <bruno@clisp.org>
80278
80279         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80280         * lib/localcharset.h: Likewise.
80281         * lib/localcharset.c: Likewise.
80282
80283 2003-05-29  Karl Berry  <karl@gnu.org>
80284
80285         * config/config.rpath: update from gettext.
80286
80287 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80288
80289         Assume the headers required for C89 freestanding compilers.
80290         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80291         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80292         * m4/human.m4 (gl_HUMAN): Likewise.
80293         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80294         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80295         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80296         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80297         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80298         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80299
80300 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80301
80302         Assume the headers required for C89 freestanding compilers.
80303         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80304         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80305         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80306         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80307         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80308         define, since <limits.h> is guaranteed to do that.
80309         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80310         * lib/exclude.c: Include <stdbool.h> unconditionally.
80311         * lib/tempname.c: Include <stddef.h> unconditionally.
80312         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80313         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80314         <stddef.h> does that.
80315         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80316         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80317         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80318         needed.
80319         * lib/xstrtol.c: Likewise.
80320         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80321         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80322
80323         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80324         warnings on some platforms.
80325
80326         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80327         arbitrarily.
80328
80329 2003-05-26  Jim Meyering  <jim@meyering.net>
80330
80331         Merge in a change from coreutils:
80332         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80333         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80334         that condition, rather than `-1' which is slightly misleading.
80335         Change the name of the cache variable to have the gl_ prefix.
80336         Prompted by a patch from Richard Dawe for DJGPP.
80337
80338 2003-05-24  Karl Berry  <karl@gnu.org>
80339
80340         * config/config.guess: update from prep.
80341
80342 2003-05-22  Karl Berry  <karl@gnu.org>
80343
80344         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80345
80346 2003-05-20  Karl Berry  <karl@gnu.org>
80347
80348         * config/config.guess: update from prep.
80349
80350 2003-05-18  Karl Berry  <karl@gnu.org>
80351
80352         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80353         might actually be set by the user.
80354
80355         * config/depcomp, install-sh, mdate-sh: update from automake.
80356
80357 2003-05-17  Bruno Haible  <bruno@clisp.org>
80358
80359         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80360         invalid expansion for AC_EGREP_CPP.
80361         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80362         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80363         Suggested by Akim Demaille <akim@epita.fr> in
80364         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80365
80366 2003-05-12  Jim Meyering  <jim@meyering.net>
80367
80368         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80369         the space-padded-by-default conversion specifiers, %e, %k, %l.
80370
80371 2003-05-12  Bruno Haible  <bruno@clisp.org>
80372
80373         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80374         the string is longer than 4 KB.
80375
80376 2003-05-11  Karl Berry  <karl@gnu.org>
80377
80378         * config/config.{guess,sub}: update from prep.
80379
80380 2003-05-09  Bruno Haible  <bruno@clisp.org>
80381
80382         * modules/error: Add m4/strerror_r.m4 to file list.
80383
80384 2003-05-03  Bruno Haible  <bruno@clisp.org>
80385
80386         Upgrade to Unicode-4.0.
80387         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80388         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80389         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80390         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80391         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80392         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80393         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80394         Change width of U+E0100..U+E01EF from 1 to 0.
80395
80396 2003-04-25  Jim Meyering  <jim@meyering.net>
80397
80398         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80399         of type size_t, not int.
80400
80401 2003-04-25  Bruno Haible  <bruno@clisp.org>
80402
80403         * lib/copy-file.c: Include <stddef.h>, for size_t.
80404
80405 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80406
80407         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80408         code which expansion is under static control.  Patch imported from
80409         Akim Demaille's patch to Bison; see
80410         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80411
80412 2003-04-14  Bruno Haible  <bruno@clisp.org>
80413
80414         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80415
80416 2003-04-11  Jim Meyering  <jim@meyering.net>
80417
80418         Merge changes from Coreutils.
80419
80420         2003-03-22  Jim Meyering  <jim@meyering.net>
80421
80422         * lib/strftime.c (widen): Cast alloca return value to proper type.
80423
80424         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80425
80426         From GNU libc.
80427         * lib/strftime.c (my_strftime): Handle very large width
80428         specifications for numeric values correctly.  Improve checks for
80429         overflow.
80430
80431         2003-01-19  Jim Meyering  <jim@meyering.net>
80432
80433         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80434         definitions.
80435         (nl_get_alt_digit) [! defined my_strftime]: Define.
80436         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80437         _nl_get_alt_digit and _nl_get_walt_digit.
80438
80439         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80440         libc. These changes have no effect outside of _LIBC.
80441
80442 2003-04-10  Bruno Haible  <bruno@clisp.org>
80443
80444         * modules/findprog: New file.
80445         * MODULES.html.sh (func_all_modules): Add it.
80446
80447 2003-04-10  Bruno Haible  <bruno@clisp.org>
80448
80449         * m4/findprog.m4: New file.
80450         * m4/eaccess.m4: New file.
80451
80452 2003-04-10  Bruno Haible  <bruno@clisp.org>
80453
80454         * lib/findprog.h: New file, from GNU gettext.
80455         * lib/findprog.c: New file, from GNU gettext.
80456
80457 2003-04-05  Jim Meyering  <jim@meyering.net>
80458
80459         Merge changes from Coreutils.
80460
80461         * lib/exclude.h (PARAMS): Remove definition and uses.
80462         * lib/exclude.c: Remove uses of `PARAMS'.
80463
80464         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80465         Add test-cases for DOS filenames. Declare program_name.
80466         (main): Set up program_name.  Patch by Rich Dawe.
80467
80468         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80469         error from mntctl.
80470         Use mntctl's return value to drive the entry-processing loop, since
80471         we can't rely on the value of the vmt_length member in the last
80472         entry.  On some systems doing so could result in exhausting
80473         virtual memory.  Based in part on a patch from Mike Jetzer.
80474
80475 2003-04-04  Bruno Haible  <bruno@clisp.org>
80476
80477         * modules/linebreak: New file.
80478         * MODULES.html.sh (func_all_modules): Add it.
80479
80480 2003-04-04  Bruno Haible  <bruno@clisp.org>
80481
80482         * m4/linebreak.m4: New file.
80483
80484 2003-04-04  Bruno Haible  <bruno@clisp.org>
80485
80486         * lib/linebreak.h: New file, from GNU gettext.
80487         * lib/linebreak.c: New file, from GNU gettext with slight
80488         modifications.
80489         * lib/lbrkprop.h: New file, from GNU gettext.
80490
80491 2003-04-03  Bruno Haible  <bruno@clisp.org>
80492
80493         * modules/utf8-ucs4: New file.
80494         * modules/utf16-ucs4: New file.
80495         * modules/ucs4-utf8: New file.
80496         * modules/ucs4-utf16: New file.
80497         * MODULES.html.sh (func_all_modules): Add them.
80498
80499 2003-04-03  Bruno Haible  <bruno@clisp.org>
80500
80501         * m4/utf-ucs4.m4: New file.
80502         * m4/ucs4-utf.m4: New file.
80503
80504 2003-04-03  Bruno Haible  <bruno@clisp.org>
80505
80506         * lib/utf8-ucs4.h: New file, from GNU gettext.
80507         * lib/utf16-ucs4.h: New file, from GNU gettext.
80508         * lib/ucs4-utf8.h: New file, from GNU gettext.
80509         * lib/ucs4-utf16.h: New file, from GNU gettext.
80510
80511 2003-04-02  Bruno Haible  <bruno@clisp.org>
80512
80513         * modules/binary-io: New file.
80514         * MODULES.html.sh (func_all_modules): Add it.
80515
80516 2003-04-02  Bruno Haible  <bruno@clisp.org>
80517
80518         * lib/binary-io.h: New file, from GNU gettext.
80519
80520 2003-04-01  Bruno Haible  <bruno@clisp.org>
80521
80522         * modules/pathname: New file.
80523         * MODULES.html.sh (func_all_modules): Add it.
80524
80525 2003-04-01  Bruno Haible  <bruno@clisp.org>
80526
80527         * lib/pathname.h: New file, from GNU gettext.
80528         * lib/concatpath.c: New file, from GNU gettext.
80529
80530 2003-03-30  Bruno Haible  <bruno@clisp.org>
80531
80532         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80533
80534 2003-03-30  Bruno Haible  <bruno@clisp.org>
80535
80536         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80537         function chown() doesn't exist.
80538
80539 2003-03-28  Bruno Haible  <bruno@clisp.org>
80540
80541         * modules/copy-file: New file.
80542         * MODULES.html.sh (func_all_modules): Add it.
80543
80544 2003-03-28  Bruno Haible  <bruno@clisp.org>
80545
80546         * m4/copy-file.m4: New file.
80547
80548 2003-03-28  Bruno Haible  <bruno@clisp.org>
80549
80550         * lib/copy-file.h: New file, from GNU gettext.
80551         * lib/copy-file.c: New file, from GNU gettext.
80552
80553 2003-03-18  Jim Meyering  <jim@meyering.net>
80554
80555         * lib/quote.c (quote_n): Fix typo in comment.
80556
80557 2003-03-18  Bruno Haible  <bruno@clisp.org>
80558
80559         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80560         checking.
80561         * m4/onceonly_2_57.m4: Likewise.
80562
80563 2003-03-17  Bruno Haible  <bruno@clisp.org>
80564
80565         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80566         (m4_quote): Remove macro.
80567         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80568
80569 2003-03-14  Jim Meyering  <jim@meyering.net>
80570
80571         Merge changes from Coreutils.
80572         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80573         to be const, in order to avoid warnings.
80574         (obstack_room): Likewise.
80575         (obstack_empty_p): Likewise.
80576
80577 2003-03-14  Bruno Haible  <bruno@clisp.org>
80578
80579         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80580         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80581
80582 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80583
80584         Merge changes from Bison.
80585         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80586         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80587         when compiling Bison 1.875's `bitset bset = obstack_alloc
80588         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80589         * lib/hash.c: Include <stdbool.h> unconditionally.
80590
80591 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80592
80593         * m4/onceonly.m4 (m4_quote): New macro.
80594         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80595         Quote AC_FOREACH variable-expansions properly.
80596
80597 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80598
80599         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80600
80601 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80602
80603         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80604         Reported by Bruce Becker; see:
80605         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80606
80607 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80608             Bruno Haible  <bruno@clisp.org>
80609
80610         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80611         Reported by John Hughes, see
80612         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80613
80614 2003-02-20  Bruno Haible  <bruno@clisp.org>
80615
80616         * MODULES.html.sh (func_all_modules): Add poll.
80617
80618 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80619
80620         * modules/poll: New file.
80621
80622 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80623
80624         * lib/poll_.h: New file.
80625         * lib/poll.c: New file.
80626
80627 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80628
80629         * m4/poll.m4: New file.
80630
80631 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80632
80633         * modules/mathl: New file.
80634
80635 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80636
80637         * lib/mathl.h: New file.
80638         * lib/acosl.c: New file.
80639         * lib/asinl.c: New file.
80640         * lib/atanl.c: New file.
80641         * lib/ceill.c: New file.
80642         * lib/cosl.c: New file.
80643         * lib/expl.c: New file.
80644         * lib/floorl.c: New file.
80645         * lib/frexpl.c: New file.
80646         * lib/ldexpl.c: New file.
80647         * lib/logl.c: New file.
80648         * lib/sincosl.c: New file.
80649         * lib/sinl.c: New file.
80650         * lib/sqrtl.c: New file.
80651         * lib/tanl.c: New file.
80652         * lib/trigl.c: New file.
80653         * lib/trigl.h: New file.
80654
80655 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80656
80657         * m4/mathl.m4: New file.
80658
80659 2003-02-18  Bruno Haible  <bruno@clisp.org>
80660
80661         * MODULES.html.sh (func_all_modules): Add mathl.
80662
80663 2003-02-17  Bruno Haible  <bruno@clisp.org>
80664
80665         * modules/mkdtemp: New module.
80666         * MODULES.html.sh (func_all_modules): Add it.
80667
80668 2003-02-17  Bruno Haible  <bruno@clisp.org>
80669
80670         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80671
80672 2003-02-17  Bruno Haible  <bruno@clisp.org>
80673
80674         * lib/mkdtemp.h: New file, from GNU gettext.
80675         * lib/mkdtemp.c: New file, from GNU gettext.
80676
80677 2003-02-02  Jim Meyering  <jim@meyering.net>
80678
80679         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80680         e.g. glibc-2.2.93.
80681
80682 2003-01-31  Bruno Haible  <bruno@clisp.org>
80683
80684         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80685         'rpl_rename'.
80686         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80687         'rpl_strnlen'.
80688         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80689         'rpl_strtod'.
80690         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80691         'rpl_utime'.
80692
80693 2003-01-31  Bruno Haible  <bruno@clisp.org>
80694
80695         * lib/rename.c: #undef rename before defining rpl_rename.
80696         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80697
80698 2003-01-30  Bruno Haible  <bruno@clisp.org>
80699
80700         * modules/vasnprintf, modules/vasprintf: New modules.
80701         * MODULES.html.sh (func_all_modules): Add them.
80702
80703 2003-01-30  Bruno Haible  <bruno@clisp.org>
80704
80705         * m4/signed.m4: New file, from GNU gettext.
80706         * m4/longdouble.m4: New file, from GNU gettext.
80707         * m4/wchar_t.m4: New file, from GNU gettext.
80708         * m4/wint_t.m4: New file, from GNU gettext.
80709         * m4/vasnprintf.m4: New file.
80710         * m4/vasprintf.m4: New file.
80711
80712 2003-01-30  Bruno Haible  <bruno@clisp.org>
80713
80714         * lib/printf-args.h: New file, from GNU gettext.
80715         * lib/printf-args.c: New file, from GNU gettext.
80716         * lib/printf-parse.h: New file, from GNU gettext.
80717         * lib/printf-parse.c: New file, from GNU gettext.
80718         * lib/vasnprintf.h: New file, from GNU gettext.
80719         * lib/vasnprintf.c: New file, from GNU gettext.
80720         * lib/asnprintf.c: New file, from GNU gettext.
80721         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80722         * lib/vasprintf.c: New file, from GNU gettext.
80723         * lib/asprintf.c: New file, from GNU gettext.
80724
80725 2003-01-29  Bruno Haible  <bruno@clisp.org>
80726
80727         * modules/stpncpy: New module.
80728         * MODULES.html.sh (func_all_modules): Add it.
80729
80730 2003-01-29  Bruno Haible  <bruno@clisp.org>
80731
80732         * m4/stpncpy.m4: New file.
80733
80734 2003-01-29  Bruno Haible  <bruno@clisp.org>
80735
80736         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80737         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80738
80739 2003-01-28  Bruno Haible  <bruno@clisp.org>
80740
80741         * modules/c-ctype: New module.
80742         * MODULES.html.sh (func_all_modules): Add it.
80743
80744 2003-01-28  Bruno Haible  <bruno@clisp.org>
80745
80746         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80747         Paul Eggert.
80748         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80749         Paul Eggert.
80750
80751 2003-01-27  Bruno Haible  <bruno@clisp.org>
80752
80753         * modules/xsetenv: New module.
80754         * MODULES.html.sh (func_all_modules): Add it.
80755
80756 2003-01-27  Bruno Haible  <bruno@clisp.org>
80757
80758         * lib/xsetenv.h: New file, from GNU gettext.
80759         * lib/xsetenv.c: New file, from GNU gettext.
80760
80761 2003-01-23  Jim Meyering  <jim@meyering.net>
80762
80763         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80764         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80765
80766 2003-01-23  Bruno Haible  <bruno@clisp.org>
80767
80768         * modules/minmax: New module.
80769         * MODULES.html.sh (func_all_modules): Add it.
80770
80771 2003-01-23  Bruno Haible  <bruno@clisp.org>
80772
80773         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80774         Eggert.
80775
80776 2003-01-22  Bruno Haible  <bruno@clisp.org>
80777
80778         * modules/exit: New module.
80779         * MODULES.html.sh (func_all_modules): Add it.
80780
80781 2003-01-22  Bruno Haible  <bruno@clisp.org>
80782
80783         * lib/exit.h: New file, from GNU gettext.
80784
80785 2003-01-19  Bruno Haible  <bruno@clisp.org>
80786
80787         * gnulib-tool: Recognize option --extract-maintainer.
80788         (func_get_maintainer): New function.
80789         * modules/*: Add Maintainer entry.
80790
80791 2003-01-16  Jim Meyering  <jim@meyering.net>
80792
80793         * m4/regex.m4: The `regex' struct is both input and output.
80794         Initialize it before each use.  Patch by Tim Waugh.
80795
80796 2003-01-16  Bruno Haible  <bruno@clisp.org>
80797
80798         * MODULES.html.sh: Add a table of contents. Add the module name as
80799         leftmost column. Add hyperlinks.
80800
80801 2003-01-15  Bruno Haible  <bruno@clisp.org>
80802
80803         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80804
80805 2003-01-15  Bruno Haible  <bruno@clisp.org>
80806
80807         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80808         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80809         suffix.
80810
80811 2003-01-15  Bruno Haible  <bruno@clisp.org>
80812
80813         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80814
80815 2003-01-15  Bruno Haible  <bruno@clisp.org>
80816
80817         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80818         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80819
80820 2003-01-14  Jim Meyering  <jim@meyering.net>
80821
80822         * lib/same.c (same_name): Tweak a comment.
80823
80824 2003-01-14  Bruno Haible  <bruno@clisp.org>
80825
80826         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80827         when a string comparison is sufficient.
80828
80829 2003-01-14  Bruno Haible  <bruno@clisp.org>
80830
80831         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80832         'unsigned int'.
80833
80834 2003-01-14  Bruno Haible  <bruno@clisp.org>
80835
80836         * lib/hash-pjw.c: Add comment about low quality of this function.
80837
80838 2003-01-13  Bruno Haible  <bruno@clisp.org>
80839
80840         * modules/stpcpy: Distribute lib/stpcpy.h.
80841         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80842
80843 2003-01-13  Bruno Haible  <bruno@clisp.org>
80844
80845         * modules/*: Add a description.
80846         * modules/strpbrk: Fix Makefile.am snippet.
80847         * modules/strtoimax: Fix dependencies.
80848         * modules/strtoumax: Likewise.
80849
80850 2003-01-13  Bruno Haible  <bruno@clisp.org>
80851
80852         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80853         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80854         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80855
80856 2003-01-13  Bruno Haible  <bruno@clisp.org>
80857
80858         * gnulib-tool (func_create_testdir): Store config/* files in the main
80859         directory.
80860         * config.rpath: Move to ...
80861         * config/config.rpath: ... here.
80862         * modules/gettext: Contains config/config.rpath, not config.rpath.
80863         * modules/iconv: Likewise.
80864
80865 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80866
80867         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80868         to avoid collisions with libcurses and libreadline.
80869
80870         * m4/getstr.m4: Remove.
80871         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80872
80873 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80874
80875         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80876         to avoid collisions with libcurses and libreadline.
80877
80878         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80879         * lib/getstr.h, getstr.c: Remove.
80880         * lib/getline.c: Include "getline.h", to check interface.
80881         Move body of old getstr.c here: this defines MIN_CHUNK and
80882         declares getdelim2, which is renamed from getstr.
80883         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80884
80885         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80886         All uses changed.
80887         * lib/linebuffer.h: Likewise.
80888         (readline): Remove backward-compatibility macro.
80889
80890 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80891
80892         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80893         to avoid collisions with libcurses and libreadline.
80894         * getstr: Remove.
80895         * MODULES.html.sh: Remove getstr.
80896         * modules/getline: Depend on unlocked-io, not getstr.
80897
80898 2003-01-12  Jim Meyering  <jim@meyering.net>
80899
80900         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80901
80902 2003-01-10  Bruno Haible  <bruno@clisp.org>
80903
80904         * modules/alloca: Change Makefile.am requirements. Simplify Include
80905         requirements. Add lib/alloca_.h to file list.
80906
80907 2003-01-10  Bruno Haible  <bruno@clisp.org>
80908
80909         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80910
80911 2003-01-10  Bruno Haible  <bruno@clisp.org>
80912
80913         * lib/alloca_.h: New file.
80914         * lib/getdate.y: Unconditionally include alloca.h.
80915         * lib/makepath.c: Likewise.
80916         * lib/setenv.c: Likewise.
80917         * lib/userspec.c: Likewise.
80918
80919 2003-01-09  Karl Berry  <karl@gnu.org>
80920
80921         * MODULES.html.sh: include `dirname $0` in PATH, to find
80922         gnulib-tool.
80923
80924 2003-01-09  Bruno Haible  <bruno@clisp.org>
80925
80926         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80927         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80928
80929 2003-01-09  Bruno Haible  <bruno@clisp.org>
80930
80931         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80932
80933 2003-01-09  Bruno Haible  <bruno@clisp.org>
80934
80935         * lib/stdbool.h.in: New file.
80936
80937 2003-01-09  Bruno Haible  <bruno@clisp.org>
80938
80939         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80940         * MODULES.html.sh: Likewise.
80941
80942 2003-01-08  Jim Meyering  <jim@meyering.net>
80943
80944         * lib/full-write.c: Undefine and define-away `const' after inclusion
80945         of errno.h, not before.  Suggestion from Bruno Haible.
80946
80947 2003-01-08  Bruno Haible  <bruno@clisp.org>
80948
80949         * modules/full-read: Depend on full-write.
80950
80951 2003-01-08  Bruno Haible  <bruno@clisp.org>
80952
80953         * lib/safe-read.c: Include specification header first, to ensure its
80954         selfcontainedness.
80955         * lib/full-write.c: Likewise.
80956
80957 2003-01-07  Jim Meyering  <jim@meyering.net>
80958
80959         * lib/full-write.c: Rework so that it may serve to define full_read,
80960         too.
80961         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80962
80963 2003-01-07  Bruno Haible  <bruno@clisp.org>
80964
80965         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80966         <inttypes.h>.
80967         * lib/xstrtol.h: Likewise.
80968         * lib/xstrtoimax.c: Likewise.
80969         * lib/xstrtoumax.c: Likewise.
80970         * lib/human.h: Likewise.
80971
80972         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80973         on systems that have <inttypes.h> but not <stdint.h>.
80974
80975 2003-01-07  Bruno Haible  <bruno@clisp.org>
80976
80977         * MODULES.html.sh: Add copyright notice.
80978         (missed_files): Omit CVS directory entries.
80979         (func_module): Make it work with sed-3.02.
80980         * MODULES.txt: Remove file.
80981
80982 2003-01-06  Jim Meyering  <jim@meyering.net>
80983
80984         * lib/version-etc.c: Update year in translatable copyright string.
80985
80986 2003-01-03  Karl Berry  <karl@gnu.org>
80987
80988         * config/config.{guess,sub}: update from prep.
80989
80990 2003-01-02  Karl Berry  <karl@gnu.org>
80991
80992         * doc/COPYING.DOC: belatedly updated to 1.2.
80993
80994 2003-01-01  Karl Berry  <karl@gnu.org>
80995
80996         * gnulib-tool (func_verify_module): report module name $module in
80997         error message, not $1.
80998         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80999         be created, only if it doesn't exist.
81000         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81001
81002 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81003
81004         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81005
81006 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81007
81008         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81009         memcmp if strcoll doesn't work.
81010
81011 2002-12-31  Bruno Haible  <bruno@clisp.org>
81012
81013         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81014         nonempty.
81015
81016 2002-12-31  Bruno Haible  <bruno@clisp.org>
81017
81018         * lib/memcoll.c (STRCOLL): New macro.
81019         (memcoll): Use it.
81020
81021 2002-12-31  Bruno Haible  <bruno@clisp.org>
81022
81023         * lib/localcharset.h: New file.
81024         * lib/localcharset.c: Include it.
81025         * lib/unicodeio.c: Likewise.
81026
81027 2002-12-31  Bruno Haible  <bruno@clisp.org>
81028
81029         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81030         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81031
81032 2002-12-31  Bruno Haible  <bruno@clisp.org>
81033
81034         * lib/getline.h: Include <stddef.h>, for size_t.
81035
81036         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81037         * lib/unicodeio.c: Don't include <stddef.h>.
81038
81039 2002-12-31  Bruno Haible  <bruno@clisp.org>
81040
81041         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81042         HAVE_TM_ZONE.
81043
81044 2002-12-24  Karl Berry  <karl@gnu.org>
81045
81046         * config/config.guess: update from prep.
81047
81048 2002-12-24  Bruno Haible  <bruno@clisp.org>
81049
81050         General infrasructure.
81051         * m4/README: Rewritten.
81052         * m4/onceonly.m4: New file.
81053         * m4/onceonly_2_57.m4: New file.
81054
81055         Module atexit.
81056         * m4/atexit.m4: New file.
81057
81058         Module strtod.
81059         * m4/strtod.m4: New file.
81060
81061         Module strtol.
81062         * m4/strtol.m4: New file.
81063
81064         Module strtoul.
81065         * m4/strtoul.m4: New file.
81066
81067         Module memchr.
81068         * m4/memchr.m4: New file.
81069
81070         Module memcmp.
81071         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81072         (jm_FUNC_MEMCMP): Invoke it.
81073
81074         Module memcpy.
81075         * m4/memcpy.m4: New file.
81076
81077         Module memmove.
81078         * m4/memmove.m4: New file.
81079
81080         Module memset.
81081         * m4/memset.m4: New file.
81082
81083         Module strcspn.
81084         * m4/strcspn.m4: New file.
81085
81086         Module strpbrk.
81087         * m4/strpbrk.m4: New file.
81088
81089         Module strstr.
81090         * m4/strstr.m4: New file.
81091
81092         Module strerror.
81093         * m4/strerror.m4: New file.
81094
81095         Module mktime.
81096         * m4/mktime.m4: Renamed from jm-mktime.m4.
81097         (gl_PREREQ_MKTIME): New macro.
81098         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81099
81100         Module malloc.
81101         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81102         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81103         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81104
81105         Module realloc.
81106         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81107         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81108         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81109
81110         Module strftime.
81111         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81112         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81113         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81114         gl_TM_GMTOFF.
81115         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81116
81117         Module xalloc.
81118         * m4/xalloc.m4: New file.
81119
81120         Module alloca.
81121         * m4/alloca.m4: New file.
81122
81123         Module putenv.
81124         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81125         (jm_FUNC_PUTENV): Invoke it.
81126
81127         Module setenv.
81128         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81129         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81130         when invoked twice.
81131         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81132         gt_FUNC_SETENV.
81133
81134         Module memrchr.
81135         * m4/memrchr.m4: New file.
81136
81137         Module stpcpy.
81138         * m4/stpcpy.m4: New file.
81139
81140         Module strcase.
81141         * m4/strcase.m4: New file.
81142
81143         Module strdup.
81144         * m4/strdup.m4: New file.
81145
81146         Module strnlen.
81147         * m4/strnlen.m4: New file.
81148
81149         Module strndup.
81150         * m4/strndup.m4: New file.
81151
81152         Module xstrtod.
81153         * m4/xstrtod.m4: New file.
81154
81155         Module xstrtol.
81156         * m4/xstrtol.m4: New file.
81157
81158         Module getdate.
81159         * m4/getdate.m4: New file.
81160
81161         Module unlocked-io.
81162         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81163         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81164         * m4/jm-glibc-io.m4n: Remove file.
81165
81166         Module long-options.
81167         * m4/long-options.m4: New file.
81168
81169         Module md5.
81170         * m4/md5.m4: New file.
81171
81172         Module sha.
81173         * m4/sha.m4: New file.
81174
81175         Module getstr.
81176         * m4/getstr.m4: New file.
81177
81178         Module getline.
81179         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81180         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81181         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81182         simply getline. Infoke gl_PREREQ_GETLINE.
81183
81184         Module obstack.
81185         * m4/obstack.m4: New file.
81186
81187         Module hash.
81188         * m4/hash.m4: New file.
81189
81190         Module readtokens.
81191         * m4/readtokens.m4: New file.
81192
81193         Module strverscmp.
81194         * m4/strverscmp.m4: New file.
81195
81196         Module stdbool.
81197         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81198         OSF/1.
81199
81200         Module strtoll.
81201         * m4/strtoll.m4: New file.
81202
81203         Module strtoull.
81204         * m4/strtoull.m4: New file.
81205
81206         Module strtoimax.
81207         * m4/strtoimax.m4: New file.
81208
81209         Module strtoumax.
81210         * m4/strtoumax.m4: New file.
81211
81212         Module xstrtoimax.
81213         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81214         jm_AC_PREREQ_XSTRTOIMAX.
81215         Moved the strtol prerequisites to strtol.m4.
81216         Moved the strtoll prerequisites to strtoll.m4.
81217         Moved the strtoimax prerequisites to strtoimax.m4.
81218
81219         Module xstrtoumax.
81220         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81221         jm_AC_PREREQ_XSTRTOUMAX.
81222         Moved the strtoul prerequisites to strtoul.m4.
81223         Moved the strtoull prerequisites to strtoull.m4.
81224         Moved the strtoumax prerequisites to strtoumax.m4.
81225
81226         Module chown.
81227         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81228         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81229
81230         Module dup2.
81231         * m4/dup2.m4: New file.
81232
81233         Module ftruncate.
81234         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81235         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81236
81237         Module getgroups.
81238         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81239         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81240
81241         Module gettimeofday.
81242         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81243         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81244         gl_PREREQ_GETTIMEOFDAY.
81245
81246         Module mkdir.
81247         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81248         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81249
81250         Module mkstemp.
81251         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81252         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81253         jm_AC_TYPE_UINTMAX_T.
81254         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81255
81256         Module stat.
81257         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81258         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81259
81260         Module lstat.
81261         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81262         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81263
81264         Module timespec.
81265         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81266         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81267         * m4/st_mtim.m4: Indentation.
81268
81269         Module nanosleep.
81270         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81271         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81272         gl_PREREQ_NANOSLEEP.
81273
81274         Module regex.
81275         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81276         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81277         (gl_REGEX): New macro.
81278
81279         Module rename.
81280         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81281         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81282
81283         Module rmdir.
81284         * m4/rmdir.m4: New file.
81285
81286         Module utime.
81287         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81288         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81289         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81290
81291         Module dirname.
81292         * m4/dirname.m4: New file.
81293
81294         Module getopt.
81295         * m4/getopt.m4: New file.
81296
81297         Module unistd-safer.
81298         * m4/unistd-safer.m4: New file.
81299
81300         Module fnmatch.
81301         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81302         declaration.
81303         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81304         (gl_FUNC_FNMATCH_POSIX): New macro.
81305         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81306         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81307         simply fnmatch.
81308
81309         Module exclude.
81310         * m4/exclude.m4: New file.
81311
81312         Module human.
81313         * m4/human.m4: New file.
81314
81315         Module acl.
81316         * m4/acl.m4: Nop.
81317
81318         Module backupfile.
81319         * m4/backupfile.m4: New file.
81320         * m4/d-ino.m4: Indentation.
81321
81322         Module fsusage.
81323         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81324         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81325         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81326
81327         Module dirfd.
81328         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81329         requirements.
81330
81331         Module euidaccess.
81332         * m4/euidaccess.m4: New file.
81333
81334         Module file-type.
81335         * m4/file-type.m4: New file.
81336
81337         Module fileblocks.
81338         * m4/fileblocks.m4: New file.
81339
81340         Module filemode.
81341         * m4/filemode.m4: New file.
81342
81343         Module isdir.
81344         * m4/isdir.m4: New file.
81345
81346         Module lchown.
81347         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81348         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81349
81350         Module makepath.
81351         * m4/makepath.m4: New file.
81352
81353         Module modechange.
81354         * m4/modechange.m4: New file.
81355
81356         Module mountlist.
81357         * m4/mountlist.m4: New file.
81358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81359         Indentation.
81360
81361         Module path-concat.
81362         * m4/path-concat.m4: New file.
81363
81364         Module pathmax.
81365         * m4/pathmax.m4: New file.
81366
81367         Module same.
81368         * m4/same.m4: New file.
81369
81370         Module save-cwd.
81371         * m4/save-cwd.m4: New file.
81372
81373         Module savedir.
81374         * m4/savedir.m4: New file.
81375
81376         Module xgetcwd.
81377         * m4/xgetcwd.m4: New file.
81378         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81379
81380         Module xreadlink.
81381         * m4/xreadlink.m4: New file.
81382
81383         Module safe-read.
81384         * m4/safe-read.m4: New file.
81385
81386         Module safe-write.
81387         * m4/safe-write.m4: New file.
81388
81389         Module closeout.
81390         * m4/closeout.m4: New file.
81391
81392         Module stdio-safer.
81393         * m4/stdio-safer.m4: New file.
81394
81395         Module getpass.
81396         * m4/getpass.m4: New file.
81397
81398         Module getugroups.
81399         * m4/getugroups.m4: New file.
81400
81401         Module group-member.
81402         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81403         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81404
81405         Module idcache.
81406         * m4/idcache.m4: New file.
81407
81408         Module userspec.
81409         * m4/userspec.m4: New file.
81410
81411         Module gettime.
81412         * m4/clock_time.m4: New file.
81413         * m4/gettime.m4: New file.
81414
81415         Module settime.
81416         * m4/settime.m4: New file.
81417
81418         Module posixtm.
81419         * m4/posixtm.m4: New file.
81420
81421         Module gethostname.
81422         * m4/gethostname.m4: New file.
81423
81424         Module canon-host.
81425         * m4/canon-host.m4: New file.
81426
81427         Module gettext.
81428         * m4/codeset.m4: New file, from gettext-0.11.5.
81429         * m4/gettext.m4: New file, from gettext-0.11.5.
81430         * m4/glibc21.m4: New file, from gettext-0.11.5.
81431         * m4/iconv.m4: New file, from gettext-0.11.5.
81432         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81433         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81434         * m4/inttypes.m4: New file, from gettext-0.11.5.
81435         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81436         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81437         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81438         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81439         * m4/lib-link.m4: New file, from gettext-0.11.5.
81440         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81441         * m4/progtest.m4: New file, from gettext-0.11.5.
81442         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81443         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81444         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81445
81446         Module localcharset.
81447         * m4/localcharset.m4: New file.
81448
81449         Module hard-locale.
81450         * m4/hard-locale.m4: New file.
81451
81452         Module mbswidth.
81453         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81454         onceonly macros.
81455         * m4/mbrtowc.m4: Add comment.
81456
81457         Module memcasecmp.
81458         * m4/memcasecmp.m4: New file.
81459
81460         Module memcoll.
81461         * m4/memcoll.m4: New file.
81462
81463         Module unicodeio.
81464         * m4/unicodeio.m4: New file.
81465
81466         Module rpmatch.
81467         * m4/rpmatch.m4: New file.
81468
81469         Module yesno.
81470         * m4/yesno.m4: New file.
81471
81472         Module exitfail.
81473         * m4/exitfail.m4: New file.
81474
81475         Module c-stack.
81476         * m4/c-stack.m4 (gl_C_STACK): New macro.
81477         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81478
81479         Module error.
81480         * m4/error.m4 (gl_ERROR): New macro.
81481         (jm_PREREQ_ERROR): Use onceonly macros.
81482
81483         Module fatal.
81484         * m4/fatal.m4: New file.
81485
81486         Module getloadavg.
81487         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81488         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81489
81490         Module getpagesize.
81491         * m4/getpagesize.m4: New file.
81492
81493         Module getusershell.
81494         * m4/getusershell.m4: New file.
81495
81496         Module physmem.
81497         * m4/physmem.m4: New file.
81498
81499         Module posixver.
81500         * m4/posixver.m4: New file.
81501
81502         Module quotearg.
81503         * m4/quotearg.m4: New file.
81504
81505         Module quote.
81506         * m4/quote.m4: New file.
81507
81508         Module readutmp.
81509         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81510
81511         Module sig2str.
81512         * m4/sig2str.m4: New file.
81513
81514         Other.
81515         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81516         ulonglong.m4.
81517         * m4/intmax_t.m4: New file.
81518         * m4/d-type.m4: Indentation.
81519         * m4/jm-macros.m4: Update.
81520         * m4/prereq.m4 (jm_PREREQ): Update.
81521         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81522         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81523         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81524         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81525         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81526         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81527         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81528         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81529         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81530         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81531         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81532         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81533         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81534         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81535         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81536         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81537         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81538         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81539         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81540
81541 2002-12-24  Bruno Haible  <bruno@clisp.org>
81542
81543         * MODULES.txt: Update according to m4/ changes.
81544
81545         Module gettext.
81546         * config.rpath: New file, from gettext-0.11.5.
81547
81548         * modules/*: New module descriptions.
81549         * gnulib-tool: New file.
81550         * MODULES.html.sh: New file.
81551
81552 2002-12-21  Karl Berry  <karl@gnu.org>
81553
81554         * doc/fdl.texi: update to version 1.2.
81555
81556 2002-12-19  Karl Berry  <karl@gnu.org>
81557
81558         * config/config.guess: update from prep.
81559
81560 2002-12-18  Bruno Haible  <bruno@clisp.org>
81561
81562         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81563         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81564
81565 2002-12-17  Bruno Haible  <bruno@clisp.org>
81566
81567         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81568         stdlib.h, string.h.
81569
81570 2002-12-17  Bruno Haible  <bruno@clisp.org>
81571
81572         * lib/canon-host.c (strdup): Remove unused declaration.
81573
81574         * lib/fsusage.c: Include full_read.h.
81575         (get_fs_usage): Use full_read instead of safe_read.
81576
81577         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81578
81579 2002-12-12  Karl Berry  <karl@gnu.org>
81580
81581         * config/config.guess: update from prep.
81582
81583 2002-12-11  Bruno Haible  <bruno@clisp.org>
81584
81585         * m4/setenv.m4: New file, from gettext-0.11.5.
81586
81587 2002-12-11  Bruno Haible  <bruno@clisp.org>
81588
81589         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81590         not unsetenv().
81591         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81592         modifications:
81593
81594         2002-12-11  Bruno Haible  <bruno@clisp.org>
81595
81596                 * setenv.c (alloca): Fall back to malloc.
81597                 (freea): New macro.
81598                 (setenv): Use freea() to free memory allocated with alloca().
81599
81600         2002-11-13  Bruno Haible  <bruno@clisp.org>
81601
81602                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81603                 function declarations.
81604                 * unsetenv.c (unsetenv): Likewise.
81605
81606         2002-03-04  Bruno Haible  <bruno@clisp.org>
81607
81608                 Portability to AIX 4.3.3.
81609                 * unsetenv.c: New file, extracted from setenv.c.
81610                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81611
81612         2001-12-20  Bruno Haible  <bruno@clisp.org>
81613
81614                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81615                 use malloc instead. For SunOS 4.
81616
81617         2001-12-11  Bruno Haible  <bruno@clisp.org>
81618
81619                 * setenv.c: Declare alloca.
81620                 (compar_fn_t): New typedef.
81621                 (KNOWN_VALUE, STORE_VALUE): Use it.
81622
81623         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81624         setenv.h.
81625
81626 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81627
81628         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81629         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81630         Choose values that are less likely to collide with system fnmatch
81631         options.
81632         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81633         defined (e.g., a pure POSIX system).
81634         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81635         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81636
81637 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81638
81639         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81640         a pain in practice to deal with generated m4 files.  This change
81641         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81642
81643         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81644         and jm-glibc-io.m4, as they are no longer a special case.
81645         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81646         kludge and the auto-generation stuff.  Check only whether the
81647         functions are declared, not whether they exist, since older hosts
81648         that don't declare the functions can't use the optimization anyway.
81649
81650 2002-12-06  Jim Meyering  <jim@meyering.net>
81651
81652         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81653
81654         Merge in changes from libc's misc/error.c, in preparation
81655         for the merge of gnulib's changes back into libc.
81656
81657         * lib/error.c (_): Define only if not already defined.
81658         Move definition to follow all #include directives.
81659         Include unlocked-io.h only if !_LIBC.
81660         [_LIBC]: Include <libio/libioP.h>.
81661         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81662         (fflush): Tweak definition to use INTUSE.
81663         (putc): Define.
81664
81665 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81666
81667         * lib/alloca.c [defined emacs]: Include "lisp.h".
81668         (xalloc_die) [defined emacs]: New macro.
81669         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81670         [! defined emacs]: Include <xalloc.h>.
81671         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81672         (pointer): Typedef to POINTER_TYPE *.
81673         (malloc): Remove decl; we now always use xmalloc.
81674         (alloca): Use old-style definition, since Emacs needs this.
81675         Check for arithmetic overflow when computing combined size.
81676
81677 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81678
81679         Do not generate unlocked-io.h automatically, since it's easier to
81680         maintain it by hand.
81681
81682         * lib/unlocked-io.h: New file, from GNU diffutils,
81683         but with proper copyright notice and attribution.
81684         * lib/gen-uio: Remove.
81685         * lib/Makefile.am: Add copyright notice.
81686         (libfetish_a_SOURCES): Add unlocked-io.h.
81687         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81688         (DISTCLEANFILES, io_functions): Remove macros.
81689         (EXTRA_DIST): Remove gen_uio.
81690         (unlocked-io.h): Remove rule.
81691
81692 2002-12-04  Jim Meyering  <jim@meyering.net>
81693
81694         Reflect the fact that stat.c and lstat.c are no longer generated.
81695         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81696         (DISTCLEANFILES): Likewise.
81697         (EXTRA_DIST): Likewise.
81698         (all_local): Don't depend on stat.c or lstat.c.
81699         (stat.c, lstat.c): Remove rules.
81700         (EXTRA_DIST): Remove xstat.in.
81701
81702         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81703         * lib/stat.c: New file.  Contents mostly from xstat.in.
81704         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81705         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81706
81707         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81708         too.
81709         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81710
81711 2002-12-03  Jim Meyering  <jim@meyering.net>
81712
81713         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81714         but not semantics, to minimize the differences between these two files.
81715         (safe_read): Change comment to mention SAFE_READ_ERROR.
81716
81717         * lib/safe-read.c (IS_EINTR): Define.
81718         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81719
81720 2002-12-02  Jim Meyering  <jim@meyering.net>
81721
81722         * lib/safe-read.c (EINTR): Define.
81723         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81724         (INT_MAX): Provide fallback.
81725         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81726
81727         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81728
81729 2002-12-02  Bruno Haible  <bruno@clisp.org>
81730
81731         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81732         Define, taken from safe-read.c.
81733         (INT_MAX): Provide fallback.
81734         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81735         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81736
81737         * lib/safe-read.c (EINTR): Remove definition.
81738         (safe_read): Don't use EINTR if it is absent.
81739
81740 2002-12-01  Jim Meyering  <jim@meyering.net>
81741
81742         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81743         zero.
81744         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81745
81746 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81747
81748         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81749         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81750         with `if (! (value < limit)) abort ();', for readability.
81751
81752 2002-11-26  Karl Berry  <karl@gnu.org>
81753
81754         * lib/strdup.c: copy from libc again, with jim's ok.
81755         * lib/.cppi-disable: re-add strdup.c
81756
81757 2002-11-25  Karl Berry  <karl@gnu.org>
81758
81759         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81760         instead of "strtol.c".
81761
81762 2002-11-25  Karl Berry  <karl@gnu.org>
81763
81764         * config/install-sh: update from automake for variable quoting, $0 in
81765         error msgs, etc.
81766
81767         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81768         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81769         entry.
81770
81771 2002-11-25  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81774
81775 2002-11-24  Karl Berry  <karl@gnu.org>
81776
81777         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81778         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81779
81780 2002-11-24  Jim Meyering  <jim@meyering.net>
81781
81782         Update from coreutils:
81783
81784         * lib/mktime.c: Merge in changes from libc.
81785
81786         Avoid a link-time failure on some Linux systems.
81787         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81788         (otherwise).
81789         (__mon_yday): Declare with the STATIC attribute.
81790         (__mktime_internal): Likewise.
81791         Based on a report from Greg Schafer.
81792
81793 2002-11-23  Jim Meyering  <jim@meyering.net>
81794
81795         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81796         Use `unsigned', not `int', as type of index.
81797
81798         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81799
81800         * lib/fsusage.c: Remove unneeded parentheses around operands of
81801         `defined'.
81802
81803 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81804
81805         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81806         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81807         so that we can be included first.
81808         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81809         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81810         No need to include stddef.h or sys/types.h any more.
81811         Surround local include files with "", not "<>".
81812         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81813         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81814         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81815         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81816         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81817         (ISPRINT): Remove; no longer needed now that we assume C89.
81818
81819         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81820         Preserve errno.
81821
81822         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81823         quotearg_char): Use SIZE_MAX rather than
81824         (size_t) -1 when we are talking about "infinity".
81825
81826         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81827
81828 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81829
81830         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81831         hint that one should use `if (! x) abort ();' rather than `assert
81832         (x);', and anyway it's one less thing to worry about configuring.
81833         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81834         hash_rehash, hash_insert): Use abort rather than assert.
81835
81836 2002-11-22  Bruno Haible  <bruno@clisp.org>
81837
81838         * lib/safe-read.h: Assume C89. Add comments.
81839         (safe_read): Change return type to size_t.
81840         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81841         byte counts > SSIZE_MAX correctly.
81842         * lib/safe-write.h: New file.
81843         * lib/safe-write.c: New file.
81844         * lib/full-read.h: New file.
81845         * lib/full-read.c: New file.
81846         * lib/full-write.h: Assume C89. Add comments.
81847         * lib/full-write.c: Include safe-write.h.
81848         (full_write): Rewritten to use safe_write.
81849         Suggested by Jim Meyering and Paul Eggert.
81850
81851 2002-11-21  Jim Meyering  <jim@meyering.net>
81852
81853         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81854
81855         Merge in changes from the coreutils.
81856
81857         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81858         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81859         <stdint.h>.
81860         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81861         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81862         int.  Work more efficiently if X is the same width as uintmax_t.
81863         Do not compare X to -1, to avoid bogus compiler warning.
81864         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81865         Don't assume that f_frsize and f_bsize are the same type.
81866
81867         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81868         warning on FreeBSD.
81869
81870         * lib/makepath.c (make_path): Restore umask *before* creating the final
81871         component.
81872         (make_path): Minor reformatting.
81873
81874         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81875         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81876         HAVE_MALLOC/HAVE_REALLOC.
81877
81878         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81879         dummy ones.  At least on GNU/Linux systems, `auto' means something
81880         else.
81881         From Michael Stone.
81882
81883 2002-11-21  Bruno Haible  <bruno@clisp.org>
81884
81885         Remove case insensitive option matching.
81886         * lib/argmatch.h (argcasematch): Remove declaration.
81887         (ARGCASEMATCH): Remove macro.
81888         (__xargmatch_internal): Remove case_sensitive argument.
81889         (XARGMATCH): Update.
81890         (XARGCASEMATCH): Remove macro.
81891         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81892         case_sensitive argument.
81893         (argcasematch): Remove function.
81894         (__xargmatch_internal): Remove case_sensitive argument.
81895         (main): Use XARGMATCH instead of XARGCASEMATCH.
81896
81897         * lib/xmalloc.c: Change compile-time error message. Add comment about
81898         required autoconf version.
81899
81900 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81901
81902         Merge argmatch cleanups from Bison.  Assume C89.
81903
81904         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81905         Include stdlib.h, for EXIT_FAILURE.
81906         Always include <string.h>, since we assume C89.
81907         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81908         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81909         Include <stddef.h> instead, since it's all we need for size_t.
81910         (PARAMS): Remove.  All uses removed.
81911         (ARRAY_CARDINALITY): Do not bother to #undef.
81912         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81913         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81914         Remove unnecessary parentheses.
81915         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81916         Insert necessary parentheses.
81917         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81918         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81919
81920 2002-11-19  Bruno Haible  <bruno@clisp.org>
81921
81922         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81923         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81924
81925         * lib/mbswidth.h (PARAMS): Remove macro.
81926         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81927         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81928
81929         * lib/gcd.h (PARAMS): Remove macro.
81930         (gcd): Use ANSI C function declarations.
81931         * lib/gcd.c (gcd): Likewise.
81932
81933 2002-11-15  Bruno Haible  <bruno@clisp.org>
81934
81935         * lib/strcspn.c: Include <stddef.h>.
81936         (strcspn): Use ANSI C function declaration. Change return type to
81937         size_t. Use NULL.
81938         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81939         (strpbrk): Use NULL.
81940         * lib/strpbrk.h (PARAMS): Remove macro.
81941         (strpbrk): Use ANSI C function declaration.
81942         * lib/strstr.c: Don't include <sys/types.h>.
81943         * lib/strstr.h (PARAMS): Remove macro.
81944         (strstr): Use ANSI C function declarations.
81945
81946 2002-11-14  Karl Berry  <karl@gnu.org>
81947
81948         * config/mkinstalldirs: `do' on separate line, instead of
81949         `for var; do'.
81950
81951 2002-11-06  Bruno Haible  <bruno@clisp.org>
81952
81953         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81954         * lib/gcd.c (gcd): Likewise.
81955
81956 2002-11-05  Bruno Haible  <bruno@clisp.org>
81957
81958         * lib/gcd.h: New file, from gettext-0.11.5.
81959         * lib/gcd.c: New file, from gettext-0.11.5.
81960
81961 2002-11-05  Bruno Haible  <bruno@clisp.org>
81962
81963         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81964         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81965         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81966         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81967
81968         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81969         <libintl.h>.
81970         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81971         <libintl.h>.
81972
81973         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81974         * lib/human.c: Include gettext.h instead of <libintl.h>.
81975         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81976         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81977         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81978         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81979         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81980         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81981         (textdomain): Remove definition.
81982         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81983
81984         * lib/long-options.c: Remove include of <libintl.h> and definition of
81985         _.
81986         * lib/same.c: Remove include of <libintl.h> and definition of _.
81987
81988 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81989
81990         * lib/config.charset: A few additions for Solaris.
81991
81992 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81993
81994         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81995         * lib/localcharset.c (locale_charset): Declare as extern "C".
81996
81997 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81998
81999         * lib/config.charset: msdos in uk_UA uses CP1125.
82000
82001 2002-11-04  Bruno Haible  <bruno@clisp.org>
82002
82003         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82004         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82005         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82006         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82007         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82008
82009 2002-11-04  Bruno Haible  <bruno@clisp.org>
82010
82011         * lib/localcharset.c (locale_charset): Don't return an empty string.
82012
82013 2002-11-04  Bruno Haible  <bruno@clisp.org>
82014
82015         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82016         aliases.
82017
82018 2002-11-04  Bruno Haible  <bruno@clisp.org>
82019
82020         * lib/config.charset: Update for newest glibc. Add canonical names
82021         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82022
82023 2002-11-04  Bruno Haible  <bruno@clisp.org>
82024
82025         * lib/config.charset: Add support for NetBSD.
82026
82027 2002-11-04  Bruno Haible  <bruno@clisp.org>
82028
82029         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82030
82031 2002-11-01  Bruno Haible  <bruno@clisp.org>
82032
82033         * configure.in: Add AC_CONFIG_AUX_DIR call.
82034         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82035         test/Makefile.
82036         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82037
82038 2002-09-28  Karl Berry  <karl@gnu.org>
82039
82040         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82041         installed automake until the next release, since changes have been
82042         made.
82043
82044 2002-09-25  Karl Berry  <karl@gnu.org>
82045
82046         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82047         * lib/getopt*: copy from libc/posix.
82048         * lib/gettext.h: copy from gettext.
82049         * lib/.cppi-disable: add strdup.c, gettext.h.
82050
82051 2002-09-25  Karl Berry  <karl@gnu.org>
82052
82053         * config/srclist.txt: enable gettext.h check.
82054         * config/config.{guess,sub}: update from prep.
82055         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82056                 from automake 1.6.3.
82057         See srclist*.
82058
82059 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82060
82061         * regex.c (PATFETCH): Remove the translating fetch.
82062         (PATFETCH_RAW): Rename to PATFETCH.
82063         (set_image_of_range): New fun.
82064         (SET_RANGE_TABLE_WORK_AREA): Use it.
82065         (regex_compile): Don't translate the pattern chars so eagerly.
82066         Only do it when inserting an `exactn' bytecode or when handling
82067         a char-range.
82068         (mutually_exclusive_p): Avoid empty statement.
82069
82070 2002-07-06  Jim Meyering  <meyering@lucent.com>
82071
82072         * m4/README: Don't mention Makefile.am.in.
82073         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82074
82075 2002-07-01  Jim Meyering  <meyering@lucent.com>
82076
82077         * lib/c-stack.c: Include sys/time.h.
82078         From Volker Borchert.
82079
82080 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82081
82082         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82083
82084 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82085
82086         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82087         New macro.  Use it uniformly instead of
82088         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82089         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82090         reported by Vin Shelton.
82091
82092 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82093
82094         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82095         Do not assume SA_SIGINFO behavior.
82096         Bug reported by Jim Meyering on NetBSD 1.5.2.
82097
82098 2002-06-22  Jim Meyering  <meyering@lucent.com>
82099
82100         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82101         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82102
82103         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82104         now that configure.ac uses AC_GNU_SOURCE.
82105         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82106         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82107
82108         Update to latest tools.  Suggestions from Paul Eggert.
82109         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82110         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82111         * m4/fnmatch.m4: Likewise.
82112         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82113         to AC_HEADER_STDBOOL
82114
82115 2002-06-22  Jim Meyering  <meyering@lucent.com>
82116
82117         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82118         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82119
82120 2002-06-22  Jim Meyering  <meyering@lucent.com>
82121
82122         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82123
82124         * lib/exitfail.c, exitfail.h: Likewise.
82125         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82126
82127         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82128         of fnmatch.h.
82129         (EXTRA_DIST): Add fnmatch_loop.c.
82130         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82131
82132         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82133         * lib/fnmatch.c: Update from diffutils-2.8.2.
82134         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82135         * lib/fnmatch.h: Remove file.
82136
82137 2002-06-21  Jim Meyering  <meyering@lucent.com>
82138
82139         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82140         * m4/mbrtowc.m4: Likewise.
82141
82142         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82143         * m4/mbswidth.m4: Reflect name change:
82144         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82145         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82146
82147         * m4/lib-link.m4: Update from gettext-0.11.2.
82148         * m4/gettext.m4: Likewise.
82149
82150         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82151         From Alfred M. Szmidt.
82152
82153 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82154
82155         * lib/file-type.h: Report an error if neither S_ISREG nor
82156         S_IFREG is defined, instead of using a test specific to glibc
82157         2.2.  This should be safe, since POSIX requires S_ISREG and
82158         Unix Version 7 had S_IFREG.  We don't need to check for
82159         <sys/types.h> since we don't use any symbols that it defines.
82160
82161 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82162
82163         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82164         $@-t, so that each temporary file name is unique and valid in the first
82165         8 characters, for operation under DOS.
82166
82167 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82168
82169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82170
82171 2002-06-15  Jim Meyering  <meyering@lucent.com>
82172
82173         Work even with DJGPP 2.03, which lacks support for symlinks.
82174         From Richard Dawe.
82175         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82176         is defined.
82177         * lib/lchown.c (S_ISLNK): Likewise.
82178
82179 2002-06-15  Jim Meyering  <meyering@lucent.com>
82180
82181         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82182         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82183         have been included before this file.
82184
82185 2002-06-14  Jim Meyering  <meyering@lucent.com>
82186
82187         * lib/file-type.h: Use the version from diffutils-2.8.2.
82188         * lib/file-type.c: Likewise.
82189
82190 2002-06-07  Jim Meyering  <meyering@lucent.com>
82191
82192         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82193         They're needed at least for NetBSD 1.5.2.
82194         ($statxfs_includes): Include those same headers.
82195         ($statxfs_includes): Include sys/vfs.h if available.
82196         ($statxfs_includes): Likewise for sys/statvfs.h.
82197         Check for the following members in both structs statfs and statvfs:
82198         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82199
82200 2002-06-01  Jim Meyering  <meyering@lucent.com>
82201
82202         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82203         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82204
82205 2002-05-28  Jim Meyering  <meyering@lucent.com>
82206
82207         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82208         Reported by Volker Borchert.
82209
82210 2002-05-27  Jim Meyering  <meyering@lucent.com>
82211
82212         Fix a problem seen only on nonconforming systems whereby ls.c's
82213         use of localtime, and then of gettimeofday would cause trouble:
82214         the localtime call used to initialize rpl_gettimeofday's save
82215         mechanism would clobber ls's current local time information so
82216         that in any long listing the first file would always be listed
82217         with date 1970-01-01.  Analysis by Volker Borchert.
82218
82219         * lib/gettimeofday.c (localtime): Undefine.
82220         (rpl_localtime): New function.
82221
82222 2002-05-27  Jim Meyering  <meyering@lucent.com>
82223
82224         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82225         localtime.
82226
82227         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82228         use the replacement function; it wouldn't resolve at link time.
82229         Reported by Volker Borchert.
82230
82231 2002-05-22  Jim Meyering  <meyering@lucent.com>
82232
82233         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82234         file-type.h.
82235         * lib/file-type.h: New file.
82236         * lib/file-type.c (file_type): New file/function.  Extracted from
82237         diffutils.
82238
82239 2002-04-30  Jim Meyering  <meyering@lucent.com>
82240
82241         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82242
82243 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82244
82245         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82246
82247 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82248
82249         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82250         Do not check for alloca.h (no longer used) or stdbool.h (was never
82251         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82252
82253 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82254
82255         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82256
82257 2002-04-29  Jim Meyering  <meyering@lucent.com>
82258
82259         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82260         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82261         Use AC_FUNC_STRNLEN here instead.
82262
82263         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82264         With autoconf-2.53a, it's part of AC_PROG_CC.
82265
82266 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82267
82268         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82269         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82270
82271 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82272
82273         * lib/sig2str.h, lib/sig2str.c: New files.
82274         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82275
82276 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82277
82278         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82279         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82280         of 127, since 64 is the largest conceivable number for ancient
82281         nonstandard hosts.
82282         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82283
82284 2002-04-28  Jim Meyering  <meyering@lucent.com>
82285
82286         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82287
82288 2002-04-24  Jim Meyering  <meyering@lucent.com>
82289
82290         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82291         (jm_PREREQ): Use it.
82292
82293         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82294         mach/mach.h fcntl.h.
82295         Check for this function: setlocale.
82296
82297 2002-04-24  Jim Meyering  <meyering@lucent.com>
82298
82299         * lib/gettext.h: New file, from Gettext.
82300         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82301         (libfetish_a_SOURCES): Add gettext.h.
82302
82303 2002-04-16  Jim Meyering  <meyering@lucent.com>
82304
82305         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82306         ut_pid, ut_id, ut_exit.
82307
82308 2002-04-16  Jim Meyering  <meyering@lucent.com>
82309
82310         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82311         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82312         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82313
82314 2002-04-12  Jim Meyering  <meyering@lucent.com>
82315
82316         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82317         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82318         existence of the getmntinfo function.  Needed for Darwin 5.3.
82319
82320         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82321         This is necessary at least on Darwin 5.3.
82322
82323         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82324         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82325         strnlen.o in the library, and that makes some versions of ranlib
82326         object.
82327
82328 2002-04-12  Jim Meyering  <meyering@lucent.com>
82329
82330         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82331
82332 2002-04-09  Jim Meyering  <meyering@lucent.com>
82333
82334         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82335         to be more precise.  Rather than saying we're checking whether the
82336         function `works', say what we're testing.
82337         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82338         Reported by Bruno Haible.
82339
82340 2002-03-10  Jim Meyering  <meyering@lucent.com>
82341
82342         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82343         Suggestion from Santiago Vila.
82344
82345 2002-03-08  Jim Meyering  <meyering@lucent.com>
82346
82347         * lib/rename.c: Mention that this wrapper is needed also on
82348         mips-dec-ultrix4.4 systems.
82349
82350 2002-03-02  Jim Meyering  <meyering@lucent.com>
82351
82352         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82353         not HAVE_CLOCK_SETTIME.
82354
82355 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82356
82357         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82358         Check for clock_settime.
82359
82360 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82361
82362         * lib/nanosleep.h: Rename to....
82363         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82364
82365         * lib/gettime.c: New file.
82366         * lib/settime.c: New file.
82367         * lib/stime.c: Remove.
82368
82369         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82370         timespec.h.  Remove nanosleep.h.
82371
82372 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82373
82374         * m4/acl.m4: New file.
82375         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82376         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82377
82378 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82379
82380         * lib/acl.c, lib/acl.h: New files.
82381         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82382
82383 2002-02-24  Jim Meyering  <meyering@lucent.com>
82384
82385         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82386         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82387         cause trouble.  Reported by Nelson Beebe.
82388
82389 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82390
82391         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82392         compilers that don't know that xalloc_die never returns.
82393
82394 2002-02-20  Jim Meyering  <meyering@lucent.com>
82395
82396         * lib/getdate.c: Regenerate using bison-1.33.
82397
82398 2002-02-17  Jim Meyering  <meyering@lucent.com>
82399
82400         * config/config.guess (main): Don't use `head -1'; it's no longer
82401         portable. Use `sed 1q' instead.
82402
82403 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82404
82405         * m4/codeset.m4: Upgrade to gettext-0.11.
82406         * m4/gettext.m4: Upgrade to gettext-0.11.
82407         * m4/glibc21.m4: Upgrade to gettext-0.11.
82408         * m4/iconv.m4: Upgrade to gettext-0.11.
82409         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82410         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82411         * m4/lib-ld.m4: New file, from gettext-0.11.
82412         * m4/lib-link.m4: New file, from gettext-0.11.
82413         * m4/lib-prefix.m4: New file, from gettext-0.11.
82414         * m4/progtest.m4: Upgrade to gettext-0.11.
82415
82416 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82417
82418         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82419         (jm_PREREQ): Use it.
82420
82421 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82422
82423         * lib/posixver.c, lib/posixver.h: New files.
82424         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82425
82426 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82427             Bruno Haible  <bruno@clisp.org>
82428
82429         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82430         (fwrite_success_callback): New declaration.
82431         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82432         print_unicode_char. Call failure callback instead of error.
82433         (fwrite_success_callback): New function.
82434         (exit_failure_callback): New function.
82435         (fallback_failure_callback): New function.
82436         (print_unicode_char): Call unicode_to_mb.
82437
82438 2002-01-26  Jim Meyering  <meyering@lucent.com>
82439
82440         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82441         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82442
82443 2002-01-26  Jim Meyering  <meyering@lucent.com>
82444
82445         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82446
82447 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82448
82449         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82450
82451 2002-01-22  Jim Meyering  <meyering@lucent.com>
82452
82453         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82454         Otherwise, some versions of automake would omit the rule that makes
82455         Makefile from Makefile.in.
82456
82457 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82458
82459         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82460         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82461         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82462         (memcoll): Set errno to zero if there is no error.
82463
82464         * lib/quotearg.c (quotearg_buffer_restyled):
82465         Fix bug with quoting buffers containing NUL when backslashing escapes.
82466         This bug was exposed by the other changes in this patch.
82467         (quotearg_n_options): New arg ARGSIZE.
82468         All callers changed.
82469         (quoting_options_from_style): New function.
82470         (quotearg_n_style): Use it.
82471         (quotearg_n_style_mem): New function.
82472
82473         * lib/quotearg.h (quotearg_n_style_mem): New function.
82474
82475 2002-01-19  Jim Meyering  <meyering@lucent.com>
82476
82477         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82478         Remove useless quotes: DF_PROG="df".
82479         * m4/strnlen.m4: New file.
82480
82481 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82482
82483         * lib/backupfile.c (ISDIGIT): Comment fix.
82484         * lib/getdate.y (ISDIGIT): Likewise.
82485         * lib/posixtm.c (ISDIGIT, year): Likewise.
82486         * lib/strverscmp.c (ISDIGIT): Likewise.
82487         * lib/userspec.c (ISDIGIT): Likewise.
82488
82489 2002-01-16  Jim Meyering  <meyering@lucent.com>
82490
82491         * lib/getdate.y: Add three semicolons, each just before a closing
82492         brace. Bison (as of version 1.31) no longer papers over that mistake.
82493
82494 2002-01-05  Jim Meyering  <meyering@lucent.com>
82495
82496         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82497
82498 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82499
82500         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82501         not silently exit merely because the output buffer happens to
82502         have nothing pending.
82503
82504 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82505
82506         See the big note in ../ChangeLog.
82507         * lib/human.c (suffixes): Prefer K to k for 1024.
82508         (generate_suffix_backwards): New function.
82509         (human_readable_inexact): Use it.
82510         * lib/xstrtol.c (__xstrtol): If there is no number but there
82511         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82512         Accept 'K' as well as 'k'.
82513
82514 2001-12-15  Jim Meyering  <meyering@lucent.com>
82515
82516         * lib/regex.h (__restrict_arr): Update from libc.
82517
82518         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82519         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82520         (STREQ): Define.
82521
82522 2001-12-14  Jim Meyering  <meyering@lucent.com>
82523
82524         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82525         Suggestion from Bruno Haible.
82526
82527 2001-12-10  Jim Meyering  <meyering@lucent.com>
82528
82529         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82530         xrealloc, Instead, include "xalloc.h".
82531         (initbuffer): Don't cast xmalloc return value to char*.
82532         (readline): Reword comment.
82533         Don't cast xrealloc return value to char*
82534         Return NULL, not 0.
82535
82536 2001-12-09  Jim Meyering  <meyering@lucent.com>
82537
82538         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82539         about `signed and unsigned type in conditional expression'.
82540         * lib/posixtm.c (posix_time_parse): Likewise.
82541
82542         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82543
82544         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82545         to avoid a pedantic warning.
82546
82547         * lib/getstr.c: Don't include assert.h.
82548         (getstr): Remove warning-evoking assertions.
82549         Return -1 if offset parameter is out of bounds.
82550         Change the type of a local from int to size_t.
82551
82552         * lib/strftime.c (my_strftime_localtime_r): Include this function
82553         definition in the `#if ! HAVE_TM_GMTOFF' block.
82554
82555         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82556         Include xalloc.h instead.
82557
82558 2001-12-02  Jim Meyering  <meyering@lucent.com>
82559
82560         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82561         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82562         included.
82563
82564         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82565         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82566
82567 2001-11-30  Akim Demaille  <akim@epita.fr>
82568
82569         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82570         before being defined.
82571
82572 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82573
82574         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82575         First arg is int, not unsigned.
82576         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82577         (SIZE_MAX, UINT_MAX): New macros.
82578         (quotearg_n_options): Abort if N is negative.
82579         Avoid overflow check on hosts where size_t is 64 bits and int
82580         is 32 bits, as overflow is impossible there.
82581         Fix off-by-one typo that caused unnecessary reallocation.
82582
82583 2001-11-27  Jim Meyering  <meyering@lucent.com>
82584
82585         * lib/tempname.c: Merge with version from libc.
82586         * lib/regex.c: Likewise.
82587
82588         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82589         systems for which STDC_HEADERS is 0, it was not included, resulting in
82590         a warning about an integer-to-pointer conversion problem with getenv.
82591         Reported by Volker Borchert.
82592
82593 2001-11-26  Jim Meyering  <meyering@lucent.com>
82594
82595         * lib/gtod.h: Remove file.
82596         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82597         * lib/gettimeofday.c: Don't include gtod.h.
82598         (GTOD_init): Remove function.
82599         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82600         Suggestion from Volker Borchert.
82601
82602 2001-11-23  Jim Meyering  <meyering@lucent.com>
82603
82604         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82605         it.
82606         * lib/hash.c (struct hash_table): Define it here instead.
82607
82608 2001-11-22  Jim Meyering  <meyering@lucent.com>
82609
82610         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82611
82612 2001-11-20  Jim Meyering  <meyering@lucent.com>
82613
82614         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82615         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82616
82617 2001-11-19  Jim Meyering  <meyering@lucent.com>
82618
82619         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82620         directory.  Use "conftestXXXXXX" as the template.
82621         Suggestion from Paul Eggert.
82622
82623         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82624         immediately, so the test doesn't mistakenly hit the max-open-files
82625         limit.
82626
82627 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82628
82629         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82630         (TEMPORARIES): New macro.
82631         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82632         removes an artificial limitation (e.g. HP-UX 10.20, where
82633         TMP_MAX is 17576).
82634
82635 2001-11-18  Jim Meyering  <meyering@lucent.com>
82636
82637         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82638
82639 2001-11-18  Jim Meyering  <meyering@lucent.com>
82640
82641         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82642         on SunOS 4.
82643
82644         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82645         files will be created before anything else.
82646
82647 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82648
82649         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82650         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82651
82652 2001-11-17  Jim Meyering  <meyering@lucent.com>
82653
82654         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82655         Prompted by a report from Bob Proulx.
82656
82657         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82658         Instead, require UTILS_FUNC_MKSTEMP.
82659
82660 2001-11-17  Jim Meyering  <meyering@lucent.com>
82661
82662         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82663         Now, that's done as part of AC_FUNC_STRTOD.
82664
82665 2001-11-17  Jim Meyering  <meyering@lucent.com>
82666
82667         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82668         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82669         rather than group writable.  Patch by Juan F. Codagnone.
82670
82671         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82672         xrealloc, Instead, include "xalloc.h".
82673
82674         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82675         Remove explicit declarations of xmalloc, xrealloc,
82676         and xstrdup.  Instead, include "xalloc.h".
82677
82678         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82679         unlocked-io.h.
82680         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82681         Likewise.
82682         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82683
82684         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82685         Reported by Padraig Brady.
82686
82687         * lib/mkstemp.c: #undef mkstemp.
82688         Include config.h.
82689         (rpl_mkstemp): Rename from mkstemp.
82690         Protoize.
82691
82692 2001-11-16  Jim Meyering  <meyering@lucent.com>
82693
82694         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82695         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82696         determine the amount of total physical memory, use pstat_getstatic.
82697         HPUX-11 doesn't define _SC_PHYS_PAGES.
82698         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82699         If sysconf couldn't be used to determine the amount of available
82700         physical memory, use both pstat_getstatic and pstat_getdynamic.
82701         Based on a patch from Bob Proulx.
82702
82703 2001-11-10  Jim Meyering  <meyering@lucent.com>
82704
82705         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82706         (jm_PREREQ): Use it.
82707
82708 2001-11-09  Jim Meyering  <meyering@lucent.com>
82709
82710         * m4/jm-macros.m4: Require autoconf-2.52f.
82711         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82712         Use these AC_-prefixed names, not the AM_-prefixed ones.
82713
82714         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82715
82716 2001-11-05  Jim Meyering  <meyering@lucent.com>
82717
82718         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82719
82720 2001-11-04  Jim Meyering  <meyering@lucent.com>
82721
82722         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82723         $DEFS.
82724
82725 2001-11-03  Jim Meyering  <meyering@lucent.com>
82726
82727         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82728         of AC_DEFUN.
82729
82730         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82731         know the name of the variable in the macro definition.
82732
82733 2001-11-03  Jim Meyering  <meyering@lucent.com>
82734
82735         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82736         in argmatch_to_argument call.
82737
82738         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82739         argument.
82740
82741         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82742         e.g., a fault due to an attempt to free a NULL pointer.
82743
82744 2001-11-01  Jim Meyering  <meyering@lucent.com>
82745
82746         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82747         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82748
82749 2001-11-01  Jim Meyering  <meyering@lucent.com>
82750
82751         * lib/dirfd.c, lib/dirfd.h: New files.
82752         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82753
82754         * lib/hash.c (hash_print) [TESTING]: Clean up.
82755
82756 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82757
82758         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82759         to avoid a warning if -Wall.
82760
82761 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82762
82763         * README: New file
82764         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82765         (per RMS's instructions, this is now the canonical source)
82766         * lgpl/, gpl/: New directories.
82767
82768 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82769
82770         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82771
82772 2001-10-21  Jim Meyering  <meyering@lucent.com>
82773
82774         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82775         this code would end up calling gettext even in packages built
82776         with --disable-nls.
82777         * lib/getopt.c (_): Likewise.
82778         * lib/regex.c (_): Likewise.
82779
82780 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82781
82782         * m4/error.m4 (jm_PREREQ_ERROR):
82783         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82784         AC_FUNC_STRERROR_R does that.
82785         Check for strerror declaration.
82786
82787         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82788         are supposed to have them these days.
82789         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82790         Merge changes from latest Autoconf CVS.
82791         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82792         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82793         POSIX decided to standardize on the int flavor of strerror_r.
82794
82795 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82796
82797         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82798         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82799         Use strerror_r that is only a macro, even if it is not a function.
82800         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82801         (private_strerror): Use prototypes, not old-style function definition.
82802         (print_errno_message): New function.
82803         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82804         char*-flavored one.
82805         (error_tail, error, error_at_line): Use it.
82806
82807 2001-10-11  Jim Meyering  <meyering@lucent.com>
82808
82809         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82810         and quote_n (1, ... to avoid clobbering a buffer.
82811
82812 2001-10-05  Jim Meyering  <meyering@lucent.com>
82813
82814         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82815         hash-pjw.h.
82816         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82817         * lib/hash-pjw.h: New file.
82818
82819 2001-09-30  Jim Meyering  <meyering@lucent.com>
82820
82821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82822         `struct fsstat' has the `f_fstypename' member.
82823         Use that to define FS_TYPE, which is now used to make
82824         the getfsstat link test tighter.
82825
82826 2001-09-30  Jim Meyering  <meyering@lucent.com>
82827
82828         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82829         Include <sys/ucred.h>, for Apple Darwin.
82830         Include sys/mount.h and sys/fs_types.h only if available.
82831         (FS_TYPE): Define.
82832         (read_filesystem_list): Use FS_TYPE.
82833
82834 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82835
82836         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82837         a boolean context.
82838
82839 2001-09-29  Jim Meyering  <meyering@lucent.com>
82840
82841         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82842         [one-argument getmntent function]): Include stdio.h before mntent.h.
82843         SunOS 4.1.x needs it for the declaration of `FILE'.
82844         Patch by Volker Borchert.
82845
82846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82847         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82848         sys/fs_types.h, and make the link-test for getfsstat guard #include
82849         directives with appropriate #if HAVE_*_H tests so that we can
82850         detect getfsstat on Apple Darwin1.3.7 systems.
82851         Reported by Nelson Beebe.
82852         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82853
82854 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82855
82856         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82857         #defines strtoimax.  Also treat the other strto* functions
82858         like strtoimax.
82859
82860         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82861         Check for strtoul and strtoumax,
82862         as those declarations are made even in the signed case.
82863         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82864         Likewise, for strtol and strtoimax.
82865
82866 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82867
82868         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82869         #defines strtoimax.  Also treat the other strto* functions
82870         like strtoimax.
82871
82872         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82873         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82874         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82875
82876 2001-09-26  Jim Meyering  <meyering@lucent.com>
82877
82878         Most macros in unlocked-io.h had the wrong number of arguments.
82879         * lib/gen-uio: New script.
82880         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82881         * lib/unlocked-io.hin: Remove file.
82882         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82883         rather than trying to embed it here.
82884         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82885         Reported by Padraig Brady.
82886
82887 2001-09-25  Volker Borchert  <bt@teknon.de>
82888
82889         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82890         `result'.
82891
82892 2001-09-24  Jim Meyering  <meyering@lucent.com>
82893
82894         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82895
82896 2001-09-23  Jim Meyering  <meyering@lucent.com>
82897
82898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82899         instead of the mere test for existence of mntent.h.  The latter
82900         would get a false-positive on AIX 3.4 systems.
82901         In the outer getmntent if-block, don't die if neither of the getmntent
82902         tests succeeds.  Instead, just fall through and continue with the
82903         remaining tests.
82904
82905 2001-09-23  Jim Meyering  <meyering@lucent.com>
82906
82907         * lib/mountlist.c: Remove useless parentheses in #if directives.
82908         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82909         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82910
82911 2001-09-22  Jim Meyering  <meyering@lucent.com>
82912
82913         * m4/gettext.m4: New file.  From gettext.
82914         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82915         * m4/progtest.m4: Likewise
82916         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82917         * m4/glibc21.m4: Likewise.
82918
82919         * m4/libintl.m4: Remove.  No longer used.
82920
82921 2001-09-22  Jim Meyering  <meyering@lucent.com>
82922
82923         * lib/localcharset.c: Update from latest gettext.
82924         * lib/config.charset: Likewise.
82925
82926 2001-09-20  Jim Meyering  <meyering@lucent.com>
82927
82928         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82929         strtoimax.
82930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82931         strtoumax.
82932
82933 2001-09-20  Jim Meyering  <meyering@lucent.com>
82934
82935         * lib/xstrtol.c (strtoimax): Guard declaration with
82936         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82937         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82938         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82939         (strtoumax): Likewise, for completeness (it wasn't necessary).
82940
82941 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82942
82943         * lib/strtoimax.c (HAVE_LONG_LONG):
82944         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82945         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82946         to work around bug in IBM C compiler.
82947
82948 2001-09-17  Jim Meyering  <meyering@lucent.com>
82949
82950         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82951         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82952         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82953         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82954         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82955         whenever the right hand side need not be expanded by the shell.
82956
82957 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82958
82959         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82960         library.  It's not correct, as some older glibcs are buggy.
82961         fnmatch wasn't fixed until glibc 2.2.
82962
82963         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82964         special shell magic here.
82965
82966 2001-09-16  Jim Meyering  <meyering@lucent.com>
82967
82968         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82969         * m4/jm-macros.m4: Require it.
82970
82971 2001-09-16  Jim Meyering  <meyering@lucent.com>
82972
82973         * lib/mkdir.c: New file.
82974
82975 2001-09-15  Jim Meyering  <meyering@lucent.com>
82976
82977         * m4/jm-macros.m4: Check for help2man.
82978
82979 2001-09-11  Jim Meyering  <meyering@lucent.com>
82980
82981         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82982         The body, by Paul Eggert, was moved here from configure.in.
82983         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82984
82985 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82986
82987         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82988         (jm_PREREQ): Use it.
82989
82990 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82991
82992         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82993         Use ssize_t, not int, to store result of readlink.
82994         Check for ssize_t overflow as well as size_t overflow,
82995         as POSIX says the result of readlink is implementation-defined
82996         when ssize_t overflows.
82997         Remove unnecessary cast to char*.
82998         Use free+malloc instead of realloc, as the storage doesn't need
82999         to be preserved and it's clearer and can be more efficient that way.
83000         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83001         * lib/xreadlink.h (xreadlink): Update prototype.
83002
83003 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83004
83005         * lib/xgetcwd.c: Revert some of the previous change; intead,
83006         fix the HAVE_GETCWD_NULL code to behave more like the
83007         !HAVE_GETCWD_NULL code used to.
83008
83009         Include "xalloc.h".
83010         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83011         invoke xalloc_die.
83012
83013 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83014
83015         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83016         sys/param.h, as pathmax.h includes them.
83017
83018 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83019
83020         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83021         (jm_PREREQ_XGETCWD): New macro.
83022
83023         * m4/getcwd.m4: New file.
83024
83025 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83026
83027         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83028         like the HAVE_GETCWD_NULL code.
83029         Include pathmax.h if not HAVE_GETCWD.
83030         Do not include xalloc.h.
83031         (INITIAL_BUFFER_SIZE): New symbol.
83032         Do not use xmalloc / xrealloc, since the caller is responsible for
83033         handling errors.  Preserve errno around `free' during failure.
83034         Do not overrun buffer when using getwd.
83035
83036 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83037
83038         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83039         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83040         getcwd (NULL, 0).
83041
83042 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83043
83044         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83045         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83046         spotted by Jim Meyering.
83047
83048 2001-09-03  Jim Meyering  <meyering@lucent.com>
83049
83050         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83051         failure.
83052
83053 2001-09-02  Jim Meyering  <meyering@lucent.com>
83054
83055         * lib/error.c: Update from GNU libc.
83056
83057 2001-09-01  Jim Meyering  <meyering@lucent.com>
83058
83059         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83060         Used by df.
83061
83062 2001-09-01  Jim Meyering  <meyering@lucent.com>
83063
83064         * lib/xreadlink.c: New file.
83065         * lib/xreadlink.h: New file.
83066         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83067         xreadlink.h.
83068
83069         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83070         doesn't conflict with sparc Solaris 7's definition in
83071         /usr/include/sys/int_types.h.
83072
83073         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83074         files.
83075         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83076         and strncasecmp as r-values.  Unixware didn't have declarations.
83077
83078 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83079
83080         * lib/xstrtol.h: Add copyright notice.
83081         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83082         LONGINT_INVALID_SUFFIX_CHAR.
83083
83084 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83085
83086         * lib/xstrtol.c (strtoimax): New decl.
83087
83088 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83089
83090         * lib/xgetcwd.c: Don't include pathmax.h.
83091         Include stdlib.h and unistd.h if available.
83092         Include xalloc.h.
83093         (xmalloc, xstrdup, free): Remove decls.
83094         (xgetcwd): Don't assume sizes fit in unsigned.
83095         Check for overflow when computing sizes.
83096         Simplify reallocation code.
83097
83098 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83099
83100         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83101         a directory's st_size can have an arbitrary value, so the old
83102         usage could waste an arbitrary amount of memory.  All uses
83103         changed.
83104         * lib/savedir.h: Update prototype.
83105
83106 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83107
83108         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83109
83110         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83111         old strtoimax.c.
83112
83113         Also, make the following further changes to make this file's
83114         configuration more similar to that of strtol.c:
83115         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83116         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83117         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83118         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83119         changed to signed values.
83120
83121         And make the following changes as well:
83122         Fix copyright notice, as 1999 was missing.
83123         (verify): New macro.
83124         (strtoimax): Check sizes at compile-time, not run-time.
83125         Prefer strtol to strtoll if both work.
83126         (main): Remove; it was not that useful and was a pain to maintain.
83127
83128         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83129
83130 2001-08-31  Jim Meyering  <meyering@lucent.com>
83131
83132         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83133         Use an initial, malloc'd, buffer of length 128 rather than
83134         a statically allocated one of length 1024.
83135
83136 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83137
83138         Simplify code, partly by assuming autoconf 2.52 semantics.
83139
83140         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83141
83142         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83143         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83144         All uses removed.
83145         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83146         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83147         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83148         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83149         jm_AC_HEADER_INTTYPES_H.
83150         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83151
83152         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83153
83154         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83155         Quote first arg of AC_DEFUN.
83156         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83157         since they are needed to parse the include file even if we need
83158         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83159         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83160         but with opposite signedness.
83161
83162 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83163
83164         Merge 'exclude' changes from tar 1.13.22.
83165         This fixes one or two unlikely storage allocation overflow bugs,
83166         but doesn't change user-visible behavior otherwise.
83167
83168 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83169
83170         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83171         (jm_PREREQ_EXCLUDE): New macro.
83172
83173 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83174
83175         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83176         tm to be declared.
83177
83178 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83179
83180         * lib/hash.c: Remove '2001' from copyright notice.
83181
83182 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83183
83184         * lib/full-write.h: New file.
83185         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83186         * lib/full-write.c: Correct credits, as cccp.c no longer
83187         exists and anyway it was so heavily changed from the old cccp
83188         code as to be unrecognizable.  Include full-write.h.
83189         (full_write): Return size_t, with short writes meaning failure.
83190         All callers changed.  This fixes a bug with large buffers
83191         on 64-bit hosts.
83192         * lib/utime.c: Include full-write.h.
83193
83194 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83195
83196         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83197         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83198         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83199         Include if available.
83200         (<xalloc.h>): Include
83201         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83202         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83203         collide with FNM macros.
83204         (struct patopts): New struct.
83205         (struct exclude): Use it, as exclude patterns now come with options.
83206         (new_exclude): Support above changes.
83207         (new_exclude, add_exclude_file):
83208         Initial size must now be a power of two to simplify overflow checking.
83209         (free_exclude, fnmatch_no_wildcards): New function.
83210         (excluded_filename): No longer requires options arg, as the options
83211         are determined by add_exclude.  Now returns bool, not int.
83212         (excluded_filename, add_exclude):
83213         Add support for the fancy new exclusion options.
83214         (add_exclude, add_exclude_file): Now takes int options arg.
83215         Check for arithmetic overflow when computing sizes.
83216         (add_exclude_file): xrealloc might modify errno, so don't
83217         realloc until after errno might be used.
83218
83219         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83220         New macros.
83221         (free_exclude): New decl.
83222         (add_exclude, add_exclude_file): Now takes int options arg.
83223         (excluded_filename): No longer requires options arg, as the options
83224         are determined by add_exclude.  Now returns bool, not int.
83225
83226 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83227
83228         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83229
83230 2001-08-27  Jim Meyering  <meyering@lucent.com>
83231
83232         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83233
83234         * lib/version-etc.c (N_): Remove definition.
83235         Revert most of last change.
83236         Instead, simply don't mark the `Copyright...' string for translation.
83237         Based on advice from Paul Eggert.
83238
83239         * lib/strtoxmax.c: Tweak comment.
83240
83241 2001-08-26  Jim Meyering  <meyering@lucent.com>
83242
83243         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83244
83245         * m4/xstrtoimax.m4: New file.
83246         * m4/xstrtoumax.m4: Add comments explaining why we
83247         AC_REPLACE_FUNCS(strtol).
83248
83249 2001-08-26  Jim Meyering  <meyering@lucent.com>
83250
83251         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83252         of copyright with `%s' so translators don't get an untranslated
83253         message in 2002.
83254         (COPYRIGHT_YEAR): Define.
83255         (version_etc): Use fprintf rather than fputs.
83256         Suggestion from Ulrich Drepper.
83257
83258         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83259
83260         * lib/strtoll.c: New file, from GNU libc.
83261         * lib/xstrtoimax.c: New file.
83262
83263         * lib/xstrtol.h: Add xstrtoimax.
83264         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83265         * lib/strtoimax.c: New file.  Likewise, but first define
83266         STRTOUXMAX_SIGNED.
83267
83268         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83269         ...
83270         * lib/strtoxmax.c: ... then renamed to this.
83271
83272 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83273
83274         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83275         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83276         (jm_AC_TYPE_INTMAX_T): New macro.
83277         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83278
83279         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83280
83281         * m4/longlong.m4: Renamed from ulonglong.m4.
83282         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83283         * m4/uintmax_t.m4: Removed.
83284
83285 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83286
83287         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83288         Port to Solaris 8, where 'sed' requires a space after the 'r'
83289         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83290         Redirect output to $tmp just once.
83291
83292 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83293
83294         * lib/addext.c (<errno.h>): Include.
83295         (errno): Declare if not defined.
83296         (addext): Work correctly when pathconf returns -1 and leaves
83297         errno alone because there is no limit.  Also, work even if
83298         pathconf returns a value greater than SIZE_MAX.
83299
83300 2001-08-12  Jim Meyering  <meyering@lucent.com>
83301
83302         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83303         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83304         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83305         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83306         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83307         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83308         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83309         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83310         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83311         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83312         utime.m4, utimes.m4, xstrtoumax.m4:
83313         Quote the first argument in each use of AC_DEFUN.
83314
83315 2001-08-12  Jim Meyering  <meyering@lucent.com>
83316
83317         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83318         Simply `return getcwd (NULL, 0);'.
83319         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83320         Use 1300 as initial value for length, not PATH_MAX.
83321
83322         * lib/pathmax.h: Clean up cpp syntax.
83323
83324 2001-08-12  Jim Meyering  <meyering@lucent.com>
83325
83326         * lib/gettimeofday.c: New file.
83327         * lib/gtod.h: New file.
83328         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83329
83330 2001-08-05  Jim Meyering  <meyering@lucent.com>
83331
83332         * m4/jm-macros.m4: Require autoconf-2.52.
83333
83334 2001-08-04  Jim Meyering  <meyering@lucent.com>
83335
83336         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83337         stmt, to get in sync with glibc.
83338
83339 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83340
83341         The following changes are from gettext 0.10.39 as maintained by
83342         Bruno Haible.
83343
83344         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83345         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83346         with inverted sense.  All uses changed.
83347
83348         * lib/mbswidth.c: Don't include <limits.h>.
83349         Include <stdlib.h> and <string.h> unconditionally.
83350         (iswcntrl, mbsinit, ISCNTRL): New macros.
83351         (mbsnwidth): Use K&R style function declarations.
83352         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83353         can optimize it when MB_CUR_MAX == 1.
83354         The width of control characters is zero, not 1.
83355
83356 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83357
83358         The following changes are from gettext 0.10.39 as maintained by
83359         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83360
83361         * m4/codeset.m4: Upgrade to serial AM1.
83362         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83363         all uses changed.  Quote first arg of AC_DEFUN.
83364         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83365
83366         * m4/iconv.m4: Upgrade to serial AM2.
83367         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83368         Add --with-libconv-prefix.
83369         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83370         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83371         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83372         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83373         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83374
83375         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83376         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83377         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83378         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83379         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83380         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83381         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83382         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83383         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83384
83385         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83386         string.h any more.
83387
83388         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83389         not the default value.
83390
83391         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83392         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83393         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83394         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83395         Also check for iswcntrl, used for wcwidth fallback.
83396         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83397         to Autoconf 2.13.
83398
83399 2001-08-03  Jim Meyering  <meyering@lucent.com>
83400
83401         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83402         as it was in the original.  Reported by Paul Eggert.
83403
83404 2001-07-16  Jim Meyering  <meyering@lucent.com>
83405
83406         * m4/gettimeofday.m4: New file.
83407         Prompted by a report from Bernhard Baehr.
83408
83409 2001-07-15  Jim Meyering  <meyering@lucent.com>
83410
83411         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83412         stuff. Now it's in ../Makefile.cfg.
83413
83414 2001-07-15  Jim Meyering  <meyering@lucent.com>
83415
83416         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83417         (BUILT_SOURCES): Add unlocked-io.h.
83418         (io_functions): Define.
83419         (unlocked-io.h): New rule.
83420         (DISTCLEANFILES): Add unlocked-io.h.
83421         (all-local): Depend on unlocked-io.h, to ensure it is created.
83422
83423         * lib/unlocked-io.hin: New file
83424
83425         * lib/regex.c: Update from glibc.
83426
83427 2001-07-05  Jim Meyering  <meyering@lucent.com>
83428
83429         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83430         recommendation.
83431         (libfetish_a_SOURCES): Put all .h files here instead.
83432         Remove a thus-exposed (better checks in automake) duplicate and
83433         two unnecessary .h files.
83434
83435 2001-07-04  Jim Meyering  <meyering@lucent.com>
83436
83437         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83438         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83439         distcheck failure.
83440
83441 2001-07-02  Jim Meyering  <meyering@lucent.com>
83442
83443         The following changes were prompted by suggestions from Bruno Haible.
83444
83445         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83446         is now generated.
83447         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83448         definition of EXTRA_DIST.
83449         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83450         ensure that the generated file is created/updated whenever the list
83451         of $(unlocked_functions) is changed.
83452         (jm-glibc-io.m4): New rule.
83453         (unlocked-io.h): New rule -- currently unused.
83454
83455 2001-06-24  Jim Meyering  <meyering@lucent.com>
83456
83457         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83458         unmatched right bracket, rather than kludging it with an extra,
83459         falsely-matching quote in a comment.  Patch by Akim Demaille.
83460
83461 2001-06-11  Jim Meyering  <meyering@lucent.com>
83462
83463         * lib/regex.c: Update from GNU libc.
83464
83465 2001-05-27  Jim Meyering  <meyering@lucent.com>
83466
83467         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83468         Check for ut_type in struct utmp.
83469
83470 2001-05-27  Jim Meyering  <meyering@lucent.com>
83471
83472         * lib/readutmp.h (UT_TYPE): Define.
83473
83474 2001-05-24  Jim Meyering  <meyering@lucent.com>
83475
83476         * lib/argmatch.c: Include "quote.h".
83477         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83478         quote function.  Reported by Göran Uddeborg.
83479
83480 2001-05-22  Jim Meyering  <meyering@lucent.com>
83481
83482         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83483         now that we use the package-supplied version unconditionally.
83484         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83485
83486 2001-05-21  Jim Meyering  <meyering@lucent.com>
83487
83488         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83489         shell syntax errors.
83490
83491 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83492
83493         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83494
83495 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83496
83497         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83498         Don't bother to check library strftime, since
83499         we'll be using our own my_strftime function anyway.
83500         Define my_strftime instead of strftime.
83501
83502 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83503
83504         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83505         which is not yet declared.
83506
83507 2001-05-15  Jim Meyering  <meyering@lucent.com>
83508
83509         * m4/regex.m4: Use proper quoting so brackets appear in the test
83510         program.
83511         Reported by, and with help from, Bruno Haible.
83512
83513 2001-05-13  Jim Meyering  <meyering@lucent.com>
83514
83515         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83516         undefined.
83517
83518 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83519
83520         dirname code cleanup.  base_name now behaves more compatibly
83521         with POSIX basename when given file names that have trailing
83522         slashes, and similarly for dir_name.  Add new primitives
83523         base_len and dir_len.  Put the directory-name-related decls
83524         into dirname.h.
83525
83526         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83527         * lib/backupfile.c (base_name): Likewise.
83528         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83529         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83530         * lib/makepath.c (strip_trailing_slashes): Likewise.
83531         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83532         ISSLASH): Likewise.
83533         * lib/rename.c (strip_trailing_slashes): Likewise.
83534         * lib/same.c (base_name): Likewise.
83535         * lib/stripslash.c (ISSLASH): Likewise.
83536
83537         * lib/addext.c: Include <dirname.h> after size_t is defined.
83538         * lib/backupfile.c: Likewise.
83539
83540         * lib/addext.c (addext): Use base_len to trim redundant
83541         trailing slashes instead of doing it ourselves.
83542         But do not trim the last slash if it is not redundant.
83543
83544         * lib/backupfile.c (find_backup_file_name,
83545         max_backup_version): Use base_len instead of rolling it ourselves.
83546         Handle the case of "" and (on DOS) "C:" correctly.
83547
83548         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83549         needed. Include <string.h>, <dirname.h>.
83550         (base_name): Allow file names ending in slashes, other than names
83551         that are all slashes.  In this case, return the basename followed
83552         by the slashes.  This is more general, and can be used in places
83553         where the original base_name purposely had an assertion failure.
83554         (base_len): New function.
83555
83556         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83557         Do not include <assert.h>; no longer needed.
83558         Include xalloc.h.
83559         (memrchr): Remove decl.
83560         (dir_name_r): Remove.
83561         (dir_len): Renamed from dirlen.  All callers changed.
83562         Rewrite in terms of base_name, for simplicity and consistency.
83563         (dir_name): Never return NULL.  All callers changed.
83564         Do not include <stdlib.h> in test program; no longer needed.
83565         return 0; is fine for test program.
83566
83567         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83568         New macros.
83569         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83570
83571         * lib/path-concat.c (path_concat): Use base_len to compute
83572         base length, not strlen; this means we cannot rely on memcpy
83573         to null-terminate.
83574
83575         * lib/same.c (STREQ): Remove.
83576         (same_name): Handle the case where the basename ends in trailing '/'.
83577
83578         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83579         a slash was stripped.  Do not strip the last slash after a
83580         file system prefix.
83581
83582 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83583
83584         * lib/Makefile.am (libfetish_a_SOURCES):
83585         Add strftime.c, since we now compile it on all hosts.
83586
83587         * lib/strftime.c (my_strftime):
83588         Define to nstrftime if emacs, but only if my_strftime is not defined.
83589         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83590         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83591         Add one more extra argument: a nanoseconds value.
83592         All uses changed.
83593         (ns): New macro.
83594         (my_strftime function): Add %N format.
83595         (emacs_strftimeu): Renamed from emacs_strftime,
83596         with extra ut argument.
83597
83598 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83599
83600         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83601
83602 2001-04-21  Jim Meyering  <meyering@lucent.com>
83603
83604         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83605         doesn't interfere.
83606
83607 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83608
83609         * m4/ftruncate.m4: Check for chsize.
83610         Link with ftruncate.o unconditionally if ftruncate is missing.
83611         This was required when cross-compiling to i586-mingw32msvc.
83612
83613 2001-04-08  Jim Meyering  <meyering@lucent.com>
83614
83615         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83616         recomputed; that's necessary when the offset spans a DST transition.
83617         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83618
83619 2001-04-02  Jim Meyering  <meyering@lucent.com>
83620
83621         * lib/regex.h, regex.c: Update from GNU libc.
83622
83623 2001-03-24  Jim Meyering  <meyering@lucent.com>
83624
83625         * m4/jm-macros.m4: Require autoconf-2.49d.
83626
83627 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83628
83629         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83630
83631 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83632
83633         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83634
83635 2001-03-17  Jim Meyering  <meyering@lucent.com>
83636
83637         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83638         now that the version in autoconf is equivalent.
83639         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83640
83641         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83642         Suggestion from Akim Demaille.
83643
83644         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83645         (jm_PREREQ_TEMPNAME): New function.
83646
83647 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83648
83649         * lib/tempname.c (uint64_t): Define to uintmax_t if
83650         not defined, and if UINT64_MAX is not defined.
83651         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83652         Reported by John David Anglin.
83653
83654 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83655
83656         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83657         resolve alias if codeset is empty.
83658         * lib/config.charset (BeOS): Use wildcard syntax.
83659
83660 2001-03-13  Jim Meyering  <meyering@lucent.com>
83661
83662         * lib/path-concat.c (path_concat)
83663         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83664         concatenating e.g., `C:' and `foo'.
83665         From Bruno Haible.
83666
83667 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83668
83669         * lib/localcharset.c (locale_charset): Don't use
83670         setlocale(LC_CTYPE,NULL). Don't return NULL.
83671         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83672
83673 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83674
83675         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83676         support for DOS/DJGPP.
83677
83678 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83679
83680         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83681         lacks mkstemp.  Compile our own tempname.c if we compile our own
83682         mkstemp.c, as mkstemp relies on tempname.
83683
83684 2001-03-01  Jim Meyering  <meyering@lucent.com>
83685
83686         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83687         AH_VERBATIM really does output its argument verbatim.
83688
83689 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83690
83691         * lib/Makefile.am (libfetish_a_SOURCES):
83692         Add dup-safer.c, fopen-safer.c.
83693         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83694
83695         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83696         * lib/unistd-safer.h: New files.
83697
83698 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83699
83700         The mkstemp replacement is taken from glibc 2.2.2, with some
83701         portability fixes for use outside glibc, as follows:
83702
83703         * lib/tempname.c (struct_stat64): New macro.
83704         (direxists, __gen_tempname): Use it.
83705         This avoids a portability problem with Solaris 8.
83706
83707         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83708         (<stddef.h>, <stdint.h>, <string.h>):
83709         Include only if STDC_HEADERS || _LIBC.
83710         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83711         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83712         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83713         (__set_errno): Define this macro if <errno.h> doesn't.
83714         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83715         Define these macros if <stdio.h> doesn't.
83716         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83717         Define these macros if <sys/stat.h>
83718         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83719         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83720         __xstat64): Define if not _LIBC.
83721         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83722         (__gen_tempname): Invoke gettimeofday only if
83723         HAVE_GETTIMEOFDAY || _LIBC;
83724         otherwise, fall back on plain "time".
83725         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83726
83727         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83728
83729         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83730
83731 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83732
83733         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83734
83735 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83736
83737         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83738         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83739         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83740         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83741
83742 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83743
83744         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83745         Remove workaround macros for hosts that have mbrtowc but not
83746         mbstate_t, as we now insist on proper declarations for both
83747         before using mbrtowc.
83748
83749 2001-02-17  Jim Meyering  <meyering@lucent.com>
83750
83751         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83752         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83753         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83754         UnixWare 7.1.1.
83755
83756         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83757         rather than AC_CACHE_VAL.
83758
83759 2001-02-17  Jim Meyering  <meyering@lucent.com>
83760
83761         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83762         around included file name.
83763
83764         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83765
83766         * lib/strftime.c: Update from GNU libc (the only changes were to
83767         comments).
83768
83769 2001-02-17  Jim Meyering  <meyering@lucent.com>
83770
83771         * lib/regex.c: Update from libc.
83772
83773 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83774
83775         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83776         clash.
83777
83778 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83779
83780         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83781         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83782         Reported by Mark Hounschell via Paul Eggert.
83783
83784 2001-02-07  Jim Meyering  <meyering@lucent.com>
83785
83786         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83787
83788 2001-02-05  Jim Meyering  <meyering@lucent.com>
83789
83790         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83791         it includes the patch required for `large file' support with at least
83792         HP-UX's 10.20 /bin/cc.
83793
83794 2001-02-03  Jim Meyering  <meyering@lucent.com>
83795
83796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83797         AS_IF, now that it works once again (mysteriously).
83798         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83799
83800 2001-01-30  Jim Meyering  <meyering@lucent.com>
83801
83802         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83803         * m4/chown.m4: Rename conftestchown to conftest.chown.
83804         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83805         s/conftestdir2/conftest.d2/.
83806         * m4/utimes.m4: s/conftestdata/conftest.data/
83807         Inspired by Pavel Roskin's change in autoconf.
83808
83809 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83810
83811         * lib/config.charset: Update for FreeBSD 4.2.
83812
83813 2001-01-27  Jim Meyering  <meyering@lucent.com>
83814
83815         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83816         a use of AS_IF.
83817         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83818
83819 2001-01-26  Jim Meyering  <meyering@lucent.com>
83820
83821         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83822         quotearg.c includes it.
83823
83824 2001-01-26  Jim Meyering  <meyering@lucent.com>
83825
83826         * lib/quotearg.c: Include stddef.h.
83827         * lib/quote.c: Include stddef.h.
83828         Reported by Axel Kittenberger.
83829
83830         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83831         line in double quotes so that it evokes a better diagnostic.
83832         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83833         Reported by Axel Kittenberger.
83834
83835 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83836
83837         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83838         as if it was a `charset'.
83839
83840 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83841
83842         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83843         has const.
83844
83845 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83846
83847         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83848         to avoid a warning.  Add back 'const' to inptr.
83849
83850 2001-01-20  Jim Meyering  <meyering@lucent.com>
83851
83852         Be sure that headers are checked before used in code compiled
83853         for the type checks.
83854         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83855         In place of that, invoke jm_CHECK_ALL_TYPES.
83856         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83857         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83858         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83859         The check for ssize_t was mistakenly run before the test for unistd.h.
83860
83861         The configure-time check for stdbool.h was missing.
83862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83863         (jm_PREREQ_HASH): New function.
83864
83865 2001-01-17  Jim Meyering  <meyering@lucent.com>
83866
83867         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83868         for autoconf-2.49c.
83869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83870
83871 2001-01-16  Jim Meyering  <meyering@lucent.com>
83872
83873         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83874         From Bruno Haible.
83875
83876 2001-01-14  Jim Meyering  <meyering@lucent.com>
83877
83878         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83879         foo and bar.  Create conftestdir/ in the script, not in the C code.
83880         Remove directories in the script, not in the C code.
83881         Remove conftestdir{,2} before trying to create the directory.
83882         Make the entire configure script fail if the mkdir fails.
83883
83884 2001-01-14  Jim Meyering  <meyering@lucent.com>
83885
83886         * lib/rename.c: New file.  From Volker Borchert.
83887         Include stdlib.h, string.h or strings.h, and xalloc.h.
83888         Use strip_trailing_slashes rather than open-coding it.
83889
83890 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83891
83892         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83893
83894 2001-01-03  Jim Meyering  <meyering@lucent.com>
83895
83896         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83897         of local `inptr' to avoid warning with some system declarations of
83898         iconv.
83899
83900 2001-01-02  Volker Borchert  <bt@teknon.de>
83901
83902         * m4/rename.m4: New file.
83903         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83904
83905 2001-01-01  Jim Meyering  <meyering@lucent.com>
83906
83907         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83908         even on systems with utmpx.h.  It's necessary for the declaration of
83909         utmp's ut_user member.  Reported by Andreas Jaeger.
83910
83911         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83912         available. They are required for the declarations of getgrgid and
83913         getpwuid resp.
83914         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83915         Reported by Andreas Jaeger.
83916
83917 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83918
83919         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83920         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83921         so `make install' also works in VPATH builds.
83922
83923 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83924
83925         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83926         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83927         can be used in subdirectories.
83928
83929 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83930
83931         * lib/modechange.c: Do not assume that mode_t uses the
83932         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83933         the other-execute bit of FOO even if S_IXOTH != 1.
83934
83935         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83936         WOTH, XOTH, ALLM): New macros.
83937         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83938          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83939         Use them.
83940         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83941         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83942         (mode_compile):
83943         No need to use uintmax_t; unsigned long is long enough.
83944         Don't bother to get suffix since we don't use it.
83945
83946 2000-12-26  Jim Meyering  <meyering@lucent.com>
83947
83948         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83949         better with autoheader.
83950
83951 2000-12-24  Jim Meyering  <meyering@lucent.com>
83952
83953         * lib/hash.c (is_prime): Return explicit boolean values.
83954         (hash_get_first): Return NULL to appease Irix5.6's 89.
83955         Reported by Nelson Beebe.
83956
83957 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83958
83959         * lib/localcharset.c (locale_charset): Add support for Win32.
83960
83961 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83962
83963         * lib/physmem.h, lib/physmem.c: New files.
83964
83965         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83966         (noinst_HEADERS): Add physmem.h.
83967
83968         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83969         't' for compatibility with Solaris 8 sort.
83970
83971 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83972
83973         * lib/config.charset: Add support for BeOS.
83974
83975 2000-12-17  Jim Meyering  <meyering@lucent.com>
83976
83977         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83978         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83979
83980 2000-12-16  Jim Meyering  <meyering@lucent.com>
83981
83982         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83983         N and M) would have treated it like `chown N:N FILE'.
83984
83985         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83986
83987 2000-12-16  Jim Meyering  <meyering@lucent.com>
83988
83989         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83990         SHELLS_FILE to a file name that's useful on djgpp systems.
83991         Include stdlib.h.
83992         (ADDITIONAL_DEFAULT_SHELLS): Define.
83993         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83994         Based mostly on a patch from Prashant TR.
83995
83996 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83997
83998         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83999         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84000         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84001
84002 2000-12-08  Andreas Schwab  <schwab@suse.de>
84003
84004         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84005         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84006
84007 2000-12-07  Jim Meyering  <meyering@lucent.com>
84008
84009         * lib/stripslash.c (ISSLASH): Define.
84010         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84011         `/'.
84012         From Prashant TR.
84013
84014         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84015         (dir_name_r): Declare this function as static.
84016         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84017         manifest itself on a name containing a mix of slashes and
84018         backslashes.
84019         Make this function work with names starting with a DOS-style
84020         drive letter and colon prefix.
84021         (dir_name): Append `.' if necessary.
84022         Based mostly on patches from Prashant TR and Eli Zaretskii.
84023
84024         * lib/dirname.h (dir_name_r): Remove prototype.
84025
84026 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84027
84028         * m4/off_t-format.m4: Remove this file.
84029         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84030
84031 2000-12-06  Jim Meyering  <meyering@lucent.com>
84032
84033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84034         replacement strtoull, we may well need the replacement strtoul, too.
84035         Check for declarations of strtoul and strtoull.
84036         Check for strtol.  Mainly as a cue to cause automake to include
84037         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84038         Check for limits.h -- strtol.c needs it.
84039
84040 2000-12-05  Jim Meyering  <meyering@lucent.com>
84041
84042         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84043
84044 2000-12-04  Jim Meyering  <meyering@lucent.com>
84045
84046         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84047         Also include memory.h, stdlib.h, unistd.h if appropriate.
84048         Reported by Andreas Jaeger (conflicting declaration of malloc).
84049
84050 2000-12-02  Jim Meyering  <meyering@lucent.com>
84051
84052         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84053         * m4/jm-macros.m4 (jm_MACROS): require it.
84054
84055 2000-12-02  Jim Meyering  <meyering@lucent.com>
84056
84057         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84058
84059 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84060
84061         * lib/memrchr.c: Include <config.h> before any system include file.
84062
84063 2000-11-30  Jim Meyering  <meyering@lucent.com>
84064
84065         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84066
84067 2000-11-30  Jim Meyering  <meyering@lucent.com>
84068
84069         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84070
84071 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84072
84073         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84074
84075 2000-11-26  Jim Meyering  <meyering@lucent.com>
84076
84077         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84078
84079 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84080
84081         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84082         size of (size_t) -1; it's not portable.
84083
84084 2000-11-17  Jim Meyering  <meyering@lucent.com>
84085
84086         * lib/strstr.c: Update from GNU libc.
84087
84088 2000-11-17  Akim Demaille  <akim@epita.fr>
84089
84090         * lib/obstack.h: Formatting changes.
84091         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84092         prevent type checking.
84093         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84094         cast the value to (void *): assigning a `foo *' to a `void *'
84095         variable is valid.
84096         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84097
84098 2000-11-16  Jim Meyering  <meyering@lucent.com>
84099
84100         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84101
84102 2000-11-11  Jim Meyering  <meyering@lucent.com>
84103
84104         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84105
84106 2000-11-10  Jim Meyering  <meyering@lucent.com>
84107
84108         * lib/obstack.h: Update from GNU libc.
84109         * lib/obstack.c: Likewise.
84110
84111 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84112
84113         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84114
84115 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84116
84117         * lib/getusershell.c (setusershell): Use rewind rather than
84118         fseek/fseeko, to avoid configuration hassles with fseeko.
84119         Don't bother opening SHELLS_FILE if shellstream is NULL;
84120         it's not necessary.
84121
84122 2000-11-05  Jim Meyering  <meyering@lucent.com>
84123
84124         * lib/makepath.h (make_dir): Declare.
84125         * lib/makepath.c (make_dir): Remove `static' attribute.
84126         Tweak a comment.
84127
84128 2000-11-04  Jim Meyering  <meyering@lucent.com>
84129
84130         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84131
84132 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84133
84134         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84135         last one in a bucket, advance to the next bucket.
84136
84137 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84138
84139         * lib/fnmatch.c: Do not comment out all the code if we are using
84140         the GNU C library, because in some cases we are replacing buggy
84141         code in the GNU C library itself.
84142
84143 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84144
84145         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84146         (regex_compile): Catch bogus \(\1\).
84147
84148 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84149
84150         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84151         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84152         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84153
84154 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84155
84156         * lib/error.h, getline.h, modechange.h:
84157         Remove "2000" from Copyright line, as the file hasn't been
84158         changed this year other than in the copyright notice.
84159
84160         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84161         was changed this year.
84162
84163 2000-10-29  Jim Meyering  <meyering@lucent.com>
84164
84165         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84166         renaming.
84167         * m4/ls-mntd-fs.m4: Likewise
84168
84169 2000-10-29  Jim Meyering  <meyering@lucent.com>
84170
84171         * lib/xstat.in: Fix grammar in comment.
84172
84173 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84174
84175         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84176         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84177         doesn't define __restrict_arr.
84178
84179 2000-10-28  Jim Meyering  <meyering@lucent.com>
84180
84181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84182         (jm_PREREQ_MEMCHR): New function.
84183
84184 2000-10-28  Jim Meyering  <meyering@lucent.com>
84185
84186         * lib/memchr.c: Update from libc.
84187         Adjust for portability:
84188         [HAVE_STDLIB_H]: Include stdlib.h.
84189         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84190         Undef __memchr, too.
84191         [!weak_alias]: Define __memchr to memchr.
84192
84193         * lib/regex.c: Update from libc.
84194         * lib/regex.h: Likewise.
84195         * lib/getopt1.c: Likewise.
84196         * lib/memcmp.c: Likewise.
84197
84198         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84199         Avoid using fseek, when possible -- it's broken by design.
84200         Patch by Ulrich Drepper.
84201
84202 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84203
84204         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84205         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84206         Giving in to popular pressure to shut up the compiler with casts.
84207
84208 2000-10-26  Jim Meyering  <meyering@lucent.com>
84209
84210         * lib/strftime.c: Update from libc.
84211
84212 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84213
84214         * regex.c: More `unsigned char' -> `re_char' changes.
84215         Also change several `int' into `re_wchar_t'.
84216         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84217         (PUSH_FAILURE_POINTER): Don't cast any more.
84218         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84219         We want GCC to complain, since this piece of code makes
84220         re_match non-reentrant, which *should* be fixed.
84221         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84222         (EXTEND_BUFFER): Use RETALLOC.
84223         (SET_LIST_BIT): Don't cast.
84224         (re_wchar_t): New type.
84225         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84226         that those two functions will always properly return.
84227         (IMMEDIATE_QUIT_CHECK): Cast to void.
84228         (analyse_first): Use recursion rather than an explicit stack.
84229         (re_compile_fastmap): Can't fail anymore.
84230         (re_search_2): Don't check re_compile_fastmap for failure.
84231         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84232         Now also sets the new value (passed in a new argument).
84233         (re_match_2_internal): Use it.
84234         Also, use a new var `reg' of type size_t when looping through regs
84235         rather than reuse the inappropriate `mcnt'.
84236
84237 2000-10-25  Jim Meyering  <meyering@lucent.com>
84238
84239         * lib/obstack.c: Update from libc.
84240
84241 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84242
84243         * regex.c (regex_compile): Change the way of handling a range from
84244         a char less than 256 to a char not less than 256.
84245
84246 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84247
84248         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84249         NT-Emacs only.
84250         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84251         so that re_search functions only quit when callers expect them to.
84252
84253 2000-10-23  Jim Meyering  <meyering@lucent.com>
84254
84255         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84256         wrong.  That set_locale call must not have any side effects.
84257         From Paul Eggert.
84258
84259 2000-10-22  Jim Meyering  <meyering@lucent.com>
84260
84261         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84262         [CYCLIC]: Remove now-unused definition.
84263
84264         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84265         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84266         Suggestion from Ulrich Drepper.
84267
84268 2000-10-21  Jim Meyering  <meyering@lucent.com>
84269
84270         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84271         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84272         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84273
84274 2000-10-21  Jim Meyering  <meyering@lucent.com>
84275
84276         * lib/dirname.c (memrchr): Declare if necessary.
84277         (dir_name): Remove the restriction that there be no
84278         trailing slashes.  Now, this code skips past them, effectively
84279         ignoring them.
84280         [TEST_DIRNAME] (main): New unit tests.
84281
84282         * lib/memrchr.c: New file from GNU libc.
84283         Undef __memrchr, too.
84284         [!weak_alias]: Define __memrchr to memrchr.
84285         Guard weak_alias use with `#ifdef weak_alias'.
84286
84287 2000-10-21  Jim Meyering  <meyering@lucent.com>
84288
84289         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84290         (dir_name): Use dir_name_r.
84291         * lib/dirname.h (dir_name_r): Declare it.
84292
84293 2000-10-17  Jim Meyering  <meyering@lucent.com>
84294
84295         * lib/quote.h (PARAMS): Define and use.
84296         Reported by Akim Demaille.
84297
84298         * lib/getopt.c: Update from libc.
84299
84300 2000-10-16  Jim Meyering  <meyering@lucent.com>
84301
84302         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84303         setlocale.
84304         From Jan Fedak.
84305
84306 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84307
84308         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84309
84310 2000-09-25  Jim Meyering  <meyering@lucent.com>
84311
84312         * lib/md5.h (rol): Define (from GnuPG).
84313
84314         * lib/sha.c: Give credit (GnuPG) where due.
84315         (M): Use rol rather than open-coding it.
84316         Add a FIXME comment.
84317
84318 2000-09-21  Jim Meyering  <meyering@lucent.com>
84319
84320         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84321         Reported by Michael Stone.
84322
84323 2000-09-20  Jim Meyering  <meyering@lucent.com>
84324
84325         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84326         (noinst_HEADERS): Add sha.h.
84327         Based on code from Scott G. Miller and from GnuPG.
84328
84329 2000-09-18  Jim Meyering  <meyering@lucent.com>
84330
84331         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84332         LIBS. Otherwise, everyone ends up linking with -lelf for some
84333         configurations.
84334         Reported by Mike Stone.
84335
84336 2000-09-15  Jim Meyering  <meyering@lucent.com>
84337
84338         * lib/regex.c: Update from libc.
84339
84340 2000-09-10  Jim Meyering  <meyering@lucent.com>
84341
84342         * lib/getopt.c (_getopt_internal): Update from glibc.
84343
84344 2000-09-09  Jim Meyering  <meyering@lucent.com>
84345
84346         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84347         think it should be used as a general replacement for isascii.
84348         * lib/fnmatch.c: Likewise.
84349         * lib/mbswidth.c: Likewise
84350         * lib/regex.c: Likewise.
84351
84352         Don't use atoi.
84353         * lib/userspec.c: Include sys/param.h and limits.h.
84354         Include xstrtol.h.
84355         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84356         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84357         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84358         UID, GID.  Check range.
84359
84360 2000-09-06  Jim Meyering  <meyering@lucent.com>
84361
84362         * lib/getopt.c (_getopt_internal): Update from glibc.
84363
84364 2000-08-30  Jim Meyering  <meyering@lucent.com>
84365
84366         * lib/strftime.c: Merge in changes from GNU libc.
84367
84368 2000-08-26  Jim Meyering  <meyering@lucent.com>
84369
84370         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84371         * m4/fpending.m4: New file.
84372
84373 2000-08-26  Jim Meyering  <meyering@lucent.com>
84374
84375         * lib/closeout.c: Include "__fpending.h".
84376         (close_stdout_status): Return right away if there's nothing to flush.
84377
84378         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84379         * lib/__fpending.c: New file.
84380         * lib/__fpending.h: New file.
84381
84382 2000-08-20  Jim Meyering  <meyering@lucent.com>
84383
84384         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84385         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84386         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84387
84388 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84389
84390         Improve fileutils installation on systems where running
84391         programs (like install) can't be unlinked.
84392         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84393         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84394
84395 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84396
84397         Standardize on "memory exhausted" instead of "Memory exhausted"
84398         or "virtual memory exhausted".
84399         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84400         "virtual memory exhausted".
84401         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84402         our own message.
84403         * lib/userspec.c (parse_user_spec): Likewise.
84404         * lib/bumpalloc.h: comment fix
84405         * lib/same.c, userspec.c: Include xalloc.h.
84406
84407         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84408         not char *const and pointing to a constant array.
84409         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84410         (xrealloc): Comment fix.
84411
84412         * lib/userspec.c (parse_user_spec):
84413         Don't translate a message until just before returning,
84414         to avoid unnecessary translation.
84415
84416 2000-08-07  Jim Meyering  <meyering@lucent.com>
84417
84418         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84419         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84420         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84421         getgroups.c, gethostname.c, getopt.h, group-member.c,
84422         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84423         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84424         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84425         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84426         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84427         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84428         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84429         yesno.c: Back out Copyright date changes for each file with no change
84430         this year.  This eases coordination with other programs using the same
84431         source code modules.  From Paul Eggert.
84432
84433 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84434
84435         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84436         not char, for compatibility with glibc 2.1.3 strftime.c.
84437
84438 2000-08-03  Greg McGary  <greg@mcgary.org>
84439
84440         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84441         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84442         (EXTEND_BUFFER): Use them.
84443
84444 2000-08-01  Jim Meyering  <meyering@lucent.com>
84445
84446         * lib/dirname.c (ISSLASH): Define.
84447         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84448         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84449         both `\' and `/' may be use as path separators.
84450         Based on a patch from Prashant TR.
84451
84452 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84453
84454         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84455         slot vector a constant, since it might get modified.
84456
84457 2000-07-31  Jim Meyering  <meyering@lucent.com>
84458
84459         * lib/xmalloc.c: Use `virtual memory exhausted', not
84460         `Memory exhausted'.
84461         * lib/obstack.c (print_and_abort): Likewise.
84462
84463 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84464
84465         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84466         buffer, so that the caller can always quote one small
84467         component of a "memory exhausted" message in slot 0.
84468         From a suggestion by Jim Meyering.
84469
84470 2000-07-30  Jim Meyering  <meyering@lucent.com>
84471
84472         * lib/makepath.c (make_path): Quote the other instance, too.
84473
84474         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84475         (STATIC_BUF_SIZE): Define.
84476         (quotearg_n_options): Use only statically allocated storage when
84477         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84478         than STATIC_BUF_SIZE.
84479
84480 2000-07-29  Jim Meyering  <meyering@lucent.com>
84481
84482         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84483         * lib/dirname.c (dir_name): Likewise.
84484
84485         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84486         `/'.
84487
84488         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84489         (dir_name): Assert that there are no trailing slashes.
84490
84491 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84492
84493         * lib/mbswidth.h (mbswidth): Add a flags argument.
84494         (mbswidth): New declaration.
84495         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84496         * lib/mbswidth.c (mbswidth): Add a flags argument.
84497         (mbsnwidth): New function.
84498
84499 2000-07-24  Jim Meyering  <meyering@lucent.com>
84500
84501         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84502
84503 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84504
84505         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84506
84507 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84508
84509         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84510         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84511         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84512         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84513         invoke multibyte primitives.
84514
84515 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84516
84517         * lib/quotearg.c:
84518         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84519         so that mbstate_t is always defined.
84520
84521         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84522         be 1 in at least one GCC installation, and this configuration
84523         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84524         performance on hosts that have mbrtowc but have only unibyte
84525         locales, but I assume these hosts are rare.
84526
84527 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84528
84529         * lib/mbswidth.c (_XOPEN_SOURCE):
84530         Don't define; this causes problems on Solaris 7.
84531         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84532
84533 2000-07-23  Jim Meyering  <meyering@lucent.com>
84534
84535         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84536         too: getgrgid, getpwuid, getuid.
84537
84538 2000-07-23  Jim Meyering  <meyering@lucent.com>
84539
84540         * lib/basename.c (base_name): Add an assertion.
84541
84542 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84543
84544         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84545         shadow its mbsinit function.
84546
84547 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84548
84549         * lib/mbswidth.h: New file.
84550         * lib/mbswidth.c: New file.
84551         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84552         (noinst_HEADERS): Add mbswidth.h.
84553
84554 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84555
84556         * lib/config.charset: Add support for FreeBSD. Improve support for
84557         HP-UX and IRIX 6.
84558
84559 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84560
84561         * m4/mbswidth.m4: New file.
84562         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84563
84564 2000-07-15  Jim Meyering  <meyering@lucent.com>
84565
84566         * lib/makepath.c: Include quote.h.
84567         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84568         corresponding argument in a `quote (...)' call.
84569         Give better diagnostics.
84570
84571         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84572         (noinst_HEADERS): Add quote.h.
84573
84574         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84575         from tar's src/misc.c.
84576         * lib/quote.h: New file.  Prototypes for same.
84577
84578 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84579
84580         From a suggestion by Bruno Haible.
84581         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84582         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84583         to decide whether to define the BeOS workaround macro;
84584         this adjusts to the change to AC_MBSTATE_T.
84585
84586 2000-07-14  Jim Meyering  <meyering@lucent.com>
84587
84588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84589         jm_AC_TYPE_UINTMAX_T.
84590
84591 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84592
84593         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84594
84595         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84596         quotearg_buffer_restyled): Add support for
84597         clocale_quoting_style.  Undo previous change to
84598         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84599         and "{RIGHT QUOTATION MARK}" msgids.
84600
84601 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84602
84603         From a suggestion by Bruno Haible.
84604         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84605         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84606         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84607         and mbstate_t, to a single-part test that simply defines mbstate_t.
84608         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84609         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84610
84611 2000-07-10  Jim Meyering  <meyering@lucent.com>
84612
84613         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84614
84615         * m4/gnu-source.m4: Output to confdefs.h directly.
84616         Suggestion from Akim Demaille.
84617
84618 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84619
84620         The old behavior of quoting `like this' doesn't look good with
84621         newer, ISO-style fonts.  See:
84622         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84623
84624         Instead, quote "like this" by default.  Let the translator
84625         tailor the locale-specific quoting behavior by providing
84626         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84627
84628         * lib/quotearg.c (N_): New macro.
84629         (gettext_default): New function.
84630         (quotearg_buffer_restyled): Use
84631         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84632         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84633
84634 2000-07-09  Jim Meyering  <meyering@lucent.com>
84635
84636         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84637         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84638
84639         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84641
84642 2000-07-09  Jim Meyering  <meyering@lucent.com>
84643
84644         * lib/Most files: Update copyright dates to include 2000.
84645
84646 2000-07-08  Jim Meyering  <meyering@lucent.com>
84647
84648         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84649         if not defined.
84650         (xgethostname): Remove now-unnecessary #ifdef.
84651         Move declaration of `err' into loop where it's used.
84652
84653 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84654         and Bruno Haible  <haible@clisp.cons.org>
84655
84656         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84657         only if the test for an object-type mbstate_t fails.  This
84658         prevents us from mistakenly reporting that mbstate_t is a
84659         system object type after we "#define mbstate_t int" to work
84660         around its lack.
84661
84662 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84663         and Bruno Haible  <haible@clisp.cons.org>
84664
84665         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84666
84667 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84668
84669         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84670         to strerror_r.
84671         Include <ctype.h> for use of isalpha.
84672
84673 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84674
84675         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84676         by allocating a larger buffer. Test the gethostname return value for
84677         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84678         returns an error and ENAMETOOLONG isn't defined.
84679
84680 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84681
84682         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84683         dimension.
84684
84685 2000-07-04  Jim Meyering  <meyering@lucent.com>
84686
84687         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84688         of the deprecated AC_CHECKING.
84689
84690 2000-07-04  Jim Meyering  <meyering@lucent.com>
84691
84692         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84693         Reported by Bruno Haible.
84694
84695 2000-07-04  Jim Meyering  <meyering@lucent.com>
84696
84697         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84698         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84699         lacks mbrtowc.
84700
84701 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84702
84703         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84704         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84705
84706 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84707         and Bruno Haible  <haible@clisp.cons.org>
84708
84709         * lib/quotearg.c (mbrtowc):
84710         Assign to *pwc, and return 1 only if result is nonzero.
84711         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84712
84713 2000-07-03  Jim Meyering  <meyering@lucent.com>
84714
84715         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84716
84717 2000-07-03  Jim Meyering  <meyering@lucent.com>
84718
84719         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84720         This is necessary to get a definition of e.g., UTMP_FILE on
84721         HP-UX 10.20.
84722         From Bob Proulx.
84723
84724 2000-07-02  Jim Meyering  <meyering@lucent.com>
84725
84726         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84727
84728         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84729         AC_LIBOBJ(function_name).
84730         * m4/chown.m4: Likewise.
84731         * m4/fnmatch.m4: Likewise.
84732         * m4/ftruncate.m4: Likewise.
84733         * m4/getgroups.m4: Likewise.
84734         * m4/getline.m4: Likewise.
84735         * m4/group-member.m4: Likewise.
84736         * m4/jm-macros.m4: Likewise.
84737         * m4/lstat.m4: Likewise.
84738         * m4/malloc.m4: Likewise.
84739         * m4/memcmp.m4: Likewise.
84740         * m4/nanosleep.m4: Likewise.
84741         * m4/putenv.m4: Likewise.
84742         * m4/realloc.m4: Likewise.
84743         * m4/regex.m4: Likewise.
84744         * m4/stat.m4: Likewise.
84745         * m4/strftime.m4: Likewise.
84746
84747 2000-07-02  Jim Meyering  <meyering@lucent.com>
84748
84749         * lib/quotearg.c (mbstate_t): Don't define here.
84750
84751 2000-07-02  Jim Meyering  <meyering@lucent.com>
84752
84753         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84754
84755 2000-07-01  Jim Meyering  <meyering@lucent.com>
84756
84757         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84758
84759 2000-07-01  Jim Meyering  <meyering@lucent.com>
84760
84761         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84762         problem.
84763
84764 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84765
84766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84767         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84768
84769 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84770
84771         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84772         per change in ../m4/ls-mntd-fs.m4.
84773         (read_filesystem_list): Ignore symbolic links.
84774
84775 2000-06-29  Jim Meyering  <meyering@lucent.com>
84776
84777         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84778         for declaration of strcmp.
84779
84780         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84781
84782         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84783         Avoid warning by casting result to `char *' to remove `const'.
84784
84785 2000-06-28  Jim Meyering  <meyering@lucent.com>
84786
84787         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84788         included by quotearg.c, for which we perform this test.  From
84789         Bruno Haible.
84790
84791 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84792
84793         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84794         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84795         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84796
84797 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84798
84799         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84800
84801 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84802
84803         savedir now sets errno on failure and invokes xmalloc to get memory.
84804         Fix a couple of other minor bugs while we're at it.
84805
84806         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84807         (NAMLEN): Remove macro.
84808         (malloc, realloc): Remove decls.
84809         (stpcpy): Likewise.
84810         ("xalloc.h"): Include.
84811         (NAME_SIZE_DEFAULT): New macro.
84812         (savedir): Use xmalloc / xrealloc to allocate memory.
84813         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84814         Skip "" directory entries.
84815         Use strlen to calculate directory entry length, since the old method
84816         is rarely used these days and isn't worth supporting.
84817         Don't use a pointer after freeing it.
84818         Check for integer overflow when calculating allocation size.
84819         Use memcpy to copy entries, instead of stpcpy.
84820         Set errno properly when returning NULL.
84821         Check for readdir error.
84822
84823 2000-06-26  Jim Meyering  <meyering@lucent.com>
84824
84825         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84826
84827 2000-06-25  Jim Meyering  <meyering@lucent.com>
84828
84829         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84830         Linux header bug when _XOPEN_SOURCE is defined to 500.
84831
84832 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84833
84834         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84835         deficiency.
84836
84837 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84838
84839         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84840         Include xalloc.h.
84841         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84842
84843 2000-06-24  Jim Meyering  <meyering@lucent.com>
84844
84845         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84846         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84847         for which strerror does return char*, but which lacks a conveniently
84848         accessible declaration of the function.  If the compile-test says
84849         strerror_r doesn't work, then resort to a `run'-test that works on
84850         BeOS and segfaults on DEC Unix.
84851
84852 2000-06-24  Jim Meyering  <meyering@lucent.com>
84853
84854         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84855
84856 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84857
84858         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84859         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84860
84861 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84862
84863         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84864         (mbrtowc, mbstate_t): Define substitutes if
84865         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84866         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84867         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84868
84869 2000-06-23  Jim Meyering  <meyering@lucent.com>
84870
84871         * m4/afs.m4: Add missing AC_MSG_RESULT.
84872         Reported by Bruno Haible.
84873
84874         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84875         Suggestion from Bruno Haible.
84876
84877 2000-06-23  Jim Meyering  <meyering@lucent.com>
84878
84879         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84880
84881 2000-06-21  Jim Meyering  <meyering@lucent.com>
84882
84883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84884
84885 2000-06-21  Jim Meyering  <meyering@lucent.com>
84886
84887         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84888         (noinst_HEADERS): Add getstr.h.
84889
84890         * lib/getline.c (getstr): Move into a separate file.
84891         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84892         the following changes: new parameter, delim2; both delim[12]
84893         parameters have type `int', not `char'.  The latter would lose
84894         with 8-bit delimiters.
84895         * lib/getstr.h: New file.
84896
84897 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84898
84899         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84900         than 1024, return a memory chunk of least possible size, instead
84901         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84902         Use free/xmalloc instead of xrealloc to avoid copying for very long
84903         paths.
84904
84905 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84906
84907         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84908         the empty string.
84909
84910 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84911
84912         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84913         address, not strdup.  Include <stdlib.h> and don't declare free().
84914
84915 2000-06-19  Jim Meyering  <meyering@lucent.com>
84916
84917         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84918
84919 2000-06-18  Jim Meyering  <meyering@lucent.com>
84920
84921         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84922
84923         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84924         `checking whether...' message to be consistent with that of the
84925         lstat test.
84926
84927 2000-06-18  Jim Meyering  <meyering@lucent.com>
84928
84929         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84930         Besides, these days every porting target provides a mkdir function.
84931
84932         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84933         needed. (this snippet comes from src/system.h).
84934
84935 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84936
84937         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84938
84939 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84940
84941         * lib/human.c (adjust_value): New function.
84942         (human_readable_inexact): Apply rounding style even when
84943         printing approximate values.
84944
84945 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84946
84947         * lib/human.c (human_readable_inexact): Allow an input block
84948         size that is not a multiple of the output block size, and vice versa.
84949         Reported by Piergiorgio Sartor.
84950
84951 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84952
84953         * lib/getdate.y (get_date): Apply relative times after time
84954         zone indicator, not before.  Reported by Todd A. Jacobs.
84955
84956 2000-06-13  Jim Meyering  <meyering@lucent.com>
84957
84958         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84959
84960         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84961
84962 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84963
84964         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84965
84966 2000-06-12  Jim Meyering  <meyering@lucent.com>
84967
84968         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84969         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84970         optional argument.
84971         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84972         the optional argument, `lib'.
84973
84974 2000-06-08  Jim Meyering  <meyering@lucent.com>
84975
84976         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84977
84978 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84979
84980         Rewrite largefile configuration so that we don't need to run
84981         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84982         AC_CANONICAL_HOST in configure.in -- jmm]
84983
84984         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84985         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84986         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84987         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84988         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84989         All uses changed.
84990         Instead of inspecting the output of getconf, try to compile the
84991         test program without and with the macro definition.
84992         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84993         for getconf.  Instead, check for the needed flags by compiling
84994         test programs.
84995
84996 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84997
84998         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84999
85000 2000-06-04  Jim Meyering  <meyering@lucent.com>
85001
85002         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85003         SunOS 4.1.4 for which gid_t is an unsigned type.
85004
85005 2000-06-03  Jim Meyering  <meyering@lucent.com>
85006
85007         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85008         now that autoconf requires that.
85009
85010         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85011         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85012         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85013
85014 2000-06-03  Jim Meyering  <meyering@lucent.com>
85015
85016         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85017
85018 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85019
85020         * m4/glibc21.m4: New file.
85021         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85022
85023 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85024
85025         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85026         newer, don't install charset.alias.
85027         * lib/config.charset: Change the Linux/glibc rules so they become empty
85028         on glibc-2.1 or newer.
85029
85030 2000-06-02  Jim Meyering  <meyering@lucent.com>
85031
85032         * lib/mountlist.c: Back out last change.  Instead, do this...
85033         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85034         me_dummy member using the same `ignore'-testing code.
85035         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85036         fs_type strings.
85037         From Mark D. Roth.
85038
85039 2000-05-29  Jim Meyering  <meyering@lucent.com>
85040
85041         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85042         mounts with the `ignore' attribute.  Based on a patch from
85043         Mark D. Roth.
85044
85045 2000-05-28  Jim Meyering  <meyering@lucent.com>
85046
85047         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85048         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85049         * m4/stat.m4: Likewise.
85050         * m4/lstat.m4: Likewise.
85051         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85052
85053         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85054         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85055
85056 2000-05-26  Jim Meyering  <meyering@lucent.com>
85057
85058         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85059
85060 2000-05-24  Jim Meyering  <meyering@lucent.com>
85061
85062         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85063         autoconf requires that.
85064         * m4/lib-check.m4: Likewise.
85065         * m4/jm-macros.m4: Likewise.
85066         * m4/strftime.m4: Likewise.
85067
85068         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85069         AC_CHECK_DECLS, now that autoconf requires that.
85070
85071 2000-05-22  Jim Meyering  <meyering@lucent.com>
85072
85073         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85074         * m4/lstat.m4: Likewise.
85075
85076 2000-05-22  Jim Meyering  <meyering@lucent.com>
85077
85078         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85079
85080 2000-05-20  Jim Meyering  <meyering@lucent.com>
85081
85082         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85083         (jm_PREREQ): Use it.
85084
85085 2000-05-18  Jim Meyering  <meyering@lucent.com>
85086
85087         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85088         back, too, since it may have been modified by allocate_entry.
85089         (hash_delete): Rewrite to use neither the assignment operator
85090         nor the comma operator in an if-expression.
85091
85092 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85093
85094         * lib/closeout.c:
85095         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85096         Remove; no longer needed.
85097         "quotearg.h": Add include.
85098         (file_name): Do not bother to explicitly initialize to NULL; it's less
85099         efficient on some hosts.
85100         (close_stdout_status): Remove test as to whether stdout was already
85101         closed; it breaks for the case "echo x | sort >&-".
85102         Quote file name colons.
85103         Do not assume that _("write error") lacks format strings.
85104
85105 2000-05-15  Jim Meyering  <meyering@lucent.com>
85106
85107         * lib/version-etc.c (version_etc_copyright): Update the copyright
85108         string used in all --version output.
85109
85110 2000-05-14  Jim Meyering  <meyering@lucent.com>
85111
85112         * lib/closeout.c (close_stdout_set_file_name): New function.
85113         (close_stdout_status): Use new file-scoped global.
85114         Return right away if fstat says the stdout file descriptor is invalid.
85115         * lib/closeout.h (close_stdout_set_file_name): Declare.
85116
85117 2000-05-10  Jim Meyering  <meyering@lucent.com>
85118
85119         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85120         (close_stdout_set_status): New function.
85121         * lib/closeout.h (close_stdout_set_status): Declare.
85122
85123 2000-05-09  Jim Meyering  <meyering@lucent.com>
85124
85125         * m4/gettext.m4: Rename this...
85126         * m4/libintl.m4: ...to this.
85127
85128 2000-05-08  Jim Meyering  <meyering@lucent.com>
85129
85130         * lib/long-options.c: Don't include closeout.h.
85131         (parse_long_options): Don't call close_stdout for --version.
85132
85133 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85134
85135         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85136         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85137         2.1.3 bug.  This avoids a clash when files like regex.c define
85138         _GNU_SOURCE.
85139
85140 2000-05-06  Jim Meyering  <meyering@lucent.com>
85141
85142         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85143         (AC_REPLACE_FUNCS): Add strnlen.
85144
85145         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85146         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85147
85148         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85149         AC_SEARCH_LIBS call for nanosleep.
85150         (LIB_NANOSLEEP): Set and AC_SUBST.
85151
85152 2000-05-06  Jim Meyering  <meyering@lucent.com>
85153
85154         * lib/strnlen.c: Undefine __strnlen and strnlen.
85155         [!weak_alias]: Define __strnlen to strnlen.
85156
85157         * lib/atexit.c: New file, from libiberty.
85158
85159 2000-05-06  Jim Meyering  <meyering@lucent.com>
85160
85161         * lib/closeout.c (close_stdout_status): Also check for errors on the
85162         stderr stream.
85163
85164 2000-05-05  Jim Meyering  <meyering@lucent.com>
85165
85166         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85167         AC_SEARCH_LIBS call for clock_gettime.
85168         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85169
85170         * m4/search-libs.m4: Update from autoconf.
85171
85172         su doesn't work on Solaris 2.6.
85173         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85174         <shadow.h>.  Reported by Dragos Harabor.
85175
85176 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85177
85178         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85179         memcpy instead of xmalloc, xrealloc, path_concat.
85180         (locale_charset): Treat empty environment variables as absent.
85181         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85182
85183 2000-05-04  Jim Meyering  <meyering@lucent.com>
85184
85185         * lib/getopt.c: Update from glibc.
85186         * lib/obstack.c: Likewise.
85187         * lib/obstack.h: Likewise.
85188         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85189         file
85190
85191         * lib/regex.h: Likewise.
85192         * lib/strndup.c: Likewise.
85193         * lib/strnlen.c: New file, from glibc.
85194
85195 2000-05-03  Jim Meyering  <meyering@lucent.com>
85196
85197         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85198
85199 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85200
85201         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85202         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85203         compile-time test, rather than inspecting host and OS, to
85204         decide whether to define _LARGEFILE_SOURCE.
85205
85206 2000-05-01  Jim Meyering  <meyering@lucent.com>
85207
85208         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85209
85210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85211         Based on a patch from Bruno Haible.
85212
85213 2000-05-01  Jim Meyering  <meyering@lucent.com>
85214
85215         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85216
85217 2000-04-29  Jim Meyering  <meyering@lucent.com>
85218
85219         * lib/path-concat.c: Declare strdup only if it's not defined.
85220         * lib/canon-host.c: Likewise.
85221
85222 2000-04-28  Jim Meyering  <meyering@lucent.com>
85223
85224         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85225         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85226         is included first, then limits.h is included by locale.h by libintl.h.
85227         From John David Anglin.
85228
85229 2000-04-25  Jim Meyering  <meyering@lucent.com>
85230
85231         * lib/makepath.c (S_IRWXUGO): Define.
85232         (make_path): Always perform explicit chmod if MODE specifies any
85233         of the `special' permission bits.  Prompted by a bug report against
85234         install from Mate Wierdl and Joost van Baal.
85235
85236 2000-04-18  Jim Meyering  <meyering@lucent.com>
85237
85238         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85239         (jm_PREREQ): Use it.
85240
85241 2000-04-18  Jim Meyering  <meyering@lucent.com>
85242
85243         * lib/README: New file.
85244
85245         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85246         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85247
85248 2000-04-17  Jim Meyering  <meyering@lucent.com>
85249
85250         Get it right :-)
85251         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85252         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85253         Suggestion from Akim Demaille.
85254
85255 2000-04-17  Jim Meyering  <meyering@lucent.com>
85256
85257         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85258         the definition of it to rpl_strftime also defined-away the system's
85259         declaration.
85260
85261 2000-04-15  Jim Meyering  <meyering@lucent.com>
85262
85263         Use `C' to denote so-called `contiguous' files, the same way
85264         that tar does.
85265         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85266         (ftypelet): Use S_ISCTG.
85267         From Michael Deutschmann.
85268
85269 2000-04-14  Jim Meyering  <meyering@lucent.com>
85270
85271         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85272         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85273         clobbered.
85274
85275 2000-04-14  Jim Meyering  <meyering@lucent.com>
85276
85277         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85278
85279 2000-04-13  Jim Meyering  <meyering@lucent.com>
85280
85281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85282         AH_VERBATIM to insert required #ifndef into config.h.in.
85283         Suggestion from Akim Demaille.
85284
85285 2000-04-12  Jim Meyering  <meyering@lucent.com>
85286
85287         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85288         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85289         Christian Krackowizer.
85290
85291         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85292         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85293         (AC_SYS_LARGEFILE): Require.
85294         (AM_C_PROTOTYPES): Require.
85295
85296 2000-04-08  Jim Meyering  <meyering@lucent.com>
85297
85298         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85299         names don't conflict.  Reported by Eli Zaretskii.
85300
85301 2000-04-07  Jim Meyering  <meyering@lucent.com>
85302
85303         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85304         sys/types.h, to work around system header problems on AIX 3.2.5.
85305         From Bruno Haible.
85306
85307 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85308
85309         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85310         bug.  Deal with the different error behavior of Irix iconv.
85311
85312 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85313
85314         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85315         IRIX if the installer said otherwise.
85316
85317 2000-04-05  Jim Meyering  <meyering@lucent.com>
85318
85319         Portability tweaks required for ultrix4.3.
85320         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85321         (jm_CHECK_DECLS): Add getutent to the list of functions.
85322         (_jm_DECL_HEADERS): Add utmpx.h.
85323         From John David Anglin.
85324
85325         * m4/strftime.m4: Back out the 2000-04-02 change.
85326         Instead of that change, simply undefine putenv in the test program.
85327
85328 2000-04-05  Jim Meyering  <meyering@lucent.com>
85329
85330         Portability tweaks required for ultrix4.3.
85331         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85332         getutent.
85333         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85334         * lib/canon-host.c: Declare strdup.
85335         * lib/path-concat.c: Likewise.
85336         From John David Anglin.
85337
85338 2000-04-04  Jim Meyering  <meyering@lucent.com>
85339
85340         Be more DOS 8.3-friendly.
85341         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85342         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85343         * lib/Makefile.am: Reflect renaming.
85344         Reported by Eli Zaretskii.
85345
85346         Use a temporary file name that won't clash with `charset.alias'
85347         in the DOS 8.3 name space.
85348         * lib/Makefile.am (charset_tmp): Define.
85349         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85350         (uninstall-local): Likewise.
85351         Reported by Eli Zaretskii.
85352
85353 2000-04-03  Jim Meyering  <meyering@lucent.com>
85354
85355         * m4/gettext.m4: Fix typo in comment.
85356
85357         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85358         textutils/configure.in).  Suggestion from Paul Eggert.
85359         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85360
85361 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85362
85363         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85364         variable in the shell rather than using putenv, which isn't
85365         portable.  This avoids the configure-time inter-test dependency
85366         on the potentially-renamed putenv function.
85367
85368 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85369
85370         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85371         before checking struct stat.st_blksize, so that
85372         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85373
85374 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85375
85376         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85377         since strftime.c uses HAVE_STRFTIME to decide whether to use
85378         the underlying strftime.
85379
85380 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85381
85382         * lib/time/strftime.c (my_strftime): Make sure we call the system
85383         strftime, not ourselves, when invoking the underlying strftime.
85384
85385 2000-03-24  Jim Meyering  <meyering@lucent.com>
85386
85387         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85388         (charset_alias): Define.
85389         (install-exec-local): Factor out common code.
85390         (uninstall-local): Split lines longer than 80.
85391         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85392         (SUFFIXES): Define.
85393         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85394         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85395
85396 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85397
85398         * lib/config.charset: Output a line containing "Packages using this
85399         file".
85400         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85401         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85402         ref-del.sed): New rules.
85403
85404 2000-03-17  Jim Meyering  <meyering@lucent.com>
85405
85406         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85407         Otherwise, include <strings.h>
85408
85409 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85410
85411         * lib/unicodeio.c (utf8_wctomb): New function.
85412         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85413         format instead of in UCS-4 with platform dependent endianness.
85414
85415 2000-03-10  Jim Meyering  <meyering@lucent.com>
85416
85417         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85418         From Marco Franzen.
85419
85420 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85421
85422         * lib/savedir.c (savedir): Work even if directory size is
85423         negative; this can happen with some screwy NFS configurations.
85424
85425 2000-03-06  Jim Meyering  <meyering@lucent.com>
85426
85427         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85428         if it's NULL (because we ran out of memory).  From Bruno Haible.
85429
85430 2000-03-05  Jim Meyering  <meyering@lucent.com>
85431
85432         * lib/localcharset.c ("path-concat.h"): Include.
85433         (get_charset_aliases): Use path_concat instead of ANSI string
85434         concatenation.
85435
85436         * lib/unicodeio.h (PARAMS): Define.
85437         Use it to guard prototype.
85438
85439 2000-03-04  Jim Meyering  <meyering@lucent.com>
85440
85441         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85442         for lib/localcharset.c.
85443
85444 2000-03-04  Jim Meyering  <meyering@lucent.com>
85445
85446         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85447         installing into it.
85448         (uninstall-local): Uncomment this rule so `make distcheck' works
85449         once again.
85450
85451         * lib/unicodeio.c (<errno.h>): Include it.
85452         (errno): Declare if not defined.
85453
85454         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85455
85456         * lib/config.charset: New version, incorporating remarks from a linux
85457         i18n mailing list.  From Bruno Haible.
85458
85459 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85460
85461         * m4/codeset.m4: New file.
85462         * m4/iconv.m4: New file.
85463         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85464
85465 2000-03-03  Jim Meyering  <meyering@lucent.com>
85466
85467         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85468
85469 2000-03-02  Jim Meyering  <meyering@lucent.com>
85470
85471         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85472         the messages come out on separate lines.
85473
85474         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85475         rather than jm_CHECK_DECLARATIONS.
85476         * m4/decl.m4: Remove now-unused file.
85477
85478         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85479         geteuid.
85480
85481 2000-03-02  Jim Meyering  <meyering@lucent.com>
85482
85483         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85484
85485 2000-03-01  Jim Meyering  <meyering@lucent.com>
85486
85487         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85488         * lib/unicodeio.c: Likewise.
85489
85490 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85491
85492         * lib/config.charset: New file.
85493         * lib/localcharset.c: New file.
85494         * lib/unicodeio.h, lib/unicodeio.c: New files.
85495         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85496         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85497         (noinst_HEADERS): Add unicodeio.h.
85498         (all-local, install-exec-local, charset.alias): New targets.
85499
85500 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85501
85502         * lib/quotearg.c (ALERT_CHAR): New macro.
85503         (quotearg_buffer_restyled): Use it.
85504
85505 2000-02-27  Jim Meyering  <meyering@lucent.com>
85506
85507         * m4/check-decl.m4: Add getenv to the list.
85508
85509 2000-02-27  Jim Meyering  <meyering@lucent.com>
85510
85511         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85512         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85513
85514         * lib/backupfile.c: Guard inclusion of stdlib.h with
85515         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85516         Declare malloc if needed.
85517
85518         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85519         `#ifndef HAVE_DECL..'
85520         now that autoconf always defines the HAVE_DECL_ symbols.
85521         * lib/human.c: Likewise.
85522         * lib/same.c: Likewise.
85523         * lib/strtoumax.c: Likewise.
85524
85525         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85526         declaration check was not run.
85527         * lib/hash.c: Likewise.
85528         * lib/human.c: Likewise.
85529         * lib/same.c: Likewise.
85530         * lib/strtoumax.c: Likewise.
85531
85532         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85533         `.', then first look up the entire `.'-containing string as a login
85534         name.
85535
85536 2000-02-23  Jim Meyering  <meyering@lucent.com>
85537
85538         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85539         in place of my hack.
85540
85541 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85542
85543         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85544         (textint): New typedef.
85545         (parser_control): Member year changed from int to textint.
85546         All uses changed.
85547         (YYSTYPE): Removed; replaced by %union with int and textint members.
85548         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85549         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85550         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85551         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85552         (date, number, to_year): Use width of number in digits, not its value,
85553         to determine whether it's a 2-digit year, or a 2-digit time.
85554         (yylex): Store number of digits of numeric tokens.
85555         Reported by John Kendall.
85556
85557         (parser_control): Changed from struct parser_control to typedef (for
85558         consistency).  All uses changed.
85559
85560         (tID): Removed; not used.
85561         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85562
85563 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85564
85565         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85566         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85567
85568 2000-02-12  Jim Meyering  <meyering@lucent.com>
85569
85570         * lib/userspec.c (ISDIGIT): Define it.
85571         (isdigit): Remove definition.
85572         (is_number): Use ISDIGIT, not isdigit.
85573         <libintl.h>: Include.
85574         (_ and N_): Define.
85575         (parse_user_spec): Mark translatable strings.
85576
85577 2000-02-10  Jim Meyering  <meyering@lucent.com>
85578
85579         With these changes, nanosleep.[ch] are finally enough like the other
85580         lib/* replacement files to compile on a few more losing systems.
85581
85582         * lib/nanosleep.h: Don't include config.h.
85583         Remove prototype from declaration of nanosleep.
85584         (PARAMS): Remove now-unneeded definition.
85585         * lib/nanosleep.c: #undef nanosleep.
85586         (rpl_nanosleep): Rename from nanosleep.
85587
85588 2000-02-10  Jim Meyering  <meyering@lucent.com>
85589
85590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85591         gnu_nanosleep to rpl_nanosleep.
85592
85593 2000-02-09  Jim Meyering  <meyering@lucent.com>
85594
85595         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85596         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85597
85598 2000-02-08  Akim Demaille  <akim@epita.fr>
85599
85600         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85601         `[' and `]' and remove uses of `changequote'.
85602         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85603         (AC_SYS_LARGEFILE): Likewise.
85604         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85605         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85606         of changequote.
85607         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85608         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85609         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85610         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85611
85612 2000-02-05  Jim Meyering  <meyering@lucent.com>
85613
85614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85615         Remove explicit use of AC_HEADER_TIME.  It is required by
85616         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85617         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85618         in autoconf whereby the expansion of the latter ended up preceding
85619         the expansion of its prerequisite, AC_HEADER_TIME.
85620         Reported by Volker Borchert.
85621
85622 2000-02-03  Jim Meyering  <meyering@lucent.com>
85623
85624         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85625
85626 2000-02-03  Jim Meyering  <meyering@lucent.com>
85627
85628         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85629         rather than with `#if HAVE_UTMPNAME'.
85630
85631 2000-02-02  Jim Meyering  <meyering@lucent.com>
85632
85633         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85634         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85635         Reported by Eli Zaretskii.
85636
85637 2000-02-01  Jim Meyering  <meyering@lucent.com>
85638
85639         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85640
85641 2000-01-31  Jim Meyering  <meyering@lucent.com>
85642
85643         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85644         functions.  Add the time.h and sys/time.h headers along with the
85645         AC_REQUIRE'ment of AC_HEADER_TIME.
85646
85647 2000-01-31  Jim Meyering  <meyering@lucent.com>
85648
85649         * lib/nanosleep.h (nanosleep): Guard declaration with
85650         `#if ! HAVE_DECL_NANOSLEEP'.
85651         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85652         the declaration in that vendor's sys/timers.h.
85653         Reported by Christian Krackowizer.
85654
85655         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85656         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85657         (ISPRINT): Likewise.
85658         Reported by Tom Tromey.
85659
85660 2000-01-30  Jim Meyering  <meyering@lucent.com>
85661
85662         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85663
85664         * m4/prereq.m4 (utmp_includes): Define.
85665         Check for ut_user and ut_name members in both struct utmpx
85666         and struct utmp.
85667
85668 2000-01-30  Jim Meyering  <meyering@lucent.com>
85669
85670         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85671         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85672         header files where only utmpx.ut_user is declared.
85673
85674         * lib/readutmp.h (UT_USER): Define.
85675
85676 2000-01-29  Jim Meyering  <meyering@lucent.com>
85677
85678         * m4/lib-check.m4: New file containing library-related checks from
85679         fileutils and sh-utils (textutils had none).
85680
85681 2000-01-28  Jim Meyering  <meyering@lucent.com>
85682
85683         * m4/perl.m4: Change format of warning message to look more like that
85684         from the missing script.  Suggestion from François Pinard.
85685
85686 2000-01-25  Jim Meyering  <meyering@lucent.com>
85687
85688         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85689         well as time.h in the compile check.
85690         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85691         Fix typo in cross-compiling case: s/yes/no/.
85692
85693 2000-01-23  Jim Meyering  <meyering@lucent.com>
85694
85695         * m4/jm-macros.m4: Move df-related tests here from
85696         fileutils/configure.in
85697
85698         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85699         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85700
85701         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85702         s/space/ac_fsusage_space/.
85703         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85704
85705         * m4/ftruncate.m4: New file (derived from part of
85706         fileutils/configure.in).
85707         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85708         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85709
85710         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85711         AC_SUBST these here, rather than just in sh-util/configure.in, so
85712         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85713         all the same.
85714         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85715         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85716         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85717         (AC_SUBST(POW_LIBM)): Likewise.
85718         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85719
85720 2000-01-23  Jim Meyering  <meyering@lucent.com>
85721
85722         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85723         obstack.c.
85724
85725 2000-01-22  Jim Meyering  <meyering@lucent.com>
85726
85727         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85728
85729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85730
85731         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85732         configure.in
85733         (AC_CHECK_HEADERS): Likewise for sh-utils.
85734         (AC_CHECK_HEADERS): Likewise for textutils.
85735         Merge the three lists of headers.
85736
85737         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85738         from fileutils' configure.in.
85739
85740         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85741         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85742         check-decl.m4.
85743
85744         * m4/check-decl.m4: Use #if rather than #ifdef.
85745         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85746         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85747         (_jm_DECL_HEADERS): Define new function.
85748         (jm_CHECK_DECLARATIONS): Require it.
85749
85750 2000-01-22  Jim Meyering  <meyering@lucent.com>
85751
85752         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85753         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85754         Required for some AIX systems.  Reported by Christian Krackowizer.
85755         [TESTING] (main): New function.
85756
85757         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85758         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85759         letters.
85760
85761         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85762         iswprint.
85763
85764         * lib/strverscmp.c (ISDIGIT): Define.
85765         (strverscmp): Use ISDIGIT, not isdigit.
85766
85767 2000-01-19  Jim Meyering  <meyering@lucent.com>
85768
85769         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85770         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85771         defines `struct timespec' in <sys/time.h>
85772
85773         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85774         Thanks to Akim for explaining.
85775
85776 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85777
85778         * lib/nanosleep.c (nanosleep):
85779         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85780         POSIX.1 doesn't require SA_INTERRUPT and some systems
85781         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85782         it's been part of POSIX.1 since day 1 (in 1988).
85783
85784 2000-01-17  Jim Meyering  <meyering@lucent.com>
85785
85786         * lib/interlock: Remove unused file.  Reported by François Pinard.
85787
85788 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85789
85790         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85791         alert, backslash, formfeed, and vertical tab unnecessarily in
85792         shell quoting style.
85793
85794 2000-01-16  Jim Meyering  <meyering@lucent.com>
85795
85796         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85797         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85798         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85799         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85800
85801 2000-01-16  Jim Meyering  <meyering@lucent.com>
85802
85803         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85804         because the latter didn't work.
85805
85806 2000-01-15  Jim Meyering  <meyering@lucent.com>
85807
85808         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85809         (AC_REPLACE_FUNCS): Add memcpy and memset.
85810         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85811         Add strpbrk.
85812         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85813
85814 2000-01-12  Jim Meyering  <meyering@lucent.com>
85815
85816         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85817         (jm_PREREQ): Use it.
85818         (jm_PREREQ_READUTMP): New macro.
85819         (jm_PREREQ): Use it.
85820
85821 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85822
85823         Quote multibyte characters correctly.
85824         * m4/c-bs-a.m4: New file.
85825         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85826         (jm_PREREQ): Use it.
85827
85828 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85829
85830         * m4/uintmax_t.m4: Port to autoconf 2.13.
85831
85832 2000-01-08  Jim Meyering  <meyering@ascend.com>
85833
85834         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85835         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85836
85837 2000-01-04  Jim Meyering  <meyering@ascend.com>
85838
85839         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85840         jm_STRUCT_DIRENT_D_TYPE.
85841         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85842         jm_STRUCT_DIRENT_D_INO.
85843         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85844         jm_STRUCT_UTIMBUF.
85845         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85846         renamings.
85847         * m4/utime.m4: Likewise.
85848
85849         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85850         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85851
85852 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85853
85854         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85855         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85856
85857 2000-01-02  Jim Meyering  <meyering@ascend.com>
85858
85859         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85860         remember if this is necessary.
85861
85862 1999-12-26  Jim Meyering  <meyering@ascend.com>
85863
85864         * m4/jm-macros.m4: Use it here.
85865         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85866
85867 1999-12-23  Jim Meyering  <meyering@ascend.com>
85868
85869         * m4/jm-macros.m4: Check for clock_gettime (moved from
85870         fileutils/configure.in)
85871         Check for gettimeofday.
85872
85873 1999-12-20  Jim Meyering  <meyering@ascend.com>
85874
85875         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85876         autoconf-2.14a-1999-12-20.
85877
85878 1999-12-19  Jim Meyering  <meyering@ascend.com>
85879
85880         * m4/lstat-slash.m4: New file.
85881         * m4/jm-macros.m4: Use the new macro:
85882         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85883
85884 1999-12-07  Jim Meyering  <meyering@ascend.com>
85885
85886         * m4/perl.m4: Require that File::Compare be available, too.
85887         Too many systems seem to lack it.
85888
85889         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85890         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85891
85892 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85893
85894         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85895         problem with the QNX 4.25 shell, which doesn't propagate exit
85896         status of failed commands inside shell assignments.
85897
85898 1999-11-17  Jim Meyering  <meyering@ascend.com>
85899
85900         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85901
85902 1999-11-07  Jim Meyering  <meyering@ascend.com>
85903
85904         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85905
85906 1999-11-06  Jim Meyering  <meyering@ascend.com>
85907
85908         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85909         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85910
85911 1999-11-05  Jim Meyering  <meyering@ascend.com>
85912
85913         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85914         configure.in of textutils, fileutils, and sh-utils into this one
85915         (shared between those packages) file.
85916         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85917         AC_STRUCT_ST_BLKSIZE.
85918
85919 1999-11-03  Jim Meyering  <meyering@ascend.com>
85920
85921         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85922         of AC_CHECK_TYPE checks includes unistd.h.
85923         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85924         Suggestion from Akim Demaille.
85925
85926 1999-10-30  Jim Meyering  <meyering@ascend.com>
85927
85928         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85929         m4-quoted string.
85930         * m4/ls-mntd-fs.m4: Likewise.
85931         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85932         * m4/jm-winsz1.m4: Likewise.
85933
85934         * m4/const.m4: Remove file, since the fix made it into the experimental
85935         version of autoconf.
85936         * m4/mktime.m4: Likewise.
85937
85938         * m4/check-type.m4: Remove file, now that the latest version of
85939         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85940
85941         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85942         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85943         AC_CHECK_TYPE.
85944
85945 1999-10-04  Jim Meyering  <meyering@ascend.com>
85946
85947         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85948
85949 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85950
85951         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85952         2.95.1 bug with HP-UX 10.20.
85953
85954 1999-09-17  Jim Meyering  <meyering@ascend.com>
85955
85956         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85957         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85958         due to missing strdup (against sh-utils-2.0).
85959
85960 1999-08-29  Jim Meyering  <meyering@ascend.com>
85961
85962         * m4/jm-macros.m4: Require jm_BISON.
85963         * m4/bison.m4: New file.
85964
85965 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85966
85967         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85968         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85969
85970 1999-08-05  Jim Meyering  <meyering@ascend.com>
85971
85972         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85973         to avoid conflicts with `conftest' on 8+3 filesystems.
85974         Suggestion from Eli Zaretskii.
85975
85976 1999-08-04  Jim Meyering  <meyering@ascend.com>
85977
85978         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85979         fileutils and sh-utils (textutils's getline test was inadequate).
85980         (AM_FUNC_GETLINE): Run this test.
85981         (AC_CHECK_FUNCS): Check for getdelim.
85982         Reported by Bob Proulx.
85983
85984 1999-08-02  Jim Meyering  <meyering@ascend.com>
85985
85986         * m4/jm-macros.m4: Add a comment.
85987
85988 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85989
85990         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85991         <inttypes.h> defines strtoumax as a macro (and not as a
85992         function).
85993
85994 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85995
85996         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85997         that we can shift, multiply and divide unsigned long long
85998         values; Ultrix cc can't do it.
85999
86000 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86001
86002         * m4/mktime.m4: New file, which is a preview of what should appear
86003         in the next public autoconf release.
86004
86005 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86006
86007         * m4/lfs.m4: Remove this file.
86008         * m4/largefile.m4: New file.  It contains the old contents of
86009         lfs.m4, except that all names with prefix AC_LFS have been
86010         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86011         compatible with future autoconf versions.  Also, some minor m4
86012         quoting problems have been fixed.
86013
86014 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86015
86016         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86017         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86018         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86019         and simplify the shell code.
86020
86021 1999-08-01  Jim Meyering  <meyering@ascend.com>
86022
86023         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86024         m4.
86025
86026 1999-07-20  Jim Meyering  <meyering@ascend.com>
86027
86028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86029
86030 1999-07-15  Jim Meyering  <meyering@ascend.com>
86031
86032         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86033
86034 1999-05-22  Jim Meyering  <meyering@ascend.com>
86035
86036         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86037
86038 1999-05-20  Jim Meyering  <meyering@ascend.com>
86039
86040         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86041         Add a colon after each `then' in case $4 is empty.
86042
86043 1999-05-16  Jim Meyering  <meyering@ascend.com>
86044
86045         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86046
86047 1999-05-10  Jim Meyering  <meyering@ascend.com>
86048
86049         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86050
86051         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86052         AC_FUNC_MKTIME.
86053
86054 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86055
86056         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86057
86058 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86059
86060         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86061         not CPPFLAGS, so that linking works correctly in IRIX.
86062
86063 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86064
86065         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86066
86067 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86068
86069         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86070         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86072         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86073         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86074
86075         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86076
86077 1999-04-20  Jim Meyering  <meyering@ascend.com>
86078
86079         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86080         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86081         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86082
86083 1999-04-18  Jim Meyering  <meyering@ascend.com>
86084
86085         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86086         * m4/jm-macros.m4: Use it.
86087
86088 1999-04-06  Jim Meyering  <meyering@ascend.com>
86089
86090         * m4/strftime.m4: Remove test for %f.
86091
86092 1999-03-29  Jim Meyering  <meyering@ascend.com>
86093
86094         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86095         superset of the AC_TYPE_* checks in the textutils, fileutils,
86096         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86097         AC_TYPE_PID_T.
86098
86099 1999-03-28  Jim Meyering  <meyering@ascend.com>
86100
86101         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86102         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86103         replaced e.g., in the *.sh files of the sh-utils.
86104
86105 1999-03-20  Jim Meyering  <meyering@ascend.com>
86106
86107         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86108         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86109         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86110
86111 1999-03-19  Jim Meyering  <meyering@ascend.com>
86112
86113         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86114
86115 1999-03-12  Jim Meyering  <meyering@ascend.com>
86116
86117         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86118
86119 1999-03-07  Jim Meyering  <meyering@ascend.com>
86120
86121         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86122         declared.
86123
86124 1999-02-17  Jim Meyering  <meyering@ascend.com>
86125
86126         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86127         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86128
86129 1999-02-07  Jim Meyering  <meyering@ascend.com>
86130
86131         * m4/group-member.m4: New file -- extracted from sh-utils'
86132         configure.in.
86133
86134         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86135         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86136
86137 1999-02-06  Jim Meyering  <meyering@ascend.com>
86138
86139         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86140         * m4/fnmatch.m4: Likewise.
86141         * m4/getgroups.m4: Likewise.
86142         * m4/lstat.m4: Likewise.
86143         * m4/malloc.m4: Likewise.
86144         * m4/putenv.m4: Likewise.
86145         * m4/realloc.m4: Likewise.
86146         * m4/regex.m4: Likewise.
86147         * m4/stat.m4: Likewise.
86148         * m4/strftime.m4: Likewise.
86149         Suggestion from Alain Magloire.
86150
86151         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86152         * m4/fnmatch.m4: Likewise.
86153         * m4/getgroups.m4: Likewise.
86154         * m4/getline.m4: Likewise.
86155         * m4/lstat.m4: Likewise.
86156         * m4/malloc.m4: Likewise.
86157         * m4/memcmp.m4: Likewise.
86158         * m4/putenv.m4: Likewise.
86159         * m4/realloc.m4: Likewise.
86160         * m4/regex.m4: Likewise.
86161         * m4/stat.m4: Likewise.
86162         * m4/strftime.m4: Likewise.
86163         Suggestion from Alain Magloire.
86164
86165         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86166         an argument.
86167
86168         * m4/regex.m4: Add a run-time Test for proper operation of
86169         re_compile_pattern.
86170
86171 1999-01-31  Jim Meyering  <meyering@ascend.com>
86172
86173         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86174
86175 1999-01-30  Jim Meyering  <meyering@ascend.com>
86176
86177         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86178
86179         * m4/jm-mktime.m4: Make this a wrapper around the official
86180         AM_FUNC_MKTIME rather than my private copy, now that the official one
86181         is up to date.
86182         * m4/mktime.m4: Remove file.
86183
86184         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86185         * m4/uptime.m4: Likewise.
86186         * m4/uintmax_t.m4: Likewise.
86187
86188 1999-01-28  Jim Meyering  <meyering@ascend.com>
86189
86190         * m4/jm-macros.m4: Use jm_AFS.
86191         * m4/afs.m4: New file (from fileutils' configure.in).
86192
86193         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86194         * m4/chown.m4: Likewise.
86195         * m4/d-ino.m4: Likewise.
86196         * m4/d-type.m4: Likewise.
86197         * m4/fnmatch.m4: Likewise.
86198         * m4/getgroups.m4: Likewise.
86199         * m4/gettext.m4: Likewise.
86200         * m4/jm-mktime.m4: Likewise.
86201         * m4/jm-winsz2.m4: Likewise.
86202         * m4/lcmessage.m4: Likewise.
86203         * m4/ls-mntd-fs.m4: Likewise.
86204         * m4/malloc.m4: Likewise.
86205         * m4/memcmp.m4: Likewise.
86206         * m4/putenv.m4: Likewise.
86207         * m4/realloc.m4: Likewise.
86208         * m4/st_mtim.m4: Likewise.
86209         * m4/strftime.m4: Likewise.
86210
86211 1999-01-16  Jim Meyering  <meyering@ascend.com>
86212
86213         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86214         (ARGMATCH_DIE_DECL): Define.
86215
86216 1999-01-12  Jim Meyering  <meyering@ascend.com>
86217
86218         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86219         Reported by Lars Hecking.
86220
86221 1999-01-10  Jim Meyering  <meyering@ascend.com>
86222
86223         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86224         gross kludge.
86225         * m4/inttypes_h.m4: Likewise.
86226         * m4/lstat.m4: Likewise.
86227         * m4/malloc.m4: Likewise.
86228         * m4/readdir.m4: Likewise.
86229         * m4/realloc.m4: Likewise.
86230         * m4/st_dm_mode.m4: Likewise.
86231         * m4/stat.m4: Likewise.
86232         * m4/utimbuf.m4: Likewise.
86233         * m4/utimes.m4: Likewise.
86234
86235         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86236         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86237         comments in config.h.in are meaningful.
86238
86239         * m4/jm-macros.m4: Require autoconf-2.13 here.
86240
86241         * m4/regex.m4: By default, don't use the included regex.c on systems
86242         with glibc 2.  Suggestion from Uli Drepper.
86243
86244 1999-01-02  Jim Meyering  <meyering@ascend.com>
86245
86246         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86247
86248 1998-12-18  Jim Meyering  <meyering@ascend.com>
86249
86250         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86251         Based on a suggestion from Lars Hecking.
86252
86253 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86254
86255         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86256
86257 1998-11-16  Jim Meyering  <meyering@ascend.com>
86258
86259         * m4/lfs.m4: Double-quote the `uname...` expression.
86260
86261 1998-11-14  Jim Meyering  <meyering@ascend.com>
86262
86263         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86264         * m4/stat.m4: Likewise.
86265
86266 1998-11-03  Jim Meyering  <meyering@ascend.com>
86267
86268         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86269         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86270
86271 1998-10-18  Jim Meyering  <meyering@ascend.com>
86272
86273         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86274
86275 1998-10-17  Jim Meyering  <meyering@ascend.com>
86276
86277         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86278         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86279         calls for those previously hard-coded headers.  Instead, take a new
86280         parameter.
86281         (jm_CHECK_DECLARATIONS): Reflect interface change.
86282         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86283         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86284
86285         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86286
86287 1998-10-14  Jim Meyering  <meyering@ascend.com>
86288
86289         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86290         instead of "TZ=America/Vancouver".  From Paul Eggert.
86291
86292 1998-10-11  Jim Meyering  <meyering@ascend.com>
86293
86294         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86295         This adds a test for a recently added compatibility fix for mktime.c.
86296         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86297
86298 1998-09-27  Jim Meyering  <meyering@ascend.com>
86299
86300         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86301
86302         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86303         ../configure.in, including a change from Gordon Matzigkeit to allow
86304         cross-compiling for the Hurd.
86305
86306         * m4/glibc.m4: New file/macro to test for the GNU C Library
86307         versions 1 and 2.  From Gordon Matzigkeit.
86308         Indent.
86309
86310 1998-09-21  Jim Meyering  <meyering@ascend.com>
86311
86312         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86313
86314 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86315
86316         Port nanosecond-resolution times to UnixWare 2.1.2 and
86317         pedantic Solaris 2.6.
86318
86319         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86320         AC_STRUCT_ST_MTIM.
86321         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86322         Generate name of ns member, instead of just 1 or undef.
86323         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86324
86325 1998-08-15  Jim Meyering  <meyering@ascend.com>
86326
86327         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86328         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86329         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86330         instead of jm_TYPE_SSIZE_T.
86331
86332 1998-08-12  Jim Meyering  <meyering@ascend.com>
86333
86334         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86335
86336 1998-08-02  Jim Meyering  <meyering@ascend.com>
86337
86338         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86339         in acconfig.h manually.
86340
86341 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86342
86343         * m4/st_mtim.m4: New file.
86344
86345 1998-07-28  Jim Meyering  <meyering@ascend.com>
86346
86347         * m4/utimes.m4: Undef stat.
86348
86349 1998-07-25  Jim Meyering  <meyering@ascend.com>
86350
86351         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86352         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86353
86354 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86355
86356         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86357         uid and gid actually remain unchanged.
86358
86359 1998-07-07  Jim Meyering  <meyering@ascend.com>
86360
86361         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86362
86363 1998-07-04  Jim Meyering  <meyering@ascend.com>
86364
86365         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86366         to prove that this macro can be used in packages without regex.c.
86367
86368 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86369
86370         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86371         is to be used.
86372
86373 1998-07-03  Jim Meyering  <meyering@ascend.com>
86374
86375         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86376
86377         * m4/gettext.m4: New file -- from gettext-0.10.35.
86378         * m4/lcmessage.m4: Likewise.
86379         * m4/progtest.m4: Likewise.
86380
86381         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86382         * m4/jm-macros.m4: Require the new macro.
86383
86384 1998-06-29  Jim Meyering  <meyering@ascend.com>
86385
86386         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86387         for the definition of NGROUPS (used in a system header included
86388         by sys/mount.h).
86389
86390 1998-06-28  Jim Meyering  <meyering@ascend.com>
86391
86392         * m4/ls-mntd-fs.m4: New file.
86393         * m4/fstypename.m4: New file.
86394
86395         * m4/jm-macros.m4: Require the new macro.
86396         * m4/jm-glibc-io.m4: New file.
86397
86398 1998-05-19  Jim Meyering  <meyering@ascend.com>
86399
86400         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86401         * m4/lchown.m4: New file.
86402
86403         * m4/Makefile.am.in: New file.
86404         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86405
86406 1998-05-14  Jim Meyering  <meyering@ascend.com>
86407
86408         * m4/Makefile.am (EXTRA_DIST): Add them.
86409         * m4/jm-macros.m4: New file.
86410         * m4/utimbuf.m4: New file.
86411
86412 1998-05-12  Jim Meyering  <meyering@ascend.com>
86413
86414         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86415
86416 1998-05-11  Jim Meyering  <meyering@ascend.com>
86417
86418         * m4/isc-posix.m4: New file.
86419
86420 1998-05-10  Jim Meyering  <meyering@ascend.com>
86421
86422         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86423
86424 1998-05-09  Jim Meyering  <meyering@ascend.com>
86425
86426         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86427         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86428         with automake.
86429
86430         * m4/ssize_t.m4: New file.
86431         * m4/mktime.m4: Remove file -- the new automake has this now.
86432
86433 1998-04-26  Jim Meyering  <meyering@ascend.com>
86434
86435         * m4/assert.m4: New file.
86436         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86437
86438 1998-04-05  Jim Meyering  <meyering@ascend.com>
86439
86440         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86441         (jm_PREREQ): Use it here.
86442
86443 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86444
86445         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86446         in acconfig.h.
86447
86448 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86449
86450         * m4/prereq.m4: New file.
86451         * m4/error.m4: New file.
86452         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86453
86454 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86455
86456         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86457         cache-check for the same variable -- that defeated the purpose of
86458         the test; the test program was never run.  This was a problem only
86459         on systems with losing getline functions -- HP-UX 10.20 is one.
86460         Reported by Bjorn Helgaas.
86461
86462 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86463
86464         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86465
86466 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86467
86468         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86469
86470         * m4/const.m4: New file.  Use an initializer in this declaration
86471         typedef int charset[2]; const charset x;
86472         Reported by Bob Glickstein.
86473
86474 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86475
86476         * m4/chown.m4: Fix reversed types on -1 args to chown.
86477         From Kaveh Ghazi.
86478
86479 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86480
86481         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86482         Add lseek and memchr.
86483
86484         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86485         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86486         have a 20-character limit on names.
86487
86488 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86489
86490         * m4/inttypes_h.m4: New file.
86491         * m4/uintmax_t.m4: New file.
86492         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86493
86494
86495         -----
86496
86497         Local Variables:
86498         coding: utf-8
86499         End:
86500
86501         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86502
86503         Copying and distribution of this file, with or without
86504         modification, are permitted provided the copyright notice
86505         and this notice are preserved.